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(-2.5,2.5);
+
xaxis(-5,5);
yaxis(0,2.5);
+
yaxis(-3,3);
  
real f(real x)  
+
real f(real x) { return sin(x); }
{  
+
real g(real x) { return x - x^3/6; }
return abs(x);
+
real h(real x) {return x - x^3/6 + x^5/120; }
}  
+
real i(real x) {return x - x^3/6 + x^5/120 - x^7/5040; }
draw(graph(f,-2,2),blue);
 
  
label("$|x|$",(2,2),E);
+
draw(graph(f,-5,5));
 +
draw(graph(g,-3.3,3.3),dotted);
 +
draw(graph(h,-4.2,4.2),dotted);
 +
draw(graph(i,-4.5,4.5),dotted);
 +
 
 +
label("$\sin(x)$",(5,sin(5)),E);
 +
label("$T_3$",(3.3,-3),S);
 +
label("$T_5$",(4.2,3),N);
 +
label("$T_7$",(4.5,-3),S);
 
</asy>
 
</asy>

Revision as of 13:56, 24 April 2015

[asy] Label f; f.p=fontsize(6); xaxis(-5,5); yaxis(-3,3);  real f(real x) { return sin(x); } real g(real x) { return x - x^3/6; } real h(real x) {return x - x^3/6 + x^5/120; } real i(real x) {return x - x^3/6 + x^5/120 - x^7/5040; }  draw(graph(f,-5,5)); draw(graph(g,-3.3,3.3),dotted); draw(graph(h,-4.2,4.2),dotted); draw(graph(i,-4.5,4.5),dotted);  label("$\sin(x)$",(5,sin(5)),E); label("$T_3$",(3.3,-3),S); label("$T_5$",(4.2,3),N); label("$T_7$",(4.5,-3),S); [/asy]