addaptic

Reference Complex circular and hyperbolic functions

lzc_secant

The secant of a complex angle.

long lzc_secant( CLZComplex* leftOperand, CLZComplex* targetNumber = nullptr );

One over the cosine, each part correctly rounded, the whole angle in the thread's unit. A pole on the real axis is the point at infinity.

Examples

CallAnswer
lzc_secant( 1 + 1i )0.498337030555186785213805891772169534 + 0.591083841721045048050391692974335072i

Each answer is what Addaptic printed for the call, in radians, 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

  • lzc_cosine The cosine of a complex angle.
  • lz_secant The secant of an angle, one over its cosine.