HP Forums
NaN message? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: NaN message? (/thread-6007.html)



NaN message? - Tim O - 04-08-2016 08:32 PM

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?


RE: NaN message? - lrdheat - 04-08-2016 09:58 PM

I get a complex answer in CAS, an invalid input message in HOME. Physical software version 7820, and same behavior on iPad emulator.


RE: NaN message? - roadrunner - 04-08-2016 10:31 PM

(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


RE: NaN message? - informach - 04-09-2016 02:03 AM

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.