8
submitted 2 weeks ago* (last edited 2 weeks ago) by soupborsh@discuss.tchncs.de to c/math@lemmy.world

Is there a way to make the function

f(w,t)=sin(wt)/w

defined at w = 0?

I want to achieve better numerical stability, and make it continuous everywhere.

Observation: Using lim~w->0~ f(w,t)

I know that at w = 0:

f(0,t) = t

Is it possible to improve this function? I would be really glad to know and why, how. Thank you in advance!

I really do not want to code in smth like: if w < 0.001 { x = t; }

Background notes: My equation also has constant v coefficient, but I removed it for simplicity. f(w,t)=v*sin(wt)/w

If I derived this correctly this should be x component of a motion of a car that rotates with rate w. It goes with const speed and const steer.

These are consts: v - speed, l - base length(dist from rear to front shaft), a - steering angle.

w(a) is defined idk if correctly. w(a) = (vsin(2a))/(2*l) I just logically added proportions, projections, imagining a rear wheel powered car. Put some values I am somewhat confident in, such as: w(0) = 0 w(π/2) = 0

you are viewing a single comment's thread
view the rest of the comments
[-] davidagain@lemmy.world 2 points 2 weeks ago* (last edited 2 weeks ago)

Yes, when w->o, sin(wt)/w -> 1
(and hopefully sinc(0)=1 in any math library),
but also when t->0, sin(wt)/w -> 0.

I know that 0x1=0, but it's not true that there's a continuous function from the plane to the reals based on sin(wt)/w and OP has an interesting problem trying to decide what to do there.

Your answer gives much more accurate answers near zero and is absolutely the best practical solution, but the question of actual zero is interesting and might need context to decide what's best.

this post was submitted on 01 Aug 2026
8 points (100.0% liked)

math

1098 readers
18 users here now

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.

founded 3 years ago
MODERATORS