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

Percentage Accurate: 68.4% → 99.7%
Time: 9.7s
Alternatives: 13
Speedup: 2.3×

Specification

?
\[\begin{array}{l} \\ x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (+
  x
  (/
   (*
    y
    (+
     (* (+ (* z 0.0692910599291889) 0.4917317610505968) z)
     0.279195317918525))
   (+ (* (+ z 6.012459259764103) z) 3.350343815022304))))
double code(double x, double y, double z) {
	return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = x + ((y * ((((z * 0.0692910599291889d0) + 0.4917317610505968d0) * z) + 0.279195317918525d0)) / (((z + 6.012459259764103d0) * z) + 3.350343815022304d0))
end function
public static double code(double x, double y, double z) {
	return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
}
def code(x, y, z):
	return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304))
function code(x, y, z)
	return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / Float64(Float64(Float64(z + 6.012459259764103) * z) + 3.350343815022304)))
end
function tmp = code(x, y, z)
	tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
end
code[x_, y_, z_] := N[(x + N[(N[(y * N[(N[(N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision] * z), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(z + 6.012459259764103), $MachinePrecision] * z), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}
\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 13 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: 68.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (+
  x
  (/
   (*
    y
    (+
     (* (+ (* z 0.0692910599291889) 0.4917317610505968) z)
     0.279195317918525))
   (+ (* (+ z 6.012459259764103) z) 3.350343815022304))))
double code(double x, double y, double z) {
	return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = x + ((y * ((((z * 0.0692910599291889d0) + 0.4917317610505968d0) * z) + 0.279195317918525d0)) / (((z + 6.012459259764103d0) * z) + 3.350343815022304d0))
end function
public static double code(double x, double y, double z) {
	return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
}
def code(x, y, z):
	return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304))
function code(x, y, z)
	return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / Float64(Float64(Float64(z + 6.012459259764103) * z) + 3.350343815022304)))
end
function tmp = code(x, y, z)
	tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
end
code[x_, y_, z_] := N[(x + N[(N[(y * N[(N[(N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision] * z), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(z + 6.012459259764103), $MachinePrecision] * z), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}
\end{array}

Alternative 1: 99.7% accurate, 0.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} \leq 10^{+305}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}, x\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{14.431876219268936}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (<=
      (/
       (*
        y
        (+
         (* z (+ (* z 0.0692910599291889) 0.4917317610505968))
         0.279195317918525))
       (+ (* z (+ z 6.012459259764103)) 3.350343815022304))
      1e+305)
   (fma
    y
    (/
     (fma z (fma z 0.0692910599291889 0.4917317610505968) 0.279195317918525)
     (fma z (+ z 6.012459259764103) 3.350343815022304))
    x)
   (+ x (/ y 14.431876219268936))))
double code(double x, double y, double z) {
	double tmp;
	if (((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) <= 1e+305) {
		tmp = fma(y, (fma(z, fma(z, 0.0692910599291889, 0.4917317610505968), 0.279195317918525) / fma(z, (z + 6.012459259764103), 3.350343815022304)), x);
	} else {
		tmp = x + (y / 14.431876219268936);
	}
	return tmp;
}
function code(x, y, z)
	tmp = 0.0
	if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) <= 1e+305)
		tmp = fma(y, Float64(fma(z, fma(z, 0.0692910599291889, 0.4917317610505968), 0.279195317918525) / fma(z, Float64(z + 6.012459259764103), 3.350343815022304)), x);
	else
		tmp = Float64(x + Float64(y / 14.431876219268936));
	end
	return tmp
end
code[x_, y_, z_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision], 1e+305], N[(y * N[(N[(z * N[(z * 0.0692910599291889 + 0.4917317610505968), $MachinePrecision] + 0.279195317918525), $MachinePrecision] / N[(z * N[(z + 6.012459259764103), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} \leq 10^{+305}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}, x\right)\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) < 9.9999999999999994e304

    1. Initial program 95.2%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. +-commutative95.2%

        \[\leadsto \color{blue}{\frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} + x} \]
      2. associate-*r/99.7%

        \[\leadsto \color{blue}{y \cdot \frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}} + x \]
      3. fma-def99.7%

        \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right)} \]
      4. *-commutative99.7%

        \[\leadsto \mathsf{fma}\left(y, \frac{\color{blue}{z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right)} + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
      5. fma-def99.7%

        \[\leadsto \mathsf{fma}\left(y, \frac{\color{blue}{\mathsf{fma}\left(z, z \cdot 0.0692910599291889 + 0.4917317610505968, 0.279195317918525\right)}}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
      6. fma-def99.7%

        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
      7. *-commutative99.7%

        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\color{blue}{z \cdot \left(z + 6.012459259764103\right)} + 3.350343815022304}, x\right) \]
      8. fma-def99.7%

        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\color{blue}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}}, x\right) \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}, x\right)} \]

    if 9.9999999999999994e304 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000))

    1. Initial program 0.2%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*8.4%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def8.4%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def8.4%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def8.4%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified8.4%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around inf 99.9%

      \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification99.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} \leq 10^{+305}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}, x\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{14.431876219268936}\\ \end{array} \]

Alternative 2: 99.5% accurate, 0.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} \leq 10^{+305}:\\ \;\;\;\;x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{14.431876219268936}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (<=
      (/
       (*
        y
        (+
         (* z (+ (* z 0.0692910599291889) 0.4917317610505968))
         0.279195317918525))
       (+ (* z (+ z 6.012459259764103)) 3.350343815022304))
      1e+305)
   (+
    x
    (/
     y
     (/
      (fma (+ z 6.012459259764103) z 3.350343815022304)
      (fma
       (fma z 0.0692910599291889 0.4917317610505968)
       z
       0.279195317918525))))
   (+ x (/ y 14.431876219268936))))
double code(double x, double y, double z) {
	double tmp;
	if (((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) <= 1e+305) {
		tmp = x + (y / (fma((z + 6.012459259764103), z, 3.350343815022304) / fma(fma(z, 0.0692910599291889, 0.4917317610505968), z, 0.279195317918525)));
	} else {
		tmp = x + (y / 14.431876219268936);
	}
	return tmp;
}
function code(x, y, z)
	tmp = 0.0
	if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) <= 1e+305)
		tmp = Float64(x + Float64(y / Float64(fma(Float64(z + 6.012459259764103), z, 3.350343815022304) / fma(fma(z, 0.0692910599291889, 0.4917317610505968), z, 0.279195317918525))));
	else
		tmp = Float64(x + Float64(y / 14.431876219268936));
	end
	return tmp
end
code[x_, y_, z_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision], 1e+305], N[(x + N[(y / N[(N[(N[(z + 6.012459259764103), $MachinePrecision] * z + 3.350343815022304), $MachinePrecision] / N[(N[(z * 0.0692910599291889 + 0.4917317610505968), $MachinePrecision] * z + 0.279195317918525), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} \leq 10^{+305}:\\
\;\;\;\;x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) < 9.9999999999999994e304

    1. Initial program 95.2%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*99.3%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def99.3%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def99.3%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def99.3%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified99.3%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]

    if 9.9999999999999994e304 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000))

    1. Initial program 0.2%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*8.4%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def8.4%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def8.4%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def8.4%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified8.4%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around inf 99.9%

      \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification99.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} \leq 10^{+305}:\\ \;\;\;\;x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{14.431876219268936}\\ \end{array} \]

Alternative 3: 98.7% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304\\ t_1 := z \cdot 0.0692910599291889 + 0.4917317610505968\\ \mathbf{if}\;\frac{y \cdot \left(z \cdot t_1 + 0.279195317918525\right)}{t_0} \leq 10^{+305}:\\ \;\;\;\;x + \frac{y}{t_0} \cdot \mathsf{fma}\left(z, t_1, 0.279195317918525\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{14.431876219268936}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (let* ((t_0 (+ (* z (+ z 6.012459259764103)) 3.350343815022304))
        (t_1 (+ (* z 0.0692910599291889) 0.4917317610505968)))
   (if (<= (/ (* y (+ (* z t_1) 0.279195317918525)) t_0) 1e+305)
     (+ x (* (/ y t_0) (fma z t_1 0.279195317918525)))
     (+ x (/ y 14.431876219268936)))))
double code(double x, double y, double z) {
	double t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304;
	double t_1 = (z * 0.0692910599291889) + 0.4917317610505968;
	double tmp;
	if (((y * ((z * t_1) + 0.279195317918525)) / t_0) <= 1e+305) {
		tmp = x + ((y / t_0) * fma(z, t_1, 0.279195317918525));
	} else {
		tmp = x + (y / 14.431876219268936);
	}
	return tmp;
}
function code(x, y, z)
	t_0 = Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)
	t_1 = Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)
	tmp = 0.0
	if (Float64(Float64(y * Float64(Float64(z * t_1) + 0.279195317918525)) / t_0) <= 1e+305)
		tmp = Float64(x + Float64(Float64(y / t_0) * fma(z, t_1, 0.279195317918525)));
	else
		tmp = Float64(x + Float64(y / 14.431876219268936));
	end
	return tmp
end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]}, Block[{t$95$1 = N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]}, If[LessEqual[N[(N[(y * N[(N[(z * t$95$1), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+305], N[(x + N[(N[(y / t$95$0), $MachinePrecision] * N[(z * t$95$1 + 0.279195317918525), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304\\
t_1 := z \cdot 0.0692910599291889 + 0.4917317610505968\\
\mathbf{if}\;\frac{y \cdot \left(z \cdot t_1 + 0.279195317918525\right)}{t_0} \leq 10^{+305}:\\
\;\;\;\;x + \frac{y}{t_0} \cdot \mathsf{fma}\left(z, t_1, 0.279195317918525\right)\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) < 9.9999999999999994e304

    1. Initial program 95.2%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-*l/97.9%

        \[\leadsto x + \color{blue}{\frac{y}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)} \]
      2. *-commutative97.9%

        \[\leadsto x + \frac{y}{\color{blue}{z \cdot \left(z + 6.012459259764103\right)} + 3.350343815022304} \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right) \]
      3. fma-def97.9%

        \[\leadsto x + \frac{y}{\color{blue}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}} \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right) \]
      4. *-commutative97.9%

        \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \left(\color{blue}{z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right)} + 0.279195317918525\right) \]
      5. fma-def97.9%

        \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \color{blue}{\mathsf{fma}\left(z, z \cdot 0.0692910599291889 + 0.4917317610505968, 0.279195317918525\right)} \]
      6. fma-def97.9%

        \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, 0.279195317918525\right) \]
    3. Simplified97.9%

      \[\leadsto \color{blue}{x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)} \]
    4. Step-by-step derivation
      1. fma-def97.9%

        \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \mathsf{fma}\left(z, \color{blue}{z \cdot 0.0692910599291889 + 0.4917317610505968}, 0.279195317918525\right) \]
    5. Applied egg-rr97.9%

      \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \mathsf{fma}\left(z, \color{blue}{z \cdot 0.0692910599291889 + 0.4917317610505968}, 0.279195317918525\right) \]
    6. Taylor expanded in y around 0 98.0%

      \[\leadsto x + \color{blue}{\frac{y}{3.350343815022304 + \left(6.012459259764103 + z\right) \cdot z}} \cdot \mathsf{fma}\left(z, z \cdot 0.0692910599291889 + 0.4917317610505968, 0.279195317918525\right) \]

    if 9.9999999999999994e304 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000))

    1. Initial program 0.2%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*8.4%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def8.4%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def8.4%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def8.4%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified8.4%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around inf 99.9%

      \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} \leq 10^{+305}:\\ \;\;\;\;x + \frac{y}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} \cdot \mathsf{fma}\left(z, z \cdot 0.0692910599291889 + 0.4917317610505968, 0.279195317918525\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{14.431876219268936}\\ \end{array} \]

Alternative 4: 99.7% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3 \cdot 10^{+17}:\\ \;\;\;\;x + \frac{y}{14.431876219268936}\\ \mathbf{elif}\;z \leq 600000:\\ \;\;\;\;x + \frac{z \cdot \left(y \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right)\right) + y \cdot 0.279195317918525}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (<= z -3e+17)
   (+ x (/ y 14.431876219268936))
   (if (<= z 600000.0)
     (+
      x
      (/
       (+
        (* z (* y (+ (* z 0.0692910599291889) 0.4917317610505968)))
        (* y 0.279195317918525))
       (+ (* z (+ z 6.012459259764103)) 3.350343815022304)))
     (+
      x
      (/
       y
       (+
        14.431876219268936
        (- (/ 101.23733352003822 (* z z)) (/ 15.646356830292042 z))))))))
double code(double x, double y, double z) {
	double tmp;
	if (z <= -3e+17) {
		tmp = x + (y / 14.431876219268936);
	} else if (z <= 600000.0) {
		tmp = x + (((z * (y * ((z * 0.0692910599291889) + 0.4917317610505968))) + (y * 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304));
	} else {
		tmp = x + (y / (14.431876219268936 + ((101.23733352003822 / (z * z)) - (15.646356830292042 / z))));
	}
	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 (z <= (-3d+17)) then
        tmp = x + (y / 14.431876219268936d0)
    else if (z <= 600000.0d0) then
        tmp = x + (((z * (y * ((z * 0.0692910599291889d0) + 0.4917317610505968d0))) + (y * 0.279195317918525d0)) / ((z * (z + 6.012459259764103d0)) + 3.350343815022304d0))
    else
        tmp = x + (y / (14.431876219268936d0 + ((101.23733352003822d0 / (z * z)) - (15.646356830292042d0 / z))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if (z <= -3e+17) {
		tmp = x + (y / 14.431876219268936);
	} else if (z <= 600000.0) {
		tmp = x + (((z * (y * ((z * 0.0692910599291889) + 0.4917317610505968))) + (y * 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304));
	} else {
		tmp = x + (y / (14.431876219268936 + ((101.23733352003822 / (z * z)) - (15.646356830292042 / z))));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if z <= -3e+17:
		tmp = x + (y / 14.431876219268936)
	elif z <= 600000.0:
		tmp = x + (((z * (y * ((z * 0.0692910599291889) + 0.4917317610505968))) + (y * 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304))
	else:
		tmp = x + (y / (14.431876219268936 + ((101.23733352003822 / (z * z)) - (15.646356830292042 / z))))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if (z <= -3e+17)
		tmp = Float64(x + Float64(y / 14.431876219268936));
	elseif (z <= 600000.0)
		tmp = Float64(x + Float64(Float64(Float64(z * Float64(y * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968))) + Float64(y * 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)));
	else
		tmp = Float64(x + Float64(y / Float64(14.431876219268936 + Float64(Float64(101.23733352003822 / Float64(z * z)) - Float64(15.646356830292042 / z)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if (z <= -3e+17)
		tmp = x + (y / 14.431876219268936);
	elseif (z <= 600000.0)
		tmp = x + (((z * (y * ((z * 0.0692910599291889) + 0.4917317610505968))) + (y * 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304));
	else
		tmp = x + (y / (14.431876219268936 + ((101.23733352003822 / (z * z)) - (15.646356830292042 / z))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[LessEqual[z, -3e+17], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 600000.0], N[(x + N[(N[(N[(z * N[(y * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(14.431876219268936 + N[(N[(101.23733352003822 / N[(z * z), $MachinePrecision]), $MachinePrecision] - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{+17}:\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\

\mathbf{elif}\;z \leq 600000:\\
\;\;\;\;x + \frac{z \cdot \left(y \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right)\right) + y \cdot 0.279195317918525}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -3e17

    1. Initial program 29.0%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*45.6%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def45.6%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def45.6%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def45.6%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified45.6%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around inf 99.9%

      \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936}} \]

    if -3e17 < z < 6e5

    1. Initial program 99.6%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. distribute-lft-in99.5%

        \[\leadsto x + \frac{\color{blue}{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z\right) + y \cdot 0.279195317918525}}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
      2. *-commutative99.5%

        \[\leadsto x + \frac{\color{blue}{\left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z\right) \cdot y} + y \cdot 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
      3. fma-def99.5%

        \[\leadsto x + \frac{\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)} \cdot z\right) \cdot y + y \cdot 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
      4. *-commutative99.5%

        \[\leadsto x + \frac{\color{blue}{\left(z \cdot \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)\right)} \cdot y + y \cdot 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
      5. associate-*l*99.6%

        \[\leadsto x + \frac{\color{blue}{z \cdot \left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right) \cdot y\right)} + y \cdot 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    3. Applied egg-rr99.6%

      \[\leadsto x + \frac{\color{blue}{z \cdot \left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right) \cdot y\right) + y \cdot 0.279195317918525}}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    4. Step-by-step derivation
      1. fma-def99.5%

        \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \mathsf{fma}\left(z, \color{blue}{z \cdot 0.0692910599291889 + 0.4917317610505968}, 0.279195317918525\right) \]
    5. Applied egg-rr99.6%

      \[\leadsto x + \frac{z \cdot \left(\color{blue}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right)} \cdot y\right) + y \cdot 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]

    if 6e5 < z

    1. Initial program 37.7%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*40.9%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def40.9%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def40.9%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def40.9%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified40.9%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around inf 100.0%

      \[\leadsto x + \frac{y}{\color{blue}{\left(14.431876219268936 + 101.23733352003822 \cdot \frac{1}{{z}^{2}}\right) - 15.646356830292042 \cdot \frac{1}{z}}} \]
    5. Step-by-step derivation
      1. associate-*r/100.0%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \color{blue}{\frac{101.23733352003822 \cdot 1}{{z}^{2}}}\right) - 15.646356830292042 \cdot \frac{1}{z}} \]
      2. metadata-eval100.0%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \frac{\color{blue}{101.23733352003822}}{{z}^{2}}\right) - 15.646356830292042 \cdot \frac{1}{z}} \]
      3. unpow2100.0%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \frac{101.23733352003822}{\color{blue}{z \cdot z}}\right) - 15.646356830292042 \cdot \frac{1}{z}} \]
      4. associate-*r/100.0%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \frac{101.23733352003822}{z \cdot z}\right) - \color{blue}{\frac{15.646356830292042 \cdot 1}{z}}} \]
      5. metadata-eval100.0%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \frac{101.23733352003822}{z \cdot z}\right) - \frac{\color{blue}{15.646356830292042}}{z}} \]
    6. Simplified100.0%

      \[\leadsto x + \frac{y}{\color{blue}{\left(14.431876219268936 + \frac{101.23733352003822}{z \cdot z}\right) - \frac{15.646356830292042}{z}}} \]
    7. Step-by-step derivation
      1. associate--l+100.0%

        \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}} \]
    8. Applied egg-rr100.0%

      \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification99.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3 \cdot 10^{+17}:\\ \;\;\;\;x + \frac{y}{14.431876219268936}\\ \mathbf{elif}\;z \leq 600000:\\ \;\;\;\;x + \frac{z \cdot \left(y \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right)\right) + y \cdot 0.279195317918525}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}\\ \end{array} \]

Alternative 5: 99.7% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3 \cdot 10^{+17}:\\ \;\;\;\;x + \frac{y}{14.431876219268936}\\ \mathbf{elif}\;z \leq 850000:\\ \;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} + x\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (<= z -3e+17)
   (+ x (/ y 14.431876219268936))
   (if (<= z 850000.0)
     (+
      (/
       (*
        y
        (+
         (* z (+ (* z 0.0692910599291889) 0.4917317610505968))
         0.279195317918525))
       (+ (* z (+ z 6.012459259764103)) 3.350343815022304))
      x)
     (+
      x
      (/
       y
       (+
        14.431876219268936
        (- (/ 101.23733352003822 (* z z)) (/ 15.646356830292042 z))))))))
double code(double x, double y, double z) {
	double tmp;
	if (z <= -3e+17) {
		tmp = x + (y / 14.431876219268936);
	} else if (z <= 850000.0) {
		tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x;
	} else {
		tmp = x + (y / (14.431876219268936 + ((101.23733352003822 / (z * z)) - (15.646356830292042 / z))));
	}
	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 (z <= (-3d+17)) then
        tmp = x + (y / 14.431876219268936d0)
    else if (z <= 850000.0d0) then
        tmp = ((y * ((z * ((z * 0.0692910599291889d0) + 0.4917317610505968d0)) + 0.279195317918525d0)) / ((z * (z + 6.012459259764103d0)) + 3.350343815022304d0)) + x
    else
        tmp = x + (y / (14.431876219268936d0 + ((101.23733352003822d0 / (z * z)) - (15.646356830292042d0 / z))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if (z <= -3e+17) {
		tmp = x + (y / 14.431876219268936);
	} else if (z <= 850000.0) {
		tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x;
	} else {
		tmp = x + (y / (14.431876219268936 + ((101.23733352003822 / (z * z)) - (15.646356830292042 / z))));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if z <= -3e+17:
		tmp = x + (y / 14.431876219268936)
	elif z <= 850000.0:
		tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x
	else:
		tmp = x + (y / (14.431876219268936 + ((101.23733352003822 / (z * z)) - (15.646356830292042 / z))))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if (z <= -3e+17)
		tmp = Float64(x + Float64(y / 14.431876219268936));
	elseif (z <= 850000.0)
		tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) + x);
	else
		tmp = Float64(x + Float64(y / Float64(14.431876219268936 + Float64(Float64(101.23733352003822 / Float64(z * z)) - Float64(15.646356830292042 / z)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if (z <= -3e+17)
		tmp = x + (y / 14.431876219268936);
	elseif (z <= 850000.0)
		tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x;
	else
		tmp = x + (y / (14.431876219268936 + ((101.23733352003822 / (z * z)) - (15.646356830292042 / z))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[LessEqual[z, -3e+17], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 850000.0], N[(N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(y / N[(14.431876219268936 + N[(N[(101.23733352003822 / N[(z * z), $MachinePrecision]), $MachinePrecision] - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{+17}:\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\

\mathbf{elif}\;z \leq 850000:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} + x\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -3e17

    1. Initial program 29.0%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*45.6%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def45.6%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def45.6%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def45.6%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified45.6%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around inf 99.9%

      \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936}} \]

    if -3e17 < z < 8.5e5

    1. Initial program 99.6%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]

    if 8.5e5 < z

    1. Initial program 37.7%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*40.9%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def40.9%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def40.9%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def40.9%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified40.9%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around inf 100.0%

      \[\leadsto x + \frac{y}{\color{blue}{\left(14.431876219268936 + 101.23733352003822 \cdot \frac{1}{{z}^{2}}\right) - 15.646356830292042 \cdot \frac{1}{z}}} \]
    5. Step-by-step derivation
      1. associate-*r/100.0%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \color{blue}{\frac{101.23733352003822 \cdot 1}{{z}^{2}}}\right) - 15.646356830292042 \cdot \frac{1}{z}} \]
      2. metadata-eval100.0%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \frac{\color{blue}{101.23733352003822}}{{z}^{2}}\right) - 15.646356830292042 \cdot \frac{1}{z}} \]
      3. unpow2100.0%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \frac{101.23733352003822}{\color{blue}{z \cdot z}}\right) - 15.646356830292042 \cdot \frac{1}{z}} \]
      4. associate-*r/100.0%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \frac{101.23733352003822}{z \cdot z}\right) - \color{blue}{\frac{15.646356830292042 \cdot 1}{z}}} \]
      5. metadata-eval100.0%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \frac{101.23733352003822}{z \cdot z}\right) - \frac{\color{blue}{15.646356830292042}}{z}} \]
    6. Simplified100.0%

      \[\leadsto x + \frac{y}{\color{blue}{\left(14.431876219268936 + \frac{101.23733352003822}{z \cdot z}\right) - \frac{15.646356830292042}{z}}} \]
    7. Step-by-step derivation
      1. associate--l+100.0%

        \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}} \]
    8. Applied egg-rr100.0%

      \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification99.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3 \cdot 10^{+17}:\\ \;\;\;\;x + \frac{y}{14.431876219268936}\\ \mathbf{elif}\;z \leq 850000:\\ \;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} + x\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}\\ \end{array} \]

Alternative 6: 99.5% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 6.4\right):\\ \;\;\;\;x + \frac{y}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{z \cdot 0.39999999996247915 + 12.000000000000014}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= z -5.4) (not (<= z 6.4)))
   (+
    x
    (/
     y
     (+
      14.431876219268936
      (- (/ 101.23733352003822 (* z z)) (/ 15.646356830292042 z)))))
   (+ x (/ y (+ (* z 0.39999999996247915) 12.000000000000014)))))
double code(double x, double y, double z) {
	double tmp;
	if ((z <= -5.4) || !(z <= 6.4)) {
		tmp = x + (y / (14.431876219268936 + ((101.23733352003822 / (z * z)) - (15.646356830292042 / z))));
	} else {
		tmp = x + (y / ((z * 0.39999999996247915) + 12.000000000000014));
	}
	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 ((z <= (-5.4d0)) .or. (.not. (z <= 6.4d0))) then
        tmp = x + (y / (14.431876219268936d0 + ((101.23733352003822d0 / (z * z)) - (15.646356830292042d0 / z))))
    else
        tmp = x + (y / ((z * 0.39999999996247915d0) + 12.000000000000014d0))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((z <= -5.4) || !(z <= 6.4)) {
		tmp = x + (y / (14.431876219268936 + ((101.23733352003822 / (z * z)) - (15.646356830292042 / z))));
	} else {
		tmp = x + (y / ((z * 0.39999999996247915) + 12.000000000000014));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (z <= -5.4) or not (z <= 6.4):
		tmp = x + (y / (14.431876219268936 + ((101.23733352003822 / (z * z)) - (15.646356830292042 / z))))
	else:
		tmp = x + (y / ((z * 0.39999999996247915) + 12.000000000000014))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((z <= -5.4) || !(z <= 6.4))
		tmp = Float64(x + Float64(y / Float64(14.431876219268936 + Float64(Float64(101.23733352003822 / Float64(z * z)) - Float64(15.646356830292042 / z)))));
	else
		tmp = Float64(x + Float64(y / Float64(Float64(z * 0.39999999996247915) + 12.000000000000014)));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((z <= -5.4) || ~((z <= 6.4)))
		tmp = x + (y / (14.431876219268936 + ((101.23733352003822 / (z * z)) - (15.646356830292042 / z))));
	else
		tmp = x + (y / ((z * 0.39999999996247915) + 12.000000000000014));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.4], N[Not[LessEqual[z, 6.4]], $MachinePrecision]], N[(x + N[(y / N[(14.431876219268936 + N[(N[(101.23733352003822 / N[(z * z), $MachinePrecision]), $MachinePrecision] - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(z * 0.39999999996247915), $MachinePrecision] + 12.000000000000014), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 6.4\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{z \cdot 0.39999999996247915 + 12.000000000000014}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -5.4000000000000004 or 6.4000000000000004 < z

    1. Initial program 37.5%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*47.3%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def47.3%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def47.4%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def47.3%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified47.3%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around inf 98.5%

      \[\leadsto x + \frac{y}{\color{blue}{\left(14.431876219268936 + 101.23733352003822 \cdot \frac{1}{{z}^{2}}\right) - 15.646356830292042 \cdot \frac{1}{z}}} \]
    5. Step-by-step derivation
      1. associate-*r/98.5%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \color{blue}{\frac{101.23733352003822 \cdot 1}{{z}^{2}}}\right) - 15.646356830292042 \cdot \frac{1}{z}} \]
      2. metadata-eval98.5%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \frac{\color{blue}{101.23733352003822}}{{z}^{2}}\right) - 15.646356830292042 \cdot \frac{1}{z}} \]
      3. unpow298.5%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \frac{101.23733352003822}{\color{blue}{z \cdot z}}\right) - 15.646356830292042 \cdot \frac{1}{z}} \]
      4. associate-*r/98.5%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \frac{101.23733352003822}{z \cdot z}\right) - \color{blue}{\frac{15.646356830292042 \cdot 1}{z}}} \]
      5. metadata-eval98.5%

        \[\leadsto x + \frac{y}{\left(14.431876219268936 + \frac{101.23733352003822}{z \cdot z}\right) - \frac{\color{blue}{15.646356830292042}}{z}} \]
    6. Simplified98.5%

      \[\leadsto x + \frac{y}{\color{blue}{\left(14.431876219268936 + \frac{101.23733352003822}{z \cdot z}\right) - \frac{15.646356830292042}{z}}} \]
    7. Step-by-step derivation
      1. associate--l+98.5%

        \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}} \]
    8. Applied egg-rr98.5%

      \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}} \]

    if -5.4000000000000004 < z < 6.4000000000000004

    1. Initial program 99.6%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*99.1%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified99.1%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around 0 98.6%

      \[\leadsto x + \frac{y}{\color{blue}{0.39999999996247915 \cdot z + 12.000000000000014}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 6.4\right):\\ \;\;\;\;x + \frac{y}{14.431876219268936 + \left(\frac{101.23733352003822}{z \cdot z} - \frac{15.646356830292042}{z}\right)}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{z \cdot 0.39999999996247915 + 12.000000000000014}\\ \end{array} \]

Alternative 7: 99.0% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 5.3\right):\\ \;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{12.000000000000014}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= z -5.4) (not (<= z 5.3)))
   (+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z))))
   (+ x (/ y 12.000000000000014))))
double code(double x, double y, double z) {
	double tmp;
	if ((z <= -5.4) || !(z <= 5.3)) {
		tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
	} else {
		tmp = x + (y / 12.000000000000014);
	}
	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 ((z <= (-5.4d0)) .or. (.not. (z <= 5.3d0))) then
        tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
    else
        tmp = x + (y / 12.000000000000014d0)
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((z <= -5.4) || !(z <= 5.3)) {
		tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
	} else {
		tmp = x + (y / 12.000000000000014);
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (z <= -5.4) or not (z <= 5.3):
		tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)))
	else:
		tmp = x + (y / 12.000000000000014)
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((z <= -5.4) || !(z <= 5.3))
		tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z))));
	else
		tmp = Float64(x + Float64(y / 12.000000000000014));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((z <= -5.4) || ~((z <= 5.3)))
		tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
	else
		tmp = x + (y / 12.000000000000014);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.4], N[Not[LessEqual[z, 5.3]], $MachinePrecision]], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / 12.000000000000014), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 5.3\right):\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{12.000000000000014}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -5.4000000000000004 or 5.29999999999999982 < z

    1. Initial program 37.5%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-*l/45.4%

        \[\leadsto x + \color{blue}{\frac{y}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)} \]
      2. *-commutative45.4%

        \[\leadsto x + \frac{y}{\color{blue}{z \cdot \left(z + 6.012459259764103\right)} + 3.350343815022304} \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right) \]
      3. fma-def45.4%

        \[\leadsto x + \frac{y}{\color{blue}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}} \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right) \]
      4. *-commutative45.4%

        \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \left(\color{blue}{z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right)} + 0.279195317918525\right) \]
      5. fma-def45.5%

        \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \color{blue}{\mathsf{fma}\left(z, z \cdot 0.0692910599291889 + 0.4917317610505968, 0.279195317918525\right)} \]
      6. fma-def45.4%

        \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, 0.279195317918525\right) \]
    3. Simplified45.4%

      \[\leadsto \color{blue}{x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)} \]
    4. Step-by-step derivation
      1. fma-def45.5%

        \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \mathsf{fma}\left(z, \color{blue}{z \cdot 0.0692910599291889 + 0.4917317610505968}, 0.279195317918525\right) \]
    5. Applied egg-rr45.5%

      \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \mathsf{fma}\left(z, \color{blue}{z \cdot 0.0692910599291889 + 0.4917317610505968}, 0.279195317918525\right) \]
    6. Taylor expanded in z around inf 97.6%

      \[\leadsto x + \color{blue}{\left(\left(0.4917317610505968 \cdot \frac{y}{z} + 0.0692910599291889 \cdot y\right) - 0.4166096748901212 \cdot \frac{y}{z}\right)} \]
    7. Step-by-step derivation
      1. +-commutative97.6%

        \[\leadsto x + \left(\color{blue}{\left(0.0692910599291889 \cdot y + 0.4917317610505968 \cdot \frac{y}{z}\right)} - 0.4166096748901212 \cdot \frac{y}{z}\right) \]
      2. associate--l+97.6%

        \[\leadsto x + \color{blue}{\left(0.0692910599291889 \cdot y + \left(0.4917317610505968 \cdot \frac{y}{z} - 0.4166096748901212 \cdot \frac{y}{z}\right)\right)} \]
      3. associate-*r/97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \left(\color{blue}{\frac{0.4917317610505968 \cdot y}{z}} - 0.4166096748901212 \cdot \frac{y}{z}\right)\right) \]
      4. associate-*r/97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \left(\frac{0.4917317610505968 \cdot y}{z} - \color{blue}{\frac{0.4166096748901212 \cdot y}{z}}\right)\right) \]
      5. div-sub97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \color{blue}{\frac{0.4917317610505968 \cdot y - 0.4166096748901212 \cdot y}{z}}\right) \]
      6. distribute-rgt-out--97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \frac{\color{blue}{y \cdot \left(0.4917317610505968 - 0.4166096748901212\right)}}{z}\right) \]
      7. metadata-eval97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \frac{y \cdot \color{blue}{0.07512208616047561}}{z}\right) \]
      8. *-commutative97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \frac{\color{blue}{0.07512208616047561 \cdot y}}{z}\right) \]
      9. associate-*l/97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \color{blue}{\frac{0.07512208616047561}{z} \cdot y}\right) \]
      10. metadata-eval97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \frac{\color{blue}{0.07512208616047561 \cdot 1}}{z} \cdot y\right) \]
      11. associate-*r/97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \color{blue}{\left(0.07512208616047561 \cdot \frac{1}{z}\right)} \cdot y\right) \]
      12. distribute-rgt-in97.6%

        \[\leadsto x + \color{blue}{y \cdot \left(0.0692910599291889 + 0.07512208616047561 \cdot \frac{1}{z}\right)} \]
      13. associate-*r/97.6%

        \[\leadsto x + y \cdot \left(0.0692910599291889 + \color{blue}{\frac{0.07512208616047561 \cdot 1}{z}}\right) \]
      14. metadata-eval97.6%

        \[\leadsto x + y \cdot \left(0.0692910599291889 + \frac{\color{blue}{0.07512208616047561}}{z}\right) \]
    8. Simplified97.6%

      \[\leadsto x + \color{blue}{y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)} \]

    if -5.4000000000000004 < z < 5.29999999999999982

    1. Initial program 99.6%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*99.1%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified99.1%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around 0 98.2%

      \[\leadsto x + \frac{y}{\color{blue}{12.000000000000014}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification97.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 5.3\right):\\ \;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{12.000000000000014}\\ \end{array} \]

Alternative 8: 99.2% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 5.8\right):\\ \;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{z \cdot 0.39999999996247915 + 12.000000000000014}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= z -5.4) (not (<= z 5.8)))
   (+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z))))
   (+ x (/ y (+ (* z 0.39999999996247915) 12.000000000000014)))))
double code(double x, double y, double z) {
	double tmp;
	if ((z <= -5.4) || !(z <= 5.8)) {
		tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
	} else {
		tmp = x + (y / ((z * 0.39999999996247915) + 12.000000000000014));
	}
	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 ((z <= (-5.4d0)) .or. (.not. (z <= 5.8d0))) then
        tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
    else
        tmp = x + (y / ((z * 0.39999999996247915d0) + 12.000000000000014d0))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((z <= -5.4) || !(z <= 5.8)) {
		tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
	} else {
		tmp = x + (y / ((z * 0.39999999996247915) + 12.000000000000014));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (z <= -5.4) or not (z <= 5.8):
		tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)))
	else:
		tmp = x + (y / ((z * 0.39999999996247915) + 12.000000000000014))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((z <= -5.4) || !(z <= 5.8))
		tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z))));
	else
		tmp = Float64(x + Float64(y / Float64(Float64(z * 0.39999999996247915) + 12.000000000000014)));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((z <= -5.4) || ~((z <= 5.8)))
		tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
	else
		tmp = x + (y / ((z * 0.39999999996247915) + 12.000000000000014));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.4], N[Not[LessEqual[z, 5.8]], $MachinePrecision]], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(z * 0.39999999996247915), $MachinePrecision] + 12.000000000000014), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 5.8\right):\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{z \cdot 0.39999999996247915 + 12.000000000000014}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -5.4000000000000004 or 5.79999999999999982 < z

    1. Initial program 37.5%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-*l/45.4%

        \[\leadsto x + \color{blue}{\frac{y}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)} \]
      2. *-commutative45.4%

        \[\leadsto x + \frac{y}{\color{blue}{z \cdot \left(z + 6.012459259764103\right)} + 3.350343815022304} \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right) \]
      3. fma-def45.4%

        \[\leadsto x + \frac{y}{\color{blue}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}} \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right) \]
      4. *-commutative45.4%

        \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \left(\color{blue}{z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right)} + 0.279195317918525\right) \]
      5. fma-def45.5%

        \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \color{blue}{\mathsf{fma}\left(z, z \cdot 0.0692910599291889 + 0.4917317610505968, 0.279195317918525\right)} \]
      6. fma-def45.4%

        \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, 0.279195317918525\right) \]
    3. Simplified45.4%

      \[\leadsto \color{blue}{x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)} \]
    4. Step-by-step derivation
      1. fma-def45.5%

        \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \mathsf{fma}\left(z, \color{blue}{z \cdot 0.0692910599291889 + 0.4917317610505968}, 0.279195317918525\right) \]
    5. Applied egg-rr45.5%

      \[\leadsto x + \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)} \cdot \mathsf{fma}\left(z, \color{blue}{z \cdot 0.0692910599291889 + 0.4917317610505968}, 0.279195317918525\right) \]
    6. Taylor expanded in z around inf 97.6%

      \[\leadsto x + \color{blue}{\left(\left(0.4917317610505968 \cdot \frac{y}{z} + 0.0692910599291889 \cdot y\right) - 0.4166096748901212 \cdot \frac{y}{z}\right)} \]
    7. Step-by-step derivation
      1. +-commutative97.6%

        \[\leadsto x + \left(\color{blue}{\left(0.0692910599291889 \cdot y + 0.4917317610505968 \cdot \frac{y}{z}\right)} - 0.4166096748901212 \cdot \frac{y}{z}\right) \]
      2. associate--l+97.6%

        \[\leadsto x + \color{blue}{\left(0.0692910599291889 \cdot y + \left(0.4917317610505968 \cdot \frac{y}{z} - 0.4166096748901212 \cdot \frac{y}{z}\right)\right)} \]
      3. associate-*r/97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \left(\color{blue}{\frac{0.4917317610505968 \cdot y}{z}} - 0.4166096748901212 \cdot \frac{y}{z}\right)\right) \]
      4. associate-*r/97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \left(\frac{0.4917317610505968 \cdot y}{z} - \color{blue}{\frac{0.4166096748901212 \cdot y}{z}}\right)\right) \]
      5. div-sub97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \color{blue}{\frac{0.4917317610505968 \cdot y - 0.4166096748901212 \cdot y}{z}}\right) \]
      6. distribute-rgt-out--97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \frac{\color{blue}{y \cdot \left(0.4917317610505968 - 0.4166096748901212\right)}}{z}\right) \]
      7. metadata-eval97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \frac{y \cdot \color{blue}{0.07512208616047561}}{z}\right) \]
      8. *-commutative97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \frac{\color{blue}{0.07512208616047561 \cdot y}}{z}\right) \]
      9. associate-*l/97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \color{blue}{\frac{0.07512208616047561}{z} \cdot y}\right) \]
      10. metadata-eval97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \frac{\color{blue}{0.07512208616047561 \cdot 1}}{z} \cdot y\right) \]
      11. associate-*r/97.6%

        \[\leadsto x + \left(0.0692910599291889 \cdot y + \color{blue}{\left(0.07512208616047561 \cdot \frac{1}{z}\right)} \cdot y\right) \]
      12. distribute-rgt-in97.6%

        \[\leadsto x + \color{blue}{y \cdot \left(0.0692910599291889 + 0.07512208616047561 \cdot \frac{1}{z}\right)} \]
      13. associate-*r/97.6%

        \[\leadsto x + y \cdot \left(0.0692910599291889 + \color{blue}{\frac{0.07512208616047561 \cdot 1}{z}}\right) \]
      14. metadata-eval97.6%

        \[\leadsto x + y \cdot \left(0.0692910599291889 + \frac{\color{blue}{0.07512208616047561}}{z}\right) \]
    8. Simplified97.6%

      \[\leadsto x + \color{blue}{y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)} \]

    if -5.4000000000000004 < z < 5.79999999999999982

    1. Initial program 99.6%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*99.1%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified99.1%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around 0 98.6%

      \[\leadsto x + \frac{y}{\color{blue}{0.39999999996247915 \cdot z + 12.000000000000014}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 5.8\right):\\ \;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{z \cdot 0.39999999996247915 + 12.000000000000014}\\ \end{array} \]

Alternative 9: 99.4% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 6.5\right):\\ \;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{z \cdot 0.39999999996247915 + 12.000000000000014}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= z -5.4) (not (<= z 6.5)))
   (+ x (/ y (- 14.431876219268936 (/ 15.646356830292042 z))))
   (+ x (/ y (+ (* z 0.39999999996247915) 12.000000000000014)))))
double code(double x, double y, double z) {
	double tmp;
	if ((z <= -5.4) || !(z <= 6.5)) {
		tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
	} else {
		tmp = x + (y / ((z * 0.39999999996247915) + 12.000000000000014));
	}
	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 ((z <= (-5.4d0)) .or. (.not. (z <= 6.5d0))) then
        tmp = x + (y / (14.431876219268936d0 - (15.646356830292042d0 / z)))
    else
        tmp = x + (y / ((z * 0.39999999996247915d0) + 12.000000000000014d0))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((z <= -5.4) || !(z <= 6.5)) {
		tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
	} else {
		tmp = x + (y / ((z * 0.39999999996247915) + 12.000000000000014));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (z <= -5.4) or not (z <= 6.5):
		tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)))
	else:
		tmp = x + (y / ((z * 0.39999999996247915) + 12.000000000000014))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((z <= -5.4) || !(z <= 6.5))
		tmp = Float64(x + Float64(y / Float64(14.431876219268936 - Float64(15.646356830292042 / z))));
	else
		tmp = Float64(x + Float64(y / Float64(Float64(z * 0.39999999996247915) + 12.000000000000014)));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((z <= -5.4) || ~((z <= 6.5)))
		tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
	else
		tmp = x + (y / ((z * 0.39999999996247915) + 12.000000000000014));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.4], N[Not[LessEqual[z, 6.5]], $MachinePrecision]], N[(x + N[(y / N[(14.431876219268936 - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(z * 0.39999999996247915), $MachinePrecision] + 12.000000000000014), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 6.5\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{z \cdot 0.39999999996247915 + 12.000000000000014}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -5.4000000000000004 or 6.5 < z

    1. Initial program 37.5%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*47.3%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def47.3%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def47.4%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def47.3%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified47.3%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around inf 97.9%

      \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936 - 15.646356830292042 \cdot \frac{1}{z}}} \]
    5. Step-by-step derivation
      1. associate-*r/97.9%

        \[\leadsto x + \frac{y}{14.431876219268936 - \color{blue}{\frac{15.646356830292042 \cdot 1}{z}}} \]
      2. metadata-eval97.9%

        \[\leadsto x + \frac{y}{14.431876219268936 - \frac{\color{blue}{15.646356830292042}}{z}} \]
    6. Simplified97.9%

      \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936 - \frac{15.646356830292042}{z}}} \]

    if -5.4000000000000004 < z < 6.5

    1. Initial program 99.6%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*99.1%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified99.1%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around 0 98.6%

      \[\leadsto x + \frac{y}{\color{blue}{0.39999999996247915 \cdot z + 12.000000000000014}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 6.5\right):\\ \;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{z \cdot 0.39999999996247915 + 12.000000000000014}\\ \end{array} \]

Alternative 10: 58.9% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -2 \cdot 10^{+33}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq -2.3 \cdot 10^{-102}:\\ \;\;\;\;y \cdot 0.0692910599291889\\ \mathbf{elif}\;x \leq -6.6 \cdot 10^{-158}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 0.44:\\ \;\;\;\;y \cdot 0.0692910599291889\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (<= x -2e+33)
   x
   (if (<= x -2.3e-102)
     (* y 0.0692910599291889)
     (if (<= x -6.6e-158) x (if (<= x 0.44) (* y 0.0692910599291889) x)))))
double code(double x, double y, double z) {
	double tmp;
	if (x <= -2e+33) {
		tmp = x;
	} else if (x <= -2.3e-102) {
		tmp = y * 0.0692910599291889;
	} else if (x <= -6.6e-158) {
		tmp = x;
	} else if (x <= 0.44) {
		tmp = y * 0.0692910599291889;
	} else {
		tmp = 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 <= (-2d+33)) then
        tmp = x
    else if (x <= (-2.3d-102)) then
        tmp = y * 0.0692910599291889d0
    else if (x <= (-6.6d-158)) then
        tmp = x
    else if (x <= 0.44d0) then
        tmp = y * 0.0692910599291889d0
    else
        tmp = x
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if (x <= -2e+33) {
		tmp = x;
	} else if (x <= -2.3e-102) {
		tmp = y * 0.0692910599291889;
	} else if (x <= -6.6e-158) {
		tmp = x;
	} else if (x <= 0.44) {
		tmp = y * 0.0692910599291889;
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if x <= -2e+33:
		tmp = x
	elif x <= -2.3e-102:
		tmp = y * 0.0692910599291889
	elif x <= -6.6e-158:
		tmp = x
	elif x <= 0.44:
		tmp = y * 0.0692910599291889
	else:
		tmp = x
	return tmp
function code(x, y, z)
	tmp = 0.0
	if (x <= -2e+33)
		tmp = x;
	elseif (x <= -2.3e-102)
		tmp = Float64(y * 0.0692910599291889);
	elseif (x <= -6.6e-158)
		tmp = x;
	elseif (x <= 0.44)
		tmp = Float64(y * 0.0692910599291889);
	else
		tmp = x;
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if (x <= -2e+33)
		tmp = x;
	elseif (x <= -2.3e-102)
		tmp = y * 0.0692910599291889;
	elseif (x <= -6.6e-158)
		tmp = x;
	elseif (x <= 0.44)
		tmp = y * 0.0692910599291889;
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[LessEqual[x, -2e+33], x, If[LessEqual[x, -2.3e-102], N[(y * 0.0692910599291889), $MachinePrecision], If[LessEqual[x, -6.6e-158], x, If[LessEqual[x, 0.44], N[(y * 0.0692910599291889), $MachinePrecision], x]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -2 \cdot 10^{+33}:\\
\;\;\;\;x\\

\mathbf{elif}\;x \leq -2.3 \cdot 10^{-102}:\\
\;\;\;\;y \cdot 0.0692910599291889\\

\mathbf{elif}\;x \leq -6.6 \cdot 10^{-158}:\\
\;\;\;\;x\\

\mathbf{elif}\;x \leq 0.44:\\
\;\;\;\;y \cdot 0.0692910599291889\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1.9999999999999999e33 or -2.29999999999999987e-102 < x < -6.6000000000000003e-158 or 0.440000000000000002 < x

    1. Initial program 68.8%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. +-commutative68.8%

        \[\leadsto \color{blue}{\frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} + x} \]
      2. associate-*r/75.5%

        \[\leadsto \color{blue}{y \cdot \frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}} + x \]
      3. fma-def75.5%

        \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right)} \]
      4. *-commutative75.5%

        \[\leadsto \mathsf{fma}\left(y, \frac{\color{blue}{z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right)} + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
      5. fma-def75.5%

        \[\leadsto \mathsf{fma}\left(y, \frac{\color{blue}{\mathsf{fma}\left(z, z \cdot 0.0692910599291889 + 0.4917317610505968, 0.279195317918525\right)}}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
      6. fma-def75.5%

        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
      7. *-commutative75.5%

        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\color{blue}{z \cdot \left(z + 6.012459259764103\right)} + 3.350343815022304}, x\right) \]
      8. fma-def75.5%

        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\color{blue}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}}, x\right) \]
    3. Simplified75.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}, x\right)} \]
    4. Taylor expanded in y around 0 74.5%

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

    if -1.9999999999999999e33 < x < -2.29999999999999987e-102 or -6.6000000000000003e-158 < x < 0.440000000000000002

    1. Initial program 60.9%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. +-commutative60.9%

        \[\leadsto \color{blue}{\frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} + x} \]
      2. associate-*r/65.7%

        \[\leadsto \color{blue}{y \cdot \frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}} + x \]
      3. fma-def65.7%

        \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right)} \]
      4. *-commutative65.7%

        \[\leadsto \mathsf{fma}\left(y, \frac{\color{blue}{z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right)} + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
      5. fma-def65.7%

        \[\leadsto \mathsf{fma}\left(y, \frac{\color{blue}{\mathsf{fma}\left(z, z \cdot 0.0692910599291889 + 0.4917317610505968, 0.279195317918525\right)}}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
      6. fma-def65.7%

        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
      7. *-commutative65.7%

        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\color{blue}{z \cdot \left(z + 6.012459259764103\right)} + 3.350343815022304}, x\right) \]
      8. fma-def65.7%

        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\color{blue}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}}, x\right) \]
    3. Simplified65.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}, x\right)} \]
    4. Taylor expanded in z around inf 70.5%

      \[\leadsto \color{blue}{0.0692910599291889 \cdot y + x} \]
    5. Taylor expanded in y around inf 54.7%

      \[\leadsto \color{blue}{0.0692910599291889 \cdot y} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification63.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -2 \cdot 10^{+33}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq -2.3 \cdot 10^{-102}:\\ \;\;\;\;y \cdot 0.0692910599291889\\ \mathbf{elif}\;x \leq -6.6 \cdot 10^{-158}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 0.44:\\ \;\;\;\;y \cdot 0.0692910599291889\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

Alternative 11: 77.6% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -8.5 \cdot 10^{+166} \lor \neg \left(z \leq -1.45 \cdot 10^{+131}\right) \land z \leq 4 \cdot 10^{+175}:\\ \;\;\;\;x + \frac{y}{12.000000000000014}\\ \mathbf{else}:\\ \;\;\;\;y \cdot 0.0692910599291889\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= z -8.5e+166) (and (not (<= z -1.45e+131)) (<= z 4e+175)))
   (+ x (/ y 12.000000000000014))
   (* y 0.0692910599291889)))
double code(double x, double y, double z) {
	double tmp;
	if ((z <= -8.5e+166) || (!(z <= -1.45e+131) && (z <= 4e+175))) {
		tmp = x + (y / 12.000000000000014);
	} else {
		tmp = y * 0.0692910599291889;
	}
	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 ((z <= (-8.5d+166)) .or. (.not. (z <= (-1.45d+131))) .and. (z <= 4d+175)) then
        tmp = x + (y / 12.000000000000014d0)
    else
        tmp = y * 0.0692910599291889d0
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((z <= -8.5e+166) || (!(z <= -1.45e+131) && (z <= 4e+175))) {
		tmp = x + (y / 12.000000000000014);
	} else {
		tmp = y * 0.0692910599291889;
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (z <= -8.5e+166) or (not (z <= -1.45e+131) and (z <= 4e+175)):
		tmp = x + (y / 12.000000000000014)
	else:
		tmp = y * 0.0692910599291889
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((z <= -8.5e+166) || (!(z <= -1.45e+131) && (z <= 4e+175)))
		tmp = Float64(x + Float64(y / 12.000000000000014));
	else
		tmp = Float64(y * 0.0692910599291889);
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((z <= -8.5e+166) || (~((z <= -1.45e+131)) && (z <= 4e+175)))
		tmp = x + (y / 12.000000000000014);
	else
		tmp = y * 0.0692910599291889;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[z, -8.5e+166], And[N[Not[LessEqual[z, -1.45e+131]], $MachinePrecision], LessEqual[z, 4e+175]]], N[(x + N[(y / 12.000000000000014), $MachinePrecision]), $MachinePrecision], N[(y * 0.0692910599291889), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{+166} \lor \neg \left(z \leq -1.45 \cdot 10^{+131}\right) \land z \leq 4 \cdot 10^{+175}:\\
\;\;\;\;x + \frac{y}{12.000000000000014}\\

\mathbf{else}:\\
\;\;\;\;y \cdot 0.0692910599291889\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -8.5000000000000001e166 or -1.45000000000000005e131 < z < 3.9999999999999997e175

    1. Initial program 74.4%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*78.5%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def78.5%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def78.5%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def78.5%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified78.5%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around 0 79.2%

      \[\leadsto x + \frac{y}{\color{blue}{12.000000000000014}} \]

    if -8.5000000000000001e166 < z < -1.45000000000000005e131 or 3.9999999999999997e175 < z

    1. Initial program 3.4%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. +-commutative3.4%

        \[\leadsto \color{blue}{\frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} + x} \]
      2. associate-*r/16.5%

        \[\leadsto \color{blue}{y \cdot \frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}} + x \]
      3. fma-def16.5%

        \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right)} \]
      4. *-commutative16.5%

        \[\leadsto \mathsf{fma}\left(y, \frac{\color{blue}{z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right)} + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
      5. fma-def16.5%

        \[\leadsto \mathsf{fma}\left(y, \frac{\color{blue}{\mathsf{fma}\left(z, z \cdot 0.0692910599291889 + 0.4917317610505968, 0.279195317918525\right)}}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
      6. fma-def16.5%

        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
      7. *-commutative16.5%

        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\color{blue}{z \cdot \left(z + 6.012459259764103\right)} + 3.350343815022304}, x\right) \]
      8. fma-def16.5%

        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\color{blue}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}}, x\right) \]
    3. Simplified16.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}, x\right)} \]
    4. Taylor expanded in z around inf 99.2%

      \[\leadsto \color{blue}{0.0692910599291889 \cdot y + x} \]
    5. Taylor expanded in y around inf 80.2%

      \[\leadsto \color{blue}{0.0692910599291889 \cdot y} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification79.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -8.5 \cdot 10^{+166} \lor \neg \left(z \leq -1.45 \cdot 10^{+131}\right) \land z \leq 4 \cdot 10^{+175}:\\ \;\;\;\;x + \frac{y}{12.000000000000014}\\ \mathbf{else}:\\ \;\;\;\;y \cdot 0.0692910599291889\\ \end{array} \]

Alternative 12: 98.9% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 6.5\right):\\ \;\;\;\;x + \frac{y}{14.431876219268936}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{12.000000000000014}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (or (<= z -5.4) (not (<= z 6.5)))
   (+ x (/ y 14.431876219268936))
   (+ x (/ y 12.000000000000014))))
double code(double x, double y, double z) {
	double tmp;
	if ((z <= -5.4) || !(z <= 6.5)) {
		tmp = x + (y / 14.431876219268936);
	} else {
		tmp = x + (y / 12.000000000000014);
	}
	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 ((z <= (-5.4d0)) .or. (.not. (z <= 6.5d0))) then
        tmp = x + (y / 14.431876219268936d0)
    else
        tmp = x + (y / 12.000000000000014d0)
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if ((z <= -5.4) || !(z <= 6.5)) {
		tmp = x + (y / 14.431876219268936);
	} else {
		tmp = x + (y / 12.000000000000014);
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if (z <= -5.4) or not (z <= 6.5):
		tmp = x + (y / 14.431876219268936)
	else:
		tmp = x + (y / 12.000000000000014)
	return tmp
function code(x, y, z)
	tmp = 0.0
	if ((z <= -5.4) || !(z <= 6.5))
		tmp = Float64(x + Float64(y / 14.431876219268936));
	else
		tmp = Float64(x + Float64(y / 12.000000000000014));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if ((z <= -5.4) || ~((z <= 6.5)))
		tmp = x + (y / 14.431876219268936);
	else
		tmp = x + (y / 12.000000000000014);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.4], N[Not[LessEqual[z, 6.5]], $MachinePrecision]], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / 12.000000000000014), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 6.5\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{12.000000000000014}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -5.4000000000000004 or 6.5 < z

    1. Initial program 37.5%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*47.3%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def47.3%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def47.4%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def47.3%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified47.3%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around inf 97.1%

      \[\leadsto x + \frac{y}{\color{blue}{14.431876219268936}} \]

    if -5.4000000000000004 < z < 6.5

    1. Initial program 99.6%

      \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
    2. Step-by-step derivation
      1. associate-/l*99.1%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}}} \]
      2. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}}{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}} \]
      3. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\color{blue}{\mathsf{fma}\left(z \cdot 0.0692910599291889 + 0.4917317610505968, z, 0.279195317918525\right)}}} \]
      4. fma-def99.1%

        \[\leadsto x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, z, 0.279195317918525\right)}} \]
    3. Simplified99.1%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}}} \]
    4. Taylor expanded in z around 0 98.2%

      \[\leadsto x + \frac{y}{\color{blue}{12.000000000000014}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification97.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 6.5\right):\\ \;\;\;\;x + \frac{y}{14.431876219268936}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{12.000000000000014}\\ \end{array} \]

Alternative 13: 50.1% accurate, 21.0× speedup?

\[\begin{array}{l} \\ x \end{array} \]
(FPCore (x y z) :precision binary64 x)
double code(double x, double y, double z) {
	return x;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = x
end function
public static double code(double x, double y, double z) {
	return x;
}
def code(x, y, z):
	return x
function code(x, y, z)
	return x
end
function tmp = code(x, y, z)
	tmp = x;
end
code[x_, y_, z_] := x
\begin{array}{l}

\\
x
\end{array}
Derivation
  1. Initial program 64.4%

    \[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} \]
  2. Step-by-step derivation
    1. +-commutative64.4%

      \[\leadsto \color{blue}{\frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304} + x} \]
    2. associate-*r/70.1%

      \[\leadsto \color{blue}{y \cdot \frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}} + x \]
    3. fma-def70.1%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right)} \]
    4. *-commutative70.1%

      \[\leadsto \mathsf{fma}\left(y, \frac{\color{blue}{z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right)} + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
    5. fma-def70.1%

      \[\leadsto \mathsf{fma}\left(y, \frac{\color{blue}{\mathsf{fma}\left(z, z \cdot 0.0692910599291889 + 0.4917317610505968, 0.279195317918525\right)}}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
    6. fma-def70.1%

      \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right)}, 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}, x\right) \]
    7. *-commutative70.1%

      \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\color{blue}{z \cdot \left(z + 6.012459259764103\right)} + 3.350343815022304}, x\right) \]
    8. fma-def70.1%

      \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\color{blue}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}}, x\right) \]
  3. Simplified70.1%

    \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}, x\right)} \]
  4. Taylor expanded in y around 0 43.4%

    \[\leadsto \color{blue}{x} \]
  5. Final simplification43.4%

    \[\leadsto x \]

Developer target: 99.4% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \left(\frac{0.07512208616047561}{z} + 0.0692910599291889\right) \cdot y - \left(\frac{0.40462203869992125 \cdot y}{z \cdot z} - x\right)\\ \mathbf{if}\;z < -8120153.652456675:\\ \;\;\;\;t_0\\ \mathbf{elif}\;z < 6.576118972787377 \cdot 10^{+20}:\\ \;\;\;\;x + \left(y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)\right) \cdot \frac{1}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (let* ((t_0
         (-
          (* (+ (/ 0.07512208616047561 z) 0.0692910599291889) y)
          (- (/ (* 0.40462203869992125 y) (* z z)) x))))
   (if (< z -8120153.652456675)
     t_0
     (if (< z 6.576118972787377e+20)
       (+
        x
        (*
         (*
          y
          (+
           (* (+ (* z 0.0692910599291889) 0.4917317610505968) z)
           0.279195317918525))
         (/ 1.0 (+ (* (+ z 6.012459259764103) z) 3.350343815022304))))
       t_0))))
double code(double x, double y, double z) {
	double t_0 = (((0.07512208616047561 / z) + 0.0692910599291889) * y) - (((0.40462203869992125 * y) / (z * z)) - x);
	double tmp;
	if (z < -8120153.652456675) {
		tmp = t_0;
	} else if (z < 6.576118972787377e+20) {
		tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * (1.0 / (((z + 6.012459259764103) * z) + 3.350343815022304)));
	} 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 = (((0.07512208616047561d0 / z) + 0.0692910599291889d0) * y) - (((0.40462203869992125d0 * y) / (z * z)) - x)
    if (z < (-8120153.652456675d0)) then
        tmp = t_0
    else if (z < 6.576118972787377d+20) then
        tmp = x + ((y * ((((z * 0.0692910599291889d0) + 0.4917317610505968d0) * z) + 0.279195317918525d0)) * (1.0d0 / (((z + 6.012459259764103d0) * z) + 3.350343815022304d0)))
    else
        tmp = t_0
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double t_0 = (((0.07512208616047561 / z) + 0.0692910599291889) * y) - (((0.40462203869992125 * y) / (z * z)) - x);
	double tmp;
	if (z < -8120153.652456675) {
		tmp = t_0;
	} else if (z < 6.576118972787377e+20) {
		tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * (1.0 / (((z + 6.012459259764103) * z) + 3.350343815022304)));
	} else {
		tmp = t_0;
	}
	return tmp;
}
def code(x, y, z):
	t_0 = (((0.07512208616047561 / z) + 0.0692910599291889) * y) - (((0.40462203869992125 * y) / (z * z)) - x)
	tmp = 0
	if z < -8120153.652456675:
		tmp = t_0
	elif z < 6.576118972787377e+20:
		tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * (1.0 / (((z + 6.012459259764103) * z) + 3.350343815022304)))
	else:
		tmp = t_0
	return tmp
function code(x, y, z)
	t_0 = Float64(Float64(Float64(Float64(0.07512208616047561 / z) + 0.0692910599291889) * y) - Float64(Float64(Float64(0.40462203869992125 * y) / Float64(z * z)) - x))
	tmp = 0.0
	if (z < -8120153.652456675)
		tmp = t_0;
	elseif (z < 6.576118972787377e+20)
		tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * Float64(1.0 / Float64(Float64(Float64(z + 6.012459259764103) * z) + 3.350343815022304))));
	else
		tmp = t_0;
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	t_0 = (((0.07512208616047561 / z) + 0.0692910599291889) * y) - (((0.40462203869992125 * y) / (z * z)) - x);
	tmp = 0.0;
	if (z < -8120153.652456675)
		tmp = t_0;
	elseif (z < 6.576118972787377e+20)
		tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * (1.0 / (((z + 6.012459259764103) * z) + 3.350343815022304)));
	else
		tmp = t_0;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(N[(0.07512208616047561 / z), $MachinePrecision] + 0.0692910599291889), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(0.40462203869992125 * y), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -8120153.652456675], t$95$0, If[Less[z, 6.576118972787377e+20], N[(x + N[(N[(y * N[(N[(N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision] * z), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(N[(N[(z + 6.012459259764103), $MachinePrecision] * z), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \left(\frac{0.07512208616047561}{z} + 0.0692910599291889\right) \cdot y - \left(\frac{0.40462203869992125 \cdot y}{z \cdot z} - x\right)\\
\mathbf{if}\;z < -8120153.652456675:\\
\;\;\;\;t_0\\

\mathbf{elif}\;z < 6.576118972787377 \cdot 10^{+20}:\\
\;\;\;\;x + \left(y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)\right) \cdot \frac{1}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\\

\mathbf{else}:\\
\;\;\;\;t_0\\


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2023221 
(FPCore (x y z)
  :name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, B"
  :precision binary64

  :herbie-target
  (if (< z -8120153.652456675) (- (* (+ (/ 0.07512208616047561 z) 0.0692910599291889) y) (- (/ (* 0.40462203869992125 y) (* z z)) x)) (if (< z 6.576118972787377e+20) (+ x (* (* y (+ (* (+ (* z 0.0692910599291889) 0.4917317610505968) z) 0.279195317918525)) (/ 1.0 (+ (* (+ z 6.012459259764103) z) 3.350343815022304)))) (- (* (+ (/ 0.07512208616047561 z) 0.0692910599291889) y) (- (/ (* 0.40462203869992125 y) (* z z)) x))))

  (+ x (/ (* y (+ (* (+ (* z 0.0692910599291889) 0.4917317610505968) z) 0.279195317918525)) (+ (* (+ z 6.012459259764103) z) 3.350343815022304))))