Difference between revisions of "User:5849206328x"

m
m
Line 6: Line 6:
  
 
real e = 2.718281828459045235360287471352662497757247093699959574966967627724076630353;
 
real e = 2.718281828459045235360287471352662497757247093699959574966967627724076630353;
real f(real x) { return 0.5 * e^(0.6 * x); }
+
real f(real x) { return 1.8 * e^((-3) * x); }
real g(real x) { return 0.5 * (1.6)^(x/1); }
+
real g(real x) { return (-1.8) * e^((-3) * x) + 1.8 * e^((-1) * x); }
real h(real x) { return 0.5 * (1.06)^(x/0.1); }
 
  
 
draw(graph(f,0,2));
 
draw(graph(f,0,2));
for (int i = 0; i < 2; ++i) {
+
draw(graph(g,0,2));
draw((1 * i, g(1 * i))--(1 * (i + 1), g(1 * (i + 1))), blue);
+
 
}
+
label("$\mathtt{A}$",(0.7,0.7),N);
for (int i = 0; i < 20; ++i) {
+
label("$\mathtt{B}$",(0.7,0.25),N);
draw((0.1 * i, h(0.1 * i))--(0.1 * (i + 1), h(0.1 * (i + 1))), purple);
 
}
 
 
</asy>
 
</asy>

Revision as of 15: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 1.8 * e^((-3) * x); } real g(real x) { return (-1.8) * e^((-3) * x) + 1.8 * e^((-1) * x); }  draw(graph(f,0,2)); draw(graph(g,0,2));  label("$\mathtt{A}$",(0.7,0.7),N); label("$\mathtt{B}$",(0.7,0.25),N); [/asy]