Difference between revisions of "User:5849206328x"

m
m
Line 2: Line 2:
 
import slopefield;
 
import slopefield;
  
size(216);
+
size(288);
  
 
real e  = 2.718281828459045235360287471352662497757247093699959574966967627724076630353;
 
real e  = 2.718281828459045235360287471352662497757247093699959574966967627724076630353;
Line 9: Line 9:
 
// Label f;
 
// Label f;
 
// f.p=fontsize(6);
 
// f.p=fontsize(6);
//xaxis(0,5);
+
xaxis(0,5);
//yaxis(0,5);
+
yaxis(-2,3);
  
//real f(real x) { return (2/3) * (e^(-15 * x) + e^((-5/3) * x)); }
+
real f(real x) { return 3 * (-1/x + 1/(2*x^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 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.0001,5)); draw((-0.2,-1.5)--(1,-1.5)--(1,0),dashed);
  
dot((0,0)); draw(circle((0,0),80)); dot((64,48));
+
label("$V$",(0,3),W); label("$0$",(0,0),W); label("$E_{min}$",(-0.2,-1.5),W);
draw((64,48)--(28,21),EndArrow); draw((64,48)--(28,96),EndArrow);
+
label("$r_{*}$",(1,0),N); label("$r$",(5,0),E);
label("$m$",(64,48),NE); label("$\dot{\mathbf{r}}$",(28,96),NE); label("$-\frac{mv^2}{r}\hat{\mathbf{r}}$",(28,21),SE);
 
  
//limits((0,-2),(4,2),Crop);
+
limits((-1,-2),(5.2,3.2),Crop);
 
</asy>
 
</asy>

Revision as of 16:06, 19 July 2015

[asy] import slopefield;  size(288);  real e  = 2.718281828459045235360287471352662497757247093699959574966967627724076630353; real pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286;  // Label f; // f.p=fontsize(6); xaxis(0,5); yaxis(-2,3);  real f(real x) { return 3 * (-1/x + 1/(2*x^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))); }  draw(graph(f,0.0001,5)); draw((-0.2,-1.5)--(1,-1.5)--(1,0),dashed);  label("$V$",(0,3),W); label("$0$",(0,0),W); label("$E_{min}$",(-0.2,-1.5),W); label("$r_{*}$",(1,0),N); label("$r$",(5,0),E);  limits((-1,-2),(5.2,3.2),Crop); [/asy]