Re: FOURIER


[Prev][Next][Index][Thread]

Re: FOURIER



Juergen Schultz (Juergen.Schultz@fh-zwickau.de) wrote:
: I am looking for a TI92 program to calculate fourier functions. I know there
: is a TI85 program, doing just this, but at converting to TI92 there are
: some commands which can not be converted. For example "dimL"
: which does not exist in TI92 programming language. Can anyone tell
: me where to find a Fourier.92? program file or how to convert
: the TI85 program to TI92 ? Or is anyone out there who can tell me where to
: find a description of the TI85 programming language ?


I am probably the one who wrote that program (Well, I wrote one and sent it to
ticalc.org.


All DimL does is create a list of a certain length.  5->DimL A would make a
list called A with 5 elements, set initially to 0.


Of course you could just write a straight TI-92 program to do it, which
would probably be really good because it would give 'exact' answers like pi
instead of 3.141592...


It really is very simple
N := number of terms
for i := 1 to N
        a(N) := integral (f(t) * cos (N*2*Pi*t/T) dt, t = 0..T)
        b(N) := integral (f(t) * sin (N*2*Pi*t/T) dt, t = 0..T)
        c(N) := sqrt(a(N)^2 + b(N)^2)
        phi(N) := arctan(B(N)/A(N)) <- This may be A/B, I forget


Thats the main part of it.  The rest is user interface and displaying the
results.  Not knowing more about the TI-92 I can't give much more help.


<pre>
--
|Shawn D'Alimonte       |Sec. Year Elec. Eng at Ryerson Polytechnic Univ. |
|sdalimon@acs.ryerson.ca|Amiga Fan  A3000/030/25/6MB/92MB                 |
|aa600@torfree.net      |           A1200/030/40/6MB/80MB                 |
</pre>


References: