addaptic

Reference Hyperbolic functions

lz_hypersine

The hyperbolic sine.

long lz_hypersine( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );

(ex − e−x) ÷ 2, from a single ex, correctly rounded. The hyperbolic functions take no angle unit. A small answer keeps its significant digits, as the third example shows.

Examples

CallAnswer
lz_hypersine( 1 )1.175201193643801456882381850595600815
lz_hypersine( −1 )−1.175201193643801456882381850595600815
lz_hypersine( 1E−20 )0.0000000000000000000100000000000000000000000000000000000

Each answer is what Addaptic printed for the call, at 36 places unless a setting is shown.

Returns

kNoError (0) when the answer is written. Otherwise an error code, with the answer flagged infinite or not-a-number; see Errors and flags.

See also