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(1,3);
+
xaxis(-2.5,2.5);
 +
yaxis(0,2.5);
  
 
real f(real x)  
 
real f(real x)  
 
{  
 
{  
return 0.2 * (x - 1)^2 + 0.5;  
+
return abs(x);
 
}  
 
}  
draw(graph(f,1,3));
+
draw(graph(f,-2,2),blue);
  
dot((1.5,0.55));
+
label("$|x|$",(2,2),E);
dot((2,0.7));
 
draw((1,0.4)--(3,1),dotted);
 
draw((1,0.45)--(3,0.85),dotted);
 
 
 
draw((1.5,0)--(1.5,1.5),dashed);
 
draw((2,0)--(2,1.5),dashed);
 
 
 
label("$f(x)$",(3,1.3),E);
 
label("$x_0$",(1.5,-0.1),N);
 
label("$x_0 + h$",(2,-0.1),N);
 
 
</asy>
 
</asy>

Revision as of 13:14, 24 April 2015

[asy] Label f; f.p=fontsize(6); xaxis(-2.5,2.5); yaxis(0,2.5);  real f(real x)  {  return abs(x); }  draw(graph(f,-2,2),blue);  label("$|x|$",(2,2),E); [/asy]