MathStudio  Blog  Share  Manual  Forums  Support 
Bug with solver
  • I seem to have a problem with solutions for a sine function. A 60 hz frequency leads to a problem. A frequency of 60 hz leads to an angular frequency of 377 rad/sec.

    First, look at 3.77 rad/sec, which leads to a correct answer:
    Solve(sin(3.77t),t, [0,10]). Gives, 0, 100 pi/377 for the first two roots

    Next, look at 37.7 rad/sec, which leads to a correct answer:
    Solve(sin(37.7t),t,[0,1]). Gives, 0, 10 pi/377 for the first two roots

    But, for 377 rad/sec, we get an incorrect answer:
    Solve(sin(377t),t,[0,0.1]). Gives, 0, 4 pi/377, the correct answer is 0, pi/377.

    Any thoughts?

    Thanks
  • Actually, in MathStudio I get multiple solutions, all multiples of pi and 2 pi and all correct solutions. That aside, 4*pi/377 is a valid solution just as much as pi/377.
  • Sorry, being a Professor in engineering, leaving out the first non-zero prositive root for a common AC power-line function is not acceptable. I could not recommend the app to my students in this case.
  • I think you did not understand my reply. The equation has multiple solutions. You have given it a rather wide range to solve for and MS did just that, it returns the multiple solutions INCLUDING pi/377. It does not leave out the first non-zero positive root.

  • I ran that too. It picks up the (-)pi/377 on the negative side of zero, but not the
    (+)pi/377 on the positive side of zero. I guess this DOES qualify as a bug. You wanna have some fun? Try the guess interval [0,.02]. It comes up with some crazy (incomplete) set of roots, not symmetric positve x to negative x. The roots are all correct, but very incomplete over the interval searched.
  • Hi,

    Solved in next math library...

    best regards, erwinbt

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion