I want to evaluate sinh(3391014490.0) as i'm doing numerical simulation. It produces inf and RR: overflow in NTL (i used (0.5)(e^x + e^-x)). Anyone know of a way to evaluate this?
e^-3391014490 is so close to zero that we can ignore it for purposes of this calculation.
e^3391014490 is really, really, really, really big.
Half of that number is still far, far too big. Too big for a 64 bit number. You'll have to use some kind of specialised library made for handling really, really, really big numbers.
Depending on what you're using it for, you might be able to box clever and simplify whatever your calculation actually is so that you don't have to evaluate such huge values.
hi moschops, i know it's infinity and i've tried using NTL (number theory library) as i've heard that it can evaluate large floating point numbers. (in fact, it can evaluate exp(91014490) i.e., chopping the frst 2 three's.