Classic Fourier Series
|
02-01-2015, 01:52 PM
(This post was last modified: 02-01-2015 05:07 PM by salvomic.)
Post: #19
|
|||
|
|||
RE: Classic Fourier Series
(01-31-2015 09:11 PM)Snorre Wrote: a program is always a good idea ;-) Hi Snorre, after some tries now I'm working on this idea, just for fun (and to understand): Code:
With this, after having defined g(t):=t^2, I get: fourcoeff(g,1) -> ok, correct value fourcoeff(t^2,1) -> ok, correct value, without any warning fourcoeff(x^2,1) -> exit with the message. This is a workaround, sure, and the the program could be strongly improved! So the "type" control is working (it now handle a function in t and and expression in t), but it would better to set another control to say "if tipo=DOM_SYMBOLIC and the letter is not "t" substitute any letter like x, y, z... into "t") or reformat fun in fun(t) in some way but a efficient one (now the expression could have "t" without to be correct)... Thank you for patience ∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)