|
|
(192 intermediate revisions by 40 users not shown) |
Line 1: |
Line 1: |
| {{AoPSWiki:Sandbox/header}} <!-- Please do not delete this line --> | | {{AoPSWiki:Sandbox/header}} <!-- Please do not delete this line --> |
− | In the computer world, a '''sandbox''' is a place to test and experiment -- essentially, it's a place to play.
| |
− |
| |
− | This is the AoPSWiki Sandbox. Feel free to experiment here.
| |
− |
| |
− | Warning: anything you place here is subject to deletion without notice.
| |
− |
| |
− | === Sandbox Area ===
| |
− | <code>
| |
− | [hide]
| |
− | random code
| |
− | [/hide]
| |
− | </code>
| |
− | <asy>
| |
− | draw(Circle((0,0),13),linewidth(1));
| |
− | draw((-12,-5)--(-5,-12)--(12,5)--cycle,linewidth(1));
| |
− | draw((0,0)--(-5,-12),linewidth(1)+linetype("0 4"));
| |
− | dot((0,0));
| |
− |
| |
− | label("T",(0,0),N);
| |
− | label("X",(-12,-5),W);
| |
− | label("Z",(-5,-12),S);
| |
− | label("Y",(12,5),E);
| |
− |
| |
− | </asy>
| |
− | <asy>
| |
− |
| |
− | size(4cm,4cm);
| |
− |
| |
− | pair A,B,C,D,E;
| |
− | A = (0,0);
| |
− | B = dir(108);
| |
− | C = B+dir(39);
| |
− | D = C+dir(-39);
| |
− | E = (1,0);
| |
− |
| |
− | draw(A--B--C--D--E--cycle,linewidth(1));
| |
− | draw(A--C,linewidth(1)+linetype("0 4"));
| |
− |
| |
− | label("A",A,S);
| |
− | label("B",B,W);
| |
− | label("C",C,N);
| |
− | label("D",D,E);
| |
− | label("E",E,S);
| |
− | label("$108^\circ$",B,E);
| |
− |
| |
− |
| |
− | </asy>
| |
− |
| |
− | <asy>
| |
− |
| |
− | draw(Circle((0,0),23), linewidth(1.5));
| |
− | dot((0,0));
| |
− |
| |
− | </asy>
| |
− |
| |
− | <asy>
| |
− |
| |
− | draw(Circle((0,0),10), linewidth(1.5));
| |
− | dot((0,0));
| |
− | label("O",(1,1));
| |
− | draw((0,0)--(10,0),linewidth(1.5));
| |
− | label("r",(5,1));
| |
− |
| |
− | </asy>
| |
− |
| |
− | <asy>
| |
− |
| |
− | draw((0,5)--(0,0));
| |
− | draw((0,0)--(25,0));
| |
− | draw((0,5)--(25,0));
| |
− | label("r",(-1,3));
| |
− |
| |
− | </asy>
| |
− |
| |
− | <asy>
| |
− |
| |
− | dot((0,0));
| |
− | dot((5,12));
| |
− | line((0,0)--(5,12),red);
| |
− |
| |
− | </asy>
| |
− |
| |
− | <asy>
| |
− |
| |
− | dot((0,0));
| |
− | dot((0,2));
| |
− | dot((0,4));
| |
− | dot((0,6));
| |
− | dot((2,0));
| |
− | dot((2,2));
| |
− | dot((2,4));
| |
− | dot((2,6));
| |
− | dot((4,0));
| |
− | dot((4,2));
| |
− | dot((4,4));
| |
− | dot((4,6));
| |
− | dot((6,0));
| |
− | dot((6,2));
| |
− | dot((6,4));
| |
− | dot((6,6));
| |
− | draw((0,0)--(0,2),red);
| |
− | draw((0,2)--(2,2),red);
| |
− | draw((2,2)--(0,4),red);
| |
− | draw((0,4)--(0,6),red);
| |
− | draw((0,6)--(2,6),red);
| |
− | draw((2,6)--(2,4),red);
| |
− | draw((2,4)--(4,6),red);
| |
− | draw((4,6)--(6,6),red);
| |
− | draw((6,6)--(6,4),red);
| |
− | draw((6,4)--(4,4),red);
| |
− | draw((4,4)--(6,2),red);
| |
− | draw((6,2)--(6,0),red);
| |
− | draw((6,0)--(4,0),red);
| |
− | draw((4,0)--(4,2),red);
| |
− | draw((4,2)--(2,0),red);
| |
− | draw((2,0)--(0,0),red);
| |
− |
| |
− | </asy>
| |
− |
| |
− | <asy>
| |
− |
| |
− | dot((0,0));
| |
− | dot((0,2));
| |
− | dot((0,4));
| |
− | dot((0,6));
| |
− | dot((2,0));
| |
− | dot((2,2));
| |
− | dot((2,4));
| |
− | dot((2,6));
| |
− | dot((4,0));
| |
− | dot((4,2));
| |
− | dot((4,4));
| |
− | dot((4,6));
| |
− | dot((6,0));
| |
− | dot((6,2));
| |
− | dot((6,4));
| |
− | dot((6,6));
| |
− | dot((0,8));
| |
− | dot((2,8));
| |
− | dot((4,8));
| |
− | dot((6,8));
| |
− | dot((8,0));
| |
− | dot((8,2));
| |
− | dot((8,4));
| |
− | dot((8,6));
| |
− | dot((8,8));
| |
− | draw((6,0)--(0,2),red);
| |
− | draw((0,0)--(0,2),blue);
| |
− | draw((0,0)--(6,0),blue);
| |
− | draw((0,2)--(2,8),red);
| |
− | draw((0,2)--(0,8),blue);
| |
− | draw((0,8)--(2,8),blue);
| |
− | draw((2,8)--(8,6),red);
| |
− | draw((2,8)--(8,8),blue);
| |
− | draw((8,8)--(8,6),blue);
| |
− | draw((8,6)--(6,0),red);
| |
− | draw((6,0)--(8,0),blue);
| |
− | draw((8,6)--(8,0),blue);
| |
− |
| |
− | </asy>
| |
− |
| |
− | <asy>
| |
− |
| |
− | dot((0,1));
| |
− | dot((3.5,8));
| |
− | dot((2,5));
| |
− | draw((0,1)--(3.5,8));
| |
− |
| |
− | </asy>
| |
− |
| |
− | <asy>
| |
− |
| |
− | dot((0,0));
| |
− | dot((0,1));
| |
− | dot((7,0));
| |
− | draw((0,0)--(7,1));
| |
− | draw((0,1)--(7,1));
| |
− | draw((7,0)--(7,1));
| |
− |
| |
− | </asy>
| |
− |
| |
− | <asy>
| |
− | /* File unicodetex not found. */
| |
− |
| |
− | /* Geogebra to Asymptote conversion, documentation at artofproblemsolving.com/Wiki, go to User:Azjps/geogebra */
| |
− | import graph; size(11.58cm);
| |
− | real labelscalefactor = 0.5; /* changes label-to-point distance */
| |
− | pen dps = linewidth(0.7) + fontsize(10); defaultpen(dps); /* default pen style */
| |
− | pen dotstyle = black; /* point style */
| |
− | real xmin = -4.3, xmax = 7.28, ymin = -2.6, ymax = 6.3; /* image dimensions */
| |
− | pen zzttqq = rgb(0.6,0.2,0); pen qqwuqq = rgb(0,0.39,0);
| |
− |
| |
− | draw((-2.82,2.6)--(-1.58,-0.9)--(3.5,-1.04)--(2.46,3.18)--(0.6,0.68)--(-0.88,4.78)--(-4.26,3.9)--cycle, zzttqq);
| |
− | draw(arc((-0.88,4.78),0.6,-165.41,-70.15)--(-0.88,4.78)--cycle, qqwuqq);
| |
− | draw(arc((0.6,0.68),0.6,109.85,413.35)--(0.6,0.68)--cycle, qqwuqq);
| |
− | draw(arc((3.5,-1.04),0.6,103.84,178.42)--(3.5,-1.04)--cycle, qqwuqq);
| |
− | /* draw figures */
| |
− | draw((-2.82,2.6)--(-1.58,-0.9), zzttqq);
| |
− | draw((-1.58,-0.9)--(3.5,-1.04), zzttqq);
| |
− | draw((3.5,-1.04)--(2.46,3.18), zzttqq);
| |
− | draw((2.46,3.18)--(0.6,0.68), zzttqq);
| |
− | draw((0.6,0.68)--(-0.88,4.78), zzttqq);
| |
− | draw((-0.88,4.78)--(-4.26,3.9), zzttqq);
| |
− | draw((-4.26,3.9)--(-2.82,2.6), zzttqq);
| |
− | draw((xmin, 22.25*xmin + 13.09)--(xmax, 22.25*xmax + 13.09)); /* line */
| |
− | draw((xmin, -0.49*xmin + 1.27)--(xmax, -0.49*xmax + 1.27)); /* line */
| |
− | draw((xmin, 5.13*xmin + 17.06)--(xmax, 5.13*xmax + 17.06)); /* line */
| |
− | /* dots and labels */
| |
− | dot((-2.82,2.6),dotstyle);
| |
− | label("$A$", (-2.74,2.72), NE * labelscalefactor);
| |
− | dot((-1.58,-0.9),dotstyle);
| |
− | label("$B$", (-1.5,-0.78), NE * labelscalefactor);
| |
− | dot((-1.66,4.58),dotstyle);
| |
− | label("$H$", (-1.58,4.7), NE * labelscalefactor);
| |
− | dot((-2.48,4.36),dotstyle);
| |
− | label("$I$", (-2.4,4.48), NE * labelscalefactor);
| |
− | dot((-0.44,3.3),dotstyle);
| |
− | label("$Z$", (-0.36,3.42), NE * labelscalefactor);
| |
− | dot((-0.52,1.52),dotstyle);
| |
− | label("$W$", (-0.44,1.64), NE * labelscalefactor);
| |
− | dot((2.4,0.1),dotstyle);
| |
− | label("$Z_1$", (2.48,0.22), NE * labelscalefactor);
| |
− | label("$95.26^\circ$", (-1.6,4.28), NE * labelscalefactor,qqwuqq);
| |
− | label("$303.5^\circ$", (0.06,0.34), NE * labelscalefactor,qqwuqq);
| |
− | label("$74.58^\circ$", (2.68,-0.9), NE * labelscalefactor,qqwuqq);
| |
− | clip((xmin,ymin)--(xmin,ymax)--(xmax,ymax)--(xmax,ymin)--cycle);
| |
− | /* end of picture */
| |
− | </asy>
| |
− |
| |
− | == test 89810312 ==
| |
− | <hide>hidden text</hide>
| |
− |
| |
− | ==Test 1==
| |
− |
| |
− | <asy>
| |
− |
| |
− | dot((0,0));
| |
− | dot((1,0));
| |
− | dot((0,1));
| |
− | dot((1,1));
| |
− | dot((2,0));
| |
− | dot((0,2));
| |
− | dot((1,2));
| |
− | dot((2,1));
| |
− | dot((2,2));
| |
− | dot((3,0));
| |
− | dot((3,1));
| |
− | dot((3,2));
| |
− | dot((3,3));
| |
− | dot((2,3));
| |
− | dot((1,3));
| |
− | dot((0,3));
| |
− | dot((0,4));
| |
− | dot((1,4));
| |
− | dot((2,4));
| |
− | dot((3,4));
| |
− | dot((4,4));
| |
− | dot((4,3));
| |
− | dot((4,2));
| |
− | dot((4,1));
| |
− | dot((4,0));
| |
− | dot((5,0));
| |
− | dot((5,1));
| |
− | dot((5,2));
| |
− | dot((5,3));
| |
− | dot((5,4));
| |
− | dot((5,5));
| |
− | dot((4,5));
| |
− | dot((3,5));
| |
− | dot((2,5));
| |
− | dot((1,5));
| |
− | dot((0,5));
| |
− | dot((0,6));
| |
− | dot((1,6));
| |
− | dot((2,6));
| |
− | dot((3,6));
| |
− | dot((4,6));
| |
− | dot((5,6));
| |
− | dot((6,6));
| |
− | dot((6,5));
| |
− | dot((6,4));
| |
− | dot((6,3));
| |
− | dot((6,2));
| |
− | dot((6,1));
| |
− | dot((6,0));
| |
− | dot((7,0));
| |
− | dot((7,1));
| |
− | dot((7,2));
| |
− | dot((7,3));
| |
− | dot((7,4));
| |
− | dot((7,5));
| |
− | dot((7,6));
| |
− | dot((7,7));
| |
− | dot((6,7));
| |
− | dot((5,7));
| |
− | dot((4,7));
| |
− | dot((3,7));
| |
− | dot((2,7));
| |
− | dot((1,7));
| |
− | dot((0,7));
| |
− | draw((0,1)--(1,7),red);
| |
− | draw((1,7)--(7,6),red);
| |
− | draw((7,6)--(6,0),red);
| |
− | draw((6,0)--(0,1),red);
| |
− | draw((2,7)--(7,5),blue);
| |
− | draw((0,2)--(2,7),blue);
| |
− | draw((5,0)--(0,2),blue);
| |
− | draw((5,0)--(7,5),blue);
| |
− | draw((3,7)--(7,4),yellow);
| |
− | draw((7,4)--(4,0),yellow);
| |
− | draw((4,0)--(0,3),yellow);
| |
− | draw((0,3)--(3,7),yellow);
| |
− | draw((4,7)--(7,3),green);
| |
− | draw((7,3)--(3,0),green);
| |
− | draw((3,0)--(0,4),green);
| |
− | draw((0,4)--(4,7),green);
| |
− | draw((5,7)--(7,2),black);
| |
− | draw((7,2)--(2,0),black);
| |
− | draw((2,0)--(0,5),black);
| |
− | draw((0,5)--(5,7),black);
| |
− | draw((0,6)--(1,0),purple);
| |
− | draw((1,0)--(7,1),purple);
| |
− | draw((7,1)--(6,7),purple);
| |
− | draw((0,6)--(6,7),purple);
| |
− |
| |
− | </asy>
| |
− |
| |
− | ==Test 2==
| |
− | <b>Test</b>
| |
− |
| |
− | <asy>
| |
− |
| |
− | dot((0,0));
| |
− | dot((1,0));
| |
− | dot((0,1));
| |
− | dot((1,1));
| |
− | dot((0,2));
| |
− | dot((2,0));
| |
− | dot((1,2));
| |
− | dot((2,1));
| |
− | dot((2,2));
| |
− | dot((3,0));
| |
− | dot((3,1));
| |
− | dot((3,2));
| |
− | dot((3,3));
| |
− | dot((2,3));
| |
− | dot((1,3));
| |
− | dot((0,3));
| |
− |
| |
− | </asy>
| |
− |
| |
− | ==Test 3==
| |
− | <asy>
| |
− | dot((0,0));
| |
− | dot((0,4));
| |
− | dot((3,4444));
| |
− | dot((3,0));
| |
− | dot((1.5,2));
| |
− | draw((0,0)--(3,4444),green);
| |
− | draw((0,4)--(3,0),green);
| |
− | draw((0,0)--(0,4),red);
| |
− | draw((0,4)--(3,4),red);
| |
− | draw((3,0)--(3,4),red);
| |
− | draw((3,0)--(0,0),red);
| |
− | </asy>
| |