Group Abstract Group Abstract

Message Boards Message Boards

Different numerical equation results between Mathematica and Wolfram|Alpha

Posted 3 years ago
POSTED BY: Chenghua Deng
2 Replies
Posted 3 years ago

My first guess is "bad starting values for numerical root findinig."

As a quick experiment, changing

{{n,h},{p1,0},{p2,0}}

to

{{n,h/2},{p1,h/2},{p2,h/2}}

in your Mathematica notebook makes all the complex numbers go away in this particular example.

But I cannot be sure that experiment is always choosing a good starting point for each of your variables in FindRoot. ListPlot of each of the roots do not seem to show sudden large changes like I would expect if my experiment was choosing some bad starting values.

POSTED BY: Bill Nelson
Posted 3 years ago

Thank you very much, I followed your suggestion and got the normal result of the equations. It seems to be caused by the starting value issue.

enter image description here

POSTED BY: Chenghua Deng
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard