houseofmath

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

Sep 20th, 2024
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Asymptote 1.19 KB | Source Code | 0 0
  1. import geometry;
  2.  
  3. size(9cm, 0);
  4. defaultpen(fontsize(10pt));
  5. dotfactor = 4;
  6.  
  7. point A,B,B1,O,C;
  8.  
  9. B=(0,0); B1=-2*dir(80);
  10. circle circ = circle(B, B1);
  11. O=circ.C;
  12. C=point(circ, -1/15*length(circ));
  13. A=point(circ, B-1/4*length(circ)); //не смог придумать решени, как от точки B отступить дугу 90
  14.  
  15. fill(A--O--B--cycle, red+white);
  16. fill(C--O--B--cycle, blue+white);
  17. fill(A--O--C--B1--cycle, orange+white);
  18.  
  19. markangle(Label("$\alpha$", Relative(0.5), align = NE), radius = 0.3cm, n=1, C,O,B);
  20. markrightangle(size=0.2cm, B,O,A);
  21. draw(B--B1);
  22. draw(B--C^^O--C^^O--A^^A--B);
  23. draw(circ);
  24.  
  25.  
  26. pair   p []={A, B, B1, C, O};
  27. pair   v []={W, N, S, SE, SW};
  28. string n []={"$A$", "$B$", "$B_1$", "$C$", "$O$"};
  29.  
  30. for ( int k=0; k<p.length ; ++k)
  31. dot ( Label (n[k] , align =v[k]) ,p[k ]);
  32.  
  33. label(Label("$1$", Relative(0.5)), A--O);
  34. label(Label("$1$", Relative(0.5)), B--O);
  35. label(Label("$1$", Relative(0.5)), C--O);
  36. label(Label("$\sqrt2$", Relative(0.5), Rotate(dir(A--B)), align = N), A--B);
  37. label(Label("$\frac{10}3$", Relative(0.5), Rotate(dir(B--C)), align = NE), B--C);
  38. label("$S_1$", (A+O+B)/3);
  39. label("$S_2$", (C+O+B)/3);
  40. label("$S_3$", (3*A+3*O+C)/6);
Add Comment
Please, Sign In to add comment