Rosa's Benchmark

Percentage Accurate: 99.8% → 99.8%
Time: 8.7s
Alternatives: 7
Speedup: 1.2×

Specification

?
\[\begin{array}{l} \\ 0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right) \end{array} \]
(FPCore (x)
 :precision binary64
 (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))
double code(double x) {
	return (0.954929658551372 * x) - (0.12900613773279798 * ((x * x) * x));
}
real(8) function code(x)
    real(8), intent (in) :: x
    code = (0.954929658551372d0 * x) - (0.12900613773279798d0 * ((x * x) * x))
end function
public static double code(double x) {
	return (0.954929658551372 * x) - (0.12900613773279798 * ((x * x) * x));
}
def code(x):
	return (0.954929658551372 * x) - (0.12900613773279798 * ((x * x) * x))
function code(x)
	return Float64(Float64(0.954929658551372 * x) - Float64(0.12900613773279798 * Float64(Float64(x * x) * x)))
end
function tmp = code(x)
	tmp = (0.954929658551372 * x) - (0.12900613773279798 * ((x * x) * x));
end
code[x_] := N[(N[(0.954929658551372 * x), $MachinePrecision] - N[(0.12900613773279798 * N[(N[(x * x), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)
\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 7 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: 99.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ 0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right) \end{array} \]
(FPCore (x)
 :precision binary64
 (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))
double code(double x) {
	return (0.954929658551372 * x) - (0.12900613773279798 * ((x * x) * x));
}
real(8) function code(x)
    real(8), intent (in) :: x
    code = (0.954929658551372d0 * x) - (0.12900613773279798d0 * ((x * x) * x))
end function
public static double code(double x) {
	return (0.954929658551372 * x) - (0.12900613773279798 * ((x * x) * x));
}
def code(x):
	return (0.954929658551372 * x) - (0.12900613773279798 * ((x * x) * x))
function code(x)
	return Float64(Float64(0.954929658551372 * x) - Float64(0.12900613773279798 * Float64(Float64(x * x) * x)))
end
function tmp = code(x)
	tmp = (0.954929658551372 * x) - (0.12900613773279798 * ((x * x) * x));
end
code[x_] := N[(N[(0.954929658551372 * x), $MachinePrecision] - N[(0.12900613773279798 * N[(N[(x * x), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)
\end{array}

Alternative 1: 99.8% accurate, 1.2× speedup?

\[\begin{array}{l} \\ x \cdot \left(0.954929658551372 + -0.12900613773279798 \cdot \left(x \cdot x\right)\right) \end{array} \]
(FPCore (x)
 :precision binary64
 (* x (+ 0.954929658551372 (* -0.12900613773279798 (* x x)))))
double code(double x) {
	return x * (0.954929658551372 + (-0.12900613773279798 * (x * x)));
}
real(8) function code(x)
    real(8), intent (in) :: x
    code = x * (0.954929658551372d0 + ((-0.12900613773279798d0) * (x * x)))
end function
public static double code(double x) {
	return x * (0.954929658551372 + (-0.12900613773279798 * (x * x)));
}
def code(x):
	return x * (0.954929658551372 + (-0.12900613773279798 * (x * x)))
function code(x)
	return Float64(x * Float64(0.954929658551372 + Float64(-0.12900613773279798 * Float64(x * x))))
end
function tmp = code(x)
	tmp = x * (0.954929658551372 + (-0.12900613773279798 * (x * x)));
end
code[x_] := N[(x * N[(0.954929658551372 + N[(-0.12900613773279798 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x \cdot \left(0.954929658551372 + -0.12900613773279798 \cdot \left(x \cdot x\right)\right)
\end{array}
Derivation
  1. Initial program 99.8%

    \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right) \]
  2. Step-by-step derivation
    1. associate-*r*N/A

      \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right) \cdot \color{blue}{x} \]
    2. distribute-rgt-out--N/A

      \[\leadsto x \cdot \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)} \]
    3. *-lowering-*.f64N/A

      \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)}\right) \]
    4. sub-negN/A

      \[\leadsto \mathsf{*.f64}\left(x, \left(\frac{238732414637843}{250000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
    5. +-lowering-+.f64N/A

      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
    6. associate-*r*N/A

      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(\left(\frac{6450306886639899}{50000000000000000} \cdot x\right) \cdot x\right)\right)\right)\right) \]
    7. *-commutativeN/A

      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(x \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)\right)\right)\right) \]
    8. distribute-rgt-neg-inN/A

      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
    9. *-lowering-*.f64N/A

      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
    10. distribute-lft-neg-inN/A

      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x}\right)\right)\right)\right) \]
    11. *-commutativeN/A

      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
    12. *-lowering-*.f64N/A

      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
    13. metadata-eval99.8%

      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-6450306886639899}{50000000000000000}\right)\right)\right)\right) \]
  3. Simplified99.8%

    \[\leadsto \color{blue}{x \cdot \left(0.954929658551372 + x \cdot \left(x \cdot -0.12900613773279798\right)\right)} \]
  4. Add Preprocessing
  5. Step-by-step derivation
    1. *-commutativeN/A

      \[\leadsto \left(\frac{238732414637843}{250000000000000} + x \cdot \left(x \cdot \frac{-6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x} \]
    2. *-lowering-*.f64N/A

      \[\leadsto \mathsf{*.f64}\left(\left(\frac{238732414637843}{250000000000000} + x \cdot \left(x \cdot \frac{-6450306886639899}{50000000000000000}\right)\right), \color{blue}{x}\right) \]
    3. +-lowering-+.f64N/A

      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \left(x \cdot \frac{-6450306886639899}{50000000000000000}\right)\right)\right), x\right) \]
    4. associate-*r*N/A

      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\left(x \cdot x\right) \cdot \frac{-6450306886639899}{50000000000000000}\right)\right), x\right) \]
    5. *-commutativeN/A

      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\frac{-6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right), x\right) \]
    6. *-lowering-*.f64N/A

      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \left(x \cdot x\right)\right)\right), x\right) \]
    7. *-lowering-*.f6499.8%

      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \mathsf{*.f64}\left(x, x\right)\right)\right), x\right) \]
  6. Applied egg-rr99.8%

    \[\leadsto \color{blue}{\left(0.954929658551372 + -0.12900613773279798 \cdot \left(x \cdot x\right)\right) \cdot x} \]
  7. Final simplification99.8%

    \[\leadsto x \cdot \left(0.954929658551372 + -0.12900613773279798 \cdot \left(x \cdot x\right)\right) \]
  8. Add Preprocessing

Alternative 2: 74.8% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 2.7:\\ \;\;\;\;0.954929658551372 \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot x\right) \cdot \left(-0.12900613773279798 \cdot x\right)\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (<= x 2.7)
   (* 0.954929658551372 x)
   (* (* x x) (* -0.12900613773279798 x))))
double code(double x) {
	double tmp;
	if (x <= 2.7) {
		tmp = 0.954929658551372 * x;
	} else {
		tmp = (x * x) * (-0.12900613773279798 * x);
	}
	return tmp;
}
real(8) function code(x)
    real(8), intent (in) :: x
    real(8) :: tmp
    if (x <= 2.7d0) then
        tmp = 0.954929658551372d0 * x
    else
        tmp = (x * x) * ((-0.12900613773279798d0) * x)
    end if
    code = tmp
end function
public static double code(double x) {
	double tmp;
	if (x <= 2.7) {
		tmp = 0.954929658551372 * x;
	} else {
		tmp = (x * x) * (-0.12900613773279798 * x);
	}
	return tmp;
}
def code(x):
	tmp = 0
	if x <= 2.7:
		tmp = 0.954929658551372 * x
	else:
		tmp = (x * x) * (-0.12900613773279798 * x)
	return tmp
function code(x)
	tmp = 0.0
	if (x <= 2.7)
		tmp = Float64(0.954929658551372 * x);
	else
		tmp = Float64(Float64(x * x) * Float64(-0.12900613773279798 * x));
	end
	return tmp
end
function tmp_2 = code(x)
	tmp = 0.0;
	if (x <= 2.7)
		tmp = 0.954929658551372 * x;
	else
		tmp = (x * x) * (-0.12900613773279798 * x);
	end
	tmp_2 = tmp;
end
code[x_] := If[LessEqual[x, 2.7], N[(0.954929658551372 * x), $MachinePrecision], N[(N[(x * x), $MachinePrecision] * N[(-0.12900613773279798 * x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.7:\\
\;\;\;\;0.954929658551372 \cdot x\\

\mathbf{else}:\\
\;\;\;\;\left(x \cdot x\right) \cdot \left(-0.12900613773279798 \cdot x\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < 2.7000000000000002

    1. Initial program 99.8%

      \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right) \]
    2. Step-by-step derivation
      1. associate-*r*N/A

        \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right) \cdot \color{blue}{x} \]
      2. distribute-rgt-out--N/A

        \[\leadsto x \cdot \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)} \]
      3. *-lowering-*.f64N/A

        \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)}\right) \]
      4. sub-negN/A

        \[\leadsto \mathsf{*.f64}\left(x, \left(\frac{238732414637843}{250000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
      5. +-lowering-+.f64N/A

        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
      6. associate-*r*N/A

        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(\left(\frac{6450306886639899}{50000000000000000} \cdot x\right) \cdot x\right)\right)\right)\right) \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(x \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)\right)\right)\right) \]
      8. distribute-rgt-neg-inN/A

        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
      10. distribute-lft-neg-inN/A

        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x}\right)\right)\right)\right) \]
      11. *-commutativeN/A

        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
      12. *-lowering-*.f64N/A

        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
      13. metadata-eval99.8%

        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-6450306886639899}{50000000000000000}\right)\right)\right)\right) \]
    3. Simplified99.8%

      \[\leadsto \color{blue}{x \cdot \left(0.954929658551372 + x \cdot \left(x \cdot -0.12900613773279798\right)\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0

      \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\frac{238732414637843}{250000000000000}}\right) \]
    6. Step-by-step derivation
      1. Simplified64.8%

        \[\leadsto x \cdot \color{blue}{0.954929658551372} \]

      if 2.7000000000000002 < x

      1. Initial program 99.6%

        \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right) \]
      2. Step-by-step derivation
        1. associate-*r*N/A

          \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right) \cdot \color{blue}{x} \]
        2. distribute-rgt-out--N/A

          \[\leadsto x \cdot \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)} \]
        3. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)}\right) \]
        4. sub-negN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(\frac{238732414637843}{250000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
        5. +-lowering-+.f64N/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
        6. associate-*r*N/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(\left(\frac{6450306886639899}{50000000000000000} \cdot x\right) \cdot x\right)\right)\right)\right) \]
        7. *-commutativeN/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(x \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)\right)\right)\right) \]
        8. distribute-rgt-neg-inN/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
        9. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
        10. distribute-lft-neg-inN/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x}\right)\right)\right)\right) \]
        11. *-commutativeN/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
        12. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
        13. metadata-eval99.8%

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-6450306886639899}{50000000000000000}\right)\right)\right)\right) \]
      3. Simplified99.8%

        \[\leadsto \color{blue}{x \cdot \left(0.954929658551372 + x \cdot \left(x \cdot -0.12900613773279798\right)\right)} \]
      4. Add Preprocessing
      5. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \left(\frac{238732414637843}{250000000000000} + x \cdot \left(x \cdot \frac{-6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x} \]
        2. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\left(\frac{238732414637843}{250000000000000} + x \cdot \left(x \cdot \frac{-6450306886639899}{50000000000000000}\right)\right), \color{blue}{x}\right) \]
        3. +-lowering-+.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \left(x \cdot \frac{-6450306886639899}{50000000000000000}\right)\right)\right), x\right) \]
        4. associate-*r*N/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\left(x \cdot x\right) \cdot \frac{-6450306886639899}{50000000000000000}\right)\right), x\right) \]
        5. *-commutativeN/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\frac{-6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right), x\right) \]
        6. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \left(x \cdot x\right)\right)\right), x\right) \]
        7. *-lowering-*.f6499.8%

          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \mathsf{*.f64}\left(x, x\right)\right)\right), x\right) \]
      6. Applied egg-rr99.8%

        \[\leadsto \color{blue}{\left(0.954929658551372 + -0.12900613773279798 \cdot \left(x \cdot x\right)\right) \cdot x} \]
      7. Taylor expanded in x around inf

        \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(\frac{-6450306886639899}{50000000000000000} \cdot {x}^{2}\right)}, x\right) \]
      8. Step-by-step derivation
        1. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \left({x}^{2}\right)\right), x\right) \]
        2. unpow2N/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \left(x \cdot x\right)\right), x\right) \]
        3. *-lowering-*.f6497.8%

          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \mathsf{*.f64}\left(x, x\right)\right), x\right) \]
      9. Simplified97.8%

        \[\leadsto \color{blue}{\left(-0.12900613773279798 \cdot \left(x \cdot x\right)\right)} \cdot x \]
      10. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \left(\left(x \cdot x\right) \cdot \frac{-6450306886639899}{50000000000000000}\right) \cdot x \]
        2. associate-*l*N/A

          \[\leadsto \left(x \cdot x\right) \cdot \color{blue}{\left(\frac{-6450306886639899}{50000000000000000} \cdot x\right)} \]
        3. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\left(x \cdot x\right), \color{blue}{\left(\frac{-6450306886639899}{50000000000000000} \cdot x\right)}\right) \]
        4. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left(\color{blue}{\frac{-6450306886639899}{50000000000000000}} \cdot x\right)\right) \]
        5. *-lowering-*.f6497.8%

          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \color{blue}{x}\right)\right) \]
      11. Applied egg-rr97.8%

        \[\leadsto \color{blue}{\left(x \cdot x\right) \cdot \left(-0.12900613773279798 \cdot x\right)} \]
    7. Recombined 2 regimes into one program.
    8. Final simplification74.0%

      \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 2.7:\\ \;\;\;\;0.954929658551372 \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot x\right) \cdot \left(-0.12900613773279798 \cdot x\right)\\ \end{array} \]
    9. Add Preprocessing

    Alternative 3: 74.8% accurate, 0.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 2.7:\\ \;\;\;\;0.954929658551372 \cdot x\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(-0.12900613773279798 \cdot \left(x \cdot x\right)\right)\\ \end{array} \end{array} \]
    (FPCore (x)
     :precision binary64
     (if (<= x 2.7)
       (* 0.954929658551372 x)
       (* x (* -0.12900613773279798 (* x x)))))
    double code(double x) {
    	double tmp;
    	if (x <= 2.7) {
    		tmp = 0.954929658551372 * x;
    	} else {
    		tmp = x * (-0.12900613773279798 * (x * x));
    	}
    	return tmp;
    }
    
    real(8) function code(x)
        real(8), intent (in) :: x
        real(8) :: tmp
        if (x <= 2.7d0) then
            tmp = 0.954929658551372d0 * x
        else
            tmp = x * ((-0.12900613773279798d0) * (x * x))
        end if
        code = tmp
    end function
    
    public static double code(double x) {
    	double tmp;
    	if (x <= 2.7) {
    		tmp = 0.954929658551372 * x;
    	} else {
    		tmp = x * (-0.12900613773279798 * (x * x));
    	}
    	return tmp;
    }
    
    def code(x):
    	tmp = 0
    	if x <= 2.7:
    		tmp = 0.954929658551372 * x
    	else:
    		tmp = x * (-0.12900613773279798 * (x * x))
    	return tmp
    
    function code(x)
    	tmp = 0.0
    	if (x <= 2.7)
    		tmp = Float64(0.954929658551372 * x);
    	else
    		tmp = Float64(x * Float64(-0.12900613773279798 * Float64(x * x)));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x)
    	tmp = 0.0;
    	if (x <= 2.7)
    		tmp = 0.954929658551372 * x;
    	else
    		tmp = x * (-0.12900613773279798 * (x * x));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_] := If[LessEqual[x, 2.7], N[(0.954929658551372 * x), $MachinePrecision], N[(x * N[(-0.12900613773279798 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;x \leq 2.7:\\
    \;\;\;\;0.954929658551372 \cdot x\\
    
    \mathbf{else}:\\
    \;\;\;\;x \cdot \left(-0.12900613773279798 \cdot \left(x \cdot x\right)\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if x < 2.7000000000000002

      1. Initial program 99.8%

        \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right) \]
      2. Step-by-step derivation
        1. associate-*r*N/A

          \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right) \cdot \color{blue}{x} \]
        2. distribute-rgt-out--N/A

          \[\leadsto x \cdot \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)} \]
        3. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)}\right) \]
        4. sub-negN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(\frac{238732414637843}{250000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
        5. +-lowering-+.f64N/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
        6. associate-*r*N/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(\left(\frac{6450306886639899}{50000000000000000} \cdot x\right) \cdot x\right)\right)\right)\right) \]
        7. *-commutativeN/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(x \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)\right)\right)\right) \]
        8. distribute-rgt-neg-inN/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
        9. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
        10. distribute-lft-neg-inN/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x}\right)\right)\right)\right) \]
        11. *-commutativeN/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
        12. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
        13. metadata-eval99.8%

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-6450306886639899}{50000000000000000}\right)\right)\right)\right) \]
      3. Simplified99.8%

        \[\leadsto \color{blue}{x \cdot \left(0.954929658551372 + x \cdot \left(x \cdot -0.12900613773279798\right)\right)} \]
      4. Add Preprocessing
      5. Taylor expanded in x around 0

        \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\frac{238732414637843}{250000000000000}}\right) \]
      6. Step-by-step derivation
        1. Simplified64.8%

          \[\leadsto x \cdot \color{blue}{0.954929658551372} \]

        if 2.7000000000000002 < x

        1. Initial program 99.6%

          \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right) \]
        2. Step-by-step derivation
          1. associate-*r*N/A

            \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right) \cdot \color{blue}{x} \]
          2. distribute-rgt-out--N/A

            \[\leadsto x \cdot \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)} \]
          3. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)}\right) \]
          4. sub-negN/A

            \[\leadsto \mathsf{*.f64}\left(x, \left(\frac{238732414637843}{250000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
          5. +-lowering-+.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
          6. associate-*r*N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(\left(\frac{6450306886639899}{50000000000000000} \cdot x\right) \cdot x\right)\right)\right)\right) \]
          7. *-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(x \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)\right)\right)\right) \]
          8. distribute-rgt-neg-inN/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
          9. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
          10. distribute-lft-neg-inN/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x}\right)\right)\right)\right) \]
          11. *-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
          12. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
          13. metadata-eval99.8%

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-6450306886639899}{50000000000000000}\right)\right)\right)\right) \]
        3. Simplified99.8%

          \[\leadsto \color{blue}{x \cdot \left(0.954929658551372 + x \cdot \left(x \cdot -0.12900613773279798\right)\right)} \]
        4. Add Preprocessing
        5. Taylor expanded in x around inf

          \[\leadsto \color{blue}{\frac{-6450306886639899}{50000000000000000} \cdot {x}^{3}} \]
        6. Step-by-step derivation
          1. unpow3N/A

            \[\leadsto \frac{-6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot \color{blue}{x}\right) \]
          2. unpow2N/A

            \[\leadsto \frac{-6450306886639899}{50000000000000000} \cdot \left({x}^{2} \cdot x\right) \]
          3. associate-*r*N/A

            \[\leadsto \left(\frac{-6450306886639899}{50000000000000000} \cdot {x}^{2}\right) \cdot \color{blue}{x} \]
          4. *-commutativeN/A

            \[\leadsto x \cdot \color{blue}{\left(\frac{-6450306886639899}{50000000000000000} \cdot {x}^{2}\right)} \]
          5. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{-6450306886639899}{50000000000000000} \cdot {x}^{2}\right)}\right) \]
          6. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \color{blue}{\left({x}^{2}\right)}\right)\right) \]
          7. unpow2N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \left(x \cdot \color{blue}{x}\right)\right)\right) \]
          8. *-lowering-*.f6497.8%

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \mathsf{*.f64}\left(x, \color{blue}{x}\right)\right)\right) \]
        7. Simplified97.8%

          \[\leadsto \color{blue}{x \cdot \left(-0.12900613773279798 \cdot \left(x \cdot x\right)\right)} \]
      7. Recombined 2 regimes into one program.
      8. Final simplification74.0%

        \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 2.7:\\ \;\;\;\;0.954929658551372 \cdot x\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(-0.12900613773279798 \cdot \left(x \cdot x\right)\right)\\ \end{array} \]
      9. Add Preprocessing

      Alternative 4: 74.8% accurate, 0.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 2.7:\\ \;\;\;\;0.954929658551372 \cdot x\\ \mathbf{else}:\\ \;\;\;\;-0.12900613773279798 \cdot \left(x \cdot \left(x \cdot x\right)\right)\\ \end{array} \end{array} \]
      (FPCore (x)
       :precision binary64
       (if (<= x 2.7)
         (* 0.954929658551372 x)
         (* -0.12900613773279798 (* x (* x x)))))
      double code(double x) {
      	double tmp;
      	if (x <= 2.7) {
      		tmp = 0.954929658551372 * x;
      	} else {
      		tmp = -0.12900613773279798 * (x * (x * x));
      	}
      	return tmp;
      }
      
      real(8) function code(x)
          real(8), intent (in) :: x
          real(8) :: tmp
          if (x <= 2.7d0) then
              tmp = 0.954929658551372d0 * x
          else
              tmp = (-0.12900613773279798d0) * (x * (x * x))
          end if
          code = tmp
      end function
      
      public static double code(double x) {
      	double tmp;
      	if (x <= 2.7) {
      		tmp = 0.954929658551372 * x;
      	} else {
      		tmp = -0.12900613773279798 * (x * (x * x));
      	}
      	return tmp;
      }
      
      def code(x):
      	tmp = 0
      	if x <= 2.7:
      		tmp = 0.954929658551372 * x
      	else:
      		tmp = -0.12900613773279798 * (x * (x * x))
      	return tmp
      
      function code(x)
      	tmp = 0.0
      	if (x <= 2.7)
      		tmp = Float64(0.954929658551372 * x);
      	else
      		tmp = Float64(-0.12900613773279798 * Float64(x * Float64(x * x)));
      	end
      	return tmp
      end
      
      function tmp_2 = code(x)
      	tmp = 0.0;
      	if (x <= 2.7)
      		tmp = 0.954929658551372 * x;
      	else
      		tmp = -0.12900613773279798 * (x * (x * x));
      	end
      	tmp_2 = tmp;
      end
      
      code[x_] := If[LessEqual[x, 2.7], N[(0.954929658551372 * x), $MachinePrecision], N[(-0.12900613773279798 * N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;x \leq 2.7:\\
      \;\;\;\;0.954929658551372 \cdot x\\
      
      \mathbf{else}:\\
      \;\;\;\;-0.12900613773279798 \cdot \left(x \cdot \left(x \cdot x\right)\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if x < 2.7000000000000002

        1. Initial program 99.8%

          \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right) \]
        2. Step-by-step derivation
          1. associate-*r*N/A

            \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right) \cdot \color{blue}{x} \]
          2. distribute-rgt-out--N/A

            \[\leadsto x \cdot \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)} \]
          3. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)}\right) \]
          4. sub-negN/A

            \[\leadsto \mathsf{*.f64}\left(x, \left(\frac{238732414637843}{250000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
          5. +-lowering-+.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
          6. associate-*r*N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(\left(\frac{6450306886639899}{50000000000000000} \cdot x\right) \cdot x\right)\right)\right)\right) \]
          7. *-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(x \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)\right)\right)\right) \]
          8. distribute-rgt-neg-inN/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
          9. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
          10. distribute-lft-neg-inN/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x}\right)\right)\right)\right) \]
          11. *-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
          12. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
          13. metadata-eval99.8%

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-6450306886639899}{50000000000000000}\right)\right)\right)\right) \]
        3. Simplified99.8%

          \[\leadsto \color{blue}{x \cdot \left(0.954929658551372 + x \cdot \left(x \cdot -0.12900613773279798\right)\right)} \]
        4. Add Preprocessing
        5. Taylor expanded in x around 0

          \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\frac{238732414637843}{250000000000000}}\right) \]
        6. Step-by-step derivation
          1. Simplified64.8%

            \[\leadsto x \cdot \color{blue}{0.954929658551372} \]

          if 2.7000000000000002 < x

          1. Initial program 99.6%

            \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right) \]
          2. Step-by-step derivation
            1. associate-*r*N/A

              \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right) \cdot \color{blue}{x} \]
            2. distribute-rgt-out--N/A

              \[\leadsto x \cdot \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)} \]
            3. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)}\right) \]
            4. sub-negN/A

              \[\leadsto \mathsf{*.f64}\left(x, \left(\frac{238732414637843}{250000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
            5. +-lowering-+.f64N/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
            6. associate-*r*N/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(\left(\frac{6450306886639899}{50000000000000000} \cdot x\right) \cdot x\right)\right)\right)\right) \]
            7. *-commutativeN/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(x \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)\right)\right)\right) \]
            8. distribute-rgt-neg-inN/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
            9. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
            10. distribute-lft-neg-inN/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x}\right)\right)\right)\right) \]
            11. *-commutativeN/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
            12. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
            13. metadata-eval99.8%

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-6450306886639899}{50000000000000000}\right)\right)\right)\right) \]
          3. Simplified99.8%

            \[\leadsto \color{blue}{x \cdot \left(0.954929658551372 + x \cdot \left(x \cdot -0.12900613773279798\right)\right)} \]
          4. Add Preprocessing
          5. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \left(\frac{238732414637843}{250000000000000} + x \cdot \left(x \cdot \frac{-6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x} \]
            2. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\left(\frac{238732414637843}{250000000000000} + x \cdot \left(x \cdot \frac{-6450306886639899}{50000000000000000}\right)\right), \color{blue}{x}\right) \]
            3. +-lowering-+.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \left(x \cdot \frac{-6450306886639899}{50000000000000000}\right)\right)\right), x\right) \]
            4. associate-*r*N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\left(x \cdot x\right) \cdot \frac{-6450306886639899}{50000000000000000}\right)\right), x\right) \]
            5. *-commutativeN/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\frac{-6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right), x\right) \]
            6. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \left(x \cdot x\right)\right)\right), x\right) \]
            7. *-lowering-*.f6499.8%

              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \mathsf{*.f64}\left(x, x\right)\right)\right), x\right) \]
          6. Applied egg-rr99.8%

            \[\leadsto \color{blue}{\left(0.954929658551372 + -0.12900613773279798 \cdot \left(x \cdot x\right)\right) \cdot x} \]
          7. Taylor expanded in x around inf

            \[\leadsto \color{blue}{\frac{-6450306886639899}{50000000000000000} \cdot {x}^{3}} \]
          8. Step-by-step derivation
            1. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \color{blue}{\left({x}^{3}\right)}\right) \]
            2. cube-multN/A

              \[\leadsto \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \left(x \cdot \color{blue}{\left(x \cdot x\right)}\right)\right) \]
            3. unpow2N/A

              \[\leadsto \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \left(x \cdot {x}^{\color{blue}{2}}\right)\right) \]
            4. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \mathsf{*.f64}\left(x, \color{blue}{\left({x}^{2}\right)}\right)\right) \]
            5. unpow2N/A

              \[\leadsto \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{x}\right)\right)\right) \]
            6. *-lowering-*.f6497.7%

              \[\leadsto \mathsf{*.f64}\left(\frac{-6450306886639899}{50000000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{x}\right)\right)\right) \]
          9. Simplified97.7%

            \[\leadsto \color{blue}{-0.12900613773279798 \cdot \left(x \cdot \left(x \cdot x\right)\right)} \]
        7. Recombined 2 regimes into one program.
        8. Final simplification74.0%

          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 2.7:\\ \;\;\;\;0.954929658551372 \cdot x\\ \mathbf{else}:\\ \;\;\;\;-0.12900613773279798 \cdot \left(x \cdot \left(x \cdot x\right)\right)\\ \end{array} \]
        9. Add Preprocessing

        Alternative 5: 99.8% accurate, 1.2× speedup?

        \[\begin{array}{l} \\ x \cdot \left(0.954929658551372 + x \cdot \left(-0.12900613773279798 \cdot x\right)\right) \end{array} \]
        (FPCore (x)
         :precision binary64
         (* x (+ 0.954929658551372 (* x (* -0.12900613773279798 x)))))
        double code(double x) {
        	return x * (0.954929658551372 + (x * (-0.12900613773279798 * x)));
        }
        
        real(8) function code(x)
            real(8), intent (in) :: x
            code = x * (0.954929658551372d0 + (x * ((-0.12900613773279798d0) * x)))
        end function
        
        public static double code(double x) {
        	return x * (0.954929658551372 + (x * (-0.12900613773279798 * x)));
        }
        
        def code(x):
        	return x * (0.954929658551372 + (x * (-0.12900613773279798 * x)))
        
        function code(x)
        	return Float64(x * Float64(0.954929658551372 + Float64(x * Float64(-0.12900613773279798 * x))))
        end
        
        function tmp = code(x)
        	tmp = x * (0.954929658551372 + (x * (-0.12900613773279798 * x)));
        end
        
        code[x_] := N[(x * N[(0.954929658551372 + N[(x * N[(-0.12900613773279798 * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
        
        \begin{array}{l}
        
        \\
        x \cdot \left(0.954929658551372 + x \cdot \left(-0.12900613773279798 \cdot x\right)\right)
        \end{array}
        
        Derivation
        1. Initial program 99.8%

          \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right) \]
        2. Step-by-step derivation
          1. associate-*r*N/A

            \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right) \cdot \color{blue}{x} \]
          2. distribute-rgt-out--N/A

            \[\leadsto x \cdot \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)} \]
          3. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)}\right) \]
          4. sub-negN/A

            \[\leadsto \mathsf{*.f64}\left(x, \left(\frac{238732414637843}{250000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
          5. +-lowering-+.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
          6. associate-*r*N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(\left(\frac{6450306886639899}{50000000000000000} \cdot x\right) \cdot x\right)\right)\right)\right) \]
          7. *-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(x \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)\right)\right)\right) \]
          8. distribute-rgt-neg-inN/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
          9. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
          10. distribute-lft-neg-inN/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x}\right)\right)\right)\right) \]
          11. *-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
          12. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
          13. metadata-eval99.8%

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-6450306886639899}{50000000000000000}\right)\right)\right)\right) \]
        3. Simplified99.8%

          \[\leadsto \color{blue}{x \cdot \left(0.954929658551372 + x \cdot \left(x \cdot -0.12900613773279798\right)\right)} \]
        4. Add Preprocessing
        5. Final simplification99.8%

          \[\leadsto x \cdot \left(0.954929658551372 + x \cdot \left(-0.12900613773279798 \cdot x\right)\right) \]
        6. Add Preprocessing

        Alternative 6: 51.4% accurate, 1.4× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 2.7:\\ \;\;\;\;0.954929658551372 \cdot x\\ \mathbf{else}:\\ \;\;\;\;x \cdot -0.954929658551372\\ \end{array} \end{array} \]
        (FPCore (x)
         :precision binary64
         (if (<= x 2.7) (* 0.954929658551372 x) (* x -0.954929658551372)))
        double code(double x) {
        	double tmp;
        	if (x <= 2.7) {
        		tmp = 0.954929658551372 * x;
        	} else {
        		tmp = x * -0.954929658551372;
        	}
        	return tmp;
        }
        
        real(8) function code(x)
            real(8), intent (in) :: x
            real(8) :: tmp
            if (x <= 2.7d0) then
                tmp = 0.954929658551372d0 * x
            else
                tmp = x * (-0.954929658551372d0)
            end if
            code = tmp
        end function
        
        public static double code(double x) {
        	double tmp;
        	if (x <= 2.7) {
        		tmp = 0.954929658551372 * x;
        	} else {
        		tmp = x * -0.954929658551372;
        	}
        	return tmp;
        }
        
        def code(x):
        	tmp = 0
        	if x <= 2.7:
        		tmp = 0.954929658551372 * x
        	else:
        		tmp = x * -0.954929658551372
        	return tmp
        
        function code(x)
        	tmp = 0.0
        	if (x <= 2.7)
        		tmp = Float64(0.954929658551372 * x);
        	else
        		tmp = Float64(x * -0.954929658551372);
        	end
        	return tmp
        end
        
        function tmp_2 = code(x)
        	tmp = 0.0;
        	if (x <= 2.7)
        		tmp = 0.954929658551372 * x;
        	else
        		tmp = x * -0.954929658551372;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_] := If[LessEqual[x, 2.7], N[(0.954929658551372 * x), $MachinePrecision], N[(x * -0.954929658551372), $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;x \leq 2.7:\\
        \;\;\;\;0.954929658551372 \cdot x\\
        
        \mathbf{else}:\\
        \;\;\;\;x \cdot -0.954929658551372\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if x < 2.7000000000000002

          1. Initial program 99.8%

            \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right) \]
          2. Step-by-step derivation
            1. associate-*r*N/A

              \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right) \cdot \color{blue}{x} \]
            2. distribute-rgt-out--N/A

              \[\leadsto x \cdot \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)} \]
            3. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)}\right) \]
            4. sub-negN/A

              \[\leadsto \mathsf{*.f64}\left(x, \left(\frac{238732414637843}{250000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
            5. +-lowering-+.f64N/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
            6. associate-*r*N/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(\left(\frac{6450306886639899}{50000000000000000} \cdot x\right) \cdot x\right)\right)\right)\right) \]
            7. *-commutativeN/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(x \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)\right)\right)\right) \]
            8. distribute-rgt-neg-inN/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
            9. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
            10. distribute-lft-neg-inN/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x}\right)\right)\right)\right) \]
            11. *-commutativeN/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
            12. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
            13. metadata-eval99.8%

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-6450306886639899}{50000000000000000}\right)\right)\right)\right) \]
          3. Simplified99.8%

            \[\leadsto \color{blue}{x \cdot \left(0.954929658551372 + x \cdot \left(x \cdot -0.12900613773279798\right)\right)} \]
          4. Add Preprocessing
          5. Taylor expanded in x around 0

            \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\frac{238732414637843}{250000000000000}}\right) \]
          6. Step-by-step derivation
            1. Simplified64.8%

              \[\leadsto x \cdot \color{blue}{0.954929658551372} \]

            if 2.7000000000000002 < x

            1. Initial program 99.6%

              \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right) \]
            2. Step-by-step derivation
              1. associate-*r*N/A

                \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right) \cdot \color{blue}{x} \]
              2. distribute-rgt-out--N/A

                \[\leadsto x \cdot \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)} \]
              3. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)}\right) \]
              4. sub-negN/A

                \[\leadsto \mathsf{*.f64}\left(x, \left(\frac{238732414637843}{250000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
              5. +-lowering-+.f64N/A

                \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
              6. associate-*r*N/A

                \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(\left(\frac{6450306886639899}{50000000000000000} \cdot x\right) \cdot x\right)\right)\right)\right) \]
              7. *-commutativeN/A

                \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(x \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)\right)\right)\right) \]
              8. distribute-rgt-neg-inN/A

                \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
              9. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
              10. distribute-lft-neg-inN/A

                \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x}\right)\right)\right)\right) \]
              11. *-commutativeN/A

                \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
              12. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
              13. metadata-eval99.8%

                \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-6450306886639899}{50000000000000000}\right)\right)\right)\right) \]
            3. Simplified99.8%

              \[\leadsto \color{blue}{x \cdot \left(0.954929658551372 + x \cdot \left(x \cdot -0.12900613773279798\right)\right)} \]
            4. Add Preprocessing
            5. Step-by-step derivation
              1. associate-*r*N/A

                \[\leadsto x \cdot \left(\frac{238732414637843}{250000000000000} + \left(x \cdot x\right) \cdot \color{blue}{\frac{-6450306886639899}{50000000000000000}}\right) \]
              2. *-commutativeN/A

                \[\leadsto x \cdot \left(\frac{238732414637843}{250000000000000} + \frac{-6450306886639899}{50000000000000000} \cdot \color{blue}{\left(x \cdot x\right)}\right) \]
              3. metadata-evalN/A

                \[\leadsto x \cdot \left(\frac{238732414637843}{250000000000000} + \left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right) \cdot \left(\color{blue}{x} \cdot x\right)\right) \]
              4. cancel-sign-sub-invN/A

                \[\leadsto x \cdot \left(\frac{238732414637843}{250000000000000} - \color{blue}{\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)}\right) \]
              5. distribute-rgt-out--N/A

                \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \color{blue}{\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right) \cdot x} \]
              6. associate-*r*N/A

                \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \frac{6450306886639899}{50000000000000000} \cdot \color{blue}{\left(\left(x \cdot x\right) \cdot x\right)} \]
              7. flip--N/A

                \[\leadsto \frac{\left(\frac{238732414637843}{250000000000000} \cdot x\right) \cdot \left(\frac{238732414637843}{250000000000000} \cdot x\right) - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right) \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right)}{\color{blue}{\frac{238732414637843}{250000000000000} \cdot x + \frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)}} \]
              8. clear-numN/A

                \[\leadsto \frac{1}{\color{blue}{\frac{\frac{238732414637843}{250000000000000} \cdot x + \frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)}{\left(\frac{238732414637843}{250000000000000} \cdot x\right) \cdot \left(\frac{238732414637843}{250000000000000} \cdot x\right) - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right) \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right)}}} \]
              9. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(1, \color{blue}{\left(\frac{\frac{238732414637843}{250000000000000} \cdot x + \frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)}{\left(\frac{238732414637843}{250000000000000} \cdot x\right) \cdot \left(\frac{238732414637843}{250000000000000} \cdot x\right) - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right) \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right)}\right)}\right) \]
              10. clear-numN/A

                \[\leadsto \mathsf{/.f64}\left(1, \left(\frac{1}{\color{blue}{\frac{\left(\frac{238732414637843}{250000000000000} \cdot x\right) \cdot \left(\frac{238732414637843}{250000000000000} \cdot x\right) - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right) \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right)}{\frac{238732414637843}{250000000000000} \cdot x + \frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)}}}\right)\right) \]
              11. flip--N/A

                \[\leadsto \mathsf{/.f64}\left(1, \left(\frac{1}{\frac{238732414637843}{250000000000000} \cdot x - \color{blue}{\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)}}\right)\right) \]
              12. fmm-defN/A

                \[\leadsto \mathsf{/.f64}\left(1, \left(\frac{1}{\mathsf{fma}\left(\frac{238732414637843}{250000000000000}, \color{blue}{x}, \mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right)\right)}\right)\right) \]
              13. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(1, \left(\frac{1}{\mathsf{fma}\left(\frac{238732414637843}{250000000000000}, x, \mathsf{neg}\left(\left(\left(x \cdot x\right) \cdot x\right) \cdot \frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right) \]
            6. Applied egg-rr99.7%

              \[\leadsto \color{blue}{\frac{1}{\frac{1}{x \cdot \left(0.954929658551372 + -0.12900613773279798 \cdot \left(x \cdot x\right)\right)}}} \]
            7. Taylor expanded in x around 0

              \[\leadsto \mathsf{/.f64}\left(1, \color{blue}{\left(\frac{\frac{250000000000000}{238732414637843}}{x}\right)}\right) \]
            8. Step-by-step derivation
              1. /-lowering-/.f640.5%

                \[\leadsto \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\frac{250000000000000}{238732414637843}, \color{blue}{x}\right)\right) \]
            9. Simplified0.5%

              \[\leadsto \frac{1}{\color{blue}{\frac{1.0471975511965979}{x}}} \]
            10. Step-by-step derivation
              1. clear-numN/A

                \[\leadsto \frac{x}{\color{blue}{\frac{250000000000000}{238732414637843}}} \]
              2. /-lowering-/.f640.5%

                \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\frac{250000000000000}{238732414637843}}\right) \]
            11. Applied egg-rr0.5%

              \[\leadsto \color{blue}{\frac{x}{1.0471975511965979}} \]
            12. Step-by-step derivation
              1. clear-numN/A

                \[\leadsto \frac{1}{\color{blue}{\frac{\frac{250000000000000}{238732414637843}}{x}}} \]
              2. div-invN/A

                \[\leadsto \frac{1}{\frac{250000000000000}{238732414637843} \cdot \color{blue}{\frac{1}{x}}} \]
              3. associate-/r*N/A

                \[\leadsto \frac{\frac{1}{\frac{250000000000000}{238732414637843}}}{\color{blue}{\frac{1}{x}}} \]
              4. frac-2negN/A

                \[\leadsto \frac{\mathsf{neg}\left(\frac{1}{\frac{250000000000000}{238732414637843}}\right)}{\color{blue}{\mathsf{neg}\left(\frac{1}{x}\right)}} \]
              5. metadata-evalN/A

                \[\leadsto \frac{\mathsf{neg}\left(\frac{238732414637843}{250000000000000}\right)}{\mathsf{neg}\left(\frac{\color{blue}{1}}{x}\right)} \]
              6. metadata-evalN/A

                \[\leadsto \frac{\frac{-238732414637843}{250000000000000}}{\mathsf{neg}\left(\color{blue}{\frac{1}{x}}\right)} \]
              7. metadata-evalN/A

                \[\leadsto \frac{\frac{1}{\frac{-250000000000000}{238732414637843}}}{\mathsf{neg}\left(\color{blue}{\frac{1}{x}}\right)} \]
              8. metadata-evalN/A

                \[\leadsto \frac{\frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)}}{\mathsf{neg}\left(\frac{1}{\color{blue}{x}}\right)} \]
              9. div-invN/A

                \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot \color{blue}{\frac{1}{\mathsf{neg}\left(\frac{1}{x}\right)}} \]
              10. inv-powN/A

                \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot {\left(\mathsf{neg}\left(\frac{1}{x}\right)\right)}^{\color{blue}{-1}} \]
              11. sqr-powN/A

                \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot \left({\left(\mathsf{neg}\left(\frac{1}{x}\right)\right)}^{\left(\frac{-1}{2}\right)} \cdot \color{blue}{{\left(\mathsf{neg}\left(\frac{1}{x}\right)\right)}^{\left(\frac{-1}{2}\right)}}\right) \]
              12. unpow-prod-downN/A

                \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot {\left(\left(\mathsf{neg}\left(\frac{1}{x}\right)\right) \cdot \left(\mathsf{neg}\left(\frac{1}{x}\right)\right)\right)}^{\color{blue}{\left(\frac{-1}{2}\right)}} \]
              13. sqr-negN/A

                \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot {\left(\frac{1}{x} \cdot \frac{1}{x}\right)}^{\left(\frac{\color{blue}{-1}}{2}\right)} \]
              14. unpow-prod-downN/A

                \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot \left({\left(\frac{1}{x}\right)}^{\left(\frac{-1}{2}\right)} \cdot \color{blue}{{\left(\frac{1}{x}\right)}^{\left(\frac{-1}{2}\right)}}\right) \]
              15. sqr-powN/A

                \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot {\left(\frac{1}{x}\right)}^{\color{blue}{-1}} \]
              16. inv-powN/A

                \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot \frac{1}{\color{blue}{\frac{1}{x}}} \]
              17. remove-double-divN/A

                \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot x \]
              18. *-commutativeN/A

                \[\leadsto x \cdot \color{blue}{\frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)}} \]
              19. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)}\right)}\right) \]
              20. metadata-evalN/A

                \[\leadsto \mathsf{*.f64}\left(x, \left(\frac{1}{\frac{-250000000000000}{238732414637843}}\right)\right) \]
              21. metadata-eval6.4%

                \[\leadsto \mathsf{*.f64}\left(x, \frac{-238732414637843}{250000000000000}\right) \]
            13. Applied egg-rr6.4%

              \[\leadsto \color{blue}{x \cdot -0.954929658551372} \]
          7. Recombined 2 regimes into one program.
          8. Final simplification48.6%

            \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 2.7:\\ \;\;\;\;0.954929658551372 \cdot x\\ \mathbf{else}:\\ \;\;\;\;x \cdot -0.954929658551372\\ \end{array} \]
          9. Add Preprocessing

          Alternative 7: 5.0% accurate, 3.7× speedup?

          \[\begin{array}{l} \\ x \cdot -0.954929658551372 \end{array} \]
          (FPCore (x) :precision binary64 (* x -0.954929658551372))
          double code(double x) {
          	return x * -0.954929658551372;
          }
          
          real(8) function code(x)
              real(8), intent (in) :: x
              code = x * (-0.954929658551372d0)
          end function
          
          public static double code(double x) {
          	return x * -0.954929658551372;
          }
          
          def code(x):
          	return x * -0.954929658551372
          
          function code(x)
          	return Float64(x * -0.954929658551372)
          end
          
          function tmp = code(x)
          	tmp = x * -0.954929658551372;
          end
          
          code[x_] := N[(x * -0.954929658551372), $MachinePrecision]
          
          \begin{array}{l}
          
          \\
          x \cdot -0.954929658551372
          \end{array}
          
          Derivation
          1. Initial program 99.8%

            \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right) \]
          2. Step-by-step derivation
            1. associate-*r*N/A

              \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right) \cdot \color{blue}{x} \]
            2. distribute-rgt-out--N/A

              \[\leadsto x \cdot \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)} \]
            3. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{238732414637843}{250000000000000} - \frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)}\right) \]
            4. sub-negN/A

              \[\leadsto \mathsf{*.f64}\left(x, \left(\frac{238732414637843}{250000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
            5. +-lowering-+.f64N/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right)\right)}\right)\right) \]
            6. associate-*r*N/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(\left(\frac{6450306886639899}{50000000000000000} \cdot x\right) \cdot x\right)\right)\right)\right) \]
            7. *-commutativeN/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(\mathsf{neg}\left(x \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)\right)\right)\right) \]
            8. distribute-rgt-neg-inN/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
            9. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot x\right)\right)}\right)\right)\right) \]
            10. distribute-lft-neg-inN/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right) \cdot \color{blue}{x}\right)\right)\right)\right) \]
            11. *-commutativeN/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
            12. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right)\right)\right) \]
            13. metadata-eval99.8%

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{238732414637843}{250000000000000}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-6450306886639899}{50000000000000000}\right)\right)\right)\right) \]
          3. Simplified99.8%

            \[\leadsto \color{blue}{x \cdot \left(0.954929658551372 + x \cdot \left(x \cdot -0.12900613773279798\right)\right)} \]
          4. Add Preprocessing
          5. Step-by-step derivation
            1. associate-*r*N/A

              \[\leadsto x \cdot \left(\frac{238732414637843}{250000000000000} + \left(x \cdot x\right) \cdot \color{blue}{\frac{-6450306886639899}{50000000000000000}}\right) \]
            2. *-commutativeN/A

              \[\leadsto x \cdot \left(\frac{238732414637843}{250000000000000} + \frac{-6450306886639899}{50000000000000000} \cdot \color{blue}{\left(x \cdot x\right)}\right) \]
            3. metadata-evalN/A

              \[\leadsto x \cdot \left(\frac{238732414637843}{250000000000000} + \left(\mathsf{neg}\left(\frac{6450306886639899}{50000000000000000}\right)\right) \cdot \left(\color{blue}{x} \cdot x\right)\right) \]
            4. cancel-sign-sub-invN/A

              \[\leadsto x \cdot \left(\frac{238732414637843}{250000000000000} - \color{blue}{\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)}\right) \]
            5. distribute-rgt-out--N/A

              \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \color{blue}{\left(\frac{6450306886639899}{50000000000000000} \cdot \left(x \cdot x\right)\right) \cdot x} \]
            6. associate-*r*N/A

              \[\leadsto \frac{238732414637843}{250000000000000} \cdot x - \frac{6450306886639899}{50000000000000000} \cdot \color{blue}{\left(\left(x \cdot x\right) \cdot x\right)} \]
            7. flip--N/A

              \[\leadsto \frac{\left(\frac{238732414637843}{250000000000000} \cdot x\right) \cdot \left(\frac{238732414637843}{250000000000000} \cdot x\right) - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right) \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right)}{\color{blue}{\frac{238732414637843}{250000000000000} \cdot x + \frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)}} \]
            8. clear-numN/A

              \[\leadsto \frac{1}{\color{blue}{\frac{\frac{238732414637843}{250000000000000} \cdot x + \frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)}{\left(\frac{238732414637843}{250000000000000} \cdot x\right) \cdot \left(\frac{238732414637843}{250000000000000} \cdot x\right) - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right) \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right)}}} \]
            9. /-lowering-/.f64N/A

              \[\leadsto \mathsf{/.f64}\left(1, \color{blue}{\left(\frac{\frac{238732414637843}{250000000000000} \cdot x + \frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)}{\left(\frac{238732414637843}{250000000000000} \cdot x\right) \cdot \left(\frac{238732414637843}{250000000000000} \cdot x\right) - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right) \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right)}\right)}\right) \]
            10. clear-numN/A

              \[\leadsto \mathsf{/.f64}\left(1, \left(\frac{1}{\color{blue}{\frac{\left(\frac{238732414637843}{250000000000000} \cdot x\right) \cdot \left(\frac{238732414637843}{250000000000000} \cdot x\right) - \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right) \cdot \left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right)}{\frac{238732414637843}{250000000000000} \cdot x + \frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)}}}\right)\right) \]
            11. flip--N/A

              \[\leadsto \mathsf{/.f64}\left(1, \left(\frac{1}{\frac{238732414637843}{250000000000000} \cdot x - \color{blue}{\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)}}\right)\right) \]
            12. fmm-defN/A

              \[\leadsto \mathsf{/.f64}\left(1, \left(\frac{1}{\mathsf{fma}\left(\frac{238732414637843}{250000000000000}, \color{blue}{x}, \mathsf{neg}\left(\frac{6450306886639899}{50000000000000000} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right)\right)}\right)\right) \]
            13. *-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(1, \left(\frac{1}{\mathsf{fma}\left(\frac{238732414637843}{250000000000000}, x, \mathsf{neg}\left(\left(\left(x \cdot x\right) \cdot x\right) \cdot \frac{6450306886639899}{50000000000000000}\right)\right)}\right)\right) \]
          6. Applied egg-rr99.7%

            \[\leadsto \color{blue}{\frac{1}{\frac{1}{x \cdot \left(0.954929658551372 + -0.12900613773279798 \cdot \left(x \cdot x\right)\right)}}} \]
          7. Taylor expanded in x around 0

            \[\leadsto \mathsf{/.f64}\left(1, \color{blue}{\left(\frac{\frac{250000000000000}{238732414637843}}{x}\right)}\right) \]
          8. Step-by-step derivation
            1. /-lowering-/.f6446.6%

              \[\leadsto \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\frac{250000000000000}{238732414637843}, \color{blue}{x}\right)\right) \]
          9. Simplified46.6%

            \[\leadsto \frac{1}{\color{blue}{\frac{1.0471975511965979}{x}}} \]
          10. Step-by-step derivation
            1. clear-numN/A

              \[\leadsto \frac{x}{\color{blue}{\frac{250000000000000}{238732414637843}}} \]
            2. /-lowering-/.f6446.6%

              \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\frac{250000000000000}{238732414637843}}\right) \]
          11. Applied egg-rr46.6%

            \[\leadsto \color{blue}{\frac{x}{1.0471975511965979}} \]
          12. Step-by-step derivation
            1. clear-numN/A

              \[\leadsto \frac{1}{\color{blue}{\frac{\frac{250000000000000}{238732414637843}}{x}}} \]
            2. div-invN/A

              \[\leadsto \frac{1}{\frac{250000000000000}{238732414637843} \cdot \color{blue}{\frac{1}{x}}} \]
            3. associate-/r*N/A

              \[\leadsto \frac{\frac{1}{\frac{250000000000000}{238732414637843}}}{\color{blue}{\frac{1}{x}}} \]
            4. frac-2negN/A

              \[\leadsto \frac{\mathsf{neg}\left(\frac{1}{\frac{250000000000000}{238732414637843}}\right)}{\color{blue}{\mathsf{neg}\left(\frac{1}{x}\right)}} \]
            5. metadata-evalN/A

              \[\leadsto \frac{\mathsf{neg}\left(\frac{238732414637843}{250000000000000}\right)}{\mathsf{neg}\left(\frac{\color{blue}{1}}{x}\right)} \]
            6. metadata-evalN/A

              \[\leadsto \frac{\frac{-238732414637843}{250000000000000}}{\mathsf{neg}\left(\color{blue}{\frac{1}{x}}\right)} \]
            7. metadata-evalN/A

              \[\leadsto \frac{\frac{1}{\frac{-250000000000000}{238732414637843}}}{\mathsf{neg}\left(\color{blue}{\frac{1}{x}}\right)} \]
            8. metadata-evalN/A

              \[\leadsto \frac{\frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)}}{\mathsf{neg}\left(\frac{1}{\color{blue}{x}}\right)} \]
            9. div-invN/A

              \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot \color{blue}{\frac{1}{\mathsf{neg}\left(\frac{1}{x}\right)}} \]
            10. inv-powN/A

              \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot {\left(\mathsf{neg}\left(\frac{1}{x}\right)\right)}^{\color{blue}{-1}} \]
            11. sqr-powN/A

              \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot \left({\left(\mathsf{neg}\left(\frac{1}{x}\right)\right)}^{\left(\frac{-1}{2}\right)} \cdot \color{blue}{{\left(\mathsf{neg}\left(\frac{1}{x}\right)\right)}^{\left(\frac{-1}{2}\right)}}\right) \]
            12. unpow-prod-downN/A

              \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot {\left(\left(\mathsf{neg}\left(\frac{1}{x}\right)\right) \cdot \left(\mathsf{neg}\left(\frac{1}{x}\right)\right)\right)}^{\color{blue}{\left(\frac{-1}{2}\right)}} \]
            13. sqr-negN/A

              \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot {\left(\frac{1}{x} \cdot \frac{1}{x}\right)}^{\left(\frac{\color{blue}{-1}}{2}\right)} \]
            14. unpow-prod-downN/A

              \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot \left({\left(\frac{1}{x}\right)}^{\left(\frac{-1}{2}\right)} \cdot \color{blue}{{\left(\frac{1}{x}\right)}^{\left(\frac{-1}{2}\right)}}\right) \]
            15. sqr-powN/A

              \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot {\left(\frac{1}{x}\right)}^{\color{blue}{-1}} \]
            16. inv-powN/A

              \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot \frac{1}{\color{blue}{\frac{1}{x}}} \]
            17. remove-double-divN/A

              \[\leadsto \frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)} \cdot x \]
            18. *-commutativeN/A

              \[\leadsto x \cdot \color{blue}{\frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)}} \]
            19. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{1}{\mathsf{neg}\left(\frac{250000000000000}{238732414637843}\right)}\right)}\right) \]
            20. metadata-evalN/A

              \[\leadsto \mathsf{*.f64}\left(x, \left(\frac{1}{\frac{-250000000000000}{238732414637843}}\right)\right) \]
            21. metadata-eval5.4%

              \[\leadsto \mathsf{*.f64}\left(x, \frac{-238732414637843}{250000000000000}\right) \]
          13. Applied egg-rr5.4%

            \[\leadsto \color{blue}{x \cdot -0.954929658551372} \]
          14. Add Preprocessing

          Reproduce

          ?
          herbie shell --seed 2024150 
          (FPCore (x)
            :name "Rosa's Benchmark"
            :precision binary64
            (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))