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(-3,3);
+
xaxis(-4,4);
yaxis(-3,3);
+
yaxis(-4,4);
  
real f1(real x) { return 1/3 * (x^3 - 3*x); }
+
real f1(real x) { return (-2) * cos(x); }
  
draw(graph(f1,-3,3));
+
draw(graph(f1,-4,4));
 +
draw((-pi,-0.1)--(-pi,0.1)); draw((pi,-0.1)--(pi,0.1));
 +
draw((-0.1,2)--(0.1,2)); draw((-0.1,-2)--(0.1,-2));
 +
draw((-2,-0.1)--(-2,0.1)); draw((2,-0.1)--(2,0.1));
  
dot((-1,f1(-1))); dot((1,f1(1))); dot((2,f1(2)));
+
draw((-2,f1(2))--(2,f1(2)),dashed);
draw((-1,f1(-1))--(2,f1(2)),dashed);
 
  
limits((-3,-3),(3,3),Crop);
+
label("$-\pi$",(-pi,-0.1),S); label("$\pi$",(pi,-0.1),S);
 +
label("$mgl$",(-0.1,2),W); label("$-mgl$",(-0.1,-2),SW);
 +
label("$-\theta_0$",(-2,-0.1),S); label("$\theta_0$",(2,-0.1),S);
 +
label("$E$",(-1,f1(2)),N);
 +
 
 +
limits((-4,-4),(4,4),Crop);
 
</asy>
 
</asy>

Revision as of 13:57, 17 July 2015

[asy] import slopefield;  real e  = 2.718281828459045235360287471352662497757247093699959574966967627724076630353; real pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286;  // Label f; // f.p=fontsize(6); xaxis(-4,4); yaxis(-4,4);  real f1(real x) { return (-2) * cos(x); }  draw(graph(f1,-4,4)); draw((-pi,-0.1)--(-pi,0.1)); draw((pi,-0.1)--(pi,0.1)); draw((-0.1,2)--(0.1,2)); draw((-0.1,-2)--(0.1,-2)); draw((-2,-0.1)--(-2,0.1)); draw((2,-0.1)--(2,0.1));  draw((-2,f1(2))--(2,f1(2)),dashed);  label("$-\pi$",(-pi,-0.1),S); label("$\pi$",(pi,-0.1),S); label("$mgl$",(-0.1,2),W); label("$-mgl$",(-0.1,-2),SW); label("$-\theta_0$",(-2,-0.1),S); label("$\theta_0$",(2,-0.1),S); label("$E$",(-1,f1(2)),N);  limits((-4,-4),(4,4),Crop); [/asy]