Difference between revisions of "User:5849206328x"
5849206328x (talk | contribs) m |
5849206328x (talk | contribs) m |
||
Line 4: | Line 4: | ||
Label f; | Label f; | ||
f.p=fontsize(6); | f.p=fontsize(6); | ||
− | xaxis( | + | xaxis(-1.5,1.5); |
− | yaxis( | + | yaxis(-1.5,1.5); |
real e = 2.718281828459045235360287471352662497757247093699959574966967627724076630353; | real e = 2.718281828459045235360287471352662497757247093699959574966967627724076630353; | ||
real pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286; | real pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286; | ||
− | real f(real x) { return | + | real f(real x) { if (x < 0) return -1; else return 1; } |
+ | real h(real x) { if (x != 0) return sin(1/x); else return 0; } | ||
− | draw(graph(f, | + | draw(graph(f,-1.5,1.5,n=10000), red); |
− | + | draw(graph(h,-1.5,1.5,n=10000), blue); | |
− | |||
− | |||
− | |||
− | |||
− | draw(( | ||
− | |||
− | label("$f | + | label("$f$",(-1.5,-1),W); label("$h$",(-1.5,h(-1.5)),W); |
− | |||
− | label("$ | ||
− | |||
</asy> | </asy> |
Revision as of 11:58, 26 May 2015