gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/examples/linfit.lua
diff options
context:
space:
mode:
authorunknown <francesco abbate@.cro.st.com>2011年05月19日 17:00:12 +0200
committerunknown <francesco abbate@.cro.st.com>2011年05月19日 17:00:12 +0200
commitca81e85ae1979fb41910e9fc75a74001d5b53226 (patch)
tree447b01007f966b32dea8e38290f1d66e5428d07d /examples/linfit.lua
parentc2a691c195c1722813fcb4411811c203f972a68e (diff)
parentcebb3b91664e496120b30798b6cc59d1148b0ce7 (diff)
downloadgsl-shell-ca81e85ae1979fb41910e9fc75a74001d5b53226.tar.gz
Merge branch 'luajit2' into doc-2.0
Diffstat (limited to 'examples/linfit.lua')
-rw-r--r--examples/linfit.lua 2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/linfit.lua b/examples/linfit.lua
index 3b023bcf..df67c28c 100644
--- a/examples/linfit.lua
+++ b/examples/linfit.lua
@@ -16,7 +16,7 @@ function demo1()
print('Linear fit coefficients: ')
- fit = function(x) return c[1]+c[2]*x end
+ local fit = function(x) return c[1]+c[2]*x end
p = graph.fxplot(fit, x0, x1)
p:add(graph.xyline(x, y), 'blue', {{'stroke'}, {'marker', size=5}})
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月29日 13:19:42 +0000

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