Complex<T>.Cos Method
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
public static Complex<T> Cos(
Complex<T> z
)Parameters
Return Value
Complex<T>The cosine of the complex number.
Remarks
For IEEE floating-point components, write the input as (x, y). If x is nonfinite and y is zero, the imaginary result is the signed zero -s(x) * y, where s(x) is one carrying the stored sign of x. A NaN input's stored sign is used only as a representation convention; no sign or payload is promised for a NaN result.
This choice preserves zero signs in the evenness, conjugation and cosine/hyperbolic-cosine rotation identities where C23 Annex G permits either zero sign. It differs from some expectations in Microsoft's generic complex reference tests: for example, (-Infinity, +0) gives (NaN, +0) here, while the Microsoft table expects (NaN, -0). Both zero signs are permitted for this exceptional case.