Difference between revisions of "User:5849206328x"

m
m
Line 7: Line 7:
 
// Label f;
 
// Label f;
 
// f.p=fontsize(6);
 
// f.p=fontsize(6);
xaxis(0,1);
+
xaxis(0,4);
yaxis(0,0.5);
+
yaxis(-1,2);
  
//real f(real x) { return (-2) * cos(x); }
+
real f(real x) { return (2/3) * (e^(-15 * x) + e^((-5/3) * x)); }
pair g(real t, real k) { return (1/k * 3/5 * (1 - e^(-k * t)), -t/k + 1/k * (4/5 + 1/k) * (1 - e^(-k * t))); }
+
real g(real x) { return (4/3) * e^(-x) * cos(4 * x); }
pair g1(real t) { return g(t,1); }
+
real h(real x) { return (4/3) * e^(-5 * x) * (1 + 5 * x); }
pair g2(real t) { return g(t,0.2); }
+
//pair g(real t, real k) { return (1/k * 3/5 * (1 - e^(-k * t)), -t/k + 1/k * (4/5 + 1/k) * (1 - e^(-k * t))); }
pair h(real t) { return (3/5 * t, -1/2 * t^2 + 4/5 * t); }
 
  
draw(graph(g1,0,2));
+
draw(graph(f,0,4));
draw(graph(g2,0,2));
+
draw(graph(g,0,4));
draw(graph(h,0,2));
+
draw(graph(h,0,4));
  
label("$k = 1$",(0.44,0),NE);
+
limits((0,-2),(4,2),Crop);
label("$k = 0.1$",(0.79,0),NE);
 
label("$k = 0$",(0.96,0),NE);
 
 
 
//draw(graph(f,-4,4));
 
 
 
limits((0,0),(2,2),Crop);
 
 
</asy>
 
</asy>

Revision as of 19:03, 18 July 2015

[asy] import slopefield;  real e  = 2.718281828459045235360287471352662497757247093699959574966967627724076630353; real pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286;  // Label f; // f.p=fontsize(6); xaxis(0,4); yaxis(-1,2);  real f(real x) { return (2/3) * (e^(-15 * x) + e^((-5/3) * x)); } real g(real x) { return (4/3) * e^(-x) * cos(4 * x); } real h(real x) { return (4/3) * e^(-5 * x) * (1 + 5 * x); } //pair g(real t, real k) { return (1/k * 3/5 * (1 - e^(-k * t)), -t/k + 1/k * (4/5 + 1/k) * (1 - e^(-k * t))); }  draw(graph(f,0,4)); draw(graph(g,0,4)); draw(graph(h,0,4));  limits((0,-2),(4,2),Crop); [/asy]