FOURIER ver 1.1 by Davide Valenti
(davide.valenti@novanet.it
www.geocities.com/SiliconValley/Chip/2244/hp48.html)
Library No.: 978
Bytes: 1334.5
Cheksum: # 64328d
Date: 15/4/99
Visible files: Fourier - About

-Disclaimer:
This program is distributed freely and provided "as is".
For any bug reporting or suggestion please e-mail me.

-Purpose:
Starting from the poles and the zeros of the Z-transform X(Z) of a sequence x(n), 
Fourier calculates and plots the modulus and the phase of the 
Fourier transform X(e^j*w) versus the normalized pulsation omega (w).

-Installation:
Download the file "fourier.lib" to your hp, place it on the stack, store it in a port 
(for example, to store it in port 0: press 0 STO).
Then powercycle (turn off-on) your HP48.



-Uninstallation:
978 Left Shift LIBRARY DETACH
:0:978 PURGE
If you get an error message ("Object In Use") make a warmstart (ON+C) and retry.

If you prefer you can use my library purging utility "PGLIB".
You can find it on my site (look at the top of the page)



-Usage:
Go in the Library menu (right shift+LIBRARY)
press FOURI and you'll see INIT and ABOUT

Press INIT. In this way you initialize X(Z)=1 and set Z=exp(j*w).
The menu that you see is:


| ZERO | POLE | RECAL | STORE | VIEW |      (next)	| MODU | PHASE | ->MOD | ->PHA |



-ZERO: adds a zero to the Z-transform X(Z) of the sequence.
              
       Example: to add a zero in 1/2 to X=1 (X initialized)
       0.5 ZERO   =>   X=(Z-.5)  (you'll not see anythig on the stack, however) 


-POLE: adds a pole to the Z-transform X(Z) of the sequence.
              
       Example: to add a pole in sqrt(2)/2 to X=(Z-0.5)
       0.707 POLE  =>   X=(Z-.5)*1/(Z-0.707) 


-RECALL: to place a copy of the Z-transform X(Z) on the stack.

-STORE: to store a function (in the variable Z) in X.

        Example: to add a constant multiplicative factor 1.5 (gain) to X=(Z-.5)*1/(Z-0.707)
        RECALL 1.5 * STORE   =>   X=(Z-.5)*1/(Z-0.707)*1.5

-VIEW: To view X(Z) in the equation writer mode.



-MODU: to plot the Fourier transform X(exp(j*w)) of X(Z).
       You can choose a omega (w) pulsation range that goes from -pi to +pi or from 0 to 2pi

-PHASE: as above for the phase.

-->MOD: to calculate the exact value of the Fourier transform in a particular point.
        
        Example: to calculate the value of X=(Z-.5)*1/(Z-0.707) in w=pi/6
        0.523... ->MOD   =>   .8229...

-->PHA: as above for the phase




Davide Valenti, 1999