Logged In: YES

user_id=5735

Originator: NO

(exp 1.0l3) ==> 1.9700711140170469939L434

which is bigger than most-positive-double-float (1.7976931348623157E308)

thus you cannot expect tanh to work on this number for D, F, S.

the reason (TANH 1.0d3) works is that cosh and sinh are computed (and divided) in long precision and then the result is converted to doubles, so it works "through the back door".