Difference between revisions of "User:5849206328x"

m
m
Line 2: Line 2:
 
Label f;
 
Label f;
 
f.p=fontsize(6);
 
f.p=fontsize(6);
xaxis(0,2);
+
xaxis(0,4);
yaxis(0,2);
+
yaxis(-2,3);
  
 
real e = 2.718281828459045235360287471352662497757247093699959574966967627724076630353;
 
real e = 2.718281828459045235360287471352662497757247093699959574966967627724076630353;
real f(real x) { return 1.8 * e^((-3) * x); }
+
real y(real t, real a) { return (a - e^(-t^2))/(a + e^(-t^2)); }
real g(real x) { return (-1.8) * e^((-3) * x) + 1.8 * e^((-1) * x); }
+
real f(real x) { return y(x,1); }
 +
real g(real x) { return y(x,-3); }
 +
real h(real x) { return y(x,1/5); }
 +
real j(real x) { return y(x,-1/5); }
  
draw(graph(f,0,2));
+
draw(graph(f,0,4),red);
draw(graph(g,0,2));
+
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),dashed);
 +
draw((0,-1)--(4,-1),dashed);
  
label("$\mathtt{B}$",(0.7,0.7),N);
+
label("$-3/2$",(0,-3/2),W);
label("$\mathtt{A}$",(0.7,0.25),N);
+
label("$-1$",(0,-1),W);
 +
label("$-2/3$",(0,-2/3),W);
 +
label("$0$",(0,0),W);
 +
label("$1$",(0,1),W);
 +
label("$2$",(0,2),W);
 
</asy>
 
</asy>

Revision as of 10:24, 28 April 2015

[asy] Label f; f.p=fontsize(6); xaxis(0,4); yaxis(-2,3);  real e = 2.718281828459045235360287471352662497757247093699959574966967627724076630353; real y(real t, real a) { return (a - e^(-t^2))/(a + e^(-t^2)); } real f(real x) { return y(x,1); } real g(real x) { return y(x,-3); } real h(real x) { return y(x,1/5); } real j(real x) { return y(x,-1/5); }  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),dashed); draw((0,-1)--(4,-1),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("$1$",(0,1),W); label("$2$",(0,2),W); [/asy]