chickadee » math » make-fpexpt

make-fpexpt xprocedure
x
number

Equivalent to (λ (y) (fpexpt x y)) when x is a flonum, but much more accurate for large y when x cannot be exactly represented by a flonum.

Suppose we want to compute {{π^y}}, where y is a flonum. If we use flexpt with an approximation of the irrational base {{π}}, the error is low near zero, but grows with distance from the origin. Using make-fpexpt, the error is near rounding error everywhere.