Message Boards Message Boards

0
|
9342 Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Mathematica tries to evaluate numerical functions symbolically.

Posted 10 years ago
Mathematica tries to evaluate numerical functions symbolically.
POSTED BY: David Golber
3 Replies
Posted 10 years ago
Best to keep things to a single thread so as to avoid fracturing a discussion... For future reference.
POSTED BY: Michael Gmirkin
Same question, more replies, in http://community.wolfram.com/groups/-/m/t/205195 .
POSTED BY: Bruce Miller
Hi, 

>>Mathematica tries to evaluate numerical functions symbolically.
Yes, but why would you use numerical functions with symbolic parameters?
If you define a numerical function, then protect it from being used with symbols.
f[a_] := NIntegrate[a x^2, {x, -1, 1}]
g[a_?NumericQ] := NIntegrate[a x^2, {x, -1, 1}]
f[2]
g[2]
f[a]
g[a]

I.M.
POSTED BY: Ivan Morozov
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract