def exponential_precise

stelliferous@0.0.2.0 · math_fp32.bend:127

import stelliferous@0.0.2.0/math_fp32.bend as MathFp32
import Base

127# FastTwoSum retains the low bits of 1+r before adding the quadratic tail.
128def exponential_precise(+r: F32) -> F32:
129  +sum = (1.0 + r : F32)
130  +error = (r - (sum - 1.0 : F32) : F32)
131  (sum + ((exponential_polynomial(r) * (r * r : F32) : F32) + error : F32) : F32)

Uses (5)

Used by (1)