https://github.com/cobaltblueocean/Mercury.Language.Extensions
NumberExtension
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Epsilon | 1 | This is the Taylor expansion of $$\frac{\exp(x)-1}{x}$$ - note for $$|x| > 10^{-10}$$ the expansion is note used |
| EpsilonP | 1 | This is the Taylor expansion of the first derivative of $$\frac{\exp(x)-1}{x}$$ |
| EpsilonPP | 1 | This is the Taylor expansion of the second derivative of $$\frac{\exp(x)-1}{x}$$ |
| Expm1 | 1 | Returns ex - 1. Special cases: If the argument is NaN, the result is NaN.If the argument is positive infinity, the result is positive infinityIf the argument is negative infinit… |
| GetLowDWord | 1 | Returns the lower two words of a long. |
| GetHighDWord | 1 | Returns the higher two words of a long. |
| To | 1 | |
| LeadingZeros | 1 | |
| NextPowerOf2 | 1 | |
| GetRemainder | 1 | |
| MakeIPT | 1 | |
| MakeWT | 1 | |
| MakeCT | 1 |
03 Members
Double)This is the Taylor expansion of $$\frac{\exp(x)-1}{x}$$ - note for $$|x| > 10^{-10}$$ the expansion is note used
| Name | Type | Description |
|---|---|---|
x | Double | value |
result
Double)This is the Taylor expansion of the first derivative of $$\frac{\exp(x)-1}{x}$$
| Name | Type | Description |
|---|---|---|
x | Double | value |
result
Double)This is the Taylor expansion of the second derivative of $$\frac{\exp(x)-1}{x}$$
| Name | Type | Description |
|---|---|---|
x | Double | value |
result
Double)Returns ex - 1. Special cases: If the argument is NaN, the result is NaN.If the argument is positive infinity, the result is positive infinityIf the argument is negative infinity, the result is -1.If the argument is zero, the result is zero.
| Name | Type | Description |
|---|---|---|
x | Double | the argument to ex - 1. |
e raised to the power
x
minus one.
Int64)Returns the lower two words of a long. This is intended to be used like this:
getLowDWord(Double.doubleToLongBits(x))
.
Int64)Returns the higher two words of a long. This is intended to be used like this:
getHighDWord(Double.doubleToLongBits(x))
.
| Name | Type | Description |
|---|---|---|
x | Int64 | - |
Int32)Int32)Int32)Int32, Int32())Int32, Int64())Int32, Int32(), Double())Int32, Double(), Int32, Int32())