gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/examples/3d.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/3d.lua')
-rw-r--r--examples/3d.lua 26
1 files changed, 0 insertions, 26 deletions
diff --git a/examples/3d.lua b/examples/3d.lua
deleted file mode 100644
index 2ba4d878..00000000
--- a/examples/3d.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-
-use 'math'
-
-require 'plot3d'
-
-function demo1()
- local x = |u,v| (1 + 1/2 * v *cos(u/2))*cos(u)
- local y = |u,v| (1 + 1/2 * v *cos(u/2))*sin(u)
- local z = |u,v| 1/2 * v * sin(u/2)
- return graph.surfplot({x, y, z}, 0, -1, 2*pi, 1, {gridu= 60, gridv= 4, stroke= true})
-end
-
-function demo2()
- local f = |x, y| exp(-(x^2+y^2))*sin(x)
- return graph.plot3d(f, -4, -4, 4, 4, {gridx= 31, gridy= 31})
-end
-
-function demo3()
- local f = |x, y| x^2 - y^2
- return graph.plot3d(f, -3, -3, 3, 3, {stroke= true})
-end
-
-echo([[
-demo1() - Plot the mobieus strip using a parametric rapresentation
-demo2() - Plot example of function f(x,y) = exp(-(x^2+y^2))*sin(x)
-demo3() - Plot example of function f(x,y) = x^2 - y^2]])
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月20日 08:00:00 +0000

AltStyle によって変換されたページ (->オリジナル) /