Advertisement
houseofmath

Лозовский Даниил ДЗ1(Asymptote) рисунок 7

Sep 16th, 2024
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Asymptote 1.15 KB | Source Code | 0 0
  1. import geometry;
  2. defaultpen(fontsize(8pt));
  3. dotfactor=5;
  4. size(9cm,0);
  5. point A, B, C, D, A1, B1, K, L, M, N1, M1, F;
  6. D=(0,0); A=1.75*dir(75); C=3*dir(0); B=2.5*dir(30);
  7.  
  8. M=point(A--B, 1/4);
  9. N1=point(C--D, 2/5);
  10. K=intersectionpoint(D--M,A--N1);
  11. L=intersectionpoint(M--C,B--N1);
  12.  
  13. line DC=line(D,C);
  14. line dA=perpendicular(A,DC);
  15. line dM=perpendicular(M,DC);
  16. line dB=perpendicular(B,DC);
  17.  
  18. A1=intersectionpoint(dA,DC);
  19. M1=intersectionpoint(dM,DC);
  20. B1=intersectionpoint(dB,DC);
  21.  
  22. F=intersectionpoint(A1--B,M--M1);
  23.  
  24. fill(D--A--K--cycle^^B--C--L--cycle,  white+0.2blue);
  25. fill(K--M--L--N1--cycle,  white+0.3red);
  26.  
  27. markrightangle(size=7, A, A1, D);
  28. markrightangle(size=7, M, M1, D);
  29. markrightangle(size=7, B, B1, D);
  30.  
  31. draw(A--B--C--D--cycle);
  32. draw(D--M--C^^A--N1--B);
  33. draw(A--A1^^M--M1^^B--B1);
  34. draw(A1--B);
  35.  
  36. dot(A^^B^^C^^D);
  37. dot(M^^N1^^K^^L);
  38. dot(A1^^M1^^B1);
  39. dot(F);
  40.  
  41. label("$A$", A, NW);
  42. label("$B$", B, NE);
  43. label("$C$", C, SE);
  44. label("$D$", D, SW);
  45. label("$M$", M, NE);
  46. label("$N$", N1, S);
  47. label("$K$", K, 2*S);
  48. label("$L$", L, 2*NNW);
  49. label("$A_1$", A1, S);
  50. label("$B_1$", B1, S);
  51. label("$M_1$", M1, S);
  52. label("$F$", F, WNW);
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement