
(FPCore (a k m) :precision binary64 (/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))
double code(double a, double k, double m) {
return (a * pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k));
}
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
public static double code(double a, double k, double m) {
return (a * Math.pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k));
}
def code(a, k, m): return (a * math.pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k))
function code(a, k, m) return Float64(Float64(a * (k ^ m)) / Float64(Float64(1.0 + Float64(10.0 * k)) + Float64(k * k))) end
function tmp = code(a, k, m) tmp = (a * (k ^ m)) / ((1.0 + (10.0 * k)) + (k * k)); end
code[a_, k_, m_] := N[(N[(a * N[Power[k, m], $MachinePrecision]), $MachinePrecision] / N[(N[(1.0 + N[(10.0 * k), $MachinePrecision]), $MachinePrecision] + N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (a k m) :precision binary64 (/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))
double code(double a, double k, double m) {
return (a * pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k));
}
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
public static double code(double a, double k, double m) {
return (a * Math.pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k));
}
def code(a, k, m): return (a * math.pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k))
function code(a, k, m) return Float64(Float64(a * (k ^ m)) / Float64(Float64(1.0 + Float64(10.0 * k)) + Float64(k * k))) end
function tmp = code(a, k, m) tmp = (a * (k ^ m)) / ((1.0 + (10.0 * k)) + (k * k)); end
code[a_, k_, m_] := N[(N[(a * N[Power[k, m], $MachinePrecision]), $MachinePrecision] / N[(N[(1.0 + N[(10.0 * k), $MachinePrecision]), $MachinePrecision] + N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}
\end{array}
(FPCore (a k m) :precision binary64 (if (<= m 1.95e-7) (/ a (/ (+ 1.0 (+ (* k 10.0) (* k k))) (pow k m))) (* a (pow (sqrt (pow k m)) 2.0))))
double code(double a, double k, double m) {
double tmp;
if (m <= 1.95e-7) {
tmp = a / ((1.0 + ((k * 10.0) + (k * k))) / pow(k, m));
} else {
tmp = a * pow(sqrt(pow(k, m)), 2.0);
}
return tmp;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
real(8) :: tmp
if (m <= 1.95d-7) then
tmp = a / ((1.0d0 + ((k * 10.0d0) + (k * k))) / (k ** m))
else
tmp = a * (sqrt((k ** m)) ** 2.0d0)
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double tmp;
if (m <= 1.95e-7) {
tmp = a / ((1.0 + ((k * 10.0) + (k * k))) / Math.pow(k, m));
} else {
tmp = a * Math.pow(Math.sqrt(Math.pow(k, m)), 2.0);
}
return tmp;
}
def code(a, k, m): tmp = 0 if m <= 1.95e-7: tmp = a / ((1.0 + ((k * 10.0) + (k * k))) / math.pow(k, m)) else: tmp = a * math.pow(math.sqrt(math.pow(k, m)), 2.0) return tmp
function code(a, k, m) tmp = 0.0 if (m <= 1.95e-7) tmp = Float64(a / Float64(Float64(1.0 + Float64(Float64(k * 10.0) + Float64(k * k))) / (k ^ m))); else tmp = Float64(a * (sqrt((k ^ m)) ^ 2.0)); end return tmp end
function tmp_2 = code(a, k, m) tmp = 0.0; if (m <= 1.95e-7) tmp = a / ((1.0 + ((k * 10.0) + (k * k))) / (k ^ m)); else tmp = a * (sqrt((k ^ m)) ^ 2.0); end tmp_2 = tmp; end
code[a_, k_, m_] := If[LessEqual[m, 1.95e-7], N[(a / N[(N[(1.0 + N[(N[(k * 10.0), $MachinePrecision] + N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[k, m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[Power[N[Sqrt[N[Power[k, m], $MachinePrecision]], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq 1.95 \cdot 10^{-7}:\\
\;\;\;\;\frac{a}{\frac{1 + \left(k \cdot 10 + k \cdot k\right)}{{k}^{m}}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot {\left(\sqrt{{k}^{m}}\right)}^{2}\\
\end{array}
\end{array}
if m < 1.95000000000000012e-7Initial program 97.6%
associate-/l*97.6%
associate-+l+97.6%
*-commutative97.6%
Simplified97.6%
if 1.95000000000000012e-7 < m Initial program 83.0%
associate-*r/83.0%
associate-+l+83.0%
+-commutative83.0%
distribute-rgt-out83.0%
fma-def83.0%
+-commutative83.0%
Simplified83.0%
add-sqr-sqrt83.0%
pow283.0%
Applied egg-rr83.0%
Taylor expanded in k around 0 46.8%
exp-to-pow100.0%
Simplified100.0%
Final simplification98.5%
(FPCore (a k m) :precision binary64 (if (<= m 1.95e-7) (/ a (/ (+ 1.0 (+ (* k 10.0) (* k k))) (pow k m))) (* a (pow k m))))
double code(double a, double k, double m) {
double tmp;
if (m <= 1.95e-7) {
tmp = a / ((1.0 + ((k * 10.0) + (k * k))) / pow(k, m));
} else {
tmp = a * pow(k, m);
}
return tmp;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
real(8) :: tmp
if (m <= 1.95d-7) then
tmp = a / ((1.0d0 + ((k * 10.0d0) + (k * k))) / (k ** m))
else
tmp = a * (k ** m)
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double tmp;
if (m <= 1.95e-7) {
tmp = a / ((1.0 + ((k * 10.0) + (k * k))) / Math.pow(k, m));
} else {
tmp = a * Math.pow(k, m);
}
return tmp;
}
def code(a, k, m): tmp = 0 if m <= 1.95e-7: tmp = a / ((1.0 + ((k * 10.0) + (k * k))) / math.pow(k, m)) else: tmp = a * math.pow(k, m) return tmp
function code(a, k, m) tmp = 0.0 if (m <= 1.95e-7) tmp = Float64(a / Float64(Float64(1.0 + Float64(Float64(k * 10.0) + Float64(k * k))) / (k ^ m))); else tmp = Float64(a * (k ^ m)); end return tmp end
function tmp_2 = code(a, k, m) tmp = 0.0; if (m <= 1.95e-7) tmp = a / ((1.0 + ((k * 10.0) + (k * k))) / (k ^ m)); else tmp = a * (k ^ m); end tmp_2 = tmp; end
code[a_, k_, m_] := If[LessEqual[m, 1.95e-7], N[(a / N[(N[(1.0 + N[(N[(k * 10.0), $MachinePrecision] + N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[k, m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[Power[k, m], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq 1.95 \cdot 10^{-7}:\\
\;\;\;\;\frac{a}{\frac{1 + \left(k \cdot 10 + k \cdot k\right)}{{k}^{m}}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot {k}^{m}\\
\end{array}
\end{array}
if m < 1.95000000000000012e-7Initial program 97.6%
associate-/l*97.6%
associate-+l+97.6%
*-commutative97.6%
Simplified97.6%
if 1.95000000000000012e-7 < m Initial program 83.0%
associate-*r/83.0%
associate-+l+83.0%
+-commutative83.0%
distribute-rgt-out83.0%
fma-def83.0%
+-commutative83.0%
Simplified83.0%
Taylor expanded in k around 0 46.8%
exp-to-pow100.0%
*-commutative100.0%
Simplified100.0%
Final simplification98.5%
(FPCore (a k m) :precision binary64 (if (<= m -1.3e-12) (/ a (/ (+ 1.0 (* k 10.0)) (pow k m))) (if (<= m 1e-7) (/ a (+ 1.0 (* k (+ k 10.0)))) (* a (pow k m)))))
double code(double a, double k, double m) {
double tmp;
if (m <= -1.3e-12) {
tmp = a / ((1.0 + (k * 10.0)) / pow(k, m));
} else if (m <= 1e-7) {
tmp = a / (1.0 + (k * (k + 10.0)));
} else {
tmp = a * pow(k, m);
}
return tmp;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
real(8) :: tmp
if (m <= (-1.3d-12)) then
tmp = a / ((1.0d0 + (k * 10.0d0)) / (k ** m))
else if (m <= 1d-7) then
tmp = a / (1.0d0 + (k * (k + 10.0d0)))
else
tmp = a * (k ** m)
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double tmp;
if (m <= -1.3e-12) {
tmp = a / ((1.0 + (k * 10.0)) / Math.pow(k, m));
} else if (m <= 1e-7) {
tmp = a / (1.0 + (k * (k + 10.0)));
} else {
tmp = a * Math.pow(k, m);
}
return tmp;
}
def code(a, k, m): tmp = 0 if m <= -1.3e-12: tmp = a / ((1.0 + (k * 10.0)) / math.pow(k, m)) elif m <= 1e-7: tmp = a / (1.0 + (k * (k + 10.0))) else: tmp = a * math.pow(k, m) return tmp
function code(a, k, m) tmp = 0.0 if (m <= -1.3e-12) tmp = Float64(a / Float64(Float64(1.0 + Float64(k * 10.0)) / (k ^ m))); elseif (m <= 1e-7) tmp = Float64(a / Float64(1.0 + Float64(k * Float64(k + 10.0)))); else tmp = Float64(a * (k ^ m)); end return tmp end
function tmp_2 = code(a, k, m) tmp = 0.0; if (m <= -1.3e-12) tmp = a / ((1.0 + (k * 10.0)) / (k ^ m)); elseif (m <= 1e-7) tmp = a / (1.0 + (k * (k + 10.0))); else tmp = a * (k ^ m); end tmp_2 = tmp; end
code[a_, k_, m_] := If[LessEqual[m, -1.3e-12], N[(a / N[(N[(1.0 + N[(k * 10.0), $MachinePrecision]), $MachinePrecision] / N[Power[k, m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 1e-7], N[(a / N[(1.0 + N[(k * N[(k + 10.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[Power[k, m], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq -1.3 \cdot 10^{-12}:\\
\;\;\;\;\frac{a}{\frac{1 + k \cdot 10}{{k}^{m}}}\\
\mathbf{elif}\;m \leq 10^{-7}:\\
\;\;\;\;\frac{a}{1 + k \cdot \left(k + 10\right)}\\
\mathbf{else}:\\
\;\;\;\;a \cdot {k}^{m}\\
\end{array}
\end{array}
if m < -1.29999999999999991e-12Initial program 100.0%
associate-/l*100.0%
associate-+l+100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in k around 0 100.0%
*-commutative100.0%
Simplified100.0%
if -1.29999999999999991e-12 < m < 9.9999999999999995e-8Initial program 95.9%
associate-*r/95.8%
associate-+l+95.8%
+-commutative95.8%
distribute-rgt-out95.8%
fma-def95.8%
+-commutative95.8%
Simplified95.8%
Taylor expanded in m around 0 95.2%
if 9.9999999999999995e-8 < m Initial program 83.0%
associate-*r/83.0%
associate-+l+83.0%
+-commutative83.0%
distribute-rgt-out83.0%
fma-def83.0%
+-commutative83.0%
Simplified83.0%
Taylor expanded in k around 0 46.8%
exp-to-pow100.0%
*-commutative100.0%
Simplified100.0%
Final simplification98.2%
(FPCore (a k m) :precision binary64 (if (<= m 1.95e-7) (/ a (/ (+ 1.0 (* k k)) (pow k m))) (* a (pow k m))))
double code(double a, double k, double m) {
double tmp;
if (m <= 1.95e-7) {
tmp = a / ((1.0 + (k * k)) / pow(k, m));
} else {
tmp = a * pow(k, m);
}
return tmp;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
real(8) :: tmp
if (m <= 1.95d-7) then
tmp = a / ((1.0d0 + (k * k)) / (k ** m))
else
tmp = a * (k ** m)
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double tmp;
if (m <= 1.95e-7) {
tmp = a / ((1.0 + (k * k)) / Math.pow(k, m));
} else {
tmp = a * Math.pow(k, m);
}
return tmp;
}
def code(a, k, m): tmp = 0 if m <= 1.95e-7: tmp = a / ((1.0 + (k * k)) / math.pow(k, m)) else: tmp = a * math.pow(k, m) return tmp
function code(a, k, m) tmp = 0.0 if (m <= 1.95e-7) tmp = Float64(a / Float64(Float64(1.0 + Float64(k * k)) / (k ^ m))); else tmp = Float64(a * (k ^ m)); end return tmp end
function tmp_2 = code(a, k, m) tmp = 0.0; if (m <= 1.95e-7) tmp = a / ((1.0 + (k * k)) / (k ^ m)); else tmp = a * (k ^ m); end tmp_2 = tmp; end
code[a_, k_, m_] := If[LessEqual[m, 1.95e-7], N[(a / N[(N[(1.0 + N[(k * k), $MachinePrecision]), $MachinePrecision] / N[Power[k, m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[Power[k, m], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq 1.95 \cdot 10^{-7}:\\
\;\;\;\;\frac{a}{\frac{1 + k \cdot k}{{k}^{m}}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot {k}^{m}\\
\end{array}
\end{array}
if m < 1.95000000000000012e-7Initial program 97.6%
associate-/l*97.6%
associate-+l+97.6%
*-commutative97.6%
Simplified97.6%
Taylor expanded in k around inf 95.6%
unpow295.6%
Simplified95.6%
if 1.95000000000000012e-7 < m Initial program 83.0%
associate-*r/83.0%
associate-+l+83.0%
+-commutative83.0%
distribute-rgt-out83.0%
fma-def83.0%
+-commutative83.0%
Simplified83.0%
Taylor expanded in k around 0 46.8%
exp-to-pow100.0%
*-commutative100.0%
Simplified100.0%
Final simplification97.2%
(FPCore (a k m) :precision binary64 (if (or (<= m -1.9e-12) (not (<= m 9e-8))) (* a (pow k m)) (/ a (+ 1.0 (* k (+ k 10.0))))))
double code(double a, double k, double m) {
double tmp;
if ((m <= -1.9e-12) || !(m <= 9e-8)) {
tmp = a * pow(k, m);
} else {
tmp = a / (1.0 + (k * (k + 10.0)));
}
return tmp;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
real(8) :: tmp
if ((m <= (-1.9d-12)) .or. (.not. (m <= 9d-8))) then
tmp = a * (k ** m)
else
tmp = a / (1.0d0 + (k * (k + 10.0d0)))
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double tmp;
if ((m <= -1.9e-12) || !(m <= 9e-8)) {
tmp = a * Math.pow(k, m);
} else {
tmp = a / (1.0 + (k * (k + 10.0)));
}
return tmp;
}
def code(a, k, m): tmp = 0 if (m <= -1.9e-12) or not (m <= 9e-8): tmp = a * math.pow(k, m) else: tmp = a / (1.0 + (k * (k + 10.0))) return tmp
function code(a, k, m) tmp = 0.0 if ((m <= -1.9e-12) || !(m <= 9e-8)) tmp = Float64(a * (k ^ m)); else tmp = Float64(a / Float64(1.0 + Float64(k * Float64(k + 10.0)))); end return tmp end
function tmp_2 = code(a, k, m) tmp = 0.0; if ((m <= -1.9e-12) || ~((m <= 9e-8))) tmp = a * (k ^ m); else tmp = a / (1.0 + (k * (k + 10.0))); end tmp_2 = tmp; end
code[a_, k_, m_] := If[Or[LessEqual[m, -1.9e-12], N[Not[LessEqual[m, 9e-8]], $MachinePrecision]], N[(a * N[Power[k, m], $MachinePrecision]), $MachinePrecision], N[(a / N[(1.0 + N[(k * N[(k + 10.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq -1.9 \cdot 10^{-12} \lor \neg \left(m \leq 9 \cdot 10^{-8}\right):\\
\;\;\;\;a \cdot {k}^{m}\\
\mathbf{else}:\\
\;\;\;\;\frac{a}{1 + k \cdot \left(k + 10\right)}\\
\end{array}
\end{array}
if m < -1.89999999999999998e-12 or 8.99999999999999986e-8 < m Initial program 90.0%
associate-*r/90.0%
associate-+l+90.0%
+-commutative90.0%
distribute-rgt-out90.0%
fma-def90.0%
+-commutative90.0%
Simplified90.0%
Taylor expanded in k around 0 57.1%
exp-to-pow100.0%
*-commutative100.0%
Simplified100.0%
if -1.89999999999999998e-12 < m < 8.99999999999999986e-8Initial program 95.9%
associate-*r/95.8%
associate-+l+95.8%
+-commutative95.8%
distribute-rgt-out95.8%
fma-def95.8%
+-commutative95.8%
Simplified95.8%
Taylor expanded in m around 0 95.2%
Final simplification98.2%
(FPCore (a k m)
:precision binary64
(let* ((t_0 (/ a (+ 1.0 (* k 10.0)))))
(if (<= m -3.05e-90)
(/ a (* k k))
(if (<= m 8e-148)
t_0
(if (<= m 1.7e-48)
(/ (/ a k) k)
(if (<= m 3e+32) t_0 (* a (* k -10.0))))))))
double code(double a, double k, double m) {
double t_0 = a / (1.0 + (k * 10.0));
double tmp;
if (m <= -3.05e-90) {
tmp = a / (k * k);
} else if (m <= 8e-148) {
tmp = t_0;
} else if (m <= 1.7e-48) {
tmp = (a / k) / k;
} else if (m <= 3e+32) {
tmp = t_0;
} else {
tmp = a * (k * -10.0);
}
return tmp;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
real(8) :: t_0
real(8) :: tmp
t_0 = a / (1.0d0 + (k * 10.0d0))
if (m <= (-3.05d-90)) then
tmp = a / (k * k)
else if (m <= 8d-148) then
tmp = t_0
else if (m <= 1.7d-48) then
tmp = (a / k) / k
else if (m <= 3d+32) then
tmp = t_0
else
tmp = a * (k * (-10.0d0))
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double t_0 = a / (1.0 + (k * 10.0));
double tmp;
if (m <= -3.05e-90) {
tmp = a / (k * k);
} else if (m <= 8e-148) {
tmp = t_0;
} else if (m <= 1.7e-48) {
tmp = (a / k) / k;
} else if (m <= 3e+32) {
tmp = t_0;
} else {
tmp = a * (k * -10.0);
}
return tmp;
}
def code(a, k, m): t_0 = a / (1.0 + (k * 10.0)) tmp = 0 if m <= -3.05e-90: tmp = a / (k * k) elif m <= 8e-148: tmp = t_0 elif m <= 1.7e-48: tmp = (a / k) / k elif m <= 3e+32: tmp = t_0 else: tmp = a * (k * -10.0) return tmp
function code(a, k, m) t_0 = Float64(a / Float64(1.0 + Float64(k * 10.0))) tmp = 0.0 if (m <= -3.05e-90) tmp = Float64(a / Float64(k * k)); elseif (m <= 8e-148) tmp = t_0; elseif (m <= 1.7e-48) tmp = Float64(Float64(a / k) / k); elseif (m <= 3e+32) tmp = t_0; else tmp = Float64(a * Float64(k * -10.0)); end return tmp end
function tmp_2 = code(a, k, m) t_0 = a / (1.0 + (k * 10.0)); tmp = 0.0; if (m <= -3.05e-90) tmp = a / (k * k); elseif (m <= 8e-148) tmp = t_0; elseif (m <= 1.7e-48) tmp = (a / k) / k; elseif (m <= 3e+32) tmp = t_0; else tmp = a * (k * -10.0); end tmp_2 = tmp; end
code[a_, k_, m_] := Block[{t$95$0 = N[(a / N[(1.0 + N[(k * 10.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[m, -3.05e-90], N[(a / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 8e-148], t$95$0, If[LessEqual[m, 1.7e-48], N[(N[(a / k), $MachinePrecision] / k), $MachinePrecision], If[LessEqual[m, 3e+32], t$95$0, N[(a * N[(k * -10.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{a}{1 + k \cdot 10}\\
\mathbf{if}\;m \leq -3.05 \cdot 10^{-90}:\\
\;\;\;\;\frac{a}{k \cdot k}\\
\mathbf{elif}\;m \leq 8 \cdot 10^{-148}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;m \leq 1.7 \cdot 10^{-48}:\\
\;\;\;\;\frac{\frac{a}{k}}{k}\\
\mathbf{elif}\;m \leq 3 \cdot 10^{+32}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(k \cdot -10\right)\\
\end{array}
\end{array}
if m < -3.05e-90Initial program 100.0%
associate-*r/99.9%
associate-+l+99.9%
+-commutative99.9%
distribute-rgt-out100.0%
fma-def100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in m around 0 43.7%
Taylor expanded in k around inf 59.7%
unpow259.7%
Simplified59.7%
if -3.05e-90 < m < 7.99999999999999949e-148 or 1.70000000000000014e-48 < m < 3e32Initial program 97.4%
associate-*r/97.4%
associate-+l+97.4%
+-commutative97.4%
distribute-rgt-out97.4%
fma-def97.4%
+-commutative97.4%
Simplified97.4%
Taylor expanded in m around 0 89.6%
Taylor expanded in k around 0 70.2%
*-commutative70.2%
Simplified70.2%
if 7.99999999999999949e-148 < m < 1.70000000000000014e-48Initial program 83.1%
associate-*r/83.0%
associate-+l+83.0%
+-commutative83.0%
distribute-rgt-out83.1%
fma-def83.1%
+-commutative83.1%
Simplified83.1%
Taylor expanded in m around 0 83.2%
Taylor expanded in k around inf 60.1%
unpow260.1%
Simplified60.1%
Taylor expanded in k around inf 59.7%
unpow259.7%
associate-/r*76.1%
Simplified76.1%
if 3e32 < m Initial program 82.8%
associate-*r/82.8%
associate-+l+82.8%
+-commutative82.8%
distribute-rgt-out82.8%
fma-def82.8%
+-commutative82.8%
Simplified82.8%
Taylor expanded in m around 0 3.0%
Taylor expanded in k around 0 6.3%
Taylor expanded in k around inf 18.2%
associate-*r*18.2%
*-commutative18.2%
Simplified18.2%
Final simplification49.9%
(FPCore (a k m)
:precision binary64
(let* ((t_0 (/ a (* k k))) (t_1 (* -10.0 (* a k))))
(if (<= k -8e+145)
t_0
(if (<= k 1.9e-300) t_1 (if (<= k 0.1) (+ a t_1) t_0)))))
double code(double a, double k, double m) {
double t_0 = a / (k * k);
double t_1 = -10.0 * (a * k);
double tmp;
if (k <= -8e+145) {
tmp = t_0;
} else if (k <= 1.9e-300) {
tmp = t_1;
} else if (k <= 0.1) {
tmp = a + t_1;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = a / (k * k)
t_1 = (-10.0d0) * (a * k)
if (k <= (-8d+145)) then
tmp = t_0
else if (k <= 1.9d-300) then
tmp = t_1
else if (k <= 0.1d0) then
tmp = a + t_1
else
tmp = t_0
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double t_0 = a / (k * k);
double t_1 = -10.0 * (a * k);
double tmp;
if (k <= -8e+145) {
tmp = t_0;
} else if (k <= 1.9e-300) {
tmp = t_1;
} else if (k <= 0.1) {
tmp = a + t_1;
} else {
tmp = t_0;
}
return tmp;
}
def code(a, k, m): t_0 = a / (k * k) t_1 = -10.0 * (a * k) tmp = 0 if k <= -8e+145: tmp = t_0 elif k <= 1.9e-300: tmp = t_1 elif k <= 0.1: tmp = a + t_1 else: tmp = t_0 return tmp
function code(a, k, m) t_0 = Float64(a / Float64(k * k)) t_1 = Float64(-10.0 * Float64(a * k)) tmp = 0.0 if (k <= -8e+145) tmp = t_0; elseif (k <= 1.9e-300) tmp = t_1; elseif (k <= 0.1) tmp = Float64(a + t_1); else tmp = t_0; end return tmp end
function tmp_2 = code(a, k, m) t_0 = a / (k * k); t_1 = -10.0 * (a * k); tmp = 0.0; if (k <= -8e+145) tmp = t_0; elseif (k <= 1.9e-300) tmp = t_1; elseif (k <= 0.1) tmp = a + t_1; else tmp = t_0; end tmp_2 = tmp; end
code[a_, k_, m_] := Block[{t$95$0 = N[(a / N[(k * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(-10.0 * N[(a * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -8e+145], t$95$0, If[LessEqual[k, 1.9e-300], t$95$1, If[LessEqual[k, 0.1], N[(a + t$95$1), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{a}{k \cdot k}\\
t_1 := -10 \cdot \left(a \cdot k\right)\\
\mathbf{if}\;k \leq -8 \cdot 10^{+145}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;k \leq 1.9 \cdot 10^{-300}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 0.1:\\
\;\;\;\;a + t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if k < -7.9999999999999999e145 or 0.10000000000000001 < k Initial program 82.1%
associate-*r/82.0%
associate-+l+82.0%
+-commutative82.0%
distribute-rgt-out82.0%
fma-def82.0%
+-commutative82.0%
Simplified82.0%
Taylor expanded in m around 0 56.3%
Taylor expanded in k around inf 55.0%
unpow255.0%
Simplified55.0%
if -7.9999999999999999e145 < k < 1.90000000000000006e-300Initial program 100.0%
associate-*r/100.0%
associate-+l+100.0%
+-commutative100.0%
distribute-rgt-out100.0%
fma-def100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in m around 0 3.4%
Taylor expanded in k around 0 5.4%
Taylor expanded in k around inf 14.7%
if 1.90000000000000006e-300 < k < 0.10000000000000001Initial program 100.0%
associate-*r/100.0%
associate-+l+100.0%
+-commutative100.0%
distribute-rgt-out100.0%
fma-def100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in m around 0 60.5%
Taylor expanded in k around 0 59.2%
Final simplification48.0%
(FPCore (a k m) :precision binary64 (if (<= m -0.215) (/ a (* k k)) (if (<= m 2.7e+55) (/ a (+ 1.0 (* k (+ k 10.0)))) (* a (* k -10.0)))))
double code(double a, double k, double m) {
double tmp;
if (m <= -0.215) {
tmp = a / (k * k);
} else if (m <= 2.7e+55) {
tmp = a / (1.0 + (k * (k + 10.0)));
} else {
tmp = a * (k * -10.0);
}
return tmp;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
real(8) :: tmp
if (m <= (-0.215d0)) then
tmp = a / (k * k)
else if (m <= 2.7d+55) then
tmp = a / (1.0d0 + (k * (k + 10.0d0)))
else
tmp = a * (k * (-10.0d0))
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double tmp;
if (m <= -0.215) {
tmp = a / (k * k);
} else if (m <= 2.7e+55) {
tmp = a / (1.0 + (k * (k + 10.0)));
} else {
tmp = a * (k * -10.0);
}
return tmp;
}
def code(a, k, m): tmp = 0 if m <= -0.215: tmp = a / (k * k) elif m <= 2.7e+55: tmp = a / (1.0 + (k * (k + 10.0))) else: tmp = a * (k * -10.0) return tmp
function code(a, k, m) tmp = 0.0 if (m <= -0.215) tmp = Float64(a / Float64(k * k)); elseif (m <= 2.7e+55) tmp = Float64(a / Float64(1.0 + Float64(k * Float64(k + 10.0)))); else tmp = Float64(a * Float64(k * -10.0)); end return tmp end
function tmp_2 = code(a, k, m) tmp = 0.0; if (m <= -0.215) tmp = a / (k * k); elseif (m <= 2.7e+55) tmp = a / (1.0 + (k * (k + 10.0))); else tmp = a * (k * -10.0); end tmp_2 = tmp; end
code[a_, k_, m_] := If[LessEqual[m, -0.215], N[(a / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 2.7e+55], N[(a / N[(1.0 + N[(k * N[(k + 10.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(k * -10.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq -0.215:\\
\;\;\;\;\frac{a}{k \cdot k}\\
\mathbf{elif}\;m \leq 2.7 \cdot 10^{+55}:\\
\;\;\;\;\frac{a}{1 + k \cdot \left(k + 10\right)}\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(k \cdot -10\right)\\
\end{array}
\end{array}
if m < -0.214999999999999997Initial program 100.0%
associate-*r/100.0%
associate-+l+100.0%
+-commutative100.0%
distribute-rgt-out100.0%
fma-def100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in m around 0 38.4%
Taylor expanded in k around inf 60.2%
unpow260.2%
Simplified60.2%
if -0.214999999999999997 < m < 2.69999999999999977e55Initial program 95.3%
associate-*r/95.3%
associate-+l+95.3%
+-commutative95.3%
distribute-rgt-out95.3%
fma-def95.3%
+-commutative95.3%
Simplified95.3%
Taylor expanded in m around 0 86.4%
if 2.69999999999999977e55 < m Initial program 82.1%
associate-*r/82.1%
associate-+l+82.1%
+-commutative82.1%
distribute-rgt-out82.1%
fma-def82.1%
+-commutative82.1%
Simplified82.1%
Taylor expanded in m around 0 3.0%
Taylor expanded in k around 0 6.5%
Taylor expanded in k around inf 18.8%
associate-*r*18.8%
*-commutative18.8%
Simplified18.8%
Final simplification57.4%
(FPCore (a k m)
:precision binary64
(let* ((t_0 (/ a (* k k))))
(if (<= k -5e+145)
t_0
(if (<= k 1.9e-300) (* -10.0 (* a k)) (if (<= k 58.0) a t_0)))))
double code(double a, double k, double m) {
double t_0 = a / (k * k);
double tmp;
if (k <= -5e+145) {
tmp = t_0;
} else if (k <= 1.9e-300) {
tmp = -10.0 * (a * k);
} else if (k <= 58.0) {
tmp = a;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
real(8) :: t_0
real(8) :: tmp
t_0 = a / (k * k)
if (k <= (-5d+145)) then
tmp = t_0
else if (k <= 1.9d-300) then
tmp = (-10.0d0) * (a * k)
else if (k <= 58.0d0) then
tmp = a
else
tmp = t_0
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double t_0 = a / (k * k);
double tmp;
if (k <= -5e+145) {
tmp = t_0;
} else if (k <= 1.9e-300) {
tmp = -10.0 * (a * k);
} else if (k <= 58.0) {
tmp = a;
} else {
tmp = t_0;
}
return tmp;
}
def code(a, k, m): t_0 = a / (k * k) tmp = 0 if k <= -5e+145: tmp = t_0 elif k <= 1.9e-300: tmp = -10.0 * (a * k) elif k <= 58.0: tmp = a else: tmp = t_0 return tmp
function code(a, k, m) t_0 = Float64(a / Float64(k * k)) tmp = 0.0 if (k <= -5e+145) tmp = t_0; elseif (k <= 1.9e-300) tmp = Float64(-10.0 * Float64(a * k)); elseif (k <= 58.0) tmp = a; else tmp = t_0; end return tmp end
function tmp_2 = code(a, k, m) t_0 = a / (k * k); tmp = 0.0; if (k <= -5e+145) tmp = t_0; elseif (k <= 1.9e-300) tmp = -10.0 * (a * k); elseif (k <= 58.0) tmp = a; else tmp = t_0; end tmp_2 = tmp; end
code[a_, k_, m_] := Block[{t$95$0 = N[(a / N[(k * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -5e+145], t$95$0, If[LessEqual[k, 1.9e-300], N[(-10.0 * N[(a * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 58.0], a, t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{a}{k \cdot k}\\
\mathbf{if}\;k \leq -5 \cdot 10^{+145}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;k \leq 1.9 \cdot 10^{-300}:\\
\;\;\;\;-10 \cdot \left(a \cdot k\right)\\
\mathbf{elif}\;k \leq 58:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if k < -4.99999999999999967e145 or 58 < k Initial program 81.9%
associate-*r/81.8%
associate-+l+81.8%
+-commutative81.8%
distribute-rgt-out81.9%
fma-def81.9%
+-commutative81.9%
Simplified81.9%
Taylor expanded in m around 0 56.8%
Taylor expanded in k around inf 55.4%
unpow255.4%
Simplified55.4%
if -4.99999999999999967e145 < k < 1.90000000000000006e-300Initial program 100.0%
associate-*r/100.0%
associate-+l+100.0%
+-commutative100.0%
distribute-rgt-out100.0%
fma-def100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in m around 0 3.4%
Taylor expanded in k around 0 5.4%
Taylor expanded in k around inf 14.7%
if 1.90000000000000006e-300 < k < 58Initial program 100.0%
associate-*r/100.0%
associate-+l+100.0%
+-commutative100.0%
distribute-rgt-out100.0%
fma-def100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in m around 0 59.9%
Taylor expanded in k around 0 58.0%
Final simplification47.8%
(FPCore (a k m) :precision binary64 (if (<= m -0.39) (/ a (* k k)) (if (<= m 2.7e+55) (/ a (+ 1.0 (* k k))) (* a (* k -10.0)))))
double code(double a, double k, double m) {
double tmp;
if (m <= -0.39) {
tmp = a / (k * k);
} else if (m <= 2.7e+55) {
tmp = a / (1.0 + (k * k));
} else {
tmp = a * (k * -10.0);
}
return tmp;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
real(8) :: tmp
if (m <= (-0.39d0)) then
tmp = a / (k * k)
else if (m <= 2.7d+55) then
tmp = a / (1.0d0 + (k * k))
else
tmp = a * (k * (-10.0d0))
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double tmp;
if (m <= -0.39) {
tmp = a / (k * k);
} else if (m <= 2.7e+55) {
tmp = a / (1.0 + (k * k));
} else {
tmp = a * (k * -10.0);
}
return tmp;
}
def code(a, k, m): tmp = 0 if m <= -0.39: tmp = a / (k * k) elif m <= 2.7e+55: tmp = a / (1.0 + (k * k)) else: tmp = a * (k * -10.0) return tmp
function code(a, k, m) tmp = 0.0 if (m <= -0.39) tmp = Float64(a / Float64(k * k)); elseif (m <= 2.7e+55) tmp = Float64(a / Float64(1.0 + Float64(k * k))); else tmp = Float64(a * Float64(k * -10.0)); end return tmp end
function tmp_2 = code(a, k, m) tmp = 0.0; if (m <= -0.39) tmp = a / (k * k); elseif (m <= 2.7e+55) tmp = a / (1.0 + (k * k)); else tmp = a * (k * -10.0); end tmp_2 = tmp; end
code[a_, k_, m_] := If[LessEqual[m, -0.39], N[(a / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 2.7e+55], N[(a / N[(1.0 + N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(k * -10.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq -0.39:\\
\;\;\;\;\frac{a}{k \cdot k}\\
\mathbf{elif}\;m \leq 2.7 \cdot 10^{+55}:\\
\;\;\;\;\frac{a}{1 + k \cdot k}\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(k \cdot -10\right)\\
\end{array}
\end{array}
if m < -0.39000000000000001Initial program 100.0%
associate-*r/100.0%
associate-+l+100.0%
+-commutative100.0%
distribute-rgt-out100.0%
fma-def100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in m around 0 38.4%
Taylor expanded in k around inf 60.2%
unpow260.2%
Simplified60.2%
if -0.39000000000000001 < m < 2.69999999999999977e55Initial program 95.3%
associate-*r/95.3%
associate-+l+95.3%
+-commutative95.3%
distribute-rgt-out95.3%
fma-def95.3%
+-commutative95.3%
Simplified95.3%
Taylor expanded in m around 0 86.4%
Taylor expanded in k around inf 83.3%
unpow283.3%
Simplified83.3%
if 2.69999999999999977e55 < m Initial program 82.1%
associate-*r/82.1%
associate-+l+82.1%
+-commutative82.1%
distribute-rgt-out82.1%
fma-def82.1%
+-commutative82.1%
Simplified82.1%
Taylor expanded in m around 0 3.0%
Taylor expanded in k around 0 6.5%
Taylor expanded in k around inf 18.8%
associate-*r*18.8%
*-commutative18.8%
Simplified18.8%
Final simplification56.2%
(FPCore (a k m) :precision binary64 (if (<= m 2.7e+55) a (* -10.0 (* a k))))
double code(double a, double k, double m) {
double tmp;
if (m <= 2.7e+55) {
tmp = a;
} else {
tmp = -10.0 * (a * k);
}
return tmp;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
real(8) :: tmp
if (m <= 2.7d+55) then
tmp = a
else
tmp = (-10.0d0) * (a * k)
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double tmp;
if (m <= 2.7e+55) {
tmp = a;
} else {
tmp = -10.0 * (a * k);
}
return tmp;
}
def code(a, k, m): tmp = 0 if m <= 2.7e+55: tmp = a else: tmp = -10.0 * (a * k) return tmp
function code(a, k, m) tmp = 0.0 if (m <= 2.7e+55) tmp = a; else tmp = Float64(-10.0 * Float64(a * k)); end return tmp end
function tmp_2 = code(a, k, m) tmp = 0.0; if (m <= 2.7e+55) tmp = a; else tmp = -10.0 * (a * k); end tmp_2 = tmp; end
code[a_, k_, m_] := If[LessEqual[m, 2.7e+55], a, N[(-10.0 * N[(a * k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq 2.7 \cdot 10^{+55}:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;-10 \cdot \left(a \cdot k\right)\\
\end{array}
\end{array}
if m < 2.69999999999999977e55Initial program 97.1%
associate-*r/97.1%
associate-+l+97.1%
+-commutative97.1%
distribute-rgt-out97.1%
fma-def97.1%
+-commutative97.1%
Simplified97.1%
Taylor expanded in m around 0 68.0%
Taylor expanded in k around 0 33.1%
if 2.69999999999999977e55 < m Initial program 82.1%
associate-*r/82.1%
associate-+l+82.1%
+-commutative82.1%
distribute-rgt-out82.1%
fma-def82.1%
+-commutative82.1%
Simplified82.1%
Taylor expanded in m around 0 3.0%
Taylor expanded in k around 0 6.5%
Taylor expanded in k around inf 18.8%
Final simplification28.4%
(FPCore (a k m) :precision binary64 (if (<= m 2.7e+55) a (* a (* k -10.0))))
double code(double a, double k, double m) {
double tmp;
if (m <= 2.7e+55) {
tmp = a;
} else {
tmp = a * (k * -10.0);
}
return tmp;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
real(8) :: tmp
if (m <= 2.7d+55) then
tmp = a
else
tmp = a * (k * (-10.0d0))
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double tmp;
if (m <= 2.7e+55) {
tmp = a;
} else {
tmp = a * (k * -10.0);
}
return tmp;
}
def code(a, k, m): tmp = 0 if m <= 2.7e+55: tmp = a else: tmp = a * (k * -10.0) return tmp
function code(a, k, m) tmp = 0.0 if (m <= 2.7e+55) tmp = a; else tmp = Float64(a * Float64(k * -10.0)); end return tmp end
function tmp_2 = code(a, k, m) tmp = 0.0; if (m <= 2.7e+55) tmp = a; else tmp = a * (k * -10.0); end tmp_2 = tmp; end
code[a_, k_, m_] := If[LessEqual[m, 2.7e+55], a, N[(a * N[(k * -10.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq 2.7 \cdot 10^{+55}:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(k \cdot -10\right)\\
\end{array}
\end{array}
if m < 2.69999999999999977e55Initial program 97.1%
associate-*r/97.1%
associate-+l+97.1%
+-commutative97.1%
distribute-rgt-out97.1%
fma-def97.1%
+-commutative97.1%
Simplified97.1%
Taylor expanded in m around 0 68.0%
Taylor expanded in k around 0 33.1%
if 2.69999999999999977e55 < m Initial program 82.1%
associate-*r/82.1%
associate-+l+82.1%
+-commutative82.1%
distribute-rgt-out82.1%
fma-def82.1%
+-commutative82.1%
Simplified82.1%
Taylor expanded in m around 0 3.0%
Taylor expanded in k around 0 6.5%
Taylor expanded in k around inf 18.8%
associate-*r*18.8%
*-commutative18.8%
Simplified18.8%
Final simplification28.4%
(FPCore (a k m) :precision binary64 a)
double code(double a, double k, double m) {
return a;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
code = a
end function
public static double code(double a, double k, double m) {
return a;
}
def code(a, k, m): return a
function code(a, k, m) return a end
function tmp = code(a, k, m) tmp = a; end
code[a_, k_, m_] := a
\begin{array}{l}
\\
a
\end{array}
Initial program 92.2%
associate-*r/92.2%
associate-+l+92.2%
+-commutative92.2%
distribute-rgt-out92.2%
fma-def92.2%
+-commutative92.2%
Simplified92.2%
Taylor expanded in m around 0 46.7%
Taylor expanded in k around 0 23.5%
Final simplification23.5%
herbie shell --seed 2023200
(FPCore (a k m)
:name "Falkner and Boettcher, Appendix A"
:precision binary64
(/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))