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,4);
+
//xaxis(0,4);
yaxis(-1,2);
+
//yaxis(-1,2);
  
real f(real x) { return (2/3) * (e^(-15 * x) + e^((-5/3) * x)); }
+
//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))); }
 
//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(f,0,4));
draw(graph(g,0,4));
 
draw(graph(h,0,4));
 
  
limits((0,-2),(4,2),Crop);
+
fill((-5,-2)--(-1,2)--(7,2)--(3,-2)--cycle,lightgray);
 +
dot((0,0)); draw((0,0)--(3,0),EndArrow); draw((3,0)--(4,1),EndArrow); draw((3,0)--(3,3),EndArrow);
 +
 
 +
label("$\mathbf{0}$",(0,0),SW); label("$\mathbf{r}$",(1.5,0),S);
 +
label("$\dot{\mathbf{r}}$",(4,1),E); label("$\mathbf{L}$",(3,3),E);
 +
 
 +
//limits((0,-2),(4,2),Crop);
 
</asy>
 
</asy>

Revision as of 10:28, 19 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)); } //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));  fill((-5,-2)--(-1,2)--(7,2)--(3,-2)--cycle,lightgray); dot((0,0)); draw((0,0)--(3,0),EndArrow); draw((3,0)--(4,1),EndArrow); draw((3,0)--(3,3),EndArrow);  label("$\mathbf{0}$",(0,0),SW); label("$\mathbf{r}$",(1.5,0),S); label("$\dot{\mathbf{r}}$",(4,1),E); label("$\mathbf{L}$",(3,3),E);  //limits((0,-2),(4,2),Crop); [/asy]