The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.