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

Percentage Accurate: 67.4% → 91.0%
Time: 8.4s
Alternatives: 10
Speedup: 0.9×

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 10 alternatives:

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

Initial Program: 67.4% 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: 91.0% 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^{-303} \lor \neg \left(t\_1 \leq 0\right):\\ \;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;y - \frac{\left(z - a\right) \cdot \left(y - x\right)}{t}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
   (if (or (<= t_1 -1e-303) (not (<= t_1 0.0)))
     (+ x (/ (- y x) (/ (- a t) (- z t))))
     (- y (/ (* (- z a) (- y x)) t)))))
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-303) || !(t_1 <= 0.0)) {
		tmp = x + ((y - x) / ((a - t) / (z - t)));
	} else {
		tmp = y - (((z - a) * (y - x)) / 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) :: t_1
    real(8) :: tmp
    t_1 = x + (((y - x) * (z - t)) / (a - t))
    if ((t_1 <= (-1d-303)) .or. (.not. (t_1 <= 0.0d0))) then
        tmp = x + ((y - x) / ((a - t) / (z - t)))
    else
        tmp = y - (((z - a) * (y - x)) / t)
    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-303) || !(t_1 <= 0.0)) {
		tmp = x + ((y - x) / ((a - t) / (z - t)));
	} else {
		tmp = y - (((z - a) * (y - x)) / t);
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = x + (((y - x) * (z - t)) / (a - t))
	tmp = 0
	if (t_1 <= -1e-303) or not (t_1 <= 0.0):
		tmp = x + ((y - x) / ((a - t) / (z - t)))
	else:
		tmp = y - (((z - a) * (y - x)) / t)
	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-303) || !(t_1 <= 0.0))
		tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t))));
	else
		tmp = Float64(y - Float64(Float64(Float64(z - a) * Float64(y - x)) / t));
	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-303) || ~((t_1 <= 0.0)))
		tmp = x + ((y - x) / ((a - t) / (z - t)));
	else
		tmp = y - (((z - a) * (y - x)) / t);
	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[Or[LessEqual[t$95$1, -1e-303], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y - N[(N[(N[(z - a), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision] / t), $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^{-303} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\

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


\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))) < -9.99999999999999931e-304 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t)))

    1. Initial program 69.9%

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

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

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

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

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

        \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
      6. lower-/.f64N/A

        \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
      7. lower-/.f6492.5

        \[\leadsto x + \frac{y - x}{\color{blue}{\frac{a - t}{z - t}}} \]
    4. Applied rewrites92.5%

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

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

    1. Initial program 4.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 + -1 \cdot \frac{\left(z \cdot \left(y - x\right) + \frac{a \cdot \left(z \cdot \left(y - x\right) - a \cdot \left(y - x\right)\right)}{t}\right) - a \cdot \left(y - x\right)}{t}} \]
    4. Step-by-step derivation
      1. mul-1-negN/A

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

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

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

        \[\leadsto y - \color{blue}{\frac{\left(z \cdot \left(y - x\right) + \frac{a \cdot \left(z \cdot \left(y - x\right) - a \cdot \left(y - x\right)\right)}{t}\right) - a \cdot \left(y - x\right)}{t}} \]
    5. Applied rewrites94.7%

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

      \[\leadsto y - \frac{\left(y - x\right) \cdot \left(z - a\right)}{t} \]
    7. Step-by-step derivation
      1. Applied rewrites99.7%

        \[\leadsto y - \frac{\left(z - a\right) \cdot \left(y - x\right)}{t} \]
    8. Recombined 2 regimes into one program.
    9. Final simplification93.0%

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

    Alternative 2: 89.7% accurate, 0.2× speedup?

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

      1. Initial program 57.4%

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y - x}{a - t}, x\right)} \]
        8. lower-/.f6486.9

          \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{\frac{y - x}{a - t}}, x\right) \]
      4. Applied rewrites86.9%

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

      if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -9.99999999999999931e-304

      1. Initial program 99.7%

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

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

      1. Initial program 4.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 + -1 \cdot \frac{\left(z \cdot \left(y - x\right) + \frac{a \cdot \left(z \cdot \left(y - x\right) - a \cdot \left(y - x\right)\right)}{t}\right) - a \cdot \left(y - x\right)}{t}} \]
      4. Step-by-step derivation
        1. mul-1-negN/A

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

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

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

          \[\leadsto y - \color{blue}{\frac{\left(z \cdot \left(y - x\right) + \frac{a \cdot \left(z \cdot \left(y - x\right) - a \cdot \left(y - x\right)\right)}{t}\right) - a \cdot \left(y - x\right)}{t}} \]
      5. Applied rewrites94.7%

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

        \[\leadsto y - \frac{\left(y - x\right) \cdot \left(z - a\right)}{t} \]
      7. Step-by-step derivation
        1. Applied rewrites99.7%

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

      Alternative 3: 87.5% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -6.4 \cdot 10^{+165} \lor \neg \left(t \leq 2.5 \cdot 10^{+179}\right):\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y - x}{a - t}, x\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (or (<= t -6.4e+165) (not (<= t 2.5e+179)))
         (fma (- x y) (/ (- z a) t) y)
         (fma (- z t) (/ (- y x) (- a t)) x)))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if ((t <= -6.4e+165) || !(t <= 2.5e+179)) {
      		tmp = fma((x - y), ((z - a) / t), y);
      	} else {
      		tmp = fma((z - t), ((y - x) / (a - t)), x);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if ((t <= -6.4e+165) || !(t <= 2.5e+179))
      		tmp = fma(Float64(x - y), Float64(Float64(z - a) / t), y);
      	else
      		tmp = fma(Float64(z - t), Float64(Float64(y - x) / Float64(a - t)), x);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -6.4e+165], N[Not[LessEqual[t, 2.5e+179]], $MachinePrecision]], N[(N[(x - y), $MachinePrecision] * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision] + y), $MachinePrecision], N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;t \leq -6.4 \cdot 10^{+165} \lor \neg \left(t \leq 2.5 \cdot 10^{+179}\right):\\
      \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(z - t, \frac{y - x}{a - t}, x\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if t < -6.4e165 or 2.5e179 < t

        1. Initial program 27.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 \color{blue}{y + \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 + \color{blue}{-1 \cdot \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 \color{blue}{\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}} \]
          4. +-commutativeN/A

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

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}\right)\right)} + y \]
          6. distribute-rgt-out--N/A

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - x\right), \frac{z - a}{t}, y\right)} \]
        5. Applied rewrites92.3%

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

        if -6.4e165 < t < 2.5e179

        1. Initial program 77.4%

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

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

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

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y - x}{a - t}, x\right)} \]
          8. lower-/.f6488.6

            \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{\frac{y - x}{a - t}}, x\right) \]
        4. Applied rewrites88.6%

          \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y - x}{a - t}, x\right)} \]
      3. Recombined 2 regimes into one program.
      4. Final simplification89.5%

        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -6.4 \cdot 10^{+165} \lor \neg \left(t \leq 2.5 \cdot 10^{+179}\right):\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y - x}{a - t}, x\right)\\ \end{array} \]
      5. Add Preprocessing

      Alternative 4: 77.9% accurate, 0.8× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -5 \cdot 10^{+65} \lor \neg \left(t \leq 0.175\right):\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{\left(y - x\right) \cdot z}{a - t}\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (or (<= t -5e+65) (not (<= t 0.175)))
         (fma (- x y) (/ (- z a) t) y)
         (+ x (/ (* (- y x) z) (- a t)))))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if ((t <= -5e+65) || !(t <= 0.175)) {
      		tmp = fma((x - y), ((z - a) / t), y);
      	} else {
      		tmp = x + (((y - x) * z) / (a - t));
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if ((t <= -5e+65) || !(t <= 0.175))
      		tmp = fma(Float64(x - y), Float64(Float64(z - a) / t), y);
      	else
      		tmp = Float64(x + Float64(Float64(Float64(y - x) * z) / Float64(a - t)));
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -5e+65], N[Not[LessEqual[t, 0.175]], $MachinePrecision]], N[(N[(x - y), $MachinePrecision] * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision] + y), $MachinePrecision], N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;t \leq -5 \cdot 10^{+65} \lor \neg \left(t \leq 0.175\right):\\
      \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;x + \frac{\left(y - x\right) \cdot z}{a - t}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if t < -4.99999999999999973e65 or 0.17499999999999999 < t

        1. Initial program 36.3%

          \[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 \color{blue}{y + \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 + \color{blue}{-1 \cdot \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 \color{blue}{\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}} \]
          4. +-commutativeN/A

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

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}\right)\right)} + y \]
          6. distribute-rgt-out--N/A

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - x\right), \frac{z - a}{t}, y\right)} \]
        5. Applied rewrites77.3%

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

        if -4.99999999999999973e65 < t < 0.17499999999999999

        1. Initial program 89.6%

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

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

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

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

            \[\leadsto x + \frac{\color{blue}{\left(y - x\right)} \cdot z}{a - t} \]
        5. Applied rewrites81.9%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5 \cdot 10^{+65} \lor \neg \left(t \leq 0.175\right):\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{\left(y - x\right) \cdot z}{a - t}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 5: 74.1% accurate, 0.8× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3.8 \cdot 10^{+65} \lor \neg \left(t \leq 5.8 \cdot 10^{-18}\right):\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - x, \frac{z}{a}, x\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (or (<= t -3.8e+65) (not (<= t 5.8e-18)))
         (fma (- x y) (/ (- z a) t) y)
         (fma (- y x) (/ z a) x)))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if ((t <= -3.8e+65) || !(t <= 5.8e-18)) {
      		tmp = fma((x - y), ((z - a) / t), y);
      	} else {
      		tmp = fma((y - x), (z / a), x);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if ((t <= -3.8e+65) || !(t <= 5.8e-18))
      		tmp = fma(Float64(x - y), Float64(Float64(z - a) / t), y);
      	else
      		tmp = fma(Float64(y - x), Float64(z / a), x);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -3.8e+65], N[Not[LessEqual[t, 5.8e-18]], $MachinePrecision]], N[(N[(x - y), $MachinePrecision] * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision] + y), $MachinePrecision], N[(N[(y - x), $MachinePrecision] * N[(z / a), $MachinePrecision] + x), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;t \leq -3.8 \cdot 10^{+65} \lor \neg \left(t \leq 5.8 \cdot 10^{-18}\right):\\
      \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(y - x, \frac{z}{a}, x\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if t < -3.80000000000000011e65 or 5.8e-18 < t

        1. Initial program 39.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 \color{blue}{y + \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 + \color{blue}{-1 \cdot \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 \color{blue}{\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}} \]
          4. +-commutativeN/A

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

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}\right)\right)} + y \]
          6. distribute-rgt-out--N/A

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - x\right), \frac{z - a}{t}, y\right)} \]
        5. Applied rewrites76.2%

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

        if -3.80000000000000011e65 < t < 5.8e-18

        1. Initial program 89.0%

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

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

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

            \[\leadsto \color{blue}{z \cdot \frac{y - x}{a}} + x \]
          3. *-commutativeN/A

            \[\leadsto \color{blue}{\frac{y - x}{a} \cdot z} + x \]
          4. lower-fma.f64N/A

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - x}{a}}, z, x\right) \]
          6. lower--.f6476.6

            \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - x}}{a}, z, x\right) \]
        5. Applied rewrites76.6%

          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)} \]
        6. Step-by-step derivation
          1. Applied rewrites79.8%

            \[\leadsto \mathsf{fma}\left(y - x, \color{blue}{\frac{z}{a}}, x\right) \]
        7. Recombined 2 regimes into one program.
        8. Final simplification78.1%

          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.8 \cdot 10^{+65} \lor \neg \left(t \leq 5.8 \cdot 10^{-18}\right):\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - x, \frac{z}{a}, x\right)\\ \end{array} \]
        9. Add Preprocessing

        Alternative 6: 69.9% accurate, 0.9× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3.8 \cdot 10^{+65} \lor \neg \left(t \leq 1.65 \cdot 10^{+72}\right):\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z}{t}, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - x, \frac{z}{a}, x\right)\\ \end{array} \end{array} \]
        (FPCore (x y z t a)
         :precision binary64
         (if (or (<= t -3.8e+65) (not (<= t 1.65e+72)))
           (fma (- x y) (/ z t) y)
           (fma (- y x) (/ z a) x)))
        double code(double x, double y, double z, double t, double a) {
        	double tmp;
        	if ((t <= -3.8e+65) || !(t <= 1.65e+72)) {
        		tmp = fma((x - y), (z / t), y);
        	} else {
        		tmp = fma((y - x), (z / a), x);
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a)
        	tmp = 0.0
        	if ((t <= -3.8e+65) || !(t <= 1.65e+72))
        		tmp = fma(Float64(x - y), Float64(z / t), y);
        	else
        		tmp = fma(Float64(y - x), Float64(z / a), x);
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -3.8e+65], N[Not[LessEqual[t, 1.65e+72]], $MachinePrecision]], N[(N[(x - y), $MachinePrecision] * N[(z / t), $MachinePrecision] + y), $MachinePrecision], N[(N[(y - x), $MachinePrecision] * N[(z / a), $MachinePrecision] + x), $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;t \leq -3.8 \cdot 10^{+65} \lor \neg \left(t \leq 1.65 \cdot 10^{+72}\right):\\
        \;\;\;\;\mathsf{fma}\left(x - y, \frac{z}{t}, y\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{fma}\left(y - x, \frac{z}{a}, x\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if t < -3.80000000000000011e65 or 1.65e72 < t

          1. Initial program 35.3%

            \[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 \color{blue}{y + \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 + \color{blue}{-1 \cdot \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 \color{blue}{\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}} \]
            4. +-commutativeN/A

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

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}\right)\right)} + y \]
            6. distribute-rgt-out--N/A

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

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

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

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - x\right), \frac{z - a}{t}, y\right)} \]
          5. Applied rewrites79.7%

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

            \[\leadsto \mathsf{fma}\left(x - y, \frac{z}{\color{blue}{t}}, y\right) \]
          7. Step-by-step derivation
            1. Applied rewrites72.5%

              \[\leadsto \mathsf{fma}\left(x - y, \frac{z}{\color{blue}{t}}, y\right) \]

            if -3.80000000000000011e65 < t < 1.65e72

            1. Initial program 87.0%

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

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

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

                \[\leadsto \color{blue}{z \cdot \frac{y - x}{a}} + x \]
              3. *-commutativeN/A

                \[\leadsto \color{blue}{\frac{y - x}{a} \cdot z} + x \]
              4. lower-fma.f64N/A

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - x}{a}}, z, x\right) \]
              6. lower--.f6473.8

                \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - x}}{a}, z, x\right) \]
            5. Applied rewrites73.8%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)} \]
            6. Step-by-step derivation
              1. Applied rewrites76.6%

                \[\leadsto \mathsf{fma}\left(y - x, \color{blue}{\frac{z}{a}}, x\right) \]
            7. Recombined 2 regimes into one program.
            8. Final simplification74.9%

              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.8 \cdot 10^{+65} \lor \neg \left(t \leq 1.65 \cdot 10^{+72}\right):\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z}{t}, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - x, \frac{z}{a}, x\right)\\ \end{array} \]
            9. Add Preprocessing

            Alternative 7: 66.6% accurate, 0.9× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -8 \cdot 10^{-37} \lor \neg \left(a \leq 5.2 \cdot 10^{+45}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z}{t}, y\right)\\ \end{array} \end{array} \]
            (FPCore (x y z t a)
             :precision binary64
             (if (or (<= a -8e-37) (not (<= a 5.2e+45)))
               (fma (/ y a) z x)
               (fma (- x y) (/ z t) y)))
            double code(double x, double y, double z, double t, double a) {
            	double tmp;
            	if ((a <= -8e-37) || !(a <= 5.2e+45)) {
            		tmp = fma((y / a), z, x);
            	} else {
            		tmp = fma((x - y), (z / t), y);
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a)
            	tmp = 0.0
            	if ((a <= -8e-37) || !(a <= 5.2e+45))
            		tmp = fma(Float64(y / a), z, x);
            	else
            		tmp = fma(Float64(x - y), Float64(z / t), y);
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -8e-37], N[Not[LessEqual[a, 5.2e+45]], $MachinePrecision]], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision], N[(N[(x - y), $MachinePrecision] * N[(z / t), $MachinePrecision] + y), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;a \leq -8 \cdot 10^{-37} \lor \neg \left(a \leq 5.2 \cdot 10^{+45}\right):\\
            \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;\mathsf{fma}\left(x - y, \frac{z}{t}, y\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if a < -8.00000000000000053e-37 or 5.20000000000000014e45 < a

              1. Initial program 66.4%

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

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

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

                  \[\leadsto \color{blue}{z \cdot \frac{y - x}{a}} + x \]
                3. *-commutativeN/A

                  \[\leadsto \color{blue}{\frac{y - x}{a} \cdot z} + x \]
                4. lower-fma.f64N/A

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - x}{a}}, z, x\right) \]
                6. lower--.f6467.2

                  \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - x}}{a}, z, x\right) \]
              5. Applied rewrites67.2%

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

                \[\leadsto \mathsf{fma}\left(\frac{y}{a}, z, x\right) \]
              7. Step-by-step derivation
                1. Applied rewrites60.7%

                  \[\leadsto \mathsf{fma}\left(\frac{y}{a}, z, x\right) \]

                if -8.00000000000000053e-37 < a < 5.20000000000000014e45

                1. Initial program 63.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 \color{blue}{y + \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 + \color{blue}{-1 \cdot \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 \color{blue}{\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}} \]
                  4. +-commutativeN/A

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

                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}\right)\right)} + y \]
                  6. distribute-rgt-out--N/A

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

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

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

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

                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - x\right), \frac{z - a}{t}, y\right)} \]
                5. Applied rewrites76.9%

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

                  \[\leadsto \mathsf{fma}\left(x - y, \frac{z}{\color{blue}{t}}, y\right) \]
                7. Step-by-step derivation
                  1. Applied rewrites75.7%

                    \[\leadsto \mathsf{fma}\left(x - y, \frac{z}{\color{blue}{t}}, y\right) \]
                8. Recombined 2 regimes into one program.
                9. Final simplification68.1%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -8 \cdot 10^{-37} \lor \neg \left(a \leq 5.2 \cdot 10^{+45}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z}{t}, y\right)\\ \end{array} \]
                10. Add Preprocessing

                Alternative 8: 47.5% accurate, 1.0× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.9 \cdot 10^{+162} \lor \neg \left(t \leq 3.9 \cdot 10^{+74}\right):\\ \;\;\;\;x + \frac{y - x}{1}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \end{array} \end{array} \]
                (FPCore (x y z t a)
                 :precision binary64
                 (if (or (<= t -1.9e+162) (not (<= t 3.9e+74)))
                   (+ x (/ (- y x) 1.0))
                   (fma (/ y a) z x)))
                double code(double x, double y, double z, double t, double a) {
                	double tmp;
                	if ((t <= -1.9e+162) || !(t <= 3.9e+74)) {
                		tmp = x + ((y - x) / 1.0);
                	} else {
                		tmp = fma((y / a), z, x);
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a)
                	tmp = 0.0
                	if ((t <= -1.9e+162) || !(t <= 3.9e+74))
                		tmp = Float64(x + Float64(Float64(y - x) / 1.0));
                	else
                		tmp = fma(Float64(y / a), z, x);
                	end
                	return tmp
                end
                
                code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.9e+162], N[Not[LessEqual[t, 3.9e+74]], $MachinePrecision]], N[(x + N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;t \leq -1.9 \cdot 10^{+162} \lor \neg \left(t \leq 3.9 \cdot 10^{+74}\right):\\
                \;\;\;\;x + \frac{y - x}{1}\\
                
                \mathbf{else}:\\
                \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if t < -1.90000000000000012e162 or 3.90000000000000008e74 < t

                  1. Initial program 33.6%

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

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

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

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

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

                      \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                    6. lower-/.f64N/A

                      \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                    7. lower-/.f6471.7

                      \[\leadsto x + \frac{y - x}{\color{blue}{\frac{a - t}{z - t}}} \]
                  4. Applied rewrites71.7%

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

                    \[\leadsto x + \frac{y - x}{\color{blue}{1}} \]
                  6. Step-by-step derivation
                    1. Applied rewrites44.1%

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

                    if -1.90000000000000012e162 < t < 3.90000000000000008e74

                    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 t around 0

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

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

                        \[\leadsto \color{blue}{z \cdot \frac{y - x}{a}} + x \]
                      3. *-commutativeN/A

                        \[\leadsto \color{blue}{\frac{y - x}{a} \cdot z} + x \]
                      4. lower-fma.f64N/A

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

                        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - x}{a}}, z, x\right) \]
                      6. lower--.f6470.5

                        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - x}}{a}, z, x\right) \]
                    5. Applied rewrites70.5%

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

                      \[\leadsto \mathsf{fma}\left(\frac{y}{a}, z, x\right) \]
                    7. Step-by-step derivation
                      1. Applied rewrites58.3%

                        \[\leadsto \mathsf{fma}\left(\frac{y}{a}, z, x\right) \]
                    8. Recombined 2 regimes into one program.
                    9. Final simplification53.1%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.9 \cdot 10^{+162} \lor \neg \left(t \leq 3.9 \cdot 10^{+74}\right):\\ \;\;\;\;x + \frac{y - x}{1}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \end{array} \]
                    10. Add Preprocessing

                    Alternative 9: 39.7% accurate, 1.6× speedup?

                    \[\begin{array}{l} \\ \mathsf{fma}\left(\frac{y}{a}, z, x\right) \end{array} \]
                    (FPCore (x y z t a) :precision binary64 (fma (/ y a) z x))
                    double code(double x, double y, double z, double t, double a) {
                    	return fma((y / a), z, x);
                    }
                    
                    function code(x, y, z, t, a)
                    	return fma(Float64(y / a), z, x)
                    end
                    
                    code[x_, y_, z_, t_, a_] := N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision]
                    
                    \begin{array}{l}
                    
                    \\
                    \mathsf{fma}\left(\frac{y}{a}, z, x\right)
                    \end{array}
                    
                    Derivation
                    1. Initial program 65.0%

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

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

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

                        \[\leadsto \color{blue}{z \cdot \frac{y - x}{a}} + x \]
                      3. *-commutativeN/A

                        \[\leadsto \color{blue}{\frac{y - x}{a} \cdot z} + x \]
                      4. lower-fma.f64N/A

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

                        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - x}{a}}, z, x\right) \]
                      6. lower--.f6449.5

                        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - x}}{a}, z, x\right) \]
                    5. Applied rewrites49.5%

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

                      \[\leadsto \mathsf{fma}\left(\frac{y}{a}, z, x\right) \]
                    7. Step-by-step derivation
                      1. Applied rewrites41.5%

                        \[\leadsto \mathsf{fma}\left(\frac{y}{a}, z, x\right) \]
                      2. Add Preprocessing

                      Alternative 10: 19.2% accurate, 1.7× speedup?

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

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

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

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

                          \[\leadsto \color{blue}{z \cdot \frac{y - x}{a}} + x \]
                        3. *-commutativeN/A

                          \[\leadsto \color{blue}{\frac{y - x}{a} \cdot z} + x \]
                        4. lower-fma.f64N/A

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

                          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - x}{a}}, z, x\right) \]
                        6. lower--.f6449.5

                          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - x}}{a}, z, x\right) \]
                      5. Applied rewrites49.5%

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

                        \[\leadsto \frac{y \cdot z}{\color{blue}{a}} \]
                      7. Step-by-step derivation
                        1. Applied rewrites18.4%

                          \[\leadsto \frac{z \cdot y}{\color{blue}{a}} \]
                        2. Step-by-step derivation
                          1. Applied rewrites20.3%

                            \[\leadsto y \cdot \frac{z}{\color{blue}{a}} \]
                          2. Add Preprocessing

                          Developer Target 1: 86.5% accurate, 0.6× 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 2024313 
                          (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))))