Post Reply 
Help with Piecewise function
02-01-2015, 04:43 PM (This post was last modified: 02-01-2015 05:55 PM by salvomic.)
Post: #11
RE: Help with Piecewise function
(02-01-2015 04:10 PM)parisse Wrote:  what's wrong? Your function is odd.

oh, you are right!
f(t)*cos(t) should be odd and the right formula should be, in this case: bk = (1/π)*Int(f(t)*sin(kt),t,-pi,pi) and all ak are 0...
The result (in my book) it's 4/(kπ) if k is odd (like the formula of XCAS: fourier_bn(f(t),t,2*pi,n,-pi) returns (-(-1)^n*2+2)/(n*pi)), I think...

I must rewrite my program for Fourier!

Off topic: there is in Prime a way to check if a function is even or odd? It would be useful for my program Smile

Thank you

salvo

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Help with Piecewise function - salvomic - 02-01-2015, 10:46 AM
RE: Help with Piecewise function - Snorre - 02-01-2015, 12:34 PM
RE: Help with Piecewise function - Snorre - 02-01-2015, 02:00 PM
RE: Help with Piecewise function - Snorre - 02-01-2015, 02:47 PM
RE: Help with Piecewise function - parisse - 02-01-2015, 02:55 PM
RE: Help with Piecewise function - parisse - 02-01-2015, 04:10 PM
RE: Help with Piecewise function - salvomic - 02-01-2015 04:43 PM
RE: Help with Piecewise function - Han - 02-01-2015, 06:09 PM
RE: Help with Piecewise function - parisse - 02-01-2015, 05:44 PM



User(s) browsing this thread: 1 Guest(s)