+0

# Asymptote coding

+3
37
2
+538

Hello!

I was answering a question earlier, and wanted to include a graph. Since Asympotote coding makes it look clean, I tried inserting this code:

[asy]
size(250);
import TrigMacros;
import olympiad;

real theta = 45;
pair A = (3,0);
pair B = 3*dir(theta);
pair O = (0,0);

rr_cartesian_axes(-5, 5, -5, 5, usegrid = false);

draw(Circle(O, 3));
draw(O--3*dir(60));
dot("$\left(\frac{\sqrt{3}}{2}, \frac{1}{2}\right)$", 3*dir(30), E);
draw(O--3*dir(30));
dot("$\left(\frac{1}{2}, \frac{\sqrt{3}}{2}\right)$", 3*dir(60), N);
draw(O--3*dir(45));
dot("$\left(\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}\right)$", 3*dir(45), dir(45));
draw(O--3*dir(150));
dot("$\left(-\frac{\sqrt{3}}{2}, \frac{1}{2}\right)$", 3*dir(150), W);
draw(O--3*dir(120));
dot("$\left(-\frac{1}{2}, \frac{\sqrt{3}}{2}\right)$", 3*dir(120), N);
draw(O--3*dir(135));
dot("$\left(-\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}\right)$", 3*dir(135), dir(135));
draw(O--3*dir(-60));
dot("$\left(\frac{\sqrt{3}}{2}, -\frac{1}{2}\right)$", 3*dir(-30), E);
draw(O--3*dir(-30));
dot("$\left(\frac{1}{2}, -\frac{\sqrt{3}}{2}\right)$", 3*dir(-60), -N);
draw(O--3*dir(-45));
dot("$\left(\frac{\sqrt{2}}{2}, -\frac{\sqrt{2}}{2}\right)$", 3*dir(-45), dir(-45));
draw(O--3*dir(-150));
dot("$\left(-\frac{\sqrt{3}}{2}, -\frac{1}{2}\right)$", 3*dir(-150), W);
draw(O--3*dir(-120));
dot("$\left(-\frac{1}{2}, -\frac{\sqrt{3}}{2}\right)$", 3*dir(-120), -N);
draw(O--3*dir(-135));
dot("$\left(-\frac{\sqrt{2}}{2},- \frac{\sqrt{2}}{2}\right)$", 3*dir(-135), dir(-135));
dot("$(1,0)$", A, NE);
[/asy]

But, it did not show up. (it's a unit circle) Does this site support Asymptote, or do I need to use desmos? Thanks!

off-topic
Aug 2, 2020

### 2+0 Answers

#1
+128
+1

I believe that this site does not support asymptote, as I have tried to use it in the past. If you try to take a screenshot, or maybe as you said desmos will work.

Hope this helps!

Aug 2, 2020
#2
+538
+3

Okay!

ilorty  Aug 2, 2020