Advertisement
houseofmath

Голяшов Антон ДЗ1(Asymptote) рисунок 8

Sep 16th, 2024
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Asymptote 1.18 KB | Source Code | 0 0
  1. import geometry;
  2. //import patterns;
  3. //defaultpen(fontsize(12pt));
  4. defaultpen(0.75);
  5. dotfactor=5;
  6. size(9cm,0);
  7. point O = origin;
  8. real r = 1;
  9. circle c = circle(O, r);
  10. real Phi =  40;
  11. real Alpha = 100;
  12. point B = r*dir(Phi);
  13. point A = r*dir(Phi+90);
  14. point C = r*dir(Phi-Alpha);
  15. point B1 = r*dir(Phi+180);
  16.  
  17. fill(O--A--B--cycle, red+opacity(0.2));
  18. fill(O--C--B--cycle, yellow+opacity(0.2));
  19. path g = arc(O, r*dir(Phi+90), r*dir(Phi-Alpha));
  20. fill(C--O--A--g--cycle, blue+opacity(0.2));
  21.  
  22. dot(O);
  23. label("$O$", origin, W);
  24. draw(c, black+linewidth(1.1));
  25. dot(A); dot(B); dot(C); dot(B1);
  26. label("$A$", A, NW); label("$B$", B, NE);
  27. label("$C$", C, SE); label("$B_1$", B1, SW);
  28. draw(A--O--B^^B1--O--C);
  29. markrightangle(A,O,B);
  30. markangle(Label("$\alpha$"), C, O, B, radius=0.44cm);
  31. draw(A---B); draw(B---C);
  32. label("$\sqrt2$", (A+B)/2, N); label("$\frac{10}{7}$", (B+C)/2, SE);
  33. label("$1$", (B1+O)/2, SE); label("$1$", (C+O)/2, NE); label("$1$", (B+O)/2, SE);
  34. real coof = 0.44;
  35. label("$S_1$", coof*r*dir((2*Phi+90)/2));
  36. label("$S_2$", coof*r*dir((2*Phi-Alpha)/2));
  37. label("$S_3$", 1.15*coof*r*dir(Phi+150));
  38. draw(B1--O^^O--C^^O--B, white+opacity(0), StickIntervalMarker(1, size=0.2cm));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement