Page 1 sur 1

Un bout du paraboloïde hyperbolique d'équation z=xy

Posté : sam. 10 avr. 2010, 16:17
par GM
Un bout du paraboloïde hyperbolique d'équation z=xy

Figure asymptote 57515ae4a5c8eb4c6ee0cf3e505e3139
*** Pour masquer/découvrir le code Asymptote qui a permis de créer la figure, il faut cliquer dessus. ;-) ***

CODE ASYMPTOTE de la figure ci-dessus : Tout sélectionner
  1.  
  2. import graph3;
  3. import grid3;
  4. import contour;
  5. size(10cm,IgnoreAspect);
  6. real f(pair z) {
  7. return z.x*z.y;
  8. }
  9. real[] lignesniveaux={25,50,75,100,125};
  10. currentprojection=orthographic(-15,-25,200);
  11. limits((0,0,0),(12,12,150));
  12. grid3(new grid3routines [] {XYXgrid, ZXgrid(12), ZYgrid(12)},
  13. Step=50,
  14. step=25,
  15. pGrid=new pen[] {red, blue, blue},
  16. pgrid=new pen[] {0.5red, orange, orange});
  17. xaxis3(Label("$x$",position=MidPoint,align=SE),
  18. Bounds(Min,Min),
  19. OutTicks(Step=2));
  20. yaxis3(Label("$y$",position=MidPoint,align=SW),
  21. Bounds(Min,Min),
  22. OutTicks(Step=2));
  23. zaxis3(Bounds(Max,Both));
  24. zaxis3(Label("$z=xy$",position=EndPoint,align=3N+E),
  25. XYEquals(0,12),
  26. OutTicks(beginlabel=false,Step=50,step=25,Label(align=Y)));
  27. draw(surface(f,(0,0),(12,12),nx=12,Spline),
  28. lightgray+white,meshpen=black+thick(),nolight);
  29. Label [] L=sequence(new Label(int i) {
  30. return scale(0.9)*Label(format("$z=%g$",lignesniveaux[i]),
  31. align=NW,BeginPoint);
  32. },5);
  33. draw(L,lift(f,contour(f,(0,0),(12,12),lignesniveaux)),1.5bp+.7red);
  34.