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(0,4);
+
xaxis(0,3);
yaxis(-2,3);
+
yaxis(-1,3);
  
 
real e = 2.718281828459045235360287471352662497757247093699959574966967627724076630353;
 
real e = 2.718281828459045235360287471352662497757247093699959574966967627724076630353;
real y(real t, real a) { return (a - e^(-t^2))/(a + e^(-t^2)); }
+
real y(real t, real a) { return 2/(1 + a*e^(-3t)); }
real f(real x) { return y(x,1); }
+
real f(real x) { return y(x,9); }
real g(real x) { return y(x,-3); }
+
real g(real x) { return y(x,-11); }
real h(real x) { return y(x,1/5); }
+
real h(real x) { return y(x,-0.25); }
real j(real x) { return y(x,-1/5); }
+
real j(real x) { return y(x,0); }
  
real z(real t, real y) { return t * (1 - y^2); }
+
draw(graph(f,0,3),red);
add(slopefield(z,(0,-2),(4,3),20,Arrow));
+
draw(graph(g,0,0.432),darkgreen); draw(graph(g,1.17,3),darkgreen);
 +
draw(graph(h,0,3),blue);
 +
draw(graph(j,0,3),purple);
  
pair one(real y) { return (1/(1 - y^2),y); }
 
pair two(real y) { return (-1/(1 - y^2),y); }
 
 
draw(graph(f,0,4),red);
 
draw(graph(g,0,4),darkgreen);
 
draw(graph(h,0,4),blue);
 
draw(graph(j,0,0.71),purple); draw(graph(j,1.52,4),purple);
 
draw((0,1)--(4,1));
 
draw((0,-1)--(4,-1));
 
 
draw(graph(one,-0.867,0.867),dashed);
 
draw(graph(two,-2,-1.118),dashed);
 
draw(graph(two,1.118,3),dashed);
 
 
label("$-3/2$",(0,-3/2),W);
 
label("$-1$",(0,-1),W);
 
label("$-2/3$",(0,-2/3),W);
 
 
label("$0$",(0,0),W);
 
label("$0$",(0,0),W);
label("$1$",(0,1),W);
+
label("$K$",(0,2),W);
label("$2$",(0,2),W);
 
 
</asy>
 
</asy>

Revision as of 11:16, 28 April 2015

[asy] import slopefield;  Label f; f.p=fontsize(6); xaxis(0,3); yaxis(-1,3);  real e = 2.718281828459045235360287471352662497757247093699959574966967627724076630353; real y(real t, real a) { return 2/(1 + a*e^(-3t)); } real f(real x) { return y(x,9); } real g(real x) { return y(x,-11); } real h(real x) { return y(x,-0.25); } real j(real x) { return y(x,0); }  draw(graph(f,0,3),red); draw(graph(g,0,0.432),darkgreen); draw(graph(g,1.17,3),darkgreen); draw(graph(h,0,3),blue); draw(graph(j,0,3),purple);  label("$0$",(0,0),W); label("$K$",(0,2),W); [/asy]