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 2e1a61aa..6079b661 100644
--- a/examples/linfit.lua
+++ b/examples/linfit.lua
@@ -54,7 +54,7 @@ function demo3()
local legmodel = |j, x| j == 0 and 1 or legendreP(j, xn(x))
local X = new(n, kfit+1, |i,j| legmodel(j-1, x[i]))
local c = mlinear(X, y)
- local yfit = mul(X, c)
+ local yfit = X * c
p = plot('Legendre Polinomial fit of Bessel J3(x)')
p:addline(xyline(x, yfit))
p:addline(xyline(x, y), 'blue', {{'marker', size=5}})
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月26日 20:13:52 +0000

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