Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C

Percentage Accurate: 58.0% → 97.4%
Time: 20.2s
Alternatives: 22
Speedup: 2.8×

Specification

?
\[\begin{array}{l} \\ \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (/
  (*
   (- x 2.0)
   (+
    (*
     (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
     x)
    z))
  (+
   (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
   47.066876606)))
double code(double x, double y, double z) {
	return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
	return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z):
	return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z)
	return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606))
end
function tmp = code(x, y, z)
	tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\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 22 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: 58.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (/
  (*
   (- x 2.0)
   (+
    (*
     (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
     x)
    z))
  (+
   (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
   47.066876606)))
double code(double x, double y, double z) {
	return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
	return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z):
	return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z)
	return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606))
end
function tmp = code(x, y, z)
	tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}

Alternative 1: 97.4% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\ t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\ \mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_1 + z\right)}{t\_0} \leq 5 \cdot 10^{+300}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \frac{t\_1}{t\_0}\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot 4.16438922228\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (let* ((t_0
         (+
          47.066876606
          (*
           x
           (+
            313.399215894
            (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
        (t_1
         (*
          x
          (+
           (* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
           y))))
   (if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) 5e+300)
     (* (+ x -2.0) (+ (/ z t_0) (/ t_1 t_0)))
     (* x 4.16438922228))))
double code(double x, double y, double z) {
	double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
	double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
	double tmp;
	if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+300) {
		tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
	} else {
		tmp = x * 4.16438922228;
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: t_0
    real(8) :: t_1
    real(8) :: tmp
    t_0 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
    t_1 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
    if ((((x - 2.0d0) * (t_1 + z)) / t_0) <= 5d+300) then
        tmp = (x + (-2.0d0)) * ((z / t_0) + (t_1 / t_0))
    else
        tmp = x * 4.16438922228d0
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
	double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
	double tmp;
	if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+300) {
		tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
	} else {
		tmp = x * 4.16438922228;
	}
	return tmp;
}
def code(x, y, z):
	t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))
	t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)
	tmp = 0
	if (((x - 2.0) * (t_1 + z)) / t_0) <= 5e+300:
		tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0))
	else:
		tmp = x * 4.16438922228
	return tmp
function code(x, y, z)
	t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))
	t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y))
	tmp = 0.0
	if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= 5e+300)
		tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / t_0)));
	else
		tmp = Float64(x * 4.16438922228);
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
	t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
	tmp = 0.0;
	if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+300)
		tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
	else
		tmp = x * 4.16438922228;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 5e+300], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_1 + z\right)}{t\_0} \leq 5 \cdot 10^{+300}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \frac{t\_1}{t\_0}\right)\\

\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 5.00000000000000026e300

    1. Initial program 97.1%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*98.3%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg98.3%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval98.3%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define98.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define98.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define98.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define98.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define98.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define98.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define98.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified98.3%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in z around 0 98.3%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(\frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(43.3400022514 + x\right)\right)\right)} + \frac{x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + 4.16438922228 \cdot x\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(43.3400022514 + x\right)\right)\right)}\right)} \]

    if 5.00000000000000026e300 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000))

    1. Initial program 0.1%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Simplified3.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. fma-define3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot 4.16438922228 + 78.6994924154}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      2. flip-+3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154}{x \cdot 4.16438922228 - 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      3. frac-2neg3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      4. sub-neg3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\color{blue}{\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      5. pow23.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left(\color{blue}{{\left(x \cdot 4.16438922228\right)}^{2}} + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      6. metadata-eval3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \left(-\color{blue}{6193.6101064416025}\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      7. metadata-eval3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \color{blue}{-6193.6101064416025}\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      8. fma-neg3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\color{blue}{\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      9. metadata-eval3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, \color{blue}{-78.6994924154}\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    5. Applied egg-rr3.8%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    6. Step-by-step derivation
      1. neg-sub03.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{0 - \left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      2. +-commutative3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{0 - \color{blue}{\left(-6193.6101064416025 + {\left(x \cdot 4.16438922228\right)}^{2}\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      3. associate--r+3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{\left(0 - -6193.6101064416025\right) - {\left(x \cdot 4.16438922228\right)}^{2}}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      4. metadata-eval3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{6193.6101064416025} - {\left(x \cdot 4.16438922228\right)}^{2}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      5. unpow23.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      6. swap-sqr3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot x\right) \cdot \left(4.16438922228 \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      7. unpow23.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{{x}^{2}} \cdot \left(4.16438922228 \cdot 4.16438922228\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      8. metadata-eval3.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot \color{blue}{17.342137594641823}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      9. fma-undefine3.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{-\color{blue}{\left(x \cdot 4.16438922228 + -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      10. distribute-neg-in3.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{\left(-x \cdot 4.16438922228\right) + \left(--78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      11. distribute-rgt-neg-in3.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{x \cdot \left(-4.16438922228\right)} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      12. metadata-eval3.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot \color{blue}{-4.16438922228} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      13. metadata-eval3.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + \color{blue}{78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    7. Simplified3.9%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    8. Taylor expanded in x around inf 99.1%

      \[\leadsto \color{blue}{4.16438922228 \cdot x} \]
    9. Step-by-step derivation
      1. *-commutative99.1%

        \[\leadsto \color{blue}{x \cdot 4.16438922228} \]
    10. Simplified99.1%

      \[\leadsto \color{blue}{x \cdot 4.16438922228} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)} \leq 5 \cdot 10^{+300}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)} + \frac{x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot 4.16438922228\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 95.8% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\ \mathbf{if}\;t\_0 \leq 5 \cdot 10^{+300}:\\ \;\;\;\;t\_0\\ \mathbf{else}:\\ \;\;\;\;x \cdot 4.16438922228\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (let* ((t_0
         (/
          (*
           (- x 2.0)
           (+
            (*
             x
             (+
              (*
               x
               (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
              y))
            z))
          (+
           47.066876606
           (*
            x
            (+
             313.399215894
             (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
   (if (<= t_0 5e+300) t_0 (* x 4.16438922228))))
double code(double x, double y, double z) {
	double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
	double tmp;
	if (t_0 <= 5e+300) {
		tmp = t_0;
	} else {
		tmp = x * 4.16438922228;
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: t_0
    real(8) :: tmp
    t_0 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
    if (t_0 <= 5d+300) then
        tmp = t_0
    else
        tmp = x * 4.16438922228d0
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
	double tmp;
	if (t_0 <= 5e+300) {
		tmp = t_0;
	} else {
		tmp = x * 4.16438922228;
	}
	return tmp;
}
def code(x, y, z):
	t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))
	tmp = 0
	if t_0 <= 5e+300:
		tmp = t_0
	else:
		tmp = x * 4.16438922228
	return tmp
function code(x, y, z)
	t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))))
	tmp = 0.0
	if (t_0 <= 5e+300)
		tmp = t_0;
	else
		tmp = Float64(x * 4.16438922228);
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
	tmp = 0.0;
	if (t_0 <= 5e+300)
		tmp = t_0;
	else
		tmp = x * 4.16438922228;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e+300], t$95$0, N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\mathbf{if}\;t\_0 \leq 5 \cdot 10^{+300}:\\
\;\;\;\;t\_0\\

\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 5.00000000000000026e300

    1. Initial program 97.1%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Add Preprocessing

    if 5.00000000000000026e300 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000))

    1. Initial program 0.1%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Simplified3.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. fma-define3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot 4.16438922228 + 78.6994924154}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      2. flip-+3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154}{x \cdot 4.16438922228 - 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      3. frac-2neg3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      4. sub-neg3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\color{blue}{\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      5. pow23.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left(\color{blue}{{\left(x \cdot 4.16438922228\right)}^{2}} + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      6. metadata-eval3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \left(-\color{blue}{6193.6101064416025}\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      7. metadata-eval3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \color{blue}{-6193.6101064416025}\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      8. fma-neg3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\color{blue}{\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      9. metadata-eval3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, \color{blue}{-78.6994924154}\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    5. Applied egg-rr3.8%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    6. Step-by-step derivation
      1. neg-sub03.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{0 - \left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      2. +-commutative3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{0 - \color{blue}{\left(-6193.6101064416025 + {\left(x \cdot 4.16438922228\right)}^{2}\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      3. associate--r+3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{\left(0 - -6193.6101064416025\right) - {\left(x \cdot 4.16438922228\right)}^{2}}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      4. metadata-eval3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{6193.6101064416025} - {\left(x \cdot 4.16438922228\right)}^{2}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      5. unpow23.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      6. swap-sqr3.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot x\right) \cdot \left(4.16438922228 \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      7. unpow23.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{{x}^{2}} \cdot \left(4.16438922228 \cdot 4.16438922228\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      8. metadata-eval3.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot \color{blue}{17.342137594641823}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      9. fma-undefine3.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{-\color{blue}{\left(x \cdot 4.16438922228 + -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      10. distribute-neg-in3.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{\left(-x \cdot 4.16438922228\right) + \left(--78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      11. distribute-rgt-neg-in3.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{x \cdot \left(-4.16438922228\right)} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      12. metadata-eval3.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot \color{blue}{-4.16438922228} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      13. metadata-eval3.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + \color{blue}{78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    7. Simplified3.9%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    8. Taylor expanded in x around inf 99.1%

      \[\leadsto \color{blue}{4.16438922228 \cdot x} \]
    9. Step-by-step derivation
      1. *-commutative99.1%

        \[\leadsto \color{blue}{x \cdot 4.16438922228} \]
    10. Simplified99.1%

      \[\leadsto \color{blue}{x \cdot 4.16438922228} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification97.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)} \leq 5 \cdot 10^{+300}:\\ \;\;\;\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;x \cdot 4.16438922228\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 96.9% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1400000000000 \lor \neg \left(x \leq 48000\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + \left(x \cdot 137.519416416 + x \cdot \left(x \cdot 78.6994924154\right)\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= x -1400000000000.0) (not (<= x 48000.0)))
   (*
    (+ x -2.0)
    (+
     4.16438922228
     (/
      (-
       (/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
       101.7851458539211)
      x)))
   (/
    (*
     (- x 2.0)
     (+ z (* x (+ y (+ (* x 137.519416416) (* x (* x 78.6994924154)))))))
    (+
     47.066876606
     (*
      x
      (+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
double code(double x, double y, double z) {
	double tmp;
	if ((x <= -1400000000000.0) || !(x <= 48000.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = ((x - 2.0) * (z + (x * (y + ((x * 137.519416416) + (x * (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if ((x <= (-1400000000000.0d0)) .or. (.not. (x <= 48000.0d0))) then
        tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
    else
        tmp = ((x - 2.0d0) * (z + (x * (y + ((x * 137.519416416d0) + (x * (x * 78.6994924154d0))))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((x <= -1400000000000.0) || !(x <= 48000.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = ((x - 2.0) * (z + (x * (y + ((x * 137.519416416) + (x * (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (x <= -1400000000000.0) or not (x <= 48000.0):
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))
	else:
		tmp = ((x - 2.0) * (z + (x * (y + ((x * 137.519416416) + (x * (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((x <= -1400000000000.0) || !(x <= 48000.0))
		tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)));
	else
		tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(Float64(x * 137.519416416) + Float64(x * Float64(x * 78.6994924154))))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((x <= -1400000000000.0) || ~((x <= 48000.0)))
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	else
		tmp = ((x - 2.0) * (z + (x * (y + ((x * 137.519416416) + (x * (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[x, -1400000000000.0], N[Not[LessEqual[x, 48000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(N[(x * 137.519416416), $MachinePrecision] + N[(x * N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1400000000000 \lor \neg \left(x \leq 48000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + \left(x \cdot 137.519416416 + x \cdot \left(x \cdot 78.6994924154\right)\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1.4e12 or 48000 < x

    1. Initial program 17.1%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*21.5%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg21.5%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval21.5%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified21.5%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around -inf 97.3%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 + -1 \cdot \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 + \color{blue}{\left(-\frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)}\right) \]
      2. unsub-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
      3. mul-1-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \color{blue}{\left(-\frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}\right)}}{x}\right) \]
      4. unsub-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{\color{blue}{101.7851458539211 - \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}}{x}\right) \]
      5. mul-1-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 + \color{blue}{\left(-\frac{124074.40615218398 + -1 \cdot y}{x}\right)}}{x}}{x}\right) \]
      6. unsub-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{\color{blue}{3451.550173699799 - \frac{124074.40615218398 + -1 \cdot y}{x}}}{x}}{x}\right) \]
      7. mul-1-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 + \color{blue}{\left(-y\right)}}{x}}{x}}{x}\right) \]
      8. unsub-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{\color{blue}{124074.40615218398 - y}}{x}}{x}}{x}\right) \]
    7. Simplified97.3%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{x}\right)} \]

    if -1.4e12 < x < 48000

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cbrt-cube99.7%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)\right) \cdot \left(x \cdot 4.16438922228\right)}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      2. pow1/377.0%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{{\left(\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)\right) \cdot \left(x \cdot 4.16438922228\right)\right)}^{0.3333333333333333}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. pow377.0%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\color{blue}{\left({\left(x \cdot 4.16438922228\right)}^{3}\right)}}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. unpow-prod-down77.0%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\color{blue}{\left({x}^{3} \cdot {4.16438922228}^{3}\right)}}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. metadata-eval77.0%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\left({x}^{3} \cdot \color{blue}{72.2194108904232}\right)}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    4. Applied egg-rr77.0%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{{\left({x}^{3} \cdot 72.2194108904232\right)}^{0.3333333333333333}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    5. Step-by-step derivation
      1. unpow1/399.7%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{{x}^{3} \cdot 72.2194108904232}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    6. Simplified99.7%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{{x}^{3} \cdot 72.2194108904232}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    7. Applied egg-rr99.7%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\color{blue}{\left(x \cdot 137.519416416 + x \cdot \left(x \cdot \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)\right)\right)} + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    8. Taylor expanded in x around 0 99.3%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(x \cdot 137.519416416 + x \cdot \left(x \cdot \color{blue}{78.6994924154}\right)\right) + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1400000000000 \lor \neg \left(x \leq 48000\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + \left(x \cdot 137.519416416 + x \cdot \left(x \cdot 78.6994924154\right)\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 96.9% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -4200000000000 \lor \neg \left(x \leq 48000\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= x -4200000000000.0) (not (<= x 48000.0)))
   (*
    (+ x -2.0)
    (+
     4.16438922228
     (/
      (-
       (/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
       101.7851458539211)
      x)))
   (/
    (* (- x 2.0) (+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
    (+
     47.066876606
     (*
      x
      (+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
double code(double x, double y, double z) {
	double tmp;
	if ((x <= -4200000000000.0) || !(x <= 48000.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if ((x <= (-4200000000000.0d0)) .or. (.not. (x <= 48000.0d0))) then
        tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
    else
        tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((x <= -4200000000000.0) || !(x <= 48000.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (x <= -4200000000000.0) or not (x <= 48000.0):
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))
	else:
		tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((x <= -4200000000000.0) || !(x <= 48000.0))
		tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)));
	else
		tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((x <= -4200000000000.0) || ~((x <= 48000.0)))
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	else
		tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[x, -4200000000000.0], N[Not[LessEqual[x, 48000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -4200000000000 \lor \neg \left(x \leq 48000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -4.2e12 or 48000 < x

    1. Initial program 17.1%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*21.5%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg21.5%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval21.5%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified21.5%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around -inf 97.3%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 + -1 \cdot \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 + \color{blue}{\left(-\frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)}\right) \]
      2. unsub-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
      3. mul-1-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \color{blue}{\left(-\frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}\right)}}{x}\right) \]
      4. unsub-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{\color{blue}{101.7851458539211 - \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}}{x}\right) \]
      5. mul-1-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 + \color{blue}{\left(-\frac{124074.40615218398 + -1 \cdot y}{x}\right)}}{x}}{x}\right) \]
      6. unsub-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{\color{blue}{3451.550173699799 - \frac{124074.40615218398 + -1 \cdot y}{x}}}{x}}{x}\right) \]
      7. mul-1-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 + \color{blue}{\left(-y\right)}}{x}}{x}}{x}\right) \]
      8. unsub-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{\color{blue}{124074.40615218398 - y}}{x}}{x}}{x}\right) \]
    7. Simplified97.3%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{x}\right)} \]

    if -4.2e12 < x < 48000

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0 99.3%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\color{blue}{x \cdot \left(137.519416416 + 78.6994924154 \cdot x\right)} + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    4. Step-by-step derivation
      1. *-commutative96.4%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(x \cdot \left(137.519416416 + \color{blue}{x \cdot 78.6994924154}\right) + y\right) \cdot x + z\right)}{\left(x \cdot 263.505074721 + 313.399215894\right) \cdot x + 47.066876606} \]
    5. Simplified99.3%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\color{blue}{x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)} + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4200000000000 \lor \neg \left(x \leq 48000\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 96.8% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -7200000000000 \lor \neg \left(x \leq 40000\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= x -7200000000000.0) (not (<= x 40000.0)))
   (*
    (+ x -2.0)
    (+
     4.16438922228
     (/
      (-
       (/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
       101.7851458539211)
      x)))
   (/
    (* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
    (+
     47.066876606
     (*
      x
      (+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
double code(double x, double y, double z) {
	double tmp;
	if ((x <= -7200000000000.0) || !(x <= 40000.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if ((x <= (-7200000000000.0d0)) .or. (.not. (x <= 40000.0d0))) then
        tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
    else
        tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((x <= -7200000000000.0) || !(x <= 40000.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (x <= -7200000000000.0) or not (x <= 40000.0):
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))
	else:
		tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((x <= -7200000000000.0) || !(x <= 40000.0))
		tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)));
	else
		tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((x <= -7200000000000.0) || ~((x <= 40000.0)))
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	else
		tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[x, -7200000000000.0], N[Not[LessEqual[x, 40000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -7200000000000 \lor \neg \left(x \leq 40000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -7.2e12 or 4e4 < x

    1. Initial program 17.1%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*21.5%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg21.5%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval21.5%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define21.5%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified21.5%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around -inf 97.3%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 + -1 \cdot \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 + \color{blue}{\left(-\frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)}\right) \]
      2. unsub-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
      3. mul-1-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \color{blue}{\left(-\frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}\right)}}{x}\right) \]
      4. unsub-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{\color{blue}{101.7851458539211 - \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}}{x}\right) \]
      5. mul-1-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 + \color{blue}{\left(-\frac{124074.40615218398 + -1 \cdot y}{x}\right)}}{x}}{x}\right) \]
      6. unsub-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{\color{blue}{3451.550173699799 - \frac{124074.40615218398 + -1 \cdot y}{x}}}{x}}{x}\right) \]
      7. mul-1-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 + \color{blue}{\left(-y\right)}}{x}}{x}}{x}\right) \]
      8. unsub-neg97.3%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{\color{blue}{124074.40615218398 - y}}{x}}{x}}{x}\right) \]
    7. Simplified97.3%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{x}\right)} \]

    if -7.2e12 < x < 4e4

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0 98.5%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\color{blue}{137.519416416 \cdot x} + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    4. Step-by-step derivation
      1. *-commutative95.6%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\color{blue}{x \cdot 137.519416416} + y\right) \cdot x + z\right)}{\left(x \cdot 263.505074721 + 313.399215894\right) \cdot x + 47.066876606} \]
    5. Simplified98.5%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\color{blue}{x \cdot 137.519416416} + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification97.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -7200000000000 \lor \neg \left(x \leq 40000\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 96.1% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -70 \lor \neg \left(x \leq 162\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= x -70.0) (not (<= x 162.0)))
   (*
    (+ x -2.0)
    (+
     4.16438922228
     (/
      (-
       (/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
       101.7851458539211)
      x)))
   (/
    (* (- x 2.0) (+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
    (+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))))
double code(double x, double y, double z) {
	double tmp;
	if ((x <= -70.0) || !(x <= 162.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if ((x <= (-70.0d0)) .or. (.not. (x <= 162.0d0))) then
        tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
    else
        tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((x <= -70.0) || !(x <= 162.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (x <= -70.0) or not (x <= 162.0):
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))
	else:
		tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((x <= -70.0) || !(x <= 162.0))
		tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)));
	else
		tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((x <= -70.0) || ~((x <= 162.0)))
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	else
		tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[x, -70.0], N[Not[LessEqual[x, 162.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -70 \lor \neg \left(x \leq 162\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -70 or 162 < x

    1. Initial program 19.0%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*23.3%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg23.3%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval23.3%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified23.3%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around -inf 95.7%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 + -1 \cdot \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 + \color{blue}{\left(-\frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)}\right) \]
      2. unsub-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
      3. mul-1-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \color{blue}{\left(-\frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}\right)}}{x}\right) \]
      4. unsub-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{\color{blue}{101.7851458539211 - \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}}{x}\right) \]
      5. mul-1-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 + \color{blue}{\left(-\frac{124074.40615218398 + -1 \cdot y}{x}\right)}}{x}}{x}\right) \]
      6. unsub-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{\color{blue}{3451.550173699799 - \frac{124074.40615218398 + -1 \cdot y}{x}}}{x}}{x}\right) \]
      7. mul-1-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 + \color{blue}{\left(-y\right)}}{x}}{x}}{x}\right) \]
      8. unsub-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{\color{blue}{124074.40615218398 - y}}{x}}{x}}{x}\right) \]
    7. Simplified95.7%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{x}\right)} \]

    if -70 < x < 162

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0 98.7%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\color{blue}{263.505074721 \cdot x} + 313.399215894\right) \cdot x + 47.066876606} \]
    4. Step-by-step derivation
      1. *-commutative98.7%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\color{blue}{x \cdot 263.505074721} + 313.399215894\right) \cdot x + 47.066876606} \]
    5. Simplified98.7%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\color{blue}{x \cdot 263.505074721} + 313.399215894\right) \cdot x + 47.066876606} \]
    6. Taylor expanded in x around 0 98.5%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\color{blue}{x \cdot \left(137.519416416 + 78.6994924154 \cdot x\right)} + y\right) \cdot x + z\right)}{\left(x \cdot 263.505074721 + 313.399215894\right) \cdot x + 47.066876606} \]
    7. Step-by-step derivation
      1. *-commutative98.5%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(x \cdot \left(137.519416416 + \color{blue}{x \cdot 78.6994924154}\right) + y\right) \cdot x + z\right)}{\left(x \cdot 263.505074721 + 313.399215894\right) \cdot x + 47.066876606} \]
    8. Simplified98.5%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\color{blue}{x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)} + y\right) \cdot x + z\right)}{\left(x \cdot 263.505074721 + 313.399215894\right) \cdot x + 47.066876606} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification97.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -70 \lor \neg \left(x \leq 162\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 74.9% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\ \mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq -5.2 \cdot 10^{-98}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;x \leq 1.8 \cdot 10^{-108}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{elif}\;x \leq 1.9 \cdot 10^{-75}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;x \leq 520:\\ \;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (let* ((t_0 (* -0.0424927283095952 (* x y))))
   (if (<= x -5.4e-8)
     (* x (- 4.16438922228 (/ 110.1139242984811 x)))
     (if (<= x -5.2e-98)
       t_0
       (if (<= x 1.8e-108)
         (* z -0.0424927283095952)
         (if (<= x 1.9e-75)
           t_0
           (if (<= x 520.0)
             (* (+ x -2.0) (* z 0.0212463641547976))
             (* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))))))
double code(double x, double y, double z) {
	double t_0 = -0.0424927283095952 * (x * y);
	double tmp;
	if (x <= -5.4e-8) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= -5.2e-98) {
		tmp = t_0;
	} else if (x <= 1.8e-108) {
		tmp = z * -0.0424927283095952;
	} else if (x <= 1.9e-75) {
		tmp = t_0;
	} else if (x <= 520.0) {
		tmp = (x + -2.0) * (z * 0.0212463641547976);
	} else {
		tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: t_0
    real(8) :: tmp
    t_0 = (-0.0424927283095952d0) * (x * y)
    if (x <= (-5.4d-8)) then
        tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
    else if (x <= (-5.2d-98)) then
        tmp = t_0
    else if (x <= 1.8d-108) then
        tmp = z * (-0.0424927283095952d0)
    else if (x <= 1.9d-75) then
        tmp = t_0
    else if (x <= 520.0d0) then
        tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
    else
        tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double t_0 = -0.0424927283095952 * (x * y);
	double tmp;
	if (x <= -5.4e-8) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= -5.2e-98) {
		tmp = t_0;
	} else if (x <= 1.8e-108) {
		tmp = z * -0.0424927283095952;
	} else if (x <= 1.9e-75) {
		tmp = t_0;
	} else if (x <= 520.0) {
		tmp = (x + -2.0) * (z * 0.0212463641547976);
	} else {
		tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
	}
	return tmp;
}
def code(x, y, z):
	t_0 = -0.0424927283095952 * (x * y)
	tmp = 0
	if x <= -5.4e-8:
		tmp = x * (4.16438922228 - (110.1139242984811 / x))
	elif x <= -5.2e-98:
		tmp = t_0
	elif x <= 1.8e-108:
		tmp = z * -0.0424927283095952
	elif x <= 1.9e-75:
		tmp = t_0
	elif x <= 520.0:
		tmp = (x + -2.0) * (z * 0.0212463641547976)
	else:
		tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x))
	return tmp
function code(x, y, z)
	t_0 = Float64(-0.0424927283095952 * Float64(x * y))
	tmp = 0.0
	if (x <= -5.4e-8)
		tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x)));
	elseif (x <= -5.2e-98)
		tmp = t_0;
	elseif (x <= 1.8e-108)
		tmp = Float64(z * -0.0424927283095952);
	elseif (x <= 1.9e-75)
		tmp = t_0;
	elseif (x <= 520.0)
		tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976));
	else
		tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x)));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	t_0 = -0.0424927283095952 * (x * y);
	tmp = 0.0;
	if (x <= -5.4e-8)
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	elseif (x <= -5.2e-98)
		tmp = t_0;
	elseif (x <= 1.8e-108)
		tmp = z * -0.0424927283095952;
	elseif (x <= 1.9e-75)
		tmp = t_0;
	elseif (x <= 520.0)
		tmp = (x + -2.0) * (z * 0.0212463641547976);
	else
		tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.4e-8], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.2e-98], t$95$0, If[LessEqual[x, 1.8e-108], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.9e-75], t$95$0, If[LessEqual[x, 520.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\

\mathbf{elif}\;x \leq -5.2 \cdot 10^{-98}:\\
\;\;\;\;t\_0\\

\mathbf{elif}\;x \leq 1.8 \cdot 10^{-108}:\\
\;\;\;\;z \cdot -0.0424927283095952\\

\mathbf{elif}\;x \leq 1.9 \cdot 10^{-75}:\\
\;\;\;\;t\_0\\

\mathbf{elif}\;x \leq 520:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\

\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if x < -5.40000000000000005e-8

    1. Initial program 22.4%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*25.3%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg25.3%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval25.3%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define25.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define25.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define25.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define25.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define25.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define25.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define25.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified25.3%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 86.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - 110.1139242984811 \cdot \frac{1}{x}\right)} \]
    6. Step-by-step derivation
      1. associate-*r/86.3%

        \[\leadsto x \cdot \left(4.16438922228 - \color{blue}{\frac{110.1139242984811 \cdot 1}{x}}\right) \]
      2. metadata-eval86.3%

        \[\leadsto x \cdot \left(4.16438922228 - \frac{\color{blue}{110.1139242984811}}{x}\right) \]
    7. Simplified86.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)} \]

    if -5.40000000000000005e-8 < x < -5.20000000000000027e-98 or 1.8e-108 < x < 1.89999999999999997e-75

    1. Initial program 99.6%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cbrt-cube99.6%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)\right) \cdot \left(x \cdot 4.16438922228\right)}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      2. pow1/326.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{{\left(\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)\right) \cdot \left(x \cdot 4.16438922228\right)\right)}^{0.3333333333333333}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. pow326.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\color{blue}{\left({\left(x \cdot 4.16438922228\right)}^{3}\right)}}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. unpow-prod-down26.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\color{blue}{\left({x}^{3} \cdot {4.16438922228}^{3}\right)}}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. metadata-eval26.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\left({x}^{3} \cdot \color{blue}{72.2194108904232}\right)}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    4. Applied egg-rr26.9%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{{\left({x}^{3} \cdot 72.2194108904232\right)}^{0.3333333333333333}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    5. Step-by-step derivation
      1. unpow1/399.6%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{{x}^{3} \cdot 72.2194108904232}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    6. Simplified99.6%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{{x}^{3} \cdot 72.2194108904232}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    7. Taylor expanded in z around 0 79.0%

      \[\leadsto \color{blue}{\frac{x \cdot \left(\left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot \sqrt[3]{72.2194108904232}\right)\right)\right) \cdot \left(x - 2\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(43.3400022514 + x\right)\right)\right)}} \]
    8. Taylor expanded in x around 0 57.5%

      \[\leadsto \color{blue}{-0.0424927283095952 \cdot \left(x \cdot y\right)} \]

    if -5.20000000000000027e-98 < x < 1.8e-108

    1. Initial program 99.8%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.8%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.8%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.8%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.8%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 81.5%

      \[\leadsto \color{blue}{-0.0424927283095952 \cdot z} \]
    6. Step-by-step derivation
      1. *-commutative81.5%

        \[\leadsto \color{blue}{z \cdot -0.0424927283095952} \]
    7. Simplified81.5%

      \[\leadsto \color{blue}{z \cdot -0.0424927283095952} \]

    if 1.89999999999999997e-75 < x < 520

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.7%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.7%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.7%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 52.4%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(0.0212463641547976 \cdot z\right)} \]

    if 520 < x

    1. Initial program 19.2%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*24.7%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg24.7%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval24.7%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define24.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define24.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define24.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define24.6%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define24.6%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define24.6%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define24.6%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified24.6%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 89.9%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - 101.7851458539211 \cdot \frac{1}{x}\right)} \]
    6. Step-by-step derivation
      1. associate-*r/89.9%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \color{blue}{\frac{101.7851458539211 \cdot 1}{x}}\right) \]
      2. metadata-eval89.9%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{\color{blue}{101.7851458539211}}{x}\right) \]
    7. Simplified89.9%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211}{x}\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification81.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq -5.2 \cdot 10^{-98}:\\ \;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq 1.8 \cdot 10^{-108}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{elif}\;x \leq 1.9 \cdot 10^{-75}:\\ \;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq 520:\\ \;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 96.0% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -110 \lor \neg \left(x \leq 90\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= x -110.0) (not (<= x 90.0)))
   (*
    (+ x -2.0)
    (+
     4.16438922228
     (/
      (-
       (/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
       101.7851458539211)
      x)))
   (/
    (* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
    (+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))))
double code(double x, double y, double z) {
	double tmp;
	if ((x <= -110.0) || !(x <= 90.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if ((x <= (-110.0d0)) .or. (.not. (x <= 90.0d0))) then
        tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
    else
        tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((x <= -110.0) || !(x <= 90.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (x <= -110.0) or not (x <= 90.0):
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))
	else:
		tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((x <= -110.0) || !(x <= 90.0))
		tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)));
	else
		tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((x <= -110.0) || ~((x <= 90.0)))
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	else
		tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[x, -110.0], N[Not[LessEqual[x, 90.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -110 \lor \neg \left(x \leq 90\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -110 or 90 < x

    1. Initial program 19.0%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*23.3%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg23.3%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval23.3%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified23.3%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around -inf 95.7%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 + -1 \cdot \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 + \color{blue}{\left(-\frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)}\right) \]
      2. unsub-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
      3. mul-1-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \color{blue}{\left(-\frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}\right)}}{x}\right) \]
      4. unsub-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{\color{blue}{101.7851458539211 - \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}}{x}\right) \]
      5. mul-1-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 + \color{blue}{\left(-\frac{124074.40615218398 + -1 \cdot y}{x}\right)}}{x}}{x}\right) \]
      6. unsub-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{\color{blue}{3451.550173699799 - \frac{124074.40615218398 + -1 \cdot y}{x}}}{x}}{x}\right) \]
      7. mul-1-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 + \color{blue}{\left(-y\right)}}{x}}{x}}{x}\right) \]
      8. unsub-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{\color{blue}{124074.40615218398 - y}}{x}}{x}}{x}\right) \]
    7. Simplified95.7%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{x}\right)} \]

    if -110 < x < 90

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0 98.7%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\color{blue}{263.505074721 \cdot x} + 313.399215894\right) \cdot x + 47.066876606} \]
    4. Step-by-step derivation
      1. *-commutative98.7%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\color{blue}{x \cdot 263.505074721} + 313.399215894\right) \cdot x + 47.066876606} \]
    5. Simplified98.7%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\color{blue}{x \cdot 263.505074721} + 313.399215894\right) \cdot x + 47.066876606} \]
    6. Taylor expanded in x around 0 97.6%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\color{blue}{137.519416416 \cdot x} + y\right) \cdot x + z\right)}{\left(x \cdot 263.505074721 + 313.399215894\right) \cdot x + 47.066876606} \]
    7. Step-by-step derivation
      1. *-commutative97.6%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\color{blue}{x \cdot 137.519416416} + y\right) \cdot x + z\right)}{\left(x \cdot 263.505074721 + 313.399215894\right) \cdot x + 47.066876606} \]
    8. Simplified97.6%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\color{blue}{x \cdot 137.519416416} + y\right) \cdot x + z\right)}{\left(x \cdot 263.505074721 + 313.399215894\right) \cdot x + 47.066876606} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification96.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -110 \lor \neg \left(x \leq 90\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 95.9% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.35 \lor \neg \left(x \leq 62\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot 313.399215894}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= x -1.35) (not (<= x 62.0)))
   (*
    (+ x -2.0)
    (+
     4.16438922228
     (/
      (-
       (/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
       101.7851458539211)
      x)))
   (/
    (* (- x 2.0) (+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
    (+ 47.066876606 (* x 313.399215894)))))
double code(double x, double y, double z) {
	double tmp;
	if ((x <= -1.35) || !(x <= 62.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * 313.399215894));
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if ((x <= (-1.35d0)) .or. (.not. (x <= 62.0d0))) then
        tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
    else
        tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / (47.066876606d0 + (x * 313.399215894d0))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((x <= -1.35) || !(x <= 62.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * 313.399215894));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (x <= -1.35) or not (x <= 62.0):
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))
	else:
		tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * 313.399215894))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((x <= -1.35) || !(x <= 62.0))
		tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)));
	else
		tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / Float64(47.066876606 + Float64(x * 313.399215894)));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((x <= -1.35) || ~((x <= 62.0)))
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	else
		tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * 313.399215894));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.35], N[Not[LessEqual[x, 62.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.35 \lor \neg \left(x \leq 62\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot 313.399215894}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1.3500000000000001 or 62 < x

    1. Initial program 19.0%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*23.3%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg23.3%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval23.3%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define23.3%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified23.3%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around -inf 95.7%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 + -1 \cdot \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 + \color{blue}{\left(-\frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)}\right) \]
      2. unsub-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
      3. mul-1-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \color{blue}{\left(-\frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}\right)}}{x}\right) \]
      4. unsub-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{\color{blue}{101.7851458539211 - \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}}{x}\right) \]
      5. mul-1-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 + \color{blue}{\left(-\frac{124074.40615218398 + -1 \cdot y}{x}\right)}}{x}}{x}\right) \]
      6. unsub-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{\color{blue}{3451.550173699799 - \frac{124074.40615218398 + -1 \cdot y}{x}}}{x}}{x}\right) \]
      7. mul-1-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 + \color{blue}{\left(-y\right)}}{x}}{x}}{x}\right) \]
      8. unsub-neg95.7%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{\color{blue}{124074.40615218398 - y}}{x}}{x}}{x}\right) \]
    7. Simplified95.7%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{x}\right)} \]

    if -1.3500000000000001 < x < 62

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0 98.7%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\color{blue}{263.505074721 \cdot x} + 313.399215894\right) \cdot x + 47.066876606} \]
    4. Step-by-step derivation
      1. *-commutative98.7%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\color{blue}{x \cdot 263.505074721} + 313.399215894\right) \cdot x + 47.066876606} \]
    5. Simplified98.7%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\color{blue}{x \cdot 263.505074721} + 313.399215894\right) \cdot x + 47.066876606} \]
    6. Taylor expanded in x around 0 98.5%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\color{blue}{x \cdot \left(137.519416416 + 78.6994924154 \cdot x\right)} + y\right) \cdot x + z\right)}{\left(x \cdot 263.505074721 + 313.399215894\right) \cdot x + 47.066876606} \]
    7. Step-by-step derivation
      1. *-commutative98.5%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(x \cdot \left(137.519416416 + \color{blue}{x \cdot 78.6994924154}\right) + y\right) \cdot x + z\right)}{\left(x \cdot 263.505074721 + 313.399215894\right) \cdot x + 47.066876606} \]
    8. Simplified98.5%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\color{blue}{x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)} + y\right) \cdot x + z\right)}{\left(x \cdot 263.505074721 + 313.399215894\right) \cdot x + 47.066876606} \]
    9. Taylor expanded in x around 0 98.0%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(x \cdot \left(137.519416416 + x \cdot 78.6994924154\right) + y\right) \cdot x + z\right)}{\color{blue}{313.399215894 \cdot x} + 47.066876606} \]
    10. Step-by-step derivation
      1. *-commutative98.0%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(x \cdot \left(137.519416416 + x \cdot 78.6994924154\right) + y\right) \cdot x + z\right)}{\color{blue}{x \cdot 313.399215894} + 47.066876606} \]
    11. Simplified98.0%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(x \cdot \left(137.519416416 + x \cdot 78.6994924154\right) + y\right) \cdot x + z\right)}{\color{blue}{x \cdot 313.399215894} + 47.066876606} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification96.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.35 \lor \neg \left(x \leq 62\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot 313.399215894}\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 74.9% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ t_1 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\ \mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;x \leq -1.8 \cdot 10^{-98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 7.8 \cdot 10^{-108}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{elif}\;x \leq 1.9 \cdot 10^{-75}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 1.12:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{else}:\\ \;\;\;\;t\_0\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (let* ((t_0 (* x (- 4.16438922228 (/ 110.1139242984811 x))))
        (t_1 (* -0.0424927283095952 (* x y))))
   (if (<= x -5.4e-8)
     t_0
     (if (<= x -1.8e-98)
       t_1
       (if (<= x 7.8e-108)
         (* z -0.0424927283095952)
         (if (<= x 1.9e-75)
           t_1
           (if (<= x 1.12) (* z -0.0424927283095952) t_0)))))))
double code(double x, double y, double z) {
	double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
	double t_1 = -0.0424927283095952 * (x * y);
	double tmp;
	if (x <= -5.4e-8) {
		tmp = t_0;
	} else if (x <= -1.8e-98) {
		tmp = t_1;
	} else if (x <= 7.8e-108) {
		tmp = z * -0.0424927283095952;
	} else if (x <= 1.9e-75) {
		tmp = t_1;
	} else if (x <= 1.12) {
		tmp = z * -0.0424927283095952;
	} else {
		tmp = t_0;
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: t_0
    real(8) :: t_1
    real(8) :: tmp
    t_0 = x * (4.16438922228d0 - (110.1139242984811d0 / x))
    t_1 = (-0.0424927283095952d0) * (x * y)
    if (x <= (-5.4d-8)) then
        tmp = t_0
    else if (x <= (-1.8d-98)) then
        tmp = t_1
    else if (x <= 7.8d-108) then
        tmp = z * (-0.0424927283095952d0)
    else if (x <= 1.9d-75) then
        tmp = t_1
    else if (x <= 1.12d0) then
        tmp = z * (-0.0424927283095952d0)
    else
        tmp = t_0
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
	double t_1 = -0.0424927283095952 * (x * y);
	double tmp;
	if (x <= -5.4e-8) {
		tmp = t_0;
	} else if (x <= -1.8e-98) {
		tmp = t_1;
	} else if (x <= 7.8e-108) {
		tmp = z * -0.0424927283095952;
	} else if (x <= 1.9e-75) {
		tmp = t_1;
	} else if (x <= 1.12) {
		tmp = z * -0.0424927283095952;
	} else {
		tmp = t_0;
	}
	return tmp;
}
def code(x, y, z):
	t_0 = x * (4.16438922228 - (110.1139242984811 / x))
	t_1 = -0.0424927283095952 * (x * y)
	tmp = 0
	if x <= -5.4e-8:
		tmp = t_0
	elif x <= -1.8e-98:
		tmp = t_1
	elif x <= 7.8e-108:
		tmp = z * -0.0424927283095952
	elif x <= 1.9e-75:
		tmp = t_1
	elif x <= 1.12:
		tmp = z * -0.0424927283095952
	else:
		tmp = t_0
	return tmp
function code(x, y, z)
	t_0 = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x)))
	t_1 = Float64(-0.0424927283095952 * Float64(x * y))
	tmp = 0.0
	if (x <= -5.4e-8)
		tmp = t_0;
	elseif (x <= -1.8e-98)
		tmp = t_1;
	elseif (x <= 7.8e-108)
		tmp = Float64(z * -0.0424927283095952);
	elseif (x <= 1.9e-75)
		tmp = t_1;
	elseif (x <= 1.12)
		tmp = Float64(z * -0.0424927283095952);
	else
		tmp = t_0;
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	t_0 = x * (4.16438922228 - (110.1139242984811 / x));
	t_1 = -0.0424927283095952 * (x * y);
	tmp = 0.0;
	if (x <= -5.4e-8)
		tmp = t_0;
	elseif (x <= -1.8e-98)
		tmp = t_1;
	elseif (x <= 7.8e-108)
		tmp = z * -0.0424927283095952;
	elseif (x <= 1.9e-75)
		tmp = t_1;
	elseif (x <= 1.12)
		tmp = z * -0.0424927283095952;
	else
		tmp = t_0;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.4e-8], t$95$0, If[LessEqual[x, -1.8e-98], t$95$1, If[LessEqual[x, 7.8e-108], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.9e-75], t$95$1, If[LessEqual[x, 1.12], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
t_1 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\
\;\;\;\;t\_0\\

\mathbf{elif}\;x \leq -1.8 \cdot 10^{-98}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq 7.8 \cdot 10^{-108}:\\
\;\;\;\;z \cdot -0.0424927283095952\\

\mathbf{elif}\;x \leq 1.9 \cdot 10^{-75}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq 1.12:\\
\;\;\;\;z \cdot -0.0424927283095952\\

\mathbf{else}:\\
\;\;\;\;t\_0\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -5.40000000000000005e-8 or 1.1200000000000001 < x

    1. Initial program 21.9%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*26.0%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg26.0%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval26.0%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define26.1%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define26.1%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define26.1%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define26.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define26.1%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define26.1%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define26.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified26.0%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 86.9%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - 110.1139242984811 \cdot \frac{1}{x}\right)} \]
    6. Step-by-step derivation
      1. associate-*r/86.9%

        \[\leadsto x \cdot \left(4.16438922228 - \color{blue}{\frac{110.1139242984811 \cdot 1}{x}}\right) \]
      2. metadata-eval86.9%

        \[\leadsto x \cdot \left(4.16438922228 - \frac{\color{blue}{110.1139242984811}}{x}\right) \]
    7. Simplified86.9%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)} \]

    if -5.40000000000000005e-8 < x < -1.8000000000000001e-98 or 7.79999999999999989e-108 < x < 1.89999999999999997e-75

    1. Initial program 99.6%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cbrt-cube99.6%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)\right) \cdot \left(x \cdot 4.16438922228\right)}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      2. pow1/326.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{{\left(\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)\right) \cdot \left(x \cdot 4.16438922228\right)\right)}^{0.3333333333333333}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. pow326.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\color{blue}{\left({\left(x \cdot 4.16438922228\right)}^{3}\right)}}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. unpow-prod-down26.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\color{blue}{\left({x}^{3} \cdot {4.16438922228}^{3}\right)}}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. metadata-eval26.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\left({x}^{3} \cdot \color{blue}{72.2194108904232}\right)}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    4. Applied egg-rr26.9%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{{\left({x}^{3} \cdot 72.2194108904232\right)}^{0.3333333333333333}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    5. Step-by-step derivation
      1. unpow1/399.6%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{{x}^{3} \cdot 72.2194108904232}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    6. Simplified99.6%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{{x}^{3} \cdot 72.2194108904232}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    7. Taylor expanded in z around 0 79.0%

      \[\leadsto \color{blue}{\frac{x \cdot \left(\left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot \sqrt[3]{72.2194108904232}\right)\right)\right) \cdot \left(x - 2\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(43.3400022514 + x\right)\right)\right)}} \]
    8. Taylor expanded in x around 0 57.5%

      \[\leadsto \color{blue}{-0.0424927283095952 \cdot \left(x \cdot y\right)} \]

    if -1.8000000000000001e-98 < x < 7.79999999999999989e-108 or 1.89999999999999997e-75 < x < 1.1200000000000001

    1. Initial program 99.8%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.8%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.8%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.8%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.8%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 78.7%

      \[\leadsto \color{blue}{-0.0424927283095952 \cdot z} \]
    6. Step-by-step derivation
      1. *-commutative78.7%

        \[\leadsto \color{blue}{z \cdot -0.0424927283095952} \]
    7. Simplified78.7%

      \[\leadsto \color{blue}{z \cdot -0.0424927283095952} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification80.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq -1.8 \cdot 10^{-98}:\\ \;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq 7.8 \cdot 10^{-108}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{elif}\;x \leq 1.9 \cdot 10^{-75}:\\ \;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq 1.12:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 74.9% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ t_1 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\ \mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;x \leq -4.2 \cdot 10^{-99}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 6.4 \cdot 10^{-109}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{elif}\;x \leq 2.7 \cdot 10^{-75}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 260:\\ \;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\ \mathbf{else}:\\ \;\;\;\;t\_0\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (let* ((t_0 (* x (- 4.16438922228 (/ 110.1139242984811 x))))
        (t_1 (* -0.0424927283095952 (* x y))))
   (if (<= x -5.4e-8)
     t_0
     (if (<= x -4.2e-99)
       t_1
       (if (<= x 6.4e-109)
         (* z -0.0424927283095952)
         (if (<= x 2.7e-75)
           t_1
           (if (<= x 260.0) (* (+ x -2.0) (* z 0.0212463641547976)) t_0)))))))
double code(double x, double y, double z) {
	double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
	double t_1 = -0.0424927283095952 * (x * y);
	double tmp;
	if (x <= -5.4e-8) {
		tmp = t_0;
	} else if (x <= -4.2e-99) {
		tmp = t_1;
	} else if (x <= 6.4e-109) {
		tmp = z * -0.0424927283095952;
	} else if (x <= 2.7e-75) {
		tmp = t_1;
	} else if (x <= 260.0) {
		tmp = (x + -2.0) * (z * 0.0212463641547976);
	} else {
		tmp = t_0;
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: t_0
    real(8) :: t_1
    real(8) :: tmp
    t_0 = x * (4.16438922228d0 - (110.1139242984811d0 / x))
    t_1 = (-0.0424927283095952d0) * (x * y)
    if (x <= (-5.4d-8)) then
        tmp = t_0
    else if (x <= (-4.2d-99)) then
        tmp = t_1
    else if (x <= 6.4d-109) then
        tmp = z * (-0.0424927283095952d0)
    else if (x <= 2.7d-75) then
        tmp = t_1
    else if (x <= 260.0d0) then
        tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
    else
        tmp = t_0
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
	double t_1 = -0.0424927283095952 * (x * y);
	double tmp;
	if (x <= -5.4e-8) {
		tmp = t_0;
	} else if (x <= -4.2e-99) {
		tmp = t_1;
	} else if (x <= 6.4e-109) {
		tmp = z * -0.0424927283095952;
	} else if (x <= 2.7e-75) {
		tmp = t_1;
	} else if (x <= 260.0) {
		tmp = (x + -2.0) * (z * 0.0212463641547976);
	} else {
		tmp = t_0;
	}
	return tmp;
}
def code(x, y, z):
	t_0 = x * (4.16438922228 - (110.1139242984811 / x))
	t_1 = -0.0424927283095952 * (x * y)
	tmp = 0
	if x <= -5.4e-8:
		tmp = t_0
	elif x <= -4.2e-99:
		tmp = t_1
	elif x <= 6.4e-109:
		tmp = z * -0.0424927283095952
	elif x <= 2.7e-75:
		tmp = t_1
	elif x <= 260.0:
		tmp = (x + -2.0) * (z * 0.0212463641547976)
	else:
		tmp = t_0
	return tmp
function code(x, y, z)
	t_0 = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x)))
	t_1 = Float64(-0.0424927283095952 * Float64(x * y))
	tmp = 0.0
	if (x <= -5.4e-8)
		tmp = t_0;
	elseif (x <= -4.2e-99)
		tmp = t_1;
	elseif (x <= 6.4e-109)
		tmp = Float64(z * -0.0424927283095952);
	elseif (x <= 2.7e-75)
		tmp = t_1;
	elseif (x <= 260.0)
		tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976));
	else
		tmp = t_0;
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	t_0 = x * (4.16438922228 - (110.1139242984811 / x));
	t_1 = -0.0424927283095952 * (x * y);
	tmp = 0.0;
	if (x <= -5.4e-8)
		tmp = t_0;
	elseif (x <= -4.2e-99)
		tmp = t_1;
	elseif (x <= 6.4e-109)
		tmp = z * -0.0424927283095952;
	elseif (x <= 2.7e-75)
		tmp = t_1;
	elseif (x <= 260.0)
		tmp = (x + -2.0) * (z * 0.0212463641547976);
	else
		tmp = t_0;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.4e-8], t$95$0, If[LessEqual[x, -4.2e-99], t$95$1, If[LessEqual[x, 6.4e-109], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.7e-75], t$95$1, If[LessEqual[x, 260.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
t_1 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\
\;\;\;\;t\_0\\

\mathbf{elif}\;x \leq -4.2 \cdot 10^{-99}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq 6.4 \cdot 10^{-109}:\\
\;\;\;\;z \cdot -0.0424927283095952\\

\mathbf{elif}\;x \leq 2.7 \cdot 10^{-75}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq 260:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\

\mathbf{else}:\\
\;\;\;\;t\_0\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -5.40000000000000005e-8 or 260 < x

    1. Initial program 20.8%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*25.0%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg25.0%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval25.0%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define25.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define25.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define25.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define25.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define25.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define25.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define25.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified25.0%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 88.1%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - 110.1139242984811 \cdot \frac{1}{x}\right)} \]
    6. Step-by-step derivation
      1. associate-*r/88.1%

        \[\leadsto x \cdot \left(4.16438922228 - \color{blue}{\frac{110.1139242984811 \cdot 1}{x}}\right) \]
      2. metadata-eval88.1%

        \[\leadsto x \cdot \left(4.16438922228 - \frac{\color{blue}{110.1139242984811}}{x}\right) \]
    7. Simplified88.1%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)} \]

    if -5.40000000000000005e-8 < x < -4.19999999999999968e-99 or 6.4000000000000003e-109 < x < 2.6999999999999998e-75

    1. Initial program 99.6%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cbrt-cube99.6%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)\right) \cdot \left(x \cdot 4.16438922228\right)}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      2. pow1/326.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{{\left(\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)\right) \cdot \left(x \cdot 4.16438922228\right)\right)}^{0.3333333333333333}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. pow326.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\color{blue}{\left({\left(x \cdot 4.16438922228\right)}^{3}\right)}}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. unpow-prod-down26.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\color{blue}{\left({x}^{3} \cdot {4.16438922228}^{3}\right)}}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. metadata-eval26.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\left({x}^{3} \cdot \color{blue}{72.2194108904232}\right)}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    4. Applied egg-rr26.9%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{{\left({x}^{3} \cdot 72.2194108904232\right)}^{0.3333333333333333}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    5. Step-by-step derivation
      1. unpow1/399.6%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{{x}^{3} \cdot 72.2194108904232}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    6. Simplified99.6%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{{x}^{3} \cdot 72.2194108904232}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    7. Taylor expanded in z around 0 79.0%

      \[\leadsto \color{blue}{\frac{x \cdot \left(\left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot \sqrt[3]{72.2194108904232}\right)\right)\right) \cdot \left(x - 2\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(43.3400022514 + x\right)\right)\right)}} \]
    8. Taylor expanded in x around 0 57.5%

      \[\leadsto \color{blue}{-0.0424927283095952 \cdot \left(x \cdot y\right)} \]

    if -4.19999999999999968e-99 < x < 6.4000000000000003e-109

    1. Initial program 99.8%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.8%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.8%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.8%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.8%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 81.5%

      \[\leadsto \color{blue}{-0.0424927283095952 \cdot z} \]
    6. Step-by-step derivation
      1. *-commutative81.5%

        \[\leadsto \color{blue}{z \cdot -0.0424927283095952} \]
    7. Simplified81.5%

      \[\leadsto \color{blue}{z \cdot -0.0424927283095952} \]

    if 2.6999999999999998e-75 < x < 260

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.7%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.7%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.7%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 52.4%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(0.0212463641547976 \cdot z\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification81.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq -4.2 \cdot 10^{-99}:\\ \;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq 6.4 \cdot 10^{-109}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{elif}\;x \leq 2.7 \cdot 10^{-75}:\\ \;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq 260:\\ \;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 92.8% accurate, 1.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -0.000102 \lor \neg \left(x \leq 61\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= x -0.000102) (not (<= x 61.0)))
   (*
    (+ x -2.0)
    (+
     4.16438922228
     (/
      (-
       (/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
       101.7851458539211)
      x)))
   (+
    (*
     x
     (- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
    (* z -0.0424927283095952))))
double code(double x, double y, double z) {
	double tmp;
	if ((x <= -0.000102) || !(x <= 61.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if ((x <= (-0.000102d0)) .or. (.not. (x <= 61.0d0))) then
        tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
    else
        tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((x <= -0.000102) || !(x <= 61.0)) {
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	} else {
		tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (x <= -0.000102) or not (x <= 61.0):
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))
	else:
		tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952)
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((x <= -0.000102) || !(x <= 61.0))
		tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)));
	else
		tmp = Float64(Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((x <= -0.000102) || ~((x <= 61.0)))
		tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
	else
		tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.000102], N[Not[LessEqual[x, 61.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.000102 \lor \neg \left(x \leq 61\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\

\mathbf{else}:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1.01999999999999999e-4 or 61 < x

    1. Initial program 19.6%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*23.8%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg23.8%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval23.8%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define23.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define23.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define23.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define23.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define23.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define23.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define23.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified23.8%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around -inf 95.1%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 + -1 \cdot \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg95.1%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 + \color{blue}{\left(-\frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)}\right) \]
      2. unsub-neg95.1%

        \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 + -1 \cdot \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}{x}\right)} \]
      3. mul-1-neg95.1%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \color{blue}{\left(-\frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}\right)}}{x}\right) \]
      4. unsub-neg95.1%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{\color{blue}{101.7851458539211 - \frac{3451.550173699799 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{x}}{x}}}{x}\right) \]
      5. mul-1-neg95.1%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 + \color{blue}{\left(-\frac{124074.40615218398 + -1 \cdot y}{x}\right)}}{x}}{x}\right) \]
      6. unsub-neg95.1%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{\color{blue}{3451.550173699799 - \frac{124074.40615218398 + -1 \cdot y}{x}}}{x}}{x}\right) \]
      7. mul-1-neg95.1%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 + \color{blue}{\left(-y\right)}}{x}}{x}}{x}\right) \]
      8. unsub-neg95.1%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{\color{blue}{124074.40615218398 - y}}{x}}{x}}{x}\right) \]
    7. Simplified95.1%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{x}\right)} \]

    if -1.01999999999999999e-4 < x < 61

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.7%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.7%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.7%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 90.8%

      \[\leadsto \color{blue}{-0.0424927283095952 \cdot z + x \cdot \left(0.0212463641547976 \cdot \left(z + -2 \cdot y\right) - -0.28294182010212804 \cdot z\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification93.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -0.000102 \lor \neg \left(x \leq 61\right):\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 74.7% accurate, 1.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\ \mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq -3 \cdot 10^{-98}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;x \leq 1.12 \cdot 10^{-107}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{elif}\;x \leq 2.1 \cdot 10^{-75}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;x \leq 5 \cdot 10^{-10}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{else}:\\ \;\;\;\;x \cdot 4.16438922228\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (let* ((t_0 (* -0.0424927283095952 (* x y))))
   (if (<= x -5.4e-8)
     (* x 4.16438922228)
     (if (<= x -3e-98)
       t_0
       (if (<= x 1.12e-107)
         (* z -0.0424927283095952)
         (if (<= x 2.1e-75)
           t_0
           (if (<= x 5e-10)
             (* z -0.0424927283095952)
             (* x 4.16438922228))))))))
double code(double x, double y, double z) {
	double t_0 = -0.0424927283095952 * (x * y);
	double tmp;
	if (x <= -5.4e-8) {
		tmp = x * 4.16438922228;
	} else if (x <= -3e-98) {
		tmp = t_0;
	} else if (x <= 1.12e-107) {
		tmp = z * -0.0424927283095952;
	} else if (x <= 2.1e-75) {
		tmp = t_0;
	} else if (x <= 5e-10) {
		tmp = z * -0.0424927283095952;
	} else {
		tmp = x * 4.16438922228;
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: t_0
    real(8) :: tmp
    t_0 = (-0.0424927283095952d0) * (x * y)
    if (x <= (-5.4d-8)) then
        tmp = x * 4.16438922228d0
    else if (x <= (-3d-98)) then
        tmp = t_0
    else if (x <= 1.12d-107) then
        tmp = z * (-0.0424927283095952d0)
    else if (x <= 2.1d-75) then
        tmp = t_0
    else if (x <= 5d-10) then
        tmp = z * (-0.0424927283095952d0)
    else
        tmp = x * 4.16438922228d0
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double t_0 = -0.0424927283095952 * (x * y);
	double tmp;
	if (x <= -5.4e-8) {
		tmp = x * 4.16438922228;
	} else if (x <= -3e-98) {
		tmp = t_0;
	} else if (x <= 1.12e-107) {
		tmp = z * -0.0424927283095952;
	} else if (x <= 2.1e-75) {
		tmp = t_0;
	} else if (x <= 5e-10) {
		tmp = z * -0.0424927283095952;
	} else {
		tmp = x * 4.16438922228;
	}
	return tmp;
}
def code(x, y, z):
	t_0 = -0.0424927283095952 * (x * y)
	tmp = 0
	if x <= -5.4e-8:
		tmp = x * 4.16438922228
	elif x <= -3e-98:
		tmp = t_0
	elif x <= 1.12e-107:
		tmp = z * -0.0424927283095952
	elif x <= 2.1e-75:
		tmp = t_0
	elif x <= 5e-10:
		tmp = z * -0.0424927283095952
	else:
		tmp = x * 4.16438922228
	return tmp
function code(x, y, z)
	t_0 = Float64(-0.0424927283095952 * Float64(x * y))
	tmp = 0.0
	if (x <= -5.4e-8)
		tmp = Float64(x * 4.16438922228);
	elseif (x <= -3e-98)
		tmp = t_0;
	elseif (x <= 1.12e-107)
		tmp = Float64(z * -0.0424927283095952);
	elseif (x <= 2.1e-75)
		tmp = t_0;
	elseif (x <= 5e-10)
		tmp = Float64(z * -0.0424927283095952);
	else
		tmp = Float64(x * 4.16438922228);
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	t_0 = -0.0424927283095952 * (x * y);
	tmp = 0.0;
	if (x <= -5.4e-8)
		tmp = x * 4.16438922228;
	elseif (x <= -3e-98)
		tmp = t_0;
	elseif (x <= 1.12e-107)
		tmp = z * -0.0424927283095952;
	elseif (x <= 2.1e-75)
		tmp = t_0;
	elseif (x <= 5e-10)
		tmp = z * -0.0424927283095952;
	else
		tmp = x * 4.16438922228;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.4e-8], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, -3e-98], t$95$0, If[LessEqual[x, 1.12e-107], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.1e-75], t$95$0, If[LessEqual[x, 5e-10], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\
\;\;\;\;x \cdot 4.16438922228\\

\mathbf{elif}\;x \leq -3 \cdot 10^{-98}:\\
\;\;\;\;t\_0\\

\mathbf{elif}\;x \leq 1.12 \cdot 10^{-107}:\\
\;\;\;\;z \cdot -0.0424927283095952\\

\mathbf{elif}\;x \leq 2.1 \cdot 10^{-75}:\\
\;\;\;\;t\_0\\

\mathbf{elif}\;x \leq 5 \cdot 10^{-10}:\\
\;\;\;\;z \cdot -0.0424927283095952\\

\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -5.40000000000000005e-8 or 5.00000000000000031e-10 < x

    1. Initial program 22.5%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Simplified26.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. fma-define26.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot 4.16438922228 + 78.6994924154}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      2. flip-+26.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154}{x \cdot 4.16438922228 - 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      3. frac-2neg26.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      4. sub-neg26.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\color{blue}{\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      5. pow226.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left(\color{blue}{{\left(x \cdot 4.16438922228\right)}^{2}} + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      6. metadata-eval26.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \left(-\color{blue}{6193.6101064416025}\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      7. metadata-eval26.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \color{blue}{-6193.6101064416025}\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      8. fma-neg26.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\color{blue}{\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      9. metadata-eval26.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, \color{blue}{-78.6994924154}\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    5. Applied egg-rr26.6%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    6. Step-by-step derivation
      1. neg-sub026.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{0 - \left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      2. +-commutative26.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{0 - \color{blue}{\left(-6193.6101064416025 + {\left(x \cdot 4.16438922228\right)}^{2}\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      3. associate--r+26.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{\left(0 - -6193.6101064416025\right) - {\left(x \cdot 4.16438922228\right)}^{2}}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      4. metadata-eval26.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{6193.6101064416025} - {\left(x \cdot 4.16438922228\right)}^{2}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      5. unpow226.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      6. swap-sqr26.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot x\right) \cdot \left(4.16438922228 \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      7. unpow226.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{{x}^{2}} \cdot \left(4.16438922228 \cdot 4.16438922228\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      8. metadata-eval26.7%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot \color{blue}{17.342137594641823}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      9. fma-undefine26.7%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{-\color{blue}{\left(x \cdot 4.16438922228 + -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      10. distribute-neg-in26.7%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{\left(-x \cdot 4.16438922228\right) + \left(--78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      11. distribute-rgt-neg-in26.7%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{x \cdot \left(-4.16438922228\right)} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      12. metadata-eval26.7%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot \color{blue}{-4.16438922228} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      13. metadata-eval26.7%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + \color{blue}{78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    7. Simplified26.7%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    8. Taylor expanded in x around inf 85.8%

      \[\leadsto \color{blue}{4.16438922228 \cdot x} \]
    9. Step-by-step derivation
      1. *-commutative85.8%

        \[\leadsto \color{blue}{x \cdot 4.16438922228} \]
    10. Simplified85.8%

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

    if -5.40000000000000005e-8 < x < -3e-98 or 1.12e-107 < x < 2.1000000000000001e-75

    1. Initial program 99.6%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cbrt-cube99.6%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)\right) \cdot \left(x \cdot 4.16438922228\right)}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      2. pow1/326.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{{\left(\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)\right) \cdot \left(x \cdot 4.16438922228\right)\right)}^{0.3333333333333333}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. pow326.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\color{blue}{\left({\left(x \cdot 4.16438922228\right)}^{3}\right)}}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. unpow-prod-down26.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\color{blue}{\left({x}^{3} \cdot {4.16438922228}^{3}\right)}}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. metadata-eval26.9%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left({\left({x}^{3} \cdot \color{blue}{72.2194108904232}\right)}^{0.3333333333333333} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    4. Applied egg-rr26.9%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{{\left({x}^{3} \cdot 72.2194108904232\right)}^{0.3333333333333333}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    5. Step-by-step derivation
      1. unpow1/399.6%

        \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{{x}^{3} \cdot 72.2194108904232}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    6. Simplified99.6%

      \[\leadsto \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(\color{blue}{\sqrt[3]{{x}^{3} \cdot 72.2194108904232}} + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    7. Taylor expanded in z around 0 79.0%

      \[\leadsto \color{blue}{\frac{x \cdot \left(\left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot \sqrt[3]{72.2194108904232}\right)\right)\right) \cdot \left(x - 2\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(43.3400022514 + x\right)\right)\right)}} \]
    8. Taylor expanded in x around 0 57.5%

      \[\leadsto \color{blue}{-0.0424927283095952 \cdot \left(x \cdot y\right)} \]

    if -3e-98 < x < 1.12e-107 or 2.1000000000000001e-75 < x < 5.00000000000000031e-10

    1. Initial program 99.8%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.8%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.8%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.8%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.8%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 79.5%

      \[\leadsto \color{blue}{-0.0424927283095952 \cdot z} \]
    6. Step-by-step derivation
      1. *-commutative79.5%

        \[\leadsto \color{blue}{z \cdot -0.0424927283095952} \]
    7. Simplified79.5%

      \[\leadsto \color{blue}{z \cdot -0.0424927283095952} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification80.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq -3 \cdot 10^{-98}:\\ \;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq 1.12 \cdot 10^{-107}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{elif}\;x \leq 2.1 \cdot 10^{-75}:\\ \;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq 5 \cdot 10^{-10}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{else}:\\ \;\;\;\;x \cdot 4.16438922228\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 89.5% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -880000000000:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq 500:\\ \;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (<= x -880000000000.0)
   (* x (- 4.16438922228 (/ 110.1139242984811 x)))
   (if (<= x 500.0)
     (*
      (+ x -2.0)
      (+
       (* z 0.0212463641547976)
       (* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
     (*
      (+ x -2.0)
      (-
       4.16438922228
       (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
	double tmp;
	if (x <= -880000000000.0) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= 500.0) {
		tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
	} else {
		tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if (x <= (-880000000000.0d0)) then
        tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
    else if (x <= 500.0d0) then
        tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
    else
        tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if (x <= -880000000000.0) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= 500.0) {
		tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
	} else {
		tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if x <= -880000000000.0:
		tmp = x * (4.16438922228 - (110.1139242984811 / x))
	elif x <= 500.0:
		tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))))
	else:
		tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if (x <= -880000000000.0)
		tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x)));
	elseif (x <= 500.0)
		tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402)))));
	else
		tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x)));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if (x <= -880000000000.0)
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	elseif (x <= 500.0)
		tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
	else
		tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[LessEqual[x, -880000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 500.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -880000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\

\mathbf{elif}\;x \leq 500:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -8.8e11

    1. Initial program 14.8%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*18.0%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg18.0%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval18.0%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified18.0%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 94.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - 110.1139242984811 \cdot \frac{1}{x}\right)} \]
    6. Step-by-step derivation
      1. associate-*r/94.3%

        \[\leadsto x \cdot \left(4.16438922228 - \color{blue}{\frac{110.1139242984811 \cdot 1}{x}}\right) \]
      2. metadata-eval94.3%

        \[\leadsto x \cdot \left(4.16438922228 - \frac{\color{blue}{110.1139242984811}}{x}\right) \]
    7. Simplified94.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)} \]

    if -8.8e11 < x < 500

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.7%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.7%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.7%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 88.2%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(0.0212463641547976 \cdot z + x \cdot \left(0.0212463641547976 \cdot y - 0.14147091005106402 \cdot z\right)\right)} \]

    if 500 < x

    1. Initial program 19.2%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*24.7%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg24.7%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval24.7%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define24.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define24.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define24.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define24.6%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define24.6%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define24.6%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define24.6%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified24.6%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around -inf 90.2%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 + -1 \cdot \frac{101.7851458539211 - 3451.550173699799 \cdot \frac{1}{x}}{x}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg90.2%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 + \color{blue}{\left(-\frac{101.7851458539211 - 3451.550173699799 \cdot \frac{1}{x}}{x}\right)}\right) \]
      2. unsub-neg90.2%

        \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 - 3451.550173699799 \cdot \frac{1}{x}}{x}\right)} \]
      3. sub-neg90.2%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{\color{blue}{101.7851458539211 + \left(-3451.550173699799 \cdot \frac{1}{x}\right)}}{x}\right) \]
      4. associate-*r/90.2%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \left(-\color{blue}{\frac{3451.550173699799 \cdot 1}{x}}\right)}{x}\right) \]
      5. metadata-eval90.2%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \left(-\frac{\color{blue}{3451.550173699799}}{x}\right)}{x}\right) \]
      6. distribute-neg-frac90.2%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \color{blue}{\frac{-3451.550173699799}{x}}}{x}\right) \]
      7. metadata-eval90.2%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\color{blue}{-3451.550173699799}}{x}}{x}\right) \]
    7. Simplified90.2%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification90.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -880000000000:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq 500:\\ \;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 89.4% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -880000000000:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq 130:\\ \;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (<= x -880000000000.0)
   (* x (- 4.16438922228 (/ 110.1139242984811 x)))
   (if (<= x 130.0)
     (+
      (*
       x
       (- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
      (* z -0.0424927283095952))
     (*
      (+ x -2.0)
      (-
       4.16438922228
       (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
	double tmp;
	if (x <= -880000000000.0) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= 130.0) {
		tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
	} else {
		tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if (x <= (-880000000000.0d0)) then
        tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
    else if (x <= 130.0d0) then
        tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
    else
        tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if (x <= -880000000000.0) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= 130.0) {
		tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
	} else {
		tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if x <= -880000000000.0:
		tmp = x * (4.16438922228 - (110.1139242984811 / x))
	elif x <= 130.0:
		tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952)
	else:
		tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if (x <= -880000000000.0)
		tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x)));
	elseif (x <= 130.0)
		tmp = Float64(Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952));
	else
		tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x)));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if (x <= -880000000000.0)
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	elseif (x <= 130.0)
		tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
	else
		tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[LessEqual[x, -880000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 130.0], N[(N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -880000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\

\mathbf{elif}\;x \leq 130:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\

\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -8.8e11

    1. Initial program 14.8%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*18.0%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg18.0%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval18.0%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified18.0%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 94.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - 110.1139242984811 \cdot \frac{1}{x}\right)} \]
    6. Step-by-step derivation
      1. associate-*r/94.3%

        \[\leadsto x \cdot \left(4.16438922228 - \color{blue}{\frac{110.1139242984811 \cdot 1}{x}}\right) \]
      2. metadata-eval94.3%

        \[\leadsto x \cdot \left(4.16438922228 - \frac{\color{blue}{110.1139242984811}}{x}\right) \]
    7. Simplified94.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)} \]

    if -8.8e11 < x < 130

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.7%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.7%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.7%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 88.9%

      \[\leadsto \color{blue}{-0.0424927283095952 \cdot z + x \cdot \left(0.0212463641547976 \cdot \left(z + -2 \cdot y\right) - -0.28294182010212804 \cdot z\right)} \]

    if 130 < x

    1. Initial program 20.3%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*25.8%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg25.8%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval25.8%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define25.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define25.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define25.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define25.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define25.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define25.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define25.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified25.7%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around -inf 88.9%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 + -1 \cdot \frac{101.7851458539211 - 3451.550173699799 \cdot \frac{1}{x}}{x}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg88.9%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 + \color{blue}{\left(-\frac{101.7851458539211 - 3451.550173699799 \cdot \frac{1}{x}}{x}\right)}\right) \]
      2. unsub-neg88.9%

        \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 - 3451.550173699799 \cdot \frac{1}{x}}{x}\right)} \]
      3. sub-neg88.9%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{\color{blue}{101.7851458539211 + \left(-3451.550173699799 \cdot \frac{1}{x}\right)}}{x}\right) \]
      4. associate-*r/88.9%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \left(-\color{blue}{\frac{3451.550173699799 \cdot 1}{x}}\right)}{x}\right) \]
      5. metadata-eval88.9%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \left(-\frac{\color{blue}{3451.550173699799}}{x}\right)}{x}\right) \]
      6. distribute-neg-frac88.9%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \color{blue}{\frac{-3451.550173699799}{x}}}{x}\right) \]
      7. metadata-eval88.9%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\color{blue}{-3451.550173699799}}{x}}{x}\right) \]
    7. Simplified88.9%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification90.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -880000000000:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq 130:\\ \;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 89.3% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -880000000000:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq 3600:\\ \;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (<= x -880000000000.0)
   (* x (- 4.16438922228 (/ 110.1139242984811 x)))
   (if (<= x 3600.0)
     (* (+ x -2.0) (+ (* z 0.0212463641547976) (* x (* y 0.0212463641547976))))
     (*
      x
      (+
       4.16438922228
       (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x))))))
double code(double x, double y, double z) {
	double tmp;
	if (x <= -880000000000.0) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= 3600.0) {
		tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
	} else {
		tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if (x <= (-880000000000.0d0)) then
        tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
    else if (x <= 3600.0d0) then
        tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * (y * 0.0212463641547976d0)))
    else
        tmp = x * (4.16438922228d0 + (((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if (x <= -880000000000.0) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= 3600.0) {
		tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
	} else {
		tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if x <= -880000000000.0:
		tmp = x * (4.16438922228 - (110.1139242984811 / x))
	elif x <= 3600.0:
		tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)))
	else:
		tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if (x <= -880000000000.0)
		tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x)));
	elseif (x <= 3600.0)
		tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(y * 0.0212463641547976))));
	else
		tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x)));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if (x <= -880000000000.0)
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	elseif (x <= 3600.0)
		tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
	else
		tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[LessEqual[x, -880000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3600.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -880000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\

\mathbf{elif}\;x \leq 3600:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\

\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -8.8e11

    1. Initial program 14.8%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*18.0%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg18.0%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval18.0%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified18.0%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 94.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - 110.1139242984811 \cdot \frac{1}{x}\right)} \]
    6. Step-by-step derivation
      1. associate-*r/94.3%

        \[\leadsto x \cdot \left(4.16438922228 - \color{blue}{\frac{110.1139242984811 \cdot 1}{x}}\right) \]
      2. metadata-eval94.3%

        \[\leadsto x \cdot \left(4.16438922228 - \frac{\color{blue}{110.1139242984811}}{x}\right) \]
    7. Simplified94.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)} \]

    if -8.8e11 < x < 3600

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.7%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.7%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.7%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 88.2%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(0.0212463641547976 \cdot z + x \cdot \left(0.0212463641547976 \cdot y - 0.14147091005106402 \cdot z\right)\right)} \]
    6. Taylor expanded in y around inf 88.1%

      \[\leadsto \left(x + -2\right) \cdot \left(0.0212463641547976 \cdot z + \color{blue}{0.0212463641547976 \cdot \left(x \cdot y\right)}\right) \]
    7. Step-by-step derivation
      1. associate-*r*88.1%

        \[\leadsto \left(x + -2\right) \cdot \left(0.0212463641547976 \cdot z + \color{blue}{\left(0.0212463641547976 \cdot x\right) \cdot y}\right) \]
      2. *-commutative88.1%

        \[\leadsto \left(x + -2\right) \cdot \left(0.0212463641547976 \cdot z + \color{blue}{\left(x \cdot 0.0212463641547976\right)} \cdot y\right) \]
      3. associate-*l*88.1%

        \[\leadsto \left(x + -2\right) \cdot \left(0.0212463641547976 \cdot z + \color{blue}{x \cdot \left(0.0212463641547976 \cdot y\right)}\right) \]
    8. Simplified88.1%

      \[\leadsto \left(x + -2\right) \cdot \left(0.0212463641547976 \cdot z + \color{blue}{x \cdot \left(0.0212463641547976 \cdot y\right)}\right) \]

    if 3600 < x

    1. Initial program 19.2%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Simplified24.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. fma-define24.7%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot 4.16438922228 + 78.6994924154}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      2. flip-+24.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154}{x \cdot 4.16438922228 - 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      3. frac-2neg24.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      4. sub-neg24.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\color{blue}{\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      5. pow224.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left(\color{blue}{{\left(x \cdot 4.16438922228\right)}^{2}} + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      6. metadata-eval24.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \left(-\color{blue}{6193.6101064416025}\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      7. metadata-eval24.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \color{blue}{-6193.6101064416025}\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      8. fma-neg24.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\color{blue}{\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      9. metadata-eval24.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, \color{blue}{-78.6994924154}\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    5. Applied egg-rr24.6%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    6. Step-by-step derivation
      1. neg-sub024.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{0 - \left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      2. +-commutative24.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{0 - \color{blue}{\left(-6193.6101064416025 + {\left(x \cdot 4.16438922228\right)}^{2}\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      3. associate--r+24.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{\left(0 - -6193.6101064416025\right) - {\left(x \cdot 4.16438922228\right)}^{2}}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      4. metadata-eval24.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{6193.6101064416025} - {\left(x \cdot 4.16438922228\right)}^{2}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      5. unpow224.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      6. swap-sqr24.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot x\right) \cdot \left(4.16438922228 \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      7. unpow224.6%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{{x}^{2}} \cdot \left(4.16438922228 \cdot 4.16438922228\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      8. metadata-eval24.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot \color{blue}{17.342137594641823}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      9. fma-undefine24.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{-\color{blue}{\left(x \cdot 4.16438922228 + -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      10. distribute-neg-in24.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{\left(-x \cdot 4.16438922228\right) + \left(--78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      11. distribute-rgt-neg-in24.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{x \cdot \left(-4.16438922228\right)} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      12. metadata-eval24.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot \color{blue}{-4.16438922228} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      13. metadata-eval24.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + \color{blue}{78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    7. Simplified24.8%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    8. Taylor expanded in x around inf 90.1%

      \[\leadsto \color{blue}{x \cdot \left(\left(4.16438922228 + \frac{3655.1204654076414}{{x}^{2}}\right) - 110.1139242984811 \cdot \frac{1}{x}\right)} \]
    9. Step-by-step derivation
      1. associate--l+90.1%

        \[\leadsto x \cdot \color{blue}{\left(4.16438922228 + \left(\frac{3655.1204654076414}{{x}^{2}} - 110.1139242984811 \cdot \frac{1}{x}\right)\right)} \]
      2. unpow290.1%

        \[\leadsto x \cdot \left(4.16438922228 + \left(\frac{3655.1204654076414}{\color{blue}{x \cdot x}} - 110.1139242984811 \cdot \frac{1}{x}\right)\right) \]
      3. associate-/r*90.1%

        \[\leadsto x \cdot \left(4.16438922228 + \left(\color{blue}{\frac{\frac{3655.1204654076414}{x}}{x}} - 110.1139242984811 \cdot \frac{1}{x}\right)\right) \]
      4. metadata-eval90.1%

        \[\leadsto x \cdot \left(4.16438922228 + \left(\frac{\frac{\color{blue}{3655.1204654076414 \cdot 1}}{x}}{x} - 110.1139242984811 \cdot \frac{1}{x}\right)\right) \]
      5. associate-*r/90.1%

        \[\leadsto x \cdot \left(4.16438922228 + \left(\frac{\color{blue}{3655.1204654076414 \cdot \frac{1}{x}}}{x} - 110.1139242984811 \cdot \frac{1}{x}\right)\right) \]
      6. associate-*r/90.1%

        \[\leadsto x \cdot \left(4.16438922228 + \left(\frac{3655.1204654076414 \cdot \frac{1}{x}}{x} - \color{blue}{\frac{110.1139242984811 \cdot 1}{x}}\right)\right) \]
      7. metadata-eval90.1%

        \[\leadsto x \cdot \left(4.16438922228 + \left(\frac{3655.1204654076414 \cdot \frac{1}{x}}{x} - \frac{\color{blue}{110.1139242984811}}{x}\right)\right) \]
      8. div-sub90.1%

        \[\leadsto x \cdot \left(4.16438922228 + \color{blue}{\frac{3655.1204654076414 \cdot \frac{1}{x} - 110.1139242984811}{x}}\right) \]
      9. sub-neg90.1%

        \[\leadsto x \cdot \left(4.16438922228 + \frac{\color{blue}{3655.1204654076414 \cdot \frac{1}{x} + \left(-110.1139242984811\right)}}{x}\right) \]
      10. associate-*r/90.1%

        \[\leadsto x \cdot \left(4.16438922228 + \frac{\color{blue}{\frac{3655.1204654076414 \cdot 1}{x}} + \left(-110.1139242984811\right)}{x}\right) \]
      11. metadata-eval90.1%

        \[\leadsto x \cdot \left(4.16438922228 + \frac{\frac{\color{blue}{3655.1204654076414}}{x} + \left(-110.1139242984811\right)}{x}\right) \]
      12. metadata-eval90.1%

        \[\leadsto x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + \color{blue}{-110.1139242984811}}{x}\right) \]
    10. Simplified90.1%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification90.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -880000000000:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq 3600:\\ \;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 89.2% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -4800000000000:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq 30000:\\ \;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (<= x -4800000000000.0)
   (* x (- 4.16438922228 (/ 110.1139242984811 x)))
   (if (<= x 30000.0)
     (* (+ x -2.0) (+ (* z 0.0212463641547976) (* x (* y 0.0212463641547976))))
     (*
      (+ x -2.0)
      (-
       4.16438922228
       (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
	double tmp;
	if (x <= -4800000000000.0) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= 30000.0) {
		tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
	} else {
		tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if (x <= (-4800000000000.0d0)) then
        tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
    else if (x <= 30000.0d0) then
        tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * (y * 0.0212463641547976d0)))
    else
        tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if (x <= -4800000000000.0) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= 30000.0) {
		tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
	} else {
		tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if x <= -4800000000000.0:
		tmp = x * (4.16438922228 - (110.1139242984811 / x))
	elif x <= 30000.0:
		tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)))
	else:
		tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if (x <= -4800000000000.0)
		tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x)));
	elseif (x <= 30000.0)
		tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(y * 0.0212463641547976))));
	else
		tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x)));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if (x <= -4800000000000.0)
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	elseif (x <= 30000.0)
		tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
	else
		tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[LessEqual[x, -4800000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 30000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -4800000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\

\mathbf{elif}\;x \leq 30000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -4.8e12

    1. Initial program 14.8%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*18.0%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg18.0%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval18.0%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified18.0%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 94.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - 110.1139242984811 \cdot \frac{1}{x}\right)} \]
    6. Step-by-step derivation
      1. associate-*r/94.3%

        \[\leadsto x \cdot \left(4.16438922228 - \color{blue}{\frac{110.1139242984811 \cdot 1}{x}}\right) \]
      2. metadata-eval94.3%

        \[\leadsto x \cdot \left(4.16438922228 - \frac{\color{blue}{110.1139242984811}}{x}\right) \]
    7. Simplified94.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)} \]

    if -4.8e12 < x < 3e4

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.7%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.7%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.7%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 88.2%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(0.0212463641547976 \cdot z + x \cdot \left(0.0212463641547976 \cdot y - 0.14147091005106402 \cdot z\right)\right)} \]
    6. Taylor expanded in y around inf 88.1%

      \[\leadsto \left(x + -2\right) \cdot \left(0.0212463641547976 \cdot z + \color{blue}{0.0212463641547976 \cdot \left(x \cdot y\right)}\right) \]
    7. Step-by-step derivation
      1. associate-*r*88.1%

        \[\leadsto \left(x + -2\right) \cdot \left(0.0212463641547976 \cdot z + \color{blue}{\left(0.0212463641547976 \cdot x\right) \cdot y}\right) \]
      2. *-commutative88.1%

        \[\leadsto \left(x + -2\right) \cdot \left(0.0212463641547976 \cdot z + \color{blue}{\left(x \cdot 0.0212463641547976\right)} \cdot y\right) \]
      3. associate-*l*88.1%

        \[\leadsto \left(x + -2\right) \cdot \left(0.0212463641547976 \cdot z + \color{blue}{x \cdot \left(0.0212463641547976 \cdot y\right)}\right) \]
    8. Simplified88.1%

      \[\leadsto \left(x + -2\right) \cdot \left(0.0212463641547976 \cdot z + \color{blue}{x \cdot \left(0.0212463641547976 \cdot y\right)}\right) \]

    if 3e4 < x

    1. Initial program 19.2%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*24.7%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg24.7%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval24.7%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define24.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define24.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define24.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define24.6%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define24.6%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define24.6%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define24.6%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified24.6%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around -inf 90.2%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 + -1 \cdot \frac{101.7851458539211 - 3451.550173699799 \cdot \frac{1}{x}}{x}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg90.2%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 + \color{blue}{\left(-\frac{101.7851458539211 - 3451.550173699799 \cdot \frac{1}{x}}{x}\right)}\right) \]
      2. unsub-neg90.2%

        \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 - 3451.550173699799 \cdot \frac{1}{x}}{x}\right)} \]
      3. sub-neg90.2%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{\color{blue}{101.7851458539211 + \left(-3451.550173699799 \cdot \frac{1}{x}\right)}}{x}\right) \]
      4. associate-*r/90.2%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \left(-\color{blue}{\frac{3451.550173699799 \cdot 1}{x}}\right)}{x}\right) \]
      5. metadata-eval90.2%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \left(-\frac{\color{blue}{3451.550173699799}}{x}\right)}{x}\right) \]
      6. distribute-neg-frac90.2%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \color{blue}{\frac{-3451.550173699799}{x}}}{x}\right) \]
      7. metadata-eval90.2%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\color{blue}{-3451.550173699799}}{x}}{x}\right) \]
    7. Simplified90.2%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification90.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4800000000000:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq 30000:\\ \;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 89.2% accurate, 1.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -880000000000:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq 2:\\ \;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right) + z \cdot -0.0424927283095952\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (<= x -880000000000.0)
   (* x (- 4.16438922228 (/ 110.1139242984811 x)))
   (if (<= x 2.0)
     (+ (* x (* y -0.0424927283095952)) (* z -0.0424927283095952))
     (*
      x
      (+
       4.16438922228
       (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x))))))
double code(double x, double y, double z) {
	double tmp;
	if (x <= -880000000000.0) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= 2.0) {
		tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
	} else {
		tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if (x <= (-880000000000.0d0)) then
        tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
    else if (x <= 2.0d0) then
        tmp = (x * (y * (-0.0424927283095952d0))) + (z * (-0.0424927283095952d0))
    else
        tmp = x * (4.16438922228d0 + (((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if (x <= -880000000000.0) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= 2.0) {
		tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
	} else {
		tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if x <= -880000000000.0:
		tmp = x * (4.16438922228 - (110.1139242984811 / x))
	elif x <= 2.0:
		tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952)
	else:
		tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if (x <= -880000000000.0)
		tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x)));
	elseif (x <= 2.0)
		tmp = Float64(Float64(x * Float64(y * -0.0424927283095952)) + Float64(z * -0.0424927283095952));
	else
		tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x)));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if (x <= -880000000000.0)
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	elseif (x <= 2.0)
		tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
	else
		tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[LessEqual[x, -880000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -880000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\

\mathbf{elif}\;x \leq 2:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right) + z \cdot -0.0424927283095952\\

\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -8.8e11

    1. Initial program 14.8%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*18.0%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg18.0%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval18.0%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified18.0%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 94.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - 110.1139242984811 \cdot \frac{1}{x}\right)} \]
    6. Step-by-step derivation
      1. associate-*r/94.3%

        \[\leadsto x \cdot \left(4.16438922228 - \color{blue}{\frac{110.1139242984811 \cdot 1}{x}}\right) \]
      2. metadata-eval94.3%

        \[\leadsto x \cdot \left(4.16438922228 - \frac{\color{blue}{110.1139242984811}}{x}\right) \]
    7. Simplified94.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)} \]

    if -8.8e11 < x < 2

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.7%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.7%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.7%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 89.5%

      \[\leadsto \color{blue}{-0.0424927283095952 \cdot z + x \cdot \left(0.0212463641547976 \cdot \left(z + -2 \cdot y\right) - -0.28294182010212804 \cdot z\right)} \]
    6. Taylor expanded in z around 0 89.3%

      \[\leadsto -0.0424927283095952 \cdot z + \color{blue}{-0.0424927283095952 \cdot \left(x \cdot y\right)} \]
    7. Step-by-step derivation
      1. *-commutative89.3%

        \[\leadsto -0.0424927283095952 \cdot z + \color{blue}{\left(x \cdot y\right) \cdot -0.0424927283095952} \]
      2. associate-*l*89.4%

        \[\leadsto -0.0424927283095952 \cdot z + \color{blue}{x \cdot \left(y \cdot -0.0424927283095952\right)} \]
    8. Simplified89.4%

      \[\leadsto -0.0424927283095952 \cdot z + \color{blue}{x \cdot \left(y \cdot -0.0424927283095952\right)} \]

    if 2 < x

    1. Initial program 21.5%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Simplified26.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. fma-define26.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot 4.16438922228 + 78.6994924154}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      2. flip-+26.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154}{x \cdot 4.16438922228 - 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      3. frac-2neg26.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      4. sub-neg26.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\color{blue}{\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      5. pow226.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left(\color{blue}{{\left(x \cdot 4.16438922228\right)}^{2}} + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      6. metadata-eval26.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \left(-\color{blue}{6193.6101064416025}\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      7. metadata-eval26.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \color{blue}{-6193.6101064416025}\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      8. fma-neg26.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\color{blue}{\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      9. metadata-eval26.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, \color{blue}{-78.6994924154}\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    5. Applied egg-rr26.8%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    6. Step-by-step derivation
      1. neg-sub026.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{0 - \left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      2. +-commutative26.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{0 - \color{blue}{\left(-6193.6101064416025 + {\left(x \cdot 4.16438922228\right)}^{2}\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      3. associate--r+26.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{\left(0 - -6193.6101064416025\right) - {\left(x \cdot 4.16438922228\right)}^{2}}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      4. metadata-eval26.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{6193.6101064416025} - {\left(x \cdot 4.16438922228\right)}^{2}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      5. unpow226.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      6. swap-sqr26.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot x\right) \cdot \left(4.16438922228 \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      7. unpow226.8%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{{x}^{2}} \cdot \left(4.16438922228 \cdot 4.16438922228\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      8. metadata-eval26.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot \color{blue}{17.342137594641823}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      9. fma-undefine26.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{-\color{blue}{\left(x \cdot 4.16438922228 + -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      10. distribute-neg-in26.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{\left(-x \cdot 4.16438922228\right) + \left(--78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      11. distribute-rgt-neg-in26.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{x \cdot \left(-4.16438922228\right)} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      12. metadata-eval26.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot \color{blue}{-4.16438922228} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      13. metadata-eval26.9%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + \color{blue}{78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    7. Simplified26.9%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    8. Taylor expanded in x around inf 87.7%

      \[\leadsto \color{blue}{x \cdot \left(\left(4.16438922228 + \frac{3655.1204654076414}{{x}^{2}}\right) - 110.1139242984811 \cdot \frac{1}{x}\right)} \]
    9. Step-by-step derivation
      1. associate--l+87.7%

        \[\leadsto x \cdot \color{blue}{\left(4.16438922228 + \left(\frac{3655.1204654076414}{{x}^{2}} - 110.1139242984811 \cdot \frac{1}{x}\right)\right)} \]
      2. unpow287.7%

        \[\leadsto x \cdot \left(4.16438922228 + \left(\frac{3655.1204654076414}{\color{blue}{x \cdot x}} - 110.1139242984811 \cdot \frac{1}{x}\right)\right) \]
      3. associate-/r*87.7%

        \[\leadsto x \cdot \left(4.16438922228 + \left(\color{blue}{\frac{\frac{3655.1204654076414}{x}}{x}} - 110.1139242984811 \cdot \frac{1}{x}\right)\right) \]
      4. metadata-eval87.7%

        \[\leadsto x \cdot \left(4.16438922228 + \left(\frac{\frac{\color{blue}{3655.1204654076414 \cdot 1}}{x}}{x} - 110.1139242984811 \cdot \frac{1}{x}\right)\right) \]
      5. associate-*r/87.7%

        \[\leadsto x \cdot \left(4.16438922228 + \left(\frac{\color{blue}{3655.1204654076414 \cdot \frac{1}{x}}}{x} - 110.1139242984811 \cdot \frac{1}{x}\right)\right) \]
      6. associate-*r/87.7%

        \[\leadsto x \cdot \left(4.16438922228 + \left(\frac{3655.1204654076414 \cdot \frac{1}{x}}{x} - \color{blue}{\frac{110.1139242984811 \cdot 1}{x}}\right)\right) \]
      7. metadata-eval87.7%

        \[\leadsto x \cdot \left(4.16438922228 + \left(\frac{3655.1204654076414 \cdot \frac{1}{x}}{x} - \frac{\color{blue}{110.1139242984811}}{x}\right)\right) \]
      8. div-sub87.7%

        \[\leadsto x \cdot \left(4.16438922228 + \color{blue}{\frac{3655.1204654076414 \cdot \frac{1}{x} - 110.1139242984811}{x}}\right) \]
      9. sub-neg87.7%

        \[\leadsto x \cdot \left(4.16438922228 + \frac{\color{blue}{3655.1204654076414 \cdot \frac{1}{x} + \left(-110.1139242984811\right)}}{x}\right) \]
      10. associate-*r/87.7%

        \[\leadsto x \cdot \left(4.16438922228 + \frac{\color{blue}{\frac{3655.1204654076414 \cdot 1}{x}} + \left(-110.1139242984811\right)}{x}\right) \]
      11. metadata-eval87.7%

        \[\leadsto x \cdot \left(4.16438922228 + \frac{\frac{\color{blue}{3655.1204654076414}}{x} + \left(-110.1139242984811\right)}{x}\right) \]
      12. metadata-eval87.7%

        \[\leadsto x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + \color{blue}{-110.1139242984811}}{x}\right) \]
    10. Simplified87.7%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification90.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -880000000000:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq 2:\\ \;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right) + z \cdot -0.0424927283095952\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 89.2% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -880000000000:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq 2:\\ \;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right) + z \cdot -0.0424927283095952\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (<= x -880000000000.0)
   (* x (- 4.16438922228 (/ 110.1139242984811 x)))
   (if (<= x 2.0)
     (+ (* x (* y -0.0424927283095952)) (* z -0.0424927283095952))
     (* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
	double tmp;
	if (x <= -880000000000.0) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= 2.0) {
		tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
	} else {
		tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if (x <= (-880000000000.0d0)) then
        tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
    else if (x <= 2.0d0) then
        tmp = (x * (y * (-0.0424927283095952d0))) + (z * (-0.0424927283095952d0))
    else
        tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if (x <= -880000000000.0) {
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	} else if (x <= 2.0) {
		tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
	} else {
		tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if x <= -880000000000.0:
		tmp = x * (4.16438922228 - (110.1139242984811 / x))
	elif x <= 2.0:
		tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952)
	else:
		tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if (x <= -880000000000.0)
		tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x)));
	elseif (x <= 2.0)
		tmp = Float64(Float64(x * Float64(y * -0.0424927283095952)) + Float64(z * -0.0424927283095952));
	else
		tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x)));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if (x <= -880000000000.0)
		tmp = x * (4.16438922228 - (110.1139242984811 / x));
	elseif (x <= 2.0)
		tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
	else
		tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[LessEqual[x, -880000000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -880000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\

\mathbf{elif}\;x \leq 2:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right) + z \cdot -0.0424927283095952\\

\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -8.8e11

    1. Initial program 14.8%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*18.0%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg18.0%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval18.0%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define18.0%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified18.0%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 94.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - 110.1139242984811 \cdot \frac{1}{x}\right)} \]
    6. Step-by-step derivation
      1. associate-*r/94.3%

        \[\leadsto x \cdot \left(4.16438922228 - \color{blue}{\frac{110.1139242984811 \cdot 1}{x}}\right) \]
      2. metadata-eval94.3%

        \[\leadsto x \cdot \left(4.16438922228 - \frac{\color{blue}{110.1139242984811}}{x}\right) \]
    7. Simplified94.3%

      \[\leadsto \color{blue}{x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)} \]

    if -8.8e11 < x < 2

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.7%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.7%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.7%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 89.5%

      \[\leadsto \color{blue}{-0.0424927283095952 \cdot z + x \cdot \left(0.0212463641547976 \cdot \left(z + -2 \cdot y\right) - -0.28294182010212804 \cdot z\right)} \]
    6. Taylor expanded in z around 0 89.3%

      \[\leadsto -0.0424927283095952 \cdot z + \color{blue}{-0.0424927283095952 \cdot \left(x \cdot y\right)} \]
    7. Step-by-step derivation
      1. *-commutative89.3%

        \[\leadsto -0.0424927283095952 \cdot z + \color{blue}{\left(x \cdot y\right) \cdot -0.0424927283095952} \]
      2. associate-*l*89.4%

        \[\leadsto -0.0424927283095952 \cdot z + \color{blue}{x \cdot \left(y \cdot -0.0424927283095952\right)} \]
    8. Simplified89.4%

      \[\leadsto -0.0424927283095952 \cdot z + \color{blue}{x \cdot \left(y \cdot -0.0424927283095952\right)} \]

    if 2 < x

    1. Initial program 21.5%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*26.8%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg26.8%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval26.8%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define26.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define26.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define26.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define26.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define26.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define26.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define26.8%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified26.8%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 87.5%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - 101.7851458539211 \cdot \frac{1}{x}\right)} \]
    6. Step-by-step derivation
      1. associate-*r/87.5%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \color{blue}{\frac{101.7851458539211 \cdot 1}{x}}\right) \]
      2. metadata-eval87.5%

        \[\leadsto \left(x + -2\right) \cdot \left(4.16438922228 - \frac{\color{blue}{101.7851458539211}}{x}\right) \]
    7. Simplified87.5%

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(4.16438922228 - \frac{101.7851458539211}{x}\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification90.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -880000000000:\\ \;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\ \mathbf{elif}\;x \leq 2:\\ \;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right) + z \cdot -0.0424927283095952\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 76.3% accurate, 2.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -880000000000 \lor \neg \left(x \leq 5 \cdot 10^{-10}\right):\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{else}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= x -880000000000.0) (not (<= x 5e-10)))
   (* x 4.16438922228)
   (* z -0.0424927283095952)))
double code(double x, double y, double z) {
	double tmp;
	if ((x <= -880000000000.0) || !(x <= 5e-10)) {
		tmp = x * 4.16438922228;
	} else {
		tmp = z * -0.0424927283095952;
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: tmp
    if ((x <= (-880000000000.0d0)) .or. (.not. (x <= 5d-10))) then
        tmp = x * 4.16438922228d0
    else
        tmp = z * (-0.0424927283095952d0)
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((x <= -880000000000.0) || !(x <= 5e-10)) {
		tmp = x * 4.16438922228;
	} else {
		tmp = z * -0.0424927283095952;
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (x <= -880000000000.0) or not (x <= 5e-10):
		tmp = x * 4.16438922228
	else:
		tmp = z * -0.0424927283095952
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((x <= -880000000000.0) || !(x <= 5e-10))
		tmp = Float64(x * 4.16438922228);
	else
		tmp = Float64(z * -0.0424927283095952);
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((x <= -880000000000.0) || ~((x <= 5e-10)))
		tmp = x * 4.16438922228;
	else
		tmp = z * -0.0424927283095952;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[x, -880000000000.0], N[Not[LessEqual[x, 5e-10]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -880000000000 \lor \neg \left(x \leq 5 \cdot 10^{-10}\right):\\
\;\;\;\;x \cdot 4.16438922228\\

\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -8.8e11 or 5.00000000000000031e-10 < x

    1. Initial program 19.0%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Simplified23.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. fma-define23.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot 4.16438922228 + 78.6994924154}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      2. flip-+23.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154}{x \cdot 4.16438922228 - 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      3. frac-2neg23.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      4. sub-neg23.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\color{blue}{\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      5. pow223.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left(\color{blue}{{\left(x \cdot 4.16438922228\right)}^{2}} + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      6. metadata-eval23.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \left(-\color{blue}{6193.6101064416025}\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      7. metadata-eval23.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \color{blue}{-6193.6101064416025}\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      8. fma-neg23.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\color{blue}{\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      9. metadata-eval23.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, \color{blue}{-78.6994924154}\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    5. Applied egg-rr23.3%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    6. Step-by-step derivation
      1. neg-sub023.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{0 - \left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      2. +-commutative23.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{0 - \color{blue}{\left(-6193.6101064416025 + {\left(x \cdot 4.16438922228\right)}^{2}\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      3. associate--r+23.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{\left(0 - -6193.6101064416025\right) - {\left(x \cdot 4.16438922228\right)}^{2}}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      4. metadata-eval23.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{6193.6101064416025} - {\left(x \cdot 4.16438922228\right)}^{2}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      5. unpow223.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      6. swap-sqr23.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot x\right) \cdot \left(4.16438922228 \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      7. unpow223.3%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{{x}^{2}} \cdot \left(4.16438922228 \cdot 4.16438922228\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      8. metadata-eval23.4%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot \color{blue}{17.342137594641823}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      9. fma-undefine23.4%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{-\color{blue}{\left(x \cdot 4.16438922228 + -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      10. distribute-neg-in23.4%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{\left(-x \cdot 4.16438922228\right) + \left(--78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      11. distribute-rgt-neg-in23.4%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{x \cdot \left(-4.16438922228\right)} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      12. metadata-eval23.4%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot \color{blue}{-4.16438922228} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
      13. metadata-eval23.4%

        \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + \color{blue}{78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    7. Simplified23.4%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    8. Taylor expanded in x around inf 89.4%

      \[\leadsto \color{blue}{4.16438922228 \cdot x} \]
    9. Step-by-step derivation
      1. *-commutative89.4%

        \[\leadsto \color{blue}{x \cdot 4.16438922228} \]
    10. Simplified89.4%

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

    if -8.8e11 < x < 5.00000000000000031e-10

    1. Initial program 99.7%

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Step-by-step derivation
      1. associate-/l*99.7%

        \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
      2. sub-neg99.7%

        \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      3. metadata-eval99.7%

        \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      4. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      5. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      6. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      7. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
      8. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
      9. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
      10. fma-define99.7%

        \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around 0 64.2%

      \[\leadsto \color{blue}{-0.0424927283095952 \cdot z} \]
    6. Step-by-step derivation
      1. *-commutative64.2%

        \[\leadsto \color{blue}{z \cdot -0.0424927283095952} \]
    7. Simplified64.2%

      \[\leadsto \color{blue}{z \cdot -0.0424927283095952} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification77.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -880000000000 \lor \neg \left(x \leq 5 \cdot 10^{-10}\right):\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{else}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 45.1% accurate, 12.3× speedup?

\[\begin{array}{l} \\ x \cdot 4.16438922228 \end{array} \]
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
	return x * 4.16438922228;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
	return x * 4.16438922228;
}
def code(x, y, z):
	return x * 4.16438922228
function code(x, y, z)
	return Float64(x * 4.16438922228)
end
function tmp = code(x, y, z)
	tmp = x * 4.16438922228;
end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}

\\
x \cdot 4.16438922228
\end{array}
Derivation
  1. Initial program 58.1%

    \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
  2. Simplified60.2%

    \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}} \]
  3. Add Preprocessing
  4. Step-by-step derivation
    1. fma-define60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot 4.16438922228 + 78.6994924154}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    2. flip-+60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154}{x \cdot 4.16438922228 - 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    3. frac-2neg60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) - 78.6994924154 \cdot 78.6994924154\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    4. sub-neg60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\color{blue}{\left(\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right) + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    5. pow260.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left(\color{blue}{{\left(x \cdot 4.16438922228\right)}^{2}} + \left(-78.6994924154 \cdot 78.6994924154\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    6. metadata-eval60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \left(-\color{blue}{6193.6101064416025}\right)\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    7. metadata-eval60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + \color{blue}{-6193.6101064416025}\right)}{-\left(x \cdot 4.16438922228 - 78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    8. fma-neg60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\color{blue}{\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    9. metadata-eval60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, \color{blue}{-78.6994924154}\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
  5. Applied egg-rr60.2%

    \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{-\left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
  6. Step-by-step derivation
    1. neg-sub060.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{0 - \left({\left(x \cdot 4.16438922228\right)}^{2} + -6193.6101064416025\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    2. +-commutative60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{0 - \color{blue}{\left(-6193.6101064416025 + {\left(x \cdot 4.16438922228\right)}^{2}\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    3. associate--r+60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{\left(0 - -6193.6101064416025\right) - {\left(x \cdot 4.16438922228\right)}^{2}}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    4. metadata-eval60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\color{blue}{6193.6101064416025} - {\left(x \cdot 4.16438922228\right)}^{2}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    5. unpow260.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot 4.16438922228\right) \cdot \left(x \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    6. swap-sqr60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{\left(x \cdot x\right) \cdot \left(4.16438922228 \cdot 4.16438922228\right)}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    7. unpow260.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - \color{blue}{{x}^{2}} \cdot \left(4.16438922228 \cdot 4.16438922228\right)}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    8. metadata-eval60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot \color{blue}{17.342137594641823}}{-\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    9. fma-undefine60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{-\color{blue}{\left(x \cdot 4.16438922228 + -78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    10. distribute-neg-in60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{\left(-x \cdot 4.16438922228\right) + \left(--78.6994924154\right)}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    11. distribute-rgt-neg-in60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{\color{blue}{x \cdot \left(-4.16438922228\right)} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    12. metadata-eval60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot \color{blue}{-4.16438922228} + \left(--78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
    13. metadata-eval60.2%

      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + \color{blue}{78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
  7. Simplified60.2%

    \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{6193.6101064416025 - {x}^{2} \cdot 17.342137594641823}{x \cdot -4.16438922228 + 78.6994924154}}, 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)} \]
  8. Taylor expanded in x around inf 47.8%

    \[\leadsto \color{blue}{4.16438922228 \cdot x} \]
  9. Step-by-step derivation
    1. *-commutative47.8%

      \[\leadsto \color{blue}{x \cdot 4.16438922228} \]
  10. Simplified47.8%

    \[\leadsto \color{blue}{x \cdot 4.16438922228} \]
  11. Final simplification47.8%

    \[\leadsto x \cdot 4.16438922228 \]
  12. Add Preprocessing

Alternative 22: 3.3% accurate, 37.0× speedup?

\[\begin{array}{l} \\ -8.32877844456 \end{array} \]
(FPCore (x y z) :precision binary64 -8.32877844456)
double code(double x, double y, double z) {
	return -8.32877844456;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = -8.32877844456d0
end function
public static double code(double x, double y, double z) {
	return -8.32877844456;
}
def code(x, y, z):
	return -8.32877844456
function code(x, y, z)
	return -8.32877844456
end
function tmp = code(x, y, z)
	tmp = -8.32877844456;
end
code[x_, y_, z_] := -8.32877844456
\begin{array}{l}

\\
-8.32877844456
\end{array}
Derivation
  1. Initial program 58.1%

    \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
  2. Step-by-step derivation
    1. associate-/l*60.3%

      \[\leadsto \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}} \]
    2. sub-neg60.3%

      \[\leadsto \color{blue}{\left(x + \left(-2\right)\right)} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    3. metadata-eval60.3%

      \[\leadsto \left(x + \color{blue}{-2}\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    4. fma-define60.3%

      \[\leadsto \left(x + -2\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y, x, z\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    5. fma-define60.3%

      \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416, x, y\right)}, x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    6. fma-define60.3%

      \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot 4.16438922228 + 78.6994924154, x, 137.519416416\right)}, x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    7. fma-define60.3%

      \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    8. fma-define60.3%

      \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894, x, 47.066876606\right)}} \]
    9. fma-define60.3%

      \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721, x, 313.399215894\right)}, x, 47.066876606\right)} \]
    10. fma-define60.3%

      \[\leadsto \left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right)}, x, 313.399215894\right), x, 47.066876606\right)} \]
  3. Simplified60.3%

    \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}} \]
  4. Add Preprocessing
  5. Taylor expanded in x around inf 47.8%

    \[\leadsto \left(x + -2\right) \cdot \color{blue}{4.16438922228} \]
  6. Taylor expanded in x around 0 3.2%

    \[\leadsto \color{blue}{-8.32877844456} \]
  7. Final simplification3.2%

    \[\leadsto -8.32877844456 \]
  8. Add Preprocessing

Developer target: 98.7% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\ \mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\ \;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\ \mathbf{else}:\\ \;\;\;\;t\_0\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
   (if (< x -3.326128725870005e+62)
     t_0
     (if (< x 9.429991714554673e+55)
       (*
        (/ (- x 2.0) 1.0)
        (/
         (+
          (*
           (+
            (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
            y)
           x)
          z)
         (+
          (*
           (+
            (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
            313.399215894)
           x)
          47.066876606)))
       t_0))))
double code(double x, double y, double z) {
	double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
	double tmp;
	if (x < -3.326128725870005e+62) {
		tmp = t_0;
	} else if (x < 9.429991714554673e+55) {
		tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
	} else {
		tmp = t_0;
	}
	return tmp;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: t_0
    real(8) :: tmp
    t_0 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
    if (x < (-3.326128725870005d+62)) then
        tmp = t_0
    else if (x < 9.429991714554673d+55) then
        tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
    else
        tmp = t_0
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
	double tmp;
	if (x < -3.326128725870005e+62) {
		tmp = t_0;
	} else if (x < 9.429991714554673e+55) {
		tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
	} else {
		tmp = t_0;
	}
	return tmp;
}
def code(x, y, z):
	t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811
	tmp = 0
	if x < -3.326128725870005e+62:
		tmp = t_0
	elif x < 9.429991714554673e+55:
		tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606))
	else:
		tmp = t_0
	return tmp
function code(x, y, z)
	t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811)
	tmp = 0.0
	if (x < -3.326128725870005e+62)
		tmp = t_0;
	elseif (x < 9.429991714554673e+55)
		tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606)));
	else
		tmp = t_0;
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
	tmp = 0.0;
	if (x < -3.326128725870005e+62)
		tmp = t_0;
	elseif (x < 9.429991714554673e+55)
		tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
	else
		tmp = t_0;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t\_0\\

\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\

\mathbf{else}:\\
\;\;\;\;t\_0\\


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2024096 
(FPCore (x y z)
  :name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
  :precision binary64

  :alt
  (if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))

  (/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))