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:
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.46.0) at 2025年09月30日 18:02:50 +0000

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