summaryrefslogtreecommitdiff
path: root/plot.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plot.lua')
-rw-r--r--plot.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/plot.lua b/plot.lua
new file mode 100644
index 0000000..18cf16b
--- /dev/null
+++ b/plot.lua
@@ -0,0 +1,15 @@
+local fn = function(x)
+ local fn1 = function() return 0.515 end
+ local fn2 = function(arg1) return x end
+ return (x*math.exp((x/0.729)))
+end
+
+f = io.open('data.ssv', 'w')
+x0 = -1
+x1 = 1
+for n=0,1000 do
+ local x = (n * (2/1000)) + x0
+ print(x)
+ f:write(string.format("%d %f %f\n", n, x, fn(x)))
+end
+f:close()