Does CPLua support the FFT from the CP's CAS? This could REALLY be useful.
EDIT: I suspect the problem is CPLua's lack of support for complex numbers, maybe?

Fast Fourier Transform
Started by
Quadricode
, Feb 12 2007 12:54 AM
5 replies to this topic
#1
Posted 12 February 2007 - 12:54 AM
#2
Posted 12 February 2007 - 07:54 AM
If you have the OS 3.0 or 3.01, yes it does.

#3
Posted 12 February 2007 - 08:19 PM
How do you use the FFT?
I have tried:
However, I get no result.
I have tried:
require("cas") a=cas("{1,2,3,4}") b=cas.FFT(a,1) print(b)
However, I get no result.

#4
Posted 13 February 2007 - 12:43 PM
Hmm... Yes it doesn't work.
But this works well.
But this works well.
require("cas") b=cas("FFT({1,2,3,4},1)") print(b)
#5
Posted 13 February 2007 - 07:35 PM
Ah. All of it works perfectly now. I did not have my calculator in complex mode.

#6
Posted 14 February 2007 - 11:39 AM
Yeah, I think Orwell should add a mode setup function some day, as cas("SetComplex") doesn't work.

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users