Difference between revisions of "User:5849206328x"
5849206328x (talk | contribs) m |
5849206328x (talk | contribs) m |
||
Line 2: | Line 2: | ||
Label f; | Label f; | ||
f.p=fontsize(6); | f.p=fontsize(6); | ||
− | xaxis( | + | xaxis(0,5); |
− | |||
− | real f(real x) { return | + | real f(real x) |
− | + | { | |
− | + | return 0.01 * (3x^4 - 20x^3 + 36x^2 + 10x + 200 + 50 * sin(x)); | |
− | + | } | |
− | + | for (int i = 1; i < 7; ++i) { | |
− | + | 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(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 15:53, 24 April 2015