Numerical solution of equality

Hello! Anyone can help me figure out how to solve (numerically, not graphically) for t in the following equation:
sin(wn*t)=(w/wn)*sin(w*t)
Thanks.

Answers (1)

The solution is trivial.
t == 0
Assuming that you want a non-trivial solution, are w and wn known? If not, then no numerical solution exists.
If w and wn have known numerical values, then use fzero. Just subtract the two, and solve the problem
sin(wn*t) - (w/wn)*sin(w*t)==0
That will require starting values for t, since there may well be multiple solutions. Or you can use the symbolic toolbox. But only if w and wn are known.

2 Comments

Hello!
Yes, wn and w are known a priori, and t is limited within a range. I did tried using fsolve and it works good enough, except that the limit needs to be specified close enough (but not equal) to zero as the starting point, otherwise the first zero that the solver finds is zero.
Do you know if there is a way to make the solver output the first 2 or 3 zeros/poles?
fsolve accepts a range as a starting point, and you can use realmin as the lower bound of the range to avoid 0.

Sign in to comment.

Asked:

on 22 Nov 2017

Commented:

on 24 Nov 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!