Difference between revisions of "User:Jonjoseph"
Line 86: | Line 86: | ||
dot("$P$", P, N); | dot("$P$", P, N); | ||
label("$8$", (A + B)/2, S); | label("$8$", (A + B)/2, S); | ||
+ | </asy> | ||
+ | |||
+ | ;[asy] | ||
+ | size(125); | ||
+ | real ticklen=3; | ||
+ | real tickspace=2; | ||
+ | |||
+ | real ticklength=0.1cm; | ||
+ | real axisarrowsize=0.14cm; | ||
+ | pen axispen=black+1.3bp; | ||
+ | real vectorarrowsize=0.2cm; | ||
+ | real tickdown=-0.5; | ||
+ | real tickdownlength=-0.15inch; | ||
+ | real tickdownbase=0.3; | ||
+ | real wholetickdown=tickdown; | ||
+ | void rr_cartesian_axes(real xleft, real xright, real ybottom, real ytop, real xstep=1, real ystep=1, bool useticks=false, bool complexplane=false, bool usegrid=true) { | ||
+ | import graph; | ||
+ | real i; | ||
+ | if(complexplane) { | ||
+ | label("<math>\textnormal{Re}</math>",(xright,0),SE); | ||
+ | label("<math>\textnormal{Im}</math>",(0,ytop),NW); | ||
+ | } else { | ||
+ | label("<math>x</math>",(xright+0.4,-0.5)); | ||
+ | label("<math>y</math>",(-0.5,ytop+0.2)); | ||
+ | } | ||
+ | |||
+ | ylimits(ybottom,ytop); | ||
+ | xlimits( xleft, xright); | ||
+ | real[] TicksArrx,TicksArry; | ||
+ | |||
+ | for(i=xleft+xstep; i<xright; i+=xstep) { | ||
+ | if(abs(i) >0.1) { | ||
+ | TicksArrx.push(i); | ||
+ | } | ||
+ | } | ||
+ | for(i=ybottom+ystep; i<ytop; i+=ystep) { | ||
+ | if(abs(i) >0.1) { | ||
+ | TicksArry.push(i); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | if(usegrid) { | ||
+ | xaxis(BottomTop(extend=false), Ticks("%", TicksArrx ,pTick=gray(0.72),extend=true),p=invisible);//,above=true); | ||
+ | yaxis(LeftRight(extend=false),Ticks("%", TicksArry ,pTick=gray(0.72),extend=true), p=invisible);//,Arrows); | ||
+ | } | ||
+ | if(useticks) { | ||
+ | xequals(0, ymin=ybottom, ymax=ytop, p=axispen, Ticks("%",TicksArry , pTick=black+0.8bp,Size=ticklength), above=true, Arrows(size=axisarrowsize)); | ||
+ | yequals(0, xmin=xleft, xmax=xright, p=axispen, Ticks("%",TicksArrx , pTick=black+0.8bp,Size=ticklength), above=true, Arrows(size=axisarrowsize)); | ||
+ | |||
+ | } else { | ||
+ | xequals(0, ymin=ybottom, ymax=ytop, p=axispen, above=true, Arrows(size=axisarrowsize)); | ||
+ | yequals(0, xmin=xleft, xmax=xright, p=axispen, above=true, Arrows(size=axisarrowsize)); | ||
+ | } | ||
+ | }; | ||
+ | rr_cartesian_axes(-5,5,-1,10); | ||
+ | real f(real x) {return x*x;} | ||
+ | real g(real x) {return 2*x*x;} | ||
+ | draw(graph(f,-sqrt(10),sqrt(10),operator ..), red ,Arrows(size=axisarrowsize)); | ||
+ | draw(graph(g,-sqrt(5),sqrt(5),operator ..), blue ,Arrows(size=axisarrowsize)); | ||
+ | |||
+ | dot((2,4), p=orange); | ||
+ | dot((2,8),p=orange); | ||
+ | draw((2,4)--(2,8),p=orange, Arrow(size=2*axisarrowsize)); | ||
+ | |||
+ | dot((-1,1), p=purple); | ||
+ | dot((-1,2),p=purple); | ||
+ | draw((-1,1)--(-1,2),p=purple, Arrow(size=2*axisarrowsize)); | ||
</asy> | </asy> |
Revision as of 12:21, 10 February 2020
Given a circle with center and a point that lies outside the circle, bisect circle with a second circle centered at .
Problem from class:
- [asy]
size(125); real ticklen=3; real tickspace=2;
real ticklength=0.1cm; real axisarrowsize=0.14cm; pen axispen=black+1.3bp; real vectorarrowsize=0.2cm; real tickdown=-0.5; real tickdownlength=-0.15inch; real tickdownbase=0.3; real wholetickdown=tickdown; void rr_cartesian_axes(real xleft, real xright, real ybottom, real ytop, real xstep=1, real ystep=1, bool useticks=false, bool complexplane=false, bool usegrid=true) {
import graph; real i; if(complexplane) { label("",(xright,0),SE); label("",(0,ytop),NW); } else { label("",(xright+0.4,-0.5)); label("",(-0.5,ytop+0.2)); }
ylimits(ybottom,ytop); xlimits( xleft, xright); real[] TicksArrx,TicksArry;
for(i=xleft+xstep; i<xright; i+=xstep) { if(abs(i) >0.1) { TicksArrx.push(i); } } for(i=ybottom+ystep; i<ytop; i+=ystep) { if(abs(i) >0.1) { TicksArry.push(i); } }
if(usegrid) { xaxis(BottomTop(extend=false), Ticks("%", TicksArrx ,pTick=gray(0.72),extend=true),p=invisible);//,above=true); yaxis(LeftRight(extend=false),Ticks("%", TicksArry ,pTick=gray(0.72),extend=true), p=invisible);//,Arrows); } if(useticks) { xequals(0, ymin=ybottom, ymax=ytop, p=axispen, Ticks("%",TicksArry , pTick=black+0.8bp,Size=ticklength), above=true, Arrows(size=axisarrowsize)); yequals(0, xmin=xleft, xmax=xright, p=axispen, Ticks("%",TicksArrx , pTick=black+0.8bp,Size=ticklength), above=true, Arrows(size=axisarrowsize));
} else { xequals(0, ymin=ybottom, ymax=ytop, p=axispen, above=true, Arrows(size=axisarrowsize)); yequals(0, xmin=xleft, xmax=xright, p=axispen, above=true, Arrows(size=axisarrowsize)); }
}; rr_cartesian_axes(-5,5,-1,10); real f(real x) {return x*x;} real g(real x) {return 2*x*x;} draw(graph(f,-sqrt(10),sqrt(10),operator ..), red ,Arrows(size=axisarrowsize)); draw(graph(g,-sqrt(5),sqrt(5),operator ..), blue ,Arrows(size=axisarrowsize));
dot((2,4), p=orange); dot((2,8),p=orange); draw((2,4)--(2,8),p=orange, Arrow(size=2*axisarrowsize));
dot((-1,1), p=purple); dot((-1,2),p=purple); draw((-1,1)--(-1,2),p=purple, Arrow(size=2*axisarrowsize)); </asy>