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

Percentage Accurate: 99.6% → 99.6%
Time: 12.2s
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.6% 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.6% accurate, 1.1× speedup?

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

\\
\mathsf{fma}\left(a, 120, \frac{\left(x - y\right) \cdot -60}{t - z}\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. frac-2negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 74.6% accurate, 0.3× speedup?

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

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

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

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

\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.99999999999999992e28

    1. Initial program 99.6%

      \[\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. lower-/.f64N/A

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

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

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

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

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

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

      if -1.99999999999999992e28 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -2e-100

      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. frac-2negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{-60 \cdot \frac{x - y}{t}}\right) \]
      6. Step-by-step derivation
        1. lower-*.f64N/A

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

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

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

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

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

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

        if -2e-100 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5e14

        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-*.f6480.1

            \[\leadsto \color{blue}{120 \cdot a} \]
        5. Applied rewrites80.1%

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

        if 5e14 < (/.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 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. lower-/.f64N/A

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

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

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

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

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

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

      Alternative 3: 60.3% accurate, 0.3× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := -60 \cdot \frac{x - y}{t}\\ t_2 := \left(x - y\right) \cdot 60\\ t_3 := \frac{t\_2}{z - t}\\ \mathbf{if}\;t\_3 \leq -2 \cdot 10^{+99}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+24}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+105}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\frac{t\_2}{z}\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (let* ((t_1 (* -60.0 (/ (- x y) t)))
              (t_2 (* (- x y) 60.0))
              (t_3 (/ t_2 (- z t))))
         (if (<= t_3 -2e+99)
           t_1
           (if (<= t_3 5e+24) (* a 120.0) (if (<= t_3 2e+105) t_1 (/ t_2 z))))))
      double code(double x, double y, double z, double t, double a) {
      	double t_1 = -60.0 * ((x - y) / t);
      	double t_2 = (x - y) * 60.0;
      	double t_3 = t_2 / (z - t);
      	double tmp;
      	if (t_3 <= -2e+99) {
      		tmp = t_1;
      	} else if (t_3 <= 5e+24) {
      		tmp = a * 120.0;
      	} else if (t_3 <= 2e+105) {
      		tmp = t_1;
      	} else {
      		tmp = t_2 / z;
      	}
      	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) :: t_3
          real(8) :: tmp
          t_1 = (-60.0d0) * ((x - y) / t)
          t_2 = (x - y) * 60.0d0
          t_3 = t_2 / (z - t)
          if (t_3 <= (-2d+99)) then
              tmp = t_1
          else if (t_3 <= 5d+24) then
              tmp = a * 120.0d0
          else if (t_3 <= 2d+105) then
              tmp = t_1
          else
              tmp = t_2 / z
          end if
          code = tmp
      end function
      
      public static double code(double x, double y, double z, double t, double a) {
      	double t_1 = -60.0 * ((x - y) / t);
      	double t_2 = (x - y) * 60.0;
      	double t_3 = t_2 / (z - t);
      	double tmp;
      	if (t_3 <= -2e+99) {
      		tmp = t_1;
      	} else if (t_3 <= 5e+24) {
      		tmp = a * 120.0;
      	} else if (t_3 <= 2e+105) {
      		tmp = t_1;
      	} else {
      		tmp = t_2 / z;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a):
      	t_1 = -60.0 * ((x - y) / t)
      	t_2 = (x - y) * 60.0
      	t_3 = t_2 / (z - t)
      	tmp = 0
      	if t_3 <= -2e+99:
      		tmp = t_1
      	elif t_3 <= 5e+24:
      		tmp = a * 120.0
      	elif t_3 <= 2e+105:
      		tmp = t_1
      	else:
      		tmp = t_2 / z
      	return tmp
      
      function code(x, y, z, t, a)
      	t_1 = Float64(-60.0 * Float64(Float64(x - y) / t))
      	t_2 = Float64(Float64(x - y) * 60.0)
      	t_3 = Float64(t_2 / Float64(z - t))
      	tmp = 0.0
      	if (t_3 <= -2e+99)
      		tmp = t_1;
      	elseif (t_3 <= 5e+24)
      		tmp = Float64(a * 120.0);
      	elseif (t_3 <= 2e+105)
      		tmp = t_1;
      	else
      		tmp = Float64(t_2 / z);
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a)
      	t_1 = -60.0 * ((x - y) / t);
      	t_2 = (x - y) * 60.0;
      	t_3 = t_2 / (z - t);
      	tmp = 0.0;
      	if (t_3 <= -2e+99)
      		tmp = t_1;
      	elseif (t_3 <= 5e+24)
      		tmp = a * 120.0;
      	elseif (t_3 <= 2e+105)
      		tmp = t_1;
      	else
      		tmp = t_2 / z;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-60.0 * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -2e+99], t$95$1, If[LessEqual[t$95$3, 5e+24], N[(a * 120.0), $MachinePrecision], If[LessEqual[t$95$3, 2e+105], t$95$1, N[(t$95$2 / z), $MachinePrecision]]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := -60 \cdot \frac{x - y}{t}\\
      t_2 := \left(x - y\right) \cdot 60\\
      t_3 := \frac{t\_2}{z - t}\\
      \mathbf{if}\;t\_3 \leq -2 \cdot 10^{+99}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+24}:\\
      \;\;\;\;a \cdot 120\\
      
      \mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+105}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{t\_2}{z}\\
      
      
      \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.9999999999999999e99 or 5.00000000000000045e24 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 1.9999999999999999e105

        1. Initial program 99.6%

          \[\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. lower-/.f64N/A

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

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

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

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

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

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

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

          if -1.9999999999999999e99 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5.00000000000000045e24

          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-*.f6469.0

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

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

          if 1.9999999999999999e105 < (/.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 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. lower-/.f64N/A

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

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

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

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

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

            \[\leadsto 60 \cdot \color{blue}{\frac{x - y}{z}} \]
          7. Step-by-step derivation
            1. Applied rewrites57.5%

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

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

          Alternative 4: 74.8% accurate, 0.4× speedup?

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

            1. Initial program 99.6%

              \[\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. lower-/.f64N/A

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

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

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

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

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

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

              if -1.99999999999999992e28 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5e14

              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-*.f6474.4

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

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

              if 5e14 < (/.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 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. lower-/.f64N/A

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

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

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

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

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

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

            Alternative 5: 74.8% accurate, 0.4× speedup?

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

              1. Initial program 99.6%

                \[\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. lower-/.f64N/A

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

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

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

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

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

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

                if -1.99999999999999992e28 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5e14

                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-*.f6474.4

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

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

                if 5e14 < (/.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 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. lower-/.f64N/A

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

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

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

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

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

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

              Alternative 6: 74.8% accurate, 0.4× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x - y\right) \cdot \frac{-60}{t - z}\\ t_2 := \frac{\left(x - y\right) \cdot 60}{z - t}\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+28}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+14}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              (FPCore (x y z t a)
               :precision binary64
               (let* ((t_1 (* (- x y) (/ -60.0 (- t z)))) (t_2 (/ (* (- x y) 60.0) (- z t))))
                 (if (<= t_2 -2e+28) t_1 (if (<= t_2 5e+14) (* a 120.0) t_1))))
              double code(double x, double y, double z, double t, double a) {
              	double t_1 = (x - y) * (-60.0 / (t - z));
              	double t_2 = ((x - y) * 60.0) / (z - t);
              	double tmp;
              	if (t_2 <= -2e+28) {
              		tmp = t_1;
              	} else if (t_2 <= 5e+14) {
              		tmp = a * 120.0;
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              real(8) function code(x, y, z, t, a)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8), intent (in) :: a
                  real(8) :: t_1
                  real(8) :: t_2
                  real(8) :: tmp
                  t_1 = (x - y) * ((-60.0d0) / (t - z))
                  t_2 = ((x - y) * 60.0d0) / (z - t)
                  if (t_2 <= (-2d+28)) then
                      tmp = t_1
                  else if (t_2 <= 5d+14) then
                      tmp = a * 120.0d0
                  else
                      tmp = t_1
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y, double z, double t, double a) {
              	double t_1 = (x - y) * (-60.0 / (t - z));
              	double t_2 = ((x - y) * 60.0) / (z - t);
              	double tmp;
              	if (t_2 <= -2e+28) {
              		tmp = t_1;
              	} else if (t_2 <= 5e+14) {
              		tmp = a * 120.0;
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              def code(x, y, z, t, a):
              	t_1 = (x - y) * (-60.0 / (t - z))
              	t_2 = ((x - y) * 60.0) / (z - t)
              	tmp = 0
              	if t_2 <= -2e+28:
              		tmp = t_1
              	elif t_2 <= 5e+14:
              		tmp = a * 120.0
              	else:
              		tmp = t_1
              	return tmp
              
              function code(x, y, z, t, a)
              	t_1 = Float64(Float64(x - y) * Float64(-60.0 / Float64(t - z)))
              	t_2 = Float64(Float64(Float64(x - y) * 60.0) / Float64(z - t))
              	tmp = 0.0
              	if (t_2 <= -2e+28)
              		tmp = t_1;
              	elseif (t_2 <= 5e+14)
              		tmp = Float64(a * 120.0);
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t, a)
              	t_1 = (x - y) * (-60.0 / (t - z));
              	t_2 = ((x - y) * 60.0) / (z - t);
              	tmp = 0.0;
              	if (t_2 <= -2e+28)
              		tmp = t_1;
              	elseif (t_2 <= 5e+14)
              		tmp = a * 120.0;
              	else
              		tmp = t_1;
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x - y), $MachinePrecision] * N[(-60.0 / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+28], t$95$1, If[LessEqual[t$95$2, 5e+14], N[(a * 120.0), $MachinePrecision], t$95$1]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \left(x - y\right) \cdot \frac{-60}{t - z}\\
              t_2 := \frac{\left(x - y\right) \cdot 60}{z - t}\\
              \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+28}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+14}:\\
              \;\;\;\;a \cdot 120\\
              
              \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)) < -1.99999999999999992e28 or 5e14 < (/.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. lower-/.f64N/A

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

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

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

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

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

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

                  if -1.99999999999999992e28 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5e14

                  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-*.f6474.4

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

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

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

                Alternative 7: 60.1% accurate, 0.4× speedup?

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

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

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

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

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

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

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

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

                    if -1.9999999999999999e99 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5.00000000000000045e24

                    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-*.f6469.0

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

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

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

                  Alternative 8: 57.8% accurate, 0.4× speedup?

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

                        \[\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. frac-2negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -1.99999999999999992e28 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5e14

                    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-*.f6474.4

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

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

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

                  Alternative 9: 54.9% accurate, 0.4× speedup?

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

                    1. Initial program 99.5%

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

                        \[\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. frac-2negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto -60 \cdot \color{blue}{\frac{x}{t - z}} \]
                      3. lower--.f6450.2

                        \[\leadsto -60 \cdot \frac{x}{\color{blue}{t - z}} \]
                    7. Applied rewrites50.2%

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

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

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

                      if -1.9999999999999999e99 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 3.9999999999999998e163

                      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-*.f6463.8

                          \[\leadsto \color{blue}{120 \cdot a} \]
                      5. Applied rewrites63.8%

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

                      if 3.9999999999999998e163 < (/.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. 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. frac-2negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto 60 \cdot \color{blue}{\frac{x}{z}} \]
                        3. Step-by-step derivation
                          1. Applied rewrites43.1%

                            \[\leadsto x \cdot \color{blue}{\frac{60}{z}} \]
                        4. Recombined 3 regimes into one program.
                        5. Final simplification58.2%

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

                        Alternative 10: 54.9% accurate, 0.4× speedup?

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

                          1. Initial program 99.5%

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

                              \[\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. frac-2negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto -60 \cdot \color{blue}{\frac{x}{t - z}} \]
                            3. lower--.f6450.2

                              \[\leadsto -60 \cdot \frac{x}{\color{blue}{t - z}} \]
                          7. Applied rewrites50.2%

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

                            \[\leadsto -60 \cdot \color{blue}{\frac{x}{t}} \]
                          9. Step-by-step derivation
                            1. Applied rewrites40.5%

                              \[\leadsto \frac{-60 \cdot x}{\color{blue}{t}} \]
                            2. Step-by-step derivation
                              1. Applied rewrites40.5%

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

                              if -1.9999999999999999e99 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 3.9999999999999998e163

                              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-*.f6463.8

                                  \[\leadsto \color{blue}{120 \cdot a} \]
                              5. Applied rewrites63.8%

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

                              if 3.9999999999999998e163 < (/.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. 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. frac-2negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto 60 \cdot \color{blue}{\frac{x}{z}} \]
                                3. Step-by-step derivation
                                  1. Applied rewrites43.1%

                                    \[\leadsto x \cdot \color{blue}{\frac{60}{z}} \]
                                4. Recombined 3 regimes into one program.
                                5. Final simplification58.2%

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

                                Alternative 11: 54.9% accurate, 0.4× speedup?

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

                                  1. Initial program 99.6%

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

                                      \[\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. frac-2negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto -60 \cdot \color{blue}{\frac{x}{t - z}} \]
                                    3. lower--.f6451.2

                                      \[\leadsto -60 \cdot \frac{x}{\color{blue}{t - z}} \]
                                  7. Applied rewrites51.2%

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

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

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

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

                                      if -1.9999999999999999e99 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 1.99999999999999997e213

                                      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-*.f6461.6

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

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

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

                                    Alternative 12: 84.3% accurate, 0.8× speedup?

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

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

                                          \[\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. frac-2negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{-60 \cdot \frac{x - y}{t}}\right) \]
                                      6. Step-by-step derivation
                                        1. lower-*.f64N/A

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

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

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

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

                                      if -6.00000000000000033e-77 < t < 2.14999999999999995e-32

                                      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. frac-2negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if 2.14999999999999995e-32 < 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 0

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

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

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

                                          \[\leadsto \mathsf{fma}\left(-60, \frac{\color{blue}{x - y}}{t}, 120 \cdot a\right) \]
                                        4. lower-*.f6493.3

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

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

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

                                    Alternative 13: 80.2% accurate, 0.8× speedup?

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

                                      1. Initial program 99.9%

                                        \[\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. lower-/.f64N/A

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

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

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

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

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

                                      if -1.0200000000000001e29 < y < 1.8500000000000001e111

                                      1. Initial program 99.8%

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

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

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

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

                                          \[\leadsto \mathsf{fma}\left(60, \frac{x}{\color{blue}{z - t}}, 120 \cdot a\right) \]
                                        4. lower-*.f6493.0

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

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

                                      if 1.8500000000000001e111 < y

                                      1. Initial program 99.5%

                                        \[\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. lower-/.f64N/A

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

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

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

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

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

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

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

                                      Alternative 14: 74.5% accurate, 0.8× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-60, \frac{x - y}{t}, a \cdot 120\right)\\ \mathbf{if}\;t \leq -1.02 \cdot 10^{-63}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.4 \cdot 10^{-31}:\\ \;\;\;\;\frac{x - y}{\left(t - z\right) \cdot -0.016666666666666666}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a)
                                       :precision binary64
                                       (let* ((t_1 (fma -60.0 (/ (- x y) t) (* a 120.0))))
                                         (if (<= t -1.02e-63)
                                           t_1
                                           (if (<= t 1.4e-31) (/ (- x y) (* (- t z) -0.016666666666666666)) t_1))))
                                      double code(double x, double y, double z, double t, double a) {
                                      	double t_1 = fma(-60.0, ((x - y) / t), (a * 120.0));
                                      	double tmp;
                                      	if (t <= -1.02e-63) {
                                      		tmp = t_1;
                                      	} else if (t <= 1.4e-31) {
                                      		tmp = (x - y) / ((t - z) * -0.016666666666666666);
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(x, y, z, t, a)
                                      	t_1 = fma(-60.0, Float64(Float64(x - y) / t), Float64(a * 120.0))
                                      	tmp = 0.0
                                      	if (t <= -1.02e-63)
                                      		tmp = t_1;
                                      	elseif (t <= 1.4e-31)
                                      		tmp = Float64(Float64(x - y) / Float64(Float64(t - z) * -0.016666666666666666));
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	return tmp
                                      end
                                      
                                      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-60.0 * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.02e-63], t$95$1, If[LessEqual[t, 1.4e-31], N[(N[(x - y), $MachinePrecision] / N[(N[(t - z), $MachinePrecision] * -0.016666666666666666), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \mathsf{fma}\left(-60, \frac{x - y}{t}, a \cdot 120\right)\\
                                      \mathbf{if}\;t \leq -1.02 \cdot 10^{-63}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;t \leq 1.4 \cdot 10^{-31}:\\
                                      \;\;\;\;\frac{x - y}{\left(t - z\right) \cdot -0.016666666666666666}\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if t < -1.01999999999999997e-63 or 1.3999999999999999e-31 < 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 0

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

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

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

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

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

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

                                        if -1.01999999999999997e-63 < t < 1.3999999999999999e-31

                                        1. Initial program 99.8%

                                          \[\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. lower-/.f64N/A

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

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

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

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

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

                                            \[\leadsto \color{blue}{\frac{x - y}{\left(t - z\right) \cdot -0.016666666666666666}} \]
                                        7. Recombined 2 regimes into one program.
                                        8. Final simplification82.1%

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

                                        Alternative 15: 56.4% accurate, 1.0× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y}{\left(t - z\right) \cdot 0.016666666666666666}\\ \mathbf{if}\;y \leq -5.1 \cdot 10^{+24}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.85 \cdot 10^{+111}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a)
                                         :precision binary64
                                         (let* ((t_1 (/ y (* (- t z) 0.016666666666666666))))
                                           (if (<= y -5.1e+24) t_1 (if (<= y 1.85e+111) (* a 120.0) t_1))))
                                        double code(double x, double y, double z, double t, double a) {
                                        	double t_1 = y / ((t - z) * 0.016666666666666666);
                                        	double tmp;
                                        	if (y <= -5.1e+24) {
                                        		tmp = t_1;
                                        	} else if (y <= 1.85e+111) {
                                        		tmp = a * 120.0;
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        real(8) function code(x, y, z, t, a)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            real(8), intent (in) :: z
                                            real(8), intent (in) :: t
                                            real(8), intent (in) :: a
                                            real(8) :: t_1
                                            real(8) :: tmp
                                            t_1 = y / ((t - z) * 0.016666666666666666d0)
                                            if (y <= (-5.1d+24)) then
                                                tmp = t_1
                                            else if (y <= 1.85d+111) then
                                                tmp = a * 120.0d0
                                            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 / ((t - z) * 0.016666666666666666);
                                        	double tmp;
                                        	if (y <= -5.1e+24) {
                                        		tmp = t_1;
                                        	} else if (y <= 1.85e+111) {
                                        		tmp = a * 120.0;
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a):
                                        	t_1 = y / ((t - z) * 0.016666666666666666)
                                        	tmp = 0
                                        	if y <= -5.1e+24:
                                        		tmp = t_1
                                        	elif y <= 1.85e+111:
                                        		tmp = a * 120.0
                                        	else:
                                        		tmp = t_1
                                        	return tmp
                                        
                                        function code(x, y, z, t, a)
                                        	t_1 = Float64(y / Float64(Float64(t - z) * 0.016666666666666666))
                                        	tmp = 0.0
                                        	if (y <= -5.1e+24)
                                        		tmp = t_1;
                                        	elseif (y <= 1.85e+111)
                                        		tmp = Float64(a * 120.0);
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a)
                                        	t_1 = y / ((t - z) * 0.016666666666666666);
                                        	tmp = 0.0;
                                        	if (y <= -5.1e+24)
                                        		tmp = t_1;
                                        	elseif (y <= 1.85e+111)
                                        		tmp = a * 120.0;
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y / N[(N[(t - z), $MachinePrecision] * 0.016666666666666666), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.1e+24], t$95$1, If[LessEqual[y, 1.85e+111], N[(a * 120.0), $MachinePrecision], t$95$1]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \frac{y}{\left(t - z\right) \cdot 0.016666666666666666}\\
                                        \mathbf{if}\;y \leq -5.1 \cdot 10^{+24}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;y \leq 1.85 \cdot 10^{+111}:\\
                                        \;\;\;\;a \cdot 120\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if y < -5.0999999999999995e24 or 1.8500000000000001e111 < y

                                          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. lower-/.f64N/A

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

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

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

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

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

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

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

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

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

                                                if -5.0999999999999995e24 < y < 1.8500000000000001e111

                                                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-*.f6463.4

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

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

                                                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.1 \cdot 10^{+24}:\\ \;\;\;\;\frac{y}{\left(t - z\right) \cdot 0.016666666666666666}\\ \mathbf{elif}\;y \leq 1.85 \cdot 10^{+111}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{\left(t - z\right) \cdot 0.016666666666666666}\\ \end{array} \]
                                              5. Add Preprocessing

                                              Alternative 16: 56.4% accurate, 1.0× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \frac{60}{t - z}\\ \mathbf{if}\;y \leq -5.1 \cdot 10^{+24}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.85 \cdot 10^{+111}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                              (FPCore (x y z t a)
                                               :precision binary64
                                               (let* ((t_1 (* y (/ 60.0 (- t z)))))
                                                 (if (<= y -5.1e+24) t_1 (if (<= y 1.85e+111) (* a 120.0) t_1))))
                                              double code(double x, double y, double z, double t, double a) {
                                              	double t_1 = y * (60.0 / (t - z));
                                              	double tmp;
                                              	if (y <= -5.1e+24) {
                                              		tmp = t_1;
                                              	} else if (y <= 1.85e+111) {
                                              		tmp = a * 120.0;
                                              	} else {
                                              		tmp = t_1;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              real(8) function code(x, y, z, t, a)
                                                  real(8), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  real(8), intent (in) :: z
                                                  real(8), intent (in) :: t
                                                  real(8), intent (in) :: a
                                                  real(8) :: t_1
                                                  real(8) :: tmp
                                                  t_1 = y * (60.0d0 / (t - z))
                                                  if (y <= (-5.1d+24)) then
                                                      tmp = t_1
                                                  else if (y <= 1.85d+111) then
                                                      tmp = a * 120.0d0
                                                  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 * (60.0 / (t - z));
                                              	double tmp;
                                              	if (y <= -5.1e+24) {
                                              		tmp = t_1;
                                              	} else if (y <= 1.85e+111) {
                                              		tmp = a * 120.0;
                                              	} else {
                                              		tmp = t_1;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              def code(x, y, z, t, a):
                                              	t_1 = y * (60.0 / (t - z))
                                              	tmp = 0
                                              	if y <= -5.1e+24:
                                              		tmp = t_1
                                              	elif y <= 1.85e+111:
                                              		tmp = a * 120.0
                                              	else:
                                              		tmp = t_1
                                              	return tmp
                                              
                                              function code(x, y, z, t, a)
                                              	t_1 = Float64(y * Float64(60.0 / Float64(t - z)))
                                              	tmp = 0.0
                                              	if (y <= -5.1e+24)
                                              		tmp = t_1;
                                              	elseif (y <= 1.85e+111)
                                              		tmp = Float64(a * 120.0);
                                              	else
                                              		tmp = t_1;
                                              	end
                                              	return tmp
                                              end
                                              
                                              function tmp_2 = code(x, y, z, t, a)
                                              	t_1 = y * (60.0 / (t - z));
                                              	tmp = 0.0;
                                              	if (y <= -5.1e+24)
                                              		tmp = t_1;
                                              	elseif (y <= 1.85e+111)
                                              		tmp = a * 120.0;
                                              	else
                                              		tmp = t_1;
                                              	end
                                              	tmp_2 = tmp;
                                              end
                                              
                                              code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(60.0 / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.1e+24], t$95$1, If[LessEqual[y, 1.85e+111], N[(a * 120.0), $MachinePrecision], t$95$1]]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              t_1 := y \cdot \frac{60}{t - z}\\
                                              \mathbf{if}\;y \leq -5.1 \cdot 10^{+24}:\\
                                              \;\;\;\;t\_1\\
                                              
                                              \mathbf{elif}\;y \leq 1.85 \cdot 10^{+111}:\\
                                              \;\;\;\;a \cdot 120\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;t\_1\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 2 regimes
                                              2. if y < -5.0999999999999995e24 or 1.8500000000000001e111 < y

                                                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. lower-/.f64N/A

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

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

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

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

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

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

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

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

                                                    if -5.0999999999999995e24 < y < 1.8500000000000001e111

                                                    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-*.f6463.4

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

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

                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.1 \cdot 10^{+24}:\\ \;\;\;\;y \cdot \frac{60}{t - z}\\ \mathbf{elif}\;y \leq 1.85 \cdot 10^{+111}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{60}{t - z}\\ \end{array} \]
                                                  6. Add Preprocessing

                                                  Alternative 17: 51.2% accurate, 5.2× speedup?

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

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

                                                    \[\leadsto \color{blue}{120 \cdot a} \]
                                                  6. Final simplification49.2%

                                                    \[\leadsto a \cdot 120 \]
                                                  7. 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 2024221 
                                                  (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)))