Thank you Allin,
I tested the new script and it works fine.
Thinking out loud, for outdated commands - like cmult() - could the « help
section » also mention that the command is no longer used? When a script
fails users’ first reaction is to type « help xyz » to check for coding
errors (as I did in this case but everything looked ok).
Kind regards,
Artur
*__________________________________________*
Le ven. 24 juil. 2026 à 9:04 PM, Cottrell, Allin <cottrell(a)wfu.edu> a
écrit :
On Fri, Jul 24, 2026 at 1:53 PM Artur Bala
<artur.bala.tn(a)gmail.com>
wrote:
>
> Thank you Sven,
> It's the script file on Fast Fourier Transform from Gretl's examples.
> (I just grabbed some script files at random for testing purposes,
nothing specific.)
Thanks for the report, Artur. That example script was way out of date;
we should have noticed! It's now replaced in git. Here's a preview of
the corrected version:
# define two polynomials
a = { 1, 0.5, 0, 0 }'
b = { 1, 0.3, -0.8, 0 }'
print a b
# perform the transforms
f = fft(a ~ b)
print f
# multiply the two transforms
fc = f[,1] .* f[,2]
print fc
# compute the coefficients of c = a * b via the inverse transform
c = ffti(fc)
print c
Allin
_______________________________________________
Gretl-users mailing list -- gretl-users(a)gretlml.univpm.it
To unsubscribe send an email to gretl-users-leave(a)gretlml.univpm.it
Website:
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/