Difference between revisions of "User:5849206328x"

m
m
Line 5: Line 5:
 
yaxis(0,2);
 
yaxis(0,2);
  
real f(real x) { return e^(0.6 * x); }
+
real e = 2.718281828459045235360287471352662497757247093699959574966967627724076630353;
 +
real f(real x) { return 0.5 * e^(0.6 * x); }
 +
real g(real x) { return 0.5 * (1.6)^(x/1); }
 +
real h(real x) { return 0.5 * (1.06)^(x/0.1); }
  
draw(graph(f,0,2),blue);
+
draw(graph(f,0,2));
 +
for (int i = 0; i < 2; ++i) {
 +
draw((1 * i, g(1 * i))--(1 * (i + 1), g(1 * (i + 1))), blue);
 +
}
 +
for (int i = 0; i < 20; ++i) {
 +
draw((0.1 * i, h(0.1 * i))--(0.1 * (i + 1), h(0.1 * (i + 1))), purple);
 +
}
 
</asy>
 
</asy>

Revision as of 14:36, 27 April 2015

[asy] Label f; f.p=fontsize(6); xaxis(0,2); yaxis(0,2);  real e = 2.718281828459045235360287471352662497757247093699959574966967627724076630353; real f(real x) { return 0.5 * e^(0.6 * x); } real g(real x) { return 0.5 * (1.6)^(x/1); } real h(real x) { return 0.5 * (1.06)^(x/0.1); }  draw(graph(f,0,2)); for (int i = 0; i < 2; ++i) { draw((1 * i, g(1 * i))--(1 * (i + 1), g(1 * (i + 1))), blue); } for (int i = 0; i < 20; ++i) { draw((0.1 * i, h(0.1 * i))--(0.1 * (i + 1), h(0.1 * (i + 1))), purple); } [/asy]