Spectrum Analysis (Fourier) - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Spectrum Analysis (Fourier) (/thread-11225.html) Spectrum Analysis (Fourier) - toshk - 08-15-2018 07:54 PM compile compile compile compile!!!! The plot you see after a successful run is Magnitude Plot; For Phase plot; plot D3; I Spect() Under this notation in F0 with Xrange of a period or integer multiple of T. eg. F0 for sin(X) in Xrng 0 to 2*pi or -pi to +pi eg. 1*Heaviside(X)+-1*Heaviside(X-1) Xrng 0 to 2; this defines PiecewiseFunction of X=1 between 0 and 1; X=0 elsewhere repeating at a T=2; II spect(lowerLimit, Period) Under this notation plot in F0; don't care about Xrng but specify the range in function call. eg. F0 for sin(X); call function spect(0,2*pi) OR spect(-pi,2*pi); bcos sinX T=2pi always. the ~Fourier plot can be found under Function app. Press plot under Function App. eg. 1*Heaviside(X)+-1*Heaviside(X-1); PiecewiseFunction of X=1 between 0 and 1; X=0 elsewhere; function call spect(0,2) for T=2; check plot on Function App; http://www.hpmuseum.org/forum/thread-4539-post-102189.html#pid102189 [attachment=6217] [attachment=6219] complex function: COS(X)+sin(2X)+COS(3X+.11)+2 at F0 fo(rads/s) for this function is gcd(1,2,3) in exact CAS; hence T=2*pi/gcd(1,2,3) under I notation plot F0 for Xrng 0 to T or 0 to integer*T; then Spect(); under II plot F0 then spect(0,T) RE: Spectrum Analysis (Fourier) - Aries - 08-16-2018 06:27 AM Great, thank you, toshk Best, Aries