HP Forums

Full Version: NaN message?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to integrate the function f(x)=ln(2+sin(x)) from x=3 to 5 and I get NaN message.
Can someone tell me why?
I get a complex answer in CAS, an invalid input message in HOME. Physical software version 7820, and same behavior on iPad emulator.
(04-08-2016 08:32 PM)Tim O Wrote: [ -> ]I am trying to integrate the function f(x)=ln(2+sin(x)) from x=3 to 5 and I get NaN message.
Can someone tell me why?

Try this:

∫(ln(2+sin(x)),x,3.0,5)

Note the 3 is typed 3.0 not just 3

Then you get about 0.555 for an approx answer. It's an approx/exact issue.

-road
Hi!, all:

If configure HP PRIME, for CAS and in CAS Setting in Approximate mode, Standar mode with 12 digits, the result is ... 0.555085197181
In Plot, if any value, of function is <=0, the result is NaN (Not an Number).
See, the attachment's in HP PRIME and Wolfram Alpha.
Reference URL's