Classic Fourier Series
|
01-31-2015, 09:53 PM
(This post was last modified: 02-01-2015 10:05 AM by salvomic.)
Post: #14
|
|||
|
|||
RE: Classic Fourier Series
(01-31-2015 09:11 PM)Snorre Wrote: Hello Salvo, hi friend, your tips are very welcome! I'm changing my program in this way. I'm still a newcomer in this programming language, so I love to learn more and more tips! Yes, however, I would export a list of three arguments: a0 (however this one is always the same), ak, bk... Last: doing so: Code:
I set g:=x^2 then input fourcoeff(g(x),1) or fourcoeff(x^2,1) and I get "warning, evaluating invariable expression(value) like if expression was a function. You should write subst(x^2,x,t)"... Sure I miss something else I would better have the possibility to input both functions or expressions :-) For the rest, I would also use the program (or the function we discussed above) with some "piecewise" functions. So I tried to define a function for "square wave", f(t):=PIECEWISE(-π<t<0,-1,t=0,0,t=-π,0,t=π,0,0<t<π,1); this function seem to be ok, but if I use it with the program or with other integrate function I get "No case applies"... Is this the way to use "Piecewise" function or I miss something? Thank you! Salvo |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)