Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.5K Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

significant digits in NMinimize

Posted 11 years ago
POSTED BY: Yaj Bhattacharya
4 Replies

Try to code it neatly, and first do the substitution to make it a lot easier. In addition, change the substitutions to exact fraction:

func=(-((4alpha b^3)/(2 b+mu)^2)+(64 b^5 (6 b+4 b^3-16 b^5+(3 Sqrt[1/b^2] b Pi)/Sqrt[1-b^2]-(6 ArcSin[b])/Sqrt[1-b^2]))/((96 b^5-96 b^7)(Pi)))/(1+b^2);
func=func/.{alpha->1/20,mu->1/100}//Simplify
NMinimize[{func,0<=b<1},{b},AccuracyGoal->40,WorkingPrecision->40]
POSTED BY: Sander Huisman

Thank you Sander!

POSTED BY: Yaj Bhattacharya
POSTED BY: Yaj Bhattacharya

OK, WorkingPrecision works, but not AccuracyGoal.

What's the difference i.e. why would AccuracyGoal refuse to produce more significant digits, is it because WorkingPrecision is some sort of brute force?

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