Signature (Visual Basic / VBA)
Public Function Cosecant( _
ByVal vX As Variant _
) As Variant
Code Example
Cosecant(-0.5) = -2.08582964293349
IsNull(Cosecant(0)) = True
Cosecant(0.5) = 2.08582964293349
Cosecant(1) = 1.18839510577812
Cosecant(1.5) = 1.00251130424672
Cosecant(2) = 1.09975017029462
Cosecant(2.5) = 1.67092154555868
Cosecant(3) = 7.08616739573719
Cosecant(3.5) = -2.85076343754046
Cosecant("2.3|-4.5") = "1.65696589794916E-02|-1.48010792128449E-02"
Parameters
| Parameter | Description |
|---|---|
| vX | Number whose cosecant is returned. Function returns Null if vX is Null or cannot be fixed up to a real or complex number (as defined by the ComplexStringToReals function). Complex numbers are represented within strings as "R|I" where R is the real part and I is the imaginary part. |
Notes & Version History
| Return | The result is expressed in radians. |
| Note | Microsoft named this function Cosec within their Derived Math Function help topic. |