Difference between revisions of "User:5849206328x"

m
m
Line 4: Line 4:
 
Label f;
 
Label f;
 
f.p=fontsize(6);
 
f.p=fontsize(6);
// xaxis(-1.5,1.5);
+
xaxis(-1.5,1.5);
// yaxis(-1.5,1.5);
+
yaxis(-2.5,2.5);
  
 
real e  = 2.718281828459045235360287471352662497757247093699959574966967627724076630353;
 
real e  = 2.718281828459045235360287471352662497757247093699959574966967627724076630353;
 
real pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286;
 
real pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286;
real f(real x) { if (x < 0) return -1; else return 1; }
+
pair f(real x) { return (cos(2x), -2sin(2x)); }
real h(real x) { if (x != 0) return sin(1/x); else return 0; }
+
pair g(real x) { return (sin(2x), 2cos(2x)); }
  
// draw(graph(f,-1.5,1.5,n=10000), red);
+
draw(graph(f,0,1), red, MidArrow);
 +
draw(f(1)--(0,0)--f(0), red, Arrows);
 +
draw(graph(g,0,1), blue, MidArrow);
 +
draw(g(1)--(0,0)--g(0), blue, Arrows);
 +
draw(graph(g,pi/4,1), purple);
  
label("$a_0b_0$",(0,0));
+
label("$\mathbf{Y}_1(0)$",f(0),NE,red);
label("$a_0b_1$",(1,0));
+
label("$\mathbf{Y}_1(1)$",f(1),SW,red);
label("$a_0b_2$",(2,0));
+
label("$\mathbf{Y}_2(0)$",g(0),NE,blue);
label("$\cdots$",(3,0));
+
label("$\mathbf{Y}_2(1)$",g(1),ESE,blue);
label("$a_1b_0$",(0,-1));
 
label("$a_1b_1$",(1,-1));
 
label("$a_1b_2$",(2,-1));
 
label("$\cdots$",(3,-1));
 
label("$a_2b_0$",(0,-2));
 
label("$a_2b_1$",(1,-2));
 
label("$a_2b_2$",(2,-2));
 
label("$\cdots$",(3,-2));
 
label("$\vdots$",(0,-3));
 
label("$\vdots$",(1,-3));
 
label("$\vdots$",(2,-3));
 
label("$\ddots$",(3,-3));
 
 
 
draw((-0.2,-0.5)--(0.5,-0.5)--(0.5,0.2));
 
draw((-0.2,-1.5)--(1.5,-1.5)--(1.5,0.2));
 
draw((-0.2,-2.5)--(2.5,-2.5)--(2.5,0.2));
 
 
 
draw((-0.2,-0.5)--(0.5,0.2),dashed);
 
draw((-0.2,-1.5)--(1.5,0.2),dashed);
 
draw((-0.2,-2.5)--(2.5,0.2),dashed);
 
draw((0.8,-2.5)--(2.5,-0.8),dashed);
 
draw((1.8,-2.5)--(2.5,-1.8),dashed);
 
 
</asy>
 
</asy>

Revision as of 07:47, 6 June 2015

[asy] import slopefield;  Label f; f.p=fontsize(6); xaxis(-1.5,1.5); yaxis(-2.5,2.5);  real e  = 2.718281828459045235360287471352662497757247093699959574966967627724076630353; real pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286; pair f(real x) { return (cos(2x), -2sin(2x)); } pair g(real x) { return (sin(2x), 2cos(2x)); }  draw(graph(f,0,1), red, MidArrow); draw(f(1)--(0,0)--f(0), red, Arrows); draw(graph(g,0,1), blue, MidArrow); draw(g(1)--(0,0)--g(0), blue, Arrows); draw(graph(g,pi/4,1), purple);  label("$\mathbf{Y}_1(0)$",f(0),NE,red); label("$\mathbf{Y}_1(1)$",f(1),SW,red); label("$\mathbf{Y}_2(0)$",g(0),NE,blue); label("$\mathbf{Y}_2(1)$",g(1),ESE,blue); [/asy]