Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
error messages in Mathematica 9
Posted:
Dec 5, 2012 3:10 AM
|
|
I find that code that worked well in Mathematica 8 often produces error messages in Mathematica 9, although graphs are still produced correctly. The following code is a constructed example that illustrates the issue I'm struggling with:
f[x_] := Module[{y}, y /. FindRoot[x - y, {y, 0}]]; RegionPlot[ f[x] > 0, {x, -1, 1}, {b, -1, 1}]
Any suggestions about what the error is? Typical error messages are:
FindRoot::nlnum: The function value {0. +Region`Private`RegionVar[1.]} is not a list of numbers with dimensions {1} at {y$897} = {0.}. >>
ReplaceAll::reps: {FindRoot[Region`Private`RegionVar[1]-y$897,{y$897,0}]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing. >>
|
|
|
|