MathGroup Archive 2006

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

Search the Archive

FindRoot anomaly (example from Mathematica Tutorial)


FindRoot[3Cos[x] == Log[x], {x, 1}] is on page 12 of the tutorial that
starts up in Mathematica 5.
I was interested in how the seed affects the answer, so I made a table

sol = Table[FindRoot[3Cos[x] == Log[x], {x, b}], {b, 100}];

and then plotted the solutions

ListPlot[x /. sol]

I got a nice table, but the seed of 22 returns  {x -> -207.932 +
1.39227 i]}

so the plot returns the error:
Graphics::gptn: Coordinate -207.932 + 1.39227\\[ImaginaryI] in {22,
-207.932 \
+ 1.39227\\[ImaginaryI]} is not a floating-point number.

The other 99 results make a nice plot.


  • Prev by Date: Re: How to plot a parellal line
  • Next by Date: Re: Problem with text rendering on Linux.
  • Previous by thread: RE: Mathematica video output without printing frames
  • Next by thread: Re: FindRoot anomaly (example from Mathematica Tutorial)