Re: Re: Problem with Mathematica driving me nuts
- To: mathgroup at smc.vnet.net
- Subject: [mg46842] Re: [mg46837] Re: Problem with Mathematica driving me nuts
- From: tasande at MIT.EDU
- Date: Wed, 10 Mar 2004 04:57:41 -0500 (EST)
- References: <c2he1m$ahd$1@smc.vnet.net> <200403100057.TAA09500@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
When I try this: In[90]:= FindRoot[x^2==4x-4,{x,1}] FindRoot[x^2==4x-4,{x,1},AccuracyGoal->30,WorkingPrecision->30] N[%,15] Out[90]= {x -> 2.} Out[91]= {x - >1.99999999999999644728632119950} Out[92]= {x->2.00000000000000} The default is rounded to 2. In general, always specify three options to instruct FindRoot of your desired level of "accuracy": 1. AccuracyGoal 2. Working Precision 3. Number of decimal places Theodore Sande Disclaimer: The author's opinions expressed herein are not necessarily his own.
- References:
- Re: Problem with Mathematica driving me nuts
- From: lalu_bhatt@yahoo.com (Bhuvanesh)
- Re: Problem with Mathematica driving me nuts