
(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 15 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 (let* ((t_0 (* (pow k m) a)) (t_1 (/ t_0 (+ (* k k) (+ (* 10.0 k) 1.0))))) (if (<= t_1 4e+242) t_1 t_0)))
double code(double a, double k, double m) {
double t_0 = pow(k, m) * a;
double t_1 = t_0 / ((k * k) + ((10.0 * k) + 1.0));
double tmp;
if (t_1 <= 4e+242) {
tmp = 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 = (k ** m) * a
t_1 = t_0 / ((k * k) + ((10.0d0 * k) + 1.0d0))
if (t_1 <= 4d+242) then
tmp = 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 = Math.pow(k, m) * a;
double t_1 = t_0 / ((k * k) + ((10.0 * k) + 1.0));
double tmp;
if (t_1 <= 4e+242) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
def code(a, k, m): t_0 = math.pow(k, m) * a t_1 = t_0 / ((k * k) + ((10.0 * k) + 1.0)) tmp = 0 if t_1 <= 4e+242: tmp = t_1 else: tmp = t_0 return tmp
function code(a, k, m) t_0 = Float64((k ^ m) * a) t_1 = Float64(t_0 / Float64(Float64(k * k) + Float64(Float64(10.0 * k) + 1.0))) tmp = 0.0 if (t_1 <= 4e+242) tmp = t_1; else tmp = t_0; end return tmp end
function tmp_2 = code(a, k, m) t_0 = (k ^ m) * a; t_1 = t_0 / ((k * k) + ((10.0 * k) + 1.0)); tmp = 0.0; if (t_1 <= 4e+242) tmp = t_1; else tmp = t_0; end tmp_2 = tmp; end
code[a_, k_, m_] := Block[{t$95$0 = N[(N[Power[k, m], $MachinePrecision] * a), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 / N[(N[(k * k), $MachinePrecision] + N[(N[(10.0 * k), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 4e+242], t$95$1, t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {k}^{m} \cdot a\\
t_1 := \frac{t\_0}{k \cdot k + \left(10 \cdot k + 1\right)}\\
\mathbf{if}\;t\_1 \leq 4 \cdot 10^{+242}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if (/.f64 (*.f64 a (pow.f64 k m)) (+.f64 (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 10 binary64) k)) (*.f64 k k))) < 4.0000000000000002e242Initial program 96.2%
if 4.0000000000000002e242 < (/.f64 (*.f64 a (pow.f64 k m)) (+.f64 (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 10 binary64) k)) (*.f64 k k))) Initial program 58.6%
Taylor expanded in k around 0
*-commutativeN/A
lower-*.f64N/A
lower-pow.f64100.0
Applied rewrites100.0%
Final simplification97.1%
(FPCore (a k m) :precision binary64 (if (<= m -0.0004) (/ (* (pow k m) a) (* k k)) (if (<= m 4.4e-8) (/ a (fma (+ 10.0 k) k 1.0)) (/ (pow k m) (/ 1.0 a)))))
double code(double a, double k, double m) {
double tmp;
if (m <= -0.0004) {
tmp = (pow(k, m) * a) / (k * k);
} else if (m <= 4.4e-8) {
tmp = a / fma((10.0 + k), k, 1.0);
} else {
tmp = pow(k, m) / (1.0 / a);
}
return tmp;
}
function code(a, k, m) tmp = 0.0 if (m <= -0.0004) tmp = Float64(Float64((k ^ m) * a) / Float64(k * k)); elseif (m <= 4.4e-8) tmp = Float64(a / fma(Float64(10.0 + k), k, 1.0)); else tmp = Float64((k ^ m) / Float64(1.0 / a)); end return tmp end
code[a_, k_, m_] := If[LessEqual[m, -0.0004], N[(N[(N[Power[k, m], $MachinePrecision] * a), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 4.4e-8], N[(a / N[(N[(10.0 + k), $MachinePrecision] * k + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[Power[k, m], $MachinePrecision] / N[(1.0 / a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq -0.0004:\\
\;\;\;\;\frac{{k}^{m} \cdot a}{k \cdot k}\\
\mathbf{elif}\;m \leq 4.4 \cdot 10^{-8}:\\
\;\;\;\;\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{{k}^{m}}{\frac{1}{a}}\\
\end{array}
\end{array}
if m < -4.00000000000000019e-4Initial program 98.9%
Taylor expanded in k around inf
unpow2N/A
lower-*.f64100.0
Applied rewrites100.0%
if -4.00000000000000019e-4 < m < 4.3999999999999997e-8Initial program 90.3%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites89.3%
if 4.3999999999999997e-8 < m Initial program 73.2%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6473.2
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
lift-*.f64N/A
lift-*.f64N/A
distribute-rgt-outN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-+.f6473.2
Applied rewrites73.2%
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
associate-/l*N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-/.f6470.9
lift-+.f64N/A
+-commutativeN/A
lift-+.f6470.9
Applied rewrites70.9%
Taylor expanded in k around 0
Applied rewrites98.9%
Final simplification96.4%
(FPCore (a k m) :precision binary64 (if (<= m 0.029) (* (/ (pow k m) (fma (+ 10.0 k) k 1.0)) a) (/ (pow k m) (/ 1.0 a))))
double code(double a, double k, double m) {
double tmp;
if (m <= 0.029) {
tmp = (pow(k, m) / fma((10.0 + k), k, 1.0)) * a;
} else {
tmp = pow(k, m) / (1.0 / a);
}
return tmp;
}
function code(a, k, m) tmp = 0.0 if (m <= 0.029) tmp = Float64(Float64((k ^ m) / fma(Float64(10.0 + k), k, 1.0)) * a); else tmp = Float64((k ^ m) / Float64(1.0 / a)); end return tmp end
code[a_, k_, m_] := If[LessEqual[m, 0.029], N[(N[(N[Power[k, m], $MachinePrecision] / N[(N[(10.0 + k), $MachinePrecision] * k + 1.0), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], N[(N[Power[k, m], $MachinePrecision] / N[(1.0 / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq 0.029:\\
\;\;\;\;\frac{{k}^{m}}{\mathsf{fma}\left(10 + k, k, 1\right)} \cdot a\\
\mathbf{else}:\\
\;\;\;\;\frac{{k}^{m}}{\frac{1}{a}}\\
\end{array}
\end{array}
if m < 0.0290000000000000015Initial program 95.1%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6495.0
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
lift-*.f64N/A
lift-*.f64N/A
distribute-rgt-outN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-+.f6495.6
Applied rewrites95.6%
if 0.0290000000000000015 < m Initial program 72.6%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6472.6
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
lift-*.f64N/A
lift-*.f64N/A
distribute-rgt-outN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-+.f6472.6
Applied rewrites72.6%
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
associate-/l*N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-/.f6470.2
lift-+.f64N/A
+-commutativeN/A
lift-+.f6470.2
Applied rewrites70.2%
Taylor expanded in k around 0
Applied rewrites100.0%
Final simplification97.1%
(FPCore (a k m)
:precision binary64
(let* ((t_0 (* (pow k m) a)))
(if (<= m -0.0004)
(/ t_0 (* k k))
(if (<= m 4.4e-8) (/ a (fma (+ 10.0 k) k 1.0)) t_0))))
double code(double a, double k, double m) {
double t_0 = pow(k, m) * a;
double tmp;
if (m <= -0.0004) {
tmp = t_0 / (k * k);
} else if (m <= 4.4e-8) {
tmp = a / fma((10.0 + k), k, 1.0);
} else {
tmp = t_0;
}
return tmp;
}
function code(a, k, m) t_0 = Float64((k ^ m) * a) tmp = 0.0 if (m <= -0.0004) tmp = Float64(t_0 / Float64(k * k)); elseif (m <= 4.4e-8) tmp = Float64(a / fma(Float64(10.0 + k), k, 1.0)); else tmp = t_0; end return tmp end
code[a_, k_, m_] := Block[{t$95$0 = N[(N[Power[k, m], $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[m, -0.0004], N[(t$95$0 / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 4.4e-8], N[(a / N[(N[(10.0 + k), $MachinePrecision] * k + 1.0), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {k}^{m} \cdot a\\
\mathbf{if}\;m \leq -0.0004:\\
\;\;\;\;\frac{t\_0}{k \cdot k}\\
\mathbf{elif}\;m \leq 4.4 \cdot 10^{-8}:\\
\;\;\;\;\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if m < -4.00000000000000019e-4Initial program 98.9%
Taylor expanded in k around inf
unpow2N/A
lower-*.f64100.0
Applied rewrites100.0%
if -4.00000000000000019e-4 < m < 4.3999999999999997e-8Initial program 90.3%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites89.3%
if 4.3999999999999997e-8 < m Initial program 73.2%
Taylor expanded in k around 0
*-commutativeN/A
lower-*.f64N/A
lower-pow.f6498.9
Applied rewrites98.9%
Final simplification96.4%
(FPCore (a k m)
:precision binary64
(let* ((t_0 (* (pow k m) a)))
(if (<= m -1.25e-17)
t_0
(if (<= m 4.4e-8) (/ a (fma (+ 10.0 k) k 1.0)) t_0))))
double code(double a, double k, double m) {
double t_0 = pow(k, m) * a;
double tmp;
if (m <= -1.25e-17) {
tmp = t_0;
} else if (m <= 4.4e-8) {
tmp = a / fma((10.0 + k), k, 1.0);
} else {
tmp = t_0;
}
return tmp;
}
function code(a, k, m) t_0 = Float64((k ^ m) * a) tmp = 0.0 if (m <= -1.25e-17) tmp = t_0; elseif (m <= 4.4e-8) tmp = Float64(a / fma(Float64(10.0 + k), k, 1.0)); else tmp = t_0; end return tmp end
code[a_, k_, m_] := Block[{t$95$0 = N[(N[Power[k, m], $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[m, -1.25e-17], t$95$0, If[LessEqual[m, 4.4e-8], N[(a / N[(N[(10.0 + k), $MachinePrecision] * k + 1.0), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {k}^{m} \cdot a\\
\mathbf{if}\;m \leq -1.25 \cdot 10^{-17}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;m \leq 4.4 \cdot 10^{-8}:\\
\;\;\;\;\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if m < -1.25e-17 or 4.3999999999999997e-8 < m Initial program 86.7%
Taylor expanded in k around 0
*-commutativeN/A
lower-*.f64N/A
lower-pow.f6498.9
Applied rewrites98.9%
if -1.25e-17 < m < 4.3999999999999997e-8Initial program 90.0%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites90.0%
(FPCore (a k m) :precision binary64 (if (<= m -230000000000.0) (/ (- a (* (+ (/ -99.0 k) 10.0) (/ a k))) (* k k)) (if (<= m 1.15) (/ a (fma (+ 10.0 k) k 1.0)) (* (* (* 99.0 k) k) a))))
double code(double a, double k, double m) {
double tmp;
if (m <= -230000000000.0) {
tmp = (a - (((-99.0 / k) + 10.0) * (a / k))) / (k * k);
} else if (m <= 1.15) {
tmp = a / fma((10.0 + k), k, 1.0);
} else {
tmp = ((99.0 * k) * k) * a;
}
return tmp;
}
function code(a, k, m) tmp = 0.0 if (m <= -230000000000.0) tmp = Float64(Float64(a - Float64(Float64(Float64(-99.0 / k) + 10.0) * Float64(a / k))) / Float64(k * k)); elseif (m <= 1.15) tmp = Float64(a / fma(Float64(10.0 + k), k, 1.0)); else tmp = Float64(Float64(Float64(99.0 * k) * k) * a); end return tmp end
code[a_, k_, m_] := If[LessEqual[m, -230000000000.0], N[(N[(a - N[(N[(N[(-99.0 / k), $MachinePrecision] + 10.0), $MachinePrecision] * N[(a / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 1.15], N[(a / N[(N[(10.0 + k), $MachinePrecision] * k + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * k), $MachinePrecision] * a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq -230000000000:\\
\;\;\;\;\frac{a - \left(\frac{-99}{k} + 10\right) \cdot \frac{a}{k}}{k \cdot k}\\
\mathbf{elif}\;m \leq 1.15:\\
\;\;\;\;\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(\left(99 \cdot k\right) \cdot k\right) \cdot a\\
\end{array}
\end{array}
if m < -2.3e11Initial program 98.9%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites34.3%
Taylor expanded in k around inf
Applied rewrites68.9%
if -2.3e11 < m < 1.1499999999999999Initial program 91.1%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites86.5%
if 1.1499999999999999 < m Initial program 72.3%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites2.8%
Applied rewrites2.8%
Taylor expanded in k around 0
Applied rewrites34.0%
Taylor expanded in k around inf
Applied rewrites68.9%
Final simplification74.7%
(FPCore (a k m) :precision binary64 (if (<= m -230000000000.0) (* (/ 1.0 (* k k)) a) (if (<= m 1.15) (/ a (fma (+ 10.0 k) k 1.0)) (* (* (* 99.0 k) k) a))))
double code(double a, double k, double m) {
double tmp;
if (m <= -230000000000.0) {
tmp = (1.0 / (k * k)) * a;
} else if (m <= 1.15) {
tmp = a / fma((10.0 + k), k, 1.0);
} else {
tmp = ((99.0 * k) * k) * a;
}
return tmp;
}
function code(a, k, m) tmp = 0.0 if (m <= -230000000000.0) tmp = Float64(Float64(1.0 / Float64(k * k)) * a); elseif (m <= 1.15) tmp = Float64(a / fma(Float64(10.0 + k), k, 1.0)); else tmp = Float64(Float64(Float64(99.0 * k) * k) * a); end return tmp end
code[a_, k_, m_] := If[LessEqual[m, -230000000000.0], N[(N[(1.0 / N[(k * k), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[m, 1.15], N[(a / N[(N[(10.0 + k), $MachinePrecision] * k + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * k), $MachinePrecision] * a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq -230000000000:\\
\;\;\;\;\frac{1}{k \cdot k} \cdot a\\
\mathbf{elif}\;m \leq 1.15:\\
\;\;\;\;\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(\left(99 \cdot k\right) \cdot k\right) \cdot a\\
\end{array}
\end{array}
if m < -2.3e11Initial program 98.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6498.9
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
lift-*.f64N/A
lift-*.f64N/A
distribute-rgt-outN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-+.f64100.0
Applied rewrites100.0%
Taylor expanded in m around 0
Applied rewrites34.3%
Taylor expanded in k around inf
unpow2N/A
lower-*.f6461.3
Applied rewrites61.3%
if -2.3e11 < m < 1.1499999999999999Initial program 91.1%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites86.5%
if 1.1499999999999999 < m Initial program 72.3%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites2.8%
Applied rewrites2.8%
Taylor expanded in k around 0
Applied rewrites34.0%
Taylor expanded in k around inf
Applied rewrites68.9%
(FPCore (a k m) :precision binary64 (if (<= m -230000000000.0) (/ a (* k k)) (if (<= m 1.15) (/ a (fma (+ 10.0 k) k 1.0)) (* (* (* 99.0 k) k) a))))
double code(double a, double k, double m) {
double tmp;
if (m <= -230000000000.0) {
tmp = a / (k * k);
} else if (m <= 1.15) {
tmp = a / fma((10.0 + k), k, 1.0);
} else {
tmp = ((99.0 * k) * k) * a;
}
return tmp;
}
function code(a, k, m) tmp = 0.0 if (m <= -230000000000.0) tmp = Float64(a / Float64(k * k)); elseif (m <= 1.15) tmp = Float64(a / fma(Float64(10.0 + k), k, 1.0)); else tmp = Float64(Float64(Float64(99.0 * k) * k) * a); end return tmp end
code[a_, k_, m_] := If[LessEqual[m, -230000000000.0], N[(a / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 1.15], N[(a / N[(N[(10.0 + k), $MachinePrecision] * k + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * k), $MachinePrecision] * a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq -230000000000:\\
\;\;\;\;\frac{a}{k \cdot k}\\
\mathbf{elif}\;m \leq 1.15:\\
\;\;\;\;\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(\left(99 \cdot k\right) \cdot k\right) \cdot a\\
\end{array}
\end{array}
if m < -2.3e11Initial program 98.9%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites34.3%
Taylor expanded in k around inf
Applied rewrites59.2%
if -2.3e11 < m < 1.1499999999999999Initial program 91.1%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites86.5%
if 1.1499999999999999 < m Initial program 72.3%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites2.8%
Applied rewrites2.8%
Taylor expanded in k around 0
Applied rewrites34.0%
Taylor expanded in k around inf
Applied rewrites68.9%
(FPCore (a k m) :precision binary64 (if (<= m -8e-5) (/ a (* k k)) (if (<= m 1.15) (/ a (fma 10.0 k 1.0)) (* (* (* 99.0 k) k) a))))
double code(double a, double k, double m) {
double tmp;
if (m <= -8e-5) {
tmp = a / (k * k);
} else if (m <= 1.15) {
tmp = a / fma(10.0, k, 1.0);
} else {
tmp = ((99.0 * k) * k) * a;
}
return tmp;
}
function code(a, k, m) tmp = 0.0 if (m <= -8e-5) tmp = Float64(a / Float64(k * k)); elseif (m <= 1.15) tmp = Float64(a / fma(10.0, k, 1.0)); else tmp = Float64(Float64(Float64(99.0 * k) * k) * a); end return tmp end
code[a_, k_, m_] := If[LessEqual[m, -8e-5], N[(a / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 1.15], N[(a / N[(10.0 * k + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * k), $MachinePrecision] * a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq -8 \cdot 10^{-5}:\\
\;\;\;\;\frac{a}{k \cdot k}\\
\mathbf{elif}\;m \leq 1.15:\\
\;\;\;\;\frac{a}{\mathsf{fma}\left(10, k, 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(\left(99 \cdot k\right) \cdot k\right) \cdot a\\
\end{array}
\end{array}
if m < -8.00000000000000065e-5Initial program 98.9%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites36.1%
Taylor expanded in k around inf
Applied rewrites60.0%
if -8.00000000000000065e-5 < m < 1.1499999999999999Initial program 90.6%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites87.0%
Taylor expanded in k around 0
Applied rewrites58.9%
if 1.1499999999999999 < m Initial program 72.3%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites2.8%
Applied rewrites2.8%
Taylor expanded in k around 0
Applied rewrites34.0%
Taylor expanded in k around inf
Applied rewrites68.9%
(FPCore (a k m) :precision binary64 (if (<= m -6.8e-239) (/ a (* k k)) (if (<= m 0.52) (fma (fma 99.0 k -10.0) (* k a) a) (* (* (* 99.0 k) k) a))))
double code(double a, double k, double m) {
double tmp;
if (m <= -6.8e-239) {
tmp = a / (k * k);
} else if (m <= 0.52) {
tmp = fma(fma(99.0, k, -10.0), (k * a), a);
} else {
tmp = ((99.0 * k) * k) * a;
}
return tmp;
}
function code(a, k, m) tmp = 0.0 if (m <= -6.8e-239) tmp = Float64(a / Float64(k * k)); elseif (m <= 0.52) tmp = fma(fma(99.0, k, -10.0), Float64(k * a), a); else tmp = Float64(Float64(Float64(99.0 * k) * k) * a); end return tmp end
code[a_, k_, m_] := If[LessEqual[m, -6.8e-239], N[(a / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 0.52], N[(N[(99.0 * k + -10.0), $MachinePrecision] * N[(k * a), $MachinePrecision] + a), $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * k), $MachinePrecision] * a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq -6.8 \cdot 10^{-239}:\\
\;\;\;\;\frac{a}{k \cdot k}\\
\mathbf{elif}\;m \leq 0.52:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(99, k, -10\right), k \cdot a, a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(99 \cdot k\right) \cdot k\right) \cdot a\\
\end{array}
\end{array}
if m < -6.8e-239Initial program 96.9%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites48.0%
Taylor expanded in k around inf
Applied rewrites57.9%
if -6.8e-239 < m < 0.52000000000000002Initial program 91.0%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites86.7%
Taylor expanded in k around 0
Applied rewrites52.3%
Applied rewrites52.3%
if 0.52000000000000002 < m Initial program 72.3%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites2.8%
Applied rewrites2.8%
Taylor expanded in k around 0
Applied rewrites34.0%
Taylor expanded in k around inf
Applied rewrites68.9%
Final simplification60.3%
(FPCore (a k m) :precision binary64 (if (<= m -6.8e-239) (/ a (* k k)) (if (<= m 0.52) (* 1.0 a) (* (* (* 99.0 k) k) a))))
double code(double a, double k, double m) {
double tmp;
if (m <= -6.8e-239) {
tmp = a / (k * k);
} else if (m <= 0.52) {
tmp = 1.0 * a;
} else {
tmp = ((99.0 * k) * k) * a;
}
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 <= (-6.8d-239)) then
tmp = a / (k * k)
else if (m <= 0.52d0) then
tmp = 1.0d0 * a
else
tmp = ((99.0d0 * k) * k) * a
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double tmp;
if (m <= -6.8e-239) {
tmp = a / (k * k);
} else if (m <= 0.52) {
tmp = 1.0 * a;
} else {
tmp = ((99.0 * k) * k) * a;
}
return tmp;
}
def code(a, k, m): tmp = 0 if m <= -6.8e-239: tmp = a / (k * k) elif m <= 0.52: tmp = 1.0 * a else: tmp = ((99.0 * k) * k) * a return tmp
function code(a, k, m) tmp = 0.0 if (m <= -6.8e-239) tmp = Float64(a / Float64(k * k)); elseif (m <= 0.52) tmp = Float64(1.0 * a); else tmp = Float64(Float64(Float64(99.0 * k) * k) * a); end return tmp end
function tmp_2 = code(a, k, m) tmp = 0.0; if (m <= -6.8e-239) tmp = a / (k * k); elseif (m <= 0.52) tmp = 1.0 * a; else tmp = ((99.0 * k) * k) * a; end tmp_2 = tmp; end
code[a_, k_, m_] := If[LessEqual[m, -6.8e-239], N[(a / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 0.52], N[(1.0 * a), $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * k), $MachinePrecision] * a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq -6.8 \cdot 10^{-239}:\\
\;\;\;\;\frac{a}{k \cdot k}\\
\mathbf{elif}\;m \leq 0.52:\\
\;\;\;\;1 \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(\left(99 \cdot k\right) \cdot k\right) \cdot a\\
\end{array}
\end{array}
if m < -6.8e-239Initial program 96.9%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites48.0%
Taylor expanded in k around inf
Applied rewrites57.9%
if -6.8e-239 < m < 0.52000000000000002Initial program 91.0%
Taylor expanded in k around 0
*-commutativeN/A
lower-*.f64N/A
lower-pow.f6454.9
Applied rewrites54.9%
Taylor expanded in m around 0
Applied rewrites52.2%
if 0.52000000000000002 < m Initial program 72.3%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites2.8%
Applied rewrites2.8%
Taylor expanded in k around 0
Applied rewrites34.0%
Taylor expanded in k around inf
Applied rewrites68.9%
(FPCore (a k m) :precision binary64 (if (<= m 0.52) (* 1.0 a) (* (* (* 99.0 k) k) a)))
double code(double a, double k, double m) {
double tmp;
if (m <= 0.52) {
tmp = 1.0 * a;
} else {
tmp = ((99.0 * k) * k) * a;
}
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.52d0) then
tmp = 1.0d0 * a
else
tmp = ((99.0d0 * k) * k) * a
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double tmp;
if (m <= 0.52) {
tmp = 1.0 * a;
} else {
tmp = ((99.0 * k) * k) * a;
}
return tmp;
}
def code(a, k, m): tmp = 0 if m <= 0.52: tmp = 1.0 * a else: tmp = ((99.0 * k) * k) * a return tmp
function code(a, k, m) tmp = 0.0 if (m <= 0.52) tmp = Float64(1.0 * a); else tmp = Float64(Float64(Float64(99.0 * k) * k) * a); end return tmp end
function tmp_2 = code(a, k, m) tmp = 0.0; if (m <= 0.52) tmp = 1.0 * a; else tmp = ((99.0 * k) * k) * a; end tmp_2 = tmp; end
code[a_, k_, m_] := If[LessEqual[m, 0.52], N[(1.0 * a), $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * k), $MachinePrecision] * a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq 0.52:\\
\;\;\;\;1 \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(\left(99 \cdot k\right) \cdot k\right) \cdot a\\
\end{array}
\end{array}
if m < 0.52000000000000002Initial program 95.1%
Taylor expanded in k around 0
*-commutativeN/A
lower-*.f64N/A
lower-pow.f6476.5
Applied rewrites76.5%
Taylor expanded in m around 0
Applied rewrites24.2%
if 0.52000000000000002 < m Initial program 72.3%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites2.8%
Applied rewrites2.8%
Taylor expanded in k around 0
Applied rewrites34.0%
Taylor expanded in k around inf
Applied rewrites68.9%
(FPCore (a k m) :precision binary64 (if (<= m 0.52) (* 1.0 a) (* (* (* k a) k) 99.0)))
double code(double a, double k, double m) {
double tmp;
if (m <= 0.52) {
tmp = 1.0 * a;
} else {
tmp = ((k * a) * k) * 99.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.52d0) then
tmp = 1.0d0 * a
else
tmp = ((k * a) * k) * 99.0d0
end if
code = tmp
end function
public static double code(double a, double k, double m) {
double tmp;
if (m <= 0.52) {
tmp = 1.0 * a;
} else {
tmp = ((k * a) * k) * 99.0;
}
return tmp;
}
def code(a, k, m): tmp = 0 if m <= 0.52: tmp = 1.0 * a else: tmp = ((k * a) * k) * 99.0 return tmp
function code(a, k, m) tmp = 0.0 if (m <= 0.52) tmp = Float64(1.0 * a); else tmp = Float64(Float64(Float64(k * a) * k) * 99.0); end return tmp end
function tmp_2 = code(a, k, m) tmp = 0.0; if (m <= 0.52) tmp = 1.0 * a; else tmp = ((k * a) * k) * 99.0; end tmp_2 = tmp; end
code[a_, k_, m_] := If[LessEqual[m, 0.52], N[(1.0 * a), $MachinePrecision], N[(N[(N[(k * a), $MachinePrecision] * k), $MachinePrecision] * 99.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq 0.52:\\
\;\;\;\;1 \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(\left(k \cdot a\right) \cdot k\right) \cdot 99\\
\end{array}
\end{array}
if m < 0.52000000000000002Initial program 95.1%
Taylor expanded in k around 0
*-commutativeN/A
lower-*.f64N/A
lower-pow.f6476.5
Applied rewrites76.5%
Taylor expanded in m around 0
Applied rewrites24.2%
if 0.52000000000000002 < m Initial program 72.3%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites2.8%
Taylor expanded in k around 0
Applied rewrites30.7%
Taylor expanded in k around inf
Applied rewrites60.7%
(FPCore (a k m) :precision binary64 (if (<= m 6.7e+19) (* 1.0 a) (* (* -10.0 a) k)))
double code(double a, double k, double m) {
double tmp;
if (m <= 6.7e+19) {
tmp = 1.0 * 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 <= 6.7d+19) then
tmp = 1.0d0 * 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 <= 6.7e+19) {
tmp = 1.0 * a;
} else {
tmp = (-10.0 * a) * k;
}
return tmp;
}
def code(a, k, m): tmp = 0 if m <= 6.7e+19: tmp = 1.0 * a else: tmp = (-10.0 * a) * k return tmp
function code(a, k, m) tmp = 0.0 if (m <= 6.7e+19) tmp = Float64(1.0 * a); else tmp = Float64(Float64(-10.0 * a) * k); end return tmp end
function tmp_2 = code(a, k, m) tmp = 0.0; if (m <= 6.7e+19) tmp = 1.0 * a; else tmp = (-10.0 * a) * k; end tmp_2 = tmp; end
code[a_, k_, m_] := If[LessEqual[m, 6.7e+19], N[(1.0 * a), $MachinePrecision], N[(N[(-10.0 * a), $MachinePrecision] * k), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;m \leq 6.7 \cdot 10^{+19}:\\
\;\;\;\;1 \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(-10 \cdot a\right) \cdot k\\
\end{array}
\end{array}
if m < 6.7e19Initial program 94.6%
Taylor expanded in k around 0
*-commutativeN/A
lower-*.f64N/A
lower-pow.f6476.8
Applied rewrites76.8%
Taylor expanded in m around 0
Applied rewrites24.0%
if 6.7e19 < m Initial program 72.8%
Taylor expanded in m around 0
lower-/.f64N/A
unpow2N/A
distribute-rgt-inN/A
+-commutativeN/A
metadata-evalN/A
lft-mult-inverseN/A
associate-*l*N/A
*-lft-identityN/A
distribute-rgt-inN/A
+-commutativeN/A
associate-*l*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites2.9%
Taylor expanded in k around 0
Applied rewrites9.0%
Taylor expanded in k around inf
Applied rewrites21.7%
(FPCore (a k m) :precision binary64 (* 1.0 a))
double code(double a, double k, double m) {
return 1.0 * a;
}
real(8) function code(a, k, m)
real(8), intent (in) :: a
real(8), intent (in) :: k
real(8), intent (in) :: m
code = 1.0d0 * a
end function
public static double code(double a, double k, double m) {
return 1.0 * a;
}
def code(a, k, m): return 1.0 * a
function code(a, k, m) return Float64(1.0 * a) end
function tmp = code(a, k, m) tmp = 1.0 * a; end
code[a_, k_, m_] := N[(1.0 * a), $MachinePrecision]
\begin{array}{l}
\\
1 \cdot a
\end{array}
Initial program 87.7%
Taylor expanded in k around 0
*-commutativeN/A
lower-*.f64N/A
lower-pow.f6484.1
Applied rewrites84.1%
Taylor expanded in m around 0
Applied rewrites17.5%
herbie shell --seed 2024271
(FPCore (a k m)
:name "Falkner and Boettcher, Appendix A"
:precision binary64
(/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))