Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3

Percentage Accurate: 68.0% → 90.5%
Time: 14.0s
Alternatives: 16
Speedup: 0.6×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 16 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 68.0% accurate, 1.0× speedup?

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

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

Alternative 1: 90.5% accurate, 0.2× speedup?

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

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

\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;x \cdot \left(\frac{\left(z + \frac{y \cdot a}{x}\right) - \left(a + y \cdot \frac{z}{x}\right)}{t} + \frac{y}{x}\right)\\

\mathbf{else}:\\
\;\;\;\;x + \frac{\frac{z - t}{a - t}}{\frac{-1}{x - y}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.00000000000000005e-286

    1. Initial program 74.9%

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

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

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

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

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

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

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

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

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

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

    if -1.00000000000000005e-286 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0

    1. Initial program 4.1%

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

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

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

        \[\leadsto \left(z - t\right) \cdot \frac{y - x}{a - t} + x \]
      4. fma-defineN/A

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

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

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

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

        \[\leadsto \mathsf{fma.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, x\right), \left(\color{blue}{a} - t\right)\right), x\right) \]
      9. --lowering--.f643.4%

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y - x}{a - t}, x\right)} \]
    5. Taylor expanded in x around -inf

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

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

        \[\leadsto \mathsf{neg}\left(\left(\left(-1 \cdot \frac{y \cdot \left(z - t\right)}{x \cdot \left(a - t\right)} + \frac{z}{a - t}\right) - \left(1 + \frac{t}{a - t}\right)\right) \cdot x\right) \]
      3. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(\mathsf{neg.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{+.f64}\left(z, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, a\right), x\right)\right), \mathsf{+.f64}\left(a, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, x\right)\right)\right)\right), t\right)\right), \left(\frac{y}{x}\right)\right), \mathsf{\_.f64}\left(0, x\right)\right) \]
      14. /-lowering-/.f6499.8%

        \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(\mathsf{neg.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{+.f64}\left(z, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, a\right), x\right)\right), \mathsf{+.f64}\left(a, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, x\right)\right)\right)\right), t\right)\right), \mathsf{/.f64}\left(y, x\right)\right), \mathsf{\_.f64}\left(0, x\right)\right) \]
    10. Simplified99.8%

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

    if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t)))

    1. Initial program 74.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 90.6% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{\frac{z - t}{a - t}}{\frac{-1}{x - y}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.00000000000000005e-286

    1. Initial program 74.9%

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

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

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

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

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

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

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

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

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

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

    if -1.00000000000000005e-286 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0

    1. Initial program 4.1%

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

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

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

        \[\leadsto y + -1 \cdot \color{blue}{\left(\frac{z \cdot \left(y - x\right)}{t} - \frac{a \cdot \left(y - x\right)}{t}\right)} \]
      3. div-subN/A

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

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

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

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

        \[\leadsto \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(\left(z \cdot \left(y - x\right) - a \cdot \left(y - x\right)\right), \color{blue}{t}\right)\right) \]
      8. distribute-rgt-out--N/A

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

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

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

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

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

    if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t)))

    1. Initial program 74.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 90.7% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.00000000000000005e-286 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t)))

    1. Initial program 74.6%

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

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

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

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

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

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

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

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

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

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

    if -1.00000000000000005e-286 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0

    1. Initial program 4.1%

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

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

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

        \[\leadsto y + -1 \cdot \color{blue}{\left(\frac{z \cdot \left(y - x\right)}{t} - \frac{a \cdot \left(y - x\right)}{t}\right)} \]
      3. div-subN/A

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

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

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

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

        \[\leadsto \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(\left(z \cdot \left(y - x\right) - a \cdot \left(y - x\right)\right), \color{blue}{t}\right)\right) \]
      8. distribute-rgt-out--N/A

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

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

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

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

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

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

Alternative 4: 62.7% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y}{\frac{a - t}{z - t}}\\ \mathbf{if}\;t \leq -1.2 \cdot 10^{+149}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -7.8 \cdot 10^{-103}:\\ \;\;\;\;x \cdot \left(\frac{z - t}{t - a} + 1\right)\\ \mathbf{elif}\;t \leq 9.6 \cdot 10^{-237}:\\ \;\;\;\;x + z \cdot \frac{y - x}{a}\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+70}:\\ \;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (/ y (/ (- a t) (- z t)))))
   (if (<= t -1.2e+149)
     t_1
     (if (<= t -7.8e-103)
       (* x (+ (/ (- z t) (- t a)) 1.0))
       (if (<= t 9.6e-237)
         (+ x (* z (/ (- y x) a)))
         (if (<= t 8e+70) (+ x (* (- z t) (/ y a))) t_1))))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = y / ((a - t) / (z - t));
	double tmp;
	if (t <= -1.2e+149) {
		tmp = t_1;
	} else if (t <= -7.8e-103) {
		tmp = x * (((z - t) / (t - a)) + 1.0);
	} else if (t <= 9.6e-237) {
		tmp = x + (z * ((y - x) / a));
	} else if (t <= 8e+70) {
		tmp = x + ((z - t) * (y / 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 = y / ((a - t) / (z - t))
    if (t <= (-1.2d+149)) then
        tmp = t_1
    else if (t <= (-7.8d-103)) then
        tmp = x * (((z - t) / (t - a)) + 1.0d0)
    else if (t <= 9.6d-237) then
        tmp = x + (z * ((y - x) / a))
    else if (t <= 8d+70) then
        tmp = x + ((z - t) * (y / 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 = y / ((a - t) / (z - t));
	double tmp;
	if (t <= -1.2e+149) {
		tmp = t_1;
	} else if (t <= -7.8e-103) {
		tmp = x * (((z - t) / (t - a)) + 1.0);
	} else if (t <= 9.6e-237) {
		tmp = x + (z * ((y - x) / a));
	} else if (t <= 8e+70) {
		tmp = x + ((z - t) * (y / a));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = y / ((a - t) / (z - t))
	tmp = 0
	if t <= -1.2e+149:
		tmp = t_1
	elif t <= -7.8e-103:
		tmp = x * (((z - t) / (t - a)) + 1.0)
	elif t <= 9.6e-237:
		tmp = x + (z * ((y - x) / a))
	elif t <= 8e+70:
		tmp = x + ((z - t) * (y / a))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(y / Float64(Float64(a - t) / Float64(z - t)))
	tmp = 0.0
	if (t <= -1.2e+149)
		tmp = t_1;
	elseif (t <= -7.8e-103)
		tmp = Float64(x * Float64(Float64(Float64(z - t) / Float64(t - a)) + 1.0));
	elseif (t <= 9.6e-237)
		tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a)));
	elseif (t <= 8e+70)
		tmp = Float64(x + Float64(Float64(z - t) * Float64(y / a)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = y / ((a - t) / (z - t));
	tmp = 0.0;
	if (t <= -1.2e+149)
		tmp = t_1;
	elseif (t <= -7.8e-103)
		tmp = x * (((z - t) / (t - a)) + 1.0);
	elseif (t <= 9.6e-237)
		tmp = x + (z * ((y - x) / a));
	elseif (t <= 8e+70)
		tmp = x + ((z - t) * (y / a));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.2e+149], t$95$1, If[LessEqual[t, -7.8e-103], N[(x * N[(N[(N[(z - t), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.6e-237], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e+70], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -1.20000000000000006e149 or 8.00000000000000058e70 < t

    1. Initial program 36.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.20000000000000006e149 < t < -7.8000000000000004e-103

    1. Initial program 72.2%

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

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

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

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

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

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

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

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

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

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

    if -7.8000000000000004e-103 < t < 9.5999999999999999e-237

    1. Initial program 90.1%

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

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

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

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

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

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

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

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

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

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

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

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

      if 9.5999999999999999e-237 < t < 8.00000000000000058e70

      1. Initial program 88.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.2 \cdot 10^{+149}:\\ \;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\ \mathbf{elif}\;t \leq -7.8 \cdot 10^{-103}:\\ \;\;\;\;x \cdot \left(\frac{z - t}{t - a} + 1\right)\\ \mathbf{elif}\;t \leq 9.6 \cdot 10^{-237}:\\ \;\;\;\;x + z \cdot \frac{y - x}{a}\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+70}:\\ \;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\ \end{array} \]
    10. Add Preprocessing

    Alternative 5: 63.7% accurate, 0.5× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y}{\frac{a - t}{z - t}}\\ \mathbf{if}\;t \leq -1.36 \cdot 10^{+114}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{-237}:\\ \;\;\;\;x + z \cdot \frac{y - x}{a}\\ \mathbf{elif}\;t \leq 8.8 \cdot 10^{+70}:\\ \;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (let* ((t_1 (/ y (/ (- a t) (- z t)))))
       (if (<= t -1.36e+114)
         t_1
         (if (<= t 3.1e-237)
           (+ x (* z (/ (- y x) a)))
           (if (<= t 8.8e+70) (+ x (* (- z t) (/ y a))) t_1)))))
    double code(double x, double y, double z, double t, double a) {
    	double t_1 = y / ((a - t) / (z - t));
    	double tmp;
    	if (t <= -1.36e+114) {
    		tmp = t_1;
    	} else if (t <= 3.1e-237) {
    		tmp = x + (z * ((y - x) / a));
    	} else if (t <= 8.8e+70) {
    		tmp = x + ((z - t) * (y / 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 = y / ((a - t) / (z - t))
        if (t <= (-1.36d+114)) then
            tmp = t_1
        else if (t <= 3.1d-237) then
            tmp = x + (z * ((y - x) / a))
        else if (t <= 8.8d+70) then
            tmp = x + ((z - t) * (y / 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 = y / ((a - t) / (z - t));
    	double tmp;
    	if (t <= -1.36e+114) {
    		tmp = t_1;
    	} else if (t <= 3.1e-237) {
    		tmp = x + (z * ((y - x) / a));
    	} else if (t <= 8.8e+70) {
    		tmp = x + ((z - t) * (y / a));
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a):
    	t_1 = y / ((a - t) / (z - t))
    	tmp = 0
    	if t <= -1.36e+114:
    		tmp = t_1
    	elif t <= 3.1e-237:
    		tmp = x + (z * ((y - x) / a))
    	elif t <= 8.8e+70:
    		tmp = x + ((z - t) * (y / a))
    	else:
    		tmp = t_1
    	return tmp
    
    function code(x, y, z, t, a)
    	t_1 = Float64(y / Float64(Float64(a - t) / Float64(z - t)))
    	tmp = 0.0
    	if (t <= -1.36e+114)
    		tmp = t_1;
    	elseif (t <= 3.1e-237)
    		tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a)));
    	elseif (t <= 8.8e+70)
    		tmp = Float64(x + Float64(Float64(z - t) * Float64(y / a)));
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a)
    	t_1 = y / ((a - t) / (z - t));
    	tmp = 0.0;
    	if (t <= -1.36e+114)
    		tmp = t_1;
    	elseif (t <= 3.1e-237)
    		tmp = x + (z * ((y - x) / a));
    	elseif (t <= 8.8e+70)
    		tmp = x + ((z - t) * (y / a));
    	else
    		tmp = t_1;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.36e+114], t$95$1, If[LessEqual[t, 3.1e-237], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.8e+70], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{y}{\frac{a - t}{z - t}}\\
    \mathbf{if}\;t \leq -1.36 \cdot 10^{+114}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t \leq 3.1 \cdot 10^{-237}:\\
    \;\;\;\;x + z \cdot \frac{y - x}{a}\\
    
    \mathbf{elif}\;t \leq 8.8 \cdot 10^{+70}:\\
    \;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if t < -1.36000000000000008e114 or 8.80000000000000003e70 < t

      1. Initial program 38.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -1.36000000000000008e114 < t < 3.0999999999999998e-237

      1. Initial program 84.3%

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

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

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

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

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

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

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

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

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

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

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

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

        if 3.0999999999999998e-237 < t < 8.80000000000000003e70

        1. Initial program 88.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 6: 58.3% accurate, 0.5× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -5.1 \cdot 10^{+144}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 6.8 \cdot 10^{-237}:\\ \;\;\;\;x + z \cdot \frac{y - x}{a}\\ \mathbf{elif}\;t \leq 2.7 \cdot 10^{+86}:\\ \;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (<= t -5.1e+144)
         y
         (if (<= t 6.8e-237)
           (+ x (* z (/ (- y x) a)))
           (if (<= t 2.7e+86) (+ x (* (- z t) (/ y a))) y))))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if (t <= -5.1e+144) {
      		tmp = y;
      	} else if (t <= 6.8e-237) {
      		tmp = x + (z * ((y - x) / a));
      	} else if (t <= 2.7e+86) {
      		tmp = x + ((z - t) * (y / a));
      	} 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 (t <= (-5.1d+144)) then
              tmp = y
          else if (t <= 6.8d-237) then
              tmp = x + (z * ((y - x) / a))
          else if (t <= 2.7d+86) then
              tmp = x + ((z - t) * (y / a))
          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 (t <= -5.1e+144) {
      		tmp = y;
      	} else if (t <= 6.8e-237) {
      		tmp = x + (z * ((y - x) / a));
      	} else if (t <= 2.7e+86) {
      		tmp = x + ((z - t) * (y / a));
      	} else {
      		tmp = y;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a):
      	tmp = 0
      	if t <= -5.1e+144:
      		tmp = y
      	elif t <= 6.8e-237:
      		tmp = x + (z * ((y - x) / a))
      	elif t <= 2.7e+86:
      		tmp = x + ((z - t) * (y / a))
      	else:
      		tmp = y
      	return tmp
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if (t <= -5.1e+144)
      		tmp = y;
      	elseif (t <= 6.8e-237)
      		tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a)));
      	elseif (t <= 2.7e+86)
      		tmp = Float64(x + Float64(Float64(z - t) * Float64(y / a)));
      	else
      		tmp = y;
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a)
      	tmp = 0.0;
      	if (t <= -5.1e+144)
      		tmp = y;
      	elseif (t <= 6.8e-237)
      		tmp = x + (z * ((y - x) / a));
      	elseif (t <= 2.7e+86)
      		tmp = x + ((z - t) * (y / a));
      	else
      		tmp = y;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_] := If[LessEqual[t, -5.1e+144], y, If[LessEqual[t, 6.8e-237], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e+86], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;t \leq -5.1 \cdot 10^{+144}:\\
      \;\;\;\;y\\
      
      \mathbf{elif}\;t \leq 6.8 \cdot 10^{-237}:\\
      \;\;\;\;x + z \cdot \frac{y - x}{a}\\
      
      \mathbf{elif}\;t \leq 2.7 \cdot 10^{+86}:\\
      \;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a}\\
      
      \mathbf{else}:\\
      \;\;\;\;y\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if t < -5.0999999999999999e144 or 2.70000000000000018e86 < t

        1. Initial program 36.2%

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

          \[\leadsto \color{blue}{y} \]
        4. Step-by-step derivation
          1. Simplified59.8%

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

          if -5.0999999999999999e144 < t < 6.8000000000000005e-237

          1. Initial program 83.2%

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

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

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

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

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

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

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

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

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

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

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

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

            if 6.8000000000000005e-237 < t < 2.70000000000000018e86

            1. Initial program 88.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 7: 77.1% accurate, 0.6× speedup?

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

            1. Initial program 38.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -7.00000000000000023e149 < t < 4.79999999999999982e83

            1. Initial program 85.3%

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

            if 4.79999999999999982e83 < t

            1. Initial program 33.9%

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

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

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

                \[\leadsto y + -1 \cdot \color{blue}{\left(\frac{z \cdot \left(y - x\right)}{t} - \frac{a \cdot \left(y - x\right)}{t}\right)} \]
              3. div-subN/A

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

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

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

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

                \[\leadsto \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(\left(z \cdot \left(y - x\right) - a \cdot \left(y - x\right)\right), \color{blue}{t}\right)\right) \]
              8. distribute-rgt-out--N/A

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

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

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

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

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

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

          Alternative 8: 49.9% accurate, 0.6× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.1 \cdot 10^{+146}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -4.1 \cdot 10^{-308}:\\ \;\;\;\;x \cdot \left(1 - \frac{z - t}{a}\right)\\ \mathbf{elif}\;t \leq 2 \cdot 10^{+79}:\\ \;\;\;\;x + z \cdot \frac{y}{a}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (if (<= t -1.1e+146)
             y
             (if (<= t -4.1e-308)
               (* x (- 1.0 (/ (- z t) a)))
               (if (<= t 2e+79) (+ x (* z (/ y a))) y))))
          double code(double x, double y, double z, double t, double a) {
          	double tmp;
          	if (t <= -1.1e+146) {
          		tmp = y;
          	} else if (t <= -4.1e-308) {
          		tmp = x * (1.0 - ((z - t) / a));
          	} else if (t <= 2e+79) {
          		tmp = x + (z * (y / a));
          	} 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 (t <= (-1.1d+146)) then
                  tmp = y
              else if (t <= (-4.1d-308)) then
                  tmp = x * (1.0d0 - ((z - t) / a))
              else if (t <= 2d+79) then
                  tmp = x + (z * (y / a))
              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 (t <= -1.1e+146) {
          		tmp = y;
          	} else if (t <= -4.1e-308) {
          		tmp = x * (1.0 - ((z - t) / a));
          	} else if (t <= 2e+79) {
          		tmp = x + (z * (y / a));
          	} else {
          		tmp = y;
          	}
          	return tmp;
          }
          
          def code(x, y, z, t, a):
          	tmp = 0
          	if t <= -1.1e+146:
          		tmp = y
          	elif t <= -4.1e-308:
          		tmp = x * (1.0 - ((z - t) / a))
          	elif t <= 2e+79:
          		tmp = x + (z * (y / a))
          	else:
          		tmp = y
          	return tmp
          
          function code(x, y, z, t, a)
          	tmp = 0.0
          	if (t <= -1.1e+146)
          		tmp = y;
          	elseif (t <= -4.1e-308)
          		tmp = Float64(x * Float64(1.0 - Float64(Float64(z - t) / a)));
          	elseif (t <= 2e+79)
          		tmp = Float64(x + Float64(z * Float64(y / a)));
          	else
          		tmp = y;
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y, z, t, a)
          	tmp = 0.0;
          	if (t <= -1.1e+146)
          		tmp = y;
          	elseif (t <= -4.1e-308)
          		tmp = x * (1.0 - ((z - t) / a));
          	elseif (t <= 2e+79)
          		tmp = x + (z * (y / a));
          	else
          		tmp = y;
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.1e+146], y, If[LessEqual[t, -4.1e-308], N[(x * N[(1.0 - N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e+79], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;t \leq -1.1 \cdot 10^{+146}:\\
          \;\;\;\;y\\
          
          \mathbf{elif}\;t \leq -4.1 \cdot 10^{-308}:\\
          \;\;\;\;x \cdot \left(1 - \frac{z - t}{a}\right)\\
          
          \mathbf{elif}\;t \leq 2 \cdot 10^{+79}:\\
          \;\;\;\;x + z \cdot \frac{y}{a}\\
          
          \mathbf{else}:\\
          \;\;\;\;y\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if t < -1.0999999999999999e146 or 1.99999999999999993e79 < t

            1. Initial program 36.2%

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

              \[\leadsto \color{blue}{y} \]
            4. Step-by-step derivation
              1. Simplified59.8%

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

              if -1.0999999999999999e146 < t < -4.09999999999999983e-308

              1. Initial program 82.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(y, x\right)\right)\right), x\right) \]
              7. Applied egg-rr72.8%

                \[\leadsto \color{blue}{\frac{z - t}{\frac{a}{y - x}} + x} \]
              8. Taylor expanded in y around 0

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

                  \[\leadsto x + \left(\mathsf{neg}\left(\frac{x \cdot \left(z - t\right)}{a}\right)\right) \]
                2. *-rgt-identityN/A

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

                  \[\leadsto x \cdot 1 + \left(\mathsf{neg}\left(x \cdot \frac{z - t}{a}\right)\right) \]
                4. distribute-rgt-neg-inN/A

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

                  \[\leadsto x \cdot 1 + x \cdot \left(-1 \cdot \color{blue}{\frac{z - t}{a}}\right) \]
                6. distribute-lft-inN/A

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

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

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

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

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

                  \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(\left(z - t\right), \color{blue}{a}\right)\right)\right) \]
                12. --lowering--.f6458.9%

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

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

              if -4.09999999999999983e-308 < t < 1.99999999999999993e79

              1. Initial program 88.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 9: 49.9% accurate, 0.6× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3.6 \cdot 10^{+141}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 6 \cdot 10^{-309}:\\ \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{elif}\;t \leq 5.8 \cdot 10^{+80}:\\ \;\;\;\;x + z \cdot \frac{y}{a}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \end{array} \]
              (FPCore (x y z t a)
               :precision binary64
               (if (<= t -3.6e+141)
                 y
                 (if (<= t 6e-309)
                   (* x (- 1.0 (/ z a)))
                   (if (<= t 5.8e+80) (+ x (* z (/ y a))) y))))
              double code(double x, double y, double z, double t, double a) {
              	double tmp;
              	if (t <= -3.6e+141) {
              		tmp = y;
              	} else if (t <= 6e-309) {
              		tmp = x * (1.0 - (z / a));
              	} else if (t <= 5.8e+80) {
              		tmp = x + (z * (y / a));
              	} 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 (t <= (-3.6d+141)) then
                      tmp = y
                  else if (t <= 6d-309) then
                      tmp = x * (1.0d0 - (z / a))
                  else if (t <= 5.8d+80) then
                      tmp = x + (z * (y / a))
                  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 (t <= -3.6e+141) {
              		tmp = y;
              	} else if (t <= 6e-309) {
              		tmp = x * (1.0 - (z / a));
              	} else if (t <= 5.8e+80) {
              		tmp = x + (z * (y / a));
              	} else {
              		tmp = y;
              	}
              	return tmp;
              }
              
              def code(x, y, z, t, a):
              	tmp = 0
              	if t <= -3.6e+141:
              		tmp = y
              	elif t <= 6e-309:
              		tmp = x * (1.0 - (z / a))
              	elif t <= 5.8e+80:
              		tmp = x + (z * (y / a))
              	else:
              		tmp = y
              	return tmp
              
              function code(x, y, z, t, a)
              	tmp = 0.0
              	if (t <= -3.6e+141)
              		tmp = y;
              	elseif (t <= 6e-309)
              		tmp = Float64(x * Float64(1.0 - Float64(z / a)));
              	elseif (t <= 5.8e+80)
              		tmp = Float64(x + Float64(z * Float64(y / a)));
              	else
              		tmp = y;
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t, a)
              	tmp = 0.0;
              	if (t <= -3.6e+141)
              		tmp = y;
              	elseif (t <= 6e-309)
              		tmp = x * (1.0 - (z / a));
              	elseif (t <= 5.8e+80)
              		tmp = x + (z * (y / a));
              	else
              		tmp = y;
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.6e+141], y, If[LessEqual[t, 6e-309], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e+80], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;t \leq -3.6 \cdot 10^{+141}:\\
              \;\;\;\;y\\
              
              \mathbf{elif}\;t \leq 6 \cdot 10^{-309}:\\
              \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
              
              \mathbf{elif}\;t \leq 5.8 \cdot 10^{+80}:\\
              \;\;\;\;x + z \cdot \frac{y}{a}\\
              
              \mathbf{else}:\\
              \;\;\;\;y\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if t < -3.6000000000000001e141 or 5.79999999999999971e80 < t

                1. Initial program 36.2%

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

                  \[\leadsto \color{blue}{y} \]
                4. Step-by-step derivation
                  1. Simplified59.8%

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

                  if -3.6000000000000001e141 < t < 6.000000000000001e-309

                  1. Initial program 82.0%

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), \left(\color{blue}{a} - t\right)\right)\right)\right) \]
                    7. --lowering--.f6467.0%

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

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

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

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

                      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{z}{a}\right)}\right)\right) \]
                    3. /-lowering-/.f6458.6%

                      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(z, \color{blue}{a}\right)\right)\right) \]
                  8. Simplified58.6%

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

                  if 6.000000000000001e-309 < t < 5.79999999999999971e80

                  1. Initial program 88.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 10: 71.6% accurate, 0.6× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(z - t\right) \cdot \frac{y - x}{a}\\ \mathbf{if}\;a \leq -1.2 \cdot 10^{-47}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 6.2 \cdot 10^{-93}:\\ \;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                  (FPCore (x y z t a)
                   :precision binary64
                   (let* ((t_1 (+ x (* (- z t) (/ (- y x) a)))))
                     (if (<= a -1.2e-47)
                       t_1
                       (if (<= a 6.2e-93) (+ y (/ (* (- y x) (- a z)) t)) t_1))))
                  double code(double x, double y, double z, double t, double a) {
                  	double t_1 = x + ((z - t) * ((y - x) / a));
                  	double tmp;
                  	if (a <= -1.2e-47) {
                  		tmp = t_1;
                  	} else if (a <= 6.2e-93) {
                  		tmp = y + (((y - x) * (a - z)) / 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) :: tmp
                      t_1 = x + ((z - t) * ((y - x) / a))
                      if (a <= (-1.2d-47)) then
                          tmp = t_1
                      else if (a <= 6.2d-93) then
                          tmp = y + (((y - x) * (a - z)) / 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 = x + ((z - t) * ((y - x) / a));
                  	double tmp;
                  	if (a <= -1.2e-47) {
                  		tmp = t_1;
                  	} else if (a <= 6.2e-93) {
                  		tmp = y + (((y - x) * (a - z)) / t);
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a):
                  	t_1 = x + ((z - t) * ((y - x) / a))
                  	tmp = 0
                  	if a <= -1.2e-47:
                  		tmp = t_1
                  	elif a <= 6.2e-93:
                  		tmp = y + (((y - x) * (a - z)) / t)
                  	else:
                  		tmp = t_1
                  	return tmp
                  
                  function code(x, y, z, t, a)
                  	t_1 = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / a)))
                  	tmp = 0.0
                  	if (a <= -1.2e-47)
                  		tmp = t_1;
                  	elseif (a <= 6.2e-93)
                  		tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t));
                  	else
                  		tmp = t_1;
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t, a)
                  	t_1 = x + ((z - t) * ((y - x) / a));
                  	tmp = 0.0;
                  	if (a <= -1.2e-47)
                  		tmp = t_1;
                  	elseif (a <= 6.2e-93)
                  		tmp = y + (((y - x) * (a - z)) / t);
                  	else
                  		tmp = t_1;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.2e-47], t$95$1, If[LessEqual[a, 6.2e-93], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := x + \left(z - t\right) \cdot \frac{y - x}{a}\\
                  \mathbf{if}\;a \leq -1.2 \cdot 10^{-47}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;a \leq 6.2 \cdot 10^{-93}:\\
                  \;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if a < -1.2e-47 or 6.19999999999999999e-93 < a

                    1. Initial program 73.5%

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

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

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

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

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

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

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

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

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

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

                    if -1.2e-47 < a < 6.19999999999999999e-93

                    1. Initial program 61.6%

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

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

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

                        \[\leadsto y + -1 \cdot \color{blue}{\left(\frac{z \cdot \left(y - x\right)}{t} - \frac{a \cdot \left(y - x\right)}{t}\right)} \]
                      3. div-subN/A

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

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

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

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

                        \[\leadsto \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(\left(z \cdot \left(y - x\right) - a \cdot \left(y - x\right)\right), \color{blue}{t}\right)\right) \]
                      8. distribute-rgt-out--N/A

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

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

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

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

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

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

                  Alternative 11: 67.4% accurate, 0.6× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y}{\frac{a - t}{z - t}}\\ \mathbf{if}\;t \leq -3.6 \cdot 10^{+141}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.45 \cdot 10^{+88}:\\ \;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                  (FPCore (x y z t a)
                   :precision binary64
                   (let* ((t_1 (/ y (/ (- a t) (- z t)))))
                     (if (<= t -3.6e+141)
                       t_1
                       (if (<= t 1.45e+88) (+ x (* (- z t) (/ (- y x) a))) t_1))))
                  double code(double x, double y, double z, double t, double a) {
                  	double t_1 = y / ((a - t) / (z - t));
                  	double tmp;
                  	if (t <= -3.6e+141) {
                  		tmp = t_1;
                  	} else if (t <= 1.45e+88) {
                  		tmp = x + ((z - t) * ((y - x) / 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 = y / ((a - t) / (z - t))
                      if (t <= (-3.6d+141)) then
                          tmp = t_1
                      else if (t <= 1.45d+88) then
                          tmp = x + ((z - t) * ((y - x) / 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 = y / ((a - t) / (z - t));
                  	double tmp;
                  	if (t <= -3.6e+141) {
                  		tmp = t_1;
                  	} else if (t <= 1.45e+88) {
                  		tmp = x + ((z - t) * ((y - x) / a));
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a):
                  	t_1 = y / ((a - t) / (z - t))
                  	tmp = 0
                  	if t <= -3.6e+141:
                  		tmp = t_1
                  	elif t <= 1.45e+88:
                  		tmp = x + ((z - t) * ((y - x) / a))
                  	else:
                  		tmp = t_1
                  	return tmp
                  
                  function code(x, y, z, t, a)
                  	t_1 = Float64(y / Float64(Float64(a - t) / Float64(z - t)))
                  	tmp = 0.0
                  	if (t <= -3.6e+141)
                  		tmp = t_1;
                  	elseif (t <= 1.45e+88)
                  		tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / a)));
                  	else
                  		tmp = t_1;
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t, a)
                  	t_1 = y / ((a - t) / (z - t));
                  	tmp = 0.0;
                  	if (t <= -3.6e+141)
                  		tmp = t_1;
                  	elseif (t <= 1.45e+88)
                  		tmp = x + ((z - t) * ((y - x) / a));
                  	else
                  		tmp = t_1;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.6e+141], t$95$1, If[LessEqual[t, 1.45e+88], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \frac{y}{\frac{a - t}{z - t}}\\
                  \mathbf{if}\;t \leq -3.6 \cdot 10^{+141}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;t \leq 1.45 \cdot 10^{+88}:\\
                  \;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if t < -3.6000000000000001e141 or 1.45e88 < t

                    1. Initial program 34.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -3.6000000000000001e141 < t < 1.45e88

                    1. Initial program 85.3%

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

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

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

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

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

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

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

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

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

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

                  Alternative 12: 59.7% accurate, 0.7× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.5 \cdot 10^{+145}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 1.95 \cdot 10^{+93}:\\ \;\;\;\;x + z \cdot \frac{y - x}{a}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \end{array} \]
                  (FPCore (x y z t a)
                   :precision binary64
                   (if (<= t -1.5e+145) y (if (<= t 1.95e+93) (+ x (* z (/ (- y x) a))) y)))
                  double code(double x, double y, double z, double t, double a) {
                  	double tmp;
                  	if (t <= -1.5e+145) {
                  		tmp = y;
                  	} else if (t <= 1.95e+93) {
                  		tmp = x + (z * ((y - x) / a));
                  	} 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 (t <= (-1.5d+145)) then
                          tmp = y
                      else if (t <= 1.95d+93) then
                          tmp = x + (z * ((y - x) / a))
                      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 (t <= -1.5e+145) {
                  		tmp = y;
                  	} else if (t <= 1.95e+93) {
                  		tmp = x + (z * ((y - x) / a));
                  	} else {
                  		tmp = y;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a):
                  	tmp = 0
                  	if t <= -1.5e+145:
                  		tmp = y
                  	elif t <= 1.95e+93:
                  		tmp = x + (z * ((y - x) / a))
                  	else:
                  		tmp = y
                  	return tmp
                  
                  function code(x, y, z, t, a)
                  	tmp = 0.0
                  	if (t <= -1.5e+145)
                  		tmp = y;
                  	elseif (t <= 1.95e+93)
                  		tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a)));
                  	else
                  		tmp = y;
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t, a)
                  	tmp = 0.0;
                  	if (t <= -1.5e+145)
                  		tmp = y;
                  	elseif (t <= 1.95e+93)
                  		tmp = x + (z * ((y - x) / a));
                  	else
                  		tmp = y;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.5e+145], y, If[LessEqual[t, 1.95e+93], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;t \leq -1.5 \cdot 10^{+145}:\\
                  \;\;\;\;y\\
                  
                  \mathbf{elif}\;t \leq 1.95 \cdot 10^{+93}:\\
                  \;\;\;\;x + z \cdot \frac{y - x}{a}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;y\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if t < -1.5000000000000001e145 or 1.9500000000000001e93 < t

                    1. Initial program 35.1%

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

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

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

                      if -1.5000000000000001e145 < t < 1.9500000000000001e93

                      1. Initial program 84.8%

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

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

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

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

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

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

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

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

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

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

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

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

                      Alternative 13: 56.3% accurate, 0.7× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z - t\right) \cdot \frac{y}{a - t}\\ \mathbf{if}\;y \leq -1 \cdot 10^{+25}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 6.5 \cdot 10^{+67}:\\ \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                      (FPCore (x y z t a)
                       :precision binary64
                       (let* ((t_1 (* (- z t) (/ y (- a t)))))
                         (if (<= y -1e+25) t_1 (if (<= y 6.5e+67) (* x (- 1.0 (/ z a))) t_1))))
                      double code(double x, double y, double z, double t, double a) {
                      	double t_1 = (z - t) * (y / (a - t));
                      	double tmp;
                      	if (y <= -1e+25) {
                      		tmp = t_1;
                      	} else if (y <= 6.5e+67) {
                      		tmp = x * (1.0 - (z / 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 = (z - t) * (y / (a - t))
                          if (y <= (-1d+25)) then
                              tmp = t_1
                          else if (y <= 6.5d+67) then
                              tmp = x * (1.0d0 - (z / 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 = (z - t) * (y / (a - t));
                      	double tmp;
                      	if (y <= -1e+25) {
                      		tmp = t_1;
                      	} else if (y <= 6.5e+67) {
                      		tmp = x * (1.0 - (z / a));
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a):
                      	t_1 = (z - t) * (y / (a - t))
                      	tmp = 0
                      	if y <= -1e+25:
                      		tmp = t_1
                      	elif y <= 6.5e+67:
                      		tmp = x * (1.0 - (z / a))
                      	else:
                      		tmp = t_1
                      	return tmp
                      
                      function code(x, y, z, t, a)
                      	t_1 = Float64(Float64(z - t) * Float64(y / Float64(a - t)))
                      	tmp = 0.0
                      	if (y <= -1e+25)
                      		tmp = t_1;
                      	elseif (y <= 6.5e+67)
                      		tmp = Float64(x * Float64(1.0 - Float64(z / a)));
                      	else
                      		tmp = t_1;
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a)
                      	t_1 = (z - t) * (y / (a - t));
                      	tmp = 0.0;
                      	if (y <= -1e+25)
                      		tmp = t_1;
                      	elseif (y <= 6.5e+67)
                      		tmp = x * (1.0 - (z / a));
                      	else
                      		tmp = t_1;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1e+25], t$95$1, If[LessEqual[y, 6.5e+67], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := \left(z - t\right) \cdot \frac{y}{a - t}\\
                      \mathbf{if}\;y \leq -1 \cdot 10^{+25}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;y \leq 6.5 \cdot 10^{+67}:\\
                      \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_1\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if y < -1.00000000000000009e25 or 6.4999999999999995e67 < y

                        1. Initial program 61.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -1.00000000000000009e25 < y < 6.4999999999999995e67

                        1. Initial program 74.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(z, \color{blue}{a}\right)\right)\right) \]
                        8. Simplified53.0%

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

                      Alternative 14: 48.5% accurate, 0.8× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3.6 \cdot 10^{+141}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 2.25 \cdot 10^{+96}:\\ \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \end{array} \]
                      (FPCore (x y z t a)
                       :precision binary64
                       (if (<= t -3.6e+141) y (if (<= t 2.25e+96) (* x (- 1.0 (/ z a))) y)))
                      double code(double x, double y, double z, double t, double a) {
                      	double tmp;
                      	if (t <= -3.6e+141) {
                      		tmp = y;
                      	} else if (t <= 2.25e+96) {
                      		tmp = x * (1.0 - (z / a));
                      	} 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 (t <= (-3.6d+141)) then
                              tmp = y
                          else if (t <= 2.25d+96) then
                              tmp = x * (1.0d0 - (z / a))
                          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 (t <= -3.6e+141) {
                      		tmp = y;
                      	} else if (t <= 2.25e+96) {
                      		tmp = x * (1.0 - (z / a));
                      	} else {
                      		tmp = y;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a):
                      	tmp = 0
                      	if t <= -3.6e+141:
                      		tmp = y
                      	elif t <= 2.25e+96:
                      		tmp = x * (1.0 - (z / a))
                      	else:
                      		tmp = y
                      	return tmp
                      
                      function code(x, y, z, t, a)
                      	tmp = 0.0
                      	if (t <= -3.6e+141)
                      		tmp = y;
                      	elseif (t <= 2.25e+96)
                      		tmp = Float64(x * Float64(1.0 - Float64(z / a)));
                      	else
                      		tmp = y;
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a)
                      	tmp = 0.0;
                      	if (t <= -3.6e+141)
                      		tmp = y;
                      	elseif (t <= 2.25e+96)
                      		tmp = x * (1.0 - (z / a));
                      	else
                      		tmp = y;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.6e+141], y, If[LessEqual[t, 2.25e+96], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;t \leq -3.6 \cdot 10^{+141}:\\
                      \;\;\;\;y\\
                      
                      \mathbf{elif}\;t \leq 2.25 \cdot 10^{+96}:\\
                      \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;y\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if t < -3.6000000000000001e141 or 2.24999999999999979e96 < t

                        1. Initial program 35.1%

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

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

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

                          if -3.6000000000000001e141 < t < 2.24999999999999979e96

                          1. Initial program 84.8%

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{z}{a}\right)}\right)\right) \]
                            3. /-lowering-/.f6454.2%

                              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(z, \color{blue}{a}\right)\right)\right) \]
                          8. Simplified54.2%

                            \[\leadsto \color{blue}{x \cdot \left(1 - \frac{z}{a}\right)} \]
                        5. Recombined 2 regimes into one program.
                        6. Add Preprocessing

                        Alternative 15: 37.8% accurate, 1.2× speedup?

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

                          1. Initial program 36.2%

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

                            \[\leadsto \color{blue}{y} \]
                          4. Step-by-step derivation
                            1. Simplified59.8%

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

                            if -5.5e148 < t < 3.20000000000000023e71

                            1. Initial program 85.2%

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

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

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

                            Alternative 16: 25.2% 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 69.1%

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

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

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

                              Developer Target 1: 86.9% accurate, 0.5× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\ \mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\ \;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                              (FPCore (x y z t a)
                               :precision binary64
                               (let* ((t_1 (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
                                 (if (< a -1.6153062845442575e-142)
                                   t_1
                                   (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) t_1))))
                              double code(double x, double y, double z, double t, double a) {
                              	double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
                              	double tmp;
                              	if (a < -1.6153062845442575e-142) {
                              		tmp = t_1;
                              	} else if (a < 3.774403170083174e-182) {
                              		tmp = y - ((z / t) * (y - x));
                              	} 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 - x) / 1.0d0) * ((z - t) / (a - t)))
                                  if (a < (-1.6153062845442575d-142)) then
                                      tmp = t_1
                                  else if (a < 3.774403170083174d-182) then
                                      tmp = y - ((z / t) * (y - x))
                                  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 - x) / 1.0) * ((z - t) / (a - t)));
                              	double tmp;
                              	if (a < -1.6153062845442575e-142) {
                              		tmp = t_1;
                              	} else if (a < 3.774403170083174e-182) {
                              		tmp = y - ((z / t) * (y - x));
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t, a):
                              	t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)))
                              	tmp = 0
                              	if a < -1.6153062845442575e-142:
                              		tmp = t_1
                              	elif a < 3.774403170083174e-182:
                              		tmp = y - ((z / t) * (y - x))
                              	else:
                              		tmp = t_1
                              	return tmp
                              
                              function code(x, y, z, t, a)
                              	t_1 = Float64(x + Float64(Float64(Float64(y - x) / 1.0) * Float64(Float64(z - t) / Float64(a - t))))
                              	tmp = 0.0
                              	if (a < -1.6153062845442575e-142)
                              		tmp = t_1;
                              	elseif (a < 3.774403170083174e-182)
                              		tmp = Float64(y - Float64(Float64(z / t) * Float64(y - x)));
                              	else
                              		tmp = t_1;
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y, z, t, a)
                              	t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
                              	tmp = 0.0;
                              	if (a < -1.6153062845442575e-142)
                              		tmp = t_1;
                              	elseif (a < 3.774403170083174e-182)
                              		tmp = y - ((z / t) * (y - x));
                              	else
                              		tmp = t_1;
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[a, -1.6153062845442575e-142], t$95$1, If[Less[a, 3.774403170083174e-182], N[(y - N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\
                              \mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\
                              \;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_1\\
                              
                              
                              \end{array}
                              \end{array}
                              

                              Reproduce

                              ?
                              herbie shell --seed 2024161 
                              (FPCore (x y z t a)
                                :name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
                                :precision binary64
                              
                                :alt
                                (! :herbie-platform default (if (< a -646122513817703/4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))) (if (< a 1887201585041587/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))))))
                              
                                (+ x (/ (* (- y x) (- z t)) (- a t))))