Falkner and Boettcher, Appendix A

Percentage Accurate: 90.7% → 98.6%
Time: 8.9s
Alternatives: 14
Speedup: 0.6×

Specification

?
\[\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
 (/ (* 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:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 14 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 90.7% accurate, 1.0× speedup?

\[\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
 (/ (* 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}

Alternative 1: 98.6% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;m \leq -9.8 \cdot 10^{-8}:\\ \;\;\;\;{\left(\frac{{k}^{\left(-m\right)}}{a}\right)}^{-1}\\ \mathbf{elif}\;m \leq 2.7 \cdot 10^{-27}:\\ \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\ \mathbf{else}:\\ \;\;\;\;a \cdot {k}^{\left(-1 + \left(-1 + m\right)\right)}\\ \end{array} \end{array} \]
(FPCore (a k m)
 :precision binary64
 (if (<= m -9.8e-8)
   (pow (/ (pow k (- m)) a) -1.0)
   (if (<= m 2.7e-27)
     (pow (fma (/ k a) (+ 10.0 k) (pow a -1.0)) -1.0)
     (* a (pow k (+ -1.0 (+ -1.0 m)))))))
double code(double a, double k, double m) {
	double tmp;
	if (m <= -9.8e-8) {
		tmp = pow((pow(k, -m) / a), -1.0);
	} else if (m <= 2.7e-27) {
		tmp = pow(fma((k / a), (10.0 + k), pow(a, -1.0)), -1.0);
	} else {
		tmp = a * pow(k, (-1.0 + (-1.0 + m)));
	}
	return tmp;
}
function code(a, k, m)
	tmp = 0.0
	if (m <= -9.8e-8)
		tmp = Float64((k ^ Float64(-m)) / a) ^ -1.0;
	elseif (m <= 2.7e-27)
		tmp = fma(Float64(k / a), Float64(10.0 + k), (a ^ -1.0)) ^ -1.0;
	else
		tmp = Float64(a * (k ^ Float64(-1.0 + Float64(-1.0 + m))));
	end
	return tmp
end
code[a_, k_, m_] := If[LessEqual[m, -9.8e-8], N[Power[N[(N[Power[k, (-m)], $MachinePrecision] / a), $MachinePrecision], -1.0], $MachinePrecision], If[LessEqual[m, 2.7e-27], N[Power[N[(N[(k / a), $MachinePrecision] * N[(10.0 + k), $MachinePrecision] + N[Power[a, -1.0], $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision], N[(a * N[Power[k, N[(-1.0 + N[(-1.0 + m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;m \leq -9.8 \cdot 10^{-8}:\\
\;\;\;\;{\left(\frac{{k}^{\left(-m\right)}}{a}\right)}^{-1}\\

\mathbf{elif}\;m \leq 2.7 \cdot 10^{-27}:\\
\;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\

\mathbf{else}:\\
\;\;\;\;a \cdot {k}^{\left(-1 + \left(-1 + m\right)\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if m < -9.8000000000000004e-8

    1. Initial program 100.0%

      \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto \color{blue}{\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}} \]
      2. clear-numN/A

        \[\leadsto \color{blue}{\frac{1}{\frac{\left(1 + 10 \cdot k\right) + k \cdot k}{a \cdot {k}^{m}}}} \]
      3. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{1}{\frac{\left(1 + 10 \cdot k\right) + k \cdot k}{a \cdot {k}^{m}}}} \]
      4. lower-/.f64100.0

        \[\leadsto \frac{1}{\color{blue}{\frac{\left(1 + 10 \cdot k\right) + k \cdot k}{a \cdot {k}^{m}}}} \]
      5. lift-+.f64N/A

        \[\leadsto \frac{1}{\frac{\color{blue}{\left(1 + 10 \cdot k\right) + k \cdot k}}{a \cdot {k}^{m}}} \]
      6. lift-+.f64N/A

        \[\leadsto \frac{1}{\frac{\color{blue}{\left(1 + 10 \cdot k\right)} + k \cdot k}{a \cdot {k}^{m}}} \]
      7. associate-+l+N/A

        \[\leadsto \frac{1}{\frac{\color{blue}{1 + \left(10 \cdot k + k \cdot k\right)}}{a \cdot {k}^{m}}} \]
      8. +-commutativeN/A

        \[\leadsto \frac{1}{\frac{\color{blue}{\left(10 \cdot k + k \cdot k\right) + 1}}{a \cdot {k}^{m}}} \]
      9. lift-*.f64N/A

        \[\leadsto \frac{1}{\frac{\left(\color{blue}{10 \cdot k} + k \cdot k\right) + 1}{a \cdot {k}^{m}}} \]
      10. lift-*.f64N/A

        \[\leadsto \frac{1}{\frac{\left(10 \cdot k + \color{blue}{k \cdot k}\right) + 1}{a \cdot {k}^{m}}} \]
      11. distribute-rgt-outN/A

        \[\leadsto \frac{1}{\frac{\color{blue}{k \cdot \left(10 + k\right)} + 1}{a \cdot {k}^{m}}} \]
      12. *-commutativeN/A

        \[\leadsto \frac{1}{\frac{\color{blue}{\left(10 + k\right) \cdot k} + 1}{a \cdot {k}^{m}}} \]
      13. lower-fma.f64N/A

        \[\leadsto \frac{1}{\frac{\color{blue}{\mathsf{fma}\left(10 + k, k, 1\right)}}{a \cdot {k}^{m}}} \]
      14. +-commutativeN/A

        \[\leadsto \frac{1}{\frac{\mathsf{fma}\left(\color{blue}{k + 10}, k, 1\right)}{a \cdot {k}^{m}}} \]
      15. lower-+.f64100.0

        \[\leadsto \frac{1}{\frac{\mathsf{fma}\left(\color{blue}{k + 10}, k, 1\right)}{a \cdot {k}^{m}}} \]
      16. lift-*.f64N/A

        \[\leadsto \frac{1}{\frac{\mathsf{fma}\left(k + 10, k, 1\right)}{\color{blue}{a \cdot {k}^{m}}}} \]
      17. *-commutativeN/A

        \[\leadsto \frac{1}{\frac{\mathsf{fma}\left(k + 10, k, 1\right)}{\color{blue}{{k}^{m} \cdot a}}} \]
      18. lower-*.f64100.0

        \[\leadsto \frac{1}{\frac{\mathsf{fma}\left(k + 10, k, 1\right)}{\color{blue}{{k}^{m} \cdot a}}} \]
    4. Applied rewrites100.0%

      \[\leadsto \color{blue}{\frac{1}{\frac{\mathsf{fma}\left(k + 10, k, 1\right)}{{k}^{m} \cdot a}}} \]
    5. Taylor expanded in k around 0

      \[\leadsto \frac{1}{\color{blue}{\frac{1}{a \cdot {k}^{m}}}} \]
    6. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto \frac{1}{\frac{1}{\color{blue}{{k}^{m} \cdot a}}} \]
      2. associate-/r*N/A

        \[\leadsto \frac{1}{\color{blue}{\frac{\frac{1}{{k}^{m}}}{a}}} \]
      3. rem-exp-logN/A

        \[\leadsto \frac{1}{\frac{\frac{1}{{\color{blue}{\left(e^{\log k}\right)}}^{m}}}{a}} \]
      4. remove-double-negN/A

        \[\leadsto \frac{1}{\frac{\frac{1}{{\left(e^{\color{blue}{\mathsf{neg}\left(\left(\mathsf{neg}\left(\log k\right)\right)\right)}}\right)}^{m}}}{a}} \]
      5. log-recN/A

        \[\leadsto \frac{1}{\frac{\frac{1}{{\left(e^{\mathsf{neg}\left(\color{blue}{\log \left(\frac{1}{k}\right)}\right)}\right)}^{m}}}{a}} \]
      6. mul-1-negN/A

        \[\leadsto \frac{1}{\frac{\frac{1}{{\left(e^{\color{blue}{-1 \cdot \log \left(\frac{1}{k}\right)}}\right)}^{m}}}{a}} \]
      7. exp-prodN/A

        \[\leadsto \frac{1}{\frac{\frac{1}{\color{blue}{e^{\left(-1 \cdot \log \left(\frac{1}{k}\right)\right) \cdot m}}}}{a}} \]
      8. associate-*r*N/A

        \[\leadsto \frac{1}{\frac{\frac{1}{e^{\color{blue}{-1 \cdot \left(\log \left(\frac{1}{k}\right) \cdot m\right)}}}}{a}} \]
      9. *-commutativeN/A

        \[\leadsto \frac{1}{\frac{\frac{1}{e^{-1 \cdot \color{blue}{\left(m \cdot \log \left(\frac{1}{k}\right)\right)}}}}{a}} \]
      10. mul-1-negN/A

        \[\leadsto \frac{1}{\frac{\frac{1}{e^{\color{blue}{\mathsf{neg}\left(m \cdot \log \left(\frac{1}{k}\right)\right)}}}}{a}} \]
      11. exp-negN/A

        \[\leadsto \frac{1}{\frac{\frac{1}{\color{blue}{\frac{1}{e^{m \cdot \log \left(\frac{1}{k}\right)}}}}}{a}} \]
      12. remove-double-divN/A

        \[\leadsto \frac{1}{\frac{\color{blue}{e^{m \cdot \log \left(\frac{1}{k}\right)}}}{a}} \]
      13. lower-/.f64N/A

        \[\leadsto \frac{1}{\color{blue}{\frac{e^{m \cdot \log \left(\frac{1}{k}\right)}}{a}}} \]
    7. Applied rewrites100.0%

      \[\leadsto \frac{1}{\color{blue}{\frac{{k}^{\left(-m\right)}}{a}}} \]

    if -9.8000000000000004e-8 < m < 2.69999999999999989e-27

    1. Initial program 92.7%

      \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
    2. Add Preprocessing
    3. Taylor expanded in m around 0

      \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
    4. Step-by-step derivation
      1. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
      2. associate-+r+N/A

        \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
      3. +-commutativeN/A

        \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
      4. +-commutativeN/A

        \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
      5. associate-+l+N/A

        \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
      6. +-commutativeN/A

        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
      7. associate-+l+N/A

        \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
      8. metadata-evalN/A

        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
      9. lft-mult-inverseN/A

        \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
      10. associate-*l*N/A

        \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
      11. associate-*r*N/A

        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
      12. unpow2N/A

        \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
      13. associate-+l+N/A

        \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
      14. distribute-lft1-inN/A

        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
      15. +-commutativeN/A

        \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
      16. unpow2N/A

        \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
      17. associate-*r*N/A

        \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
      18. lower-fma.f64N/A

        \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
    5. Applied rewrites92.7%

      \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
    6. Step-by-step derivation
      1. Applied rewrites92.7%

        \[\leadsto \frac{1}{\color{blue}{\frac{\mathsf{fma}\left(10 + k, k, 1\right)}{a}}} \]
      2. Taylor expanded in k around 0

        \[\leadsto \frac{1}{k \cdot \left(10 \cdot \frac{1}{a} + \frac{k}{a}\right) + \color{blue}{\frac{1}{a}}} \]
      3. Step-by-step derivation
        1. Applied rewrites99.8%

          \[\leadsto \frac{1}{\mathsf{fma}\left(\frac{k}{a}, \color{blue}{10 + k}, \frac{1}{a}\right)} \]

        if 2.69999999999999989e-27 < m

        1. Initial program 80.0%

          \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
        2. Add Preprocessing
        3. Taylor expanded in k around inf

          \[\leadsto \color{blue}{\frac{a \cdot e^{-1 \cdot \left(m \cdot \log \left(\frac{1}{k}\right)\right)}}{{k}^{2}}} \]
        4. Step-by-step derivation
          1. *-rgt-identityN/A

            \[\leadsto \frac{a \cdot e^{-1 \cdot \left(m \cdot \log \left(\frac{1}{k}\right)\right)}}{\color{blue}{{k}^{2} \cdot 1}} \]
          2. times-fracN/A

            \[\leadsto \color{blue}{\frac{a}{{k}^{2}} \cdot \frac{e^{-1 \cdot \left(m \cdot \log \left(\frac{1}{k}\right)\right)}}{1}} \]
          3. *-commutativeN/A

            \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{e^{-1 \cdot \color{blue}{\left(\log \left(\frac{1}{k}\right) \cdot m\right)}}}{1} \]
          4. associate-*r*N/A

            \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{e^{\color{blue}{\left(-1 \cdot \log \left(\frac{1}{k}\right)\right) \cdot m}}}{1} \]
          5. exp-prodN/A

            \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{\color{blue}{{\left(e^{-1 \cdot \log \left(\frac{1}{k}\right)}\right)}^{m}}}{1} \]
          6. neg-mul-1N/A

            \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{{\left(e^{\color{blue}{\mathsf{neg}\left(\log \left(\frac{1}{k}\right)\right)}}\right)}^{m}}{1} \]
          7. log-recN/A

            \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{{\left(e^{\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(\log k\right)\right)}\right)}\right)}^{m}}{1} \]
          8. remove-double-negN/A

            \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{{\left(e^{\color{blue}{\log k}}\right)}^{m}}{1} \]
          9. rem-exp-logN/A

            \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{{\color{blue}{k}}^{m}}{1} \]
          10. /-rgt-identityN/A

            \[\leadsto \frac{a}{{k}^{2}} \cdot \color{blue}{{k}^{m}} \]
          11. lower-*.f64N/A

            \[\leadsto \color{blue}{\frac{a}{{k}^{2}} \cdot {k}^{m}} \]
          12. unpow2N/A

            \[\leadsto \frac{a}{\color{blue}{k \cdot k}} \cdot {k}^{m} \]
          13. associate-/r*N/A

            \[\leadsto \color{blue}{\frac{\frac{a}{k}}{k}} \cdot {k}^{m} \]
          14. lower-/.f64N/A

            \[\leadsto \color{blue}{\frac{\frac{a}{k}}{k}} \cdot {k}^{m} \]
          15. lower-/.f64N/A

            \[\leadsto \frac{\color{blue}{\frac{a}{k}}}{k} \cdot {k}^{m} \]
          16. lower-pow.f6450.5

            \[\leadsto \frac{\frac{a}{k}}{k} \cdot \color{blue}{{k}^{m}} \]
        5. Applied rewrites50.5%

          \[\leadsto \color{blue}{\frac{\frac{a}{k}}{k} \cdot {k}^{m}} \]
        6. Step-by-step derivation
          1. Applied rewrites67.4%

            \[\leadsto \frac{a}{k} \cdot \color{blue}{{k}^{\left(-1 + m\right)}} \]
          2. Step-by-step derivation
            1. Applied rewrites100.0%

              \[\leadsto a \cdot \color{blue}{{k}^{\left(-1 + \left(-1 + m\right)\right)}} \]
          3. Recombined 3 regimes into one program.
          4. Final simplification99.9%

            \[\leadsto \begin{array}{l} \mathbf{if}\;m \leq -9.8 \cdot 10^{-8}:\\ \;\;\;\;{\left(\frac{{k}^{\left(-m\right)}}{a}\right)}^{-1}\\ \mathbf{elif}\;m \leq 2.7 \cdot 10^{-27}:\\ \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\ \mathbf{else}:\\ \;\;\;\;a \cdot {k}^{\left(-1 + \left(-1 + m\right)\right)}\\ \end{array} \]
          5. Add Preprocessing

          Alternative 2: 99.0% accurate, 0.6× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;m \leq -9.8 \cdot 10^{-8} \lor \neg \left(m \leq 1.6 \cdot 10^{-7}\right):\\ \;\;\;\;{k}^{m} \cdot a\\ \mathbf{else}:\\ \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\ \end{array} \end{array} \]
          (FPCore (a k m)
           :precision binary64
           (if (or (<= m -9.8e-8) (not (<= m 1.6e-7)))
             (* (pow k m) a)
             (pow (fma (/ k a) (+ 10.0 k) (pow a -1.0)) -1.0)))
          double code(double a, double k, double m) {
          	double tmp;
          	if ((m <= -9.8e-8) || !(m <= 1.6e-7)) {
          		tmp = pow(k, m) * a;
          	} else {
          		tmp = pow(fma((k / a), (10.0 + k), pow(a, -1.0)), -1.0);
          	}
          	return tmp;
          }
          
          function code(a, k, m)
          	tmp = 0.0
          	if ((m <= -9.8e-8) || !(m <= 1.6e-7))
          		tmp = Float64((k ^ m) * a);
          	else
          		tmp = fma(Float64(k / a), Float64(10.0 + k), (a ^ -1.0)) ^ -1.0;
          	end
          	return tmp
          end
          
          code[a_, k_, m_] := If[Or[LessEqual[m, -9.8e-8], N[Not[LessEqual[m, 1.6e-7]], $MachinePrecision]], N[(N[Power[k, m], $MachinePrecision] * a), $MachinePrecision], N[Power[N[(N[(k / a), $MachinePrecision] * N[(10.0 + k), $MachinePrecision] + N[Power[a, -1.0], $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;m \leq -9.8 \cdot 10^{-8} \lor \neg \left(m \leq 1.6 \cdot 10^{-7}\right):\\
          \;\;\;\;{k}^{m} \cdot a\\
          
          \mathbf{else}:\\
          \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if m < -9.8000000000000004e-8 or 1.6e-7 < m

            1. Initial program 89.1%

              \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
            2. Add Preprocessing
            3. Step-by-step derivation
              1. lift-/.f64N/A

                \[\leadsto \color{blue}{\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}} \]
              2. lift-*.f64N/A

                \[\leadsto \frac{\color{blue}{a \cdot {k}^{m}}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
              3. associate-/l*N/A

                \[\leadsto \color{blue}{a \cdot \frac{{k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}} \]
              4. *-commutativeN/A

                \[\leadsto \color{blue}{\frac{{k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \cdot a} \]
              5. lower-*.f64N/A

                \[\leadsto \color{blue}{\frac{{k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \cdot a} \]
              6. lower-/.f6489.1

                \[\leadsto \color{blue}{\frac{{k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}} \cdot a \]
              7. lift-+.f64N/A

                \[\leadsto \frac{{k}^{m}}{\color{blue}{\left(1 + 10 \cdot k\right) + k \cdot k}} \cdot a \]
              8. lift-+.f64N/A

                \[\leadsto \frac{{k}^{m}}{\color{blue}{\left(1 + 10 \cdot k\right)} + k \cdot k} \cdot a \]
              9. associate-+l+N/A

                \[\leadsto \frac{{k}^{m}}{\color{blue}{1 + \left(10 \cdot k + k \cdot k\right)}} \cdot a \]
              10. +-commutativeN/A

                \[\leadsto \frac{{k}^{m}}{\color{blue}{\left(10 \cdot k + k \cdot k\right) + 1}} \cdot a \]
              11. lift-*.f64N/A

                \[\leadsto \frac{{k}^{m}}{\left(\color{blue}{10 \cdot k} + k \cdot k\right) + 1} \cdot a \]
              12. lift-*.f64N/A

                \[\leadsto \frac{{k}^{m}}{\left(10 \cdot k + \color{blue}{k \cdot k}\right) + 1} \cdot a \]
              13. distribute-rgt-outN/A

                \[\leadsto \frac{{k}^{m}}{\color{blue}{k \cdot \left(10 + k\right)} + 1} \cdot a \]
              14. *-commutativeN/A

                \[\leadsto \frac{{k}^{m}}{\color{blue}{\left(10 + k\right) \cdot k} + 1} \cdot a \]
              15. lower-fma.f64N/A

                \[\leadsto \frac{{k}^{m}}{\color{blue}{\mathsf{fma}\left(10 + k, k, 1\right)}} \cdot a \]
              16. +-commutativeN/A

                \[\leadsto \frac{{k}^{m}}{\mathsf{fma}\left(\color{blue}{k + 10}, k, 1\right)} \cdot a \]
              17. lower-+.f6489.1

                \[\leadsto \frac{{k}^{m}}{\mathsf{fma}\left(\color{blue}{k + 10}, k, 1\right)} \cdot a \]
            4. Applied rewrites89.1%

              \[\leadsto \color{blue}{\frac{{k}^{m}}{\mathsf{fma}\left(k + 10, k, 1\right)} \cdot a} \]
            5. Taylor expanded in k around 0

              \[\leadsto \color{blue}{{k}^{m}} \cdot a \]
            6. Step-by-step derivation
              1. lower-pow.f64100.0

                \[\leadsto \color{blue}{{k}^{m}} \cdot a \]
            7. Applied rewrites100.0%

              \[\leadsto \color{blue}{{k}^{m}} \cdot a \]

            if -9.8000000000000004e-8 < m < 1.6e-7

            1. Initial program 92.9%

              \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
            2. Add Preprocessing
            3. Taylor expanded in m around 0

              \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
            4. Step-by-step derivation
              1. lower-/.f64N/A

                \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
              2. associate-+r+N/A

                \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
              3. +-commutativeN/A

                \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
              4. +-commutativeN/A

                \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
              5. associate-+l+N/A

                \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
              6. +-commutativeN/A

                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
              7. associate-+l+N/A

                \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
              8. metadata-evalN/A

                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
              9. lft-mult-inverseN/A

                \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
              10. associate-*l*N/A

                \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
              11. associate-*r*N/A

                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
              12. unpow2N/A

                \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
              13. associate-+l+N/A

                \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
              14. distribute-lft1-inN/A

                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
              15. +-commutativeN/A

                \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
              16. unpow2N/A

                \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
              17. associate-*r*N/A

                \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
              18. lower-fma.f64N/A

                \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
            5. Applied rewrites92.8%

              \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
            6. Step-by-step derivation
              1. Applied rewrites92.7%

                \[\leadsto \frac{1}{\color{blue}{\frac{\mathsf{fma}\left(10 + k, k, 1\right)}{a}}} \]
              2. Taylor expanded in k around 0

                \[\leadsto \frac{1}{k \cdot \left(10 \cdot \frac{1}{a} + \frac{k}{a}\right) + \color{blue}{\frac{1}{a}}} \]
              3. Step-by-step derivation
                1. Applied rewrites99.6%

                  \[\leadsto \frac{1}{\mathsf{fma}\left(\frac{k}{a}, \color{blue}{10 + k}, \frac{1}{a}\right)} \]
              4. Recombined 2 regimes into one program.
              5. Final simplification99.9%

                \[\leadsto \begin{array}{l} \mathbf{if}\;m \leq -9.8 \cdot 10^{-8} \lor \neg \left(m \leq 1.6 \cdot 10^{-7}\right):\\ \;\;\;\;{k}^{m} \cdot a\\ \mathbf{else}:\\ \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\ \end{array} \]
              6. Add Preprocessing

              Alternative 3: 98.6% accurate, 0.6× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;m \leq -9.8 \cdot 10^{-8}:\\ \;\;\;\;{k}^{m} \cdot a\\ \mathbf{elif}\;m \leq 2.7 \cdot 10^{-27}:\\ \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\ \mathbf{else}:\\ \;\;\;\;a \cdot {k}^{\left(-1 + \left(-1 + m\right)\right)}\\ \end{array} \end{array} \]
              (FPCore (a k m)
               :precision binary64
               (if (<= m -9.8e-8)
                 (* (pow k m) a)
                 (if (<= m 2.7e-27)
                   (pow (fma (/ k a) (+ 10.0 k) (pow a -1.0)) -1.0)
                   (* a (pow k (+ -1.0 (+ -1.0 m)))))))
              double code(double a, double k, double m) {
              	double tmp;
              	if (m <= -9.8e-8) {
              		tmp = pow(k, m) * a;
              	} else if (m <= 2.7e-27) {
              		tmp = pow(fma((k / a), (10.0 + k), pow(a, -1.0)), -1.0);
              	} else {
              		tmp = a * pow(k, (-1.0 + (-1.0 + m)));
              	}
              	return tmp;
              }
              
              function code(a, k, m)
              	tmp = 0.0
              	if (m <= -9.8e-8)
              		tmp = Float64((k ^ m) * a);
              	elseif (m <= 2.7e-27)
              		tmp = fma(Float64(k / a), Float64(10.0 + k), (a ^ -1.0)) ^ -1.0;
              	else
              		tmp = Float64(a * (k ^ Float64(-1.0 + Float64(-1.0 + m))));
              	end
              	return tmp
              end
              
              code[a_, k_, m_] := If[LessEqual[m, -9.8e-8], N[(N[Power[k, m], $MachinePrecision] * a), $MachinePrecision], If[LessEqual[m, 2.7e-27], N[Power[N[(N[(k / a), $MachinePrecision] * N[(10.0 + k), $MachinePrecision] + N[Power[a, -1.0], $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision], N[(a * N[Power[k, N[(-1.0 + N[(-1.0 + m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;m \leq -9.8 \cdot 10^{-8}:\\
              \;\;\;\;{k}^{m} \cdot a\\
              
              \mathbf{elif}\;m \leq 2.7 \cdot 10^{-27}:\\
              \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\
              
              \mathbf{else}:\\
              \;\;\;\;a \cdot {k}^{\left(-1 + \left(-1 + m\right)\right)}\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if m < -9.8000000000000004e-8

                1. Initial program 100.0%

                  \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                2. Add Preprocessing
                3. Step-by-step derivation
                  1. lift-/.f64N/A

                    \[\leadsto \color{blue}{\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}} \]
                  2. lift-*.f64N/A

                    \[\leadsto \frac{\color{blue}{a \cdot {k}^{m}}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                  3. associate-/l*N/A

                    \[\leadsto \color{blue}{a \cdot \frac{{k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}} \]
                  4. *-commutativeN/A

                    \[\leadsto \color{blue}{\frac{{k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \cdot a} \]
                  5. lower-*.f64N/A

                    \[\leadsto \color{blue}{\frac{{k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \cdot a} \]
                  6. lower-/.f64100.0

                    \[\leadsto \color{blue}{\frac{{k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}} \cdot a \]
                  7. lift-+.f64N/A

                    \[\leadsto \frac{{k}^{m}}{\color{blue}{\left(1 + 10 \cdot k\right) + k \cdot k}} \cdot a \]
                  8. lift-+.f64N/A

                    \[\leadsto \frac{{k}^{m}}{\color{blue}{\left(1 + 10 \cdot k\right)} + k \cdot k} \cdot a \]
                  9. associate-+l+N/A

                    \[\leadsto \frac{{k}^{m}}{\color{blue}{1 + \left(10 \cdot k + k \cdot k\right)}} \cdot a \]
                  10. +-commutativeN/A

                    \[\leadsto \frac{{k}^{m}}{\color{blue}{\left(10 \cdot k + k \cdot k\right) + 1}} \cdot a \]
                  11. lift-*.f64N/A

                    \[\leadsto \frac{{k}^{m}}{\left(\color{blue}{10 \cdot k} + k \cdot k\right) + 1} \cdot a \]
                  12. lift-*.f64N/A

                    \[\leadsto \frac{{k}^{m}}{\left(10 \cdot k + \color{blue}{k \cdot k}\right) + 1} \cdot a \]
                  13. distribute-rgt-outN/A

                    \[\leadsto \frac{{k}^{m}}{\color{blue}{k \cdot \left(10 + k\right)} + 1} \cdot a \]
                  14. *-commutativeN/A

                    \[\leadsto \frac{{k}^{m}}{\color{blue}{\left(10 + k\right) \cdot k} + 1} \cdot a \]
                  15. lower-fma.f64N/A

                    \[\leadsto \frac{{k}^{m}}{\color{blue}{\mathsf{fma}\left(10 + k, k, 1\right)}} \cdot a \]
                  16. +-commutativeN/A

                    \[\leadsto \frac{{k}^{m}}{\mathsf{fma}\left(\color{blue}{k + 10}, k, 1\right)} \cdot a \]
                  17. lower-+.f64100.0

                    \[\leadsto \frac{{k}^{m}}{\mathsf{fma}\left(\color{blue}{k + 10}, k, 1\right)} \cdot a \]
                4. Applied rewrites100.0%

                  \[\leadsto \color{blue}{\frac{{k}^{m}}{\mathsf{fma}\left(k + 10, k, 1\right)} \cdot a} \]
                5. Taylor expanded in k around 0

                  \[\leadsto \color{blue}{{k}^{m}} \cdot a \]
                6. Step-by-step derivation
                  1. lower-pow.f64100.0

                    \[\leadsto \color{blue}{{k}^{m}} \cdot a \]
                7. Applied rewrites100.0%

                  \[\leadsto \color{blue}{{k}^{m}} \cdot a \]

                if -9.8000000000000004e-8 < m < 2.69999999999999989e-27

                1. Initial program 92.7%

                  \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                2. Add Preprocessing
                3. Taylor expanded in m around 0

                  \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                4. Step-by-step derivation
                  1. lower-/.f64N/A

                    \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                  2. associate-+r+N/A

                    \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                  3. +-commutativeN/A

                    \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                  4. +-commutativeN/A

                    \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                  5. associate-+l+N/A

                    \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                  6. +-commutativeN/A

                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                  7. associate-+l+N/A

                    \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                  8. metadata-evalN/A

                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                  9. lft-mult-inverseN/A

                    \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                  10. associate-*l*N/A

                    \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                  11. associate-*r*N/A

                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                  12. unpow2N/A

                    \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                  13. associate-+l+N/A

                    \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                  14. distribute-lft1-inN/A

                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                  15. +-commutativeN/A

                    \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                  16. unpow2N/A

                    \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                  17. associate-*r*N/A

                    \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                  18. lower-fma.f64N/A

                    \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                5. Applied rewrites92.7%

                  \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                6. Step-by-step derivation
                  1. Applied rewrites92.7%

                    \[\leadsto \frac{1}{\color{blue}{\frac{\mathsf{fma}\left(10 + k, k, 1\right)}{a}}} \]
                  2. Taylor expanded in k around 0

                    \[\leadsto \frac{1}{k \cdot \left(10 \cdot \frac{1}{a} + \frac{k}{a}\right) + \color{blue}{\frac{1}{a}}} \]
                  3. Step-by-step derivation
                    1. Applied rewrites99.8%

                      \[\leadsto \frac{1}{\mathsf{fma}\left(\frac{k}{a}, \color{blue}{10 + k}, \frac{1}{a}\right)} \]

                    if 2.69999999999999989e-27 < m

                    1. Initial program 80.0%

                      \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                    2. Add Preprocessing
                    3. Taylor expanded in k around inf

                      \[\leadsto \color{blue}{\frac{a \cdot e^{-1 \cdot \left(m \cdot \log \left(\frac{1}{k}\right)\right)}}{{k}^{2}}} \]
                    4. Step-by-step derivation
                      1. *-rgt-identityN/A

                        \[\leadsto \frac{a \cdot e^{-1 \cdot \left(m \cdot \log \left(\frac{1}{k}\right)\right)}}{\color{blue}{{k}^{2} \cdot 1}} \]
                      2. times-fracN/A

                        \[\leadsto \color{blue}{\frac{a}{{k}^{2}} \cdot \frac{e^{-1 \cdot \left(m \cdot \log \left(\frac{1}{k}\right)\right)}}{1}} \]
                      3. *-commutativeN/A

                        \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{e^{-1 \cdot \color{blue}{\left(\log \left(\frac{1}{k}\right) \cdot m\right)}}}{1} \]
                      4. associate-*r*N/A

                        \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{e^{\color{blue}{\left(-1 \cdot \log \left(\frac{1}{k}\right)\right) \cdot m}}}{1} \]
                      5. exp-prodN/A

                        \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{\color{blue}{{\left(e^{-1 \cdot \log \left(\frac{1}{k}\right)}\right)}^{m}}}{1} \]
                      6. neg-mul-1N/A

                        \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{{\left(e^{\color{blue}{\mathsf{neg}\left(\log \left(\frac{1}{k}\right)\right)}}\right)}^{m}}{1} \]
                      7. log-recN/A

                        \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{{\left(e^{\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(\log k\right)\right)}\right)}\right)}^{m}}{1} \]
                      8. remove-double-negN/A

                        \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{{\left(e^{\color{blue}{\log k}}\right)}^{m}}{1} \]
                      9. rem-exp-logN/A

                        \[\leadsto \frac{a}{{k}^{2}} \cdot \frac{{\color{blue}{k}}^{m}}{1} \]
                      10. /-rgt-identityN/A

                        \[\leadsto \frac{a}{{k}^{2}} \cdot \color{blue}{{k}^{m}} \]
                      11. lower-*.f64N/A

                        \[\leadsto \color{blue}{\frac{a}{{k}^{2}} \cdot {k}^{m}} \]
                      12. unpow2N/A

                        \[\leadsto \frac{a}{\color{blue}{k \cdot k}} \cdot {k}^{m} \]
                      13. associate-/r*N/A

                        \[\leadsto \color{blue}{\frac{\frac{a}{k}}{k}} \cdot {k}^{m} \]
                      14. lower-/.f64N/A

                        \[\leadsto \color{blue}{\frac{\frac{a}{k}}{k}} \cdot {k}^{m} \]
                      15. lower-/.f64N/A

                        \[\leadsto \frac{\color{blue}{\frac{a}{k}}}{k} \cdot {k}^{m} \]
                      16. lower-pow.f6450.5

                        \[\leadsto \frac{\frac{a}{k}}{k} \cdot \color{blue}{{k}^{m}} \]
                    5. Applied rewrites50.5%

                      \[\leadsto \color{blue}{\frac{\frac{a}{k}}{k} \cdot {k}^{m}} \]
                    6. Step-by-step derivation
                      1. Applied rewrites67.4%

                        \[\leadsto \frac{a}{k} \cdot \color{blue}{{k}^{\left(-1 + m\right)}} \]
                      2. Step-by-step derivation
                        1. Applied rewrites100.0%

                          \[\leadsto a \cdot \color{blue}{{k}^{\left(-1 + \left(-1 + m\right)\right)}} \]
                      3. Recombined 3 regimes into one program.
                      4. Final simplification99.9%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;m \leq -9.8 \cdot 10^{-8}:\\ \;\;\;\;{k}^{m} \cdot a\\ \mathbf{elif}\;m \leq 2.7 \cdot 10^{-27}:\\ \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\ \mathbf{else}:\\ \;\;\;\;a \cdot {k}^{\left(-1 + \left(-1 + m\right)\right)}\\ \end{array} \]
                      5. Add Preprocessing

                      Alternative 4: 72.2% accurate, 0.6× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;m \leq -1.05 \cdot 10^{+15}:\\ \;\;\;\;\left(-a\right) \cdot \frac{\frac{10 - \frac{99}{k}}{k} - 1}{k \cdot k}\\ \mathbf{elif}\;m \leq 1.35:\\ \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\ \mathbf{else}:\\ \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\ \end{array} \end{array} \]
                      (FPCore (a k m)
                       :precision binary64
                       (if (<= m -1.05e+15)
                         (* (- a) (/ (- (/ (- 10.0 (/ 99.0 k)) k) 1.0) (* k k)))
                         (if (<= m 1.35)
                           (pow (fma (/ k a) (+ 10.0 k) (pow a -1.0)) -1.0)
                           (* (* (* 99.0 k) a) k))))
                      double code(double a, double k, double m) {
                      	double tmp;
                      	if (m <= -1.05e+15) {
                      		tmp = -a * ((((10.0 - (99.0 / k)) / k) - 1.0) / (k * k));
                      	} else if (m <= 1.35) {
                      		tmp = pow(fma((k / a), (10.0 + k), pow(a, -1.0)), -1.0);
                      	} else {
                      		tmp = ((99.0 * k) * a) * k;
                      	}
                      	return tmp;
                      }
                      
                      function code(a, k, m)
                      	tmp = 0.0
                      	if (m <= -1.05e+15)
                      		tmp = Float64(Float64(-a) * Float64(Float64(Float64(Float64(10.0 - Float64(99.0 / k)) / k) - 1.0) / Float64(k * k)));
                      	elseif (m <= 1.35)
                      		tmp = fma(Float64(k / a), Float64(10.0 + k), (a ^ -1.0)) ^ -1.0;
                      	else
                      		tmp = Float64(Float64(Float64(99.0 * k) * a) * k);
                      	end
                      	return tmp
                      end
                      
                      code[a_, k_, m_] := If[LessEqual[m, -1.05e+15], N[((-a) * N[(N[(N[(N[(10.0 - N[(99.0 / k), $MachinePrecision]), $MachinePrecision] / k), $MachinePrecision] - 1.0), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 1.35], N[Power[N[(N[(k / a), $MachinePrecision] * N[(10.0 + k), $MachinePrecision] + N[Power[a, -1.0], $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * a), $MachinePrecision] * k), $MachinePrecision]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;m \leq -1.05 \cdot 10^{+15}:\\
                      \;\;\;\;\left(-a\right) \cdot \frac{\frac{10 - \frac{99}{k}}{k} - 1}{k \cdot k}\\
                      
                      \mathbf{elif}\;m \leq 1.35:\\
                      \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if m < -1.05e15

                        1. Initial program 100.0%

                          \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                        2. Add Preprocessing
                        3. Taylor expanded in m around 0

                          \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                        4. Step-by-step derivation
                          1. lower-/.f64N/A

                            \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                          2. associate-+r+N/A

                            \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                          3. +-commutativeN/A

                            \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                          4. +-commutativeN/A

                            \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                          5. associate-+l+N/A

                            \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                          6. +-commutativeN/A

                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                          7. associate-+l+N/A

                            \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                          8. metadata-evalN/A

                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                          9. lft-mult-inverseN/A

                            \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                          10. associate-*l*N/A

                            \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                          11. associate-*r*N/A

                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                          12. unpow2N/A

                            \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                          13. associate-+l+N/A

                            \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                          14. distribute-lft1-inN/A

                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                          15. +-commutativeN/A

                            \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                          16. unpow2N/A

                            \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                          17. associate-*r*N/A

                            \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                          18. lower-fma.f64N/A

                            \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                        5. Applied rewrites35.5%

                          \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                        6. Taylor expanded in k around inf

                          \[\leadsto \frac{\left(a + -1 \cdot \frac{a + -100 \cdot a}{{k}^{2}}\right) - 10 \cdot \frac{a}{k}}{\color{blue}{{k}^{2}}} \]
                        7. Step-by-step derivation
                          1. Applied rewrites54.1%

                            \[\leadsto \frac{\frac{a - \frac{\mathsf{fma}\left(-99, \frac{a}{k}, 10 \cdot a\right)}{k}}{k}}{\color{blue}{k}} \]
                          2. Taylor expanded in a around -inf

                            \[\leadsto -1 \cdot \frac{a \cdot \left(10 \cdot \frac{1}{k} - \left(1 + 99 \cdot \frac{1}{{k}^{2}}\right)\right)}{\color{blue}{{k}^{2}}} \]
                          3. Step-by-step derivation
                            1. Applied rewrites64.8%

                              \[\leadsto \left(-a\right) \cdot \frac{\frac{10 - \frac{99}{k}}{k} - 1}{\color{blue}{k \cdot k}} \]

                            if -1.05e15 < m < 1.3500000000000001

                            1. Initial program 93.1%

                              \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                            2. Add Preprocessing
                            3. Taylor expanded in m around 0

                              \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                            4. Step-by-step derivation
                              1. lower-/.f64N/A

                                \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                              2. associate-+r+N/A

                                \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                              3. +-commutativeN/A

                                \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                              4. +-commutativeN/A

                                \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                              5. associate-+l+N/A

                                \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                              6. +-commutativeN/A

                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                              7. associate-+l+N/A

                                \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                              8. metadata-evalN/A

                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                              9. lft-mult-inverseN/A

                                \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                              10. associate-*l*N/A

                                \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                              11. associate-*r*N/A

                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                              12. unpow2N/A

                                \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                              13. associate-+l+N/A

                                \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                              14. distribute-lft1-inN/A

                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                              15. +-commutativeN/A

                                \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                              16. unpow2N/A

                                \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                              17. associate-*r*N/A

                                \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                              18. lower-fma.f64N/A

                                \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                            5. Applied rewrites91.1%

                              \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                            6. Step-by-step derivation
                              1. Applied rewrites91.0%

                                \[\leadsto \frac{1}{\color{blue}{\frac{\mathsf{fma}\left(10 + k, k, 1\right)}{a}}} \]
                              2. Taylor expanded in k around 0

                                \[\leadsto \frac{1}{k \cdot \left(10 \cdot \frac{1}{a} + \frac{k}{a}\right) + \color{blue}{\frac{1}{a}}} \]
                              3. Step-by-step derivation
                                1. Applied rewrites97.7%

                                  \[\leadsto \frac{1}{\mathsf{fma}\left(\frac{k}{a}, \color{blue}{10 + k}, \frac{1}{a}\right)} \]

                                if 1.3500000000000001 < m

                                1. Initial program 79.6%

                                  \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                2. Add Preprocessing
                                3. Taylor expanded in m around 0

                                  \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                4. Step-by-step derivation
                                  1. lower-/.f64N/A

                                    \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                  2. associate-+r+N/A

                                    \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                  3. +-commutativeN/A

                                    \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                  4. +-commutativeN/A

                                    \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                  5. associate-+l+N/A

                                    \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                  6. +-commutativeN/A

                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                  7. associate-+l+N/A

                                    \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                  8. metadata-evalN/A

                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                  9. lft-mult-inverseN/A

                                    \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                  10. associate-*l*N/A

                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                  11. associate-*r*N/A

                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                  12. unpow2N/A

                                    \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                  13. associate-+l+N/A

                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                  14. distribute-lft1-inN/A

                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                  15. +-commutativeN/A

                                    \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                  16. unpow2N/A

                                    \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                  17. associate-*r*N/A

                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                  18. lower-fma.f64N/A

                                    \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                5. Applied rewrites3.0%

                                  \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                6. Taylor expanded in k around 0

                                  \[\leadsto a + \color{blue}{k \cdot \left(-1 \cdot \left(k \cdot \left(a + -100 \cdot a\right)\right) - 10 \cdot a\right)} \]
                                7. Step-by-step derivation
                                  1. Applied rewrites17.9%

                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(99 \cdot a, k, -10 \cdot a\right), \color{blue}{k}, a\right) \]
                                  2. Taylor expanded in k around inf

                                    \[\leadsto 99 \cdot \left(a \cdot \color{blue}{{k}^{2}}\right) \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites46.2%

                                      \[\leadsto \left(\left(99 \cdot k\right) \cdot a\right) \cdot k \]
                                  4. Recombined 3 regimes into one program.
                                  5. Final simplification68.8%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;m \leq -1.05 \cdot 10^{+15}:\\ \;\;\;\;\left(-a\right) \cdot \frac{\frac{10 - \frac{99}{k}}{k} - 1}{k \cdot k}\\ \mathbf{elif}\;m \leq 1.35:\\ \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\ \mathbf{else}:\\ \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\ \end{array} \]
                                  6. Add Preprocessing

                                  Alternative 5: 74.1% accurate, 0.6× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;m \leq -13.5:\\ \;\;\;\;\frac{\frac{\frac{\frac{a}{k}}{k} \cdot 99}{k}}{k}\\ \mathbf{elif}\;m \leq 1.35:\\ \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\ \mathbf{else}:\\ \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\ \end{array} \end{array} \]
                                  (FPCore (a k m)
                                   :precision binary64
                                   (if (<= m -13.5)
                                     (/ (/ (* (/ (/ a k) k) 99.0) k) k)
                                     (if (<= m 1.35)
                                       (pow (fma (/ k a) (+ 10.0 k) (pow a -1.0)) -1.0)
                                       (* (* (* 99.0 k) a) k))))
                                  double code(double a, double k, double m) {
                                  	double tmp;
                                  	if (m <= -13.5) {
                                  		tmp = ((((a / k) / k) * 99.0) / k) / k;
                                  	} else if (m <= 1.35) {
                                  		tmp = pow(fma((k / a), (10.0 + k), pow(a, -1.0)), -1.0);
                                  	} else {
                                  		tmp = ((99.0 * k) * a) * k;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(a, k, m)
                                  	tmp = 0.0
                                  	if (m <= -13.5)
                                  		tmp = Float64(Float64(Float64(Float64(Float64(a / k) / k) * 99.0) / k) / k);
                                  	elseif (m <= 1.35)
                                  		tmp = fma(Float64(k / a), Float64(10.0 + k), (a ^ -1.0)) ^ -1.0;
                                  	else
                                  		tmp = Float64(Float64(Float64(99.0 * k) * a) * k);
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[a_, k_, m_] := If[LessEqual[m, -13.5], N[(N[(N[(N[(N[(a / k), $MachinePrecision] / k), $MachinePrecision] * 99.0), $MachinePrecision] / k), $MachinePrecision] / k), $MachinePrecision], If[LessEqual[m, 1.35], N[Power[N[(N[(k / a), $MachinePrecision] * N[(10.0 + k), $MachinePrecision] + N[Power[a, -1.0], $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * a), $MachinePrecision] * k), $MachinePrecision]]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;m \leq -13.5:\\
                                  \;\;\;\;\frac{\frac{\frac{\frac{a}{k}}{k} \cdot 99}{k}}{k}\\
                                  
                                  \mathbf{elif}\;m \leq 1.35:\\
                                  \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 3 regimes
                                  2. if m < -13.5

                                    1. Initial program 100.0%

                                      \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                    2. Add Preprocessing
                                    3. Taylor expanded in m around 0

                                      \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                    4. Step-by-step derivation
                                      1. lower-/.f64N/A

                                        \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                      2. associate-+r+N/A

                                        \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                      3. +-commutativeN/A

                                        \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                      4. +-commutativeN/A

                                        \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                      5. associate-+l+N/A

                                        \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                      6. +-commutativeN/A

                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                      7. associate-+l+N/A

                                        \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                      8. metadata-evalN/A

                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                      9. lft-mult-inverseN/A

                                        \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                      10. associate-*l*N/A

                                        \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                      11. associate-*r*N/A

                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                      12. unpow2N/A

                                        \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                      13. associate-+l+N/A

                                        \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                      14. distribute-lft1-inN/A

                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                      15. +-commutativeN/A

                                        \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                      16. unpow2N/A

                                        \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                      17. associate-*r*N/A

                                        \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                      18. lower-fma.f64N/A

                                        \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                    5. Applied rewrites35.1%

                                      \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                    6. Taylor expanded in k around inf

                                      \[\leadsto \frac{\left(a + -1 \cdot \frac{a + -100 \cdot a}{{k}^{2}}\right) - 10 \cdot \frac{a}{k}}{\color{blue}{{k}^{2}}} \]
                                    7. Step-by-step derivation
                                      1. Applied rewrites53.5%

                                        \[\leadsto \frac{\frac{a - \frac{\mathsf{fma}\left(-99, \frac{a}{k}, 10 \cdot a\right)}{k}}{k}}{\color{blue}{k}} \]
                                      2. Taylor expanded in k around 0

                                        \[\leadsto \frac{\frac{99 \cdot \frac{a}{{k}^{2}}}{k}}{k} \]
                                      3. Step-by-step derivation
                                        1. Applied rewrites63.2%

                                          \[\leadsto \frac{\frac{\frac{\frac{a}{k}}{k} \cdot 99}{k}}{k} \]

                                        if -13.5 < m < 1.3500000000000001

                                        1. Initial program 93.1%

                                          \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in m around 0

                                          \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                        4. Step-by-step derivation
                                          1. lower-/.f64N/A

                                            \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                          2. associate-+r+N/A

                                            \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                          3. +-commutativeN/A

                                            \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                          4. +-commutativeN/A

                                            \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                          5. associate-+l+N/A

                                            \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                          6. +-commutativeN/A

                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                          7. associate-+l+N/A

                                            \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                          8. metadata-evalN/A

                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                          9. lft-mult-inverseN/A

                                            \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                          10. associate-*l*N/A

                                            \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                          11. associate-*r*N/A

                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                          12. unpow2N/A

                                            \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                          13. associate-+l+N/A

                                            \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                          14. distribute-lft1-inN/A

                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                          15. +-commutativeN/A

                                            \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                          16. unpow2N/A

                                            \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                          17. associate-*r*N/A

                                            \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                          18. lower-fma.f64N/A

                                            \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                        5. Applied rewrites92.2%

                                          \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                        6. Step-by-step derivation
                                          1. Applied rewrites92.1%

                                            \[\leadsto \frac{1}{\color{blue}{\frac{\mathsf{fma}\left(10 + k, k, 1\right)}{a}}} \]
                                          2. Taylor expanded in k around 0

                                            \[\leadsto \frac{1}{k \cdot \left(10 \cdot \frac{1}{a} + \frac{k}{a}\right) + \color{blue}{\frac{1}{a}}} \]
                                          3. Step-by-step derivation
                                            1. Applied rewrites98.9%

                                              \[\leadsto \frac{1}{\mathsf{fma}\left(\frac{k}{a}, \color{blue}{10 + k}, \frac{1}{a}\right)} \]

                                            if 1.3500000000000001 < m

                                            1. Initial program 79.6%

                                              \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in m around 0

                                              \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                            4. Step-by-step derivation
                                              1. lower-/.f64N/A

                                                \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                              2. associate-+r+N/A

                                                \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                              3. +-commutativeN/A

                                                \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                              4. +-commutativeN/A

                                                \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                              5. associate-+l+N/A

                                                \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                              6. +-commutativeN/A

                                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                              7. associate-+l+N/A

                                                \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                              8. metadata-evalN/A

                                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                              9. lft-mult-inverseN/A

                                                \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                              10. associate-*l*N/A

                                                \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                              11. associate-*r*N/A

                                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                              12. unpow2N/A

                                                \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                              13. associate-+l+N/A

                                                \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                              14. distribute-lft1-inN/A

                                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                              15. +-commutativeN/A

                                                \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                              16. unpow2N/A

                                                \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                              17. associate-*r*N/A

                                                \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                              18. lower-fma.f64N/A

                                                \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                            5. Applied rewrites3.0%

                                              \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                            6. Taylor expanded in k around 0

                                              \[\leadsto a + \color{blue}{k \cdot \left(-1 \cdot \left(k \cdot \left(a + -100 \cdot a\right)\right) - 10 \cdot a\right)} \]
                                            7. Step-by-step derivation
                                              1. Applied rewrites17.9%

                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(99 \cdot a, k, -10 \cdot a\right), \color{blue}{k}, a\right) \]
                                              2. Taylor expanded in k around inf

                                                \[\leadsto 99 \cdot \left(a \cdot \color{blue}{{k}^{2}}\right) \]
                                              3. Step-by-step derivation
                                                1. Applied rewrites46.2%

                                                  \[\leadsto \left(\left(99 \cdot k\right) \cdot a\right) \cdot k \]
                                              4. Recombined 3 regimes into one program.
                                              5. Final simplification68.6%

                                                \[\leadsto \begin{array}{l} \mathbf{if}\;m \leq -13.5:\\ \;\;\;\;\frac{\frac{\frac{\frac{a}{k}}{k} \cdot 99}{k}}{k}\\ \mathbf{elif}\;m \leq 1.35:\\ \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\ \mathbf{else}:\\ \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\ \end{array} \]
                                              6. Add Preprocessing

                                              Alternative 6: 69.7% accurate, 0.6× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;m \leq -1.05 \cdot 10^{+15}:\\ \;\;\;\;\frac{a}{k \cdot k}\\ \mathbf{elif}\;m \leq 1.35:\\ \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\ \mathbf{else}:\\ \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\ \end{array} \end{array} \]
                                              (FPCore (a k m)
                                               :precision binary64
                                               (if (<= m -1.05e+15)
                                                 (/ a (* k k))
                                                 (if (<= m 1.35)
                                                   (pow (fma (/ k a) (+ 10.0 k) (pow a -1.0)) -1.0)
                                                   (* (* (* 99.0 k) a) k))))
                                              double code(double a, double k, double m) {
                                              	double tmp;
                                              	if (m <= -1.05e+15) {
                                              		tmp = a / (k * k);
                                              	} else if (m <= 1.35) {
                                              		tmp = pow(fma((k / a), (10.0 + k), pow(a, -1.0)), -1.0);
                                              	} else {
                                              		tmp = ((99.0 * k) * a) * k;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              function code(a, k, m)
                                              	tmp = 0.0
                                              	if (m <= -1.05e+15)
                                              		tmp = Float64(a / Float64(k * k));
                                              	elseif (m <= 1.35)
                                              		tmp = fma(Float64(k / a), Float64(10.0 + k), (a ^ -1.0)) ^ -1.0;
                                              	else
                                              		tmp = Float64(Float64(Float64(99.0 * k) * a) * k);
                                              	end
                                              	return tmp
                                              end
                                              
                                              code[a_, k_, m_] := If[LessEqual[m, -1.05e+15], N[(a / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 1.35], N[Power[N[(N[(k / a), $MachinePrecision] * N[(10.0 + k), $MachinePrecision] + N[Power[a, -1.0], $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * a), $MachinePrecision] * k), $MachinePrecision]]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              \mathbf{if}\;m \leq -1.05 \cdot 10^{+15}:\\
                                              \;\;\;\;\frac{a}{k \cdot k}\\
                                              
                                              \mathbf{elif}\;m \leq 1.35:\\
                                              \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 3 regimes
                                              2. if m < -1.05e15

                                                1. Initial program 100.0%

                                                  \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in m around 0

                                                  \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                4. Step-by-step derivation
                                                  1. lower-/.f64N/A

                                                    \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                  2. associate-+r+N/A

                                                    \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                  3. +-commutativeN/A

                                                    \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                  4. +-commutativeN/A

                                                    \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                  5. associate-+l+N/A

                                                    \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                  6. +-commutativeN/A

                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                  7. associate-+l+N/A

                                                    \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                  8. metadata-evalN/A

                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                  9. lft-mult-inverseN/A

                                                    \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                  10. associate-*l*N/A

                                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                  11. associate-*r*N/A

                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                  12. unpow2N/A

                                                    \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                  13. associate-+l+N/A

                                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                  14. distribute-lft1-inN/A

                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                  15. +-commutativeN/A

                                                    \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                  16. unpow2N/A

                                                    \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                  17. associate-*r*N/A

                                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                  18. lower-fma.f64N/A

                                                    \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                5. Applied rewrites35.5%

                                                  \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                6. Step-by-step derivation
                                                  1. Applied rewrites35.5%

                                                    \[\leadsto \frac{a}{\mathsf{fma}\left(\frac{1}{\frac{k - 10}{\mathsf{fma}\left(k, k, -100\right)}}, k, 1\right)} \]
                                                  2. Taylor expanded in k around inf

                                                    \[\leadsto \frac{a}{{k}^{\color{blue}{2}}} \]
                                                  3. Step-by-step derivation
                                                    1. Applied rewrites52.7%

                                                      \[\leadsto \frac{a}{k \cdot \color{blue}{k}} \]

                                                    if -1.05e15 < m < 1.3500000000000001

                                                    1. Initial program 93.1%

                                                      \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                    2. Add Preprocessing
                                                    3. Taylor expanded in m around 0

                                                      \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                    4. Step-by-step derivation
                                                      1. lower-/.f64N/A

                                                        \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                      2. associate-+r+N/A

                                                        \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                      3. +-commutativeN/A

                                                        \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                      4. +-commutativeN/A

                                                        \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                      5. associate-+l+N/A

                                                        \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                      6. +-commutativeN/A

                                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                      7. associate-+l+N/A

                                                        \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                      8. metadata-evalN/A

                                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                      9. lft-mult-inverseN/A

                                                        \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                      10. associate-*l*N/A

                                                        \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                      11. associate-*r*N/A

                                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                      12. unpow2N/A

                                                        \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                      13. associate-+l+N/A

                                                        \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                      14. distribute-lft1-inN/A

                                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                      15. +-commutativeN/A

                                                        \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                      16. unpow2N/A

                                                        \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                      17. associate-*r*N/A

                                                        \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                      18. lower-fma.f64N/A

                                                        \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                    5. Applied rewrites91.1%

                                                      \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                    6. Step-by-step derivation
                                                      1. Applied rewrites91.0%

                                                        \[\leadsto \frac{1}{\color{blue}{\frac{\mathsf{fma}\left(10 + k, k, 1\right)}{a}}} \]
                                                      2. Taylor expanded in k around 0

                                                        \[\leadsto \frac{1}{k \cdot \left(10 \cdot \frac{1}{a} + \frac{k}{a}\right) + \color{blue}{\frac{1}{a}}} \]
                                                      3. Step-by-step derivation
                                                        1. Applied rewrites97.7%

                                                          \[\leadsto \frac{1}{\mathsf{fma}\left(\frac{k}{a}, \color{blue}{10 + k}, \frac{1}{a}\right)} \]

                                                        if 1.3500000000000001 < m

                                                        1. Initial program 79.6%

                                                          \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                        2. Add Preprocessing
                                                        3. Taylor expanded in m around 0

                                                          \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                        4. Step-by-step derivation
                                                          1. lower-/.f64N/A

                                                            \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                          2. associate-+r+N/A

                                                            \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                          3. +-commutativeN/A

                                                            \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                          4. +-commutativeN/A

                                                            \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                          5. associate-+l+N/A

                                                            \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                          6. +-commutativeN/A

                                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                          7. associate-+l+N/A

                                                            \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                          8. metadata-evalN/A

                                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                          9. lft-mult-inverseN/A

                                                            \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                          10. associate-*l*N/A

                                                            \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                          11. associate-*r*N/A

                                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                          12. unpow2N/A

                                                            \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                          13. associate-+l+N/A

                                                            \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                          14. distribute-lft1-inN/A

                                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                          15. +-commutativeN/A

                                                            \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                          16. unpow2N/A

                                                            \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                          17. associate-*r*N/A

                                                            \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                          18. lower-fma.f64N/A

                                                            \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                        5. Applied rewrites3.0%

                                                          \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                        6. Taylor expanded in k around 0

                                                          \[\leadsto a + \color{blue}{k \cdot \left(-1 \cdot \left(k \cdot \left(a + -100 \cdot a\right)\right) - 10 \cdot a\right)} \]
                                                        7. Step-by-step derivation
                                                          1. Applied rewrites17.9%

                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(99 \cdot a, k, -10 \cdot a\right), \color{blue}{k}, a\right) \]
                                                          2. Taylor expanded in k around inf

                                                            \[\leadsto 99 \cdot \left(a \cdot \color{blue}{{k}^{2}}\right) \]
                                                          3. Step-by-step derivation
                                                            1. Applied rewrites46.2%

                                                              \[\leadsto \left(\left(99 \cdot k\right) \cdot a\right) \cdot k \]
                                                          4. Recombined 3 regimes into one program.
                                                          5. Final simplification65.1%

                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;m \leq -1.05 \cdot 10^{+15}:\\ \;\;\;\;\frac{a}{k \cdot k}\\ \mathbf{elif}\;m \leq 1.35:\\ \;\;\;\;{\left(\mathsf{fma}\left(\frac{k}{a}, 10 + k, {a}^{-1}\right)\right)}^{-1}\\ \mathbf{else}:\\ \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\ \end{array} \]
                                                          6. Add Preprocessing

                                                          Alternative 7: 15.9% accurate, 0.9× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \leq 0:\\ \;\;\;\;\left(a \cdot k\right) \cdot -10\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-10, k, 1\right) \cdot a\\ \end{array} \end{array} \]
                                                          (FPCore (a k m)
                                                           :precision binary64
                                                           (if (<= (/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))) 0.0)
                                                             (* (* a k) -10.0)
                                                             (* (fma -10.0 k 1.0) a)))
                                                          double code(double a, double k, double m) {
                                                          	double tmp;
                                                          	if (((a * pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k))) <= 0.0) {
                                                          		tmp = (a * k) * -10.0;
                                                          	} else {
                                                          		tmp = fma(-10.0, k, 1.0) * a;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          function code(a, k, m)
                                                          	tmp = 0.0
                                                          	if (Float64(Float64(a * (k ^ m)) / Float64(Float64(1.0 + Float64(10.0 * k)) + Float64(k * k))) <= 0.0)
                                                          		tmp = Float64(Float64(a * k) * -10.0);
                                                          	else
                                                          		tmp = Float64(fma(-10.0, k, 1.0) * a);
                                                          	end
                                                          	return tmp
                                                          end
                                                          
                                                          code[a_, k_, m_] := If[LessEqual[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], 0.0], N[(N[(a * k), $MachinePrecision] * -10.0), $MachinePrecision], N[(N[(-10.0 * k + 1.0), $MachinePrecision] * a), $MachinePrecision]]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \begin{array}{l}
                                                          \mathbf{if}\;\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \leq 0:\\
                                                          \;\;\;\;\left(a \cdot k\right) \cdot -10\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;\mathsf{fma}\left(-10, k, 1\right) \cdot a\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 2 regimes
                                                          2. if (/.f64 (*.f64 a (pow.f64 k m)) (+.f64 (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 10 binary64) k)) (*.f64 k k))) < 0.0

                                                            1. Initial program 96.9%

                                                              \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                            2. Add Preprocessing
                                                            3. Taylor expanded in m around 0

                                                              \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                            4. Step-by-step derivation
                                                              1. lower-/.f64N/A

                                                                \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                              2. associate-+r+N/A

                                                                \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                              3. +-commutativeN/A

                                                                \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                              4. +-commutativeN/A

                                                                \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                              5. associate-+l+N/A

                                                                \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                              6. +-commutativeN/A

                                                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                              7. associate-+l+N/A

                                                                \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                              8. metadata-evalN/A

                                                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                              9. lft-mult-inverseN/A

                                                                \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                              10. associate-*l*N/A

                                                                \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                              11. associate-*r*N/A

                                                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                              12. unpow2N/A

                                                                \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                              13. associate-+l+N/A

                                                                \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                              14. distribute-lft1-inN/A

                                                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                              15. +-commutativeN/A

                                                                \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                              16. unpow2N/A

                                                                \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                              17. associate-*r*N/A

                                                                \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                              18. lower-fma.f64N/A

                                                                \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                            5. Applied rewrites41.0%

                                                              \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                            6. Taylor expanded in k around 0

                                                              \[\leadsto a + \color{blue}{-10 \cdot \left(a \cdot k\right)} \]
                                                            7. Step-by-step derivation
                                                              1. Applied rewrites14.9%

                                                                \[\leadsto \mathsf{fma}\left(a \cdot k, \color{blue}{-10}, a\right) \]
                                                              2. Taylor expanded in k around inf

                                                                \[\leadsto -10 \cdot \left(a \cdot \color{blue}{k}\right) \]
                                                              3. Step-by-step derivation
                                                                1. Applied rewrites8.9%

                                                                  \[\leadsto \left(a \cdot k\right) \cdot -10 \]

                                                                if 0.0 < (/.f64 (*.f64 a (pow.f64 k m)) (+.f64 (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 10 binary64) k)) (*.f64 k k)))

                                                                1. Initial program 74.5%

                                                                  \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                2. Add Preprocessing
                                                                3. Taylor expanded in m around 0

                                                                  \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                4. Step-by-step derivation
                                                                  1. lower-/.f64N/A

                                                                    \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                  2. associate-+r+N/A

                                                                    \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                  3. +-commutativeN/A

                                                                    \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                  4. +-commutativeN/A

                                                                    \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                  5. associate-+l+N/A

                                                                    \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                  6. +-commutativeN/A

                                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                  7. associate-+l+N/A

                                                                    \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                  8. metadata-evalN/A

                                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                  9. lft-mult-inverseN/A

                                                                    \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                  10. associate-*l*N/A

                                                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                  11. associate-*r*N/A

                                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                  12. unpow2N/A

                                                                    \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                  13. associate-+l+N/A

                                                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                  14. distribute-lft1-inN/A

                                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                  15. +-commutativeN/A

                                                                    \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                  16. unpow2N/A

                                                                    \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                  17. associate-*r*N/A

                                                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                  18. lower-fma.f64N/A

                                                                    \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                5. Applied rewrites44.3%

                                                                  \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                6. Taylor expanded in k around 0

                                                                  \[\leadsto a + \color{blue}{-10 \cdot \left(a \cdot k\right)} \]
                                                                7. Step-by-step derivation
                                                                  1. Applied rewrites32.7%

                                                                    \[\leadsto \mathsf{fma}\left(a \cdot k, \color{blue}{-10}, a\right) \]
                                                                  2. Taylor expanded in k around 0

                                                                    \[\leadsto a + \color{blue}{-10 \cdot \left(a \cdot k\right)} \]
                                                                  3. Step-by-step derivation
                                                                    1. Applied rewrites32.7%

                                                                      \[\leadsto \mathsf{fma}\left(-10, k, 1\right) \cdot \color{blue}{a} \]
                                                                  4. Recombined 2 regimes into one program.
                                                                  5. Add Preprocessing

                                                                  Alternative 8: 68.0% accurate, 4.1× speedup?

                                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;m \leq -1.05 \cdot 10^{+15}:\\ \;\;\;\;\frac{a}{k \cdot k}\\ \mathbf{elif}\;m \leq 1.35:\\ \;\;\;\;\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\ \end{array} \end{array} \]
                                                                  (FPCore (a k m)
                                                                   :precision binary64
                                                                   (if (<= m -1.05e+15)
                                                                     (/ a (* k k))
                                                                     (if (<= m 1.35) (/ a (fma (+ 10.0 k) k 1.0)) (* (* (* 99.0 k) a) k))))
                                                                  double code(double a, double k, double m) {
                                                                  	double tmp;
                                                                  	if (m <= -1.05e+15) {
                                                                  		tmp = a / (k * k);
                                                                  	} else if (m <= 1.35) {
                                                                  		tmp = a / fma((10.0 + k), k, 1.0);
                                                                  	} else {
                                                                  		tmp = ((99.0 * k) * a) * k;
                                                                  	}
                                                                  	return tmp;
                                                                  }
                                                                  
                                                                  function code(a, k, m)
                                                                  	tmp = 0.0
                                                                  	if (m <= -1.05e+15)
                                                                  		tmp = Float64(a / Float64(k * k));
                                                                  	elseif (m <= 1.35)
                                                                  		tmp = Float64(a / fma(Float64(10.0 + k), k, 1.0));
                                                                  	else
                                                                  		tmp = Float64(Float64(Float64(99.0 * k) * a) * k);
                                                                  	end
                                                                  	return tmp
                                                                  end
                                                                  
                                                                  code[a_, k_, m_] := If[LessEqual[m, -1.05e+15], N[(a / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 1.35], N[(a / N[(N[(10.0 + k), $MachinePrecision] * k + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * a), $MachinePrecision] * k), $MachinePrecision]]]
                                                                  
                                                                  \begin{array}{l}
                                                                  
                                                                  \\
                                                                  \begin{array}{l}
                                                                  \mathbf{if}\;m \leq -1.05 \cdot 10^{+15}:\\
                                                                  \;\;\;\;\frac{a}{k \cdot k}\\
                                                                  
                                                                  \mathbf{elif}\;m \leq 1.35:\\
                                                                  \;\;\;\;\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}\\
                                                                  
                                                                  \mathbf{else}:\\
                                                                  \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\
                                                                  
                                                                  
                                                                  \end{array}
                                                                  \end{array}
                                                                  
                                                                  Derivation
                                                                  1. Split input into 3 regimes
                                                                  2. if m < -1.05e15

                                                                    1. Initial program 100.0%

                                                                      \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                    2. Add Preprocessing
                                                                    3. Taylor expanded in m around 0

                                                                      \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                    4. Step-by-step derivation
                                                                      1. lower-/.f64N/A

                                                                        \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                      2. associate-+r+N/A

                                                                        \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                      3. +-commutativeN/A

                                                                        \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                      4. +-commutativeN/A

                                                                        \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                      5. associate-+l+N/A

                                                                        \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                      6. +-commutativeN/A

                                                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                      7. associate-+l+N/A

                                                                        \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                      8. metadata-evalN/A

                                                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                      9. lft-mult-inverseN/A

                                                                        \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                      10. associate-*l*N/A

                                                                        \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                      11. associate-*r*N/A

                                                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                      12. unpow2N/A

                                                                        \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                      13. associate-+l+N/A

                                                                        \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                      14. distribute-lft1-inN/A

                                                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                      15. +-commutativeN/A

                                                                        \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                      16. unpow2N/A

                                                                        \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                      17. associate-*r*N/A

                                                                        \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                      18. lower-fma.f64N/A

                                                                        \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                    5. Applied rewrites35.5%

                                                                      \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                    6. Step-by-step derivation
                                                                      1. Applied rewrites35.5%

                                                                        \[\leadsto \frac{a}{\mathsf{fma}\left(\frac{1}{\frac{k - 10}{\mathsf{fma}\left(k, k, -100\right)}}, k, 1\right)} \]
                                                                      2. Taylor expanded in k around inf

                                                                        \[\leadsto \frac{a}{{k}^{\color{blue}{2}}} \]
                                                                      3. Step-by-step derivation
                                                                        1. Applied rewrites52.7%

                                                                          \[\leadsto \frac{a}{k \cdot \color{blue}{k}} \]

                                                                        if -1.05e15 < m < 1.3500000000000001

                                                                        1. Initial program 93.1%

                                                                          \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                        2. Add Preprocessing
                                                                        3. Taylor expanded in m around 0

                                                                          \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                        4. Step-by-step derivation
                                                                          1. lower-/.f64N/A

                                                                            \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                          2. associate-+r+N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                          3. +-commutativeN/A

                                                                            \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                          4. +-commutativeN/A

                                                                            \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                          5. associate-+l+N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                          6. +-commutativeN/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                          7. associate-+l+N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                          8. metadata-evalN/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                          9. lft-mult-inverseN/A

                                                                            \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                          10. associate-*l*N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                          11. associate-*r*N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                          12. unpow2N/A

                                                                            \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                          13. associate-+l+N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                          14. distribute-lft1-inN/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                          15. +-commutativeN/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                          16. unpow2N/A

                                                                            \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                          17. associate-*r*N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                          18. lower-fma.f64N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                        5. Applied rewrites91.1%

                                                                          \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]

                                                                        if 1.3500000000000001 < m

                                                                        1. Initial program 79.6%

                                                                          \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                        2. Add Preprocessing
                                                                        3. Taylor expanded in m around 0

                                                                          \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                        4. Step-by-step derivation
                                                                          1. lower-/.f64N/A

                                                                            \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                          2. associate-+r+N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                          3. +-commutativeN/A

                                                                            \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                          4. +-commutativeN/A

                                                                            \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                          5. associate-+l+N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                          6. +-commutativeN/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                          7. associate-+l+N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                          8. metadata-evalN/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                          9. lft-mult-inverseN/A

                                                                            \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                          10. associate-*l*N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                          11. associate-*r*N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                          12. unpow2N/A

                                                                            \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                          13. associate-+l+N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                          14. distribute-lft1-inN/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                          15. +-commutativeN/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                          16. unpow2N/A

                                                                            \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                          17. associate-*r*N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                          18. lower-fma.f64N/A

                                                                            \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                        5. Applied rewrites3.0%

                                                                          \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                        6. Taylor expanded in k around 0

                                                                          \[\leadsto a + \color{blue}{k \cdot \left(-1 \cdot \left(k \cdot \left(a + -100 \cdot a\right)\right) - 10 \cdot a\right)} \]
                                                                        7. Step-by-step derivation
                                                                          1. Applied rewrites17.9%

                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(99 \cdot a, k, -10 \cdot a\right), \color{blue}{k}, a\right) \]
                                                                          2. Taylor expanded in k around inf

                                                                            \[\leadsto 99 \cdot \left(a \cdot \color{blue}{{k}^{2}}\right) \]
                                                                          3. Step-by-step derivation
                                                                            1. Applied rewrites46.2%

                                                                              \[\leadsto \left(\left(99 \cdot k\right) \cdot a\right) \cdot k \]
                                                                          4. Recombined 3 regimes into one program.
                                                                          5. Add Preprocessing

                                                                          Alternative 9: 57.6% accurate, 4.5× speedup?

                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;m \leq -13.5:\\ \;\;\;\;\frac{a}{k \cdot k}\\ \mathbf{elif}\;m \leq 1.35:\\ \;\;\;\;\frac{a}{\mathsf{fma}\left(10, k, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\ \end{array} \end{array} \]
                                                                          (FPCore (a k m)
                                                                           :precision binary64
                                                                           (if (<= m -13.5)
                                                                             (/ a (* k k))
                                                                             (if (<= m 1.35) (/ a (fma 10.0 k 1.0)) (* (* (* 99.0 k) a) k))))
                                                                          double code(double a, double k, double m) {
                                                                          	double tmp;
                                                                          	if (m <= -13.5) {
                                                                          		tmp = a / (k * k);
                                                                          	} else if (m <= 1.35) {
                                                                          		tmp = a / fma(10.0, k, 1.0);
                                                                          	} else {
                                                                          		tmp = ((99.0 * k) * a) * k;
                                                                          	}
                                                                          	return tmp;
                                                                          }
                                                                          
                                                                          function code(a, k, m)
                                                                          	tmp = 0.0
                                                                          	if (m <= -13.5)
                                                                          		tmp = Float64(a / Float64(k * k));
                                                                          	elseif (m <= 1.35)
                                                                          		tmp = Float64(a / fma(10.0, k, 1.0));
                                                                          	else
                                                                          		tmp = Float64(Float64(Float64(99.0 * k) * a) * k);
                                                                          	end
                                                                          	return tmp
                                                                          end
                                                                          
                                                                          code[a_, k_, m_] := If[LessEqual[m, -13.5], N[(a / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 1.35], N[(a / N[(10.0 * k + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * a), $MachinePrecision] * k), $MachinePrecision]]]
                                                                          
                                                                          \begin{array}{l}
                                                                          
                                                                          \\
                                                                          \begin{array}{l}
                                                                          \mathbf{if}\;m \leq -13.5:\\
                                                                          \;\;\;\;\frac{a}{k \cdot k}\\
                                                                          
                                                                          \mathbf{elif}\;m \leq 1.35:\\
                                                                          \;\;\;\;\frac{a}{\mathsf{fma}\left(10, k, 1\right)}\\
                                                                          
                                                                          \mathbf{else}:\\
                                                                          \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\
                                                                          
                                                                          
                                                                          \end{array}
                                                                          \end{array}
                                                                          
                                                                          Derivation
                                                                          1. Split input into 3 regimes
                                                                          2. if m < -13.5

                                                                            1. Initial program 100.0%

                                                                              \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                            2. Add Preprocessing
                                                                            3. Taylor expanded in m around 0

                                                                              \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                            4. Step-by-step derivation
                                                                              1. lower-/.f64N/A

                                                                                \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                              2. associate-+r+N/A

                                                                                \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                              3. +-commutativeN/A

                                                                                \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                              4. +-commutativeN/A

                                                                                \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                              5. associate-+l+N/A

                                                                                \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                              6. +-commutativeN/A

                                                                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                              7. associate-+l+N/A

                                                                                \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                              8. metadata-evalN/A

                                                                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                              9. lft-mult-inverseN/A

                                                                                \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                              10. associate-*l*N/A

                                                                                \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                              11. associate-*r*N/A

                                                                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                              12. unpow2N/A

                                                                                \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                              13. associate-+l+N/A

                                                                                \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                              14. distribute-lft1-inN/A

                                                                                \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                              15. +-commutativeN/A

                                                                                \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                              16. unpow2N/A

                                                                                \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                              17. associate-*r*N/A

                                                                                \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                              18. lower-fma.f64N/A

                                                                                \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                            5. Applied rewrites35.1%

                                                                              \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                            6. Step-by-step derivation
                                                                              1. Applied rewrites35.1%

                                                                                \[\leadsto \frac{a}{\mathsf{fma}\left(\frac{1}{\frac{k - 10}{\mathsf{fma}\left(k, k, -100\right)}}, k, 1\right)} \]
                                                                              2. Taylor expanded in k around inf

                                                                                \[\leadsto \frac{a}{{k}^{\color{blue}{2}}} \]
                                                                              3. Step-by-step derivation
                                                                                1. Applied rewrites52.1%

                                                                                  \[\leadsto \frac{a}{k \cdot \color{blue}{k}} \]

                                                                                if -13.5 < m < 1.3500000000000001

                                                                                1. Initial program 93.1%

                                                                                  \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                                2. Add Preprocessing
                                                                                3. Taylor expanded in m around 0

                                                                                  \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                4. Step-by-step derivation
                                                                                  1. lower-/.f64N/A

                                                                                    \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                  2. associate-+r+N/A

                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                                  3. +-commutativeN/A

                                                                                    \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                                  4. +-commutativeN/A

                                                                                    \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                                  5. associate-+l+N/A

                                                                                    \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                                  6. +-commutativeN/A

                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                                  7. associate-+l+N/A

                                                                                    \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                                  8. metadata-evalN/A

                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                  9. lft-mult-inverseN/A

                                                                                    \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                  10. associate-*l*N/A

                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                  11. associate-*r*N/A

                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                                  12. unpow2N/A

                                                                                    \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                                  13. associate-+l+N/A

                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                                  14. distribute-lft1-inN/A

                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                                  15. +-commutativeN/A

                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                                  16. unpow2N/A

                                                                                    \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                                  17. associate-*r*N/A

                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                                  18. lower-fma.f64N/A

                                                                                    \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                                5. Applied rewrites92.2%

                                                                                  \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                                6. Taylor expanded in k around 0

                                                                                  \[\leadsto \frac{a}{\mathsf{fma}\left(10, k, 1\right)} \]
                                                                                7. Step-by-step derivation
                                                                                  1. Applied rewrites67.5%

                                                                                    \[\leadsto \frac{a}{\mathsf{fma}\left(10, k, 1\right)} \]

                                                                                  if 1.3500000000000001 < m

                                                                                  1. Initial program 79.6%

                                                                                    \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                                  2. Add Preprocessing
                                                                                  3. Taylor expanded in m around 0

                                                                                    \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                  4. Step-by-step derivation
                                                                                    1. lower-/.f64N/A

                                                                                      \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                    2. associate-+r+N/A

                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                                    3. +-commutativeN/A

                                                                                      \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                                    4. +-commutativeN/A

                                                                                      \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                                    5. associate-+l+N/A

                                                                                      \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                                    6. +-commutativeN/A

                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                                    7. associate-+l+N/A

                                                                                      \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                                    8. metadata-evalN/A

                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                    9. lft-mult-inverseN/A

                                                                                      \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                    10. associate-*l*N/A

                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                    11. associate-*r*N/A

                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                                    12. unpow2N/A

                                                                                      \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                                    13. associate-+l+N/A

                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                                    14. distribute-lft1-inN/A

                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                                    15. +-commutativeN/A

                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                                    16. unpow2N/A

                                                                                      \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                                    17. associate-*r*N/A

                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                                    18. lower-fma.f64N/A

                                                                                      \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                                  5. Applied rewrites3.0%

                                                                                    \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                                  6. Taylor expanded in k around 0

                                                                                    \[\leadsto a + \color{blue}{k \cdot \left(-1 \cdot \left(k \cdot \left(a + -100 \cdot a\right)\right) - 10 \cdot a\right)} \]
                                                                                  7. Step-by-step derivation
                                                                                    1. Applied rewrites17.9%

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(99 \cdot a, k, -10 \cdot a\right), \color{blue}{k}, a\right) \]
                                                                                    2. Taylor expanded in k around inf

                                                                                      \[\leadsto 99 \cdot \left(a \cdot \color{blue}{{k}^{2}}\right) \]
                                                                                    3. Step-by-step derivation
                                                                                      1. Applied rewrites46.2%

                                                                                        \[\leadsto \left(\left(99 \cdot k\right) \cdot a\right) \cdot k \]
                                                                                    4. Recombined 3 regimes into one program.
                                                                                    5. Add Preprocessing

                                                                                    Alternative 10: 52.9% accurate, 4.8× speedup?

                                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;m \leq -9.8 \cdot 10^{-23}:\\ \;\;\;\;\frac{a}{k \cdot k}\\ \mathbf{elif}\;m \leq 0.41:\\ \;\;\;\;\frac{a}{1}\\ \mathbf{else}:\\ \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\ \end{array} \end{array} \]
                                                                                    (FPCore (a k m)
                                                                                     :precision binary64
                                                                                     (if (<= m -9.8e-23)
                                                                                       (/ a (* k k))
                                                                                       (if (<= m 0.41) (/ a 1.0) (* (* (* 99.0 k) a) k))))
                                                                                    double code(double a, double k, double m) {
                                                                                    	double tmp;
                                                                                    	if (m <= -9.8e-23) {
                                                                                    		tmp = a / (k * k);
                                                                                    	} else if (m <= 0.41) {
                                                                                    		tmp = a / 1.0;
                                                                                    	} else {
                                                                                    		tmp = ((99.0 * k) * 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 <= (-9.8d-23)) then
                                                                                            tmp = a / (k * k)
                                                                                        else if (m <= 0.41d0) then
                                                                                            tmp = a / 1.0d0
                                                                                        else
                                                                                            tmp = ((99.0d0 * k) * a) * k
                                                                                        end if
                                                                                        code = tmp
                                                                                    end function
                                                                                    
                                                                                    public static double code(double a, double k, double m) {
                                                                                    	double tmp;
                                                                                    	if (m <= -9.8e-23) {
                                                                                    		tmp = a / (k * k);
                                                                                    	} else if (m <= 0.41) {
                                                                                    		tmp = a / 1.0;
                                                                                    	} else {
                                                                                    		tmp = ((99.0 * k) * a) * k;
                                                                                    	}
                                                                                    	return tmp;
                                                                                    }
                                                                                    
                                                                                    def code(a, k, m):
                                                                                    	tmp = 0
                                                                                    	if m <= -9.8e-23:
                                                                                    		tmp = a / (k * k)
                                                                                    	elif m <= 0.41:
                                                                                    		tmp = a / 1.0
                                                                                    	else:
                                                                                    		tmp = ((99.0 * k) * a) * k
                                                                                    	return tmp
                                                                                    
                                                                                    function code(a, k, m)
                                                                                    	tmp = 0.0
                                                                                    	if (m <= -9.8e-23)
                                                                                    		tmp = Float64(a / Float64(k * k));
                                                                                    	elseif (m <= 0.41)
                                                                                    		tmp = Float64(a / 1.0);
                                                                                    	else
                                                                                    		tmp = Float64(Float64(Float64(99.0 * k) * a) * k);
                                                                                    	end
                                                                                    	return tmp
                                                                                    end
                                                                                    
                                                                                    function tmp_2 = code(a, k, m)
                                                                                    	tmp = 0.0;
                                                                                    	if (m <= -9.8e-23)
                                                                                    		tmp = a / (k * k);
                                                                                    	elseif (m <= 0.41)
                                                                                    		tmp = a / 1.0;
                                                                                    	else
                                                                                    		tmp = ((99.0 * k) * a) * k;
                                                                                    	end
                                                                                    	tmp_2 = tmp;
                                                                                    end
                                                                                    
                                                                                    code[a_, k_, m_] := If[LessEqual[m, -9.8e-23], N[(a / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[m, 0.41], N[(a / 1.0), $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * a), $MachinePrecision] * k), $MachinePrecision]]]
                                                                                    
                                                                                    \begin{array}{l}
                                                                                    
                                                                                    \\
                                                                                    \begin{array}{l}
                                                                                    \mathbf{if}\;m \leq -9.8 \cdot 10^{-23}:\\
                                                                                    \;\;\;\;\frac{a}{k \cdot k}\\
                                                                                    
                                                                                    \mathbf{elif}\;m \leq 0.41:\\
                                                                                    \;\;\;\;\frac{a}{1}\\
                                                                                    
                                                                                    \mathbf{else}:\\
                                                                                    \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\
                                                                                    
                                                                                    
                                                                                    \end{array}
                                                                                    \end{array}
                                                                                    
                                                                                    Derivation
                                                                                    1. Split input into 3 regimes
                                                                                    2. if m < -9.7999999999999996e-23

                                                                                      1. Initial program 100.0%

                                                                                        \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                                      2. Add Preprocessing
                                                                                      3. Taylor expanded in m around 0

                                                                                        \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                      4. Step-by-step derivation
                                                                                        1. lower-/.f64N/A

                                                                                          \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                        2. associate-+r+N/A

                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                                        3. +-commutativeN/A

                                                                                          \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                                        4. +-commutativeN/A

                                                                                          \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                                        5. associate-+l+N/A

                                                                                          \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                                        6. +-commutativeN/A

                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                                        7. associate-+l+N/A

                                                                                          \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                                        8. metadata-evalN/A

                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                        9. lft-mult-inverseN/A

                                                                                          \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                        10. associate-*l*N/A

                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                        11. associate-*r*N/A

                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                                        12. unpow2N/A

                                                                                          \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                                        13. associate-+l+N/A

                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                                        14. distribute-lft1-inN/A

                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                                        15. +-commutativeN/A

                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                                        16. unpow2N/A

                                                                                          \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                                        17. associate-*r*N/A

                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                                        18. lower-fma.f64N/A

                                                                                          \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                                      5. Applied rewrites38.2%

                                                                                        \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                                      6. Step-by-step derivation
                                                                                        1. Applied rewrites38.2%

                                                                                          \[\leadsto \frac{a}{\mathsf{fma}\left(\frac{1}{\frac{k - 10}{\mathsf{fma}\left(k, k, -100\right)}}, k, 1\right)} \]
                                                                                        2. Taylor expanded in k around inf

                                                                                          \[\leadsto \frac{a}{{k}^{\color{blue}{2}}} \]
                                                                                        3. Step-by-step derivation
                                                                                          1. Applied rewrites52.7%

                                                                                            \[\leadsto \frac{a}{k \cdot \color{blue}{k}} \]

                                                                                          if -9.7999999999999996e-23 < m < 0.409999999999999976

                                                                                          1. Initial program 92.6%

                                                                                            \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                                          2. Add Preprocessing
                                                                                          3. Taylor expanded in m around 0

                                                                                            \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                          4. Step-by-step derivation
                                                                                            1. lower-/.f64N/A

                                                                                              \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                            2. associate-+r+N/A

                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                                            3. +-commutativeN/A

                                                                                              \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                                            4. +-commutativeN/A

                                                                                              \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                                            5. associate-+l+N/A

                                                                                              \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                                            6. +-commutativeN/A

                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                                            7. associate-+l+N/A

                                                                                              \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                                            8. metadata-evalN/A

                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                            9. lft-mult-inverseN/A

                                                                                              \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                            10. associate-*l*N/A

                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                            11. associate-*r*N/A

                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                                            12. unpow2N/A

                                                                                              \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                                            13. associate-+l+N/A

                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                                            14. distribute-lft1-inN/A

                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                                            15. +-commutativeN/A

                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                                            16. unpow2N/A

                                                                                              \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                                            17. associate-*r*N/A

                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                                            18. lower-fma.f64N/A

                                                                                              \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                                          5. Applied rewrites92.5%

                                                                                            \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                                          6. Step-by-step derivation
                                                                                            1. Applied rewrites92.4%

                                                                                              \[\leadsto \frac{a}{\mathsf{fma}\left(\frac{1}{\frac{k - 10}{\mathsf{fma}\left(k, k, -100\right)}}, k, 1\right)} \]
                                                                                            2. Taylor expanded in k around 0

                                                                                              \[\leadsto \frac{a}{1} \]
                                                                                            3. Step-by-step derivation
                                                                                              1. Applied rewrites57.6%

                                                                                                \[\leadsto \frac{a}{1} \]

                                                                                              if 0.409999999999999976 < m

                                                                                              1. Initial program 79.6%

                                                                                                \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                                              2. Add Preprocessing
                                                                                              3. Taylor expanded in m around 0

                                                                                                \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                              4. Step-by-step derivation
                                                                                                1. lower-/.f64N/A

                                                                                                  \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                                2. associate-+r+N/A

                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                                                3. +-commutativeN/A

                                                                                                  \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                                                4. +-commutativeN/A

                                                                                                  \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                                                5. associate-+l+N/A

                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                                                6. +-commutativeN/A

                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                                                7. associate-+l+N/A

                                                                                                  \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                                                8. metadata-evalN/A

                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                9. lft-mult-inverseN/A

                                                                                                  \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                10. associate-*l*N/A

                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                11. associate-*r*N/A

                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                                                12. unpow2N/A

                                                                                                  \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                                                13. associate-+l+N/A

                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                                                14. distribute-lft1-inN/A

                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                                                15. +-commutativeN/A

                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                                                16. unpow2N/A

                                                                                                  \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                                                17. associate-*r*N/A

                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                                                18. lower-fma.f64N/A

                                                                                                  \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                                              5. Applied rewrites3.0%

                                                                                                \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                                              6. Taylor expanded in k around 0

                                                                                                \[\leadsto a + \color{blue}{k \cdot \left(-1 \cdot \left(k \cdot \left(a + -100 \cdot a\right)\right) - 10 \cdot a\right)} \]
                                                                                              7. Step-by-step derivation
                                                                                                1. Applied rewrites17.9%

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(99 \cdot a, k, -10 \cdot a\right), \color{blue}{k}, a\right) \]
                                                                                                2. Taylor expanded in k around inf

                                                                                                  \[\leadsto 99 \cdot \left(a \cdot \color{blue}{{k}^{2}}\right) \]
                                                                                                3. Step-by-step derivation
                                                                                                  1. Applied rewrites46.2%

                                                                                                    \[\leadsto \left(\left(99 \cdot k\right) \cdot a\right) \cdot k \]
                                                                                                4. Recombined 3 regimes into one program.
                                                                                                5. Add Preprocessing

                                                                                                Alternative 11: 35.0% accurate, 6.1× speedup?

                                                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;m \leq 0.41:\\ \;\;\;\;\frac{a}{1}\\ \mathbf{else}:\\ \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\ \end{array} \end{array} \]
                                                                                                (FPCore (a k m)
                                                                                                 :precision binary64
                                                                                                 (if (<= m 0.41) (/ a 1.0) (* (* (* 99.0 k) a) k)))
                                                                                                double code(double a, double k, double m) {
                                                                                                	double tmp;
                                                                                                	if (m <= 0.41) {
                                                                                                		tmp = a / 1.0;
                                                                                                	} else {
                                                                                                		tmp = ((99.0 * k) * 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 <= 0.41d0) then
                                                                                                        tmp = a / 1.0d0
                                                                                                    else
                                                                                                        tmp = ((99.0d0 * k) * a) * k
                                                                                                    end if
                                                                                                    code = tmp
                                                                                                end function
                                                                                                
                                                                                                public static double code(double a, double k, double m) {
                                                                                                	double tmp;
                                                                                                	if (m <= 0.41) {
                                                                                                		tmp = a / 1.0;
                                                                                                	} else {
                                                                                                		tmp = ((99.0 * k) * a) * k;
                                                                                                	}
                                                                                                	return tmp;
                                                                                                }
                                                                                                
                                                                                                def code(a, k, m):
                                                                                                	tmp = 0
                                                                                                	if m <= 0.41:
                                                                                                		tmp = a / 1.0
                                                                                                	else:
                                                                                                		tmp = ((99.0 * k) * a) * k
                                                                                                	return tmp
                                                                                                
                                                                                                function code(a, k, m)
                                                                                                	tmp = 0.0
                                                                                                	if (m <= 0.41)
                                                                                                		tmp = Float64(a / 1.0);
                                                                                                	else
                                                                                                		tmp = Float64(Float64(Float64(99.0 * k) * a) * k);
                                                                                                	end
                                                                                                	return tmp
                                                                                                end
                                                                                                
                                                                                                function tmp_2 = code(a, k, m)
                                                                                                	tmp = 0.0;
                                                                                                	if (m <= 0.41)
                                                                                                		tmp = a / 1.0;
                                                                                                	else
                                                                                                		tmp = ((99.0 * k) * a) * k;
                                                                                                	end
                                                                                                	tmp_2 = tmp;
                                                                                                end
                                                                                                
                                                                                                code[a_, k_, m_] := If[LessEqual[m, 0.41], N[(a / 1.0), $MachinePrecision], N[(N[(N[(99.0 * k), $MachinePrecision] * a), $MachinePrecision] * k), $MachinePrecision]]
                                                                                                
                                                                                                \begin{array}{l}
                                                                                                
                                                                                                \\
                                                                                                \begin{array}{l}
                                                                                                \mathbf{if}\;m \leq 0.41:\\
                                                                                                \;\;\;\;\frac{a}{1}\\
                                                                                                
                                                                                                \mathbf{else}:\\
                                                                                                \;\;\;\;\left(\left(99 \cdot k\right) \cdot a\right) \cdot k\\
                                                                                                
                                                                                                
                                                                                                \end{array}
                                                                                                \end{array}
                                                                                                
                                                                                                Derivation
                                                                                                1. Split input into 2 regimes
                                                                                                2. if m < 0.409999999999999976

                                                                                                  1. Initial program 96.5%

                                                                                                    \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                                                  2. Add Preprocessing
                                                                                                  3. Taylor expanded in m around 0

                                                                                                    \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                                  4. Step-by-step derivation
                                                                                                    1. lower-/.f64N/A

                                                                                                      \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                                    2. associate-+r+N/A

                                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                                                    3. +-commutativeN/A

                                                                                                      \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                                                    4. +-commutativeN/A

                                                                                                      \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                                                    5. associate-+l+N/A

                                                                                                      \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                                                    6. +-commutativeN/A

                                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                                                    7. associate-+l+N/A

                                                                                                      \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                                                    8. metadata-evalN/A

                                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                    9. lft-mult-inverseN/A

                                                                                                      \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                    10. associate-*l*N/A

                                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                    11. associate-*r*N/A

                                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                                                    12. unpow2N/A

                                                                                                      \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                                                    13. associate-+l+N/A

                                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                                                    14. distribute-lft1-inN/A

                                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                                                    15. +-commutativeN/A

                                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                                                    16. unpow2N/A

                                                                                                      \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                                                    17. associate-*r*N/A

                                                                                                      \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                                                    18. lower-fma.f64N/A

                                                                                                      \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                                                  5. Applied rewrites64.2%

                                                                                                    \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                                                  6. Step-by-step derivation
                                                                                                    1. Applied rewrites64.1%

                                                                                                      \[\leadsto \frac{a}{\mathsf{fma}\left(\frac{1}{\frac{k - 10}{\mathsf{fma}\left(k, k, -100\right)}}, k, 1\right)} \]
                                                                                                    2. Taylor expanded in k around 0

                                                                                                      \[\leadsto \frac{a}{1} \]
                                                                                                    3. Step-by-step derivation
                                                                                                      1. Applied rewrites30.4%

                                                                                                        \[\leadsto \frac{a}{1} \]

                                                                                                      if 0.409999999999999976 < m

                                                                                                      1. Initial program 79.6%

                                                                                                        \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                                                      2. Add Preprocessing
                                                                                                      3. Taylor expanded in m around 0

                                                                                                        \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                                      4. Step-by-step derivation
                                                                                                        1. lower-/.f64N/A

                                                                                                          \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                                        2. associate-+r+N/A

                                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                                                        3. +-commutativeN/A

                                                                                                          \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                                                        4. +-commutativeN/A

                                                                                                          \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                                                        5. associate-+l+N/A

                                                                                                          \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                                                        6. +-commutativeN/A

                                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                                                        7. associate-+l+N/A

                                                                                                          \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                                                        8. metadata-evalN/A

                                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                        9. lft-mult-inverseN/A

                                                                                                          \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                        10. associate-*l*N/A

                                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                        11. associate-*r*N/A

                                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                                                        12. unpow2N/A

                                                                                                          \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                                                        13. associate-+l+N/A

                                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                                                        14. distribute-lft1-inN/A

                                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                                                        15. +-commutativeN/A

                                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                                                        16. unpow2N/A

                                                                                                          \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                                                        17. associate-*r*N/A

                                                                                                          \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                                                        18. lower-fma.f64N/A

                                                                                                          \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                                                      5. Applied rewrites3.0%

                                                                                                        \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                                                      6. Taylor expanded in k around 0

                                                                                                        \[\leadsto a + \color{blue}{k \cdot \left(-1 \cdot \left(k \cdot \left(a + -100 \cdot a\right)\right) - 10 \cdot a\right)} \]
                                                                                                      7. Step-by-step derivation
                                                                                                        1. Applied rewrites17.9%

                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(99 \cdot a, k, -10 \cdot a\right), \color{blue}{k}, a\right) \]
                                                                                                        2. Taylor expanded in k around inf

                                                                                                          \[\leadsto 99 \cdot \left(a \cdot \color{blue}{{k}^{2}}\right) \]
                                                                                                        3. Step-by-step derivation
                                                                                                          1. Applied rewrites46.2%

                                                                                                            \[\leadsto \left(\left(99 \cdot k\right) \cdot a\right) \cdot k \]
                                                                                                        4. Recombined 2 regimes into one program.
                                                                                                        5. Add Preprocessing

                                                                                                        Alternative 12: 24.9% accurate, 7.4× speedup?

                                                                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;m \leq 0.41:\\ \;\;\;\;\frac{a}{1}\\ \mathbf{else}:\\ \;\;\;\;\left(a \cdot k\right) \cdot -10\\ \end{array} \end{array} \]
                                                                                                        (FPCore (a k m)
                                                                                                         :precision binary64
                                                                                                         (if (<= m 0.41) (/ a 1.0) (* (* a k) -10.0)))
                                                                                                        double code(double a, double k, double m) {
                                                                                                        	double tmp;
                                                                                                        	if (m <= 0.41) {
                                                                                                        		tmp = a / 1.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.41d0) then
                                                                                                                tmp = a / 1.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.41) {
                                                                                                        		tmp = a / 1.0;
                                                                                                        	} else {
                                                                                                        		tmp = (a * k) * -10.0;
                                                                                                        	}
                                                                                                        	return tmp;
                                                                                                        }
                                                                                                        
                                                                                                        def code(a, k, m):
                                                                                                        	tmp = 0
                                                                                                        	if m <= 0.41:
                                                                                                        		tmp = a / 1.0
                                                                                                        	else:
                                                                                                        		tmp = (a * k) * -10.0
                                                                                                        	return tmp
                                                                                                        
                                                                                                        function code(a, k, m)
                                                                                                        	tmp = 0.0
                                                                                                        	if (m <= 0.41)
                                                                                                        		tmp = Float64(a / 1.0);
                                                                                                        	else
                                                                                                        		tmp = Float64(Float64(a * k) * -10.0);
                                                                                                        	end
                                                                                                        	return tmp
                                                                                                        end
                                                                                                        
                                                                                                        function tmp_2 = code(a, k, m)
                                                                                                        	tmp = 0.0;
                                                                                                        	if (m <= 0.41)
                                                                                                        		tmp = a / 1.0;
                                                                                                        	else
                                                                                                        		tmp = (a * k) * -10.0;
                                                                                                        	end
                                                                                                        	tmp_2 = tmp;
                                                                                                        end
                                                                                                        
                                                                                                        code[a_, k_, m_] := If[LessEqual[m, 0.41], N[(a / 1.0), $MachinePrecision], N[(N[(a * k), $MachinePrecision] * -10.0), $MachinePrecision]]
                                                                                                        
                                                                                                        \begin{array}{l}
                                                                                                        
                                                                                                        \\
                                                                                                        \begin{array}{l}
                                                                                                        \mathbf{if}\;m \leq 0.41:\\
                                                                                                        \;\;\;\;\frac{a}{1}\\
                                                                                                        
                                                                                                        \mathbf{else}:\\
                                                                                                        \;\;\;\;\left(a \cdot k\right) \cdot -10\\
                                                                                                        
                                                                                                        
                                                                                                        \end{array}
                                                                                                        \end{array}
                                                                                                        
                                                                                                        Derivation
                                                                                                        1. Split input into 2 regimes
                                                                                                        2. if m < 0.409999999999999976

                                                                                                          1. Initial program 96.5%

                                                                                                            \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                                                          2. Add Preprocessing
                                                                                                          3. Taylor expanded in m around 0

                                                                                                            \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                                          4. Step-by-step derivation
                                                                                                            1. lower-/.f64N/A

                                                                                                              \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                                            2. associate-+r+N/A

                                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                                                            3. +-commutativeN/A

                                                                                                              \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                                                            4. +-commutativeN/A

                                                                                                              \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                                                            5. associate-+l+N/A

                                                                                                              \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                                                            6. +-commutativeN/A

                                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                                                            7. associate-+l+N/A

                                                                                                              \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                                                            8. metadata-evalN/A

                                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                            9. lft-mult-inverseN/A

                                                                                                              \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                            10. associate-*l*N/A

                                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                            11. associate-*r*N/A

                                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                                                            12. unpow2N/A

                                                                                                              \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                                                            13. associate-+l+N/A

                                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                                                            14. distribute-lft1-inN/A

                                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                                                            15. +-commutativeN/A

                                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                                                            16. unpow2N/A

                                                                                                              \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                                                            17. associate-*r*N/A

                                                                                                              \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                                                            18. lower-fma.f64N/A

                                                                                                              \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                                                          5. Applied rewrites64.2%

                                                                                                            \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                                                          6. Step-by-step derivation
                                                                                                            1. Applied rewrites64.1%

                                                                                                              \[\leadsto \frac{a}{\mathsf{fma}\left(\frac{1}{\frac{k - 10}{\mathsf{fma}\left(k, k, -100\right)}}, k, 1\right)} \]
                                                                                                            2. Taylor expanded in k around 0

                                                                                                              \[\leadsto \frac{a}{1} \]
                                                                                                            3. Step-by-step derivation
                                                                                                              1. Applied rewrites30.4%

                                                                                                                \[\leadsto \frac{a}{1} \]

                                                                                                              if 0.409999999999999976 < m

                                                                                                              1. Initial program 79.6%

                                                                                                                \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                                                              2. Add Preprocessing
                                                                                                              3. Taylor expanded in m around 0

                                                                                                                \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                                              4. Step-by-step derivation
                                                                                                                1. lower-/.f64N/A

                                                                                                                  \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                                                2. associate-+r+N/A

                                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                                                                3. +-commutativeN/A

                                                                                                                  \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                                                                4. +-commutativeN/A

                                                                                                                  \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                                                                5. associate-+l+N/A

                                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                                                                6. +-commutativeN/A

                                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                                                                7. associate-+l+N/A

                                                                                                                  \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                                                                8. metadata-evalN/A

                                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                                9. lft-mult-inverseN/A

                                                                                                                  \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                                10. associate-*l*N/A

                                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                                11. associate-*r*N/A

                                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                                                                12. unpow2N/A

                                                                                                                  \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                                                                13. associate-+l+N/A

                                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                                                                14. distribute-lft1-inN/A

                                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                                                                15. +-commutativeN/A

                                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                                                                16. unpow2N/A

                                                                                                                  \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                                                                17. associate-*r*N/A

                                                                                                                  \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                                                                18. lower-fma.f64N/A

                                                                                                                  \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                                                              5. Applied rewrites3.0%

                                                                                                                \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                                                              6. Taylor expanded in k around 0

                                                                                                                \[\leadsto a + \color{blue}{-10 \cdot \left(a \cdot k\right)} \]
                                                                                                              7. Step-by-step derivation
                                                                                                                1. Applied rewrites4.0%

                                                                                                                  \[\leadsto \mathsf{fma}\left(a \cdot k, \color{blue}{-10}, a\right) \]
                                                                                                                2. Taylor expanded in k around inf

                                                                                                                  \[\leadsto -10 \cdot \left(a \cdot \color{blue}{k}\right) \]
                                                                                                                3. Step-by-step derivation
                                                                                                                  1. Applied rewrites15.9%

                                                                                                                    \[\leadsto \left(a \cdot k\right) \cdot -10 \]
                                                                                                                4. Recombined 2 regimes into one program.
                                                                                                                5. Add Preprocessing

                                                                                                                Alternative 13: 8.1% accurate, 12.2× speedup?

                                                                                                                \[\begin{array}{l} \\ \left(a \cdot k\right) \cdot -10 \end{array} \]
                                                                                                                (FPCore (a k m) :precision binary64 (* (* a k) -10.0))
                                                                                                                double code(double a, double k, double m) {
                                                                                                                	return (a * 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) * (-10.0d0)
                                                                                                                end function
                                                                                                                
                                                                                                                public static double code(double a, double k, double m) {
                                                                                                                	return (a * k) * -10.0;
                                                                                                                }
                                                                                                                
                                                                                                                def code(a, k, m):
                                                                                                                	return (a * k) * -10.0
                                                                                                                
                                                                                                                function code(a, k, m)
                                                                                                                	return Float64(Float64(a * k) * -10.0)
                                                                                                                end
                                                                                                                
                                                                                                                function tmp = code(a, k, m)
                                                                                                                	tmp = (a * k) * -10.0;
                                                                                                                end
                                                                                                                
                                                                                                                code[a_, k_, m_] := N[(N[(a * k), $MachinePrecision] * -10.0), $MachinePrecision]
                                                                                                                
                                                                                                                \begin{array}{l}
                                                                                                                
                                                                                                                \\
                                                                                                                \left(a \cdot k\right) \cdot -10
                                                                                                                \end{array}
                                                                                                                
                                                                                                                Derivation
                                                                                                                1. Initial program 90.3%

                                                                                                                  \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                                                                2. Add Preprocessing
                                                                                                                3. Taylor expanded in m around 0

                                                                                                                  \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                                                4. Step-by-step derivation
                                                                                                                  1. lower-/.f64N/A

                                                                                                                    \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                                                  2. associate-+r+N/A

                                                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                                                                  3. +-commutativeN/A

                                                                                                                    \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                                                                  4. +-commutativeN/A

                                                                                                                    \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                                                                  5. associate-+l+N/A

                                                                                                                    \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                                                                  6. +-commutativeN/A

                                                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                                                                  7. associate-+l+N/A

                                                                                                                    \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                                                                  8. metadata-evalN/A

                                                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                                  9. lft-mult-inverseN/A

                                                                                                                    \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                                  10. associate-*l*N/A

                                                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                                  11. associate-*r*N/A

                                                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                                                                  12. unpow2N/A

                                                                                                                    \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                                                                  13. associate-+l+N/A

                                                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                                                                  14. distribute-lft1-inN/A

                                                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                                                                  15. +-commutativeN/A

                                                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                                                                  16. unpow2N/A

                                                                                                                    \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                                                                  17. associate-*r*N/A

                                                                                                                    \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                                                                  18. lower-fma.f64N/A

                                                                                                                    \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                                                                5. Applied rewrites41.9%

                                                                                                                  \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                                                                6. Taylor expanded in k around 0

                                                                                                                  \[\leadsto a + \color{blue}{-10 \cdot \left(a \cdot k\right)} \]
                                                                                                                7. Step-by-step derivation
                                                                                                                  1. Applied rewrites20.1%

                                                                                                                    \[\leadsto \mathsf{fma}\left(a \cdot k, \color{blue}{-10}, a\right) \]
                                                                                                                  2. Taylor expanded in k around inf

                                                                                                                    \[\leadsto -10 \cdot \left(a \cdot \color{blue}{k}\right) \]
                                                                                                                  3. Step-by-step derivation
                                                                                                                    1. Applied rewrites7.2%

                                                                                                                      \[\leadsto \left(a \cdot k\right) \cdot -10 \]
                                                                                                                    2. Add Preprocessing

                                                                                                                    Alternative 14: 8.1% accurate, 12.2× speedup?

                                                                                                                    \[\begin{array}{l} \\ \left(-10 \cdot a\right) \cdot k \end{array} \]
                                                                                                                    (FPCore (a k m) :precision binary64 (* (* -10.0 a) k))
                                                                                                                    double code(double a, double k, double m) {
                                                                                                                    	return (-10.0 * a) * k;
                                                                                                                    }
                                                                                                                    
                                                                                                                    real(8) function code(a, k, m)
                                                                                                                        real(8), intent (in) :: a
                                                                                                                        real(8), intent (in) :: k
                                                                                                                        real(8), intent (in) :: m
                                                                                                                        code = ((-10.0d0) * a) * k
                                                                                                                    end function
                                                                                                                    
                                                                                                                    public static double code(double a, double k, double m) {
                                                                                                                    	return (-10.0 * a) * k;
                                                                                                                    }
                                                                                                                    
                                                                                                                    def code(a, k, m):
                                                                                                                    	return (-10.0 * a) * k
                                                                                                                    
                                                                                                                    function code(a, k, m)
                                                                                                                    	return Float64(Float64(-10.0 * a) * k)
                                                                                                                    end
                                                                                                                    
                                                                                                                    function tmp = code(a, k, m)
                                                                                                                    	tmp = (-10.0 * a) * k;
                                                                                                                    end
                                                                                                                    
                                                                                                                    code[a_, k_, m_] := N[(N[(-10.0 * a), $MachinePrecision] * k), $MachinePrecision]
                                                                                                                    
                                                                                                                    \begin{array}{l}
                                                                                                                    
                                                                                                                    \\
                                                                                                                    \left(-10 \cdot a\right) \cdot k
                                                                                                                    \end{array}
                                                                                                                    
                                                                                                                    Derivation
                                                                                                                    1. Initial program 90.3%

                                                                                                                      \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
                                                                                                                    2. Add Preprocessing
                                                                                                                    3. Taylor expanded in m around 0

                                                                                                                      \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                                                    4. Step-by-step derivation
                                                                                                                      1. lower-/.f64N/A

                                                                                                                        \[\leadsto \color{blue}{\frac{a}{1 + \left(10 \cdot k + {k}^{2}\right)}} \]
                                                                                                                      2. associate-+r+N/A

                                                                                                                        \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot k\right) + {k}^{2}}} \]
                                                                                                                      3. +-commutativeN/A

                                                                                                                        \[\leadsto \frac{a}{\color{blue}{{k}^{2} + \left(1 + 10 \cdot k\right)}} \]
                                                                                                                      4. +-commutativeN/A

                                                                                                                        \[\leadsto \frac{a}{{k}^{2} + \color{blue}{\left(10 \cdot k + 1\right)}} \]
                                                                                                                      5. associate-+l+N/A

                                                                                                                        \[\leadsto \frac{a}{\color{blue}{\left({k}^{2} + 10 \cdot k\right) + 1}} \]
                                                                                                                      6. +-commutativeN/A

                                                                                                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot k + {k}^{2}\right)} + 1} \]
                                                                                                                      7. associate-+l+N/A

                                                                                                                        \[\leadsto \frac{a}{\color{blue}{10 \cdot k + \left({k}^{2} + 1\right)}} \]
                                                                                                                      8. metadata-evalN/A

                                                                                                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot 1\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                                      9. lft-mult-inverseN/A

                                                                                                                        \[\leadsto \frac{a}{\left(10 \cdot \color{blue}{\left(\frac{1}{k} \cdot k\right)}\right) \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                                      10. associate-*l*N/A

                                                                                                                        \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot k\right)} \cdot k + \left({k}^{2} + 1\right)} \]
                                                                                                                      11. associate-*r*N/A

                                                                                                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k}\right) \cdot \left(k \cdot k\right)} + \left({k}^{2} + 1\right)} \]
                                                                                                                      12. unpow2N/A

                                                                                                                        \[\leadsto \frac{a}{\left(10 \cdot \frac{1}{k}\right) \cdot \color{blue}{{k}^{2}} + \left({k}^{2} + 1\right)} \]
                                                                                                                      13. associate-+l+N/A

                                                                                                                        \[\leadsto \frac{a}{\color{blue}{\left(\left(10 \cdot \frac{1}{k}\right) \cdot {k}^{2} + {k}^{2}\right) + 1}} \]
                                                                                                                      14. distribute-lft1-inN/A

                                                                                                                        \[\leadsto \frac{a}{\color{blue}{\left(10 \cdot \frac{1}{k} + 1\right) \cdot {k}^{2}} + 1} \]
                                                                                                                      15. +-commutativeN/A

                                                                                                                        \[\leadsto \frac{a}{\color{blue}{\left(1 + 10 \cdot \frac{1}{k}\right)} \cdot {k}^{2} + 1} \]
                                                                                                                      16. unpow2N/A

                                                                                                                        \[\leadsto \frac{a}{\left(1 + 10 \cdot \frac{1}{k}\right) \cdot \color{blue}{\left(k \cdot k\right)} + 1} \]
                                                                                                                      17. associate-*r*N/A

                                                                                                                        \[\leadsto \frac{a}{\color{blue}{\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k\right) \cdot k} + 1} \]
                                                                                                                      18. lower-fma.f64N/A

                                                                                                                        \[\leadsto \frac{a}{\color{blue}{\mathsf{fma}\left(\left(1 + 10 \cdot \frac{1}{k}\right) \cdot k, k, 1\right)}} \]
                                                                                                                    5. Applied rewrites41.9%

                                                                                                                      \[\leadsto \color{blue}{\frac{a}{\mathsf{fma}\left(10 + k, k, 1\right)}} \]
                                                                                                                    6. Taylor expanded in k around 0

                                                                                                                      \[\leadsto a + \color{blue}{-10 \cdot \left(a \cdot k\right)} \]
                                                                                                                    7. Step-by-step derivation
                                                                                                                      1. Applied rewrites20.1%

                                                                                                                        \[\leadsto \mathsf{fma}\left(a \cdot k, \color{blue}{-10}, a\right) \]
                                                                                                                      2. Taylor expanded in k around inf

                                                                                                                        \[\leadsto -10 \cdot \left(a \cdot \color{blue}{k}\right) \]
                                                                                                                      3. Step-by-step derivation
                                                                                                                        1. Applied rewrites7.2%

                                                                                                                          \[\leadsto \left(a \cdot k\right) \cdot -10 \]
                                                                                                                        2. Step-by-step derivation
                                                                                                                          1. Applied rewrites7.2%

                                                                                                                            \[\leadsto \left(-10 \cdot a\right) \cdot k \]
                                                                                                                          2. Add Preprocessing

                                                                                                                          Reproduce

                                                                                                                          ?
                                                                                                                          herbie shell --seed 2024303 
                                                                                                                          (FPCore (a k m)
                                                                                                                            :name "Falkner and Boettcher, Appendix A"
                                                                                                                            :precision binary64
                                                                                                                            (/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))