Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: error messages in Mathematica 9
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Ø. Holen

Posts: 2
Registered: 12/4/12
error messages in Mathematica 9
Posted: Dec 5, 2012 3:10 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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. >>




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.