Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, H

Percentage Accurate: 95.7% → 97.5%
Time: 10.2s
Alternatives: 16
Speedup: 0.7×

Specification

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

\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\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 16 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: 95.7% accurate, 1.0× speedup?

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

\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}

Alternative 1: 97.5% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.9 \cdot 10^{-92}:\\ \;\;\;\;x + \frac{\frac{t}{y} - y}{z \cdot 3}\\ \mathbf{elif}\;y \leq 2.9 \cdot 10^{-63}:\\ \;\;\;\;\frac{\frac{t \cdot 0.3333333333333333}{z} + x \cdot y}{y}\\ \mathbf{else}:\\ \;\;\;\;x + \left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= y -2.9e-92)
   (+ x (/ (- (/ t y) y) (* z 3.0)))
   (if (<= y 2.9e-63)
     (/ (+ (/ (* t 0.3333333333333333) z) (* x y)) y)
     (+ x (* (- y (/ t y)) (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -2.9e-92) {
		tmp = x + (((t / y) - y) / (z * 3.0));
	} else if (y <= 2.9e-63) {
		tmp = (((t * 0.3333333333333333) / z) + (x * y)) / y;
	} else {
		tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z));
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: tmp
    if (y <= (-2.9d-92)) then
        tmp = x + (((t / y) - y) / (z * 3.0d0))
    else if (y <= 2.9d-63) then
        tmp = (((t * 0.3333333333333333d0) / z) + (x * y)) / y
    else
        tmp = x + ((y - (t / y)) * ((-0.3333333333333333d0) / z))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -2.9e-92) {
		tmp = x + (((t / y) - y) / (z * 3.0));
	} else if (y <= 2.9e-63) {
		tmp = (((t * 0.3333333333333333) / z) + (x * y)) / y;
	} else {
		tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if y <= -2.9e-92:
		tmp = x + (((t / y) - y) / (z * 3.0))
	elif y <= 2.9e-63:
		tmp = (((t * 0.3333333333333333) / z) + (x * y)) / y
	else:
		tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (y <= -2.9e-92)
		tmp = Float64(x + Float64(Float64(Float64(t / y) - y) / Float64(z * 3.0)));
	elseif (y <= 2.9e-63)
		tmp = Float64(Float64(Float64(Float64(t * 0.3333333333333333) / z) + Float64(x * y)) / y);
	else
		tmp = Float64(x + Float64(Float64(y - Float64(t / y)) * Float64(-0.3333333333333333 / z)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (y <= -2.9e-92)
		tmp = x + (((t / y) - y) / (z * 3.0));
	elseif (y <= 2.9e-63)
		tmp = (((t * 0.3333333333333333) / z) + (x * y)) / y;
	else
		tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.9e-92], N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.9e-63], N[(N[(N[(N[(t * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x + N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq 2.9 \cdot 10^{-63}:\\
\;\;\;\;\frac{\frac{t \cdot 0.3333333333333333}{z} + x \cdot y}{y}\\

\mathbf{else}:\\
\;\;\;\;x + \left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -2.89999999999999985e-92

    1. Initial program 94.6%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. associate-+l-N/A

        \[\leadsto x - \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
      2. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
      3. *-commutativeN/A

        \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
      4. associate-/r*N/A

        \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
      5. sub-divN/A

        \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y - \frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
      6. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(z \cdot 3\right)}\right)\right) \]
      7. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\color{blue}{z} \cdot 3\right)\right)\right) \]
      8. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
      9. *-lowering-*.f6499.8%

        \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
    4. Applied egg-rr99.8%

      \[\leadsto \color{blue}{x - \frac{y - \frac{t}{y}}{z \cdot 3}} \]

    if -2.89999999999999985e-92 < y < 2.89999999999999975e-63

    1. Initial program 90.9%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. sub-negN/A

        \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
      2. associate-+l+N/A

        \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
      3. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
      4. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
      5. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
      6. neg-mul-1N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
      8. associate-*l/N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
      9. associate-/l*N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
      10. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
      11. distribute-neg-fracN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
      12. neg-mul-1N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
      13. times-fracN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
      14. distribute-lft-out--N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
      15. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
      16. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
      17. associate-/r*N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
      18. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
      19. metadata-evalN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
      20. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
      21. /-lowering-/.f6488.5%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
    3. Simplified88.5%

      \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0

      \[\leadsto \color{blue}{\frac{\frac{1}{3} \cdot \frac{t}{z} + x \cdot y}{y}} \]
    6. Step-by-step derivation
      1. /-lowering-/.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\left(\frac{1}{3} \cdot \frac{t}{z} + x \cdot y\right), \color{blue}{y}\right) \]
      2. +-lowering-+.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{+.f64}\left(\left(\frac{1}{3} \cdot \frac{t}{z}\right), \left(x \cdot y\right)\right), y\right) \]
      3. associate-*r/N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{+.f64}\left(\left(\frac{\frac{1}{3} \cdot t}{z}\right), \left(x \cdot y\right)\right), y\right) \]
      4. /-lowering-/.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(\frac{1}{3} \cdot t\right), z\right), \left(x \cdot y\right)\right), y\right) \]
      5. *-commutativeN/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(t \cdot \frac{1}{3}\right), z\right), \left(x \cdot y\right)\right), y\right) \]
      6. *-lowering-*.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \frac{1}{3}\right), z\right), \left(x \cdot y\right)\right), y\right) \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \frac{1}{3}\right), z\right), \left(y \cdot x\right)\right), y\right) \]
      8. *-lowering-*.f6499.7%

        \[\leadsto \mathsf{/.f64}\left(\mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \frac{1}{3}\right), z\right), \mathsf{*.f64}\left(y, x\right)\right), y\right) \]
    7. Simplified99.7%

      \[\leadsto \color{blue}{\frac{\frac{t \cdot 0.3333333333333333}{z} + y \cdot x}{y}} \]

    if 2.89999999999999975e-63 < y

    1. Initial program 98.5%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. sub-negN/A

        \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
      2. associate-+l+N/A

        \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
      3. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
      4. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
      5. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
      6. neg-mul-1N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
      8. associate-*l/N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
      9. associate-/l*N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
      10. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
      11. distribute-neg-fracN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
      12. neg-mul-1N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
      13. times-fracN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
      14. distribute-lft-out--N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
      15. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
      16. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
      17. associate-/r*N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
      18. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
      19. metadata-evalN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
      20. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
      21. /-lowering-/.f6499.8%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
    3. Simplified99.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.9 \cdot 10^{-92}:\\ \;\;\;\;x + \frac{\frac{t}{y} - y}{z \cdot 3}\\ \mathbf{elif}\;y \leq 2.9 \cdot 10^{-63}:\\ \;\;\;\;\frac{\frac{t \cdot 0.3333333333333333}{z} + x \cdot y}{y}\\ \mathbf{else}:\\ \;\;\;\;x + \left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 88.2% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -9.5 \cdot 10^{+69}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \mathbf{elif}\;y \leq -1.65 \cdot 10^{-14}:\\ \;\;\;\;\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 5.9 \cdot 10^{+85}:\\ \;\;\;\;x + \frac{t}{y \cdot \left(z \cdot 3\right)}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= y -9.5e+69)
   (- x (/ y (* z 3.0)))
   (if (<= y -1.65e-14)
     (* (- y (/ t y)) (/ -0.3333333333333333 z))
     (if (<= y 5.9e+85)
       (+ x (/ t (* y (* z 3.0))))
       (+ x (* y (/ -0.3333333333333333 z)))))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -9.5e+69) {
		tmp = x - (y / (z * 3.0));
	} else if (y <= -1.65e-14) {
		tmp = (y - (t / y)) * (-0.3333333333333333 / z);
	} else if (y <= 5.9e+85) {
		tmp = x + (t / (y * (z * 3.0)));
	} else {
		tmp = x + (y * (-0.3333333333333333 / z));
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: tmp
    if (y <= (-9.5d+69)) then
        tmp = x - (y / (z * 3.0d0))
    else if (y <= (-1.65d-14)) then
        tmp = (y - (t / y)) * ((-0.3333333333333333d0) / z)
    else if (y <= 5.9d+85) then
        tmp = x + (t / (y * (z * 3.0d0)))
    else
        tmp = x + (y * ((-0.3333333333333333d0) / z))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -9.5e+69) {
		tmp = x - (y / (z * 3.0));
	} else if (y <= -1.65e-14) {
		tmp = (y - (t / y)) * (-0.3333333333333333 / z);
	} else if (y <= 5.9e+85) {
		tmp = x + (t / (y * (z * 3.0)));
	} else {
		tmp = x + (y * (-0.3333333333333333 / z));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if y <= -9.5e+69:
		tmp = x - (y / (z * 3.0))
	elif y <= -1.65e-14:
		tmp = (y - (t / y)) * (-0.3333333333333333 / z)
	elif y <= 5.9e+85:
		tmp = x + (t / (y * (z * 3.0)))
	else:
		tmp = x + (y * (-0.3333333333333333 / z))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (y <= -9.5e+69)
		tmp = Float64(x - Float64(y / Float64(z * 3.0)));
	elseif (y <= -1.65e-14)
		tmp = Float64(Float64(y - Float64(t / y)) * Float64(-0.3333333333333333 / z));
	elseif (y <= 5.9e+85)
		tmp = Float64(x + Float64(t / Float64(y * Float64(z * 3.0))));
	else
		tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (y <= -9.5e+69)
		tmp = x - (y / (z * 3.0));
	elseif (y <= -1.65e-14)
		tmp = (y - (t / y)) * (-0.3333333333333333 / z);
	elseif (y <= 5.9e+85)
		tmp = x + (t / (y * (z * 3.0)));
	else
		tmp = x + (y * (-0.3333333333333333 / z));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[y, -9.5e+69], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.65e-14], N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.9e+85], N[(x + N[(t / N[(y * N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq -1.65 \cdot 10^{-14}:\\
\;\;\;\;\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}\\

\mathbf{elif}\;y \leq 5.9 \cdot 10^{+85}:\\
\;\;\;\;x + \frac{t}{y \cdot \left(z \cdot 3\right)}\\

\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -9.4999999999999995e69

    1. Initial program 94.5%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. associate-+l-N/A

        \[\leadsto x - \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
      2. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
      3. *-commutativeN/A

        \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
      4. associate-/r*N/A

        \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
      5. sub-divN/A

        \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y - \frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
      6. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(z \cdot 3\right)}\right)\right) \]
      7. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\color{blue}{z} \cdot 3\right)\right)\right) \]
      8. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
      9. *-lowering-*.f6499.9%

        \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
    4. Applied egg-rr99.9%

      \[\leadsto \color{blue}{x - \frac{y - \frac{t}{y}}{z \cdot 3}} \]
    5. Taylor expanded in y around inf

      \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\color{blue}{y}, \mathsf{*.f64}\left(z, 3\right)\right)\right) \]
    6. Step-by-step derivation
      1. Simplified94.6%

        \[\leadsto x - \frac{\color{blue}{y}}{z \cdot 3} \]

      if -9.4999999999999995e69 < y < -1.6499999999999999e-14

      1. Initial program 95.8%

        \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. associate-+l-N/A

          \[\leadsto x - \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
        2. --lowering--.f64N/A

          \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
        3. *-commutativeN/A

          \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
        4. associate-/r*N/A

          \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
        5. sub-divN/A

          \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y - \frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
        6. /-lowering-/.f64N/A

          \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(z \cdot 3\right)}\right)\right) \]
        7. --lowering--.f64N/A

          \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\color{blue}{z} \cdot 3\right)\right)\right) \]
        8. /-lowering-/.f64N/A

          \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
        9. *-lowering-*.f6499.7%

          \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
      4. Applied egg-rr99.7%

        \[\leadsto \color{blue}{x - \frac{y - \frac{t}{y}}{z \cdot 3}} \]
      5. Taylor expanded in x around 0

        \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y - \frac{t}{y}}{z}} \]
      6. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \frac{y - \frac{t}{y}}{z} \cdot \color{blue}{\frac{-1}{3}} \]
        2. associate-*l/N/A

          \[\leadsto \frac{\left(y - \frac{t}{y}\right) \cdot \frac{-1}{3}}{\color{blue}{z}} \]
        3. associate-/l*N/A

          \[\leadsto \left(y - \frac{t}{y}\right) \cdot \color{blue}{\frac{\frac{-1}{3}}{z}} \]
        4. metadata-evalN/A

          \[\leadsto \left(y - \frac{t}{y}\right) \cdot \frac{\mathsf{neg}\left(\frac{1}{3}\right)}{z} \]
        5. distribute-neg-fracN/A

          \[\leadsto \left(y - \frac{t}{y}\right) \cdot \left(\mathsf{neg}\left(\frac{\frac{1}{3}}{z}\right)\right) \]
        6. metadata-evalN/A

          \[\leadsto \left(y - \frac{t}{y}\right) \cdot \left(\mathsf{neg}\left(\frac{\frac{1}{3} \cdot 1}{z}\right)\right) \]
        7. associate-*r/N/A

          \[\leadsto \left(y - \frac{t}{y}\right) \cdot \left(\mathsf{neg}\left(\frac{1}{3} \cdot \frac{1}{z}\right)\right) \]
        8. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(\mathsf{neg}\left(\frac{1}{3} \cdot \frac{1}{z}\right)\right)}\right) \]
        9. --lowering--.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\mathsf{neg}\left(\color{blue}{\frac{1}{3} \cdot \frac{1}{z}}\right)\right)\right) \]
        10. /-lowering-/.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(\mathsf{neg}\left(\frac{1}{3} \cdot \color{blue}{\frac{1}{z}}\right)\right)\right) \]
        11. associate-*r/N/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(\mathsf{neg}\left(\frac{\frac{1}{3} \cdot 1}{z}\right)\right)\right) \]
        12. metadata-evalN/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(\mathsf{neg}\left(\frac{\frac{1}{3}}{z}\right)\right)\right) \]
        13. distribute-neg-fracN/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(\frac{\mathsf{neg}\left(\frac{1}{3}\right)}{\color{blue}{z}}\right)\right) \]
        14. metadata-evalN/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(\frac{\frac{-1}{3}}{z}\right)\right) \]
        15. /-lowering-/.f6488.0%

          \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{/.f64}\left(\frac{-1}{3}, \color{blue}{z}\right)\right) \]
      7. Simplified88.0%

        \[\leadsto \color{blue}{\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}} \]

      if -1.6499999999999999e-14 < y < 5.9e85

      1. Initial program 92.7%

        \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
      2. Add Preprocessing
      3. Taylor expanded in x around inf

        \[\leadsto \mathsf{+.f64}\left(\color{blue}{x}, \mathsf{/.f64}\left(t, \mathsf{*.f64}\left(\mathsf{*.f64}\left(z, 3\right), y\right)\right)\right) \]
      4. Step-by-step derivation
        1. Simplified90.6%

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

        if 5.9e85 < y

        1. Initial program 99.8%

          \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
        2. Step-by-step derivation
          1. sub-negN/A

            \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
          2. associate-+l+N/A

            \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
          3. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
          4. remove-double-negN/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
          5. unsub-negN/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
          6. neg-mul-1N/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
          7. *-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
          8. associate-*l/N/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
          9. associate-/l*N/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
          10. *-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
          11. distribute-neg-fracN/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
          12. neg-mul-1N/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
          13. times-fracN/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
          14. distribute-lft-out--N/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
          15. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
          16. *-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
          17. associate-/r*N/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
          18. /-lowering-/.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
          19. metadata-evalN/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
          20. --lowering--.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
          21. /-lowering-/.f6499.8%

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
        3. Simplified99.8%

          \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
        4. Add Preprocessing
        5. Taylor expanded in y around inf

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \color{blue}{y}\right)\right) \]
        6. Step-by-step derivation
          1. Simplified99.8%

            \[\leadsto x + \frac{-0.3333333333333333}{z} \cdot \color{blue}{y} \]
        7. Recombined 4 regimes into one program.
        8. Final simplification92.7%

          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -9.5 \cdot 10^{+69}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \mathbf{elif}\;y \leq -1.65 \cdot 10^{-14}:\\ \;\;\;\;\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 5.9 \cdot 10^{+85}:\\ \;\;\;\;x + \frac{t}{y \cdot \left(z \cdot 3\right)}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \end{array} \]
        9. Add Preprocessing

        Alternative 3: 79.4% accurate, 0.7× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \cdot 3 \leq -2 \cdot 10^{+182}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;z \cdot 3 \leq 2 \cdot 10^{+20}:\\ \;\;\;\;\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \end{array} \end{array} \]
        (FPCore (x y z t)
         :precision binary64
         (if (<= (* z 3.0) -2e+182)
           (+ x (* y (/ -0.3333333333333333 z)))
           (if (<= (* z 3.0) 2e+20)
             (* (- y (/ t y)) (/ -0.3333333333333333 z))
             (- x (/ y (* z 3.0))))))
        double code(double x, double y, double z, double t) {
        	double tmp;
        	if ((z * 3.0) <= -2e+182) {
        		tmp = x + (y * (-0.3333333333333333 / z));
        	} else if ((z * 3.0) <= 2e+20) {
        		tmp = (y - (t / y)) * (-0.3333333333333333 / z);
        	} else {
        		tmp = x - (y / (z * 3.0));
        	}
        	return tmp;
        }
        
        real(8) function code(x, y, z, t)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            real(8), intent (in) :: z
            real(8), intent (in) :: t
            real(8) :: tmp
            if ((z * 3.0d0) <= (-2d+182)) then
                tmp = x + (y * ((-0.3333333333333333d0) / z))
            else if ((z * 3.0d0) <= 2d+20) then
                tmp = (y - (t / y)) * ((-0.3333333333333333d0) / z)
            else
                tmp = x - (y / (z * 3.0d0))
            end if
            code = tmp
        end function
        
        public static double code(double x, double y, double z, double t) {
        	double tmp;
        	if ((z * 3.0) <= -2e+182) {
        		tmp = x + (y * (-0.3333333333333333 / z));
        	} else if ((z * 3.0) <= 2e+20) {
        		tmp = (y - (t / y)) * (-0.3333333333333333 / z);
        	} else {
        		tmp = x - (y / (z * 3.0));
        	}
        	return tmp;
        }
        
        def code(x, y, z, t):
        	tmp = 0
        	if (z * 3.0) <= -2e+182:
        		tmp = x + (y * (-0.3333333333333333 / z))
        	elif (z * 3.0) <= 2e+20:
        		tmp = (y - (t / y)) * (-0.3333333333333333 / z)
        	else:
        		tmp = x - (y / (z * 3.0))
        	return tmp
        
        function code(x, y, z, t)
        	tmp = 0.0
        	if (Float64(z * 3.0) <= -2e+182)
        		tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z)));
        	elseif (Float64(z * 3.0) <= 2e+20)
        		tmp = Float64(Float64(y - Float64(t / y)) * Float64(-0.3333333333333333 / z));
        	else
        		tmp = Float64(x - Float64(y / Float64(z * 3.0)));
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t)
        	tmp = 0.0;
        	if ((z * 3.0) <= -2e+182)
        		tmp = x + (y * (-0.3333333333333333 / z));
        	elseif ((z * 3.0) <= 2e+20)
        		tmp = (y - (t / y)) * (-0.3333333333333333 / z);
        	else
        		tmp = x - (y / (z * 3.0));
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], -2e+182], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(z * 3.0), $MachinePrecision], 2e+20], N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;z \cdot 3 \leq -2 \cdot 10^{+182}:\\
        \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
        
        \mathbf{elif}\;z \cdot 3 \leq 2 \cdot 10^{+20}:\\
        \;\;\;\;\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}\\
        
        \mathbf{else}:\\
        \;\;\;\;x - \frac{y}{z \cdot 3}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if (*.f64 z #s(literal 3 binary64)) < -2.0000000000000001e182

          1. Initial program 99.7%

            \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
          2. Step-by-step derivation
            1. sub-negN/A

              \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
            2. associate-+l+N/A

              \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
            3. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
            4. remove-double-negN/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
            5. unsub-negN/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
            6. neg-mul-1N/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
            7. *-commutativeN/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
            8. associate-*l/N/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
            9. associate-/l*N/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
            10. *-commutativeN/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
            11. distribute-neg-fracN/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
            12. neg-mul-1N/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
            13. times-fracN/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
            14. distribute-lft-out--N/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
            15. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
            16. *-commutativeN/A

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
            17. associate-/r*N/A

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
            18. /-lowering-/.f64N/A

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
            19. metadata-evalN/A

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
            20. --lowering--.f64N/A

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
            21. /-lowering-/.f6490.7%

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
          3. Simplified90.7%

            \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
          4. Add Preprocessing
          5. Taylor expanded in y around inf

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \color{blue}{y}\right)\right) \]
          6. Step-by-step derivation
            1. Simplified81.7%

              \[\leadsto x + \frac{-0.3333333333333333}{z} \cdot \color{blue}{y} \]

            if -2.0000000000000001e182 < (*.f64 z #s(literal 3 binary64)) < 2e20

            1. Initial program 92.6%

              \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
            2. Add Preprocessing
            3. Step-by-step derivation
              1. associate-+l-N/A

                \[\leadsto x - \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
              2. --lowering--.f64N/A

                \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
              3. *-commutativeN/A

                \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
              4. associate-/r*N/A

                \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
              5. sub-divN/A

                \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y - \frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
              6. /-lowering-/.f64N/A

                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(z \cdot 3\right)}\right)\right) \]
              7. --lowering--.f64N/A

                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\color{blue}{z} \cdot 3\right)\right)\right) \]
              8. /-lowering-/.f64N/A

                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
              9. *-lowering-*.f6498.2%

                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
            4. Applied egg-rr98.2%

              \[\leadsto \color{blue}{x - \frac{y - \frac{t}{y}}{z \cdot 3}} \]
            5. Taylor expanded in x around 0

              \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y - \frac{t}{y}}{z}} \]
            6. Step-by-step derivation
              1. *-commutativeN/A

                \[\leadsto \frac{y - \frac{t}{y}}{z} \cdot \color{blue}{\frac{-1}{3}} \]
              2. associate-*l/N/A

                \[\leadsto \frac{\left(y - \frac{t}{y}\right) \cdot \frac{-1}{3}}{\color{blue}{z}} \]
              3. associate-/l*N/A

                \[\leadsto \left(y - \frac{t}{y}\right) \cdot \color{blue}{\frac{\frac{-1}{3}}{z}} \]
              4. metadata-evalN/A

                \[\leadsto \left(y - \frac{t}{y}\right) \cdot \frac{\mathsf{neg}\left(\frac{1}{3}\right)}{z} \]
              5. distribute-neg-fracN/A

                \[\leadsto \left(y - \frac{t}{y}\right) \cdot \left(\mathsf{neg}\left(\frac{\frac{1}{3}}{z}\right)\right) \]
              6. metadata-evalN/A

                \[\leadsto \left(y - \frac{t}{y}\right) \cdot \left(\mathsf{neg}\left(\frac{\frac{1}{3} \cdot 1}{z}\right)\right) \]
              7. associate-*r/N/A

                \[\leadsto \left(y - \frac{t}{y}\right) \cdot \left(\mathsf{neg}\left(\frac{1}{3} \cdot \frac{1}{z}\right)\right) \]
              8. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(\mathsf{neg}\left(\frac{1}{3} \cdot \frac{1}{z}\right)\right)}\right) \]
              9. --lowering--.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\mathsf{neg}\left(\color{blue}{\frac{1}{3} \cdot \frac{1}{z}}\right)\right)\right) \]
              10. /-lowering-/.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(\mathsf{neg}\left(\frac{1}{3} \cdot \color{blue}{\frac{1}{z}}\right)\right)\right) \]
              11. associate-*r/N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(\mathsf{neg}\left(\frac{\frac{1}{3} \cdot 1}{z}\right)\right)\right) \]
              12. metadata-evalN/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(\mathsf{neg}\left(\frac{\frac{1}{3}}{z}\right)\right)\right) \]
              13. distribute-neg-fracN/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(\frac{\mathsf{neg}\left(\frac{1}{3}\right)}{\color{blue}{z}}\right)\right) \]
              14. metadata-evalN/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(\frac{\frac{-1}{3}}{z}\right)\right) \]
              15. /-lowering-/.f6485.0%

                \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{/.f64}\left(\frac{-1}{3}, \color{blue}{z}\right)\right) \]
            7. Simplified85.0%

              \[\leadsto \color{blue}{\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}} \]

            if 2e20 < (*.f64 z #s(literal 3 binary64))

            1. Initial program 98.2%

              \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
            2. Add Preprocessing
            3. Step-by-step derivation
              1. associate-+l-N/A

                \[\leadsto x - \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
              2. --lowering--.f64N/A

                \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
              3. *-commutativeN/A

                \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
              4. associate-/r*N/A

                \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
              5. sub-divN/A

                \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y - \frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
              6. /-lowering-/.f64N/A

                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(z \cdot 3\right)}\right)\right) \]
              7. --lowering--.f64N/A

                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\color{blue}{z} \cdot 3\right)\right)\right) \]
              8. /-lowering-/.f64N/A

                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
              9. *-lowering-*.f6492.0%

                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
            4. Applied egg-rr92.0%

              \[\leadsto \color{blue}{x - \frac{y - \frac{t}{y}}{z \cdot 3}} \]
            5. Taylor expanded in y around inf

              \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\color{blue}{y}, \mathsf{*.f64}\left(z, 3\right)\right)\right) \]
            6. Step-by-step derivation
              1. Simplified73.0%

                \[\leadsto x - \frac{\color{blue}{y}}{z \cdot 3} \]
            7. Recombined 3 regimes into one program.
            8. Final simplification81.9%

              \[\leadsto \begin{array}{l} \mathbf{if}\;z \cdot 3 \leq -2 \cdot 10^{+182}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;z \cdot 3 \leq 2 \cdot 10^{+20}:\\ \;\;\;\;\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \end{array} \]
            9. Add Preprocessing

            Alternative 4: 63.1% accurate, 0.7× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.8 \cdot 10^{-14}:\\ \;\;\;\;\frac{y}{z \cdot -3}\\ \mathbf{elif}\;y \leq 3 \cdot 10^{+17}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\ \mathbf{elif}\;y \leq 4.3 \cdot 10^{+101}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \end{array} \end{array} \]
            (FPCore (x y z t)
             :precision binary64
             (if (<= y -1.8e-14)
               (/ y (* z -3.0))
               (if (<= y 3e+17)
                 (* 0.3333333333333333 (/ (/ t z) y))
                 (if (<= y 4.3e+101) x (/ (* y -0.3333333333333333) z)))))
            double code(double x, double y, double z, double t) {
            	double tmp;
            	if (y <= -1.8e-14) {
            		tmp = y / (z * -3.0);
            	} else if (y <= 3e+17) {
            		tmp = 0.3333333333333333 * ((t / z) / y);
            	} else if (y <= 4.3e+101) {
            		tmp = x;
            	} else {
            		tmp = (y * -0.3333333333333333) / z;
            	}
            	return tmp;
            }
            
            real(8) function code(x, y, z, t)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                real(8), intent (in) :: t
                real(8) :: tmp
                if (y <= (-1.8d-14)) then
                    tmp = y / (z * (-3.0d0))
                else if (y <= 3d+17) then
                    tmp = 0.3333333333333333d0 * ((t / z) / y)
                else if (y <= 4.3d+101) then
                    tmp = x
                else
                    tmp = (y * (-0.3333333333333333d0)) / z
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t) {
            	double tmp;
            	if (y <= -1.8e-14) {
            		tmp = y / (z * -3.0);
            	} else if (y <= 3e+17) {
            		tmp = 0.3333333333333333 * ((t / z) / y);
            	} else if (y <= 4.3e+101) {
            		tmp = x;
            	} else {
            		tmp = (y * -0.3333333333333333) / z;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t):
            	tmp = 0
            	if y <= -1.8e-14:
            		tmp = y / (z * -3.0)
            	elif y <= 3e+17:
            		tmp = 0.3333333333333333 * ((t / z) / y)
            	elif y <= 4.3e+101:
            		tmp = x
            	else:
            		tmp = (y * -0.3333333333333333) / z
            	return tmp
            
            function code(x, y, z, t)
            	tmp = 0.0
            	if (y <= -1.8e-14)
            		tmp = Float64(y / Float64(z * -3.0));
            	elseif (y <= 3e+17)
            		tmp = Float64(0.3333333333333333 * Float64(Float64(t / z) / y));
            	elseif (y <= 4.3e+101)
            		tmp = x;
            	else
            		tmp = Float64(Float64(y * -0.3333333333333333) / z);
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t)
            	tmp = 0.0;
            	if (y <= -1.8e-14)
            		tmp = y / (z * -3.0);
            	elseif (y <= 3e+17)
            		tmp = 0.3333333333333333 * ((t / z) / y);
            	elseif (y <= 4.3e+101)
            		tmp = x;
            	else
            		tmp = (y * -0.3333333333333333) / z;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_] := If[LessEqual[y, -1.8e-14], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3e+17], N[(0.3333333333333333 * N[(N[(t / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.3e+101], x, N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;y \leq -1.8 \cdot 10^{-14}:\\
            \;\;\;\;\frac{y}{z \cdot -3}\\
            
            \mathbf{elif}\;y \leq 3 \cdot 10^{+17}:\\
            \;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\
            
            \mathbf{elif}\;y \leq 4.3 \cdot 10^{+101}:\\
            \;\;\;\;x\\
            
            \mathbf{else}:\\
            \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 4 regimes
            2. if y < -1.7999999999999999e-14

              1. Initial program 94.9%

                \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
              2. Step-by-step derivation
                1. sub-negN/A

                  \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                2. associate-+l+N/A

                  \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                3. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                4. remove-double-negN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                5. unsub-negN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                6. neg-mul-1N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                7. *-commutativeN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                8. associate-*l/N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                9. associate-/l*N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                10. *-commutativeN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                11. distribute-neg-fracN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                12. neg-mul-1N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                13. times-fracN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                14. distribute-lft-out--N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                15. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                16. *-commutativeN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                17. associate-/r*N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                18. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                19. metadata-evalN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                20. --lowering--.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                21. /-lowering-/.f6499.7%

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
              3. Simplified99.7%

                \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
              4. Add Preprocessing
              5. Taylor expanded in y around inf

                \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
              6. Step-by-step derivation
                1. associate-*r/N/A

                  \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                2. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                3. *-lowering-*.f6460.9%

                  \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
              7. Simplified60.9%

                \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
              8. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto \frac{y \cdot \frac{-1}{3}}{z} \]
                2. associate-/l*N/A

                  \[\leadsto y \cdot \color{blue}{\frac{\frac{-1}{3}}{z}} \]
                3. clear-numN/A

                  \[\leadsto y \cdot \frac{1}{\color{blue}{\frac{z}{\frac{-1}{3}}}} \]
                4. un-div-invN/A

                  \[\leadsto \frac{y}{\color{blue}{\frac{z}{\frac{-1}{3}}}} \]
                5. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{/.f64}\left(y, \color{blue}{\left(\frac{z}{\frac{-1}{3}}\right)}\right) \]
                6. /-lowering-/.f6460.9%

                  \[\leadsto \mathsf{/.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{\frac{-1}{3}}\right)\right) \]
              9. Applied egg-rr60.9%

                \[\leadsto \color{blue}{\frac{y}{\frac{z}{-0.3333333333333333}}} \]
              10. Step-by-step derivation
                1. div-invN/A

                  \[\leadsto \mathsf{/.f64}\left(y, \left(z \cdot \color{blue}{\frac{1}{\frac{-1}{3}}}\right)\right) \]
                2. metadata-evalN/A

                  \[\leadsto \mathsf{/.f64}\left(y, \left(z \cdot -3\right)\right) \]
                3. *-lowering-*.f6460.9%

                  \[\leadsto \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, \color{blue}{-3}\right)\right) \]
              11. Applied egg-rr60.9%

                \[\leadsto \frac{y}{\color{blue}{z \cdot -3}} \]

              if -1.7999999999999999e-14 < y < 3e17

              1. Initial program 92.4%

                \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
              2. Add Preprocessing
              3. Step-by-step derivation
                1. associate-+l-N/A

                  \[\leadsto x - \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                2. --lowering--.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                3. *-commutativeN/A

                  \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
                4. associate-/r*N/A

                  \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                5. sub-divN/A

                  \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y - \frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                6. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(z \cdot 3\right)}\right)\right) \]
                7. --lowering--.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\color{blue}{z} \cdot 3\right)\right)\right) \]
                8. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
                9. *-lowering-*.f6491.5%

                  \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
              4. Applied egg-rr91.5%

                \[\leadsto \color{blue}{x - \frac{y - \frac{t}{y}}{z \cdot 3}} \]
              5. Taylor expanded in y around 0

                \[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{t}{y \cdot z}} \]
              6. Step-by-step derivation
                1. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \color{blue}{\left(\frac{t}{y \cdot z}\right)}\right) \]
                2. associate-/r*N/A

                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \left(\frac{\frac{t}{y}}{\color{blue}{z}}\right)\right) \]
                3. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\left(\frac{t}{y}\right), \color{blue}{z}\right)\right) \]
                4. /-lowering-/.f6465.2%

                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, y\right), z\right)\right) \]
              7. Simplified65.2%

                \[\leadsto \color{blue}{0.3333333333333333 \cdot \frac{\frac{t}{y}}{z}} \]
              8. Step-by-step derivation
                1. associate-/l/N/A

                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \left(\frac{t}{\color{blue}{z \cdot y}}\right)\right) \]
                2. associate-/r*N/A

                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \left(\frac{\frac{t}{z}}{\color{blue}{y}}\right)\right) \]
                3. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\left(\frac{t}{z}\right), \color{blue}{y}\right)\right) \]
                4. /-lowering-/.f6471.8%

                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, z\right), y\right)\right) \]
              9. Applied egg-rr71.8%

                \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\frac{t}{z}}{y}} \]

              if 3e17 < y < 4.3000000000000001e101

              1. Initial program 95.2%

                \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
              2. Step-by-step derivation
                1. sub-negN/A

                  \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                2. associate-+l+N/A

                  \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                3. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                4. remove-double-negN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                5. unsub-negN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                6. neg-mul-1N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                7. *-commutativeN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                8. associate-*l/N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                9. associate-/l*N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                10. *-commutativeN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                11. distribute-neg-fracN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                12. neg-mul-1N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                13. times-fracN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                14. distribute-lft-out--N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                15. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                16. *-commutativeN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                17. associate-/r*N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                18. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                19. metadata-evalN/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                20. --lowering--.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                21. /-lowering-/.f64100.0%

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
              3. Simplified100.0%

                \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
              4. Add Preprocessing
              5. Taylor expanded in x around inf

                \[\leadsto \color{blue}{x} \]
              6. Step-by-step derivation
                1. Simplified60.4%

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

                if 4.3000000000000001e101 < y

                1. Initial program 99.8%

                  \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                2. Step-by-step derivation
                  1. sub-negN/A

                    \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                  2. associate-+l+N/A

                    \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                  3. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                  4. remove-double-negN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                  5. unsub-negN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                  6. neg-mul-1N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  7. *-commutativeN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  8. associate-*l/N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  9. associate-/l*N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  10. *-commutativeN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  11. distribute-neg-fracN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                  12. neg-mul-1N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                  13. times-fracN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                  14. distribute-lft-out--N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                  15. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                  16. *-commutativeN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                  17. associate-/r*N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                  18. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                  19. metadata-evalN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                  20. --lowering--.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                  21. /-lowering-/.f6499.8%

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                3. Simplified99.8%

                  \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                4. Add Preprocessing
                5. Taylor expanded in y around inf

                  \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                6. Step-by-step derivation
                  1. associate-*r/N/A

                    \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                  2. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                  3. *-lowering-*.f6479.9%

                    \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
                7. Simplified79.9%

                  \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
              7. Recombined 4 regimes into one program.
              8. Final simplification68.6%

                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.8 \cdot 10^{-14}:\\ \;\;\;\;\frac{y}{z \cdot -3}\\ \mathbf{elif}\;y \leq 3 \cdot 10^{+17}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\ \mathbf{elif}\;y \leq 4.3 \cdot 10^{+101}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \end{array} \]
              9. Add Preprocessing

              Alternative 5: 61.1% accurate, 0.7× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.85 \cdot 10^{-14}:\\ \;\;\;\;\frac{y}{z \cdot -3}\\ \mathbf{elif}\;y \leq 2.9 \cdot 10^{+17}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ \mathbf{elif}\;y \leq 2.55 \cdot 10^{+101}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \end{array} \end{array} \]
              (FPCore (x y z t)
               :precision binary64
               (if (<= y -1.85e-14)
                 (/ y (* z -3.0))
                 (if (<= y 2.9e+17)
                   (* 0.3333333333333333 (/ t (* y z)))
                   (if (<= y 2.55e+101) x (/ (* y -0.3333333333333333) z)))))
              double code(double x, double y, double z, double t) {
              	double tmp;
              	if (y <= -1.85e-14) {
              		tmp = y / (z * -3.0);
              	} else if (y <= 2.9e+17) {
              		tmp = 0.3333333333333333 * (t / (y * z));
              	} else if (y <= 2.55e+101) {
              		tmp = x;
              	} else {
              		tmp = (y * -0.3333333333333333) / z;
              	}
              	return tmp;
              }
              
              real(8) function code(x, y, z, t)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8) :: tmp
                  if (y <= (-1.85d-14)) then
                      tmp = y / (z * (-3.0d0))
                  else if (y <= 2.9d+17) then
                      tmp = 0.3333333333333333d0 * (t / (y * z))
                  else if (y <= 2.55d+101) then
                      tmp = x
                  else
                      tmp = (y * (-0.3333333333333333d0)) / z
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y, double z, double t) {
              	double tmp;
              	if (y <= -1.85e-14) {
              		tmp = y / (z * -3.0);
              	} else if (y <= 2.9e+17) {
              		tmp = 0.3333333333333333 * (t / (y * z));
              	} else if (y <= 2.55e+101) {
              		tmp = x;
              	} else {
              		tmp = (y * -0.3333333333333333) / z;
              	}
              	return tmp;
              }
              
              def code(x, y, z, t):
              	tmp = 0
              	if y <= -1.85e-14:
              		tmp = y / (z * -3.0)
              	elif y <= 2.9e+17:
              		tmp = 0.3333333333333333 * (t / (y * z))
              	elif y <= 2.55e+101:
              		tmp = x
              	else:
              		tmp = (y * -0.3333333333333333) / z
              	return tmp
              
              function code(x, y, z, t)
              	tmp = 0.0
              	if (y <= -1.85e-14)
              		tmp = Float64(y / Float64(z * -3.0));
              	elseif (y <= 2.9e+17)
              		tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z)));
              	elseif (y <= 2.55e+101)
              		tmp = x;
              	else
              		tmp = Float64(Float64(y * -0.3333333333333333) / z);
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t)
              	tmp = 0.0;
              	if (y <= -1.85e-14)
              		tmp = y / (z * -3.0);
              	elseif (y <= 2.9e+17)
              		tmp = 0.3333333333333333 * (t / (y * z));
              	elseif (y <= 2.55e+101)
              		tmp = x;
              	else
              		tmp = (y * -0.3333333333333333) / z;
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_, z_, t_] := If[LessEqual[y, -1.85e-14], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.9e+17], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.55e+101], x, N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;y \leq -1.85 \cdot 10^{-14}:\\
              \;\;\;\;\frac{y}{z \cdot -3}\\
              
              \mathbf{elif}\;y \leq 2.9 \cdot 10^{+17}:\\
              \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
              
              \mathbf{elif}\;y \leq 2.55 \cdot 10^{+101}:\\
              \;\;\;\;x\\
              
              \mathbf{else}:\\
              \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 4 regimes
              2. if y < -1.85000000000000001e-14

                1. Initial program 94.9%

                  \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                2. Step-by-step derivation
                  1. sub-negN/A

                    \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                  2. associate-+l+N/A

                    \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                  3. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                  4. remove-double-negN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                  5. unsub-negN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                  6. neg-mul-1N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  7. *-commutativeN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  8. associate-*l/N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  9. associate-/l*N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  10. *-commutativeN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  11. distribute-neg-fracN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                  12. neg-mul-1N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                  13. times-fracN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                  14. distribute-lft-out--N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                  15. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                  16. *-commutativeN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                  17. associate-/r*N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                  18. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                  19. metadata-evalN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                  20. --lowering--.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                  21. /-lowering-/.f6499.7%

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                3. Simplified99.7%

                  \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                4. Add Preprocessing
                5. Taylor expanded in y around inf

                  \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                6. Step-by-step derivation
                  1. associate-*r/N/A

                    \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                  2. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                  3. *-lowering-*.f6460.9%

                    \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
                7. Simplified60.9%

                  \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
                8. Step-by-step derivation
                  1. *-commutativeN/A

                    \[\leadsto \frac{y \cdot \frac{-1}{3}}{z} \]
                  2. associate-/l*N/A

                    \[\leadsto y \cdot \color{blue}{\frac{\frac{-1}{3}}{z}} \]
                  3. clear-numN/A

                    \[\leadsto y \cdot \frac{1}{\color{blue}{\frac{z}{\frac{-1}{3}}}} \]
                  4. un-div-invN/A

                    \[\leadsto \frac{y}{\color{blue}{\frac{z}{\frac{-1}{3}}}} \]
                  5. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{/.f64}\left(y, \color{blue}{\left(\frac{z}{\frac{-1}{3}}\right)}\right) \]
                  6. /-lowering-/.f6460.9%

                    \[\leadsto \mathsf{/.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{\frac{-1}{3}}\right)\right) \]
                9. Applied egg-rr60.9%

                  \[\leadsto \color{blue}{\frac{y}{\frac{z}{-0.3333333333333333}}} \]
                10. Step-by-step derivation
                  1. div-invN/A

                    \[\leadsto \mathsf{/.f64}\left(y, \left(z \cdot \color{blue}{\frac{1}{\frac{-1}{3}}}\right)\right) \]
                  2. metadata-evalN/A

                    \[\leadsto \mathsf{/.f64}\left(y, \left(z \cdot -3\right)\right) \]
                  3. *-lowering-*.f6460.9%

                    \[\leadsto \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, \color{blue}{-3}\right)\right) \]
                11. Applied egg-rr60.9%

                  \[\leadsto \frac{y}{\color{blue}{z \cdot -3}} \]

                if -1.85000000000000001e-14 < y < 2.9e17

                1. Initial program 92.4%

                  \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                2. Add Preprocessing
                3. Step-by-step derivation
                  1. associate-+l-N/A

                    \[\leadsto x - \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                  2. --lowering--.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                  3. *-commutativeN/A

                    \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
                  4. associate-/r*N/A

                    \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                  5. sub-divN/A

                    \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y - \frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                  6. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(z \cdot 3\right)}\right)\right) \]
                  7. --lowering--.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\color{blue}{z} \cdot 3\right)\right)\right) \]
                  8. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
                  9. *-lowering-*.f6491.5%

                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
                4. Applied egg-rr91.5%

                  \[\leadsto \color{blue}{x - \frac{y - \frac{t}{y}}{z \cdot 3}} \]
                5. Taylor expanded in y around 0

                  \[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{t}{y \cdot z}} \]
                6. Step-by-step derivation
                  1. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \color{blue}{\left(\frac{t}{y \cdot z}\right)}\right) \]
                  2. associate-/r*N/A

                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \left(\frac{\frac{t}{y}}{\color{blue}{z}}\right)\right) \]
                  3. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\left(\frac{t}{y}\right), \color{blue}{z}\right)\right) \]
                  4. /-lowering-/.f6465.2%

                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, y\right), z\right)\right) \]
                7. Simplified65.2%

                  \[\leadsto \color{blue}{0.3333333333333333 \cdot \frac{\frac{t}{y}}{z}} \]
                8. Step-by-step derivation
                  1. *-commutativeN/A

                    \[\leadsto \frac{\frac{t}{y}}{z} \cdot \color{blue}{\frac{1}{3}} \]
                  2. associate-/l/N/A

                    \[\leadsto \frac{t}{z \cdot y} \cdot \frac{1}{3} \]
                  3. associate-*l/N/A

                    \[\leadsto \frac{t \cdot \frac{1}{3}}{\color{blue}{z \cdot y}} \]
                  4. times-fracN/A

                    \[\leadsto \frac{t}{z} \cdot \color{blue}{\frac{\frac{1}{3}}{y}} \]
                  5. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\left(\frac{t}{z}\right), \color{blue}{\left(\frac{\frac{1}{3}}{y}\right)}\right) \]
                  6. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(t, z\right), \left(\frac{\color{blue}{\frac{1}{3}}}{y}\right)\right) \]
                  7. /-lowering-/.f6471.8%

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(t, z\right), \mathsf{/.f64}\left(\frac{1}{3}, \color{blue}{y}\right)\right) \]
                9. Applied egg-rr71.8%

                  \[\leadsto \color{blue}{\frac{t}{z} \cdot \frac{0.3333333333333333}{y}} \]
                10. Step-by-step derivation
                  1. frac-timesN/A

                    \[\leadsto \frac{t \cdot \frac{1}{3}}{\color{blue}{z \cdot y}} \]
                  2. *-commutativeN/A

                    \[\leadsto \frac{\frac{1}{3} \cdot t}{\color{blue}{z} \cdot y} \]
                  3. associate-/l*N/A

                    \[\leadsto \frac{1}{3} \cdot \color{blue}{\frac{t}{z \cdot y}} \]
                  4. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \color{blue}{\left(\frac{t}{z \cdot y}\right)}\right) \]
                  5. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(t, \color{blue}{\left(z \cdot y\right)}\right)\right) \]
                  6. *-commutativeN/A

                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(t, \left(y \cdot \color{blue}{z}\right)\right)\right) \]
                  7. *-lowering-*.f6466.1%

                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(t, \mathsf{*.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
                11. Applied egg-rr66.1%

                  \[\leadsto \color{blue}{0.3333333333333333 \cdot \frac{t}{y \cdot z}} \]

                if 2.9e17 < y < 2.54999999999999997e101

                1. Initial program 95.2%

                  \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                2. Step-by-step derivation
                  1. sub-negN/A

                    \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                  2. associate-+l+N/A

                    \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                  3. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                  4. remove-double-negN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                  5. unsub-negN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                  6. neg-mul-1N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  7. *-commutativeN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  8. associate-*l/N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  9. associate-/l*N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  10. *-commutativeN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                  11. distribute-neg-fracN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                  12. neg-mul-1N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                  13. times-fracN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                  14. distribute-lft-out--N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                  15. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                  16. *-commutativeN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                  17. associate-/r*N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                  18. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                  19. metadata-evalN/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                  20. --lowering--.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                  21. /-lowering-/.f64100.0%

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                3. Simplified100.0%

                  \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                4. Add Preprocessing
                5. Taylor expanded in x around inf

                  \[\leadsto \color{blue}{x} \]
                6. Step-by-step derivation
                  1. Simplified60.4%

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

                  if 2.54999999999999997e101 < y

                  1. Initial program 99.8%

                    \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                  2. Step-by-step derivation
                    1. sub-negN/A

                      \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                    2. associate-+l+N/A

                      \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                    3. +-lowering-+.f64N/A

                      \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                    4. remove-double-negN/A

                      \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                    5. unsub-negN/A

                      \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                    6. neg-mul-1N/A

                      \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                    7. *-commutativeN/A

                      \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                    8. associate-*l/N/A

                      \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                    9. associate-/l*N/A

                      \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                    10. *-commutativeN/A

                      \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                    11. distribute-neg-fracN/A

                      \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                    12. neg-mul-1N/A

                      \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                    13. times-fracN/A

                      \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                    14. distribute-lft-out--N/A

                      \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                    15. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                    16. *-commutativeN/A

                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                    17. associate-/r*N/A

                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                    18. /-lowering-/.f64N/A

                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                    19. metadata-evalN/A

                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                    20. --lowering--.f64N/A

                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                    21. /-lowering-/.f6499.8%

                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                  3. Simplified99.8%

                    \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                  4. Add Preprocessing
                  5. Taylor expanded in y around inf

                    \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                  6. Step-by-step derivation
                    1. associate-*r/N/A

                      \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                    2. /-lowering-/.f64N/A

                      \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                    3. *-lowering-*.f6479.9%

                      \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
                  7. Simplified79.9%

                    \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
                7. Recombined 4 regimes into one program.
                8. Final simplification66.1%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.85 \cdot 10^{-14}:\\ \;\;\;\;\frac{y}{z \cdot -3}\\ \mathbf{elif}\;y \leq 2.9 \cdot 10^{+17}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ \mathbf{elif}\;y \leq 2.55 \cdot 10^{+101}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \end{array} \]
                9. Add Preprocessing

                Alternative 6: 97.5% accurate, 0.7× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1 \cdot 10^{+60}:\\ \;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{y \cdot \left(z \cdot 3\right)}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{\frac{t}{y} - y}{z \cdot 3}\\ \end{array} \end{array} \]
                (FPCore (x y z t)
                 :precision binary64
                 (if (<= t -1e+60)
                   (+ (- x (/ y (* z 3.0))) (/ t (* y (* z 3.0))))
                   (+ x (/ (- (/ t y) y) (* z 3.0)))))
                double code(double x, double y, double z, double t) {
                	double tmp;
                	if (t <= -1e+60) {
                		tmp = (x - (y / (z * 3.0))) + (t / (y * (z * 3.0)));
                	} else {
                		tmp = x + (((t / y) - y) / (z * 3.0));
                	}
                	return tmp;
                }
                
                real(8) function code(x, y, z, t)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    real(8), intent (in) :: z
                    real(8), intent (in) :: t
                    real(8) :: tmp
                    if (t <= (-1d+60)) then
                        tmp = (x - (y / (z * 3.0d0))) + (t / (y * (z * 3.0d0)))
                    else
                        tmp = x + (((t / y) - y) / (z * 3.0d0))
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y, double z, double t) {
                	double tmp;
                	if (t <= -1e+60) {
                		tmp = (x - (y / (z * 3.0))) + (t / (y * (z * 3.0)));
                	} else {
                		tmp = x + (((t / y) - y) / (z * 3.0));
                	}
                	return tmp;
                }
                
                def code(x, y, z, t):
                	tmp = 0
                	if t <= -1e+60:
                		tmp = (x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))
                	else:
                		tmp = x + (((t / y) - y) / (z * 3.0))
                	return tmp
                
                function code(x, y, z, t)
                	tmp = 0.0
                	if (t <= -1e+60)
                		tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(y * Float64(z * 3.0))));
                	else
                		tmp = Float64(x + Float64(Float64(Float64(t / y) - y) / Float64(z * 3.0)));
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t)
                	tmp = 0.0;
                	if (t <= -1e+60)
                		tmp = (x - (y / (z * 3.0))) + (t / (y * (z * 3.0)));
                	else
                		tmp = x + (((t / y) - y) / (z * 3.0));
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_] := If[LessEqual[t, -1e+60], N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(y * N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;t \leq -1 \cdot 10^{+60}:\\
                \;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{y \cdot \left(z \cdot 3\right)}\\
                
                \mathbf{else}:\\
                \;\;\;\;x + \frac{\frac{t}{y} - y}{z \cdot 3}\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if t < -9.9999999999999995e59

                  1. Initial program 98.1%

                    \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                  2. Add Preprocessing

                  if -9.9999999999999995e59 < t

                  1. Initial program 93.5%

                    \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                  2. Add Preprocessing
                  3. Step-by-step derivation
                    1. associate-+l-N/A

                      \[\leadsto x - \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                    2. --lowering--.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                    3. *-commutativeN/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
                    4. associate-/r*N/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                    5. sub-divN/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y - \frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                    6. /-lowering-/.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(z \cdot 3\right)}\right)\right) \]
                    7. --lowering--.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\color{blue}{z} \cdot 3\right)\right)\right) \]
                    8. /-lowering-/.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
                    9. *-lowering-*.f6498.4%

                      \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
                  4. Applied egg-rr98.4%

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

                  \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1 \cdot 10^{+60}:\\ \;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{y \cdot \left(z \cdot 3\right)}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{\frac{t}{y} - y}{z \cdot 3}\\ \end{array} \]
                5. Add Preprocessing

                Alternative 7: 78.0% accurate, 0.9× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -8 \cdot 10^{-91}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \mathbf{elif}\;y \leq 3.2 \cdot 10^{-38}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \end{array} \end{array} \]
                (FPCore (x y z t)
                 :precision binary64
                 (if (<= y -8e-91)
                   (- x (/ y (* z 3.0)))
                   (if (<= y 3.2e-38)
                     (* 0.3333333333333333 (/ (/ t z) y))
                     (+ x (* y (/ -0.3333333333333333 z))))))
                double code(double x, double y, double z, double t) {
                	double tmp;
                	if (y <= -8e-91) {
                		tmp = x - (y / (z * 3.0));
                	} else if (y <= 3.2e-38) {
                		tmp = 0.3333333333333333 * ((t / z) / y);
                	} else {
                		tmp = x + (y * (-0.3333333333333333 / z));
                	}
                	return tmp;
                }
                
                real(8) function code(x, y, z, t)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    real(8), intent (in) :: z
                    real(8), intent (in) :: t
                    real(8) :: tmp
                    if (y <= (-8d-91)) then
                        tmp = x - (y / (z * 3.0d0))
                    else if (y <= 3.2d-38) then
                        tmp = 0.3333333333333333d0 * ((t / z) / y)
                    else
                        tmp = x + (y * ((-0.3333333333333333d0) / z))
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y, double z, double t) {
                	double tmp;
                	if (y <= -8e-91) {
                		tmp = x - (y / (z * 3.0));
                	} else if (y <= 3.2e-38) {
                		tmp = 0.3333333333333333 * ((t / z) / y);
                	} else {
                		tmp = x + (y * (-0.3333333333333333 / z));
                	}
                	return tmp;
                }
                
                def code(x, y, z, t):
                	tmp = 0
                	if y <= -8e-91:
                		tmp = x - (y / (z * 3.0))
                	elif y <= 3.2e-38:
                		tmp = 0.3333333333333333 * ((t / z) / y)
                	else:
                		tmp = x + (y * (-0.3333333333333333 / z))
                	return tmp
                
                function code(x, y, z, t)
                	tmp = 0.0
                	if (y <= -8e-91)
                		tmp = Float64(x - Float64(y / Float64(z * 3.0)));
                	elseif (y <= 3.2e-38)
                		tmp = Float64(0.3333333333333333 * Float64(Float64(t / z) / y));
                	else
                		tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z)));
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t)
                	tmp = 0.0;
                	if (y <= -8e-91)
                		tmp = x - (y / (z * 3.0));
                	elseif (y <= 3.2e-38)
                		tmp = 0.3333333333333333 * ((t / z) / y);
                	else
                		tmp = x + (y * (-0.3333333333333333 / z));
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_] := If[LessEqual[y, -8e-91], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.2e-38], N[(0.3333333333333333 * N[(N[(t / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;y \leq -8 \cdot 10^{-91}:\\
                \;\;\;\;x - \frac{y}{z \cdot 3}\\
                
                \mathbf{elif}\;y \leq 3.2 \cdot 10^{-38}:\\
                \;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\
                
                \mathbf{else}:\\
                \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if y < -8.00000000000000018e-91

                  1. Initial program 94.6%

                    \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                  2. Add Preprocessing
                  3. Step-by-step derivation
                    1. associate-+l-N/A

                      \[\leadsto x - \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                    2. --lowering--.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                    3. *-commutativeN/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
                    4. associate-/r*N/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                    5. sub-divN/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y - \frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                    6. /-lowering-/.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(z \cdot 3\right)}\right)\right) \]
                    7. --lowering--.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\color{blue}{z} \cdot 3\right)\right)\right) \]
                    8. /-lowering-/.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
                    9. *-lowering-*.f6499.8%

                      \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
                  4. Applied egg-rr99.8%

                    \[\leadsto \color{blue}{x - \frac{y - \frac{t}{y}}{z \cdot 3}} \]
                  5. Taylor expanded in y around inf

                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\color{blue}{y}, \mathsf{*.f64}\left(z, 3\right)\right)\right) \]
                  6. Step-by-step derivation
                    1. Simplified80.9%

                      \[\leadsto x - \frac{\color{blue}{y}}{z \cdot 3} \]

                    if -8.00000000000000018e-91 < y < 3.19999999999999977e-38

                    1. Initial program 91.6%

                      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                    2. Add Preprocessing
                    3. Step-by-step derivation
                      1. associate-+l-N/A

                        \[\leadsto x - \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                      2. --lowering--.f64N/A

                        \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                      3. *-commutativeN/A

                        \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
                      4. associate-/r*N/A

                        \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                      5. sub-divN/A

                        \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y - \frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                      6. /-lowering-/.f64N/A

                        \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(z \cdot 3\right)}\right)\right) \]
                      7. --lowering--.f64N/A

                        \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\color{blue}{z} \cdot 3\right)\right)\right) \]
                      8. /-lowering-/.f64N/A

                        \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
                      9. *-lowering-*.f6489.4%

                        \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
                    4. Applied egg-rr89.4%

                      \[\leadsto \color{blue}{x - \frac{y - \frac{t}{y}}{z \cdot 3}} \]
                    5. Taylor expanded in y around 0

                      \[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{t}{y \cdot z}} \]
                    6. Step-by-step derivation
                      1. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \color{blue}{\left(\frac{t}{y \cdot z}\right)}\right) \]
                      2. associate-/r*N/A

                        \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \left(\frac{\frac{t}{y}}{\color{blue}{z}}\right)\right) \]
                      3. /-lowering-/.f64N/A

                        \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\left(\frac{t}{y}\right), \color{blue}{z}\right)\right) \]
                      4. /-lowering-/.f6470.3%

                        \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, y\right), z\right)\right) \]
                    7. Simplified70.3%

                      \[\leadsto \color{blue}{0.3333333333333333 \cdot \frac{\frac{t}{y}}{z}} \]
                    8. Step-by-step derivation
                      1. associate-/l/N/A

                        \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \left(\frac{t}{\color{blue}{z \cdot y}}\right)\right) \]
                      2. associate-/r*N/A

                        \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \left(\frac{\frac{t}{z}}{\color{blue}{y}}\right)\right) \]
                      3. /-lowering-/.f64N/A

                        \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\left(\frac{t}{z}\right), \color{blue}{y}\right)\right) \]
                      4. /-lowering-/.f6478.6%

                        \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, z\right), y\right)\right) \]
                    9. Applied egg-rr78.6%

                      \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\frac{t}{z}}{y}} \]

                    if 3.19999999999999977e-38 < y

                    1. Initial program 98.3%

                      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                    2. Step-by-step derivation
                      1. sub-negN/A

                        \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                      2. associate-+l+N/A

                        \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                      3. +-lowering-+.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                      4. remove-double-negN/A

                        \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                      5. unsub-negN/A

                        \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                      6. neg-mul-1N/A

                        \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                      7. *-commutativeN/A

                        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                      8. associate-*l/N/A

                        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                      9. associate-/l*N/A

                        \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                      10. *-commutativeN/A

                        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                      11. distribute-neg-fracN/A

                        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                      12. neg-mul-1N/A

                        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                      13. times-fracN/A

                        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                      14. distribute-lft-out--N/A

                        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                      15. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                      16. *-commutativeN/A

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                      17. associate-/r*N/A

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                      18. /-lowering-/.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                      19. metadata-evalN/A

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                      20. --lowering--.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                      21. /-lowering-/.f6499.8%

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                    3. Simplified99.8%

                      \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                    4. Add Preprocessing
                    5. Taylor expanded in y around inf

                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \color{blue}{y}\right)\right) \]
                    6. Step-by-step derivation
                      1. Simplified84.6%

                        \[\leadsto x + \frac{-0.3333333333333333}{z} \cdot \color{blue}{y} \]
                    7. Recombined 3 regimes into one program.
                    8. Final simplification81.1%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -8 \cdot 10^{-91}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \mathbf{elif}\;y \leq 3.2 \cdot 10^{-38}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \end{array} \]
                    9. Add Preprocessing

                    Alternative 8: 78.0% accurate, 0.9× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{if}\;y \leq -3 \cdot 10^{-91}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 7.5 \cdot 10^{-38}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                    (FPCore (x y z t)
                     :precision binary64
                     (let* ((t_1 (+ x (* y (/ -0.3333333333333333 z)))))
                       (if (<= y -3e-91)
                         t_1
                         (if (<= y 7.5e-38) (* 0.3333333333333333 (/ (/ t z) y)) t_1))))
                    double code(double x, double y, double z, double t) {
                    	double t_1 = x + (y * (-0.3333333333333333 / z));
                    	double tmp;
                    	if (y <= -3e-91) {
                    		tmp = t_1;
                    	} else if (y <= 7.5e-38) {
                    		tmp = 0.3333333333333333 * ((t / z) / y);
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    real(8) function code(x, y, z, t)
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8), intent (in) :: z
                        real(8), intent (in) :: t
                        real(8) :: t_1
                        real(8) :: tmp
                        t_1 = x + (y * ((-0.3333333333333333d0) / z))
                        if (y <= (-3d-91)) then
                            tmp = t_1
                        else if (y <= 7.5d-38) then
                            tmp = 0.3333333333333333d0 * ((t / z) / y)
                        else
                            tmp = t_1
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y, double z, double t) {
                    	double t_1 = x + (y * (-0.3333333333333333 / z));
                    	double tmp;
                    	if (y <= -3e-91) {
                    		tmp = t_1;
                    	} else if (y <= 7.5e-38) {
                    		tmp = 0.3333333333333333 * ((t / z) / y);
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t):
                    	t_1 = x + (y * (-0.3333333333333333 / z))
                    	tmp = 0
                    	if y <= -3e-91:
                    		tmp = t_1
                    	elif y <= 7.5e-38:
                    		tmp = 0.3333333333333333 * ((t / z) / y)
                    	else:
                    		tmp = t_1
                    	return tmp
                    
                    function code(x, y, z, t)
                    	t_1 = Float64(x + Float64(y * Float64(-0.3333333333333333 / z)))
                    	tmp = 0.0
                    	if (y <= -3e-91)
                    		tmp = t_1;
                    	elseif (y <= 7.5e-38)
                    		tmp = Float64(0.3333333333333333 * Float64(Float64(t / z) / y));
                    	else
                    		tmp = t_1;
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t)
                    	t_1 = x + (y * (-0.3333333333333333 / z));
                    	tmp = 0.0;
                    	if (y <= -3e-91)
                    		tmp = t_1;
                    	elseif (y <= 7.5e-38)
                    		tmp = 0.3333333333333333 * ((t / z) / y);
                    	else
                    		tmp = t_1;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e-91], t$95$1, If[LessEqual[y, 7.5e-38], N[(0.3333333333333333 * N[(N[(t / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := x + y \cdot \frac{-0.3333333333333333}{z}\\
                    \mathbf{if}\;y \leq -3 \cdot 10^{-91}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;y \leq 7.5 \cdot 10^{-38}:\\
                    \;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if y < -3.0000000000000002e-91 or 7.5e-38 < y

                      1. Initial program 96.2%

                        \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                      2. Step-by-step derivation
                        1. sub-negN/A

                          \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                        2. associate-+l+N/A

                          \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                        3. +-lowering-+.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                        4. remove-double-negN/A

                          \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                        5. unsub-negN/A

                          \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                        6. neg-mul-1N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                        7. *-commutativeN/A

                          \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                        8. associate-*l/N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                        9. associate-/l*N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                        10. *-commutativeN/A

                          \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                        11. distribute-neg-fracN/A

                          \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                        12. neg-mul-1N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                        13. times-fracN/A

                          \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                        14. distribute-lft-out--N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                        15. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                        16. *-commutativeN/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                        17. associate-/r*N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                        18. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                        19. metadata-evalN/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                        20. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                        21. /-lowering-/.f6499.8%

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                      3. Simplified99.8%

                        \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                      4. Add Preprocessing
                      5. Taylor expanded in y around inf

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \color{blue}{y}\right)\right) \]
                      6. Step-by-step derivation
                        1. Simplified82.4%

                          \[\leadsto x + \frac{-0.3333333333333333}{z} \cdot \color{blue}{y} \]

                        if -3.0000000000000002e-91 < y < 7.5e-38

                        1. Initial program 91.6%

                          \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                        2. Add Preprocessing
                        3. Step-by-step derivation
                          1. associate-+l-N/A

                            \[\leadsto x - \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                          2. --lowering--.f64N/A

                            \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                          3. *-commutativeN/A

                            \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
                          4. associate-/r*N/A

                            \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                          5. sub-divN/A

                            \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y - \frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                          6. /-lowering-/.f64N/A

                            \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(z \cdot 3\right)}\right)\right) \]
                          7. --lowering--.f64N/A

                            \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\color{blue}{z} \cdot 3\right)\right)\right) \]
                          8. /-lowering-/.f64N/A

                            \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
                          9. *-lowering-*.f6489.4%

                            \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
                        4. Applied egg-rr89.4%

                          \[\leadsto \color{blue}{x - \frac{y - \frac{t}{y}}{z \cdot 3}} \]
                        5. Taylor expanded in y around 0

                          \[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{t}{y \cdot z}} \]
                        6. Step-by-step derivation
                          1. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \color{blue}{\left(\frac{t}{y \cdot z}\right)}\right) \]
                          2. associate-/r*N/A

                            \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \left(\frac{\frac{t}{y}}{\color{blue}{z}}\right)\right) \]
                          3. /-lowering-/.f64N/A

                            \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\left(\frac{t}{y}\right), \color{blue}{z}\right)\right) \]
                          4. /-lowering-/.f6470.3%

                            \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, y\right), z\right)\right) \]
                        7. Simplified70.3%

                          \[\leadsto \color{blue}{0.3333333333333333 \cdot \frac{\frac{t}{y}}{z}} \]
                        8. Step-by-step derivation
                          1. associate-/l/N/A

                            \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \left(\frac{t}{\color{blue}{z \cdot y}}\right)\right) \]
                          2. associate-/r*N/A

                            \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \left(\frac{\frac{t}{z}}{\color{blue}{y}}\right)\right) \]
                          3. /-lowering-/.f64N/A

                            \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\left(\frac{t}{z}\right), \color{blue}{y}\right)\right) \]
                          4. /-lowering-/.f6478.6%

                            \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, z\right), y\right)\right) \]
                        9. Applied egg-rr78.6%

                          \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\frac{t}{z}}{y}} \]
                      7. Recombined 2 regimes into one program.
                      8. Final simplification81.0%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3 \cdot 10^{-91}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 7.5 \cdot 10^{-38}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \end{array} \]
                      9. Add Preprocessing

                      Alternative 9: 47.9% accurate, 1.0× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -7.2 \cdot 10^{-15}:\\ \;\;\;\;\frac{y}{z \cdot -3}\\ \mathbf{elif}\;y \leq 1.4 \cdot 10^{+101}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \end{array} \end{array} \]
                      (FPCore (x y z t)
                       :precision binary64
                       (if (<= y -7.2e-15)
                         (/ y (* z -3.0))
                         (if (<= y 1.4e+101) x (/ (* y -0.3333333333333333) z))))
                      double code(double x, double y, double z, double t) {
                      	double tmp;
                      	if (y <= -7.2e-15) {
                      		tmp = y / (z * -3.0);
                      	} else if (y <= 1.4e+101) {
                      		tmp = x;
                      	} else {
                      		tmp = (y * -0.3333333333333333) / z;
                      	}
                      	return tmp;
                      }
                      
                      real(8) function code(x, y, z, t)
                          real(8), intent (in) :: x
                          real(8), intent (in) :: y
                          real(8), intent (in) :: z
                          real(8), intent (in) :: t
                          real(8) :: tmp
                          if (y <= (-7.2d-15)) then
                              tmp = y / (z * (-3.0d0))
                          else if (y <= 1.4d+101) then
                              tmp = x
                          else
                              tmp = (y * (-0.3333333333333333d0)) / z
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y, double z, double t) {
                      	double tmp;
                      	if (y <= -7.2e-15) {
                      		tmp = y / (z * -3.0);
                      	} else if (y <= 1.4e+101) {
                      		tmp = x;
                      	} else {
                      		tmp = (y * -0.3333333333333333) / z;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t):
                      	tmp = 0
                      	if y <= -7.2e-15:
                      		tmp = y / (z * -3.0)
                      	elif y <= 1.4e+101:
                      		tmp = x
                      	else:
                      		tmp = (y * -0.3333333333333333) / z
                      	return tmp
                      
                      function code(x, y, z, t)
                      	tmp = 0.0
                      	if (y <= -7.2e-15)
                      		tmp = Float64(y / Float64(z * -3.0));
                      	elseif (y <= 1.4e+101)
                      		tmp = x;
                      	else
                      		tmp = Float64(Float64(y * -0.3333333333333333) / z);
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t)
                      	tmp = 0.0;
                      	if (y <= -7.2e-15)
                      		tmp = y / (z * -3.0);
                      	elseif (y <= 1.4e+101)
                      		tmp = x;
                      	else
                      		tmp = (y * -0.3333333333333333) / z;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_] := If[LessEqual[y, -7.2e-15], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e+101], x, N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;y \leq -7.2 \cdot 10^{-15}:\\
                      \;\;\;\;\frac{y}{z \cdot -3}\\
                      
                      \mathbf{elif}\;y \leq 1.4 \cdot 10^{+101}:\\
                      \;\;\;\;x\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if y < -7.2000000000000002e-15

                        1. Initial program 94.9%

                          \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                        2. Step-by-step derivation
                          1. sub-negN/A

                            \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                          2. associate-+l+N/A

                            \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                          3. +-lowering-+.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                          4. remove-double-negN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                          5. unsub-negN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                          6. neg-mul-1N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                          7. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                          8. associate-*l/N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                          9. associate-/l*N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                          10. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                          11. distribute-neg-fracN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                          12. neg-mul-1N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                          13. times-fracN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                          14. distribute-lft-out--N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                          15. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                          16. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                          17. associate-/r*N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                          18. /-lowering-/.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                          19. metadata-evalN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                          20. --lowering--.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                          21. /-lowering-/.f6499.7%

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                        3. Simplified99.7%

                          \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                        4. Add Preprocessing
                        5. Taylor expanded in y around inf

                          \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                        6. Step-by-step derivation
                          1. associate-*r/N/A

                            \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                          2. /-lowering-/.f64N/A

                            \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                          3. *-lowering-*.f6460.9%

                            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
                        7. Simplified60.9%

                          \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
                        8. Step-by-step derivation
                          1. *-commutativeN/A

                            \[\leadsto \frac{y \cdot \frac{-1}{3}}{z} \]
                          2. associate-/l*N/A

                            \[\leadsto y \cdot \color{blue}{\frac{\frac{-1}{3}}{z}} \]
                          3. clear-numN/A

                            \[\leadsto y \cdot \frac{1}{\color{blue}{\frac{z}{\frac{-1}{3}}}} \]
                          4. un-div-invN/A

                            \[\leadsto \frac{y}{\color{blue}{\frac{z}{\frac{-1}{3}}}} \]
                          5. /-lowering-/.f64N/A

                            \[\leadsto \mathsf{/.f64}\left(y, \color{blue}{\left(\frac{z}{\frac{-1}{3}}\right)}\right) \]
                          6. /-lowering-/.f6460.9%

                            \[\leadsto \mathsf{/.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{\frac{-1}{3}}\right)\right) \]
                        9. Applied egg-rr60.9%

                          \[\leadsto \color{blue}{\frac{y}{\frac{z}{-0.3333333333333333}}} \]
                        10. Step-by-step derivation
                          1. div-invN/A

                            \[\leadsto \mathsf{/.f64}\left(y, \left(z \cdot \color{blue}{\frac{1}{\frac{-1}{3}}}\right)\right) \]
                          2. metadata-evalN/A

                            \[\leadsto \mathsf{/.f64}\left(y, \left(z \cdot -3\right)\right) \]
                          3. *-lowering-*.f6460.9%

                            \[\leadsto \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, \color{blue}{-3}\right)\right) \]
                        11. Applied egg-rr60.9%

                          \[\leadsto \frac{y}{\color{blue}{z \cdot -3}} \]

                        if -7.2000000000000002e-15 < y < 1.39999999999999991e101

                        1. Initial program 92.8%

                          \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                        2. Step-by-step derivation
                          1. sub-negN/A

                            \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                          2. associate-+l+N/A

                            \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                          3. +-lowering-+.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                          4. remove-double-negN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                          5. unsub-negN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                          6. neg-mul-1N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                          7. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                          8. associate-*l/N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                          9. associate-/l*N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                          10. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                          11. distribute-neg-fracN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                          12. neg-mul-1N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                          13. times-fracN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                          14. distribute-lft-out--N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                          15. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                          16. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                          17. associate-/r*N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                          18. /-lowering-/.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                          19. metadata-evalN/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                          20. --lowering--.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                          21. /-lowering-/.f6492.8%

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                        3. Simplified92.8%

                          \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                        4. Add Preprocessing
                        5. Taylor expanded in x around inf

                          \[\leadsto \color{blue}{x} \]
                        6. Step-by-step derivation
                          1. Simplified32.8%

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

                          if 1.39999999999999991e101 < y

                          1. Initial program 99.8%

                            \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                          2. Step-by-step derivation
                            1. sub-negN/A

                              \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                            2. associate-+l+N/A

                              \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                            3. +-lowering-+.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                            4. remove-double-negN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                            5. unsub-negN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                            6. neg-mul-1N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            7. *-commutativeN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            8. associate-*l/N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            9. associate-/l*N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            10. *-commutativeN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            11. distribute-neg-fracN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                            12. neg-mul-1N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                            13. times-fracN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                            14. distribute-lft-out--N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                            15. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                            16. *-commutativeN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                            17. associate-/r*N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                            18. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                            19. metadata-evalN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                            20. --lowering--.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                            21. /-lowering-/.f6499.8%

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                          3. Simplified99.8%

                            \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                          4. Add Preprocessing
                          5. Taylor expanded in y around inf

                            \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                          6. Step-by-step derivation
                            1. associate-*r/N/A

                              \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                            2. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                            3. *-lowering-*.f6479.9%

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
                          7. Simplified79.9%

                            \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
                        7. Recombined 3 regimes into one program.
                        8. Final simplification48.7%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -7.2 \cdot 10^{-15}:\\ \;\;\;\;\frac{y}{z \cdot -3}\\ \mathbf{elif}\;y \leq 1.4 \cdot 10^{+101}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \end{array} \]
                        9. Add Preprocessing

                        Alternative 10: 47.9% accurate, 1.0× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.45 \cdot 10^{-14}:\\ \;\;\;\;\frac{y}{z \cdot -3}\\ \mathbf{elif}\;y \leq 5.4 \cdot 10^{+101}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{\frac{z}{-0.3333333333333333}}\\ \end{array} \end{array} \]
                        (FPCore (x y z t)
                         :precision binary64
                         (if (<= y -1.45e-14)
                           (/ y (* z -3.0))
                           (if (<= y 5.4e+101) x (/ y (/ z -0.3333333333333333)))))
                        double code(double x, double y, double z, double t) {
                        	double tmp;
                        	if (y <= -1.45e-14) {
                        		tmp = y / (z * -3.0);
                        	} else if (y <= 5.4e+101) {
                        		tmp = x;
                        	} else {
                        		tmp = y / (z / -0.3333333333333333);
                        	}
                        	return tmp;
                        }
                        
                        real(8) function code(x, y, z, t)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8), intent (in) :: z
                            real(8), intent (in) :: t
                            real(8) :: tmp
                            if (y <= (-1.45d-14)) then
                                tmp = y / (z * (-3.0d0))
                            else if (y <= 5.4d+101) then
                                tmp = x
                            else
                                tmp = y / (z / (-0.3333333333333333d0))
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t) {
                        	double tmp;
                        	if (y <= -1.45e-14) {
                        		tmp = y / (z * -3.0);
                        	} else if (y <= 5.4e+101) {
                        		tmp = x;
                        	} else {
                        		tmp = y / (z / -0.3333333333333333);
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t):
                        	tmp = 0
                        	if y <= -1.45e-14:
                        		tmp = y / (z * -3.0)
                        	elif y <= 5.4e+101:
                        		tmp = x
                        	else:
                        		tmp = y / (z / -0.3333333333333333)
                        	return tmp
                        
                        function code(x, y, z, t)
                        	tmp = 0.0
                        	if (y <= -1.45e-14)
                        		tmp = Float64(y / Float64(z * -3.0));
                        	elseif (y <= 5.4e+101)
                        		tmp = x;
                        	else
                        		tmp = Float64(y / Float64(z / -0.3333333333333333));
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t)
                        	tmp = 0.0;
                        	if (y <= -1.45e-14)
                        		tmp = y / (z * -3.0);
                        	elseif (y <= 5.4e+101)
                        		tmp = x;
                        	else
                        		tmp = y / (z / -0.3333333333333333);
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_] := If[LessEqual[y, -1.45e-14], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.4e+101], x, N[(y / N[(z / -0.3333333333333333), $MachinePrecision]), $MachinePrecision]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;y \leq -1.45 \cdot 10^{-14}:\\
                        \;\;\;\;\frac{y}{z \cdot -3}\\
                        
                        \mathbf{elif}\;y \leq 5.4 \cdot 10^{+101}:\\
                        \;\;\;\;x\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\frac{y}{\frac{z}{-0.3333333333333333}}\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if y < -1.4500000000000001e-14

                          1. Initial program 94.9%

                            \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                          2. Step-by-step derivation
                            1. sub-negN/A

                              \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                            2. associate-+l+N/A

                              \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                            3. +-lowering-+.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                            4. remove-double-negN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                            5. unsub-negN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                            6. neg-mul-1N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            7. *-commutativeN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            8. associate-*l/N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            9. associate-/l*N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            10. *-commutativeN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            11. distribute-neg-fracN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                            12. neg-mul-1N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                            13. times-fracN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                            14. distribute-lft-out--N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                            15. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                            16. *-commutativeN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                            17. associate-/r*N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                            18. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                            19. metadata-evalN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                            20. --lowering--.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                            21. /-lowering-/.f6499.7%

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                          3. Simplified99.7%

                            \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                          4. Add Preprocessing
                          5. Taylor expanded in y around inf

                            \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                          6. Step-by-step derivation
                            1. associate-*r/N/A

                              \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                            2. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                            3. *-lowering-*.f6460.9%

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
                          7. Simplified60.9%

                            \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
                          8. Step-by-step derivation
                            1. *-commutativeN/A

                              \[\leadsto \frac{y \cdot \frac{-1}{3}}{z} \]
                            2. associate-/l*N/A

                              \[\leadsto y \cdot \color{blue}{\frac{\frac{-1}{3}}{z}} \]
                            3. clear-numN/A

                              \[\leadsto y \cdot \frac{1}{\color{blue}{\frac{z}{\frac{-1}{3}}}} \]
                            4. un-div-invN/A

                              \[\leadsto \frac{y}{\color{blue}{\frac{z}{\frac{-1}{3}}}} \]
                            5. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{/.f64}\left(y, \color{blue}{\left(\frac{z}{\frac{-1}{3}}\right)}\right) \]
                            6. /-lowering-/.f6460.9%

                              \[\leadsto \mathsf{/.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{\frac{-1}{3}}\right)\right) \]
                          9. Applied egg-rr60.9%

                            \[\leadsto \color{blue}{\frac{y}{\frac{z}{-0.3333333333333333}}} \]
                          10. Step-by-step derivation
                            1. div-invN/A

                              \[\leadsto \mathsf{/.f64}\left(y, \left(z \cdot \color{blue}{\frac{1}{\frac{-1}{3}}}\right)\right) \]
                            2. metadata-evalN/A

                              \[\leadsto \mathsf{/.f64}\left(y, \left(z \cdot -3\right)\right) \]
                            3. *-lowering-*.f6460.9%

                              \[\leadsto \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, \color{blue}{-3}\right)\right) \]
                          11. Applied egg-rr60.9%

                            \[\leadsto \frac{y}{\color{blue}{z \cdot -3}} \]

                          if -1.4500000000000001e-14 < y < 5.40000000000000012e101

                          1. Initial program 92.8%

                            \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                          2. Step-by-step derivation
                            1. sub-negN/A

                              \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                            2. associate-+l+N/A

                              \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                            3. +-lowering-+.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                            4. remove-double-negN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                            5. unsub-negN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                            6. neg-mul-1N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            7. *-commutativeN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            8. associate-*l/N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            9. associate-/l*N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            10. *-commutativeN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                            11. distribute-neg-fracN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                            12. neg-mul-1N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                            13. times-fracN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                            14. distribute-lft-out--N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                            15. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                            16. *-commutativeN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                            17. associate-/r*N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                            18. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                            19. metadata-evalN/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                            20. --lowering--.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                            21. /-lowering-/.f6492.8%

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                          3. Simplified92.8%

                            \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                          4. Add Preprocessing
                          5. Taylor expanded in x around inf

                            \[\leadsto \color{blue}{x} \]
                          6. Step-by-step derivation
                            1. Simplified32.8%

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

                            if 5.40000000000000012e101 < y

                            1. Initial program 99.8%

                              \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                            2. Step-by-step derivation
                              1. sub-negN/A

                                \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                              2. associate-+l+N/A

                                \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                              3. +-lowering-+.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                              4. remove-double-negN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                              5. unsub-negN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                              6. neg-mul-1N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              7. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              8. associate-*l/N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              9. associate-/l*N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              10. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              11. distribute-neg-fracN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                              12. neg-mul-1N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                              13. times-fracN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                              14. distribute-lft-out--N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                              15. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                              16. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                              17. associate-/r*N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                              18. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                              19. metadata-evalN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                              20. --lowering--.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                              21. /-lowering-/.f6499.8%

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                            3. Simplified99.8%

                              \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                            4. Add Preprocessing
                            5. Taylor expanded in y around inf

                              \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                            6. Step-by-step derivation
                              1. associate-*r/N/A

                                \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                              2. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                              3. *-lowering-*.f6479.9%

                                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
                            7. Simplified79.9%

                              \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
                            8. Step-by-step derivation
                              1. *-commutativeN/A

                                \[\leadsto \frac{y \cdot \frac{-1}{3}}{z} \]
                              2. associate-/l*N/A

                                \[\leadsto y \cdot \color{blue}{\frac{\frac{-1}{3}}{z}} \]
                              3. clear-numN/A

                                \[\leadsto y \cdot \frac{1}{\color{blue}{\frac{z}{\frac{-1}{3}}}} \]
                              4. un-div-invN/A

                                \[\leadsto \frac{y}{\color{blue}{\frac{z}{\frac{-1}{3}}}} \]
                              5. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{/.f64}\left(y, \color{blue}{\left(\frac{z}{\frac{-1}{3}}\right)}\right) \]
                              6. /-lowering-/.f6479.9%

                                \[\leadsto \mathsf{/.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{\frac{-1}{3}}\right)\right) \]
                            9. Applied egg-rr79.9%

                              \[\leadsto \color{blue}{\frac{y}{\frac{z}{-0.3333333333333333}}} \]
                          7. Recombined 3 regimes into one program.
                          8. Add Preprocessing

                          Alternative 11: 47.9% accurate, 1.0× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.46 \cdot 10^{-15}:\\ \;\;\;\;\frac{y}{z \cdot -3}\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{+100}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\ \end{array} \end{array} \]
                          (FPCore (x y z t)
                           :precision binary64
                           (if (<= y -1.46e-15)
                             (/ y (* z -3.0))
                             (if (<= y 4.5e+100) x (* y (/ -0.3333333333333333 z)))))
                          double code(double x, double y, double z, double t) {
                          	double tmp;
                          	if (y <= -1.46e-15) {
                          		tmp = y / (z * -3.0);
                          	} else if (y <= 4.5e+100) {
                          		tmp = x;
                          	} else {
                          		tmp = y * (-0.3333333333333333 / z);
                          	}
                          	return tmp;
                          }
                          
                          real(8) function code(x, y, z, t)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              real(8), intent (in) :: z
                              real(8), intent (in) :: t
                              real(8) :: tmp
                              if (y <= (-1.46d-15)) then
                                  tmp = y / (z * (-3.0d0))
                              else if (y <= 4.5d+100) then
                                  tmp = x
                              else
                                  tmp = y * ((-0.3333333333333333d0) / z)
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y, double z, double t) {
                          	double tmp;
                          	if (y <= -1.46e-15) {
                          		tmp = y / (z * -3.0);
                          	} else if (y <= 4.5e+100) {
                          		tmp = x;
                          	} else {
                          		tmp = y * (-0.3333333333333333 / z);
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t):
                          	tmp = 0
                          	if y <= -1.46e-15:
                          		tmp = y / (z * -3.0)
                          	elif y <= 4.5e+100:
                          		tmp = x
                          	else:
                          		tmp = y * (-0.3333333333333333 / z)
                          	return tmp
                          
                          function code(x, y, z, t)
                          	tmp = 0.0
                          	if (y <= -1.46e-15)
                          		tmp = Float64(y / Float64(z * -3.0));
                          	elseif (y <= 4.5e+100)
                          		tmp = x;
                          	else
                          		tmp = Float64(y * Float64(-0.3333333333333333 / z));
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t)
                          	tmp = 0.0;
                          	if (y <= -1.46e-15)
                          		tmp = y / (z * -3.0);
                          	elseif (y <= 4.5e+100)
                          		tmp = x;
                          	else
                          		tmp = y * (-0.3333333333333333 / z);
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_] := If[LessEqual[y, -1.46e-15], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e+100], x, N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;y \leq -1.46 \cdot 10^{-15}:\\
                          \;\;\;\;\frac{y}{z \cdot -3}\\
                          
                          \mathbf{elif}\;y \leq 4.5 \cdot 10^{+100}:\\
                          \;\;\;\;x\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if y < -1.4600000000000001e-15

                            1. Initial program 94.9%

                              \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                            2. Step-by-step derivation
                              1. sub-negN/A

                                \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                              2. associate-+l+N/A

                                \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                              3. +-lowering-+.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                              4. remove-double-negN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                              5. unsub-negN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                              6. neg-mul-1N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              7. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              8. associate-*l/N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              9. associate-/l*N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              10. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              11. distribute-neg-fracN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                              12. neg-mul-1N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                              13. times-fracN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                              14. distribute-lft-out--N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                              15. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                              16. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                              17. associate-/r*N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                              18. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                              19. metadata-evalN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                              20. --lowering--.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                              21. /-lowering-/.f6499.7%

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                            3. Simplified99.7%

                              \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                            4. Add Preprocessing
                            5. Taylor expanded in y around inf

                              \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                            6. Step-by-step derivation
                              1. associate-*r/N/A

                                \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                              2. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                              3. *-lowering-*.f6460.9%

                                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
                            7. Simplified60.9%

                              \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
                            8. Step-by-step derivation
                              1. *-commutativeN/A

                                \[\leadsto \frac{y \cdot \frac{-1}{3}}{z} \]
                              2. associate-/l*N/A

                                \[\leadsto y \cdot \color{blue}{\frac{\frac{-1}{3}}{z}} \]
                              3. clear-numN/A

                                \[\leadsto y \cdot \frac{1}{\color{blue}{\frac{z}{\frac{-1}{3}}}} \]
                              4. un-div-invN/A

                                \[\leadsto \frac{y}{\color{blue}{\frac{z}{\frac{-1}{3}}}} \]
                              5. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{/.f64}\left(y, \color{blue}{\left(\frac{z}{\frac{-1}{3}}\right)}\right) \]
                              6. /-lowering-/.f6460.9%

                                \[\leadsto \mathsf{/.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{\frac{-1}{3}}\right)\right) \]
                            9. Applied egg-rr60.9%

                              \[\leadsto \color{blue}{\frac{y}{\frac{z}{-0.3333333333333333}}} \]
                            10. Step-by-step derivation
                              1. div-invN/A

                                \[\leadsto \mathsf{/.f64}\left(y, \left(z \cdot \color{blue}{\frac{1}{\frac{-1}{3}}}\right)\right) \]
                              2. metadata-evalN/A

                                \[\leadsto \mathsf{/.f64}\left(y, \left(z \cdot -3\right)\right) \]
                              3. *-lowering-*.f6460.9%

                                \[\leadsto \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, \color{blue}{-3}\right)\right) \]
                            11. Applied egg-rr60.9%

                              \[\leadsto \frac{y}{\color{blue}{z \cdot -3}} \]

                            if -1.4600000000000001e-15 < y < 4.50000000000000036e100

                            1. Initial program 92.8%

                              \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                            2. Step-by-step derivation
                              1. sub-negN/A

                                \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                              2. associate-+l+N/A

                                \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                              3. +-lowering-+.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                              4. remove-double-negN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                              5. unsub-negN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                              6. neg-mul-1N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              7. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              8. associate-*l/N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              9. associate-/l*N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              10. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                              11. distribute-neg-fracN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                              12. neg-mul-1N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                              13. times-fracN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                              14. distribute-lft-out--N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                              15. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                              16. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                              17. associate-/r*N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                              18. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                              19. metadata-evalN/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                              20. --lowering--.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                              21. /-lowering-/.f6492.8%

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                            3. Simplified92.8%

                              \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                            4. Add Preprocessing
                            5. Taylor expanded in x around inf

                              \[\leadsto \color{blue}{x} \]
                            6. Step-by-step derivation
                              1. Simplified32.8%

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

                              if 4.50000000000000036e100 < y

                              1. Initial program 99.8%

                                \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                              2. Step-by-step derivation
                                1. sub-negN/A

                                  \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                                2. associate-+l+N/A

                                  \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                                3. +-lowering-+.f64N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                                4. remove-double-negN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                5. unsub-negN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                                6. neg-mul-1N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                7. *-commutativeN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                8. associate-*l/N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                9. associate-/l*N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                10. *-commutativeN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                11. distribute-neg-fracN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                                12. neg-mul-1N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                13. times-fracN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                                14. distribute-lft-out--N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                15. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                16. *-commutativeN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                17. associate-/r*N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                18. /-lowering-/.f64N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                19. metadata-evalN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                20. --lowering--.f64N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                21. /-lowering-/.f6499.8%

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                              3. Simplified99.8%

                                \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                              4. Add Preprocessing
                              5. Taylor expanded in y around inf

                                \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                              6. Step-by-step derivation
                                1. associate-*r/N/A

                                  \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                                2. /-lowering-/.f64N/A

                                  \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                                3. *-lowering-*.f6479.9%

                                  \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
                              7. Simplified79.9%

                                \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
                              8. Step-by-step derivation
                                1. *-commutativeN/A

                                  \[\leadsto \frac{y \cdot \frac{-1}{3}}{z} \]
                                2. associate-/l*N/A

                                  \[\leadsto y \cdot \color{blue}{\frac{\frac{-1}{3}}{z}} \]
                                3. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{\frac{-1}{3}}{z}\right)}\right) \]
                                4. /-lowering-/.f6479.8%

                                  \[\leadsto \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(\frac{-1}{3}, \color{blue}{z}\right)\right) \]
                              9. Applied egg-rr79.8%

                                \[\leadsto \color{blue}{y \cdot \frac{-0.3333333333333333}{z}} \]
                            7. Recombined 3 regimes into one program.
                            8. Add Preprocessing

                            Alternative 12: 47.9% accurate, 1.0× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -7.5 \cdot 10^{-15}:\\ \;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{elif}\;y \leq 3.4 \cdot 10^{+100}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\ \end{array} \end{array} \]
                            (FPCore (x y z t)
                             :precision binary64
                             (if (<= y -7.5e-15)
                               (/ -0.3333333333333333 (/ z y))
                               (if (<= y 3.4e+100) x (* y (/ -0.3333333333333333 z)))))
                            double code(double x, double y, double z, double t) {
                            	double tmp;
                            	if (y <= -7.5e-15) {
                            		tmp = -0.3333333333333333 / (z / y);
                            	} else if (y <= 3.4e+100) {
                            		tmp = x;
                            	} else {
                            		tmp = y * (-0.3333333333333333 / z);
                            	}
                            	return tmp;
                            }
                            
                            real(8) function code(x, y, z, t)
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                real(8), intent (in) :: z
                                real(8), intent (in) :: t
                                real(8) :: tmp
                                if (y <= (-7.5d-15)) then
                                    tmp = (-0.3333333333333333d0) / (z / y)
                                else if (y <= 3.4d+100) then
                                    tmp = x
                                else
                                    tmp = y * ((-0.3333333333333333d0) / z)
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y, double z, double t) {
                            	double tmp;
                            	if (y <= -7.5e-15) {
                            		tmp = -0.3333333333333333 / (z / y);
                            	} else if (y <= 3.4e+100) {
                            		tmp = x;
                            	} else {
                            		tmp = y * (-0.3333333333333333 / z);
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t):
                            	tmp = 0
                            	if y <= -7.5e-15:
                            		tmp = -0.3333333333333333 / (z / y)
                            	elif y <= 3.4e+100:
                            		tmp = x
                            	else:
                            		tmp = y * (-0.3333333333333333 / z)
                            	return tmp
                            
                            function code(x, y, z, t)
                            	tmp = 0.0
                            	if (y <= -7.5e-15)
                            		tmp = Float64(-0.3333333333333333 / Float64(z / y));
                            	elseif (y <= 3.4e+100)
                            		tmp = x;
                            	else
                            		tmp = Float64(y * Float64(-0.3333333333333333 / z));
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t)
                            	tmp = 0.0;
                            	if (y <= -7.5e-15)
                            		tmp = -0.3333333333333333 / (z / y);
                            	elseif (y <= 3.4e+100)
                            		tmp = x;
                            	else
                            		tmp = y * (-0.3333333333333333 / z);
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_] := If[LessEqual[y, -7.5e-15], N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e+100], x, N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;y \leq -7.5 \cdot 10^{-15}:\\
                            \;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\
                            
                            \mathbf{elif}\;y \leq 3.4 \cdot 10^{+100}:\\
                            \;\;\;\;x\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 3 regimes
                            2. if y < -7.4999999999999996e-15

                              1. Initial program 94.9%

                                \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                              2. Step-by-step derivation
                                1. sub-negN/A

                                  \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                                2. associate-+l+N/A

                                  \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                                3. +-lowering-+.f64N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                                4. remove-double-negN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                5. unsub-negN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                                6. neg-mul-1N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                7. *-commutativeN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                8. associate-*l/N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                9. associate-/l*N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                10. *-commutativeN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                11. distribute-neg-fracN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                                12. neg-mul-1N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                13. times-fracN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                                14. distribute-lft-out--N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                15. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                16. *-commutativeN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                17. associate-/r*N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                18. /-lowering-/.f64N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                19. metadata-evalN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                20. --lowering--.f64N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                21. /-lowering-/.f6499.7%

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                              3. Simplified99.7%

                                \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                              4. Add Preprocessing
                              5. Taylor expanded in y around inf

                                \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                              6. Step-by-step derivation
                                1. associate-*r/N/A

                                  \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                                2. /-lowering-/.f64N/A

                                  \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                                3. *-lowering-*.f6460.9%

                                  \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
                              7. Simplified60.9%

                                \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
                              8. Step-by-step derivation
                                1. associate-/l*N/A

                                  \[\leadsto \frac{-1}{3} \cdot \color{blue}{\frac{y}{z}} \]
                                2. clear-numN/A

                                  \[\leadsto \frac{-1}{3} \cdot \frac{1}{\color{blue}{\frac{z}{y}}} \]
                                3. un-div-invN/A

                                  \[\leadsto \frac{\frac{-1}{3}}{\color{blue}{\frac{z}{y}}} \]
                                4. /-lowering-/.f64N/A

                                  \[\leadsto \mathsf{/.f64}\left(\frac{-1}{3}, \color{blue}{\left(\frac{z}{y}\right)}\right) \]
                                5. /-lowering-/.f6460.8%

                                  \[\leadsto \mathsf{/.f64}\left(\frac{-1}{3}, \mathsf{/.f64}\left(z, \color{blue}{y}\right)\right) \]
                              9. Applied egg-rr60.8%

                                \[\leadsto \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]

                              if -7.4999999999999996e-15 < y < 3.39999999999999994e100

                              1. Initial program 92.8%

                                \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                              2. Step-by-step derivation
                                1. sub-negN/A

                                  \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                                2. associate-+l+N/A

                                  \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                                3. +-lowering-+.f64N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                                4. remove-double-negN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                5. unsub-negN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                                6. neg-mul-1N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                7. *-commutativeN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                8. associate-*l/N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                9. associate-/l*N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                10. *-commutativeN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                11. distribute-neg-fracN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                                12. neg-mul-1N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                13. times-fracN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                                14. distribute-lft-out--N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                15. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                16. *-commutativeN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                17. associate-/r*N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                18. /-lowering-/.f64N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                19. metadata-evalN/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                20. --lowering--.f64N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                21. /-lowering-/.f6492.8%

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                              3. Simplified92.8%

                                \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                              4. Add Preprocessing
                              5. Taylor expanded in x around inf

                                \[\leadsto \color{blue}{x} \]
                              6. Step-by-step derivation
                                1. Simplified32.8%

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

                                if 3.39999999999999994e100 < y

                                1. Initial program 99.8%

                                  \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                                2. Step-by-step derivation
                                  1. sub-negN/A

                                    \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                                  2. associate-+l+N/A

                                    \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                                  3. +-lowering-+.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                                  4. remove-double-negN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                  5. unsub-negN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                                  6. neg-mul-1N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  7. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  8. associate-*l/N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  9. associate-/l*N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  10. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  11. distribute-neg-fracN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                                  12. neg-mul-1N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                  13. times-fracN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                                  14. distribute-lft-out--N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                  15. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                  16. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                  17. associate-/r*N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                  18. /-lowering-/.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                  19. metadata-evalN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                  20. --lowering--.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                  21. /-lowering-/.f6499.8%

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                3. Simplified99.8%

                                  \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                4. Add Preprocessing
                                5. Taylor expanded in y around inf

                                  \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                                6. Step-by-step derivation
                                  1. associate-*r/N/A

                                    \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                                  2. /-lowering-/.f64N/A

                                    \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                                  3. *-lowering-*.f6479.9%

                                    \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
                                7. Simplified79.9%

                                  \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
                                8. Step-by-step derivation
                                  1. *-commutativeN/A

                                    \[\leadsto \frac{y \cdot \frac{-1}{3}}{z} \]
                                  2. associate-/l*N/A

                                    \[\leadsto y \cdot \color{blue}{\frac{\frac{-1}{3}}{z}} \]
                                  3. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{\frac{-1}{3}}{z}\right)}\right) \]
                                  4. /-lowering-/.f6479.8%

                                    \[\leadsto \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(\frac{-1}{3}, \color{blue}{z}\right)\right) \]
                                9. Applied egg-rr79.8%

                                  \[\leadsto \color{blue}{y \cdot \frac{-0.3333333333333333}{z}} \]
                              7. Recombined 3 regimes into one program.
                              8. Add Preprocessing

                              Alternative 13: 47.9% accurate, 1.0× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{if}\;y \leq -3.4 \cdot 10^{-15}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 3.5 \cdot 10^{+100}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                              (FPCore (x y z t)
                               :precision binary64
                               (let* ((t_1 (* y (/ -0.3333333333333333 z))))
                                 (if (<= y -3.4e-15) t_1 (if (<= y 3.5e+100) x t_1))))
                              double code(double x, double y, double z, double t) {
                              	double t_1 = y * (-0.3333333333333333 / z);
                              	double tmp;
                              	if (y <= -3.4e-15) {
                              		tmp = t_1;
                              	} else if (y <= 3.5e+100) {
                              		tmp = x;
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              real(8) function code(x, y, z, t)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  real(8), intent (in) :: z
                                  real(8), intent (in) :: t
                                  real(8) :: t_1
                                  real(8) :: tmp
                                  t_1 = y * ((-0.3333333333333333d0) / z)
                                  if (y <= (-3.4d-15)) then
                                      tmp = t_1
                                  else if (y <= 3.5d+100) then
                                      tmp = x
                                  else
                                      tmp = t_1
                                  end if
                                  code = tmp
                              end function
                              
                              public static double code(double x, double y, double z, double t) {
                              	double t_1 = y * (-0.3333333333333333 / z);
                              	double tmp;
                              	if (y <= -3.4e-15) {
                              		tmp = t_1;
                              	} else if (y <= 3.5e+100) {
                              		tmp = x;
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t):
                              	t_1 = y * (-0.3333333333333333 / z)
                              	tmp = 0
                              	if y <= -3.4e-15:
                              		tmp = t_1
                              	elif y <= 3.5e+100:
                              		tmp = x
                              	else:
                              		tmp = t_1
                              	return tmp
                              
                              function code(x, y, z, t)
                              	t_1 = Float64(y * Float64(-0.3333333333333333 / z))
                              	tmp = 0.0
                              	if (y <= -3.4e-15)
                              		tmp = t_1;
                              	elseif (y <= 3.5e+100)
                              		tmp = x;
                              	else
                              		tmp = t_1;
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y, z, t)
                              	t_1 = y * (-0.3333333333333333 / z);
                              	tmp = 0.0;
                              	if (y <= -3.4e-15)
                              		tmp = t_1;
                              	elseif (y <= 3.5e+100)
                              		tmp = x;
                              	else
                              		tmp = t_1;
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.4e-15], t$95$1, If[LessEqual[y, 3.5e+100], x, t$95$1]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := y \cdot \frac{-0.3333333333333333}{z}\\
                              \mathbf{if}\;y \leq -3.4 \cdot 10^{-15}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;y \leq 3.5 \cdot 10^{+100}:\\
                              \;\;\;\;x\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_1\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if y < -3.4e-15 or 3.49999999999999976e100 < y

                                1. Initial program 96.5%

                                  \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                                2. Step-by-step derivation
                                  1. sub-negN/A

                                    \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                                  2. associate-+l+N/A

                                    \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                                  3. +-lowering-+.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                                  4. remove-double-negN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                  5. unsub-negN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                                  6. neg-mul-1N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  7. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  8. associate-*l/N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  9. associate-/l*N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  10. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  11. distribute-neg-fracN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                                  12. neg-mul-1N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                  13. times-fracN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                                  14. distribute-lft-out--N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                  15. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                  16. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                  17. associate-/r*N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                  18. /-lowering-/.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                  19. metadata-evalN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                  20. --lowering--.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                  21. /-lowering-/.f6499.8%

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                3. Simplified99.8%

                                  \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                4. Add Preprocessing
                                5. Taylor expanded in y around inf

                                  \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                                6. Step-by-step derivation
                                  1. associate-*r/N/A

                                    \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                                  2. /-lowering-/.f64N/A

                                    \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                                  3. *-lowering-*.f6467.1%

                                    \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
                                7. Simplified67.1%

                                  \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
                                8. Step-by-step derivation
                                  1. *-commutativeN/A

                                    \[\leadsto \frac{y \cdot \frac{-1}{3}}{z} \]
                                  2. associate-/l*N/A

                                    \[\leadsto y \cdot \color{blue}{\frac{\frac{-1}{3}}{z}} \]
                                  3. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{\frac{-1}{3}}{z}\right)}\right) \]
                                  4. /-lowering-/.f6467.0%

                                    \[\leadsto \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(\frac{-1}{3}, \color{blue}{z}\right)\right) \]
                                9. Applied egg-rr67.0%

                                  \[\leadsto \color{blue}{y \cdot \frac{-0.3333333333333333}{z}} \]

                                if -3.4e-15 < y < 3.49999999999999976e100

                                1. Initial program 92.8%

                                  \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                                2. Step-by-step derivation
                                  1. sub-negN/A

                                    \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                                  2. associate-+l+N/A

                                    \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                                  3. +-lowering-+.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                                  4. remove-double-negN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                  5. unsub-negN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                                  6. neg-mul-1N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  7. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  8. associate-*l/N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  9. associate-/l*N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  10. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  11. distribute-neg-fracN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                                  12. neg-mul-1N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                  13. times-fracN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                                  14. distribute-lft-out--N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                  15. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                  16. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                  17. associate-/r*N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                  18. /-lowering-/.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                  19. metadata-evalN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                  20. --lowering--.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                  21. /-lowering-/.f6492.8%

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                3. Simplified92.8%

                                  \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                4. Add Preprocessing
                                5. Taylor expanded in x around inf

                                  \[\leadsto \color{blue}{x} \]
                                6. Step-by-step derivation
                                  1. Simplified32.8%

                                    \[\leadsto \color{blue}{x} \]
                                7. Recombined 2 regimes into one program.
                                8. Add Preprocessing

                                Alternative 14: 95.5% accurate, 1.4× speedup?

                                \[\begin{array}{l} \\ x + \frac{\frac{t}{y} - y}{z \cdot 3} \end{array} \]
                                (FPCore (x y z t) :precision binary64 (+ x (/ (- (/ t y) y) (* z 3.0))))
                                double code(double x, double y, double z, double t) {
                                	return x + (((t / y) - y) / (z * 3.0));
                                }
                                
                                real(8) function code(x, y, z, t)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    real(8), intent (in) :: z
                                    real(8), intent (in) :: t
                                    code = x + (((t / y) - y) / (z * 3.0d0))
                                end function
                                
                                public static double code(double x, double y, double z, double t) {
                                	return x + (((t / y) - y) / (z * 3.0));
                                }
                                
                                def code(x, y, z, t):
                                	return x + (((t / y) - y) / (z * 3.0))
                                
                                function code(x, y, z, t)
                                	return Float64(x + Float64(Float64(Float64(t / y) - y) / Float64(z * 3.0)))
                                end
                                
                                function tmp = code(x, y, z, t)
                                	tmp = x + (((t / y) - y) / (z * 3.0));
                                end
                                
                                code[x_, y_, z_, t_] := N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                
                                \begin{array}{l}
                                
                                \\
                                x + \frac{\frac{t}{y} - y}{z \cdot 3}
                                \end{array}
                                
                                Derivation
                                1. Initial program 94.5%

                                  \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                                2. Add Preprocessing
                                3. Step-by-step derivation
                                  1. associate-+l-N/A

                                    \[\leadsto x - \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                                  2. --lowering--.f64N/A

                                    \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                                  3. *-commutativeN/A

                                    \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
                                  4. associate-/r*N/A

                                    \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                                  5. sub-divN/A

                                    \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y - \frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                                  6. /-lowering-/.f64N/A

                                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\left(y - \frac{t}{y}\right), \color{blue}{\left(z \cdot 3\right)}\right)\right) \]
                                  7. --lowering--.f64N/A

                                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), \left(\color{blue}{z} \cdot 3\right)\right)\right) \]
                                  8. /-lowering-/.f64N/A

                                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
                                  9. *-lowering-*.f6496.1%

                                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
                                4. Applied egg-rr96.1%

                                  \[\leadsto \color{blue}{x - \frac{y - \frac{t}{y}}{z \cdot 3}} \]
                                5. Final simplification96.1%

                                  \[\leadsto x + \frac{\frac{t}{y} - y}{z \cdot 3} \]
                                6. Add Preprocessing

                                Alternative 15: 95.5% accurate, 1.4× speedup?

                                \[\begin{array}{l} \\ x + \left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z} \end{array} \]
                                (FPCore (x y z t)
                                 :precision binary64
                                 (+ x (* (- y (/ t y)) (/ -0.3333333333333333 z))))
                                double code(double x, double y, double z, double t) {
                                	return x + ((y - (t / y)) * (-0.3333333333333333 / z));
                                }
                                
                                real(8) function code(x, y, z, t)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    real(8), intent (in) :: z
                                    real(8), intent (in) :: t
                                    code = x + ((y - (t / y)) * ((-0.3333333333333333d0) / z))
                                end function
                                
                                public static double code(double x, double y, double z, double t) {
                                	return x + ((y - (t / y)) * (-0.3333333333333333 / z));
                                }
                                
                                def code(x, y, z, t):
                                	return x + ((y - (t / y)) * (-0.3333333333333333 / z))
                                
                                function code(x, y, z, t)
                                	return Float64(x + Float64(Float64(y - Float64(t / y)) * Float64(-0.3333333333333333 / z)))
                                end
                                
                                function tmp = code(x, y, z, t)
                                	tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z));
                                end
                                
                                code[x_, y_, z_, t_] := N[(x + N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                
                                \begin{array}{l}
                                
                                \\
                                x + \left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}
                                \end{array}
                                
                                Derivation
                                1. Initial program 94.5%

                                  \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                                2. Step-by-step derivation
                                  1. sub-negN/A

                                    \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                                  2. associate-+l+N/A

                                    \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                                  3. +-lowering-+.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                                  4. remove-double-negN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                  5. unsub-negN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                                  6. neg-mul-1N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  7. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  8. associate-*l/N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  9. associate-/l*N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  10. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  11. distribute-neg-fracN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                                  12. neg-mul-1N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                  13. times-fracN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                                  14. distribute-lft-out--N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                  15. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                  16. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                  17. associate-/r*N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                  18. /-lowering-/.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                  19. metadata-evalN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                  20. --lowering--.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                  21. /-lowering-/.f6496.0%

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                3. Simplified96.0%

                                  \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                4. Add Preprocessing
                                5. Final simplification96.0%

                                  \[\leadsto x + \left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z} \]
                                6. Add Preprocessing

                                Alternative 16: 31.2% accurate, 15.0× speedup?

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

                                  \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
                                2. Step-by-step derivation
                                  1. sub-negN/A

                                    \[\leadsto \left(x + \left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right)\right) + \frac{\color{blue}{t}}{\left(z \cdot 3\right) \cdot y} \]
                                  2. associate-+l+N/A

                                    \[\leadsto x + \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
                                  3. +-lowering-+.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                                  4. remove-double-negN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                  5. unsub-negN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right)\right) \]
                                  6. neg-mul-1N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(-1 \cdot \frac{y}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  7. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y}{z \cdot 3} \cdot -1 - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  8. associate-*l/N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{y \cdot -1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  9. associate-/l*N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot \frac{-1}{z \cdot 3} - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  10. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \left(\mathsf{neg}\left(\color{blue}{\frac{t}{\left(z \cdot 3\right) \cdot y}}\right)\right)\right)\right) \]
                                  11. distribute-neg-fracN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\mathsf{neg}\left(t\right)}{\color{blue}{\left(z \cdot 3\right) \cdot y}}\right)\right) \]
                                  12. neg-mul-1N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                  13. times-fracN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1}{z \cdot 3} \cdot \color{blue}{\frac{t}{y}}\right)\right) \]
                                  14. distribute-lft-out--N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                  15. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{z \cdot 3}\right), \color{blue}{\left(y - \frac{t}{y}\right)}\right)\right) \]
                                  16. *-commutativeN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                  17. associate-/r*N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                  18. /-lowering-/.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{3}\right), z\right), \left(\color{blue}{y} - \frac{t}{y}\right)\right)\right) \]
                                  19. metadata-evalN/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                  20. --lowering--.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                  21. /-lowering-/.f6496.0%

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                3. Simplified96.0%

                                  \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                4. Add Preprocessing
                                5. Taylor expanded in x around inf

                                  \[\leadsto \color{blue}{x} \]
                                6. Step-by-step derivation
                                  1. Simplified29.0%

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

                                  Developer Target 1: 95.9% accurate, 1.0× speedup?

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

                                  Reproduce

                                  ?
                                  herbie shell --seed 2024145 
                                  (FPCore (x y z t)
                                    :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, H"
                                    :precision binary64
                                  
                                    :alt
                                    (! :herbie-platform default (+ (- x (/ y (* z 3))) (/ (/ t (* z 3)) y)))
                                  
                                    (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))