Difference between revisions of "User:5849206328x"

m
m
Line 12: Line 12:
 
real h(real x) { if (x != 0) return sin(1/x); else return 0; }
 
real h(real x) { if (x != 0) return sin(1/x); else return 0; }
  
draw(graph(f,-1.5,1.5,n=10000), red);
+
// draw(graph(f,-1.5,1.5,n=10000), red);
draw(graph(h,-1.5,1.5,n=10000), blue);
 
  
label("$f$",(-1.5,-1),W); label("$h$",(-1.5,h(-1.5)),W);
+
draw(circle((0,0),1));
 +
draw(circle((0,0),0.8),dashed);
 +
draw(circle((0,0),1.2),dashed);
 +
 
 +
draw((0,0)--(cos(pi/3),sin(pi/3)));
 +
draw((0,0)--(0.4sqrt(2),0.4sqrt(2)),dotted);
 +
draw((0,0)--1.2*dir(27),dotted);
 +
 
 +
dot((1/2,1/2));
 +
dot(1.2*dir(27));
 +
 
 +
label("$R$",(1/4,sqrt(3)/4),NW);
 
</asy>
 
</asy>

Revision as of 09:55, 27 May 2015

[asy] import slopefield;  Label f; f.p=fontsize(6); xaxis(-1.5,1.5); yaxis(-1.5,1.5);  real e  = 2.718281828459045235360287471352662497757247093699959574966967627724076630353; real pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286; real f(real x) { if (x < 0) return -1; else return 1; } real h(real x) { if (x != 0) return sin(1/x); else return 0; }  // draw(graph(f,-1.5,1.5,n=10000), red);  draw(circle((0,0),1)); draw(circle((0,0),0.8),dashed); draw(circle((0,0),1.2),dashed);  draw((0,0)--(cos(pi/3),sin(pi/3))); draw((0,0)--(0.4sqrt(2),0.4sqrt(2)),dotted); draw((0,0)--1.2*dir(27),dotted);  dot((1/2,1/2)); dot(1.2*dir(27));  label("$R$",(1/4,sqrt(3)/4),NW); [/asy]