Data.Colour.RGB:hslsv from colour-2.3.3, B

Percentage Accurate: 99.4% → 99.4%
Time: 10.0s
Alternatives: 17
Speedup: 1.1×

Specification

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

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

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

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

Alternative 1: 99.4% accurate, 1.0× speedup?

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

\\
120 \cdot a + \frac{\left(y - x\right) \cdot 60}{t - z}
\end{array}
Derivation
  1. Initial program 99.8%

    \[\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120 \]
  2. Add Preprocessing
  3. Final simplification99.8%

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

Alternative 2: 73.7% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+70}:\\ \;\;\;\;\frac{y - x}{-0.016666666666666666 \cdot \left(z - t\right)}\\ \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-131}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{y \cdot 60}{t}\right)\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-47}:\\ \;\;\;\;120 \cdot a\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+72}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x}{t} \cdot -60\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (/ (* (- y x) 60.0) (- t z))))
   (if (<= t_1 -1e+70)
     (/ (- y x) (* -0.016666666666666666 (- z t)))
     (if (<= t_1 -5e-131)
       (fma a 120.0 (/ (* y 60.0) t))
       (if (<= t_1 5e-47)
         (* 120.0 a)
         (if (<= t_1 5e+72) (fma a 120.0 (* (/ x t) -60.0)) t_1))))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = ((y - x) * 60.0) / (t - z);
	double tmp;
	if (t_1 <= -1e+70) {
		tmp = (y - x) / (-0.016666666666666666 * (z - t));
	} else if (t_1 <= -5e-131) {
		tmp = fma(a, 120.0, ((y * 60.0) / t));
	} else if (t_1 <= 5e-47) {
		tmp = 120.0 * a;
	} else if (t_1 <= 5e+72) {
		tmp = fma(a, 120.0, ((x / t) * -60.0));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a)
	t_1 = Float64(Float64(Float64(y - x) * 60.0) / Float64(t - z))
	tmp = 0.0
	if (t_1 <= -1e+70)
		tmp = Float64(Float64(y - x) / Float64(-0.016666666666666666 * Float64(z - t)));
	elseif (t_1 <= -5e-131)
		tmp = fma(a, 120.0, Float64(Float64(y * 60.0) / t));
	elseif (t_1 <= 5e-47)
		tmp = Float64(120.0 * a);
	elseif (t_1 <= 5e+72)
		tmp = fma(a, 120.0, Float64(Float64(x / t) * -60.0));
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - x), $MachinePrecision] * 60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+70], N[(N[(y - x), $MachinePrecision] / N[(-0.016666666666666666 * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-131], N[(a * 120.0 + N[(N[(y * 60.0), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e-47], N[(120.0 * a), $MachinePrecision], If[LessEqual[t$95$1, 5e+72], N[(a * 120.0 + N[(N[(x / t), $MachinePrecision] * -60.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-131}:\\
\;\;\;\;\mathsf{fma}\left(a, 120, \frac{y \cdot 60}{t}\right)\\

\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-47}:\\
\;\;\;\;120 \cdot a\\

\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+72}:\\
\;\;\;\;\mathsf{fma}\left(a, 120, \frac{x}{t} \cdot -60\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.00000000000000007e70

    1. Initial program 99.7%

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

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

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

        \[\leadsto \frac{1}{\frac{z - t}{\color{blue}{60 \cdot \left(x - y\right)}}} + a \cdot 120 \]
      4. associate-/r*N/A

        \[\leadsto \frac{1}{\color{blue}{\frac{\frac{z - t}{60}}{x - y}}} + a \cdot 120 \]
      5. clear-num-revN/A

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

        \[\leadsto \color{blue}{\frac{x - y}{\frac{z - t}{60}}} + a \cdot 120 \]
      7. div-invN/A

        \[\leadsto \frac{x - y}{\color{blue}{\left(z - t\right) \cdot \frac{1}{60}}} + a \cdot 120 \]
      8. metadata-evalN/A

        \[\leadsto \frac{x - y}{\left(z - t\right) \cdot \color{blue}{\frac{1}{60}}} + a \cdot 120 \]
      9. metadata-evalN/A

        \[\leadsto \frac{x - y}{\left(z - t\right) \cdot \color{blue}{\frac{-1}{-60}}} + a \cdot 120 \]
      10. metadata-evalN/A

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

        \[\leadsto \frac{x - y}{\color{blue}{\left(z - t\right) \cdot \frac{-1}{\mathsf{neg}\left(60\right)}}} + a \cdot 120 \]
      12. metadata-evalN/A

        \[\leadsto \frac{x - y}{\left(z - t\right) \cdot \frac{-1}{\color{blue}{-60}}} + a \cdot 120 \]
      13. metadata-eval99.7

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x - y}{\mathsf{fma}\left(z, \frac{1}{60}, \color{blue}{\left(\mathsf{neg}\left(t\right)\right) \cdot \frac{1}{60}}\right)} + a \cdot 120 \]
      8. lower-neg.f6499.8

        \[\leadsto \frac{x - y}{\mathsf{fma}\left(z, 0.016666666666666666, \color{blue}{\left(-t\right)} \cdot 0.016666666666666666\right)} + a \cdot 120 \]
    6. Applied rewrites99.8%

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

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

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

        \[\leadsto \frac{x}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} + \color{blue}{-1 \cdot \frac{y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
      3. associate-*r/N/A

        \[\leadsto \frac{x}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} + \color{blue}{\frac{-1 \cdot y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
      4. div-add-revN/A

        \[\leadsto \color{blue}{\frac{x + -1 \cdot y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
      5. mul-1-negN/A

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

        \[\leadsto \frac{\color{blue}{x - y}}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} \]
      7. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{x - y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
      8. lower--.f64N/A

        \[\leadsto \frac{\color{blue}{x - y}}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} \]
      9. cancel-sign-sub-invN/A

        \[\leadsto \frac{x - y}{\color{blue}{\frac{-1}{60} \cdot t - \left(\mathsf{neg}\left(\frac{1}{60}\right)\right) \cdot z}} \]
      10. metadata-evalN/A

        \[\leadsto \frac{x - y}{\frac{-1}{60} \cdot t - \color{blue}{\frac{-1}{60}} \cdot z} \]
      11. distribute-lft-out--N/A

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

        \[\leadsto \frac{x - y}{\color{blue}{\frac{-1}{60} \cdot \left(t - z\right)}} \]
      13. lower--.f6483.7

        \[\leadsto \frac{x - y}{-0.016666666666666666 \cdot \color{blue}{\left(t - z\right)}} \]
    9. Applied rewrites83.7%

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

    if -1.00000000000000007e70 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -5.0000000000000004e-131

    1. Initial program 100.0%

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

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

        \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + a \cdot 120 \]
      2. lower-*.f64N/A

        \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + a \cdot 120 \]
      3. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{x - y}{t}} \cdot -60 + a \cdot 120 \]
      4. lower--.f6472.8

        \[\leadsto \frac{\color{blue}{x - y}}{t} \cdot -60 + a \cdot 120 \]
    5. Applied rewrites72.8%

      \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + a \cdot 120 \]
    6. Step-by-step derivation
      1. Applied rewrites72.9%

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

        \[\leadsto \frac{60 \cdot y}{t} + a \cdot 120 \]
      3. Step-by-step derivation
        1. Applied rewrites82.2%

          \[\leadsto \frac{60 \cdot y}{t} + a \cdot 120 \]
        2. Step-by-step derivation
          1. lift-+.f64N/A

            \[\leadsto \color{blue}{\frac{60 \cdot y}{t} + a \cdot 120} \]
          2. +-commutativeN/A

            \[\leadsto \color{blue}{a \cdot 120 + \frac{60 \cdot y}{t}} \]
          3. lift-*.f64N/A

            \[\leadsto \color{blue}{a \cdot 120} + \frac{60 \cdot y}{t} \]
          4. lower-fma.f6482.2

            \[\leadsto \color{blue}{\mathsf{fma}\left(a, 120, \frac{60 \cdot y}{t}\right)} \]
        3. Applied rewrites82.2%

          \[\leadsto \color{blue}{\mathsf{fma}\left(a, 120, \frac{60 \cdot y}{t}\right)} \]

        if -5.0000000000000004e-131 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5.00000000000000011e-47

        1. Initial program 100.0%

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

          \[\leadsto \color{blue}{120 \cdot a} \]
        4. Step-by-step derivation
          1. lower-*.f6488.2

            \[\leadsto \color{blue}{120 \cdot a} \]
        5. Applied rewrites88.2%

          \[\leadsto \color{blue}{120 \cdot a} \]

        if 5.00000000000000011e-47 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.99999999999999992e72

        1. Initial program 99.6%

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

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

            \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + a \cdot 120 \]
          2. lower-*.f64N/A

            \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + a \cdot 120 \]
          3. lower-/.f64N/A

            \[\leadsto \color{blue}{\frac{x - y}{t}} \cdot -60 + a \cdot 120 \]
          4. lower--.f6473.2

            \[\leadsto \frac{\color{blue}{x - y}}{t} \cdot -60 + a \cdot 120 \]
        5. Applied rewrites73.2%

          \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + a \cdot 120 \]
        6. Taylor expanded in x around inf

          \[\leadsto \frac{x}{t} \cdot -60 + a \cdot 120 \]
        7. Step-by-step derivation
          1. Applied rewrites76.6%

            \[\leadsto \frac{x}{t} \cdot -60 + a \cdot 120 \]
          2. Step-by-step derivation
            1. lift-+.f64N/A

              \[\leadsto \color{blue}{\frac{x}{t} \cdot -60 + a \cdot 120} \]
            2. +-commutativeN/A

              \[\leadsto \color{blue}{a \cdot 120 + \frac{x}{t} \cdot -60} \]
            3. lift-*.f64N/A

              \[\leadsto \color{blue}{a \cdot 120} + \frac{x}{t} \cdot -60 \]
            4. lower-fma.f6476.7

              \[\leadsto \color{blue}{\mathsf{fma}\left(a, 120, \frac{x}{t} \cdot -60\right)} \]
          3. Applied rewrites76.7%

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

          if 4.99999999999999992e72 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

          1. Initial program 99.7%

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

            \[\leadsto \color{blue}{120 \cdot a} \]
          4. Step-by-step derivation
            1. lower-*.f6410.3

              \[\leadsto \color{blue}{120 \cdot a} \]
          5. Applied rewrites10.3%

            \[\leadsto \color{blue}{120 \cdot a} \]
          6. Taylor expanded in a around 0

            \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
          7. Step-by-step derivation
            1. associate-*r/N/A

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

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

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

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

              \[\leadsto \frac{\color{blue}{\left(x - y\right)} \cdot 60}{z - t} \]
            6. lower--.f6492.1

              \[\leadsto \frac{\left(x - y\right) \cdot 60}{\color{blue}{z - t}} \]
          8. Applied rewrites92.1%

            \[\leadsto \color{blue}{\frac{\left(x - y\right) \cdot 60}{z - t}} \]
        8. Recombined 5 regimes into one program.
        9. Final simplification85.3%

          \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq -1 \cdot 10^{+70}:\\ \;\;\;\;\frac{y - x}{-0.016666666666666666 \cdot \left(z - t\right)}\\ \mathbf{elif}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq -5 \cdot 10^{-131}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{y \cdot 60}{t}\right)\\ \mathbf{elif}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq 5 \cdot 10^{-47}:\\ \;\;\;\;120 \cdot a\\ \mathbf{elif}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq 5 \cdot 10^{+72}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x}{t} \cdot -60\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot 60}{t - z}\\ \end{array} \]
        10. Add Preprocessing

        Alternative 3: 73.7% accurate, 0.2× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+70}:\\ \;\;\;\;\frac{y - x}{-0.016666666666666666 \cdot \left(z - t\right)}\\ \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-131}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-47}:\\ \;\;\;\;120 \cdot a\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+72}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x}{t} \cdot -60\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a)
         :precision binary64
         (let* ((t_1 (/ (* (- y x) 60.0) (- t z))))
           (if (<= t_1 -1e+70)
             (/ (- y x) (* -0.016666666666666666 (- z t)))
             (if (<= t_1 -5e-131)
               (fma (/ y t) 60.0 (* 120.0 a))
               (if (<= t_1 5e-47)
                 (* 120.0 a)
                 (if (<= t_1 5e+72) (fma a 120.0 (* (/ x t) -60.0)) t_1))))))
        double code(double x, double y, double z, double t, double a) {
        	double t_1 = ((y - x) * 60.0) / (t - z);
        	double tmp;
        	if (t_1 <= -1e+70) {
        		tmp = (y - x) / (-0.016666666666666666 * (z - t));
        	} else if (t_1 <= -5e-131) {
        		tmp = fma((y / t), 60.0, (120.0 * a));
        	} else if (t_1 <= 5e-47) {
        		tmp = 120.0 * a;
        	} else if (t_1 <= 5e+72) {
        		tmp = fma(a, 120.0, ((x / t) * -60.0));
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a)
        	t_1 = Float64(Float64(Float64(y - x) * 60.0) / Float64(t - z))
        	tmp = 0.0
        	if (t_1 <= -1e+70)
        		tmp = Float64(Float64(y - x) / Float64(-0.016666666666666666 * Float64(z - t)));
        	elseif (t_1 <= -5e-131)
        		tmp = fma(Float64(y / t), 60.0, Float64(120.0 * a));
        	elseif (t_1 <= 5e-47)
        		tmp = Float64(120.0 * a);
        	elseif (t_1 <= 5e+72)
        		tmp = fma(a, 120.0, Float64(Float64(x / t) * -60.0));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - x), $MachinePrecision] * 60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+70], N[(N[(y - x), $MachinePrecision] / N[(-0.016666666666666666 * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-131], N[(N[(y / t), $MachinePrecision] * 60.0 + N[(120.0 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e-47], N[(120.0 * a), $MachinePrecision], If[LessEqual[t$95$1, 5e+72], N[(a * 120.0 + N[(N[(x / t), $MachinePrecision] * -60.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\
        \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+70}:\\
        \;\;\;\;\frac{y - x}{-0.016666666666666666 \cdot \left(z - t\right)}\\
        
        \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-131}:\\
        \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\
        
        \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-47}:\\
        \;\;\;\;120 \cdot a\\
        
        \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+72}:\\
        \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x}{t} \cdot -60\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 5 regimes
        2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.00000000000000007e70

          1. Initial program 99.7%

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

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

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

              \[\leadsto \frac{1}{\frac{z - t}{\color{blue}{60 \cdot \left(x - y\right)}}} + a \cdot 120 \]
            4. associate-/r*N/A

              \[\leadsto \frac{1}{\color{blue}{\frac{\frac{z - t}{60}}{x - y}}} + a \cdot 120 \]
            5. clear-num-revN/A

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

              \[\leadsto \color{blue}{\frac{x - y}{\frac{z - t}{60}}} + a \cdot 120 \]
            7. div-invN/A

              \[\leadsto \frac{x - y}{\color{blue}{\left(z - t\right) \cdot \frac{1}{60}}} + a \cdot 120 \]
            8. metadata-evalN/A

              \[\leadsto \frac{x - y}{\left(z - t\right) \cdot \color{blue}{\frac{1}{60}}} + a \cdot 120 \]
            9. metadata-evalN/A

              \[\leadsto \frac{x - y}{\left(z - t\right) \cdot \color{blue}{\frac{-1}{-60}}} + a \cdot 120 \]
            10. metadata-evalN/A

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

              \[\leadsto \frac{x - y}{\color{blue}{\left(z - t\right) \cdot \frac{-1}{\mathsf{neg}\left(60\right)}}} + a \cdot 120 \]
            12. metadata-evalN/A

              \[\leadsto \frac{x - y}{\left(z - t\right) \cdot \frac{-1}{\color{blue}{-60}}} + a \cdot 120 \]
            13. metadata-eval99.7

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

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

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

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

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

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

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

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

              \[\leadsto \frac{x - y}{\mathsf{fma}\left(z, \frac{1}{60}, \color{blue}{\left(\mathsf{neg}\left(t\right)\right) \cdot \frac{1}{60}}\right)} + a \cdot 120 \]
            8. lower-neg.f6499.8

              \[\leadsto \frac{x - y}{\mathsf{fma}\left(z, 0.016666666666666666, \color{blue}{\left(-t\right)} \cdot 0.016666666666666666\right)} + a \cdot 120 \]
          6. Applied rewrites99.8%

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

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

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

              \[\leadsto \frac{x}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} + \color{blue}{-1 \cdot \frac{y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
            3. associate-*r/N/A

              \[\leadsto \frac{x}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} + \color{blue}{\frac{-1 \cdot y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
            4. div-add-revN/A

              \[\leadsto \color{blue}{\frac{x + -1 \cdot y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
            5. mul-1-negN/A

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

              \[\leadsto \frac{\color{blue}{x - y}}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} \]
            7. lower-/.f64N/A

              \[\leadsto \color{blue}{\frac{x - y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
            8. lower--.f64N/A

              \[\leadsto \frac{\color{blue}{x - y}}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} \]
            9. cancel-sign-sub-invN/A

              \[\leadsto \frac{x - y}{\color{blue}{\frac{-1}{60} \cdot t - \left(\mathsf{neg}\left(\frac{1}{60}\right)\right) \cdot z}} \]
            10. metadata-evalN/A

              \[\leadsto \frac{x - y}{\frac{-1}{60} \cdot t - \color{blue}{\frac{-1}{60}} \cdot z} \]
            11. distribute-lft-out--N/A

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

              \[\leadsto \frac{x - y}{\color{blue}{\frac{-1}{60} \cdot \left(t - z\right)}} \]
            13. lower--.f6483.7

              \[\leadsto \frac{x - y}{-0.016666666666666666 \cdot \color{blue}{\left(t - z\right)}} \]
          9. Applied rewrites83.7%

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

          if -1.00000000000000007e70 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -5.0000000000000004e-131

          1. Initial program 100.0%

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

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

              \[\leadsto \color{blue}{120 \cdot a + -60 \cdot \frac{y}{z - t}} \]
            2. lower-fma.f64N/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(120, a, -60 \cdot \frac{y}{z - t}\right)} \]
            3. *-commutativeN/A

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

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

              \[\leadsto \mathsf{fma}\left(120, a, \color{blue}{\frac{y}{z - t}} \cdot -60\right) \]
            6. lower--.f6486.6

              \[\leadsto \mathsf{fma}\left(120, a, \frac{y}{\color{blue}{z - t}} \cdot -60\right) \]
          5. Applied rewrites86.6%

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

            \[\leadsto 60 \cdot \frac{y}{t} + \color{blue}{120 \cdot a} \]
          7. Step-by-step derivation
            1. Applied rewrites82.2%

              \[\leadsto \mathsf{fma}\left(\frac{y}{t}, \color{blue}{60}, 120 \cdot a\right) \]

            if -5.0000000000000004e-131 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5.00000000000000011e-47

            1. Initial program 100.0%

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

              \[\leadsto \color{blue}{120 \cdot a} \]
            4. Step-by-step derivation
              1. lower-*.f6488.2

                \[\leadsto \color{blue}{120 \cdot a} \]
            5. Applied rewrites88.2%

              \[\leadsto \color{blue}{120 \cdot a} \]

            if 5.00000000000000011e-47 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.99999999999999992e72

            1. Initial program 99.6%

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

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

                \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + a \cdot 120 \]
              2. lower-*.f64N/A

                \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + a \cdot 120 \]
              3. lower-/.f64N/A

                \[\leadsto \color{blue}{\frac{x - y}{t}} \cdot -60 + a \cdot 120 \]
              4. lower--.f6473.2

                \[\leadsto \frac{\color{blue}{x - y}}{t} \cdot -60 + a \cdot 120 \]
            5. Applied rewrites73.2%

              \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + a \cdot 120 \]
            6. Taylor expanded in x around inf

              \[\leadsto \frac{x}{t} \cdot -60 + a \cdot 120 \]
            7. Step-by-step derivation
              1. Applied rewrites76.6%

                \[\leadsto \frac{x}{t} \cdot -60 + a \cdot 120 \]
              2. Step-by-step derivation
                1. lift-+.f64N/A

                  \[\leadsto \color{blue}{\frac{x}{t} \cdot -60 + a \cdot 120} \]
                2. +-commutativeN/A

                  \[\leadsto \color{blue}{a \cdot 120 + \frac{x}{t} \cdot -60} \]
                3. lift-*.f64N/A

                  \[\leadsto \color{blue}{a \cdot 120} + \frac{x}{t} \cdot -60 \]
                4. lower-fma.f6476.7

                  \[\leadsto \color{blue}{\mathsf{fma}\left(a, 120, \frac{x}{t} \cdot -60\right)} \]
              3. Applied rewrites76.7%

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

              if 4.99999999999999992e72 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

              1. Initial program 99.7%

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

                \[\leadsto \color{blue}{120 \cdot a} \]
              4. Step-by-step derivation
                1. lower-*.f6410.3

                  \[\leadsto \color{blue}{120 \cdot a} \]
              5. Applied rewrites10.3%

                \[\leadsto \color{blue}{120 \cdot a} \]
              6. Taylor expanded in a around 0

                \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
              7. Step-by-step derivation
                1. associate-*r/N/A

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

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

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

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

                  \[\leadsto \frac{\color{blue}{\left(x - y\right)} \cdot 60}{z - t} \]
                6. lower--.f6492.1

                  \[\leadsto \frac{\left(x - y\right) \cdot 60}{\color{blue}{z - t}} \]
              8. Applied rewrites92.1%

                \[\leadsto \color{blue}{\frac{\left(x - y\right) \cdot 60}{z - t}} \]
            8. Recombined 5 regimes into one program.
            9. Final simplification85.3%

              \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq -1 \cdot 10^{+70}:\\ \;\;\;\;\frac{y - x}{-0.016666666666666666 \cdot \left(z - t\right)}\\ \mathbf{elif}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq -5 \cdot 10^{-131}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\ \mathbf{elif}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq 5 \cdot 10^{-47}:\\ \;\;\;\;120 \cdot a\\ \mathbf{elif}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq 5 \cdot 10^{+72}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x}{t} \cdot -60\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot 60}{t - z}\\ \end{array} \]
            10. Add Preprocessing

            Alternative 4: 74.1% accurate, 0.3× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+70}:\\ \;\;\;\;\frac{y - x}{-0.016666666666666666 \cdot \left(z - t\right)}\\ \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-131}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+52}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a)
             :precision binary64
             (let* ((t_1 (/ (* (- y x) 60.0) (- t z))))
               (if (<= t_1 -1e+70)
                 (/ (- y x) (* -0.016666666666666666 (- z t)))
                 (if (<= t_1 -5e-131)
                   (fma (/ y t) 60.0 (* 120.0 a))
                   (if (<= t_1 2e+52) (* 120.0 a) t_1)))))
            double code(double x, double y, double z, double t, double a) {
            	double t_1 = ((y - x) * 60.0) / (t - z);
            	double tmp;
            	if (t_1 <= -1e+70) {
            		tmp = (y - x) / (-0.016666666666666666 * (z - t));
            	} else if (t_1 <= -5e-131) {
            		tmp = fma((y / t), 60.0, (120.0 * a));
            	} else if (t_1 <= 2e+52) {
            		tmp = 120.0 * a;
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a)
            	t_1 = Float64(Float64(Float64(y - x) * 60.0) / Float64(t - z))
            	tmp = 0.0
            	if (t_1 <= -1e+70)
            		tmp = Float64(Float64(y - x) / Float64(-0.016666666666666666 * Float64(z - t)));
            	elseif (t_1 <= -5e-131)
            		tmp = fma(Float64(y / t), 60.0, Float64(120.0 * a));
            	elseif (t_1 <= 2e+52)
            		tmp = Float64(120.0 * a);
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - x), $MachinePrecision] * 60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+70], N[(N[(y - x), $MachinePrecision] / N[(-0.016666666666666666 * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-131], N[(N[(y / t), $MachinePrecision] * 60.0 + N[(120.0 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+52], N[(120.0 * a), $MachinePrecision], t$95$1]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\
            \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+70}:\\
            \;\;\;\;\frac{y - x}{-0.016666666666666666 \cdot \left(z - t\right)}\\
            
            \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-131}:\\
            \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\
            
            \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+52}:\\
            \;\;\;\;120 \cdot a\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 4 regimes
            2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.00000000000000007e70

              1. Initial program 99.7%

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

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

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

                  \[\leadsto \frac{1}{\frac{z - t}{\color{blue}{60 \cdot \left(x - y\right)}}} + a \cdot 120 \]
                4. associate-/r*N/A

                  \[\leadsto \frac{1}{\color{blue}{\frac{\frac{z - t}{60}}{x - y}}} + a \cdot 120 \]
                5. clear-num-revN/A

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

                  \[\leadsto \color{blue}{\frac{x - y}{\frac{z - t}{60}}} + a \cdot 120 \]
                7. div-invN/A

                  \[\leadsto \frac{x - y}{\color{blue}{\left(z - t\right) \cdot \frac{1}{60}}} + a \cdot 120 \]
                8. metadata-evalN/A

                  \[\leadsto \frac{x - y}{\left(z - t\right) \cdot \color{blue}{\frac{1}{60}}} + a \cdot 120 \]
                9. metadata-evalN/A

                  \[\leadsto \frac{x - y}{\left(z - t\right) \cdot \color{blue}{\frac{-1}{-60}}} + a \cdot 120 \]
                10. metadata-evalN/A

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

                  \[\leadsto \frac{x - y}{\color{blue}{\left(z - t\right) \cdot \frac{-1}{\mathsf{neg}\left(60\right)}}} + a \cdot 120 \]
                12. metadata-evalN/A

                  \[\leadsto \frac{x - y}{\left(z - t\right) \cdot \frac{-1}{\color{blue}{-60}}} + a \cdot 120 \]
                13. metadata-eval99.7

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{x - y}{\mathsf{fma}\left(z, \frac{1}{60}, \color{blue}{\left(\mathsf{neg}\left(t\right)\right) \cdot \frac{1}{60}}\right)} + a \cdot 120 \]
                8. lower-neg.f6499.8

                  \[\leadsto \frac{x - y}{\mathsf{fma}\left(z, 0.016666666666666666, \color{blue}{\left(-t\right)} \cdot 0.016666666666666666\right)} + a \cdot 120 \]
              6. Applied rewrites99.8%

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

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

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

                  \[\leadsto \frac{x}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} + \color{blue}{-1 \cdot \frac{y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
                3. associate-*r/N/A

                  \[\leadsto \frac{x}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} + \color{blue}{\frac{-1 \cdot y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
                4. div-add-revN/A

                  \[\leadsto \color{blue}{\frac{x + -1 \cdot y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
                5. mul-1-negN/A

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

                  \[\leadsto \frac{\color{blue}{x - y}}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} \]
                7. lower-/.f64N/A

                  \[\leadsto \color{blue}{\frac{x - y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
                8. lower--.f64N/A

                  \[\leadsto \frac{\color{blue}{x - y}}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} \]
                9. cancel-sign-sub-invN/A

                  \[\leadsto \frac{x - y}{\color{blue}{\frac{-1}{60} \cdot t - \left(\mathsf{neg}\left(\frac{1}{60}\right)\right) \cdot z}} \]
                10. metadata-evalN/A

                  \[\leadsto \frac{x - y}{\frac{-1}{60} \cdot t - \color{blue}{\frac{-1}{60}} \cdot z} \]
                11. distribute-lft-out--N/A

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

                  \[\leadsto \frac{x - y}{\color{blue}{\frac{-1}{60} \cdot \left(t - z\right)}} \]
                13. lower--.f6483.7

                  \[\leadsto \frac{x - y}{-0.016666666666666666 \cdot \color{blue}{\left(t - z\right)}} \]
              9. Applied rewrites83.7%

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

              if -1.00000000000000007e70 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -5.0000000000000004e-131

              1. Initial program 100.0%

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

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

                  \[\leadsto \color{blue}{120 \cdot a + -60 \cdot \frac{y}{z - t}} \]
                2. lower-fma.f64N/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(120, a, -60 \cdot \frac{y}{z - t}\right)} \]
                3. *-commutativeN/A

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

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

                  \[\leadsto \mathsf{fma}\left(120, a, \color{blue}{\frac{y}{z - t}} \cdot -60\right) \]
                6. lower--.f6486.6

                  \[\leadsto \mathsf{fma}\left(120, a, \frac{y}{\color{blue}{z - t}} \cdot -60\right) \]
              5. Applied rewrites86.6%

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

                \[\leadsto 60 \cdot \frac{y}{t} + \color{blue}{120 \cdot a} \]
              7. Step-by-step derivation
                1. Applied rewrites82.2%

                  \[\leadsto \mathsf{fma}\left(\frac{y}{t}, \color{blue}{60}, 120 \cdot a\right) \]

                if -5.0000000000000004e-131 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 2e52

                1. Initial program 99.9%

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

                  \[\leadsto \color{blue}{120 \cdot a} \]
                4. Step-by-step derivation
                  1. lower-*.f6481.0

                    \[\leadsto \color{blue}{120 \cdot a} \]
                5. Applied rewrites81.0%

                  \[\leadsto \color{blue}{120 \cdot a} \]

                if 2e52 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

                1. Initial program 99.7%

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

                  \[\leadsto \color{blue}{120 \cdot a} \]
                4. Step-by-step derivation
                  1. lower-*.f6412.3

                    \[\leadsto \color{blue}{120 \cdot a} \]
                5. Applied rewrites12.3%

                  \[\leadsto \color{blue}{120 \cdot a} \]
                6. Taylor expanded in a around 0

                  \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                7. Step-by-step derivation
                  1. associate-*r/N/A

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

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

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

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

                    \[\leadsto \frac{\color{blue}{\left(x - y\right)} \cdot 60}{z - t} \]
                  6. lower--.f6490.2

                    \[\leadsto \frac{\left(x - y\right) \cdot 60}{\color{blue}{z - t}} \]
                8. Applied rewrites90.2%

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

                \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq -1 \cdot 10^{+70}:\\ \;\;\;\;\frac{y - x}{-0.016666666666666666 \cdot \left(z - t\right)}\\ \mathbf{elif}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq -5 \cdot 10^{-131}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\ \mathbf{elif}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq 2 \cdot 10^{+52}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot 60}{t - z}\\ \end{array} \]
              10. Add Preprocessing

              Alternative 5: 73.9% accurate, 0.3× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+70}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-131}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+52}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              (FPCore (x y z t a)
               :precision binary64
               (let* ((t_1 (/ (* (- y x) 60.0) (- t z))))
                 (if (<= t_1 -1e+70)
                   t_1
                   (if (<= t_1 -5e-131)
                     (fma (/ y t) 60.0 (* 120.0 a))
                     (if (<= t_1 2e+52) (* 120.0 a) t_1)))))
              double code(double x, double y, double z, double t, double a) {
              	double t_1 = ((y - x) * 60.0) / (t - z);
              	double tmp;
              	if (t_1 <= -1e+70) {
              		tmp = t_1;
              	} else if (t_1 <= -5e-131) {
              		tmp = fma((y / t), 60.0, (120.0 * a));
              	} else if (t_1 <= 2e+52) {
              		tmp = 120.0 * a;
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a)
              	t_1 = Float64(Float64(Float64(y - x) * 60.0) / Float64(t - z))
              	tmp = 0.0
              	if (t_1 <= -1e+70)
              		tmp = t_1;
              	elseif (t_1 <= -5e-131)
              		tmp = fma(Float64(y / t), 60.0, Float64(120.0 * a));
              	elseif (t_1 <= 2e+52)
              		tmp = Float64(120.0 * a);
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - x), $MachinePrecision] * 60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+70], t$95$1, If[LessEqual[t$95$1, -5e-131], N[(N[(y / t), $MachinePrecision] * 60.0 + N[(120.0 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+52], N[(120.0 * a), $MachinePrecision], t$95$1]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\
              \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+70}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-131}:\\
              \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\
              
              \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+52}:\\
              \;\;\;\;120 \cdot a\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.00000000000000007e70 or 2e52 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

                1. Initial program 99.7%

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

                  \[\leadsto \color{blue}{120 \cdot a} \]
                4. Step-by-step derivation
                  1. lower-*.f6415.3

                    \[\leadsto \color{blue}{120 \cdot a} \]
                5. Applied rewrites15.3%

                  \[\leadsto \color{blue}{120 \cdot a} \]
                6. Taylor expanded in a around 0

                  \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                7. Step-by-step derivation
                  1. associate-*r/N/A

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

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

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

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

                    \[\leadsto \frac{\color{blue}{\left(x - y\right)} \cdot 60}{z - t} \]
                  6. lower--.f6486.2

                    \[\leadsto \frac{\left(x - y\right) \cdot 60}{\color{blue}{z - t}} \]
                8. Applied rewrites86.2%

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

                if -1.00000000000000007e70 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -5.0000000000000004e-131

                1. Initial program 100.0%

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

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

                    \[\leadsto \color{blue}{120 \cdot a + -60 \cdot \frac{y}{z - t}} \]
                  2. lower-fma.f64N/A

                    \[\leadsto \color{blue}{\mathsf{fma}\left(120, a, -60 \cdot \frac{y}{z - t}\right)} \]
                  3. *-commutativeN/A

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

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

                    \[\leadsto \mathsf{fma}\left(120, a, \color{blue}{\frac{y}{z - t}} \cdot -60\right) \]
                  6. lower--.f6486.6

                    \[\leadsto \mathsf{fma}\left(120, a, \frac{y}{\color{blue}{z - t}} \cdot -60\right) \]
                5. Applied rewrites86.6%

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

                  \[\leadsto 60 \cdot \frac{y}{t} + \color{blue}{120 \cdot a} \]
                7. Step-by-step derivation
                  1. Applied rewrites82.2%

                    \[\leadsto \mathsf{fma}\left(\frac{y}{t}, \color{blue}{60}, 120 \cdot a\right) \]

                  if -5.0000000000000004e-131 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 2e52

                  1. Initial program 99.9%

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

                    \[\leadsto \color{blue}{120 \cdot a} \]
                  4. Step-by-step derivation
                    1. lower-*.f6481.0

                      \[\leadsto \color{blue}{120 \cdot a} \]
                  5. Applied rewrites81.0%

                    \[\leadsto \color{blue}{120 \cdot a} \]
                8. Recombined 3 regimes into one program.
                9. Final simplification83.4%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq -1 \cdot 10^{+70}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot 60}{t - z}\\ \mathbf{elif}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq -5 \cdot 10^{-131}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\ \mathbf{elif}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq 2 \cdot 10^{+52}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot 60}{t - z}\\ \end{array} \]
                10. Add Preprocessing

                Alternative 6: 74.2% accurate, 0.3× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y - x\right) \cdot \frac{60}{t - z}\\ t_2 := \frac{\left(y - x\right) \cdot 60}{t - z}\\ \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+70}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-131}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+52}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t a)
                 :precision binary64
                 (let* ((t_1 (* (- y x) (/ 60.0 (- t z)))) (t_2 (/ (* (- y x) 60.0) (- t z))))
                   (if (<= t_2 -1e+70)
                     t_1
                     (if (<= t_2 -5e-131)
                       (fma (/ y t) 60.0 (* 120.0 a))
                       (if (<= t_2 2e+52) (* 120.0 a) t_1)))))
                double code(double x, double y, double z, double t, double a) {
                	double t_1 = (y - x) * (60.0 / (t - z));
                	double t_2 = ((y - x) * 60.0) / (t - z);
                	double tmp;
                	if (t_2 <= -1e+70) {
                		tmp = t_1;
                	} else if (t_2 <= -5e-131) {
                		tmp = fma((y / t), 60.0, (120.0 * a));
                	} else if (t_2 <= 2e+52) {
                		tmp = 120.0 * a;
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a)
                	t_1 = Float64(Float64(y - x) * Float64(60.0 / Float64(t - z)))
                	t_2 = Float64(Float64(Float64(y - x) * 60.0) / Float64(t - z))
                	tmp = 0.0
                	if (t_2 <= -1e+70)
                		tmp = t_1;
                	elseif (t_2 <= -5e-131)
                		tmp = fma(Float64(y / t), 60.0, Float64(120.0 * a));
                	elseif (t_2 <= 2e+52)
                		tmp = Float64(120.0 * a);
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - x), $MachinePrecision] * N[(60.0 / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(y - x), $MachinePrecision] * 60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+70], t$95$1, If[LessEqual[t$95$2, -5e-131], N[(N[(y / t), $MachinePrecision] * 60.0 + N[(120.0 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+52], N[(120.0 * a), $MachinePrecision], t$95$1]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \left(y - x\right) \cdot \frac{60}{t - z}\\
                t_2 := \frac{\left(y - x\right) \cdot 60}{t - z}\\
                \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+70}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-131}:\\
                \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\
                
                \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+52}:\\
                \;\;\;\;120 \cdot a\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.00000000000000007e70 or 2e52 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

                  1. Initial program 99.7%

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

                    \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                  4. Step-by-step derivation
                    1. associate-*r/N/A

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

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

                      \[\leadsto \color{blue}{\left(x - y\right) \cdot \frac{60}{z - t}} \]
                    4. metadata-evalN/A

                      \[\leadsto \left(x - y\right) \cdot \frac{\color{blue}{60 \cdot 1}}{z - t} \]
                    5. associate-*r/N/A

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

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

                      \[\leadsto \color{blue}{\left(x - y\right)} \cdot \left(60 \cdot \frac{1}{z - t}\right) \]
                    8. associate-*r/N/A

                      \[\leadsto \left(x - y\right) \cdot \color{blue}{\frac{60 \cdot 1}{z - t}} \]
                    9. metadata-evalN/A

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

                      \[\leadsto \left(x - y\right) \cdot \color{blue}{\frac{60}{z - t}} \]
                    11. lower--.f6486.2

                      \[\leadsto \left(x - y\right) \cdot \frac{60}{\color{blue}{z - t}} \]
                  5. Applied rewrites86.2%

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

                  if -1.00000000000000007e70 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -5.0000000000000004e-131

                  1. Initial program 100.0%

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

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

                      \[\leadsto \color{blue}{120 \cdot a + -60 \cdot \frac{y}{z - t}} \]
                    2. lower-fma.f64N/A

                      \[\leadsto \color{blue}{\mathsf{fma}\left(120, a, -60 \cdot \frac{y}{z - t}\right)} \]
                    3. *-commutativeN/A

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

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

                      \[\leadsto \mathsf{fma}\left(120, a, \color{blue}{\frac{y}{z - t}} \cdot -60\right) \]
                    6. lower--.f6486.6

                      \[\leadsto \mathsf{fma}\left(120, a, \frac{y}{\color{blue}{z - t}} \cdot -60\right) \]
                  5. Applied rewrites86.6%

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

                    \[\leadsto 60 \cdot \frac{y}{t} + \color{blue}{120 \cdot a} \]
                  7. Step-by-step derivation
                    1. Applied rewrites82.2%

                      \[\leadsto \mathsf{fma}\left(\frac{y}{t}, \color{blue}{60}, 120 \cdot a\right) \]

                    if -5.0000000000000004e-131 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 2e52

                    1. Initial program 99.9%

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

                      \[\leadsto \color{blue}{120 \cdot a} \]
                    4. Step-by-step derivation
                      1. lower-*.f6481.0

                        \[\leadsto \color{blue}{120 \cdot a} \]
                    5. Applied rewrites81.0%

                      \[\leadsto \color{blue}{120 \cdot a} \]
                  8. Recombined 3 regimes into one program.
                  9. Final simplification83.4%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq -1 \cdot 10^{+70}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{60}{t - z}\\ \mathbf{elif}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq -5 \cdot 10^{-131}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\ \mathbf{elif}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq 2 \cdot 10^{+52}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{60}{t - z}\\ \end{array} \]
                  10. Add Preprocessing

                  Alternative 7: 83.5% accurate, 0.4× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+70}:\\ \;\;\;\;\frac{y - x}{-0.016666666666666666 \cdot \left(z - t\right)}\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+72}:\\ \;\;\;\;\mathsf{fma}\left(120, a, \frac{y}{z - t} \cdot -60\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                  (FPCore (x y z t a)
                   :precision binary64
                   (let* ((t_1 (/ (* (- y x) 60.0) (- t z))))
                     (if (<= t_1 -1e+70)
                       (/ (- y x) (* -0.016666666666666666 (- z t)))
                       (if (<= t_1 5e+72) (fma 120.0 a (* (/ y (- z t)) -60.0)) t_1))))
                  double code(double x, double y, double z, double t, double a) {
                  	double t_1 = ((y - x) * 60.0) / (t - z);
                  	double tmp;
                  	if (t_1 <= -1e+70) {
                  		tmp = (y - x) / (-0.016666666666666666 * (z - t));
                  	} else if (t_1 <= 5e+72) {
                  		tmp = fma(120.0, a, ((y / (z - t)) * -60.0));
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y, z, t, a)
                  	t_1 = Float64(Float64(Float64(y - x) * 60.0) / Float64(t - z))
                  	tmp = 0.0
                  	if (t_1 <= -1e+70)
                  		tmp = Float64(Float64(y - x) / Float64(-0.016666666666666666 * Float64(z - t)));
                  	elseif (t_1 <= 5e+72)
                  		tmp = fma(120.0, a, Float64(Float64(y / Float64(z - t)) * -60.0));
                  	else
                  		tmp = t_1;
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - x), $MachinePrecision] * 60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+70], N[(N[(y - x), $MachinePrecision] / N[(-0.016666666666666666 * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+72], N[(120.0 * a + N[(N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] * -60.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\
                  \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+70}:\\
                  \;\;\;\;\frac{y - x}{-0.016666666666666666 \cdot \left(z - t\right)}\\
                  
                  \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+72}:\\
                  \;\;\;\;\mathsf{fma}\left(120, a, \frac{y}{z - t} \cdot -60\right)\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.00000000000000007e70

                    1. Initial program 99.7%

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

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

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

                        \[\leadsto \frac{1}{\frac{z - t}{\color{blue}{60 \cdot \left(x - y\right)}}} + a \cdot 120 \]
                      4. associate-/r*N/A

                        \[\leadsto \frac{1}{\color{blue}{\frac{\frac{z - t}{60}}{x - y}}} + a \cdot 120 \]
                      5. clear-num-revN/A

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

                        \[\leadsto \color{blue}{\frac{x - y}{\frac{z - t}{60}}} + a \cdot 120 \]
                      7. div-invN/A

                        \[\leadsto \frac{x - y}{\color{blue}{\left(z - t\right) \cdot \frac{1}{60}}} + a \cdot 120 \]
                      8. metadata-evalN/A

                        \[\leadsto \frac{x - y}{\left(z - t\right) \cdot \color{blue}{\frac{1}{60}}} + a \cdot 120 \]
                      9. metadata-evalN/A

                        \[\leadsto \frac{x - y}{\left(z - t\right) \cdot \color{blue}{\frac{-1}{-60}}} + a \cdot 120 \]
                      10. metadata-evalN/A

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

                        \[\leadsto \frac{x - y}{\color{blue}{\left(z - t\right) \cdot \frac{-1}{\mathsf{neg}\left(60\right)}}} + a \cdot 120 \]
                      12. metadata-evalN/A

                        \[\leadsto \frac{x - y}{\left(z - t\right) \cdot \frac{-1}{\color{blue}{-60}}} + a \cdot 120 \]
                      13. metadata-eval99.7

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{x - y}{\mathsf{fma}\left(z, \frac{1}{60}, \color{blue}{\left(\mathsf{neg}\left(t\right)\right) \cdot \frac{1}{60}}\right)} + a \cdot 120 \]
                      8. lower-neg.f6499.8

                        \[\leadsto \frac{x - y}{\mathsf{fma}\left(z, 0.016666666666666666, \color{blue}{\left(-t\right)} \cdot 0.016666666666666666\right)} + a \cdot 120 \]
                    6. Applied rewrites99.8%

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

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

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

                        \[\leadsto \frac{x}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} + \color{blue}{-1 \cdot \frac{y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
                      3. associate-*r/N/A

                        \[\leadsto \frac{x}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} + \color{blue}{\frac{-1 \cdot y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
                      4. div-add-revN/A

                        \[\leadsto \color{blue}{\frac{x + -1 \cdot y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
                      5. mul-1-negN/A

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

                        \[\leadsto \frac{\color{blue}{x - y}}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} \]
                      7. lower-/.f64N/A

                        \[\leadsto \color{blue}{\frac{x - y}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z}} \]
                      8. lower--.f64N/A

                        \[\leadsto \frac{\color{blue}{x - y}}{\frac{-1}{60} \cdot t + \frac{1}{60} \cdot z} \]
                      9. cancel-sign-sub-invN/A

                        \[\leadsto \frac{x - y}{\color{blue}{\frac{-1}{60} \cdot t - \left(\mathsf{neg}\left(\frac{1}{60}\right)\right) \cdot z}} \]
                      10. metadata-evalN/A

                        \[\leadsto \frac{x - y}{\frac{-1}{60} \cdot t - \color{blue}{\frac{-1}{60}} \cdot z} \]
                      11. distribute-lft-out--N/A

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

                        \[\leadsto \frac{x - y}{\color{blue}{\frac{-1}{60} \cdot \left(t - z\right)}} \]
                      13. lower--.f6483.7

                        \[\leadsto \frac{x - y}{-0.016666666666666666 \cdot \color{blue}{\left(t - z\right)}} \]
                    9. Applied rewrites83.7%

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

                    if -1.00000000000000007e70 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.99999999999999992e72

                    1. Initial program 99.9%

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

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

                        \[\leadsto \color{blue}{120 \cdot a + -60 \cdot \frac{y}{z - t}} \]
                      2. lower-fma.f64N/A

                        \[\leadsto \color{blue}{\mathsf{fma}\left(120, a, -60 \cdot \frac{y}{z - t}\right)} \]
                      3. *-commutativeN/A

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

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

                        \[\leadsto \mathsf{fma}\left(120, a, \color{blue}{\frac{y}{z - t}} \cdot -60\right) \]
                      6. lower--.f6488.0

                        \[\leadsto \mathsf{fma}\left(120, a, \frac{y}{\color{blue}{z - t}} \cdot -60\right) \]
                    5. Applied rewrites88.0%

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

                    if 4.99999999999999992e72 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

                    1. Initial program 99.7%

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

                      \[\leadsto \color{blue}{120 \cdot a} \]
                    4. Step-by-step derivation
                      1. lower-*.f6410.3

                        \[\leadsto \color{blue}{120 \cdot a} \]
                    5. Applied rewrites10.3%

                      \[\leadsto \color{blue}{120 \cdot a} \]
                    6. Taylor expanded in a around 0

                      \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                    7. Step-by-step derivation
                      1. associate-*r/N/A

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

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

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

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

                        \[\leadsto \frac{\color{blue}{\left(x - y\right)} \cdot 60}{z - t} \]
                      6. lower--.f6492.1

                        \[\leadsto \frac{\left(x - y\right) \cdot 60}{\color{blue}{z - t}} \]
                    8. Applied rewrites92.1%

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

                    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq -1 \cdot 10^{+70}:\\ \;\;\;\;\frac{y - x}{-0.016666666666666666 \cdot \left(z - t\right)}\\ \mathbf{elif}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq 5 \cdot 10^{+72}:\\ \;\;\;\;\mathsf{fma}\left(120, a, \frac{y}{z - t} \cdot -60\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot 60}{t - z}\\ \end{array} \]
                  5. Add Preprocessing

                  Alternative 8: 59.1% accurate, 0.4× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+70}:\\ \;\;\;\;\frac{x}{z - t} \cdot 60\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+72}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{z - t} \cdot -60\\ \end{array} \end{array} \]
                  (FPCore (x y z t a)
                   :precision binary64
                   (let* ((t_1 (/ (* (- y x) 60.0) (- t z))))
                     (if (<= t_1 -1e+70)
                       (* (/ x (- z t)) 60.0)
                       (if (<= t_1 5e+72) (* 120.0 a) (* (/ y (- z t)) -60.0)))))
                  double code(double x, double y, double z, double t, double a) {
                  	double t_1 = ((y - x) * 60.0) / (t - z);
                  	double tmp;
                  	if (t_1 <= -1e+70) {
                  		tmp = (x / (z - t)) * 60.0;
                  	} else if (t_1 <= 5e+72) {
                  		tmp = 120.0 * a;
                  	} else {
                  		tmp = (y / (z - t)) * -60.0;
                  	}
                  	return tmp;
                  }
                  
                  real(8) function code(x, y, z, t, a)
                      real(8), intent (in) :: x
                      real(8), intent (in) :: y
                      real(8), intent (in) :: z
                      real(8), intent (in) :: t
                      real(8), intent (in) :: a
                      real(8) :: t_1
                      real(8) :: tmp
                      t_1 = ((y - x) * 60.0d0) / (t - z)
                      if (t_1 <= (-1d+70)) then
                          tmp = (x / (z - t)) * 60.0d0
                      else if (t_1 <= 5d+72) then
                          tmp = 120.0d0 * a
                      else
                          tmp = (y / (z - t)) * (-60.0d0)
                      end if
                      code = tmp
                  end function
                  
                  public static double code(double x, double y, double z, double t, double a) {
                  	double t_1 = ((y - x) * 60.0) / (t - z);
                  	double tmp;
                  	if (t_1 <= -1e+70) {
                  		tmp = (x / (z - t)) * 60.0;
                  	} else if (t_1 <= 5e+72) {
                  		tmp = 120.0 * a;
                  	} else {
                  		tmp = (y / (z - t)) * -60.0;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a):
                  	t_1 = ((y - x) * 60.0) / (t - z)
                  	tmp = 0
                  	if t_1 <= -1e+70:
                  		tmp = (x / (z - t)) * 60.0
                  	elif t_1 <= 5e+72:
                  		tmp = 120.0 * a
                  	else:
                  		tmp = (y / (z - t)) * -60.0
                  	return tmp
                  
                  function code(x, y, z, t, a)
                  	t_1 = Float64(Float64(Float64(y - x) * 60.0) / Float64(t - z))
                  	tmp = 0.0
                  	if (t_1 <= -1e+70)
                  		tmp = Float64(Float64(x / Float64(z - t)) * 60.0);
                  	elseif (t_1 <= 5e+72)
                  		tmp = Float64(120.0 * a);
                  	else
                  		tmp = Float64(Float64(y / Float64(z - t)) * -60.0);
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t, a)
                  	t_1 = ((y - x) * 60.0) / (t - z);
                  	tmp = 0.0;
                  	if (t_1 <= -1e+70)
                  		tmp = (x / (z - t)) * 60.0;
                  	elseif (t_1 <= 5e+72)
                  		tmp = 120.0 * a;
                  	else
                  		tmp = (y / (z - t)) * -60.0;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - x), $MachinePrecision] * 60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+70], N[(N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision] * 60.0), $MachinePrecision], If[LessEqual[t$95$1, 5e+72], N[(120.0 * a), $MachinePrecision], N[(N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] * -60.0), $MachinePrecision]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\
                  \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+70}:\\
                  \;\;\;\;\frac{x}{z - t} \cdot 60\\
                  
                  \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+72}:\\
                  \;\;\;\;120 \cdot a\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\frac{y}{z - t} \cdot -60\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.00000000000000007e70

                    1. Initial program 99.7%

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

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

                        \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                      2. lower-*.f64N/A

                        \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                      3. lower-/.f64N/A

                        \[\leadsto \color{blue}{\frac{x}{z - t}} \cdot 60 \]
                      4. lower--.f6449.1

                        \[\leadsto \frac{x}{\color{blue}{z - t}} \cdot 60 \]
                    5. Applied rewrites49.1%

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

                    if -1.00000000000000007e70 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.99999999999999992e72

                    1. Initial program 99.9%

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

                      \[\leadsto \color{blue}{120 \cdot a} \]
                    4. Step-by-step derivation
                      1. lower-*.f6477.0

                        \[\leadsto \color{blue}{120 \cdot a} \]
                    5. Applied rewrites77.0%

                      \[\leadsto \color{blue}{120 \cdot a} \]

                    if 4.99999999999999992e72 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

                    1. Initial program 99.7%

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

                      \[\leadsto \color{blue}{120 \cdot a} \]
                    4. Step-by-step derivation
                      1. lower-*.f6410.3

                        \[\leadsto \color{blue}{120 \cdot a} \]
                    5. Applied rewrites10.3%

                      \[\leadsto \color{blue}{120 \cdot a} \]
                    6. Taylor expanded in a around 0

                      \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                    7. Step-by-step derivation
                      1. associate-*r/N/A

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

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

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

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

                        \[\leadsto \frac{\color{blue}{\left(x - y\right)} \cdot 60}{z - t} \]
                      6. lower--.f6492.1

                        \[\leadsto \frac{\left(x - y\right) \cdot 60}{\color{blue}{z - t}} \]
                    8. Applied rewrites92.1%

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

                      \[\leadsto -60 \cdot \color{blue}{\frac{y}{z - t}} \]
                    10. Step-by-step derivation
                      1. Applied rewrites46.9%

                        \[\leadsto \frac{y}{z - t} \cdot \color{blue}{-60} \]
                    11. Recombined 3 regimes into one program.
                    12. Final simplification65.6%

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

                    Alternative 9: 59.1% accurate, 0.4× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+70}:\\ \;\;\;\;\frac{60}{z - t} \cdot x\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+72}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{z - t} \cdot -60\\ \end{array} \end{array} \]
                    (FPCore (x y z t a)
                     :precision binary64
                     (let* ((t_1 (/ (* (- y x) 60.0) (- t z))))
                       (if (<= t_1 -1e+70)
                         (* (/ 60.0 (- z t)) x)
                         (if (<= t_1 5e+72) (* 120.0 a) (* (/ y (- z t)) -60.0)))))
                    double code(double x, double y, double z, double t, double a) {
                    	double t_1 = ((y - x) * 60.0) / (t - z);
                    	double tmp;
                    	if (t_1 <= -1e+70) {
                    		tmp = (60.0 / (z - t)) * x;
                    	} else if (t_1 <= 5e+72) {
                    		tmp = 120.0 * a;
                    	} else {
                    		tmp = (y / (z - t)) * -60.0;
                    	}
                    	return tmp;
                    }
                    
                    real(8) function code(x, y, z, t, a)
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8), intent (in) :: z
                        real(8), intent (in) :: t
                        real(8), intent (in) :: a
                        real(8) :: t_1
                        real(8) :: tmp
                        t_1 = ((y - x) * 60.0d0) / (t - z)
                        if (t_1 <= (-1d+70)) then
                            tmp = (60.0d0 / (z - t)) * x
                        else if (t_1 <= 5d+72) then
                            tmp = 120.0d0 * a
                        else
                            tmp = (y / (z - t)) * (-60.0d0)
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y, double z, double t, double a) {
                    	double t_1 = ((y - x) * 60.0) / (t - z);
                    	double tmp;
                    	if (t_1 <= -1e+70) {
                    		tmp = (60.0 / (z - t)) * x;
                    	} else if (t_1 <= 5e+72) {
                    		tmp = 120.0 * a;
                    	} else {
                    		tmp = (y / (z - t)) * -60.0;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a):
                    	t_1 = ((y - x) * 60.0) / (t - z)
                    	tmp = 0
                    	if t_1 <= -1e+70:
                    		tmp = (60.0 / (z - t)) * x
                    	elif t_1 <= 5e+72:
                    		tmp = 120.0 * a
                    	else:
                    		tmp = (y / (z - t)) * -60.0
                    	return tmp
                    
                    function code(x, y, z, t, a)
                    	t_1 = Float64(Float64(Float64(y - x) * 60.0) / Float64(t - z))
                    	tmp = 0.0
                    	if (t_1 <= -1e+70)
                    		tmp = Float64(Float64(60.0 / Float64(z - t)) * x);
                    	elseif (t_1 <= 5e+72)
                    		tmp = Float64(120.0 * a);
                    	else
                    		tmp = Float64(Float64(y / Float64(z - t)) * -60.0);
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a)
                    	t_1 = ((y - x) * 60.0) / (t - z);
                    	tmp = 0.0;
                    	if (t_1 <= -1e+70)
                    		tmp = (60.0 / (z - t)) * x;
                    	elseif (t_1 <= 5e+72)
                    		tmp = 120.0 * a;
                    	else
                    		tmp = (y / (z - t)) * -60.0;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - x), $MachinePrecision] * 60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+70], N[(N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[t$95$1, 5e+72], N[(120.0 * a), $MachinePrecision], N[(N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] * -60.0), $MachinePrecision]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\
                    \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+70}:\\
                    \;\;\;\;\frac{60}{z - t} \cdot x\\
                    
                    \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+72}:\\
                    \;\;\;\;120 \cdot a\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{y}{z - t} \cdot -60\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.00000000000000007e70

                      1. Initial program 99.7%

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

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

                          \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                        2. lower-*.f64N/A

                          \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                        3. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{x}{z - t}} \cdot 60 \]
                        4. lower--.f6449.1

                          \[\leadsto \frac{x}{\color{blue}{z - t}} \cdot 60 \]
                      5. Applied rewrites49.1%

                        \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                      6. Step-by-step derivation
                        1. Applied rewrites49.0%

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

                        if -1.00000000000000007e70 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.99999999999999992e72

                        1. Initial program 99.9%

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

                          \[\leadsto \color{blue}{120 \cdot a} \]
                        4. Step-by-step derivation
                          1. lower-*.f6477.0

                            \[\leadsto \color{blue}{120 \cdot a} \]
                        5. Applied rewrites77.0%

                          \[\leadsto \color{blue}{120 \cdot a} \]

                        if 4.99999999999999992e72 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

                        1. Initial program 99.7%

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

                          \[\leadsto \color{blue}{120 \cdot a} \]
                        4. Step-by-step derivation
                          1. lower-*.f6410.3

                            \[\leadsto \color{blue}{120 \cdot a} \]
                        5. Applied rewrites10.3%

                          \[\leadsto \color{blue}{120 \cdot a} \]
                        6. Taylor expanded in a around 0

                          \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                        7. Step-by-step derivation
                          1. associate-*r/N/A

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

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

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

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

                            \[\leadsto \frac{\color{blue}{\left(x - y\right)} \cdot 60}{z - t} \]
                          6. lower--.f6492.1

                            \[\leadsto \frac{\left(x - y\right) \cdot 60}{\color{blue}{z - t}} \]
                        8. Applied rewrites92.1%

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

                          \[\leadsto -60 \cdot \color{blue}{\frac{y}{z - t}} \]
                        10. Step-by-step derivation
                          1. Applied rewrites46.9%

                            \[\leadsto \frac{y}{z - t} \cdot \color{blue}{-60} \]
                        11. Recombined 3 regimes into one program.
                        12. Final simplification65.5%

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

                        Alternative 10: 58.8% accurate, 0.4× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y}{z - t} \cdot -60\\ t_2 := \frac{\left(y - x\right) \cdot 60}{t - z}\\ \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+108}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+72}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                        (FPCore (x y z t a)
                         :precision binary64
                         (let* ((t_1 (* (/ y (- z t)) -60.0)) (t_2 (/ (* (- y x) 60.0) (- t z))))
                           (if (<= t_2 -1e+108) t_1 (if (<= t_2 5e+72) (* 120.0 a) t_1))))
                        double code(double x, double y, double z, double t, double a) {
                        	double t_1 = (y / (z - t)) * -60.0;
                        	double t_2 = ((y - x) * 60.0) / (t - z);
                        	double tmp;
                        	if (t_2 <= -1e+108) {
                        		tmp = t_1;
                        	} else if (t_2 <= 5e+72) {
                        		tmp = 120.0 * a;
                        	} else {
                        		tmp = t_1;
                        	}
                        	return tmp;
                        }
                        
                        real(8) function code(x, y, z, t, a)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8), intent (in) :: z
                            real(8), intent (in) :: t
                            real(8), intent (in) :: a
                            real(8) :: t_1
                            real(8) :: t_2
                            real(8) :: tmp
                            t_1 = (y / (z - t)) * (-60.0d0)
                            t_2 = ((y - x) * 60.0d0) / (t - z)
                            if (t_2 <= (-1d+108)) then
                                tmp = t_1
                            else if (t_2 <= 5d+72) then
                                tmp = 120.0d0 * a
                            else
                                tmp = t_1
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t, double a) {
                        	double t_1 = (y / (z - t)) * -60.0;
                        	double t_2 = ((y - x) * 60.0) / (t - z);
                        	double tmp;
                        	if (t_2 <= -1e+108) {
                        		tmp = t_1;
                        	} else if (t_2 <= 5e+72) {
                        		tmp = 120.0 * a;
                        	} else {
                        		tmp = t_1;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a):
                        	t_1 = (y / (z - t)) * -60.0
                        	t_2 = ((y - x) * 60.0) / (t - z)
                        	tmp = 0
                        	if t_2 <= -1e+108:
                        		tmp = t_1
                        	elif t_2 <= 5e+72:
                        		tmp = 120.0 * a
                        	else:
                        		tmp = t_1
                        	return tmp
                        
                        function code(x, y, z, t, a)
                        	t_1 = Float64(Float64(y / Float64(z - t)) * -60.0)
                        	t_2 = Float64(Float64(Float64(y - x) * 60.0) / Float64(t - z))
                        	tmp = 0.0
                        	if (t_2 <= -1e+108)
                        		tmp = t_1;
                        	elseif (t_2 <= 5e+72)
                        		tmp = Float64(120.0 * a);
                        	else
                        		tmp = t_1;
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a)
                        	t_1 = (y / (z - t)) * -60.0;
                        	t_2 = ((y - x) * 60.0) / (t - z);
                        	tmp = 0.0;
                        	if (t_2 <= -1e+108)
                        		tmp = t_1;
                        	elseif (t_2 <= 5e+72)
                        		tmp = 120.0 * a;
                        	else
                        		tmp = t_1;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] * -60.0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(y - x), $MachinePrecision] * 60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+108], t$95$1, If[LessEqual[t$95$2, 5e+72], N[(120.0 * a), $MachinePrecision], t$95$1]]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        t_1 := \frac{y}{z - t} \cdot -60\\
                        t_2 := \frac{\left(y - x\right) \cdot 60}{t - z}\\
                        \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+108}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+72}:\\
                        \;\;\;\;120 \cdot a\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;t\_1\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1e108 or 4.99999999999999992e72 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

                          1. Initial program 99.7%

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

                            \[\leadsto \color{blue}{120 \cdot a} \]
                          4. Step-by-step derivation
                            1. lower-*.f6411.9

                              \[\leadsto \color{blue}{120 \cdot a} \]
                          5. Applied rewrites11.9%

                            \[\leadsto \color{blue}{120 \cdot a} \]
                          6. Taylor expanded in a around 0

                            \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                          7. Step-by-step derivation
                            1. associate-*r/N/A

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

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

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

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

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

                              \[\leadsto \frac{\left(x - y\right) \cdot 60}{\color{blue}{z - t}} \]
                          8. Applied rewrites89.5%

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

                            \[\leadsto -60 \cdot \color{blue}{\frac{y}{z - t}} \]
                          10. Step-by-step derivation
                            1. Applied rewrites45.6%

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

                            if -1e108 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.99999999999999992e72

                            1. Initial program 99.9%

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

                              \[\leadsto \color{blue}{120 \cdot a} \]
                            4. Step-by-step derivation
                              1. lower-*.f6474.4

                                \[\leadsto \color{blue}{120 \cdot a} \]
                            5. Applied rewrites74.4%

                              \[\leadsto \color{blue}{120 \cdot a} \]
                          11. Recombined 2 regimes into one program.
                          12. Final simplification64.2%

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

                          Alternative 11: 53.7% accurate, 0.4× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\ \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+189}:\\ \;\;\;\;\frac{-60 \cdot y}{-t}\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+72}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{-t} \cdot 60\\ \end{array} \end{array} \]
                          (FPCore (x y z t a)
                           :precision binary64
                           (let* ((t_1 (/ (* (- y x) 60.0) (- t z))))
                             (if (<= t_1 -4e+189)
                               (/ (* -60.0 y) (- t))
                               (if (<= t_1 5e+72) (* 120.0 a) (* (/ x (- t)) 60.0)))))
                          double code(double x, double y, double z, double t, double a) {
                          	double t_1 = ((y - x) * 60.0) / (t - z);
                          	double tmp;
                          	if (t_1 <= -4e+189) {
                          		tmp = (-60.0 * y) / -t;
                          	} else if (t_1 <= 5e+72) {
                          		tmp = 120.0 * a;
                          	} else {
                          		tmp = (x / -t) * 60.0;
                          	}
                          	return tmp;
                          }
                          
                          real(8) function code(x, y, z, t, a)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              real(8), intent (in) :: z
                              real(8), intent (in) :: t
                              real(8), intent (in) :: a
                              real(8) :: t_1
                              real(8) :: tmp
                              t_1 = ((y - x) * 60.0d0) / (t - z)
                              if (t_1 <= (-4d+189)) then
                                  tmp = ((-60.0d0) * y) / -t
                              else if (t_1 <= 5d+72) then
                                  tmp = 120.0d0 * a
                              else
                                  tmp = (x / -t) * 60.0d0
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y, double z, double t, double a) {
                          	double t_1 = ((y - x) * 60.0) / (t - z);
                          	double tmp;
                          	if (t_1 <= -4e+189) {
                          		tmp = (-60.0 * y) / -t;
                          	} else if (t_1 <= 5e+72) {
                          		tmp = 120.0 * a;
                          	} else {
                          		tmp = (x / -t) * 60.0;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a):
                          	t_1 = ((y - x) * 60.0) / (t - z)
                          	tmp = 0
                          	if t_1 <= -4e+189:
                          		tmp = (-60.0 * y) / -t
                          	elif t_1 <= 5e+72:
                          		tmp = 120.0 * a
                          	else:
                          		tmp = (x / -t) * 60.0
                          	return tmp
                          
                          function code(x, y, z, t, a)
                          	t_1 = Float64(Float64(Float64(y - x) * 60.0) / Float64(t - z))
                          	tmp = 0.0
                          	if (t_1 <= -4e+189)
                          		tmp = Float64(Float64(-60.0 * y) / Float64(-t));
                          	elseif (t_1 <= 5e+72)
                          		tmp = Float64(120.0 * a);
                          	else
                          		tmp = Float64(Float64(x / Float64(-t)) * 60.0);
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t, a)
                          	t_1 = ((y - x) * 60.0) / (t - z);
                          	tmp = 0.0;
                          	if (t_1 <= -4e+189)
                          		tmp = (-60.0 * y) / -t;
                          	elseif (t_1 <= 5e+72)
                          		tmp = 120.0 * a;
                          	else
                          		tmp = (x / -t) * 60.0;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - x), $MachinePrecision] * 60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e+189], N[(N[(-60.0 * y), $MachinePrecision] / (-t)), $MachinePrecision], If[LessEqual[t$95$1, 5e+72], N[(120.0 * a), $MachinePrecision], N[(N[(x / (-t)), $MachinePrecision] * 60.0), $MachinePrecision]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := \frac{\left(y - x\right) \cdot 60}{t - z}\\
                          \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+189}:\\
                          \;\;\;\;\frac{-60 \cdot y}{-t}\\
                          
                          \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+72}:\\
                          \;\;\;\;120 \cdot a\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\frac{x}{-t} \cdot 60\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -4.0000000000000001e189

                            1. Initial program 99.7%

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

                              \[\leadsto \color{blue}{120 \cdot a} \]
                            4. Step-by-step derivation
                              1. lower-*.f644.6

                                \[\leadsto \color{blue}{120 \cdot a} \]
                            5. Applied rewrites4.6%

                              \[\leadsto \color{blue}{120 \cdot a} \]
                            6. Taylor expanded in a around 0

                              \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                            7. Step-by-step derivation
                              1. associate-*r/N/A

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

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

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

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

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

                                \[\leadsto \frac{\left(x - y\right) \cdot 60}{\color{blue}{z - t}} \]
                            8. Applied rewrites96.6%

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

                              \[\leadsto \frac{-60 \cdot y}{\color{blue}{z} - t} \]
                            10. Step-by-step derivation
                              1. Applied rewrites49.5%

                                \[\leadsto \frac{-60 \cdot y}{\color{blue}{z} - t} \]
                              2. Taylor expanded in z around 0

                                \[\leadsto \frac{-60 \cdot y}{-1 \cdot \color{blue}{t}} \]
                              3. Step-by-step derivation
                                1. Applied rewrites38.7%

                                  \[\leadsto \frac{-60 \cdot y}{-t} \]

                                if -4.0000000000000001e189 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.99999999999999992e72

                                1. Initial program 99.9%

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

                                  \[\leadsto \color{blue}{120 \cdot a} \]
                                4. Step-by-step derivation
                                  1. lower-*.f6469.3

                                    \[\leadsto \color{blue}{120 \cdot a} \]
                                5. Applied rewrites69.3%

                                  \[\leadsto \color{blue}{120 \cdot a} \]

                                if 4.99999999999999992e72 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

                                1. Initial program 99.7%

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

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

                                    \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                  2. lower-*.f64N/A

                                    \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                  3. lower-/.f64N/A

                                    \[\leadsto \color{blue}{\frac{x}{z - t}} \cdot 60 \]
                                  4. lower--.f6445.9

                                    \[\leadsto \frac{x}{\color{blue}{z - t}} \cdot 60 \]
                                5. Applied rewrites45.9%

                                  \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                6. Taylor expanded in z around 0

                                  \[\leadsto \frac{x}{-1 \cdot t} \cdot 60 \]
                                7. Step-by-step derivation
                                  1. Applied rewrites44.0%

                                    \[\leadsto \frac{x}{-t} \cdot 60 \]
                                8. Recombined 3 regimes into one program.
                                9. Final simplification61.6%

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

                                Alternative 12: 53.8% accurate, 0.4× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{-t} \cdot 60\\ t_2 := \frac{\left(y - x\right) \cdot 60}{t - z}\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+173}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+72}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                (FPCore (x y z t a)
                                 :precision binary64
                                 (let* ((t_1 (* (/ x (- t)) 60.0)) (t_2 (/ (* (- y x) 60.0) (- t z))))
                                   (if (<= t_2 -2e+173) t_1 (if (<= t_2 5e+72) (* 120.0 a) t_1))))
                                double code(double x, double y, double z, double t, double a) {
                                	double t_1 = (x / -t) * 60.0;
                                	double t_2 = ((y - x) * 60.0) / (t - z);
                                	double tmp;
                                	if (t_2 <= -2e+173) {
                                		tmp = t_1;
                                	} else if (t_2 <= 5e+72) {
                                		tmp = 120.0 * a;
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                real(8) function code(x, y, z, t, a)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    real(8), intent (in) :: z
                                    real(8), intent (in) :: t
                                    real(8), intent (in) :: a
                                    real(8) :: t_1
                                    real(8) :: t_2
                                    real(8) :: tmp
                                    t_1 = (x / -t) * 60.0d0
                                    t_2 = ((y - x) * 60.0d0) / (t - z)
                                    if (t_2 <= (-2d+173)) then
                                        tmp = t_1
                                    else if (t_2 <= 5d+72) then
                                        tmp = 120.0d0 * a
                                    else
                                        tmp = t_1
                                    end if
                                    code = tmp
                                end function
                                
                                public static double code(double x, double y, double z, double t, double a) {
                                	double t_1 = (x / -t) * 60.0;
                                	double t_2 = ((y - x) * 60.0) / (t - z);
                                	double tmp;
                                	if (t_2 <= -2e+173) {
                                		tmp = t_1;
                                	} else if (t_2 <= 5e+72) {
                                		tmp = 120.0 * a;
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a):
                                	t_1 = (x / -t) * 60.0
                                	t_2 = ((y - x) * 60.0) / (t - z)
                                	tmp = 0
                                	if t_2 <= -2e+173:
                                		tmp = t_1
                                	elif t_2 <= 5e+72:
                                		tmp = 120.0 * a
                                	else:
                                		tmp = t_1
                                	return tmp
                                
                                function code(x, y, z, t, a)
                                	t_1 = Float64(Float64(x / Float64(-t)) * 60.0)
                                	t_2 = Float64(Float64(Float64(y - x) * 60.0) / Float64(t - z))
                                	tmp = 0.0
                                	if (t_2 <= -2e+173)
                                		tmp = t_1;
                                	elseif (t_2 <= 5e+72)
                                		tmp = Float64(120.0 * a);
                                	else
                                		tmp = t_1;
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t, a)
                                	t_1 = (x / -t) * 60.0;
                                	t_2 = ((y - x) * 60.0) / (t - z);
                                	tmp = 0.0;
                                	if (t_2 <= -2e+173)
                                		tmp = t_1;
                                	elseif (t_2 <= 5e+72)
                                		tmp = 120.0 * a;
                                	else
                                		tmp = t_1;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x / (-t)), $MachinePrecision] * 60.0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(y - x), $MachinePrecision] * 60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+173], t$95$1, If[LessEqual[t$95$2, 5e+72], N[(120.0 * a), $MachinePrecision], t$95$1]]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \frac{x}{-t} \cdot 60\\
                                t_2 := \frac{\left(y - x\right) \cdot 60}{t - z}\\
                                \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+173}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+72}:\\
                                \;\;\;\;120 \cdot a\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -2e173 or 4.99999999999999992e72 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

                                  1. Initial program 99.7%

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

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

                                      \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                    2. lower-*.f64N/A

                                      \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                    3. lower-/.f64N/A

                                      \[\leadsto \color{blue}{\frac{x}{z - t}} \cdot 60 \]
                                    4. lower--.f6449.9

                                      \[\leadsto \frac{x}{\color{blue}{z - t}} \cdot 60 \]
                                  5. Applied rewrites49.9%

                                    \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                  6. Taylor expanded in z around 0

                                    \[\leadsto \frac{x}{-1 \cdot t} \cdot 60 \]
                                  7. Step-by-step derivation
                                    1. Applied rewrites38.7%

                                      \[\leadsto \frac{x}{-t} \cdot 60 \]

                                    if -2e173 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.99999999999999992e72

                                    1. Initial program 99.9%

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

                                      \[\leadsto \color{blue}{120 \cdot a} \]
                                    4. Step-by-step derivation
                                      1. lower-*.f6471.0

                                        \[\leadsto \color{blue}{120 \cdot a} \]
                                    5. Applied rewrites71.0%

                                      \[\leadsto \color{blue}{120 \cdot a} \]
                                  8. Recombined 2 regimes into one program.
                                  9. Final simplification61.3%

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

                                  Alternative 13: 52.5% accurate, 0.7× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq -5 \cdot 10^{+165}:\\ \;\;\;\;\frac{x}{z} \cdot 60\\ \mathbf{else}:\\ \;\;\;\;120 \cdot a\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a)
                                   :precision binary64
                                   (if (<= (/ (* (- y x) 60.0) (- t z)) -5e+165) (* (/ x z) 60.0) (* 120.0 a)))
                                  double code(double x, double y, double z, double t, double a) {
                                  	double tmp;
                                  	if ((((y - x) * 60.0) / (t - z)) <= -5e+165) {
                                  		tmp = (x / z) * 60.0;
                                  	} else {
                                  		tmp = 120.0 * a;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  real(8) function code(x, y, z, t, a)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      real(8), intent (in) :: z
                                      real(8), intent (in) :: t
                                      real(8), intent (in) :: a
                                      real(8) :: tmp
                                      if ((((y - x) * 60.0d0) / (t - z)) <= (-5d+165)) then
                                          tmp = (x / z) * 60.0d0
                                      else
                                          tmp = 120.0d0 * a
                                      end if
                                      code = tmp
                                  end function
                                  
                                  public static double code(double x, double y, double z, double t, double a) {
                                  	double tmp;
                                  	if ((((y - x) * 60.0) / (t - z)) <= -5e+165) {
                                  		tmp = (x / z) * 60.0;
                                  	} else {
                                  		tmp = 120.0 * a;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  def code(x, y, z, t, a):
                                  	tmp = 0
                                  	if (((y - x) * 60.0) / (t - z)) <= -5e+165:
                                  		tmp = (x / z) * 60.0
                                  	else:
                                  		tmp = 120.0 * a
                                  	return tmp
                                  
                                  function code(x, y, z, t, a)
                                  	tmp = 0.0
                                  	if (Float64(Float64(Float64(y - x) * 60.0) / Float64(t - z)) <= -5e+165)
                                  		tmp = Float64(Float64(x / z) * 60.0);
                                  	else
                                  		tmp = Float64(120.0 * a);
                                  	end
                                  	return tmp
                                  end
                                  
                                  function tmp_2 = code(x, y, z, t, a)
                                  	tmp = 0.0;
                                  	if ((((y - x) * 60.0) / (t - z)) <= -5e+165)
                                  		tmp = (x / z) * 60.0;
                                  	else
                                  		tmp = 120.0 * a;
                                  	end
                                  	tmp_2 = tmp;
                                  end
                                  
                                  code[x_, y_, z_, t_, a_] := If[LessEqual[N[(N[(N[(y - x), $MachinePrecision] * 60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], -5e+165], N[(N[(x / z), $MachinePrecision] * 60.0), $MachinePrecision], N[(120.0 * a), $MachinePrecision]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;\frac{\left(y - x\right) \cdot 60}{t - z} \leq -5 \cdot 10^{+165}:\\
                                  \;\;\;\;\frac{x}{z} \cdot 60\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;120 \cdot a\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -4.9999999999999997e165

                                    1. Initial program 99.7%

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

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

                                        \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                      2. lower-*.f64N/A

                                        \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                      3. lower-/.f64N/A

                                        \[\leadsto \color{blue}{\frac{x}{z - t}} \cdot 60 \]
                                      4. lower--.f6453.6

                                        \[\leadsto \frac{x}{\color{blue}{z - t}} \cdot 60 \]
                                    5. Applied rewrites53.6%

                                      \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                    6. Taylor expanded in z around inf

                                      \[\leadsto \frac{x}{z} \cdot 60 \]
                                    7. Step-by-step derivation
                                      1. Applied rewrites34.2%

                                        \[\leadsto \frac{x}{z} \cdot 60 \]

                                      if -4.9999999999999997e165 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

                                      1. Initial program 99.8%

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

                                        \[\leadsto \color{blue}{120 \cdot a} \]
                                      4. Step-by-step derivation
                                        1. lower-*.f6460.4

                                          \[\leadsto \color{blue}{120 \cdot a} \]
                                      5. Applied rewrites60.4%

                                        \[\leadsto \color{blue}{120 \cdot a} \]
                                    8. Recombined 2 regimes into one program.
                                    9. Final simplification56.2%

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

                                    Alternative 14: 88.1% accurate, 0.8× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(120, a, \frac{y}{z - t} \cdot -60\right)\\ \mathbf{if}\;y \leq -2.4 \cdot 10^{+179}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.1 \cdot 10^{+63}:\\ \;\;\;\;\frac{x \cdot 60}{z - t} + 120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a)
                                     :precision binary64
                                     (let* ((t_1 (fma 120.0 a (* (/ y (- z t)) -60.0))))
                                       (if (<= y -2.4e+179)
                                         t_1
                                         (if (<= y 1.1e+63) (+ (/ (* x 60.0) (- z t)) (* 120.0 a)) t_1))))
                                    double code(double x, double y, double z, double t, double a) {
                                    	double t_1 = fma(120.0, a, ((y / (z - t)) * -60.0));
                                    	double tmp;
                                    	if (y <= -2.4e+179) {
                                    		tmp = t_1;
                                    	} else if (y <= 1.1e+63) {
                                    		tmp = ((x * 60.0) / (z - t)) + (120.0 * a);
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a)
                                    	t_1 = fma(120.0, a, Float64(Float64(y / Float64(z - t)) * -60.0))
                                    	tmp = 0.0
                                    	if (y <= -2.4e+179)
                                    		tmp = t_1;
                                    	elseif (y <= 1.1e+63)
                                    		tmp = Float64(Float64(Float64(x * 60.0) / Float64(z - t)) + Float64(120.0 * a));
                                    	else
                                    		tmp = t_1;
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(120.0 * a + N[(N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] * -60.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.4e+179], t$95$1, If[LessEqual[y, 1.1e+63], N[(N[(N[(x * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(120.0 * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \mathsf{fma}\left(120, a, \frac{y}{z - t} \cdot -60\right)\\
                                    \mathbf{if}\;y \leq -2.4 \cdot 10^{+179}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;y \leq 1.1 \cdot 10^{+63}:\\
                                    \;\;\;\;\frac{x \cdot 60}{z - t} + 120 \cdot a\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if y < -2.40000000000000013e179 or 1.0999999999999999e63 < y

                                      1. Initial program 99.8%

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

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

                                          \[\leadsto \color{blue}{120 \cdot a + -60 \cdot \frac{y}{z - t}} \]
                                        2. lower-fma.f64N/A

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(120, a, -60 \cdot \frac{y}{z - t}\right)} \]
                                        3. *-commutativeN/A

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

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

                                          \[\leadsto \mathsf{fma}\left(120, a, \color{blue}{\frac{y}{z - t}} \cdot -60\right) \]
                                        6. lower--.f6490.2

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

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

                                      if -2.40000000000000013e179 < y < 1.0999999999999999e63

                                      1. Initial program 99.8%

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

                                        \[\leadsto \frac{\color{blue}{60 \cdot x}}{z - t} + a \cdot 120 \]
                                      4. Step-by-step derivation
                                        1. lower-*.f6492.4

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

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

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.4 \cdot 10^{+179}:\\ \;\;\;\;\mathsf{fma}\left(120, a, \frac{y}{z - t} \cdot -60\right)\\ \mathbf{elif}\;y \leq 1.1 \cdot 10^{+63}:\\ \;\;\;\;\frac{x \cdot 60}{z - t} + 120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(120, a, \frac{y}{z - t} \cdot -60\right)\\ \end{array} \]
                                    5. Add Preprocessing

                                    Alternative 15: 60.5% accurate, 0.9× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -2 \cdot 10^{+210}:\\ \;\;\;\;\frac{x}{z - t} \cdot 60\\ \mathbf{elif}\;x \leq 3.8 \cdot 10^{+207}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{60}{z - t} \cdot x\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a)
                                     :precision binary64
                                     (if (<= x -2e+210)
                                       (* (/ x (- z t)) 60.0)
                                       (if (<= x 3.8e+207) (fma (/ y t) 60.0 (* 120.0 a)) (* (/ 60.0 (- z t)) x))))
                                    double code(double x, double y, double z, double t, double a) {
                                    	double tmp;
                                    	if (x <= -2e+210) {
                                    		tmp = (x / (z - t)) * 60.0;
                                    	} else if (x <= 3.8e+207) {
                                    		tmp = fma((y / t), 60.0, (120.0 * a));
                                    	} else {
                                    		tmp = (60.0 / (z - t)) * x;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a)
                                    	tmp = 0.0
                                    	if (x <= -2e+210)
                                    		tmp = Float64(Float64(x / Float64(z - t)) * 60.0);
                                    	elseif (x <= 3.8e+207)
                                    		tmp = fma(Float64(y / t), 60.0, Float64(120.0 * a));
                                    	else
                                    		tmp = Float64(Float64(60.0 / Float64(z - t)) * x);
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_] := If[LessEqual[x, -2e+210], N[(N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision] * 60.0), $MachinePrecision], If[LessEqual[x, 3.8e+207], N[(N[(y / t), $MachinePrecision] * 60.0 + N[(120.0 * a), $MachinePrecision]), $MachinePrecision], N[(N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;x \leq -2 \cdot 10^{+210}:\\
                                    \;\;\;\;\frac{x}{z - t} \cdot 60\\
                                    
                                    \mathbf{elif}\;x \leq 3.8 \cdot 10^{+207}:\\
                                    \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\frac{60}{z - t} \cdot x\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 3 regimes
                                    2. if x < -1.99999999999999985e210

                                      1. Initial program 99.8%

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

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

                                          \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                        2. lower-*.f64N/A

                                          \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                        3. lower-/.f64N/A

                                          \[\leadsto \color{blue}{\frac{x}{z - t}} \cdot 60 \]
                                        4. lower--.f6484.1

                                          \[\leadsto \frac{x}{\color{blue}{z - t}} \cdot 60 \]
                                      5. Applied rewrites84.1%

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

                                      if -1.99999999999999985e210 < x < 3.79999999999999986e207

                                      1. Initial program 99.8%

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

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

                                          \[\leadsto \color{blue}{120 \cdot a + -60 \cdot \frac{y}{z - t}} \]
                                        2. lower-fma.f64N/A

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(120, a, -60 \cdot \frac{y}{z - t}\right)} \]
                                        3. *-commutativeN/A

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

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

                                          \[\leadsto \mathsf{fma}\left(120, a, \color{blue}{\frac{y}{z - t}} \cdot -60\right) \]
                                        6. lower--.f6484.8

                                          \[\leadsto \mathsf{fma}\left(120, a, \frac{y}{\color{blue}{z - t}} \cdot -60\right) \]
                                      5. Applied rewrites84.8%

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

                                        \[\leadsto 60 \cdot \frac{y}{t} + \color{blue}{120 \cdot a} \]
                                      7. Step-by-step derivation
                                        1. Applied rewrites66.0%

                                          \[\leadsto \mathsf{fma}\left(\frac{y}{t}, \color{blue}{60}, 120 \cdot a\right) \]

                                        if 3.79999999999999986e207 < x

                                        1. Initial program 99.6%

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

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

                                            \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                          2. lower-*.f64N/A

                                            \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                          3. lower-/.f64N/A

                                            \[\leadsto \color{blue}{\frac{x}{z - t}} \cdot 60 \]
                                          4. lower--.f6465.8

                                            \[\leadsto \frac{x}{\color{blue}{z - t}} \cdot 60 \]
                                        5. Applied rewrites65.8%

                                          \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
                                        6. Step-by-step derivation
                                          1. Applied rewrites65.8%

                                            \[\leadsto x \cdot \color{blue}{\frac{60}{z - t}} \]
                                        7. Recombined 3 regimes into one program.
                                        8. Final simplification67.6%

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -2 \cdot 10^{+210}:\\ \;\;\;\;\frac{x}{z - t} \cdot 60\\ \mathbf{elif}\;x \leq 3.8 \cdot 10^{+207}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{60}{z - t} \cdot x\\ \end{array} \]
                                        9. Add Preprocessing

                                        Alternative 16: 99.8% accurate, 1.1× speedup?

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

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

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

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

                                            \[\leadsto \color{blue}{a \cdot 120} + \frac{60 \cdot \left(x - y\right)}{z - t} \]
                                          4. lower-fma.f6499.8

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t}}\right) \]
                                          6. clear-numN/A

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{1}{\frac{z - t}{\color{blue}{60 \cdot \left(x - y\right)}}}\right) \]
                                          8. associate-/r*N/A

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{1}{\color{blue}{\frac{\frac{z - t}{60}}{x - y}}}\right) \]
                                          9. associate-/r/N/A

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

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t} \cdot \left(x - y\right)}\right) \]
                                          12. frac-2negN/A

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{\mathsf{neg}\left(60\right)}{\mathsf{neg}\left(\left(z - t\right)\right)}} \cdot \left(x - y\right)\right) \]
                                          14. metadata-evalN/A

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{\color{blue}{-60}}{\mathsf{neg}\left(\left(z - t\right)\right)} \cdot \left(x - y\right)\right) \]
                                          15. neg-sub0N/A

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{-60}{\color{blue}{0 - \left(z - t\right)}} \cdot \left(x - y\right)\right) \]
                                          16. lift--.f64N/A

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{-60}{0 - \color{blue}{\left(z - t\right)}} \cdot \left(x - y\right)\right) \]
                                          17. sub-negN/A

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{-60}{0 - \color{blue}{\left(z + \left(\mathsf{neg}\left(t\right)\right)\right)}} \cdot \left(x - y\right)\right) \]
                                          18. +-commutativeN/A

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{-60}{0 - \color{blue}{\left(\left(\mathsf{neg}\left(t\right)\right) + z\right)}} \cdot \left(x - y\right)\right) \]
                                          19. associate--r+N/A

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{-60}{\color{blue}{\left(0 - \left(\mathsf{neg}\left(t\right)\right)\right) - z}} \cdot \left(x - y\right)\right) \]
                                          20. neg-sub0N/A

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{-60}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right)} - z} \cdot \left(x - y\right)\right) \]
                                          21. remove-double-negN/A

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{-60}{\color{blue}{t} - z} \cdot \left(x - y\right)\right) \]
                                          22. lower--.f6499.8

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

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(a, 120, \frac{-60}{t - z} \cdot \left(x - y\right)\right)} \]
                                        5. Final simplification99.8%

                                          \[\leadsto \mathsf{fma}\left(a, 120, \left(y - x\right) \cdot \frac{-60}{z - t}\right) \]
                                        6. Add Preprocessing

                                        Alternative 17: 50.3% accurate, 5.2× speedup?

                                        \[\begin{array}{l} \\ 120 \cdot a \end{array} \]
                                        (FPCore (x y z t a) :precision binary64 (* 120.0 a))
                                        double code(double x, double y, double z, double t, double a) {
                                        	return 120.0 * a;
                                        }
                                        
                                        real(8) function code(x, y, z, t, a)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            real(8), intent (in) :: z
                                            real(8), intent (in) :: t
                                            real(8), intent (in) :: a
                                            code = 120.0d0 * a
                                        end function
                                        
                                        public static double code(double x, double y, double z, double t, double a) {
                                        	return 120.0 * a;
                                        }
                                        
                                        def code(x, y, z, t, a):
                                        	return 120.0 * a
                                        
                                        function code(x, y, z, t, a)
                                        	return Float64(120.0 * a)
                                        end
                                        
                                        function tmp = code(x, y, z, t, a)
                                        	tmp = 120.0 * a;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_] := N[(120.0 * a), $MachinePrecision]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        120 \cdot a
                                        \end{array}
                                        
                                        Derivation
                                        1. Initial program 99.8%

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

                                          \[\leadsto \color{blue}{120 \cdot a} \]
                                        4. Step-by-step derivation
                                          1. lower-*.f6452.2

                                            \[\leadsto \color{blue}{120 \cdot a} \]
                                        5. Applied rewrites52.2%

                                          \[\leadsto \color{blue}{120 \cdot a} \]
                                        6. Add Preprocessing

                                        Developer Target 1: 99.8% accurate, 0.8× speedup?

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

                                        Reproduce

                                        ?
                                        herbie shell --seed 2024298 
                                        (FPCore (x y z t a)
                                          :name "Data.Colour.RGB:hslsv from colour-2.3.3, B"
                                          :precision binary64
                                        
                                          :alt
                                          (! :herbie-platform default (+ (/ 60 (/ (- z t) (- x y))) (* a 120)))
                                        
                                          (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))