Advertisement
houseofmath

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

Sep 16th, 2024
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Asymptote 0.44 KB | Source Code | 0 0
  1. import geometry;
  2. defaultpen(fontsize(10pt));
  3. dotfactor = 4;
  4. size(9cm, 0);
  5. point A,B,C, A1, B1, C1;
  6. C=(0,0); B= 4*dir(70); A= 4*dir(0);
  7. A1=(C+B)/3; B1 = 2*(C+A)/3; C1= (B+1/3*A)/(1+1/3);
  8.  
  9. triangle t = triangle(A,B,C); show(Lc="",Lb="",La="",t);
  10.  
  11. draw(C1--B1--A1--cycle);
  12. fill(C1--B1--A1--cycle, gray+0.25white);
  13.  
  14. dot(A); dot(B); dot(C);
  15. dot(A1); label("$A1$", A1, WNW);
  16. dot(B1); label("$B1$", B1, S);
  17. dot(C1); label("$C1$", C1, NE);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement