addaptic

Reference Hyperbolic functions

lz_hypersine_hypercosine

The hyperbolic sine and cosine of one number together, from one exponential.

long lz_hypersine_hypercosine( CLZNumber* leftOperand, CLZNumber* sineTarget, CLZNumber* cosineTarget );

Both from one exponential, each exactly what lz_hypersine and lz_hypercosine answer, flags and codes included, for about the cost of one of them.

Both targets are required and must be different numbers, though either may be the operand. Otherwise the call is refused, kFailed, and each target given a not-a-number.

Examples

CallAnswer
lz_hypersine_hypercosine( 1 )1.175201193643801456882381850595600815and1.543080634815243778477905620757061683
lz_hypersine_hypercosine( −2 )−3.626860407847018767668213982801261705and3.762195691083631459562213477773746108

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