Signature (Visual Basic / VBA)
Public Function Inv( _
ByVal vX As Variant _
) As Variant
Code Example
Inv(4) = .25
Inv("5|0") = .2
Inv("0|-6") = "0|0.166666666666667"
Inv("-7|-8") = "-6.19469026548673E-02|7.07964601769911E-02"
IsNull(Inv(Null)) = True
Parameters
| Parameter | Description |
|---|---|
| vX | The number whose reciprocal is to be 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. |