diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/media9/files/epix.asy')
-rw-r--r-- | Master/texmf-dist/source/latex/media9/files/epix.asy | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/media9/files/epix.asy b/Master/texmf-dist/source/latex/media9/files/epix.asy new file mode 100644 index 00000000000..60720aaba05 --- /dev/null +++ b/Master/texmf-dist/source/latex/media9/files/epix.asy @@ -0,0 +1,22 @@ +//Asymptote source file of epix.prc +// +//taken from http://asymptote.sourceforge.net/gallery/3D%20graphs/ +//and slightly modified +// +//run asy -k --tex=pdflatex on this file to generate standalone PRC + +import graph3; + +size(200,200,IgnoreAspect); + +currentprojection=perspective(4,2,3); +//currentprojection=perspective(0,0,1); + +real f(pair z) {return z.y^3/2-3z.x^2*z.y;} + +draw(surface(f,(-1,-1),(1,1),nx=10,Spline),green,render(merge=true)); +draw(Label("$y$",1),(0,0,0)--(0,2,0),red,Arrow3); + +draw(Label("$x$",1),(0,0,0)--(2,0,0),red,Arrow3); +draw(Label("$z$",1),(0,0,0)--(0,0,2.5),red,Arrow3); +label("$z=\frac{1}{2}y^3-3x^2y$",(0.25,0.25,2),NE); |