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(0,5);
+
xaxis(-4,4);
 +
yaxis(0,4);
  
real f(real x)
+
real f(real x) { return 2^x; }
{
+
real g(real x) { return (0.75)^x; }
return 0.01 * (3x^4 - 20x^3 + 36x^2 + 10x + 200 + 50 * sin(x));
+
real h(real x) { return (1.1)^x; }
}
 
  
for (int i = 1; i < 7; ++i) {
+
draw(graph(f,-4,2),blue);
fill((0.5 + 0.5 * i,0)--(0.5 + 0.5 * i, f(0.5 + 0.5 * i))--(1 + 0.5 * i, f(0.5 + 0.5 * i))--(1 + 0.5 * i,0)--cycle,lightblue);
+
draw(graph(g,-4,4),blue);
}
+
draw(graph(h,-4,4),blue);
 
 
draw(graph(f,0,5));
 
draw((1,0)--(1,4),dashed);
 
for (int i = 1; i < 6; ++i) {
 
draw((1 + 0.5 * i,0)--(1 + 0.5 * i, 4),dotted);
 
draw((0.5 + 0.5 * i, f(0.5 + 0.5 * i))--(1 + 0.5 * i, f(0.5 + 0.5 * i)),dotted);
 
}
 
draw((3.5,f(3.5))--(4,f(3.5)),dotted);
 
draw((4,0)--(4,4),dashed);
 
 
</asy>
 
</asy>

Revision as of 14:16, 26 April 2015

[asy] Label f; f.p=fontsize(6); xaxis(-4,4); yaxis(0,4);  real f(real x) { return 2^x; } real g(real x) { return (0.75)^x; } real h(real x) { return (1.1)^x; }  draw(graph(f,-4,2),blue); draw(graph(g,-4,4),blue); draw(graph(h,-4,4),blue); [/asy]