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

Percentage Accurate: 68.7% → 89.3%
Time: 13.4s
Alternatives: 20
Speedup: 0.8×

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));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a)
use fmin_fmax_functions
    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 20 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.7% 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));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a)
use fmin_fmax_functions
    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: 89.3% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x - y}{t} \cdot \left(z - a\right)\\ t_2 := \left(y - x\right) \cdot \frac{\mathsf{fma}\left(-1, z, a\right)}{t}\\ \mathbf{if}\;t \leq -4.5 \cdot 10^{+182}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, \frac{a}{t}, t\_1\right) + y\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+168}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;y + \mathsf{fma}\left(t\_2, \frac{a}{t}, t\_2\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (* (/ (- x y) t) (- z a))) (t_2 (* (- y x) (/ (fma -1.0 z a) t))))
   (if (<= t -4.5e+182)
     (+ (fma t_1 (/ a t) t_1) y)
     (if (<= t 8e+168)
       (fma (/ (- z t) (- a t)) (- y x) x)
       (+ y (fma t_2 (/ a t) t_2))))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = ((x - y) / t) * (z - a);
	double t_2 = (y - x) * (fma(-1.0, z, a) / t);
	double tmp;
	if (t <= -4.5e+182) {
		tmp = fma(t_1, (a / t), t_1) + y;
	} else if (t <= 8e+168) {
		tmp = fma(((z - t) / (a - t)), (y - x), x);
	} else {
		tmp = y + fma(t_2, (a / t), t_2);
	}
	return tmp;
}
function code(x, y, z, t, a)
	t_1 = Float64(Float64(Float64(x - y) / t) * Float64(z - a))
	t_2 = Float64(Float64(y - x) * Float64(fma(-1.0, z, a) / t))
	tmp = 0.0
	if (t <= -4.5e+182)
		tmp = Float64(fma(t_1, Float64(a / t), t_1) + y);
	elseif (t <= 8e+168)
		tmp = fma(Float64(Float64(z - t) / Float64(a - t)), Float64(y - x), x);
	else
		tmp = Float64(y + fma(t_2, Float64(a / t), t_2));
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y - x), $MachinePrecision] * N[(N[(-1.0 * z + a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e+182], N[(N[(t$95$1 * N[(a / t), $MachinePrecision] + t$95$1), $MachinePrecision] + y), $MachinePrecision], If[LessEqual[t, 8e+168], N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], N[(y + N[(t$95$2 * N[(a / t), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

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

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

\mathbf{else}:\\
\;\;\;\;y + \mathsf{fma}\left(t\_2, \frac{a}{t}, t\_2\right)\\


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

    1. Initial program 18.5%

      \[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. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\frac{z - t}{\left(\frac{t}{a} - 1\right) \cdot \color{blue}{\left(\mathsf{neg}\left(a\right)\right)}}, y - x, x\right) \]
      9. lower-neg.f6438.1

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

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

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

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

        \[\leadsto \color{blue}{\left(y + \left(-1 \cdot \frac{z \cdot \left(y - x\right)}{t} + \frac{a \cdot \left(-1 \cdot \left(z \cdot \left(y - x\right)\right) - -1 \cdot \left(a \cdot \left(y - x\right)\right)\right)}{{t}^{2}}\right)\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
      3. Applied rewrites96.9%

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

      if -4.50000000000000029e182 < t < 7.9999999999999995e168

      1. Initial program 81.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. associate-/l*N/A

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

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

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

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

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

      if 7.9999999999999995e168 < t

      1. Initial program 26.0%

        \[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. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\frac{z - t}{\left(\frac{t}{a} - 1\right) \cdot \color{blue}{\left(\mathsf{neg}\left(a\right)\right)}}, y - x, x\right) \]
        9. lower-neg.f6453.9

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

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

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

        \[\leadsto \color{blue}{y + \mathsf{fma}\left(\left(y - x\right) \cdot \frac{\mathsf{fma}\left(-1, z, a\right)}{t}, \frac{a}{t}, \left(y - x\right) \cdot \frac{\mathsf{fma}\left(-1, z, a\right)}{t}\right)} \]
    10. Recombined 3 regimes into one program.
    11. Final simplification91.8%

      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.5 \cdot 10^{+182}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t} \cdot \left(z - a\right), \frac{a}{t}, \frac{x - y}{t} \cdot \left(z - a\right)\right) + y\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+168}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;y + \mathsf{fma}\left(\left(y - x\right) \cdot \frac{\mathsf{fma}\left(-1, z, a\right)}{t}, \frac{a}{t}, \left(y - x\right) \cdot \frac{\mathsf{fma}\left(-1, z, a\right)}{t}\right)\\ \end{array} \]
    12. Add Preprocessing

    Alternative 2: 73.7% 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}\\ t_2 := x + \frac{\left(z - t\right) \cdot y}{a - t}\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+307}:\\ \;\;\;\;\left(z - t\right) \cdot \frac{y}{a - t}\\ \mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-259}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{-288}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+300}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t))))
            (t_2 (+ x (/ (* (- z t) y) (- a t)))))
       (if (<= t_1 -1e+307)
         (* (- z t) (/ y (- a t)))
         (if (<= t_1 -1e-259)
           t_2
           (if (<= t_1 2e-288)
             (fma (/ x t) (- z a) y)
             (if (<= t_1 4e+300) t_2 (fma (/ (- x y) t) z y)))))))
    double code(double x, double y, double z, double t, double a) {
    	double t_1 = x + (((y - x) * (z - t)) / (a - t));
    	double t_2 = x + (((z - t) * y) / (a - t));
    	double tmp;
    	if (t_1 <= -1e+307) {
    		tmp = (z - t) * (y / (a - t));
    	} else if (t_1 <= -1e-259) {
    		tmp = t_2;
    	} else if (t_1 <= 2e-288) {
    		tmp = fma((x / t), (z - a), y);
    	} else if (t_1 <= 4e+300) {
    		tmp = t_2;
    	} else {
    		tmp = fma(((x - y) / t), z, 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)))
    	t_2 = Float64(x + Float64(Float64(Float64(z - t) * y) / Float64(a - t)))
    	tmp = 0.0
    	if (t_1 <= -1e+307)
    		tmp = Float64(Float64(z - t) * Float64(y / Float64(a - t)));
    	elseif (t_1 <= -1e-259)
    		tmp = t_2;
    	elseif (t_1 <= 2e-288)
    		tmp = fma(Float64(x / t), Float64(z - a), y);
    	elseif (t_1 <= 4e+300)
    		tmp = t_2;
    	else
    		tmp = fma(Float64(Float64(x - y) / t), z, y);
    	end
    	return 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]}, Block[{t$95$2 = N[(x + N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+307], N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -1e-259], t$95$2, If[LessEqual[t$95$1, 2e-288], N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision], If[LessEqual[t$95$1, 4e+300], t$95$2, N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * z + y), $MachinePrecision]]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
    t_2 := x + \frac{\left(z - t\right) \cdot y}{a - t}\\
    \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+307}:\\
    \;\;\;\;\left(z - t\right) \cdot \frac{y}{a - t}\\
    
    \mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-259}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{-288}:\\
    \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
    
    \mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+300}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -9.99999999999999986e306

      1. Initial program 33.5%

        \[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. *-commutativeN/A

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

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

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

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

          \[\leadsto \left(z - t\right) \cdot \color{blue}{\frac{y}{a - t}} \]
        6. lower--.f6466.0

          \[\leadsto \left(z - t\right) \cdot \frac{y}{\color{blue}{a - t}} \]
      5. Applied rewrites66.0%

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

      if -9.99999999999999986e306 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.0000000000000001e-259 or 2.00000000000000012e-288 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 4.0000000000000002e300

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

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

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

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

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

      if -1.0000000000000001e-259 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 2.00000000000000012e-288

      1. Initial program 15.5%

        \[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. div-subN/A

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

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

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

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

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

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

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

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

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

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

        1. Initial program 39.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. div-subN/A

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

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

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

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

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

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

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

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

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

            \[\leadsto y + \color{blue}{\frac{z \cdot \left(x + -1 \cdot y\right)}{t}} \]
          3. Step-by-step derivation
            1. Applied rewrites76.9%

              \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, \color{blue}{z}, y\right) \]
          4. Recombined 4 regimes into one program.
          5. Add Preprocessing

          Alternative 3: 89.1% accurate, 0.4× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x - y}{t} \cdot \left(z - a\right)\\ \mathbf{if}\;t \leq -4.5 \cdot 10^{+182} \lor \neg \left(t \leq 1.4 \cdot 10^{+170}\right):\\ \;\;\;\;\mathsf{fma}\left(t\_1, \frac{a}{t}, t\_1\right) + y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (let* ((t_1 (* (/ (- x y) t) (- z a))))
             (if (or (<= t -4.5e+182) (not (<= t 1.4e+170)))
               (+ (fma t_1 (/ a t) t_1) y)
               (fma (/ (- z t) (- a t)) (- y x) x))))
          double code(double x, double y, double z, double t, double a) {
          	double t_1 = ((x - y) / t) * (z - a);
          	double tmp;
          	if ((t <= -4.5e+182) || !(t <= 1.4e+170)) {
          		tmp = fma(t_1, (a / t), t_1) + y;
          	} else {
          		tmp = fma(((z - t) / (a - t)), (y - x), x);
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a)
          	t_1 = Float64(Float64(Float64(x - y) / t) * Float64(z - a))
          	tmp = 0.0
          	if ((t <= -4.5e+182) || !(t <= 1.4e+170))
          		tmp = Float64(fma(t_1, Float64(a / t), t_1) + y);
          	else
          		tmp = fma(Float64(Float64(z - t) / Float64(a - t)), Float64(y - x), x);
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t, -4.5e+182], N[Not[LessEqual[t, 1.4e+170]], $MachinePrecision]], N[(N[(t$95$1 * N[(a / t), $MachinePrecision] + t$95$1), $MachinePrecision] + y), $MachinePrecision], N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \frac{x - y}{t} \cdot \left(z - a\right)\\
          \mathbf{if}\;t \leq -4.5 \cdot 10^{+182} \lor \neg \left(t \leq 1.4 \cdot 10^{+170}\right):\\
          \;\;\;\;\mathsf{fma}\left(t\_1, \frac{a}{t}, t\_1\right) + y\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if t < -4.50000000000000029e182 or 1.40000000000000008e170 < t

            1. Initial program 21.5%

              \[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. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -4.50000000000000029e182 < t < 1.40000000000000008e170

              1. Initial program 81.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. associate-/l*N/A

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

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

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

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

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

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

            Alternative 4: 45.5% accurate, 0.7× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{if}\;a \leq -4.2 \cdot 10^{+117}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -6.4 \cdot 10^{-276}:\\ \;\;\;\;\frac{x - y}{t} \cdot z\\ \mathbf{elif}\;a \leq 8.8 \cdot 10^{-274}:\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{elif}\;a \leq 4.6 \cdot 10^{-77}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{z}{t}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a)
             :precision binary64
             (let* ((t_1 (fma (/ y a) z x)))
               (if (<= a -4.2e+117)
                 t_1
                 (if (<= a -6.4e-276)
                   (* (/ (- x y) t) z)
                   (if (<= a 8.8e-274)
                     (fma 1.0 (- y x) x)
                     (if (<= a 4.6e-77) (* (- x y) (/ z t)) t_1))))))
            double code(double x, double y, double z, double t, double a) {
            	double t_1 = fma((y / a), z, x);
            	double tmp;
            	if (a <= -4.2e+117) {
            		tmp = t_1;
            	} else if (a <= -6.4e-276) {
            		tmp = ((x - y) / t) * z;
            	} else if (a <= 8.8e-274) {
            		tmp = fma(1.0, (y - x), x);
            	} else if (a <= 4.6e-77) {
            		tmp = (x - y) * (z / t);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a)
            	t_1 = fma(Float64(y / a), z, x)
            	tmp = 0.0
            	if (a <= -4.2e+117)
            		tmp = t_1;
            	elseif (a <= -6.4e-276)
            		tmp = Float64(Float64(Float64(x - y) / t) * z);
            	elseif (a <= 8.8e-274)
            		tmp = fma(1.0, Float64(y - x), x);
            	elseif (a <= 4.6e-77)
            		tmp = Float64(Float64(x - y) * Float64(z / t));
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision]}, If[LessEqual[a, -4.2e+117], t$95$1, If[LessEqual[a, -6.4e-276], N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[a, 8.8e-274], N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[a, 4.6e-77], N[(N[(x - y), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
            \mathbf{if}\;a \leq -4.2 \cdot 10^{+117}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;a \leq -6.4 \cdot 10^{-276}:\\
            \;\;\;\;\frac{x - y}{t} \cdot z\\
            
            \mathbf{elif}\;a \leq 8.8 \cdot 10^{-274}:\\
            \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\
            
            \mathbf{elif}\;a \leq 4.6 \cdot 10^{-77}:\\
            \;\;\;\;\left(x - y\right) \cdot \frac{z}{t}\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 4 regimes
            2. if a < -4.2000000000000002e117 or 4.59999999999999997e-77 < a

              1. Initial program 65.1%

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

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

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

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

                if -4.2000000000000002e117 < a < -6.3999999999999998e-276

                1. Initial program 67.4%

                  \[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. div-subN/A

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

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

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

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

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

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

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

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

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

                    \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \frac{y}{t} + \frac{x}{t}\right)} \]
                  3. Step-by-step derivation
                    1. Applied rewrites43.5%

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

                    if -6.3999999999999998e-276 < a < 8.7999999999999998e-274

                    1. Initial program 65.5%

                      \[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. associate-/l*N/A

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

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

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

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

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

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

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

                      if 8.7999999999999998e-274 < a < 4.59999999999999997e-77

                      1. Initial program 69.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}{\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. div-subN/A

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

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

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

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

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

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

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

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

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

                          \[\leadsto \frac{\left(x + -1 \cdot y\right) \cdot \left(z - a\right)}{\color{blue}{t}} \]
                        3. Step-by-step derivation
                          1. Applied rewrites57.3%

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

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

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

                          Alternative 5: 89.3% accurate, 0.7× speedup?

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

                            1. Initial program 23.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 \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. div-subN/A

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

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

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

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

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

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

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

                            if -1.94999999999999985e157 < t < 1.40000000000000008e170

                            1. Initial program 82.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. associate-/l*N/A

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

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

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

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

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

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

                          Alternative 6: 75.7% accurate, 0.7× speedup?

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

                            1. Initial program 53.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. div-subN/A

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

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

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

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

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

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

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

                            if -2.8000000000000002e-29 < t < 5.4000000000000004e-63

                            1. Initial program 90.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 x + \color{blue}{\frac{\left(y - x\right) \cdot \left(z - t\right)}{a}} \]
                            4. Step-by-step derivation
                              1. associate-/l*N/A

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

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

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

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

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

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

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

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

                          Alternative 7: 67.7% accurate, 0.7× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \mathbf{if}\;t \leq -6700000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -4.2 \cdot 10^{-185}:\\ \;\;\;\;\frac{\left(z - t\right) \cdot y}{a - t}\\ \mathbf{elif}\;t \leq 2.15 \cdot 10^{+57}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                          (FPCore (x y z t a)
                           :precision binary64
                           (let* ((t_1 (fma (/ x t) (- z a) y)))
                             (if (<= t -6700000000.0)
                               t_1
                               (if (<= t -4.2e-185)
                                 (/ (* (- z t) y) (- a t))
                                 (if (<= t 2.15e+57) (fma (/ z a) (- y x) x) t_1)))))
                          double code(double x, double y, double z, double t, double a) {
                          	double t_1 = fma((x / t), (z - a), y);
                          	double tmp;
                          	if (t <= -6700000000.0) {
                          		tmp = t_1;
                          	} else if (t <= -4.2e-185) {
                          		tmp = ((z - t) * y) / (a - t);
                          	} else if (t <= 2.15e+57) {
                          		tmp = fma((z / a), (y - x), x);
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z, t, a)
                          	t_1 = fma(Float64(x / t), Float64(z - a), y)
                          	tmp = 0.0
                          	if (t <= -6700000000.0)
                          		tmp = t_1;
                          	elseif (t <= -4.2e-185)
                          		tmp = Float64(Float64(Float64(z - t) * y) / Float64(a - t));
                          	elseif (t <= 2.15e+57)
                          		tmp = fma(Float64(z / a), Float64(y - x), x);
                          	else
                          		tmp = t_1;
                          	end
                          	return tmp
                          end
                          
                          code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[t, -6700000000.0], t$95$1, If[LessEqual[t, -4.2e-185], N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.15e+57], N[(N[(z / a), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := \mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
                          \mathbf{if}\;t \leq -6700000000:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;t \leq -4.2 \cdot 10^{-185}:\\
                          \;\;\;\;\frac{\left(z - t\right) \cdot y}{a - t}\\
                          
                          \mathbf{elif}\;t \leq 2.15 \cdot 10^{+57}:\\
                          \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if t < -6.7e9 or 2.15000000000000016e57 < t

                            1. Initial program 45.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}{\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. div-subN/A

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

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

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

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

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

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

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

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

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

                              if -6.7e9 < t < -4.2e-185

                              1. Initial program 87.3%

                                \[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. associate-/l*N/A

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{\left(z - t\right)} \cdot y}{a - t} \]
                                5. lower--.f6464.2

                                  \[\leadsto \frac{\left(z - t\right) \cdot y}{\color{blue}{a - t}} \]
                              7. Applied rewrites64.2%

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

                              if -4.2e-185 < t < 2.15000000000000016e57

                              1. Initial program 89.1%

                                \[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. associate-/l*N/A

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

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

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

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

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

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

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

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

                              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -6700000000:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \mathbf{elif}\;t \leq -4.2 \cdot 10^{-185}:\\ \;\;\;\;\frac{\left(z - t\right) \cdot y}{a - t}\\ \mathbf{elif}\;t \leq 2.15 \cdot 10^{+57}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \end{array} \]
                            10. Add Preprocessing

                            Alternative 8: 68.0% accurate, 0.7× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \mathbf{if}\;t \leq -1.95 \cdot 10^{+133}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -3.8 \cdot 10^{-172}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \mathbf{elif}\;t \leq 2.15 \cdot 10^{+57}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (x y z t a)
                             :precision binary64
                             (let* ((t_1 (fma (/ x t) (- z a) y)))
                               (if (<= t -1.95e+133)
                                 t_1
                                 (if (<= t -3.8e-172)
                                   (fma (/ (- x y) t) z y)
                                   (if (<= t 2.15e+57) (fma (/ z a) (- y x) x) t_1)))))
                            double code(double x, double y, double z, double t, double a) {
                            	double t_1 = fma((x / t), (z - a), y);
                            	double tmp;
                            	if (t <= -1.95e+133) {
                            		tmp = t_1;
                            	} else if (t <= -3.8e-172) {
                            		tmp = fma(((x - y) / t), z, y);
                            	} else if (t <= 2.15e+57) {
                            		tmp = fma((z / a), (y - x), x);
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y, z, t, a)
                            	t_1 = fma(Float64(x / t), Float64(z - a), y)
                            	tmp = 0.0
                            	if (t <= -1.95e+133)
                            		tmp = t_1;
                            	elseif (t <= -3.8e-172)
                            		tmp = fma(Float64(Float64(x - y) / t), z, y);
                            	elseif (t <= 2.15e+57)
                            		tmp = fma(Float64(z / a), Float64(y - x), x);
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[t, -1.95e+133], t$95$1, If[LessEqual[t, -3.8e-172], N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * z + y), $MachinePrecision], If[LessEqual[t, 2.15e+57], N[(N[(z / a), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := \mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
                            \mathbf{if}\;t \leq -1.95 \cdot 10^{+133}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;t \leq -3.8 \cdot 10^{-172}:\\
                            \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\
                            
                            \mathbf{elif}\;t \leq 2.15 \cdot 10^{+57}:\\
                            \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 3 regimes
                            2. if t < -1.95000000000000007e133 or 2.15000000000000016e57 < t

                              1. Initial program 40.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 \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. div-subN/A

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

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

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

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

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

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

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

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

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

                                if -1.95000000000000007e133 < t < -3.79999999999999987e-172

                                1. Initial program 77.4%

                                  \[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. div-subN/A

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

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

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

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

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

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

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

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

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

                                    \[\leadsto y + \color{blue}{\frac{z \cdot \left(x + -1 \cdot y\right)}{t}} \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites58.0%

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

                                    if -3.79999999999999987e-172 < t < 2.15000000000000016e57

                                    1. Initial program 89.3%

                                      \[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. associate-/l*N/A

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

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

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

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

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

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

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

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

                                  Alternative 9: 66.6% accurate, 0.7× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \mathbf{if}\;t \leq -1.95 \cdot 10^{+133}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -3.2 \cdot 10^{-176}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \mathbf{elif}\;t \leq 2.15 \cdot 10^{+57}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a)
                                   :precision binary64
                                   (let* ((t_1 (fma (/ x t) (- z a) y)))
                                     (if (<= t -1.95e+133)
                                       t_1
                                       (if (<= t -3.2e-176)
                                         (fma (/ (- x y) t) z y)
                                         (if (<= t 2.15e+57) (fma (/ (- y x) a) z x) t_1)))))
                                  double code(double x, double y, double z, double t, double a) {
                                  	double t_1 = fma((x / t), (z - a), y);
                                  	double tmp;
                                  	if (t <= -1.95e+133) {
                                  		tmp = t_1;
                                  	} else if (t <= -3.2e-176) {
                                  		tmp = fma(((x - y) / t), z, y);
                                  	} else if (t <= 2.15e+57) {
                                  		tmp = fma(((y - x) / a), z, x);
                                  	} else {
                                  		tmp = t_1;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(x, y, z, t, a)
                                  	t_1 = fma(Float64(x / t), Float64(z - a), y)
                                  	tmp = 0.0
                                  	if (t <= -1.95e+133)
                                  		tmp = t_1;
                                  	elseif (t <= -3.2e-176)
                                  		tmp = fma(Float64(Float64(x - y) / t), z, y);
                                  	elseif (t <= 2.15e+57)
                                  		tmp = fma(Float64(Float64(y - x) / a), z, x);
                                  	else
                                  		tmp = t_1;
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[t, -1.95e+133], t$95$1, If[LessEqual[t, -3.2e-176], N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * z + y), $MachinePrecision], If[LessEqual[t, 2.15e+57], N[(N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision] * z + x), $MachinePrecision], t$95$1]]]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  t_1 := \mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
                                  \mathbf{if}\;t \leq -1.95 \cdot 10^{+133}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  \mathbf{elif}\;t \leq -3.2 \cdot 10^{-176}:\\
                                  \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\
                                  
                                  \mathbf{elif}\;t \leq 2.15 \cdot 10^{+57}:\\
                                  \;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 3 regimes
                                  2. if t < -1.95000000000000007e133 or 2.15000000000000016e57 < t

                                    1. Initial program 40.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 \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. div-subN/A

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

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

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

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

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

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

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

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

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

                                      if -1.95000000000000007e133 < t < -3.19999999999999985e-176

                                      1. Initial program 77.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. div-subN/A

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

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

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

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

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

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

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

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

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

                                          \[\leadsto y + \color{blue}{\frac{z \cdot \left(x + -1 \cdot y\right)}{t}} \]
                                        3. Step-by-step derivation
                                          1. Applied rewrites56.9%

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

                                          if -3.19999999999999985e-176 < t < 2.15000000000000016e57

                                          1. Initial program 89.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--.f6475.9

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

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

                                        Alternative 10: 66.6% accurate, 0.7× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\ \mathbf{if}\;a \leq -6.2 \cdot 10^{+117}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -2.8 \cdot 10^{-186}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \mathbf{elif}\;a \leq 4 \cdot 10^{+51}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a)
                                         :precision binary64
                                         (let* ((t_1 (fma (- z t) (/ y a) x)))
                                           (if (<= a -6.2e+117)
                                             t_1
                                             (if (<= a -2.8e-186)
                                               (fma (/ x t) (- z a) y)
                                               (if (<= a 4e+51) (fma (/ (- x y) t) z y) t_1)))))
                                        double code(double x, double y, double z, double t, double a) {
                                        	double t_1 = fma((z - t), (y / a), x);
                                        	double tmp;
                                        	if (a <= -6.2e+117) {
                                        		tmp = t_1;
                                        	} else if (a <= -2.8e-186) {
                                        		tmp = fma((x / t), (z - a), y);
                                        	} else if (a <= 4e+51) {
                                        		tmp = fma(((x - y) / t), z, y);
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a)
                                        	t_1 = fma(Float64(z - t), Float64(y / a), x)
                                        	tmp = 0.0
                                        	if (a <= -6.2e+117)
                                        		tmp = t_1;
                                        	elseif (a <= -2.8e-186)
                                        		tmp = fma(Float64(x / t), Float64(z - a), y);
                                        	elseif (a <= 4e+51)
                                        		tmp = fma(Float64(Float64(x - y) / t), z, y);
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -6.2e+117], t$95$1, If[LessEqual[a, -2.8e-186], N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision], If[LessEqual[a, 4e+51], N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * z + y), $MachinePrecision], t$95$1]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\
                                        \mathbf{if}\;a \leq -6.2 \cdot 10^{+117}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;a \leq -2.8 \cdot 10^{-186}:\\
                                        \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
                                        
                                        \mathbf{elif}\;a \leq 4 \cdot 10^{+51}:\\
                                        \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if a < -6.1999999999999995e117 or 4e51 < a

                                          1. Initial program 66.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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

                                            if -6.1999999999999995e117 < a < -2.79999999999999983e-186

                                            1. Initial program 65.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. div-subN/A

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

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

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

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

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

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

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

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

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

                                              if -2.79999999999999983e-186 < a < 4e51

                                              1. Initial program 66.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. div-subN/A

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto y + \color{blue}{\frac{z \cdot \left(x + -1 \cdot y\right)}{t}} \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites72.2%

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

                                                Alternative 11: 61.5% accurate, 0.7× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \mathbf{if}\;t \leq -1.95 \cdot 10^{+133}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -3.2 \cdot 10^{-172}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \mathbf{elif}\;t \leq 2.55 \cdot 10^{-64}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a)
                                                 :precision binary64
                                                 (let* ((t_1 (fma (/ x t) (- z a) y)))
                                                   (if (<= t -1.95e+133)
                                                     t_1
                                                     (if (<= t -3.2e-172)
                                                       (fma (/ (- x y) t) z y)
                                                       (if (<= t 2.55e-64) (fma (/ y a) z x) t_1)))))
                                                double code(double x, double y, double z, double t, double a) {
                                                	double t_1 = fma((x / t), (z - a), y);
                                                	double tmp;
                                                	if (t <= -1.95e+133) {
                                                		tmp = t_1;
                                                	} else if (t <= -3.2e-172) {
                                                		tmp = fma(((x - y) / t), z, y);
                                                	} else if (t <= 2.55e-64) {
                                                		tmp = fma((y / a), z, x);
                                                	} else {
                                                		tmp = t_1;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                function code(x, y, z, t, a)
                                                	t_1 = fma(Float64(x / t), Float64(z - a), y)
                                                	tmp = 0.0
                                                	if (t <= -1.95e+133)
                                                		tmp = t_1;
                                                	elseif (t <= -3.2e-172)
                                                		tmp = fma(Float64(Float64(x - y) / t), z, y);
                                                	elseif (t <= 2.55e-64)
                                                		tmp = fma(Float64(y / a), z, x);
                                                	else
                                                		tmp = t_1;
                                                	end
                                                	return tmp
                                                end
                                                
                                                code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[t, -1.95e+133], t$95$1, If[LessEqual[t, -3.2e-172], N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * z + y), $MachinePrecision], If[LessEqual[t, 2.55e-64], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision], t$95$1]]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                t_1 := \mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
                                                \mathbf{if}\;t \leq -1.95 \cdot 10^{+133}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{elif}\;t \leq -3.2 \cdot 10^{-172}:\\
                                                \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\
                                                
                                                \mathbf{elif}\;t \leq 2.55 \cdot 10^{-64}:\\
                                                \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if t < -1.95000000000000007e133 or 2.54999999999999992e-64 < t

                                                  1. Initial program 48.5%

                                                    \[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. div-subN/A

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

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

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

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

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

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

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

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

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

                                                    if -1.95000000000000007e133 < t < -3.2000000000000001e-172

                                                    1. Initial program 77.4%

                                                      \[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. div-subN/A

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto y + \color{blue}{\frac{z \cdot \left(x + -1 \cdot y\right)}{t}} \]
                                                      3. Step-by-step derivation
                                                        1. Applied rewrites58.0%

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

                                                        if -3.2000000000000001e-172 < t < 2.54999999999999992e-64

                                                        1. Initial program 90.9%

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

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

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

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

                                                        Alternative 12: 54.3% accurate, 0.7× speedup?

                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -9.2 \cdot 10^{+191}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, -a, y\right)\\ \mathbf{elif}\;t \leq -5.2 \cdot 10^{-54}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{z}{t}\\ \mathbf{elif}\;t \leq 3.25 \cdot 10^{+100}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - x, \frac{a}{t}, y\right)\\ \end{array} \end{array} \]
                                                        (FPCore (x y z t a)
                                                         :precision binary64
                                                         (if (<= t -9.2e+191)
                                                           (fma (/ x t) (- a) y)
                                                           (if (<= t -5.2e-54)
                                                             (* (- x y) (/ z t))
                                                             (if (<= t 3.25e+100) (fma (/ y a) z x) (fma (- y x) (/ a t) y)))))
                                                        double code(double x, double y, double z, double t, double a) {
                                                        	double tmp;
                                                        	if (t <= -9.2e+191) {
                                                        		tmp = fma((x / t), -a, y);
                                                        	} else if (t <= -5.2e-54) {
                                                        		tmp = (x - y) * (z / t);
                                                        	} else if (t <= 3.25e+100) {
                                                        		tmp = fma((y / a), z, x);
                                                        	} else {
                                                        		tmp = fma((y - x), (a / t), y);
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        function code(x, y, z, t, a)
                                                        	tmp = 0.0
                                                        	if (t <= -9.2e+191)
                                                        		tmp = fma(Float64(x / t), Float64(-a), y);
                                                        	elseif (t <= -5.2e-54)
                                                        		tmp = Float64(Float64(x - y) * Float64(z / t));
                                                        	elseif (t <= 3.25e+100)
                                                        		tmp = fma(Float64(y / a), z, x);
                                                        	else
                                                        		tmp = fma(Float64(y - x), Float64(a / t), y);
                                                        	end
                                                        	return tmp
                                                        end
                                                        
                                                        code[x_, y_, z_, t_, a_] := If[LessEqual[t, -9.2e+191], N[(N[(x / t), $MachinePrecision] * (-a) + y), $MachinePrecision], If[LessEqual[t, -5.2e-54], N[(N[(x - y), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.25e+100], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision], N[(N[(y - x), $MachinePrecision] * N[(a / t), $MachinePrecision] + y), $MachinePrecision]]]]
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        \begin{array}{l}
                                                        \mathbf{if}\;t \leq -9.2 \cdot 10^{+191}:\\
                                                        \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, -a, y\right)\\
                                                        
                                                        \mathbf{elif}\;t \leq -5.2 \cdot 10^{-54}:\\
                                                        \;\;\;\;\left(x - y\right) \cdot \frac{z}{t}\\
                                                        
                                                        \mathbf{elif}\;t \leq 3.25 \cdot 10^{+100}:\\
                                                        \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;\mathsf{fma}\left(y - x, \frac{a}{t}, y\right)\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 4 regimes
                                                        2. if t < -9.1999999999999997e191

                                                          1. Initial program 17.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. div-subN/A

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

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

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

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

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

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

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

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

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

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

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

                                                              if -9.1999999999999997e191 < t < -5.20000000000000004e-54

                                                              1. Initial program 66.5%

                                                                \[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. div-subN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                    if -5.20000000000000004e-54 < t < 3.25e100

                                                                    1. Initial program 87.5%

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

                                                                        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - x}}{a}, z, x\right) \]
                                                                    5. Applied rewrites67.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 rewrites57.7%

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

                                                                      if 3.25e100 < t

                                                                      1. Initial program 39.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}{\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. div-subN/A

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

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

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

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

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

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

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

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

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

                                                                          \[\leadsto \frac{\left(x + -1 \cdot y\right) \cdot \left(z - a\right)}{\color{blue}{t}} \]
                                                                        3. Step-by-step derivation
                                                                          1. Applied rewrites22.4%

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

                                                                            \[\leadsto y + \color{blue}{-1 \cdot \frac{a \cdot \left(x + -1 \cdot y\right)}{t}} \]
                                                                          3. Step-by-step derivation
                                                                            1. Applied rewrites64.3%

                                                                              \[\leadsto \mathsf{fma}\left(y - x, \color{blue}{\frac{a}{t}}, y\right) \]
                                                                          4. Recombined 4 regimes into one program.
                                                                          5. Add Preprocessing

                                                                          Alternative 13: 72.9% accurate, 0.8× speedup?

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

                                                                            1. Initial program 45.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}{\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. div-subN/A

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

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

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

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

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

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

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

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

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

                                                                              if -7.5e9 < t < 4.99999999999999972e57

                                                                              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 x + \color{blue}{\frac{\left(y - x\right) \cdot \left(z - t\right)}{a}} \]
                                                                              4. Step-by-step derivation
                                                                                1. associate-/l*N/A

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

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

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

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

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

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

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

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

                                                                            Alternative 14: 54.3% accurate, 0.8× speedup?

                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{x}{t}, -a, y\right)\\ \mathbf{if}\;t \leq -9.2 \cdot 10^{+191}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -5.2 \cdot 10^{-54}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{z}{t}\\ \mathbf{elif}\;t \leq 3.25 \cdot 10^{+100}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                            (FPCore (x y z t a)
                                                                             :precision binary64
                                                                             (let* ((t_1 (fma (/ x t) (- a) y)))
                                                                               (if (<= t -9.2e+191)
                                                                                 t_1
                                                                                 (if (<= t -5.2e-54)
                                                                                   (* (- x y) (/ z t))
                                                                                   (if (<= t 3.25e+100) (fma (/ y a) z x) t_1)))))
                                                                            double code(double x, double y, double z, double t, double a) {
                                                                            	double t_1 = fma((x / t), -a, y);
                                                                            	double tmp;
                                                                            	if (t <= -9.2e+191) {
                                                                            		tmp = t_1;
                                                                            	} else if (t <= -5.2e-54) {
                                                                            		tmp = (x - y) * (z / t);
                                                                            	} else if (t <= 3.25e+100) {
                                                                            		tmp = fma((y / a), z, x);
                                                                            	} else {
                                                                            		tmp = t_1;
                                                                            	}
                                                                            	return tmp;
                                                                            }
                                                                            
                                                                            function code(x, y, z, t, a)
                                                                            	t_1 = fma(Float64(x / t), Float64(-a), y)
                                                                            	tmp = 0.0
                                                                            	if (t <= -9.2e+191)
                                                                            		tmp = t_1;
                                                                            	elseif (t <= -5.2e-54)
                                                                            		tmp = Float64(Float64(x - y) * Float64(z / t));
                                                                            	elseif (t <= 3.25e+100)
                                                                            		tmp = fma(Float64(y / a), z, x);
                                                                            	else
                                                                            		tmp = t_1;
                                                                            	end
                                                                            	return tmp
                                                                            end
                                                                            
                                                                            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x / t), $MachinePrecision] * (-a) + y), $MachinePrecision]}, If[LessEqual[t, -9.2e+191], t$95$1, If[LessEqual[t, -5.2e-54], N[(N[(x - y), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.25e+100], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision], t$95$1]]]]
                                                                            
                                                                            \begin{array}{l}
                                                                            
                                                                            \\
                                                                            \begin{array}{l}
                                                                            t_1 := \mathsf{fma}\left(\frac{x}{t}, -a, y\right)\\
                                                                            \mathbf{if}\;t \leq -9.2 \cdot 10^{+191}:\\
                                                                            \;\;\;\;t\_1\\
                                                                            
                                                                            \mathbf{elif}\;t \leq -5.2 \cdot 10^{-54}:\\
                                                                            \;\;\;\;\left(x - y\right) \cdot \frac{z}{t}\\
                                                                            
                                                                            \mathbf{elif}\;t \leq 3.25 \cdot 10^{+100}:\\
                                                                            \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
                                                                            
                                                                            \mathbf{else}:\\
                                                                            \;\;\;\;t\_1\\
                                                                            
                                                                            
                                                                            \end{array}
                                                                            \end{array}
                                                                            
                                                                            Derivation
                                                                            1. Split input into 3 regimes
                                                                            2. if t < -9.1999999999999997e191 or 3.25e100 < t

                                                                              1. Initial program 29.0%

                                                                                \[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. div-subN/A

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

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

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

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

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

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

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

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

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

                                                                                  \[\leadsto \mathsf{fma}\left(\frac{x}{t}, -1 \cdot \color{blue}{a}, y\right) \]
                                                                                3. Step-by-step derivation
                                                                                  1. Applied rewrites66.2%

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

                                                                                  if -9.1999999999999997e191 < t < -5.20000000000000004e-54

                                                                                  1. Initial program 66.5%

                                                                                    \[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. div-subN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                        if -5.20000000000000004e-54 < t < 3.25e100

                                                                                        1. Initial program 87.5%

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

                                                                                            \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - x}}{a}, z, x\right) \]
                                                                                        5. Applied rewrites67.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 rewrites57.7%

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

                                                                                        Alternative 15: 47.4% accurate, 0.8× speedup?

                                                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{if}\;t \leq -1.35 \cdot 10^{+207}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -5.2 \cdot 10^{-54}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{z}{t}\\ \mathbf{elif}\;t \leq 4.5 \cdot 10^{+170}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                        (FPCore (x y z t a)
                                                                                         :precision binary64
                                                                                         (let* ((t_1 (fma 1.0 (- y x) x)))
                                                                                           (if (<= t -1.35e+207)
                                                                                             t_1
                                                                                             (if (<= t -5.2e-54)
                                                                                               (* (- x y) (/ z t))
                                                                                               (if (<= t 4.5e+170) (fma (/ y a) z x) t_1)))))
                                                                                        double code(double x, double y, double z, double t, double a) {
                                                                                        	double t_1 = fma(1.0, (y - x), x);
                                                                                        	double tmp;
                                                                                        	if (t <= -1.35e+207) {
                                                                                        		tmp = t_1;
                                                                                        	} else if (t <= -5.2e-54) {
                                                                                        		tmp = (x - y) * (z / t);
                                                                                        	} else if (t <= 4.5e+170) {
                                                                                        		tmp = fma((y / a), z, x);
                                                                                        	} else {
                                                                                        		tmp = t_1;
                                                                                        	}
                                                                                        	return tmp;
                                                                                        }
                                                                                        
                                                                                        function code(x, y, z, t, a)
                                                                                        	t_1 = fma(1.0, Float64(y - x), x)
                                                                                        	tmp = 0.0
                                                                                        	if (t <= -1.35e+207)
                                                                                        		tmp = t_1;
                                                                                        	elseif (t <= -5.2e-54)
                                                                                        		tmp = Float64(Float64(x - y) * Float64(z / t));
                                                                                        	elseif (t <= 4.5e+170)
                                                                                        		tmp = fma(Float64(y / a), z, x);
                                                                                        	else
                                                                                        		tmp = t_1;
                                                                                        	end
                                                                                        	return tmp
                                                                                        end
                                                                                        
                                                                                        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -1.35e+207], t$95$1, If[LessEqual[t, -5.2e-54], N[(N[(x - y), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e+170], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision], t$95$1]]]]
                                                                                        
                                                                                        \begin{array}{l}
                                                                                        
                                                                                        \\
                                                                                        \begin{array}{l}
                                                                                        t_1 := \mathsf{fma}\left(1, y - x, x\right)\\
                                                                                        \mathbf{if}\;t \leq -1.35 \cdot 10^{+207}:\\
                                                                                        \;\;\;\;t\_1\\
                                                                                        
                                                                                        \mathbf{elif}\;t \leq -5.2 \cdot 10^{-54}:\\
                                                                                        \;\;\;\;\left(x - y\right) \cdot \frac{z}{t}\\
                                                                                        
                                                                                        \mathbf{elif}\;t \leq 4.5 \cdot 10^{+170}:\\
                                                                                        \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
                                                                                        
                                                                                        \mathbf{else}:\\
                                                                                        \;\;\;\;t\_1\\
                                                                                        
                                                                                        
                                                                                        \end{array}
                                                                                        \end{array}
                                                                                        
                                                                                        Derivation
                                                                                        1. Split input into 3 regimes
                                                                                        2. if t < -1.35000000000000012e207 or 4.50000000000000022e170 < t

                                                                                          1. Initial program 22.2%

                                                                                            \[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. associate-/l*N/A

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

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

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

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

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

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

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

                                                                                            if -1.35000000000000012e207 < t < -5.20000000000000004e-54

                                                                                            1. Initial program 64.4%

                                                                                              \[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. div-subN/A

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

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

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

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

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

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

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

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

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

                                                                                                \[\leadsto \frac{\left(x + -1 \cdot y\right) \cdot \left(z - a\right)}{\color{blue}{t}} \]
                                                                                              3. Step-by-step derivation
                                                                                                1. Applied rewrites48.9%

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

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

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

                                                                                                  if -5.20000000000000004e-54 < t < 4.50000000000000022e170

                                                                                                  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 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--.f6463.9

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

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

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

                                                                                                  Alternative 16: 61.4% accurate, 0.9× speedup?

                                                                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3.2 \cdot 10^{-172} \lor \neg \left(t \leq 5.6 \cdot 10^{-65}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \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 -3.2e-172) (not (<= t 5.6e-65)))
                                                                                                     (fma (/ (- x y) t) z y)
                                                                                                     (fma (/ y a) z x)))
                                                                                                  double code(double x, double y, double z, double t, double a) {
                                                                                                  	double tmp;
                                                                                                  	if ((t <= -3.2e-172) || !(t <= 5.6e-65)) {
                                                                                                  		tmp = fma(((x - y) / t), z, y);
                                                                                                  	} else {
                                                                                                  		tmp = fma((y / a), z, x);
                                                                                                  	}
                                                                                                  	return tmp;
                                                                                                  }
                                                                                                  
                                                                                                  function code(x, y, z, t, a)
                                                                                                  	tmp = 0.0
                                                                                                  	if ((t <= -3.2e-172) || !(t <= 5.6e-65))
                                                                                                  		tmp = fma(Float64(Float64(x - y) / t), z, y);
                                                                                                  	else
                                                                                                  		tmp = fma(Float64(y / a), z, x);
                                                                                                  	end
                                                                                                  	return tmp
                                                                                                  end
                                                                                                  
                                                                                                  code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -3.2e-172], N[Not[LessEqual[t, 5.6e-65]], $MachinePrecision]], N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * z + y), $MachinePrecision], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision]]
                                                                                                  
                                                                                                  \begin{array}{l}
                                                                                                  
                                                                                                  \\
                                                                                                  \begin{array}{l}
                                                                                                  \mathbf{if}\;t \leq -3.2 \cdot 10^{-172} \lor \neg \left(t \leq 5.6 \cdot 10^{-65}\right):\\
                                                                                                  \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\
                                                                                                  
                                                                                                  \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 < -3.2000000000000001e-172 or 5.6000000000000001e-65 < t

                                                                                                    1. Initial program 56.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. div-subN/A

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

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

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

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

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

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

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

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

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

                                                                                                        \[\leadsto y + \color{blue}{\frac{z \cdot \left(x + -1 \cdot y\right)}{t}} \]
                                                                                                      3. Step-by-step derivation
                                                                                                        1. Applied rewrites63.2%

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

                                                                                                        if -3.2000000000000001e-172 < t < 5.6000000000000001e-65

                                                                                                        1. Initial program 90.9%

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

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

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

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

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

                                                                                                        Alternative 17: 47.6% accurate, 1.0× speedup?

                                                                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.6 \cdot 10^{+78} \lor \neg \left(t \leq 4.5 \cdot 10^{+170}\right):\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \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.6e+78) (not (<= t 4.5e+170)))
                                                                                                           (fma 1.0 (- y x) x)
                                                                                                           (fma (/ y a) z x)))
                                                                                                        double code(double x, double y, double z, double t, double a) {
                                                                                                        	double tmp;
                                                                                                        	if ((t <= -1.6e+78) || !(t <= 4.5e+170)) {
                                                                                                        		tmp = fma(1.0, (y - x), x);
                                                                                                        	} else {
                                                                                                        		tmp = fma((y / a), z, x);
                                                                                                        	}
                                                                                                        	return tmp;
                                                                                                        }
                                                                                                        
                                                                                                        function code(x, y, z, t, a)
                                                                                                        	tmp = 0.0
                                                                                                        	if ((t <= -1.6e+78) || !(t <= 4.5e+170))
                                                                                                        		tmp = fma(1.0, Float64(y - x), x);
                                                                                                        	else
                                                                                                        		tmp = fma(Float64(y / a), z, x);
                                                                                                        	end
                                                                                                        	return tmp
                                                                                                        end
                                                                                                        
                                                                                                        code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.6e+78], N[Not[LessEqual[t, 4.5e+170]], $MachinePrecision]], N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision]]
                                                                                                        
                                                                                                        \begin{array}{l}
                                                                                                        
                                                                                                        \\
                                                                                                        \begin{array}{l}
                                                                                                        \mathbf{if}\;t \leq -1.6 \cdot 10^{+78} \lor \neg \left(t \leq 4.5 \cdot 10^{+170}\right):\\
                                                                                                        \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\
                                                                                                        
                                                                                                        \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.59999999999999997e78 or 4.50000000000000022e170 < t

                                                                                                          1. Initial program 34.1%

                                                                                                            \[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. associate-/l*N/A

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

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

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

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

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

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

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

                                                                                                            if -1.59999999999999997e78 < t < 4.50000000000000022e170

                                                                                                            1. Initial program 84.6%

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

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

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

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

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

                                                                                                            Alternative 18: 31.1% accurate, 1.0× speedup?

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

                                                                                                              1. Initial program 46.5%

                                                                                                                \[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. associate-/l*N/A

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

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

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

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

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

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

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

                                                                                                                if -5e9 < t < 7.0999999999999999e28

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

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

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

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

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

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

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

                                                                                                                    \[\leadsto \left(z - t\right) \cdot \frac{y}{\color{blue}{a - t}} \]
                                                                                                                5. Applied rewrites42.6%

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

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

                                                                                                                    \[\leadsto y \cdot \color{blue}{\frac{z}{a}} \]
                                                                                                                8. Recombined 2 regimes into one program.
                                                                                                                9. Final simplification32.5%

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

                                                                                                                Alternative 19: 19.5% accurate, 2.9× speedup?

                                                                                                                \[\begin{array}{l} \\ \mathsf{fma}\left(1, y - x, x\right) \end{array} \]
                                                                                                                (FPCore (x y z t a) :precision binary64 (fma 1.0 (- y x) x))
                                                                                                                double code(double x, double y, double z, double t, double a) {
                                                                                                                	return fma(1.0, (y - x), x);
                                                                                                                }
                                                                                                                
                                                                                                                function code(x, y, z, t, a)
                                                                                                                	return fma(1.0, Float64(y - x), x)
                                                                                                                end
                                                                                                                
                                                                                                                code[x_, y_, z_, t_, a_] := N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision]
                                                                                                                
                                                                                                                \begin{array}{l}
                                                                                                                
                                                                                                                \\
                                                                                                                \mathsf{fma}\left(1, y - x, x\right)
                                                                                                                \end{array}
                                                                                                                
                                                                                                                Derivation
                                                                                                                1. Initial program 66.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. associate-/l*N/A

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

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

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

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

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

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

                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{1}, y - x, x\right) \]
                                                                                                                  2. Add Preprocessing

                                                                                                                  Alternative 20: 2.8% accurate, 3.2× speedup?

                                                                                                                  \[\begin{array}{l} \\ \mathsf{fma}\left(1, -x, x\right) \end{array} \]
                                                                                                                  (FPCore (x y z t a) :precision binary64 (fma 1.0 (- x) x))
                                                                                                                  double code(double x, double y, double z, double t, double a) {
                                                                                                                  	return fma(1.0, -x, x);
                                                                                                                  }
                                                                                                                  
                                                                                                                  function code(x, y, z, t, a)
                                                                                                                  	return fma(1.0, Float64(-x), x)
                                                                                                                  end
                                                                                                                  
                                                                                                                  code[x_, y_, z_, t_, a_] := N[(1.0 * (-x) + x), $MachinePrecision]
                                                                                                                  
                                                                                                                  \begin{array}{l}
                                                                                                                  
                                                                                                                  \\
                                                                                                                  \mathsf{fma}\left(1, -x, x\right)
                                                                                                                  \end{array}
                                                                                                                  
                                                                                                                  Derivation
                                                                                                                  1. Initial program 66.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. associate-/l*N/A

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

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

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

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

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

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

                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{1}, y - x, x\right) \]
                                                                                                                    2. Taylor expanded in x around inf

                                                                                                                      \[\leadsto \mathsf{fma}\left(1, \color{blue}{-1 \cdot x}, x\right) \]
                                                                                                                    3. Step-by-step derivation
                                                                                                                      1. mul-1-negN/A

                                                                                                                        \[\leadsto \mathsf{fma}\left(1, \color{blue}{\mathsf{neg}\left(x\right)}, x\right) \]
                                                                                                                      2. lower-neg.f642.8

                                                                                                                        \[\leadsto \mathsf{fma}\left(1, \color{blue}{-x}, x\right) \]
                                                                                                                    4. Applied rewrites2.8%

                                                                                                                      \[\leadsto \mathsf{fma}\left(1, \color{blue}{-x}, x\right) \]
                                                                                                                    5. Add Preprocessing

                                                                                                                    Developer Target 1: 86.8% 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;
                                                                                                                    }
                                                                                                                    
                                                                                                                    module fmin_fmax_functions
                                                                                                                        implicit none
                                                                                                                        private
                                                                                                                        public fmax
                                                                                                                        public fmin
                                                                                                                    
                                                                                                                        interface fmax
                                                                                                                            module procedure fmax88
                                                                                                                            module procedure fmax44
                                                                                                                            module procedure fmax84
                                                                                                                            module procedure fmax48
                                                                                                                        end interface
                                                                                                                        interface fmin
                                                                                                                            module procedure fmin88
                                                                                                                            module procedure fmin44
                                                                                                                            module procedure fmin84
                                                                                                                            module procedure fmin48
                                                                                                                        end interface
                                                                                                                    contains
                                                                                                                        real(8) function fmax88(x, y) result (res)
                                                                                                                            real(8), intent (in) :: x
                                                                                                                            real(8), intent (in) :: y
                                                                                                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                        end function
                                                                                                                        real(4) function fmax44(x, y) result (res)
                                                                                                                            real(4), intent (in) :: x
                                                                                                                            real(4), intent (in) :: y
                                                                                                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                        end function
                                                                                                                        real(8) function fmax84(x, y) result(res)
                                                                                                                            real(8), intent (in) :: x
                                                                                                                            real(4), intent (in) :: y
                                                                                                                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                        end function
                                                                                                                        real(8) function fmax48(x, y) result(res)
                                                                                                                            real(4), intent (in) :: x
                                                                                                                            real(8), intent (in) :: y
                                                                                                                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                        end function
                                                                                                                        real(8) function fmin88(x, y) result (res)
                                                                                                                            real(8), intent (in) :: x
                                                                                                                            real(8), intent (in) :: y
                                                                                                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                        end function
                                                                                                                        real(4) function fmin44(x, y) result (res)
                                                                                                                            real(4), intent (in) :: x
                                                                                                                            real(4), intent (in) :: y
                                                                                                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                        end function
                                                                                                                        real(8) function fmin84(x, y) result(res)
                                                                                                                            real(8), intent (in) :: x
                                                                                                                            real(4), intent (in) :: y
                                                                                                                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                        end function
                                                                                                                        real(8) function fmin48(x, y) result(res)
                                                                                                                            real(4), intent (in) :: x
                                                                                                                            real(8), intent (in) :: y
                                                                                                                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                        end function
                                                                                                                    end module
                                                                                                                    
                                                                                                                    real(8) function code(x, y, z, t, a)
                                                                                                                    use fmin_fmax_functions
                                                                                                                        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 2025007 
                                                                                                                    (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))))