Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B

Percentage Accurate: 76.6% → 91.1%
Time: 12.1s
Alternatives: 16
Speedup: 0.7×

Specification

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

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

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

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

Alternative 1: 91.1% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + z \cdot \left(\frac{y}{t - a} + \frac{y \cdot \left(\frac{t}{a - t} + 1\right)}{z}\right)\\ \mathbf{if}\;z \leq -3.4 \cdot 10^{-113}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{-165}:\\ \;\;\;\;x + y \cdot \left(\frac{-1}{a - t} \cdot \left(z - t\right) + 1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (+ x (* z (+ (/ y (- t a)) (/ (* y (+ (/ t (- a t)) 1.0)) z))))))
   (if (<= z -3.4e-113)
     t_1
     (if (<= z 2.1e-165)
       (+ x (* y (+ (* (/ -1.0 (- a t)) (- z t)) 1.0)))
       t_1))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = x + (z * ((y / (t - a)) + ((y * ((t / (a - t)) + 1.0)) / z)));
	double tmp;
	if (z <= -3.4e-113) {
		tmp = t_1;
	} else if (z <= 2.1e-165) {
		tmp = x + (y * (((-1.0 / (a - t)) * (z - t)) + 1.0));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: t_1
    real(8) :: tmp
    t_1 = x + (z * ((y / (t - a)) + ((y * ((t / (a - t)) + 1.0d0)) / z)))
    if (z <= (-3.4d-113)) then
        tmp = t_1
    else if (z <= 2.1d-165) then
        tmp = x + (y * ((((-1.0d0) / (a - t)) * (z - t)) + 1.0d0))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = x + (z * ((y / (t - a)) + ((y * ((t / (a - t)) + 1.0)) / z)));
	double tmp;
	if (z <= -3.4e-113) {
		tmp = t_1;
	} else if (z <= 2.1e-165) {
		tmp = x + (y * (((-1.0 / (a - t)) * (z - t)) + 1.0));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = x + (z * ((y / (t - a)) + ((y * ((t / (a - t)) + 1.0)) / z)))
	tmp = 0
	if z <= -3.4e-113:
		tmp = t_1
	elif z <= 2.1e-165:
		tmp = x + (y * (((-1.0 / (a - t)) * (z - t)) + 1.0))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(x + Float64(z * Float64(Float64(y / Float64(t - a)) + Float64(Float64(y * Float64(Float64(t / Float64(a - t)) + 1.0)) / z))))
	tmp = 0.0
	if (z <= -3.4e-113)
		tmp = t_1;
	elseif (z <= 2.1e-165)
		tmp = Float64(x + Float64(y * Float64(Float64(Float64(-1.0 / Float64(a - t)) * Float64(z - t)) + 1.0)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = x + (z * ((y / (t - a)) + ((y * ((t / (a - t)) + 1.0)) / z)));
	tmp = 0.0;
	if (z <= -3.4e-113)
		tmp = t_1;
	elseif (z <= 2.1e-165)
		tmp = x + (y * (((-1.0 / (a - t)) * (z - t)) + 1.0));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(z * N[(N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision] + N[(N[(y * N[(N[(t / N[(a - t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.4e-113], t$95$1, If[LessEqual[z, 2.1e-165], N[(x + N[(y * N[(N[(N[(-1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x + z \cdot \left(\frac{y}{t - a} + \frac{y \cdot \left(\frac{t}{a - t} + 1\right)}{z}\right)\\
\mathbf{if}\;z \leq -3.4 \cdot 10^{-113}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 2.1 \cdot 10^{-165}:\\
\;\;\;\;x + y \cdot \left(\frac{-1}{a - t} \cdot \left(z - t\right) + 1\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -3.4000000000000002e-113 or 2.09999999999999995e-165 < z

    1. Initial program 74.5%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval85.9%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified85.9%

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

      \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(z \cdot \left(\frac{y}{t - a} + \frac{y \cdot \left(1 - \frac{t}{t - a}\right)}{z}\right)\right)}\right) \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(\mathsf{/.f64}\left(y, \mathsf{\_.f64}\left(t, a\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(t, \left(t - a\right)\right)\right)\right), z\right)\right)\right)\right) \]
      9. --lowering--.f6496.1%

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

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

    if -3.4000000000000002e-113 < z < 2.09999999999999995e-165

    1. Initial program 79.4%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval93.0%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified93.0%

      \[\leadsto \color{blue}{x + y \cdot \left(\frac{z - t}{t - a} + 1\right)} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-numN/A

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{*.f64}\left(\mathsf{/.f64}\left(1, \mathsf{\_.f64}\left(t, a\right)\right), \left(z - t\right)\right), 1\right)\right)\right) \]
      6. --lowering--.f6493.0%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{*.f64}\left(\mathsf{/.f64}\left(1, \mathsf{\_.f64}\left(t, a\right)\right), \mathsf{\_.f64}\left(z, t\right)\right), 1\right)\right)\right) \]
    6. Applied egg-rr93.0%

      \[\leadsto x + y \cdot \left(\color{blue}{\frac{1}{t - a} \cdot \left(z - t\right)} + 1\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification95.2%

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

Alternative 2: 89.8% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -7 \cdot 10^{-10}:\\
\;\;\;\;x + y \cdot \left(\frac{z - t}{t - a} + 1\right)\\

\mathbf{elif}\;a \leq 2.3 \cdot 10^{+57}:\\
\;\;\;\;x + y \cdot \frac{z}{t - a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -6.99999999999999961e-10

    1. Initial program 79.9%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval89.9%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified89.9%

      \[\leadsto \color{blue}{x + y \cdot \left(\frac{z - t}{t - a} + 1\right)} \]
    4. Add Preprocessing

    if -6.99999999999999961e-10 < a < 2.2999999999999999e57

    1. Initial program 73.8%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval83.9%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified83.9%

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

      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{z}{t - a}\right)}\right)\right) \]
    6. Step-by-step derivation
      1. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{\left(t - a\right)}\right)\right)\right) \]
      2. --lowering--.f6494.1%

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

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

    if 2.2999999999999999e57 < a

    1. Initial program 77.4%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval95.2%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified95.2%

      \[\leadsto \color{blue}{x + y \cdot \left(\frac{z - t}{t - a} + 1\right)} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-numN/A

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{*.f64}\left(\mathsf{/.f64}\left(1, \mathsf{\_.f64}\left(t, a\right)\right), \left(z - t\right)\right), 1\right)\right)\right) \]
      6. --lowering--.f6495.3%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{*.f64}\left(\mathsf{/.f64}\left(1, \mathsf{\_.f64}\left(t, a\right)\right), \mathsf{\_.f64}\left(z, t\right)\right), 1\right)\right)\right) \]
    6. Applied egg-rr95.3%

      \[\leadsto x + y \cdot \left(\color{blue}{\frac{1}{t - a} \cdot \left(z - t\right)} + 1\right) \]
  3. Recombined 3 regimes into one program.
  4. Final simplification93.6%

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

Alternative 3: 89.8% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + y \cdot \left(\frac{z - t}{t - a} + 1\right)\\ \mathbf{if}\;a \leq -5.3 \cdot 10^{-11}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 7 \cdot 10^{+56}:\\ \;\;\;\;x + y \cdot \frac{z}{t - a}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (+ x (* y (+ (/ (- z t) (- t a)) 1.0)))))
   (if (<= a -5.3e-11) t_1 (if (<= a 7e+56) (+ x (* y (/ z (- t a)))) t_1))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = x + (y * (((z - t) / (t - a)) + 1.0));
	double tmp;
	if (a <= -5.3e-11) {
		tmp = t_1;
	} else if (a <= 7e+56) {
		tmp = x + (y * (z / (t - a)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: t_1
    real(8) :: tmp
    t_1 = x + (y * (((z - t) / (t - a)) + 1.0d0))
    if (a <= (-5.3d-11)) then
        tmp = t_1
    else if (a <= 7d+56) then
        tmp = x + (y * (z / (t - a)))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = x + (y * (((z - t) / (t - a)) + 1.0));
	double tmp;
	if (a <= -5.3e-11) {
		tmp = t_1;
	} else if (a <= 7e+56) {
		tmp = x + (y * (z / (t - a)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = x + (y * (((z - t) / (t - a)) + 1.0))
	tmp = 0
	if a <= -5.3e-11:
		tmp = t_1
	elif a <= 7e+56:
		tmp = x + (y * (z / (t - a)))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(x + Float64(y * Float64(Float64(Float64(z - t) / Float64(t - a)) + 1.0)))
	tmp = 0.0
	if (a <= -5.3e-11)
		tmp = t_1;
	elseif (a <= 7e+56)
		tmp = Float64(x + Float64(y * Float64(z / Float64(t - a))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = x + (y * (((z - t) / (t - a)) + 1.0));
	tmp = 0.0;
	if (a <= -5.3e-11)
		tmp = t_1;
	elseif (a <= 7e+56)
		tmp = x + (y * (z / (t - a)));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(N[(N[(z - t), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.3e-11], t$95$1, If[LessEqual[a, 7e+56], N[(x + N[(y * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x + y \cdot \left(\frac{z - t}{t - a} + 1\right)\\
\mathbf{if}\;a \leq -5.3 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 7 \cdot 10^{+56}:\\
\;\;\;\;x + y \cdot \frac{z}{t - a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -5.2999999999999998e-11 or 6.99999999999999999e56 < a

    1. Initial program 78.5%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval92.9%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified92.9%

      \[\leadsto \color{blue}{x + y \cdot \left(\frac{z - t}{t - a} + 1\right)} \]
    4. Add Preprocessing

    if -5.2999999999999998e-11 < a < 6.99999999999999999e56

    1. Initial program 73.8%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval83.9%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified83.9%

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

      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{z}{t - a}\right)}\right)\right) \]
    6. Step-by-step derivation
      1. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{\left(t - a\right)}\right)\right)\right) \]
      2. --lowering--.f6494.1%

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

      \[\leadsto x + y \cdot \color{blue}{\frac{z}{t - a}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 4: 85.9% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.7 \cdot 10^{+85}:\\
\;\;\;\;x + \left(y + t \cdot \frac{y}{a - t}\right)\\

\mathbf{elif}\;a \leq 9.5 \cdot 10^{+57}:\\
\;\;\;\;x + y \cdot \frac{z}{t - a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -5.7000000000000002e85

    1. Initial program 81.8%

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(x + y\right) - -1 \cdot \frac{t \cdot y}{a - t}} \]
    6. Step-by-step derivation
      1. associate--l+N/A

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

        \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(y - -1 \cdot \frac{t \cdot y}{a - t}\right)}\right) \]
      3. sub-negN/A

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{+.f64}\left(y, \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t \cdot y}{a - t}\right)\right)\right)\right)\right)\right) \]
      6. remove-double-negN/A

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{+.f64}\left(y, \mathsf{*.f64}\left(t, \mathsf{/.f64}\left(y, \color{blue}{\left(a - t\right)}\right)\right)\right)\right) \]
      10. --lowering--.f6490.6%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{+.f64}\left(y, \mathsf{*.f64}\left(t, \mathsf{/.f64}\left(y, \mathsf{\_.f64}\left(a, \color{blue}{t}\right)\right)\right)\right)\right) \]
    7. Simplified90.6%

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

    if -5.7000000000000002e85 < a < 9.4999999999999997e57

    1. Initial program 74.0%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval83.8%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified83.8%

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

      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{z}{t - a}\right)}\right)\right) \]
    6. Step-by-step derivation
      1. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{\left(t - a\right)}\right)\right)\right) \]
      2. --lowering--.f6491.2%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \mathsf{\_.f64}\left(t, \color{blue}{a}\right)\right)\right)\right) \]
    7. Simplified91.2%

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

    if 9.4999999999999997e57 < a

    1. Initial program 77.4%

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

      \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \color{blue}{\left(\frac{y \cdot z}{a}\right)}\right) \]
    4. Step-by-step derivation
      1. associate-/l*N/A

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

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{z}{a}\right)}\right)\right) \]
      3. /-lowering-/.f6491.4%

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{a}\right)\right)\right) \]
    5. Simplified91.4%

      \[\leadsto \left(x + y\right) - \color{blue}{y \cdot \frac{z}{a}} \]
    6. Step-by-step derivation
      1. --lowering--.f64N/A

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

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \left(\color{blue}{y} \cdot \frac{z}{a}\right)\right) \]
      3. clear-numN/A

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \left(y \cdot \frac{1}{\color{blue}{\frac{a}{z}}}\right)\right) \]
      4. un-div-invN/A

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \left(\frac{y}{\color{blue}{\frac{a}{z}}}\right)\right) \]
      5. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \mathsf{/.f64}\left(y, \color{blue}{\left(\frac{a}{z}\right)}\right)\right) \]
      6. /-lowering-/.f6491.5%

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \mathsf{/.f64}\left(y, \mathsf{/.f64}\left(a, \color{blue}{z}\right)\right)\right) \]
    7. Applied egg-rr91.5%

      \[\leadsto \color{blue}{\left(x + y\right) - \frac{y}{\frac{a}{z}}} \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 5: 85.9% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.35 \cdot 10^{+79}:\\
\;\;\;\;x + y \cdot \left(\frac{t}{a - t} + 1\right)\\

\mathbf{elif}\;a \leq 6.5 \cdot 10^{+58}:\\
\;\;\;\;x + y \cdot \frac{z}{t - a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -1.35e79

    1. Initial program 81.8%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval93.7%

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

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

      \[\leadsto \color{blue}{x + y \cdot \left(1 - \frac{t}{t - a}\right)} \]
    6. Step-by-step derivation
      1. +-lowering-+.f64N/A

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

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

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

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

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

      \[\leadsto \color{blue}{x + y \cdot \left(1 - \frac{t}{t - a}\right)} \]

    if -1.35e79 < a < 6.49999999999999998e58

    1. Initial program 74.0%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval83.8%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified83.8%

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

      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{z}{t - a}\right)}\right)\right) \]
    6. Step-by-step derivation
      1. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{\left(t - a\right)}\right)\right)\right) \]
      2. --lowering--.f6491.2%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \mathsf{\_.f64}\left(t, \color{blue}{a}\right)\right)\right)\right) \]
    7. Simplified91.2%

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

    if 6.49999999999999998e58 < a

    1. Initial program 77.4%

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

      \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \color{blue}{\left(\frac{y \cdot z}{a}\right)}\right) \]
    4. Step-by-step derivation
      1. associate-/l*N/A

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

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{z}{a}\right)}\right)\right) \]
      3. /-lowering-/.f6491.4%

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{a}\right)\right)\right) \]
    5. Simplified91.4%

      \[\leadsto \left(x + y\right) - \color{blue}{y \cdot \frac{z}{a}} \]
    6. Step-by-step derivation
      1. --lowering--.f64N/A

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

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \left(\color{blue}{y} \cdot \frac{z}{a}\right)\right) \]
      3. clear-numN/A

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \left(y \cdot \frac{1}{\color{blue}{\frac{a}{z}}}\right)\right) \]
      4. un-div-invN/A

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \left(\frac{y}{\color{blue}{\frac{a}{z}}}\right)\right) \]
      5. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \mathsf{/.f64}\left(y, \color{blue}{\left(\frac{a}{z}\right)}\right)\right) \]
      6. /-lowering-/.f6491.5%

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \mathsf{/.f64}\left(y, \mathsf{/.f64}\left(a, \color{blue}{z}\right)\right)\right) \]
    7. Applied egg-rr91.5%

      \[\leadsto \color{blue}{\left(x + y\right) - \frac{y}{\frac{a}{z}}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification91.2%

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

Alternative 6: 86.8% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x + y\right) - \frac{y}{\frac{a}{z}}\\ \mathbf{if}\;a \leq -2.3 \cdot 10^{+20}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 4.6 \cdot 10^{+57}:\\ \;\;\;\;x + y \cdot \frac{z}{t - a}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (- (+ x y) (/ y (/ a z)))))
   (if (<= a -2.3e+20) t_1 (if (<= a 4.6e+57) (+ x (* y (/ z (- t a)))) t_1))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = (x + y) - (y / (a / z));
	double tmp;
	if (a <= -2.3e+20) {
		tmp = t_1;
	} else if (a <= 4.6e+57) {
		tmp = x + (y * (z / (t - a)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (x + y) - (y / (a / z))
    if (a <= (-2.3d+20)) then
        tmp = t_1
    else if (a <= 4.6d+57) then
        tmp = x + (y * (z / (t - a)))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = (x + y) - (y / (a / z));
	double tmp;
	if (a <= -2.3e+20) {
		tmp = t_1;
	} else if (a <= 4.6e+57) {
		tmp = x + (y * (z / (t - a)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = (x + y) - (y / (a / z))
	tmp = 0
	if a <= -2.3e+20:
		tmp = t_1
	elif a <= 4.6e+57:
		tmp = x + (y * (z / (t - a)))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(Float64(x + y) - Float64(y / Float64(a / z)))
	tmp = 0.0
	if (a <= -2.3e+20)
		tmp = t_1;
	elseif (a <= 4.6e+57)
		tmp = Float64(x + Float64(y * Float64(z / Float64(t - a))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = (x + y) - (y / (a / z));
	tmp = 0.0;
	if (a <= -2.3e+20)
		tmp = t_1;
	elseif (a <= 4.6e+57)
		tmp = x + (y * (z / (t - a)));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.3e+20], t$95$1, If[LessEqual[a, 4.6e+57], N[(x + N[(y * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(x + y\right) - \frac{y}{\frac{a}{z}}\\
\mathbf{if}\;a \leq -2.3 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 4.6 \cdot 10^{+57}:\\
\;\;\;\;x + y \cdot \frac{z}{t - a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -2.3e20 or 4.5999999999999998e57 < a

    1. Initial program 78.4%

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

      \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \color{blue}{\left(\frac{y \cdot z}{a}\right)}\right) \]
    4. Step-by-step derivation
      1. associate-/l*N/A

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

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

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{a}\right)\right)\right) \]
    5. Simplified88.4%

      \[\leadsto \left(x + y\right) - \color{blue}{y \cdot \frac{z}{a}} \]
    6. Step-by-step derivation
      1. --lowering--.f64N/A

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

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \left(\color{blue}{y} \cdot \frac{z}{a}\right)\right) \]
      3. clear-numN/A

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \left(y \cdot \frac{1}{\color{blue}{\frac{a}{z}}}\right)\right) \]
      4. un-div-invN/A

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \left(\frac{y}{\color{blue}{\frac{a}{z}}}\right)\right) \]
      5. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \mathsf{/.f64}\left(y, \color{blue}{\left(\frac{a}{z}\right)}\right)\right) \]
      6. /-lowering-/.f6488.4%

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \mathsf{/.f64}\left(y, \mathsf{/.f64}\left(a, \color{blue}{z}\right)\right)\right) \]
    7. Applied egg-rr88.4%

      \[\leadsto \color{blue}{\left(x + y\right) - \frac{y}{\frac{a}{z}}} \]

    if -2.3e20 < a < 4.5999999999999998e57

    1. Initial program 74.0%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval83.8%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified83.8%

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

      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{z}{t - a}\right)}\right)\right) \]
    6. Step-by-step derivation
      1. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{\left(t - a\right)}\right)\right)\right) \]
      2. --lowering--.f6493.1%

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

      \[\leadsto x + y \cdot \color{blue}{\frac{z}{t - a}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 7: 86.9% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x + y\right) - y \cdot \frac{z}{a}\\ \mathbf{if}\;a \leq -6.6 \cdot 10^{+20}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 9 \cdot 10^{+57}:\\ \;\;\;\;x + y \cdot \frac{z}{t - a}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (- (+ x y) (* y (/ z a)))))
   (if (<= a -6.6e+20) t_1 (if (<= a 9e+57) (+ x (* y (/ z (- t a)))) t_1))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = (x + y) - (y * (z / a));
	double tmp;
	if (a <= -6.6e+20) {
		tmp = t_1;
	} else if (a <= 9e+57) {
		tmp = x + (y * (z / (t - a)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (x + y) - (y * (z / a))
    if (a <= (-6.6d+20)) then
        tmp = t_1
    else if (a <= 9d+57) then
        tmp = x + (y * (z / (t - a)))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = (x + y) - (y * (z / a));
	double tmp;
	if (a <= -6.6e+20) {
		tmp = t_1;
	} else if (a <= 9e+57) {
		tmp = x + (y * (z / (t - a)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = (x + y) - (y * (z / a))
	tmp = 0
	if a <= -6.6e+20:
		tmp = t_1
	elif a <= 9e+57:
		tmp = x + (y * (z / (t - a)))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(Float64(x + y) - Float64(y * Float64(z / a)))
	tmp = 0.0
	if (a <= -6.6e+20)
		tmp = t_1;
	elseif (a <= 9e+57)
		tmp = Float64(x + Float64(y * Float64(z / Float64(t - a))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = (x + y) - (y * (z / a));
	tmp = 0.0;
	if (a <= -6.6e+20)
		tmp = t_1;
	elseif (a <= 9e+57)
		tmp = x + (y * (z / (t - a)));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.6e+20], t$95$1, If[LessEqual[a, 9e+57], N[(x + N[(y * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(x + y\right) - y \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -6.6 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 9 \cdot 10^{+57}:\\
\;\;\;\;x + y \cdot \frac{z}{t - a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -6.6e20 or 8.99999999999999991e57 < a

    1. Initial program 78.4%

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

      \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \color{blue}{\left(\frac{y \cdot z}{a}\right)}\right) \]
    4. Step-by-step derivation
      1. associate-/l*N/A

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

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

        \[\leadsto \mathsf{\_.f64}\left(\mathsf{+.f64}\left(x, y\right), \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{a}\right)\right)\right) \]
    5. Simplified88.4%

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

    if -6.6e20 < a < 8.99999999999999991e57

    1. Initial program 74.0%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval83.8%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified83.8%

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

      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{z}{t - a}\right)}\right)\right) \]
    6. Step-by-step derivation
      1. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{\left(t - a\right)}\right)\right)\right) \]
      2. --lowering--.f6493.1%

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

      \[\leadsto x + y \cdot \color{blue}{\frac{z}{t - a}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 8: 84.1% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.8 \cdot 10^{+76}:\\
\;\;\;\;x + y\\

\mathbf{elif}\;a \leq 6 \cdot 10^{+58}:\\
\;\;\;\;x + y \cdot \frac{z}{t - a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -2.7999999999999999e76 or 6.0000000000000005e58 < a

    1. Initial program 78.9%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval94.7%

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto y + \color{blue}{x} \]
      2. +-lowering-+.f6483.7%

        \[\leadsto \mathsf{+.f64}\left(y, \color{blue}{x}\right) \]
    7. Simplified83.7%

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

    if -2.7999999999999999e76 < a < 6.0000000000000005e58

    1. Initial program 74.0%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval83.8%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified83.8%

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

      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{z}{t - a}\right)}\right)\right) \]
    6. Step-by-step derivation
      1. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{\left(t - a\right)}\right)\right)\right) \]
      2. --lowering--.f6491.2%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \mathsf{\_.f64}\left(t, \color{blue}{a}\right)\right)\right)\right) \]
    7. Simplified91.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.8 \cdot 10^{+76}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 6 \cdot 10^{+58}:\\ \;\;\;\;x + y \cdot \frac{z}{t - a}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 76.4% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.3 \cdot 10^{+20}:\\
\;\;\;\;x + y\\

\mathbf{elif}\;a \leq 3.8 \cdot 10^{+57}:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -1.3e20 or 3.7999999999999999e57 < a

    1. Initial program 78.4%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval93.5%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified93.5%

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto y + \color{blue}{x} \]
      2. +-lowering-+.f6480.5%

        \[\leadsto \mathsf{+.f64}\left(y, \color{blue}{x}\right) \]
    7. Simplified80.5%

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

    if -1.3e20 < a < 3.7999999999999999e57

    1. Initial program 74.0%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval83.8%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified83.8%

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

      \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(z \cdot \left(\frac{y}{t - a} + \frac{y \cdot \left(1 - \frac{t}{t - a}\right)}{z}\right)\right)}\right) \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(\mathsf{/.f64}\left(y, \mathsf{\_.f64}\left(t, a\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(t, \left(t - a\right)\right)\right)\right), z\right)\right)\right)\right) \]
      9. --lowering--.f6494.8%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(\mathsf{/.f64}\left(y, \mathsf{\_.f64}\left(t, a\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(t, \mathsf{\_.f64}\left(t, a\right)\right)\right)\right), z\right)\right)\right)\right) \]
    7. Simplified94.8%

      \[\leadsto x + \color{blue}{z \cdot \left(\frac{y}{t - a} + \frac{y \cdot \left(1 - \frac{t}{t - a}\right)}{z}\right)} \]
    8. Taylor expanded in a around 0

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{/.f64}\left(y, \color{blue}{t}\right)\right)\right) \]
    10. Simplified84.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.3 \cdot 10^{+20}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 3.8 \cdot 10^{+57}:\\ \;\;\;\;x + z \cdot \frac{y}{t}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 76.3% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.8 \cdot 10^{+19}:\\
\;\;\;\;x + y\\

\mathbf{elif}\;a \leq 2.9 \cdot 10^{+57}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -2.8e19 or 2.9000000000000002e57 < a

    1. Initial program 78.4%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval93.5%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified93.5%

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto y + \color{blue}{x} \]
      2. +-lowering-+.f6480.5%

        \[\leadsto \mathsf{+.f64}\left(y, \color{blue}{x}\right) \]
    7. Simplified80.5%

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

    if -2.8e19 < a < 2.9000000000000002e57

    1. Initial program 74.0%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval83.8%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified83.8%

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{t}\right)\right)\right) \]
    7. Simplified83.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.8 \cdot 10^{+19}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 2.9 \cdot 10^{+57}:\\ \;\;\;\;x + y \cdot \frac{z}{t}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 61.8% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \frac{y}{t - a}\\ \mathbf{if}\;z \leq -2.05 \cdot 10^{+18}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{+78}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (* z (/ y (- t a)))))
   (if (<= z -2.05e+18) t_1 (if (<= z 2.1e+78) (+ x y) t_1))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = z * (y / (t - a));
	double tmp;
	if (z <= -2.05e+18) {
		tmp = t_1;
	} else if (z <= 2.1e+78) {
		tmp = x + y;
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: t_1
    real(8) :: tmp
    t_1 = z * (y / (t - a))
    if (z <= (-2.05d+18)) then
        tmp = t_1
    else if (z <= 2.1d+78) then
        tmp = x + y
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = z * (y / (t - a));
	double tmp;
	if (z <= -2.05e+18) {
		tmp = t_1;
	} else if (z <= 2.1e+78) {
		tmp = x + y;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = z * (y / (t - a))
	tmp = 0
	if z <= -2.05e+18:
		tmp = t_1
	elif z <= 2.1e+78:
		tmp = x + y
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(z * Float64(y / Float64(t - a)))
	tmp = 0.0
	if (z <= -2.05e+18)
		tmp = t_1;
	elseif (z <= 2.1e+78)
		tmp = Float64(x + y);
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = z * (y / (t - a));
	tmp = 0.0;
	if (z <= -2.05e+18)
		tmp = t_1;
	elseif (z <= 2.1e+78)
		tmp = x + y;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.05e+18], t$95$1, If[LessEqual[z, 2.1e+78], N[(x + y), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := z \cdot \frac{y}{t - a}\\
\mathbf{if}\;z \leq -2.05 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 2.1 \cdot 10^{+78}:\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.05e18 or 2.1000000000000001e78 < z

    1. Initial program 79.5%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval87.6%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified87.6%

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

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

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

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

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{\_.f64}\left(t, \color{blue}{a}\right)\right) \]
    7. Simplified48.1%

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

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

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

        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(y, \left(t - a\right)\right), z\right) \]
      4. --lowering--.f6458.1%

        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(y, \mathsf{\_.f64}\left(t, a\right)\right), z\right) \]
    9. Applied egg-rr58.1%

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

    if -2.05e18 < z < 2.1000000000000001e78

    1. Initial program 72.6%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval88.0%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified88.0%

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto y + \color{blue}{x} \]
      2. +-lowering-+.f6476.3%

        \[\leadsto \mathsf{+.f64}\left(y, \color{blue}{x}\right) \]
    7. Simplified76.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.05 \cdot 10^{+18}:\\ \;\;\;\;z \cdot \frac{y}{t - a}\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{+78}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;z \cdot \frac{y}{t - a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 58.3% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.2 \cdot 10^{-225}:\\
\;\;\;\;x + y\\

\mathbf{elif}\;a \leq 1.05 \cdot 10^{-36}:\\
\;\;\;\;\frac{z}{\frac{t}{y}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -6.19999999999999993e-225 or 1.04999999999999995e-36 < a

    1. Initial program 77.1%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval91.1%

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto y + \color{blue}{x} \]
      2. +-lowering-+.f6469.9%

        \[\leadsto \mathsf{+.f64}\left(y, \color{blue}{x}\right) \]
    7. Simplified69.9%

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

    if -6.19999999999999993e-225 < a < 1.04999999999999995e-36

    1. Initial program 72.9%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval80.5%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified80.5%

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

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

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

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

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{\_.f64}\left(t, \color{blue}{a}\right)\right) \]
    7. Simplified56.1%

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

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

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

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

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

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

        \[\leadsto \mathsf{/.f64}\left(z, \mathsf{/.f64}\left(\left(t - a\right), \color{blue}{y}\right)\right) \]
      7. --lowering--.f6462.2%

        \[\leadsto \mathsf{/.f64}\left(z, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, a\right), y\right)\right) \]
    9. Applied egg-rr62.2%

      \[\leadsto \color{blue}{\frac{z}{\frac{t - a}{y}}} \]
    10. Taylor expanded in t around inf

      \[\leadsto \mathsf{/.f64}\left(z, \color{blue}{\left(\frac{t}{y}\right)}\right) \]
    11. Step-by-step derivation
      1. /-lowering-/.f6455.5%

        \[\leadsto \mathsf{/.f64}\left(z, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right) \]
    12. Simplified55.5%

      \[\leadsto \frac{z}{\color{blue}{\frac{t}{y}}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification65.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.2 \cdot 10^{-225}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 1.05 \cdot 10^{-36}:\\ \;\;\;\;\frac{z}{\frac{t}{y}}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 58.2% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.2 \cdot 10^{-225}:\\
\;\;\;\;x + y\\

\mathbf{elif}\;a \leq 1.05 \cdot 10^{-36}:\\
\;\;\;\;y \cdot \frac{z}{t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -8.20000000000000044e-225 or 1.04999999999999995e-36 < a

    1. Initial program 77.1%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval91.1%

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto y + \color{blue}{x} \]
      2. +-lowering-+.f6469.9%

        \[\leadsto \mathsf{+.f64}\left(y, \color{blue}{x}\right) \]
    7. Simplified69.9%

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

    if -8.20000000000000044e-225 < a < 1.04999999999999995e-36

    1. Initial program 72.9%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval80.5%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified80.5%

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

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

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

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

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{\_.f64}\left(t, \color{blue}{a}\right)\right) \]
    7. Simplified56.1%

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

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

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

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

        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(z, \left(t - a\right)\right), y\right) \]
      5. --lowering--.f6459.9%

        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(z, \mathsf{\_.f64}\left(t, a\right)\right), y\right) \]
    9. Applied egg-rr59.9%

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

      \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(\frac{z}{t}\right)}, y\right) \]
    11. Step-by-step derivation
      1. /-lowering-/.f6453.2%

        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(z, t\right), y\right) \]
    12. Simplified53.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -8.2 \cdot 10^{-225}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 1.05 \cdot 10^{-36}:\\ \;\;\;\;y \cdot \frac{z}{t}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 63.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -6.1 \cdot 10^{-38}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 2.2 \cdot 10^{+57}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= a -6.1e-38) (+ x y) (if (<= a 2.2e+57) x (+ x y))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -6.1e-38) {
		tmp = x + y;
	} else if (a <= 2.2e+57) {
		tmp = x;
	} else {
		tmp = x + y;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: tmp
    if (a <= (-6.1d-38)) then
        tmp = x + y
    else if (a <= 2.2d+57) then
        tmp = x
    else
        tmp = x + y
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -6.1e-38) {
		tmp = x + y;
	} else if (a <= 2.2e+57) {
		tmp = x;
	} else {
		tmp = x + y;
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if a <= -6.1e-38:
		tmp = x + y
	elif a <= 2.2e+57:
		tmp = x
	else:
		tmp = x + y
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (a <= -6.1e-38)
		tmp = Float64(x + y);
	elseif (a <= 2.2e+57)
		tmp = x;
	else
		tmp = Float64(x + y);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (a <= -6.1e-38)
		tmp = x + y;
	elseif (a <= 2.2e+57)
		tmp = x;
	else
		tmp = x + y;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.1e-38], N[(x + y), $MachinePrecision], If[LessEqual[a, 2.2e+57], x, N[(x + y), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.1 \cdot 10^{-38}:\\
\;\;\;\;x + y\\

\mathbf{elif}\;a \leq 2.2 \cdot 10^{+57}:\\
\;\;\;\;x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -6.09999999999999972e-38 or 2.2000000000000001e57 < a

    1. Initial program 78.2%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval92.3%

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto y + \color{blue}{x} \]
      2. +-lowering-+.f6476.9%

        \[\leadsto \mathsf{+.f64}\left(y, \color{blue}{x}\right) \]
    7. Simplified76.9%

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

    if -6.09999999999999972e-38 < a < 2.2000000000000001e57

    1. Initial program 73.9%

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
      4. cancel-sign-sub-invN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
      5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      13. sub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      14. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      15. distribute-neg-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      16. unsub-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      17. remove-double-negN/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      18. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
      19. metadata-eval84.2%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
    3. Simplified84.2%

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

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

        \[\leadsto \color{blue}{x} \]
    7. Recombined 2 regimes into one program.
    8. Final simplification61.7%

      \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.1 \cdot 10^{-38}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 2.2 \cdot 10^{+57}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
    9. Add Preprocessing

    Alternative 15: 53.6% accurate, 1.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -2.8 \cdot 10^{-61}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{-210}:\\ \;\;\;\;y\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (if (<= x -2.8e-61) x (if (<= x 1.35e-210) y x)))
    double code(double x, double y, double z, double t, double a) {
    	double tmp;
    	if (x <= -2.8e-61) {
    		tmp = x;
    	} else if (x <= 1.35e-210) {
    		tmp = y;
    	} else {
    		tmp = x;
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t, a)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8) :: tmp
        if (x <= (-2.8d-61)) then
            tmp = x
        else if (x <= 1.35d-210) then
            tmp = y
        else
            tmp = x
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a) {
    	double tmp;
    	if (x <= -2.8e-61) {
    		tmp = x;
    	} else if (x <= 1.35e-210) {
    		tmp = y;
    	} else {
    		tmp = x;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a):
    	tmp = 0
    	if x <= -2.8e-61:
    		tmp = x
    	elif x <= 1.35e-210:
    		tmp = y
    	else:
    		tmp = x
    	return tmp
    
    function code(x, y, z, t, a)
    	tmp = 0.0
    	if (x <= -2.8e-61)
    		tmp = x;
    	elseif (x <= 1.35e-210)
    		tmp = y;
    	else
    		tmp = x;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a)
    	tmp = 0.0;
    	if (x <= -2.8e-61)
    		tmp = x;
    	elseif (x <= 1.35e-210)
    		tmp = y;
    	else
    		tmp = x;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_] := If[LessEqual[x, -2.8e-61], x, If[LessEqual[x, 1.35e-210], y, x]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;x \leq -2.8 \cdot 10^{-61}:\\
    \;\;\;\;x\\
    
    \mathbf{elif}\;x \leq 1.35 \cdot 10^{-210}:\\
    \;\;\;\;y\\
    
    \mathbf{else}:\\
    \;\;\;\;x\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if x < -2.8000000000000001e-61 or 1.34999999999999996e-210 < x

      1. Initial program 78.7%

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

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

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

          \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
        4. cancel-sign-sub-invN/A

          \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
        5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
        13. sub-negN/A

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
        14. +-commutativeN/A

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
        15. distribute-neg-inN/A

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
        16. unsub-negN/A

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
        17. remove-double-negN/A

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
        18. --lowering--.f64N/A

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
        19. metadata-eval92.3%

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

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

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

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

        if -2.8000000000000001e-61 < x < 1.34999999999999996e-210

        1. Initial program 67.3%

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

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

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

            \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
          4. cancel-sign-sub-invN/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
          5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          13. sub-negN/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          14. +-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          15. distribute-neg-inN/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          16. unsub-negN/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          17. remove-double-negN/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          18. --lowering--.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          19. metadata-eval74.6%

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
        3. Simplified74.6%

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

          \[\leadsto \color{blue}{x + y} \]
        6. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto y + \color{blue}{x} \]
          2. +-lowering-+.f6434.8%

            \[\leadsto \mathsf{+.f64}\left(y, \color{blue}{x}\right) \]
        7. Simplified34.8%

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

          \[\leadsto \color{blue}{y} \]
        9. Step-by-step derivation
          1. Simplified30.0%

            \[\leadsto \color{blue}{y} \]
        10. Recombined 2 regimes into one program.
        11. Add Preprocessing

        Alternative 16: 51.4% accurate, 13.0× speedup?

        \[\begin{array}{l} \\ x \end{array} \]
        (FPCore (x y z t a) :precision binary64 x)
        double code(double x, double y, double z, double t, double a) {
        	return x;
        }
        
        real(8) function code(x, y, z, t, a)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            real(8), intent (in) :: z
            real(8), intent (in) :: t
            real(8), intent (in) :: a
            code = x
        end function
        
        public static double code(double x, double y, double z, double t, double a) {
        	return x;
        }
        
        def code(x, y, z, t, a):
        	return x
        
        function code(x, y, z, t, a)
        	return x
        end
        
        function tmp = code(x, y, z, t, a)
        	tmp = x;
        end
        
        code[x_, y_, z_, t_, a_] := x
        
        \begin{array}{l}
        
        \\
        x
        \end{array}
        
        Derivation
        1. Initial program 75.8%

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

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

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

            \[\leadsto \mathsf{+.f64}\left(x, \left(y - \frac{z - t}{a - t} \cdot \color{blue}{y}\right)\right) \]
          4. cancel-sign-sub-invN/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(y + \color{blue}{\left(\mathsf{neg}\left(\frac{z - t}{a - t}\right)\right) \cdot y}\right)\right) \]
          5. distribute-rgt1-inN/A

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

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

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

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

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

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

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

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a - t\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          13. sub-negN/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(a + \left(\mathsf{neg}\left(t\right)\right)\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          14. +-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\mathsf{neg}\left(\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          15. distribute-neg-inN/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) + \left(\mathsf{neg}\left(a\right)\right)\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          16. unsub-negN/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          17. remove-double-negN/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(t - a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          18. --lowering--.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), \left(\mathsf{neg}\left(-1\right)\right)\right)\right)\right) \]
          19. metadata-eval87.8%

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{\_.f64}\left(t, a\right)\right), 1\right)\right)\right) \]
        3. Simplified87.8%

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

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

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

          Developer Target 1: 87.7% accurate, 0.3× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\ t_2 := \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\\ \mathbf{if}\;t\_2 < -1.3664970889390727 \cdot 10^{-7}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 < 1.4754293444577233 \cdot 10^{-239}:\\ \;\;\;\;\frac{y \cdot \left(a - z\right) - x \cdot t}{a - t}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (let* ((t_1 (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)))
                  (t_2 (- (+ x y) (/ (* (- z t) y) (- a t)))))
             (if (< t_2 -1.3664970889390727e-7)
               t_1
               (if (< t_2 1.4754293444577233e-239)
                 (/ (- (* y (- a z)) (* x t)) (- a t))
                 t_1))))
          double code(double x, double y, double z, double t, double a) {
          	double t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
          	double t_2 = (x + y) - (((z - t) * y) / (a - t));
          	double tmp;
          	if (t_2 < -1.3664970889390727e-7) {
          		tmp = t_1;
          	} else if (t_2 < 1.4754293444577233e-239) {
          		tmp = ((y * (a - z)) - (x * t)) / (a - t);
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          real(8) function code(x, y, z, t, a)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              real(8), intent (in) :: z
              real(8), intent (in) :: t
              real(8), intent (in) :: a
              real(8) :: t_1
              real(8) :: t_2
              real(8) :: tmp
              t_1 = (y + x) - (((z - t) * (1.0d0 / (a - t))) * y)
              t_2 = (x + y) - (((z - t) * y) / (a - t))
              if (t_2 < (-1.3664970889390727d-7)) then
                  tmp = t_1
              else if (t_2 < 1.4754293444577233d-239) then
                  tmp = ((y * (a - z)) - (x * t)) / (a - t)
              else
                  tmp = t_1
              end if
              code = tmp
          end function
          
          public static double code(double x, double y, double z, double t, double a) {
          	double t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
          	double t_2 = (x + y) - (((z - t) * y) / (a - t));
          	double tmp;
          	if (t_2 < -1.3664970889390727e-7) {
          		tmp = t_1;
          	} else if (t_2 < 1.4754293444577233e-239) {
          		tmp = ((y * (a - z)) - (x * t)) / (a - t);
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          def code(x, y, z, t, a):
          	t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y)
          	t_2 = (x + y) - (((z - t) * y) / (a - t))
          	tmp = 0
          	if t_2 < -1.3664970889390727e-7:
          		tmp = t_1
          	elif t_2 < 1.4754293444577233e-239:
          		tmp = ((y * (a - z)) - (x * t)) / (a - t)
          	else:
          		tmp = t_1
          	return tmp
          
          function code(x, y, z, t, a)
          	t_1 = Float64(Float64(y + x) - Float64(Float64(Float64(z - t) * Float64(1.0 / Float64(a - t))) * y))
          	t_2 = Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t)))
          	tmp = 0.0
          	if (t_2 < -1.3664970889390727e-7)
          		tmp = t_1;
          	elseif (t_2 < 1.4754293444577233e-239)
          		tmp = Float64(Float64(Float64(y * Float64(a - z)) - Float64(x * t)) / Float64(a - t));
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y, z, t, a)
          	t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
          	t_2 = (x + y) - (((z - t) * y) / (a - t));
          	tmp = 0.0;
          	if (t_2 < -1.3664970889390727e-7)
          		tmp = t_1;
          	elseif (t_2 < 1.4754293444577233e-239)
          		tmp = ((y * (a - z)) - (x * t)) / (a - t);
          	else
          		tmp = t_1;
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y + x), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -1.3664970889390727e-7], t$95$1, If[Less[t$95$2, 1.4754293444577233e-239], N[(N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\
          t_2 := \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\\
          \mathbf{if}\;t\_2 < -1.3664970889390727 \cdot 10^{-7}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;t\_2 < 1.4754293444577233 \cdot 10^{-239}:\\
          \;\;\;\;\frac{y \cdot \left(a - z\right) - x \cdot t}{a - t}\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          

          Reproduce

          ?
          herbie shell --seed 2024138 
          (FPCore (x y z t a)
            :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
            :precision binary64
          
            :alt
            (! :herbie-platform default (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -13664970889390727/100000000000000000000000) (- (+ y x) (* (* (- z t) (/ 1 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 14754293444577233/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1 (- a t))) y)))))
          
            (- (+ x y) (/ (* (- z t) y) (- a t))))