Documentation ¶
Index ¶
Constants ¶
View Source
const Precision128 = 128
note: all coefficients for which Polyval is used would need to be updated if this precision changes
Variables ¶
This section is empty.
Functions ¶
func ExpBySquaring ¶
ExpBySquaring takes a Q.128 base b and an int64 exponent n and computes n^b using the exponentiation by squaring method, returning a Q.128 value.
func ExpNeg ¶
ExpNeg accepts x in Q.128 format and computes e^-x. It is most precise within [0, 1.725) range, where error is less than 3.4e-30. Over the [0, 5) range its error is less than 4.6e-15. Output is in Q.128 format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.