| 1 |
//Asymptote source file of epix.prc |
| 2 |
// |
| 3 |
//taken from http://asymptote.sourceforge.net/gallery/3D%20graphs/ |
| 4 |
//and slightly modified |
| 5 |
// |
| 6 |
//run asy -k --tex=pdflatex on this file to generate standalone PRC |
| 7 |
|
| 8 |
import graph3; |
| 9 |
|
| 10 |
size(200,200,IgnoreAspect); |
| 11 |
|
| 12 |
currentprojection=perspective(4,2,3); |
| 13 |
//currentprojection=perspective(0,0,1); |
| 14 |
|
| 15 |
real f(pair z) {return z.y^3/2-3z.x^2*z.y;} |
| 16 |
|
| 17 |
draw(surface(f,(-1,-1),(1,1),nx=10,Spline),green,render(merge=true)); |
| 18 |
draw(Label("$y$",1),(0,0,0)--(0,2,0),red,Arrow3); |
| 19 |
|
| 20 |
draw(Label("$x$",1),(0,0,0)--(2,0,0),red,Arrow3); |
| 21 |
draw(Label("$z$",1),(0,0,0)--(0,0,2.5),red,Arrow3); |
| 22 |
label("$z=\frac{1}{2}y^3-3x^2y$",(0.25,0.25,2),NE); |