Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

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.


  • Prev by Date: bessel function with complex order
  • Next by Date: Found my While problem
  • Previous by thread: Re: Problem with Mathematica driving me nuts
  • Next by thread: ParametricPlot2D