5
f(w,t)=sin(wt)/w. Help make defined at w = 0.
(discuss.tchncs.de)
General community for all things mathematics on @lemmy.world
Submit link and text posts about anything at all related to mathematics.
Questions about mathematical topics are allowed, but NO HOMEWORK HELP. Communities for general math and homework help should be firmly delineated just as they were on reddit.
People are being kind of rude, sorry about that.
I also think they aren't understanding your problem. You have a function f(w,t) = sin(wt)/w which is well defined everywhere (in the sense of limits at w=0 ), but for which the naive implementation (compute sin(wt), then divide by w) gives the "wrong" output for w=0 (an error instead of t).
Note that the function sin(x)/x has a name, sinc(x). Using this to rewrite your function gives f(w,t) = sin(wt)/w = tsin(wt)/(wt) = tsinc(wt).
Now you just need to find a quality implementation of sinc from a math library.