Post Reply 
Help evaluating integral
08-23-2019, 06:00 PM
Post: #7
RE: Help evaluating integral
Be sure to purge(x) before using preval(F(x),a,b).

If x has been assigned a value, F(x) will be evaluated using the current x value, before calculating F(b) - F(a).

preval(x^2+x, 2, 3)
outputs 6
only if x has not been assigned a value

Similarly:
f(x) := x^2+x
preval(f(x), 2, 3)
outputs 6
only if x has not been assigned a value

If for instance, x has the value 1, preval(f(x),2,3) will output 0.

Fortunately, if x is purged, then f(x) will revert to the symbolic expression without having to be re-entered.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Help evaluating integral - kevin3g - 03-31-2019, 02:16 PM
RE: Help evaluating integral - toshk - 03-31-2019, 06:40 PM
RE: Help evaluating integral - parisse - 03-31-2019, 06:48 PM
RE: Help evaluating integral - Wes Loewer - 04-01-2019, 05:14 PM
RE: Help evaluating integral - parisse - 04-01-2019, 05:26 PM
RE: Help evaluating integral - Wes Loewer - 04-01-2019, 06:10 PM
RE: Help evaluating integral - dae - 08-23-2019 06:00 PM
RE: Help evaluating integral - Aries - 08-24-2019, 04:18 PM



User(s) browsing this thread: 3 Guest(s)