\[{k}^{m} \cdot \frac{a}{1 + k \cdot \left(k + 10\right)}
\]
(FPCore (a k m)
:precision binary64
(/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))
↓
(FPCore (a k m)
:precision binary64
(* (pow k m) (/ a (+ 1.0 (* k (+ k 10.0))))))
double code(double a, double k, double m) {
return (a * pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k));
}
↓
double code(double a, double k, double m) {
return pow(k, m) * (a / (1.0 + (k * (k + 10.0))));
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
code = (a * (k ** m)) / ((1.0d0 + (10.0d0 * k)) + (k * k))
end function
↓
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
code = (k ** m) * (a / (1.0d0 + (k * (k + 10.0d0))))
end function
public static double code(double a, double k, double m) {
return (a * Math.pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k));
}
↓
public static double code(double a, double k, double m) {
return Math.pow(k, m) * (a / (1.0 + (k * (k + 10.0))));
}
herbie shell --seed 2023064
(FPCore (a k m)
:name "Falkner and Boettcher, Appendix A"
:precision binary64
(/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))