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

Percentage Accurate: 68.2% → 99.4%
Time: 11.0s
Alternatives: 13
Speedup: 2.1×

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.2% 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.4% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \lor \neg \left(z \leq 4 \cdot 10^{-6}\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\

\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot 0.0007936505811533442 - 0.00277777777751721\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -5.5 or 3.99999999999999982e-6 < z

    1. Initial program 37.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. remove-double-neg37.4%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*49.8%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in49.8%

        \[\leadsto x + \left(-\color{blue}{y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)}\right) \]
      4. distribute-lft-neg-in49.8%

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)} \]
      5. distribute-lft-neg-in49.8%

        \[\leadsto x + \color{blue}{\left(-y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      6. distribute-rgt-neg-in49.8%

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

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

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

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

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

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

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

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

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

        \[\leadsto x + \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}} \]
      5. clear-num37.4%

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

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

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

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

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

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

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

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

      \[\leadsto x + \frac{1}{\color{blue}{14.431876219268936 \cdot \frac{1}{y} - 15.646356830292042 \cdot \frac{1}{y \cdot z}}} \]
    8. Taylor expanded in y around 0 99.9%

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

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

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

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

    if -5.5 < z < 3.99999999999999982e-6

    1. Initial program 99.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. remove-double-neg99.7%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*99.8%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in99.8%

        \[\leadsto x + \left(-\color{blue}{y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)}\right) \]
      4. distribute-lft-neg-in99.8%

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)} \]
      5. distribute-lft-neg-in99.8%

        \[\leadsto x + \color{blue}{\left(-y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      6. distribute-rgt-neg-in99.8%

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

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

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

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

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

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

      \[\leadsto x + y \cdot \color{blue}{\left(0.08333333333333323 + z \cdot \left(0.0007936505811533442 \cdot z - 0.00277777777751721\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification99.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.5 \lor \neg \left(z \leq 4 \cdot 10^{-6}\right):\\ \;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot 0.0007936505811533442 - 0.00277777777751721\right)\right)\\ \end{array} \]
  5. Add Preprocessing

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^{+301}:\\ \;\;\;\;x + y \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\ \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+301)
   (+
    x
    (*
     y
     (/
      (fma (fma z 0.0692910599291889 0.4917317610505968) z 0.279195317918525)
      (fma (+ z 6.012459259764103) z 3.350343815022304))))
   (+ x (/ y (- 14.431876219268936 (/ 15.646356830292042 z))))))
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+301) {
		tmp = x + (y * (fma(fma(z, 0.0692910599291889, 0.4917317610505968), z, 0.279195317918525) / fma((z + 6.012459259764103), z, 3.350343815022304)));
	} else {
		tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
	}
	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+301)
		tmp = Float64(x + Float64(y * Float64(fma(fma(z, 0.0692910599291889, 0.4917317610505968), z, 0.279195317918525) / fma(Float64(z + 6.012459259764103), z, 3.350343815022304))));
	else
		tmp = Float64(x + Float64(y / Float64(14.431876219268936 - Float64(15.646356830292042 / z))));
	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+301], N[(x + N[(y * N[(N[(N[(z * 0.0692910599291889 + 0.4917317610505968), $MachinePrecision] * z + 0.279195317918525), $MachinePrecision] / N[(N[(z + 6.012459259764103), $MachinePrecision] * z + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(14.431876219268936 - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $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^{+301}:\\
\;\;\;\;x + y \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}\\

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


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

    1. Initial program 93.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. remove-double-neg93.8%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*99.7%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in99.7%

        \[\leadsto x + \left(-\color{blue}{y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)}\right) \]
      4. distribute-lft-neg-in99.7%

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)} \]
      5. distribute-lft-neg-in99.7%

        \[\leadsto x + \color{blue}{\left(-y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      6. distribute-rgt-neg-in99.7%

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

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

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

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

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

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

    if 1.00000000000000005e301 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64)))

    1. Initial program 0.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. remove-double-neg0.5%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*6.2%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in6.2%

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

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

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

        \[\leadsto x + \color{blue}{y \cdot \left(-\left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      7. remove-double-neg6.2%

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

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

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

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

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

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

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

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

        \[\leadsto x + \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}} \]
      5. clear-num0.5%

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

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

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

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

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

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

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

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

      \[\leadsto x + \frac{1}{\color{blue}{14.431876219268936 \cdot \frac{1}{y} - 15.646356830292042 \cdot \frac{1}{y \cdot z}}} \]
    8. Taylor expanded in y around 0 99.9%

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

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

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

      \[\leadsto x + \color{blue}{\frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}} \]
  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^{+301}:\\ \;\;\;\;x + y \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 97.4% accurate, 0.1× speedup?

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

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

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


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

    1. Initial program 93.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. +-commutative93.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. *-commutative93.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.00000000000000005e301 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64)))

    1. Initial program 0.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. remove-double-neg0.5%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*6.2%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in6.2%

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

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

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

        \[\leadsto x + \color{blue}{y \cdot \left(-\left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      7. remove-double-neg6.2%

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

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

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

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

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

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

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

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

        \[\leadsto x + \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}} \]
      5. clear-num0.5%

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

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

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

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

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

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

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

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

      \[\leadsto x + \frac{1}{\color{blue}{14.431876219268936 \cdot \frac{1}{y} - 15.646356830292042 \cdot \frac{1}{y \cdot z}}} \]
    8. Taylor expanded in y around 0 99.9%

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

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

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

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

    \[\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^{+301}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, z \cdot 0.0692910599291889, 0.279195317918525\right), \frac{y}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304}, x\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 61.2% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.4 \cdot 10^{+122} \lor \neg \left(y \leq 2.9 \cdot 10^{-7}\right) \land \left(y \leq 430000000 \lor \neg \left(y \leq 4.8 \cdot 10^{+69}\right)\right):\\
\;\;\;\;y \cdot 0.08333333333333323\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.4e122 or 2.8999999999999998e-7 < y < 4.3e8 or 4.8000000000000003e69 < y

    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. *-commutative60.9%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{x + 0.08333333333333323 \cdot y} \]
    6. Step-by-step derivation
      1. +-commutative67.3%

        \[\leadsto \color{blue}{0.08333333333333323 \cdot y + x} \]
    7. Simplified67.3%

      \[\leadsto \color{blue}{0.08333333333333323 \cdot y + x} \]
    8. Taylor expanded in y around inf 57.8%

      \[\leadsto \color{blue}{0.08333333333333323 \cdot y} \]

    if -1.4e122 < y < 2.8999999999999998e-7 or 4.3e8 < y < 4.8000000000000003e69

    1. Initial program 75.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. +-commutative75.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. *-commutative75.8%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.4 \cdot 10^{+122} \lor \neg \left(y \leq 2.9 \cdot 10^{-7}\right) \land \left(y \leq 430000000 \lor \neg \left(y \leq 4.8 \cdot 10^{+69}\right)\right):\\ \;\;\;\;y \cdot 0.08333333333333323\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 60.0% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -5 \cdot 10^{+192}:\\
\;\;\;\;y \cdot 0.0692910599291889\\

\mathbf{elif}\;y \leq 2.9 \cdot 10^{-7} \lor \neg \left(y \leq 540000000\right) \land y \leq 1.05 \cdot 10^{+73}:\\
\;\;\;\;x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -5.00000000000000033e192

    1. Initial program 40.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. +-commutative40.6%

        \[\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. *-commutative40.6%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{x + 0.0692910599291889 \cdot y} \]
    6. Step-by-step derivation
      1. +-commutative74.3%

        \[\leadsto \color{blue}{0.0692910599291889 \cdot y + x} \]
    7. Simplified74.3%

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

      \[\leadsto \color{blue}{0.0692910599291889 \cdot y} \]
    9. Step-by-step derivation
      1. *-commutative67.3%

        \[\leadsto \color{blue}{y \cdot 0.0692910599291889} \]
    10. Simplified67.3%

      \[\leadsto \color{blue}{y \cdot 0.0692910599291889} \]

    if -5.00000000000000033e192 < y < 2.8999999999999998e-7 or 5.4e8 < y < 1.0500000000000001e73

    1. Initial program 77.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. +-commutative77.0%

        \[\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. *-commutative77.0%

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

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

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

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

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

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

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

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

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

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

    if 2.8999999999999998e-7 < y < 5.4e8 or 1.0500000000000001e73 < y

    1. Initial program 65.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. +-commutative65.0%

        \[\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. *-commutative65.0%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{x + 0.08333333333333323 \cdot y} \]
    6. Step-by-step derivation
      1. +-commutative71.6%

        \[\leadsto \color{blue}{0.08333333333333323 \cdot y + x} \]
    7. Simplified71.6%

      \[\leadsto \color{blue}{0.08333333333333323 \cdot y + x} \]
    8. Taylor expanded in y around inf 64.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5 \cdot 10^{+192}:\\ \;\;\;\;y \cdot 0.0692910599291889\\ \mathbf{elif}\;y \leq 2.9 \cdot 10^{-7} \lor \neg \left(y \leq 540000000\right) \land y \leq 1.05 \cdot 10^{+73}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y \cdot 0.08333333333333323\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 99.4% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \lor \neg \left(z \leq 4 \cdot 10^{-6}\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\

\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 0.08333333333333323 + z \cdot \left(y \cdot -0.00277777777751721\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -5.5 or 3.99999999999999982e-6 < z

    1. Initial program 37.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. remove-double-neg37.4%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*49.8%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in49.8%

        \[\leadsto x + \left(-\color{blue}{y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)}\right) \]
      4. distribute-lft-neg-in49.8%

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)} \]
      5. distribute-lft-neg-in49.8%

        \[\leadsto x + \color{blue}{\left(-y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      6. distribute-rgt-neg-in49.8%

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

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

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

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

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

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

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

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

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

        \[\leadsto x + \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}} \]
      5. clear-num37.4%

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

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

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

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

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

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

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

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

      \[\leadsto x + \frac{1}{\color{blue}{14.431876219268936 \cdot \frac{1}{y} - 15.646356830292042 \cdot \frac{1}{y \cdot z}}} \]
    8. Taylor expanded in y around 0 99.9%

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

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

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

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

    if -5.5 < z < 3.99999999999999982e-6

    1. Initial program 99.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. remove-double-neg99.7%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*99.8%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in99.8%

        \[\leadsto x + \left(-\color{blue}{y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)}\right) \]
      4. distribute-lft-neg-in99.8%

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)} \]
      5. distribute-lft-neg-in99.8%

        \[\leadsto x + \color{blue}{\left(-y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      6. distribute-rgt-neg-in99.8%

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

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

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

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

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

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

      \[\leadsto x + \color{blue}{\left(0.08333333333333323 \cdot y + z \cdot \left(0.14677053705526136 \cdot y - 0.14954831483277858 \cdot y\right)\right)} \]
    6. Taylor expanded in y around 0 99.7%

      \[\leadsto x + \left(0.08333333333333323 \cdot y + z \cdot \color{blue}{\left(-0.00277777777751721 \cdot y\right)}\right) \]
    7. Step-by-step derivation
      1. *-commutative99.7%

        \[\leadsto x + \left(0.08333333333333323 \cdot y + z \cdot \color{blue}{\left(y \cdot -0.00277777777751721\right)}\right) \]
    8. Simplified99.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.5 \lor \neg \left(z \leq 4 \cdot 10^{-6}\right):\\ \;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\ \mathbf{else}:\\ \;\;\;\;x + \left(y \cdot 0.08333333333333323 + z \cdot \left(y \cdot -0.00277777777751721\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 99.4% accurate, 1.1× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \lor \neg \left(z \leq 4 \cdot 10^{-6}\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\

\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot -0.00277777777751721\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -5.5 or 3.99999999999999982e-6 < z

    1. Initial program 37.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. remove-double-neg37.4%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*49.8%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in49.8%

        \[\leadsto x + \left(-\color{blue}{y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)}\right) \]
      4. distribute-lft-neg-in49.8%

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)} \]
      5. distribute-lft-neg-in49.8%

        \[\leadsto x + \color{blue}{\left(-y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      6. distribute-rgt-neg-in49.8%

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

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

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

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

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

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

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

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

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

        \[\leadsto x + \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}} \]
      5. clear-num37.4%

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

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

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

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

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

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

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

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

      \[\leadsto x + \frac{1}{\color{blue}{14.431876219268936 \cdot \frac{1}{y} - 15.646356830292042 \cdot \frac{1}{y \cdot z}}} \]
    8. Taylor expanded in y around 0 99.9%

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

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

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

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

    if -5.5 < z < 3.99999999999999982e-6

    1. Initial program 99.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. remove-double-neg99.7%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*99.8%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in99.8%

        \[\leadsto x + \left(-\color{blue}{y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)}\right) \]
      4. distribute-lft-neg-in99.8%

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)} \]
      5. distribute-lft-neg-in99.8%

        \[\leadsto x + \color{blue}{\left(-y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      6. distribute-rgt-neg-in99.8%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.5 \lor \neg \left(z \leq 4 \cdot 10^{-6}\right):\\ \;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot -0.00277777777751721\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 99.1% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.5:\\ \;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\ \mathbf{elif}\;z \leq 4 \cdot 10^{-6}:\\ \;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot -0.00277777777751721\right)\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (<= z -5.5)
   (+ x (/ 1.0 (/ 14.431876219268936 y)))
   (if (<= z 4e-6)
     (+ x (* y (+ 0.08333333333333323 (* z -0.00277777777751721))))
     (+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))))))
double code(double x, double y, double z) {
	double tmp;
	if (z <= -5.5) {
		tmp = x + (1.0 / (14.431876219268936 / y));
	} else if (z <= 4e-6) {
		tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
	} else {
		tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / 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 <= (-5.5d0)) then
        tmp = x + (1.0d0 / (14.431876219268936d0 / y))
    else if (z <= 4d-6) then
        tmp = x + (y * (0.08333333333333323d0 + (z * (-0.00277777777751721d0))))
    else
        tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double tmp;
	if (z <= -5.5) {
		tmp = x + (1.0 / (14.431876219268936 / y));
	} else if (z <= 4e-6) {
		tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
	} else {
		tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
	}
	return tmp;
}
def code(x, y, z):
	tmp = 0
	if z <= -5.5:
		tmp = x + (1.0 / (14.431876219268936 / y))
	elif z <= 4e-6:
		tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)))
	else:
		tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)))
	return tmp
function code(x, y, z)
	tmp = 0.0
	if (z <= -5.5)
		tmp = Float64(x + Float64(1.0 / Float64(14.431876219268936 / y)));
	elseif (z <= 4e-6)
		tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * -0.00277777777751721))));
	else
		tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z))));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	tmp = 0.0;
	if (z <= -5.5)
		tmp = x + (1.0 / (14.431876219268936 / y));
	elseif (z <= 4e-6)
		tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
	else
		tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := If[LessEqual[z, -5.5], N[(x + N[(1.0 / N[(14.431876219268936 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4e-6], N[(x + N[(y * N[(0.08333333333333323 + N[(z * -0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5:\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\

\mathbf{elif}\;z \leq 4 \cdot 10^{-6}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot -0.00277777777751721\right)\\

\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\


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

    1. Initial program 35.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. remove-double-neg35.8%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*50.6%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in50.6%

        \[\leadsto x + \left(-\color{blue}{y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)}\right) \]
      4. distribute-lft-neg-in50.6%

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)} \]
      5. distribute-lft-neg-in50.6%

        \[\leadsto x + \color{blue}{\left(-y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      6. distribute-rgt-neg-in50.6%

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

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

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

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

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

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

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

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

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

        \[\leadsto x + \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}} \]
      5. clear-num35.8%

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

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

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

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

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

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

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

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

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

    if -5.5 < z < 3.99999999999999982e-6

    1. Initial program 99.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. remove-double-neg99.7%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*99.8%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in99.8%

        \[\leadsto x + \left(-\color{blue}{y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)}\right) \]
      4. distribute-lft-neg-in99.8%

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)} \]
      5. distribute-lft-neg-in99.8%

        \[\leadsto x + \color{blue}{\left(-y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      6. distribute-rgt-neg-in99.8%

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

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

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

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

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

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

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

    if 3.99999999999999982e-6 < z

    1. Initial program 39.1%

      \[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. remove-double-neg39.1%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*48.9%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in48.9%

        \[\leadsto x + \left(-\color{blue}{y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)}\right) \]
      4. distribute-lft-neg-in48.9%

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)} \]
      5. distribute-lft-neg-in48.9%

        \[\leadsto x + \color{blue}{\left(-y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      6. distribute-rgt-neg-in48.9%

        \[\leadsto x + \color{blue}{y \cdot \left(-\left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      7. remove-double-neg48.9%

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

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

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

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

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

      \[\leadsto x + y \cdot \color{blue}{\left(0.0692910599291889 + 0.07512208616047561 \cdot \frac{1}{z}\right)} \]
    6. Step-by-step derivation
      1. associate-*r/99.5%

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

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

      \[\leadsto x + y \cdot \color{blue}{\left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification99.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.5:\\ \;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\ \mathbf{elif}\;z \leq 4 \cdot 10^{-6}:\\ \;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot -0.00277777777751721\right)\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 99.0% accurate, 1.1× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5:\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\

\mathbf{elif}\;z \leq 4 \cdot 10^{-6}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\

\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\


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

    1. Initial program 35.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. remove-double-neg35.8%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*50.6%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in50.6%

        \[\leadsto x + \left(-\color{blue}{y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)}\right) \]
      4. distribute-lft-neg-in50.6%

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)} \]
      5. distribute-lft-neg-in50.6%

        \[\leadsto x + \color{blue}{\left(-y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      6. distribute-rgt-neg-in50.6%

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

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

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

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

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

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

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

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

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

        \[\leadsto x + \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}} \]
      5. clear-num35.8%

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

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

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

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

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

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

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

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

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

    if -5.5 < z < 3.99999999999999982e-6

    1. Initial program 99.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. +-commutative99.7%

        \[\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. *-commutative99.7%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{x + 0.08333333333333323 \cdot y} \]
    6. Step-by-step derivation
      1. +-commutative99.1%

        \[\leadsto \color{blue}{0.08333333333333323 \cdot y + x} \]
    7. Simplified99.1%

      \[\leadsto \color{blue}{0.08333333333333323 \cdot y + x} \]

    if 3.99999999999999982e-6 < z

    1. Initial program 39.1%

      \[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. remove-double-neg39.1%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*48.9%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in48.9%

        \[\leadsto x + \left(-\color{blue}{y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)}\right) \]
      4. distribute-lft-neg-in48.9%

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)} \]
      5. distribute-lft-neg-in48.9%

        \[\leadsto x + \color{blue}{\left(-y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      6. distribute-rgt-neg-in48.9%

        \[\leadsto x + \color{blue}{y \cdot \left(-\left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      7. remove-double-neg48.9%

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

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

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

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

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

      \[\leadsto x + y \cdot \color{blue}{\left(0.0692910599291889 + 0.07512208616047561 \cdot \frac{1}{z}\right)} \]
    6. Step-by-step derivation
      1. associate-*r/99.5%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.5:\\ \;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\ \mathbf{elif}\;z \leq 4 \cdot 10^{-6}:\\ \;\;\;\;x + y \cdot 0.08333333333333323\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 98.9% accurate, 1.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \lor \neg \left(z \leq 4 \cdot 10^{-6}\right):\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\

\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -5.5 or 3.99999999999999982e-6 < z

    1. Initial program 37.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. remove-double-neg37.4%

        \[\leadsto x + \color{blue}{\left(-\left(-\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}\right)\right)} \]
      2. associate-/l*49.8%

        \[\leadsto x + \left(-\left(-\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}}\right)\right) \]
      3. distribute-rgt-neg-in49.8%

        \[\leadsto x + \left(-\color{blue}{y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)}\right) \]
      4. distribute-lft-neg-in49.8%

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)} \]
      5. distribute-lft-neg-in49.8%

        \[\leadsto x + \color{blue}{\left(-y \cdot \left(-\frac{\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\right)\right)} \]
      6. distribute-rgt-neg-in49.8%

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

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

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

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

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

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

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

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

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

        \[\leadsto x + \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}} \]
      5. clear-num37.4%

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

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

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

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

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

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

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

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

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

    if -5.5 < z < 3.99999999999999982e-6

    1. Initial program 99.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. +-commutative99.7%

        \[\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. *-commutative99.7%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{x + 0.08333333333333323 \cdot y} \]
    6. Step-by-step derivation
      1. +-commutative99.1%

        \[\leadsto \color{blue}{0.08333333333333323 \cdot y + x} \]
    7. Simplified99.1%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.5 \lor \neg \left(z \leq 4 \cdot 10^{-6}\right):\\ \;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot 0.08333333333333323\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 98.8% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \lor \neg \left(z \leq 4 \cdot 10^{-6}\right):\\
\;\;\;\;x + y \cdot 0.0692910599291889\\

\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -5.5 or 3.99999999999999982e-6 < z

    1. Initial program 37.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. +-commutative37.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. *-commutative37.4%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{x + 0.0692910599291889 \cdot y} \]
    6. Step-by-step derivation
      1. +-commutative99.5%

        \[\leadsto \color{blue}{0.0692910599291889 \cdot y + x} \]
    7. Simplified99.5%

      \[\leadsto \color{blue}{0.0692910599291889 \cdot y + x} \]

    if -5.5 < z < 3.99999999999999982e-6

    1. Initial program 99.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. +-commutative99.7%

        \[\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. *-commutative99.7%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{x + 0.08333333333333323 \cdot y} \]
    6. Step-by-step derivation
      1. +-commutative99.1%

        \[\leadsto \color{blue}{0.08333333333333323 \cdot y + x} \]
    7. Simplified99.1%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.5 \lor \neg \left(z \leq 4 \cdot 10^{-6}\right):\\ \;\;\;\;x + y \cdot 0.0692910599291889\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot 0.08333333333333323\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 78.3% accurate, 2.1× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.85 \cdot 10^{+210}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 1.84999999999999999e210

    1. Initial program 70.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. +-commutative70.0%

        \[\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. *-commutative70.0%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{x + 0.0692910599291889 \cdot y} \]
    6. Step-by-step derivation
      1. +-commutative83.9%

        \[\leadsto \color{blue}{0.0692910599291889 \cdot y + x} \]
    7. Simplified83.9%

      \[\leadsto \color{blue}{0.0692910599291889 \cdot y + x} \]

    if 1.84999999999999999e210 < y

    1. Initial program 75.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. +-commutative75.5%

        \[\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. *-commutative75.5%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{x + 0.08333333333333323 \cdot y} \]
    6. Step-by-step derivation
      1. +-commutative80.2%

        \[\leadsto \color{blue}{0.08333333333333323 \cdot y + x} \]
    7. Simplified80.2%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 1.85 \cdot 10^{+210}:\\ \;\;\;\;x + y \cdot 0.0692910599291889\\ \mathbf{else}:\\ \;\;\;\;y \cdot 0.08333333333333323\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 50.5% 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 70.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. +-commutative70.5%

      \[\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. *-commutative70.5%

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

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

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{x} \]
  6. Add Preprocessing

Developer target: 99.4% accurate, 0.6× 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 2024108 
(FPCore (x y z)
  :name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, B"
  :precision binary64

  :alt
  (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))))