summaryrefslogtreecommitdiff
path: root/graphics/asymptote/examples/sinxlex.asy
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/examples/sinxlex.asy')
-rw-r--r--graphics/asymptote/examples/sinxlex.asy24
1 files changed, 24 insertions, 0 deletions
diff --git a/graphics/asymptote/examples/sinxlex.asy b/graphics/asymptote/examples/sinxlex.asy
new file mode 100644
index 0000000000..912fa3c889
--- /dev/null
+++ b/graphics/asymptote/examples/sinxlex.asy
@@ -0,0 +1,24 @@
+import geometry;
+
+size(0,100);
+real theta=30;
+
+pair A=(0,0);
+pair B=dir(theta);
+pair C=(1,0);
+pair D=(1,Tan(theta));
+pair E=(Cos(theta),0);
+
+filldraw(A--C{N}..B--cycle,lightgrey);
+draw(B--C--D--cycle);
+draw(B--E);
+
+draw("$x$",arc(C,A,B,0.7),RightSide,Arrow,PenMargin);
+
+dot("$A$",A,W);
+dot("$B$",B,NW);
+dot("$C$",C);
+dot("$D$",D);
+dot(("$E$"),E,S);
+label("$1$",A--B,LeftSide);
+