home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 June / Chip_2002-06_cd1.bin / zkuste / derive / download / Setup.exe / %MAINDIR% / Math / Plot3d.mth < prev    next >
Encoding:
Text File  |  2002-05-15  |  1.9 KB  |  112 lines

  1. "A mountain:"
  2.  
  3. z=1/(9+x^2+y^2)
  4.  
  5. "A mountain and a crater:"
  6.  
  7. z=-y/(9+x^2+y^2)
  8.  
  9. "Two mountains:"
  10.  
  11. z=1/(9+x^2+(y-3)^2)+1/(9+x^2+(y+3)^2)
  12.  
  13. "A hanging valley:"
  14.  
  15. z=7*x^2-y^3
  16.  
  17. "A saddle:"
  18.  
  19. z=y^2-x^2
  20.  
  21. "A sway-back roof:"
  22.  
  23. z=y^2/5-3*ABS(x)
  24.  
  25. "A pinched ridge:"
  26.  
  27. z=(y^2+1/10)/(x^2+y^2+1/10)
  28.  
  29. "A monkey saddle:"
  30.  
  31. z=y*(3*x^2-y^2)
  32.  
  33. "A pinched monkey saddle:"
  34.  
  35. z=x*y*(SIGN(x+1/10)*SQRT(x^2+y^2)+2*y)/(x^2+y^2+1/10)
  36.  
  37. "Intersecting ridges:"
  38.  
  39. z=-SQRT(ABS(x*y))
  40.  
  41. "A pagoda roof:"
  42.  
  43. z=-SQRT(ABS(x))-SQRT(ABS(y))
  44.  
  45. "A ridge intersecting a valley:"
  46.  
  47. z=SQRT(ABS(x))-SQRT(ABS(y))
  48.  
  49. "A ridge that becomes a valley:"
  50.  
  51. z=-y*SQRT(ABS(x))
  52.  
  53. "A Hawaiian volcano:"
  54.  
  55. z=1000/(50+((x^2+y^2)^(1/2)-37/10)^2)-15
  56.  
  57. "A Mexican sombrero:"
  58.  
  59. z=12*COS((x^2+y^2)/4)/(3+x^2+y^2)
  60.  
  61. "A surfer's perfect wave:"
  62.  
  63. z=EXP(-x/9)*(pi/2-ATAN(y))
  64.  
  65. "A cliff is born:"
  66.  
  67. z=ATAN(-y,x+1/10)
  68.  
  69. "Two mountains separated by a crater:"
  70.  
  71. z=-COS(3*pi*x/10)*COS(pi*y/10)
  72.  
  73. "Three mountains:"
  74.  
  75. z=-COS(3*pi*x/10)*SIN(pi*y/5)
  76.  
  77. "A torus (donut); s and t go from -π to π:"
  78.  
  79. [4*COS(t)-SIN(s)*COS(t),4*SIN(t)-SIN(s)*SIN(t),COS(s)]
  80.  
  81. "A twisted helix space curve; s goes from -2π to 2π:"
  82.  
  83. [COS(s),SIN(s),s]
  84.  
  85. "A twisted helix; s goes from -5 to 5, and t goes from -π to π:"
  86.  
  87. [COS(s)*(4-COS(t))+SQRT(26)*SIN(s)*SIN(t)/26,SIN(s)*(4-COS(t))-SQRT(26)*COS(s~
  88. )*SIN(t)/26,5*SQRT(26)*SIN(t)/26+4*s/5]
  89.  
  90. "Spiral staircase"
  91.  
  92. [u*SIN(t),u*COS(t),t]
  93.  
  94. "Ring around a donut"
  95.  
  96. [10*COS(a*pi/5)-3*SIN(b*pi/5)*COS(a*pi/5),10*SIN(a*pi/5)-3*SIN(b*pi/5)*SIN(a*~
  97. pi/5),COS(b*pi/5)]
  98.  
  99. "Open ended box:"
  100.  
  101. [[[3,3,3],[3,3,-3]],[[3,-3,3],[3,-3,-3]],[[-3,-3,3],[-3,-3,-3]],[[-3,3,3],[-3~
  102. ,3,-3]],[[3,3,3],[3,3,-3]]]
  103.  
  104. "A sphere of radius 5; s goes from -π to π, t goes from 0 to π"
  105.  
  106. r=5
  107.  
  108. "The side, top, and bottom of a tin can; s goes from -5 to 5, t goes from -π ~
  109. to π"
  110.  
  111. [[4,t,s],[4/10*s+2,t,5],[4/10*s+2,t,-5]]
  112.