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

Percentage Accurate: 76.9% → 89.5%
Time: 11.1s
Alternatives: 10
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 10 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.9% 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: 89.5% accurate, 0.5× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -2.35000000000000002e170

    1. Initial program 48.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-eval72.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. Simplified72.9%

      \[\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(-1 \cdot \left(a \cdot \left(-1 \cdot \frac{z}{{t}^{2}} + \frac{1}{t}\right)\right) + \frac{z}{t}\right)}\right)\right) \]
    6. Step-by-step derivation
      1. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(\mathsf{/.f64}\left(z, t\right), \mathsf{*.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, t\right), \mathsf{/.f64}\left(z, \color{blue}{\left({t}^{2}\right)}\right)\right)\right)\right)\right)\right) \]
      13. unpow2N/A

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

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

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

    if -2.35000000000000002e170 < t < 7.60000000000000049e76

    1. Initial program 91.4%

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

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

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

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

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

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

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

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

    if 7.60000000000000049e76 < t

    1. Initial program 56.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-eval78.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. Simplified78.8%

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\left(y \cdot \left(z + -1 \cdot a\right) + \frac{y \cdot \left(-1 \cdot {a}^{2} - -1 \cdot \left(a \cdot z\right)\right)}{t}\right), \color{blue}{t}\right)\right) \]
    7. Simplified72.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 89.7% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.2 \cdot 10^{+153}:\\ \;\;\;\;x + y \cdot \frac{z - a}{t}\\ \mathbf{elif}\;t \leq 3 \cdot 10^{+83}:\\ \;\;\;\;\left(x + y\right) + \frac{y}{a - t} \cdot \left(t - z\right)\\ \mathbf{else}:\\ \;\;\;\;x + \left(z - a\right) \cdot \frac{y}{t}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= t -1.2e+153)
   (+ x (* y (/ (- z a) t)))
   (if (<= t 3e+83)
     (+ (+ x y) (* (/ y (- a t)) (- t z)))
     (+ x (* (- z a) (/ y t))))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (t <= -1.2e+153) {
		tmp = x + (y * ((z - a) / t));
	} else if (t <= 3e+83) {
		tmp = (x + y) + ((y / (a - t)) * (t - z));
	} else {
		tmp = x + ((z - a) * (y / t));
	}
	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 (t <= (-1.2d+153)) then
        tmp = x + (y * ((z - a) / t))
    else if (t <= 3d+83) then
        tmp = (x + y) + ((y / (a - t)) * (t - z))
    else
        tmp = x + ((z - a) * (y / t))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (t <= -1.2e+153) {
		tmp = x + (y * ((z - a) / t));
	} else if (t <= 3e+83) {
		tmp = (x + y) + ((y / (a - t)) * (t - z));
	} else {
		tmp = x + ((z - a) * (y / t));
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if t <= -1.2e+153:
		tmp = x + (y * ((z - a) / t))
	elif t <= 3e+83:
		tmp = (x + y) + ((y / (a - t)) * (t - z))
	else:
		tmp = x + ((z - a) * (y / t))
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (t <= -1.2e+153)
		tmp = Float64(x + Float64(y * Float64(Float64(z - a) / t)));
	elseif (t <= 3e+83)
		tmp = Float64(Float64(x + y) + Float64(Float64(y / Float64(a - t)) * Float64(t - z)));
	else
		tmp = Float64(x + Float64(Float64(z - a) * Float64(y / t)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (t <= -1.2e+153)
		tmp = x + (y * ((z - a) / t));
	elseif (t <= 3e+83)
		tmp = (x + y) + ((y / (a - t)) * (t - z));
	else
		tmp = x + ((z - a) * (y / t));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.2e+153], N[(x + N[(y * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+83], N[(N[(x + y), $MachinePrecision] + N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - a), $MachinePrecision] * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.2 \cdot 10^{+153}:\\
\;\;\;\;x + y \cdot \frac{z - a}{t}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -1.19999999999999996e153

    1. Initial program 48.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-eval72.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. Simplified72.9%

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

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

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

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

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

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

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

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

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

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

    if -1.19999999999999996e153 < t < 3e83

    1. Initial program 91.4%

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

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

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

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

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

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

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

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

    if 3e83 < t

    1. Initial program 56.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-eval78.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. Simplified78.8%

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\left(y \cdot \left(z + -1 \cdot a\right) + \frac{y \cdot \left(-1 \cdot {a}^{2} - -1 \cdot \left(a \cdot z\right)\right)}{t}\right), \color{blue}{t}\right)\right) \]
    7. Simplified72.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 91.8% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{+170}:\\
\;\;\;\;x + y \cdot \frac{z - a}{t}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -2.00000000000000007e170

    1. Initial program 48.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-eval72.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. Simplified72.9%

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

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

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

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

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

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

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

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

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

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

    if -2.00000000000000007e170 < t < 5.69999999999999983e116

    1. Initial program 90.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-eval95.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. Simplified95.6%

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

    if 5.69999999999999983e116 < t

    1. Initial program 54.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-eval77.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. Simplified77.3%

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\left(y \cdot \left(z + -1 \cdot a\right) + \frac{y \cdot \left(-1 \cdot {a}^{2} - -1 \cdot \left(a \cdot z\right)\right)}{t}\right), \color{blue}{t}\right)\right) \]
    7. Simplified69.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 85.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 \cdot 10^{-47}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 2.7 \cdot 10^{-42}:\\ \;\;\;\;x + z \cdot \frac{y}{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 -6e-47) t_1 (if (<= a 2.7e-42) (+ x (* z (/ y (- 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 <= -6e-47) {
		tmp = t_1;
	} else if (a <= 2.7e-42) {
		tmp = x + (z * (y / (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 <= (-6d-47)) then
        tmp = t_1
    else if (a <= 2.7d-42) then
        tmp = x + (z * (y / (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 <= -6e-47) {
		tmp = t_1;
	} else if (a <= 2.7e-42) {
		tmp = x + (z * (y / (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 <= -6e-47:
		tmp = t_1
	elif a <= 2.7e-42:
		tmp = x + (z * (y / (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 <= -6e-47)
		tmp = t_1;
	elseif (a <= 2.7e-42)
		tmp = Float64(x + Float64(z * Float64(y / 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 <= -6e-47)
		tmp = t_1;
	elseif (a <= 2.7e-42)
		tmp = x + (z * (y / (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, -6e-47], t$95$1, If[LessEqual[a, 2.7e-42], N[(x + N[(z * N[(y / 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 \cdot 10^{-47}:\\
\;\;\;\;t\_1\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -6.00000000000000033e-47 or 2.69999999999999999e-42 < a

    1. Initial program 81.7%

      \[\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-/.f6487.9%

        \[\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. Simplified87.9%

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

    if -6.00000000000000033e-47 < a < 2.69999999999999999e-42

    1. Initial program 75.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-eval86.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. Simplified86.2%

      \[\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--.f6497.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. Simplified97.1%

      \[\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 z around inf

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

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

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

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

Alternative 5: 81.8% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.1 \cdot 10^{+102}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 1.6 \cdot 10^{-42}:\\ \;\;\;\;x + z \cdot \frac{y}{t - a}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= a -1.1e+102)
   (+ x y)
   (if (<= a 1.6e-42) (+ x (* z (/ y (- t a)))) (+ x y))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -1.1e+102) {
		tmp = x + y;
	} else if (a <= 1.6e-42) {
		tmp = x + (z * (y / (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 <= (-1.1d+102)) then
        tmp = x + y
    else if (a <= 1.6d-42) then
        tmp = x + (z * (y / (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 <= -1.1e+102) {
		tmp = x + y;
	} else if (a <= 1.6e-42) {
		tmp = x + (z * (y / (t - a)));
	} else {
		tmp = x + y;
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if a <= -1.1e+102:
		tmp = x + y
	elif a <= 1.6e-42:
		tmp = x + (z * (y / (t - a)))
	else:
		tmp = x + y
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (a <= -1.1e+102)
		tmp = Float64(x + y);
	elseif (a <= 1.6e-42)
		tmp = Float64(x + Float64(z * Float64(y / 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 <= -1.1e+102)
		tmp = x + y;
	elseif (a <= 1.6e-42)
		tmp = x + (z * (y / (t - a)));
	else
		tmp = x + y;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.1e+102], N[(x + y), $MachinePrecision], If[LessEqual[a, 1.6e-42], N[(x + N[(z * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -1.10000000000000004e102 or 1.60000000000000012e-42 < a

    1. Initial program 82.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-eval92.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. Simplified92.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-+.f6484.1%

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

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

    if -1.10000000000000004e102 < a < 1.60000000000000012e-42

    1. Initial program 76.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-eval86.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. Simplified86.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--.f6495.2%

        \[\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. Simplified95.2%

      \[\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 z around inf

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

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

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

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

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

Alternative 6: 75.3% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3.4 \cdot 10^{-48}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 2.5 \cdot 10^{-42}:\\ \;\;\;\;x + z \cdot \frac{y}{t}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= a -3.4e-48) (+ x y) (if (<= a 2.5e-42) (+ x (* z (/ y t))) (+ x y))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -3.4e-48) {
		tmp = x + y;
	} else if (a <= 2.5e-42) {
		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 <= (-3.4d-48)) then
        tmp = x + y
    else if (a <= 2.5d-42) 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 <= -3.4e-48) {
		tmp = x + y;
	} else if (a <= 2.5e-42) {
		tmp = x + (z * (y / t));
	} else {
		tmp = x + y;
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if a <= -3.4e-48:
		tmp = x + y
	elif a <= 2.5e-42:
		tmp = x + (z * (y / t))
	else:
		tmp = x + y
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (a <= -3.4e-48)
		tmp = Float64(x + y);
	elseif (a <= 2.5e-42)
		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 <= -3.4e-48)
		tmp = x + y;
	elseif (a <= 2.5e-42)
		tmp = x + (z * (y / t));
	else
		tmp = x + y;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.4e-48], N[(x + y), $MachinePrecision], If[LessEqual[a, 2.5e-42], N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -3.40000000000000028e-48 or 2.50000000000000001e-42 < a

    1. Initial program 81.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.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. Simplified92.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-+.f6480.6%

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

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

    if -3.40000000000000028e-48 < a < 2.50000000000000001e-42

    1. Initial program 75.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-eval86.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. Simplified86.2%

      \[\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 \color{blue}{x + \frac{y \cdot z}{t}} \]
    6. Step-by-step derivation
      1. +-lowering-+.f64N/A

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\left(y \cdot z\right), \color{blue}{t}\right)\right) \]
      3. *-lowering-*.f6483.4%

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{/.f64}\left(y, \color{blue}{t}\right)\right)\right) \]
    9. Applied egg-rr86.2%

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

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

Alternative 7: 75.7% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -2.5 \cdot 10^{-47}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 2.1 \cdot 10^{-42}:\\ \;\;\;\;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.5e-47) (+ x y) (if (<= a 2.1e-42) (+ x (* y (/ z t))) (+ x y))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -2.5e-47) {
		tmp = x + y;
	} else if (a <= 2.1e-42) {
		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.5d-47)) then
        tmp = x + y
    else if (a <= 2.1d-42) 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.5e-47) {
		tmp = x + y;
	} else if (a <= 2.1e-42) {
		tmp = x + (y * (z / t));
	} else {
		tmp = x + y;
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if a <= -2.5e-47:
		tmp = x + y
	elif a <= 2.1e-42:
		tmp = x + (y * (z / t))
	else:
		tmp = x + y
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (a <= -2.5e-47)
		tmp = Float64(x + y);
	elseif (a <= 2.1e-42)
		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.5e-47)
		tmp = x + y;
	elseif (a <= 2.1e-42)
		tmp = x + (y * (z / t));
	else
		tmp = x + y;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.5e-47], N[(x + y), $MachinePrecision], If[LessEqual[a, 2.1e-42], 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.5 \cdot 10^{-47}:\\
\;\;\;\;x + y\\

\mathbf{elif}\;a \leq 2.1 \cdot 10^{-42}:\\
\;\;\;\;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.50000000000000006e-47 or 2.10000000000000006e-42 < a

    1. Initial program 81.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.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. Simplified92.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-+.f6480.6%

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

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

    if -2.50000000000000006e-47 < a < 2.10000000000000006e-42

    1. Initial program 75.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-eval86.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. Simplified86.2%

      \[\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-/.f6481.5%

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

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

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

Alternative 8: 62.7% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -9.5 \cdot 10^{+211}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq 2.5 \cdot 10^{+86}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= t -9.5e+211) x (if (<= t 2.5e+86) (+ x y) x)))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (t <= -9.5e+211) {
		tmp = x;
	} else if (t <= 2.5e+86) {
		tmp = x + 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 (t <= (-9.5d+211)) then
        tmp = x
    else if (t <= 2.5d+86) then
        tmp = x + 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 (t <= -9.5e+211) {
		tmp = x;
	} else if (t <= 2.5e+86) {
		tmp = x + y;
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if t <= -9.5e+211:
		tmp = x
	elif t <= 2.5e+86:
		tmp = x + y
	else:
		tmp = x
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (t <= -9.5e+211)
		tmp = x;
	elseif (t <= 2.5e+86)
		tmp = Float64(x + y);
	else
		tmp = x;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (t <= -9.5e+211)
		tmp = x;
	elseif (t <= 2.5e+86)
		tmp = x + y;
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -9.5e+211], x, If[LessEqual[t, 2.5e+86], N[(x + y), $MachinePrecision], x]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.5 \cdot 10^{+211}:\\
\;\;\;\;x\\

\mathbf{elif}\;t \leq 2.5 \cdot 10^{+86}:\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -9.4999999999999997e211 or 2.4999999999999999e86 < t

    1. Initial program 52.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-eval77.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. Simplified77.1%

      \[\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. Simplified71.4%

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

      if -9.4999999999999997e211 < t < 2.4999999999999999e86

      1. Initial program 90.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-eval94.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. Simplified94.9%

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

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

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -9.5 \cdot 10^{+211}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq 2.5 \cdot 10^{+86}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
    9. Add Preprocessing

    Alternative 9: 53.0% accurate, 1.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -9.2 \cdot 10^{+143}:\\ \;\;\;\;y\\ \mathbf{elif}\;y \leq 2.25 \cdot 10^{+187}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (if (<= y -9.2e+143) y (if (<= y 2.25e+187) x y)))
    double code(double x, double y, double z, double t, double a) {
    	double tmp;
    	if (y <= -9.2e+143) {
    		tmp = y;
    	} else if (y <= 2.25e+187) {
    		tmp = x;
    	} else {
    		tmp = 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 (y <= (-9.2d+143)) then
            tmp = y
        else if (y <= 2.25d+187) then
            tmp = x
        else
            tmp = y
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a) {
    	double tmp;
    	if (y <= -9.2e+143) {
    		tmp = y;
    	} else if (y <= 2.25e+187) {
    		tmp = x;
    	} else {
    		tmp = y;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a):
    	tmp = 0
    	if y <= -9.2e+143:
    		tmp = y
    	elif y <= 2.25e+187:
    		tmp = x
    	else:
    		tmp = y
    	return tmp
    
    function code(x, y, z, t, a)
    	tmp = 0.0
    	if (y <= -9.2e+143)
    		tmp = y;
    	elseif (y <= 2.25e+187)
    		tmp = x;
    	else
    		tmp = y;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a)
    	tmp = 0.0;
    	if (y <= -9.2e+143)
    		tmp = y;
    	elseif (y <= 2.25e+187)
    		tmp = x;
    	else
    		tmp = y;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_] := If[LessEqual[y, -9.2e+143], y, If[LessEqual[y, 2.25e+187], x, y]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq -9.2 \cdot 10^{+143}:\\
    \;\;\;\;y\\
    
    \mathbf{elif}\;y \leq 2.25 \cdot 10^{+187}:\\
    \;\;\;\;x\\
    
    \mathbf{else}:\\
    \;\;\;\;y\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if y < -9.1999999999999999e143 or 2.25000000000000013e187 < y

      1. Initial program 56.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-eval82.4%

          \[\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. Simplified82.4%

        \[\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-+.f6440.4%

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

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

        \[\leadsto \color{blue}{y} \]
      9. Step-by-step derivation
        1. Simplified39.5%

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

        if -9.1999999999999999e143 < y < 2.25000000000000013e187

        1. Initial program 86.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.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. Simplified92.0%

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

            \[\leadsto \color{blue}{x} \]
        7. Recombined 2 regimes into one program.
        8. Add Preprocessing

        Alternative 10: 50.0% 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 79.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-eval89.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. Simplified89.7%

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

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

          Developer Target 1: 88.1% 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 2024161 
          (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))))