Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Strange behavior from Evaluate[]' topicStudent Support Forum > General > Archives > "Strange behavior from Evaluate[]"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
02/28/13 12:11pm

You wrote

"I also seem to run into trouble quickly when I wrap Evaluate[] statements inside function definitions (Func[x_] := ...). Is there a canonical procedure for dealing with this?"

Until you understand more of the complexities of the evaluation process and how some built-in functions change that evaluation process and how Evaluate further changes parts of all that... don't put an Evaluate inside a function definition.

Instead do

f=Evaluate[stuff]

and verify that f is what you really want it to be

Then use f without NIntegrate's evaluation arguing with Evaluate's evaluation arguing with Mathematica's evaluation.

g[morestuff]:= NIntegrate[f]
or
g[morestuff]:= Plot[f]

URL: ,

Subject (listing for 'Strange behavior from Evaluate[]')
Author Date Posted
Strange behavior from Evaluate[] user1639133 02/28/13 11:17am
Re: Strange behavior from Evaluate[] Forum Modera... 02/28/13 11:51am
Re: Strange behavior from Evaluate[] Bill Simpson 02/28/13 12:11pm
< Previous CommentHelp | Reply To Comment | Reply To Topic