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

Percentage Accurate: 99.3% → 99.3%
Time: 12.7s
Alternatives: 16
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 16 alternatives:

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

Initial Program: 99.3% 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.3% 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: 59.6% accurate, 0.4× speedup?

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

\\
\begin{array}{l}
t_1 := \left(x - y\right) \cdot 60\\
t_2 := \frac{t\_1}{z - t}\\
\mathbf{if}\;t\_2 \leq -0.02:\\
\;\;\;\;\frac{t\_1}{-t}\\

\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+99}:\\
\;\;\;\;a \cdot 120\\

\mathbf{else}:\\
\;\;\;\;\frac{x - y}{t \cdot -0.016666666666666666}\\


\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)) < -0.0200000000000000004

    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--.f6483.2

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

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

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

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

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

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

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

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

      if 1.9999999999999999e99 < (/.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--.f6482.5

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

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

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

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

            \[\leadsto \frac{x - y}{t \cdot \color{blue}{-0.016666666666666666}} \]
        4. Recombined 3 regimes into one program.
        5. Final simplification64.4%

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

        Alternative 3: 59.6% accurate, 0.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

            Alternative 4: 59.6% 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 -0.02:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+99}:\\ \;\;\;\;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 -0.02) t_1 (if (<= t_2 2e+99) (* 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 <= -0.02) {
            		tmp = t_1;
            	} else if (t_2 <= 2e+99) {
            		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 <= (-0.02d0)) then
                    tmp = t_1
                else if (t_2 <= 2d+99) 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 <= -0.02) {
            		tmp = t_1;
            	} else if (t_2 <= 2e+99) {
            		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 <= -0.02:
            		tmp = t_1
            	elif t_2 <= 2e+99:
            		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 <= -0.02)
            		tmp = t_1;
            	elseif (t_2 <= 2e+99)
            		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 <= -0.02)
            		tmp = t_1;
            	elseif (t_2 <= 2e+99)
            		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, -0.02], t$95$1, If[LessEqual[t$95$2, 2e+99], 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 -0.02:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+99}:\\
            \;\;\;\;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)) < -0.0200000000000000004 or 1.9999999999999999e99 < (/.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--.f6483.0

                  \[\leadsto \frac{60 \cdot \left(x - y\right)}{\color{blue}{z - t}} \]
              5. Applied rewrites83.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 rewrites55.0%

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

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

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

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

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

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

              Alternative 5: 53.2% 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^{+46}:\\ \;\;\;\;\frac{y \cdot 60}{t}\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+85}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot 60}{-t}\\ \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+46)
                   (/ (* y 60.0) t)
                   (if (<= t_1 2e+85) (* a 120.0) (/ (* x 60.0) (- t))))))
              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+46) {
              		tmp = (y * 60.0) / t;
              	} else if (t_1 <= 2e+85) {
              		tmp = a * 120.0;
              	} else {
              		tmp = (x * 60.0) / -t;
              	}
              	return tmp;
              }
              
              real(8) function code(x, y, z, t, a)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8), intent (in) :: a
                  real(8) :: t_1
                  real(8) :: tmp
                  t_1 = ((x - y) * 60.0d0) / (z - t)
                  if (t_1 <= (-2d+46)) then
                      tmp = (y * 60.0d0) / t
                  else if (t_1 <= 2d+85) then
                      tmp = a * 120.0d0
                  else
                      tmp = (x * 60.0d0) / -t
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y, double z, double t, double a) {
              	double t_1 = ((x - y) * 60.0) / (z - t);
              	double tmp;
              	if (t_1 <= -2e+46) {
              		tmp = (y * 60.0) / t;
              	} else if (t_1 <= 2e+85) {
              		tmp = a * 120.0;
              	} else {
              		tmp = (x * 60.0) / -t;
              	}
              	return tmp;
              }
              
              def code(x, y, z, t, a):
              	t_1 = ((x - y) * 60.0) / (z - t)
              	tmp = 0
              	if t_1 <= -2e+46:
              		tmp = (y * 60.0) / t
              	elif t_1 <= 2e+85:
              		tmp = a * 120.0
              	else:
              		tmp = (x * 60.0) / -t
              	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+46)
              		tmp = Float64(Float64(y * 60.0) / t);
              	elseif (t_1 <= 2e+85)
              		tmp = Float64(a * 120.0);
              	else
              		tmp = Float64(Float64(x * 60.0) / Float64(-t));
              	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+46)
              		tmp = (y * 60.0) / t;
              	elseif (t_1 <= 2e+85)
              		tmp = a * 120.0;
              	else
              		tmp = (x * 60.0) / -t;
              	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+46], N[(N[(y * 60.0), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t$95$1, 2e+85], N[(a * 120.0), $MachinePrecision], N[(N[(x * 60.0), $MachinePrecision] / (-t)), $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^{+46}:\\
              \;\;\;\;\frac{y \cdot 60}{t}\\
              
              \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+85}:\\
              \;\;\;\;a \cdot 120\\
              
              \mathbf{else}:\\
              \;\;\;\;\frac{x \cdot 60}{-t}\\
              
              
              \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)) < -2e46

                1. Initial program 99.7%

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

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

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

                    \[\leadsto -60 \cdot \color{blue}{\frac{y}{z - t}} \]
                  3. lower--.f6446.8

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

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

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

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

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

                  1. Initial program 99.9%

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

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

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

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

                  if 2e85 < (/.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--.f6482.5

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

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

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

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

                      \[\leadsto \frac{60 \cdot x}{\mathsf{neg}\left(\color{blue}{t}\right)} \]
                    3. Step-by-step derivation
                      1. Applied rewrites37.2%

                        \[\leadsto \frac{60 \cdot x}{-\color{blue}{t}} \]
                    4. Recombined 3 regimes into one program.
                    5. Final simplification56.8%

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

                    Alternative 6: 53.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^{+46}:\\ \;\;\;\;\frac{y \cdot 60}{t}\\ \mathbf{elif}\;t\_1 \leq 10^{+163}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{60}{t}\\ \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+46)
                         (/ (* y 60.0) t)
                         (if (<= t_1 1e+163) (* a 120.0) (* y (/ 60.0 t))))))
                    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+46) {
                    		tmp = (y * 60.0) / t;
                    	} else if (t_1 <= 1e+163) {
                    		tmp = a * 120.0;
                    	} else {
                    		tmp = y * (60.0 / t);
                    	}
                    	return tmp;
                    }
                    
                    real(8) function code(x, y, z, t, a)
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8), intent (in) :: z
                        real(8), intent (in) :: t
                        real(8), intent (in) :: a
                        real(8) :: t_1
                        real(8) :: tmp
                        t_1 = ((x - y) * 60.0d0) / (z - t)
                        if (t_1 <= (-2d+46)) then
                            tmp = (y * 60.0d0) / t
                        else if (t_1 <= 1d+163) then
                            tmp = a * 120.0d0
                        else
                            tmp = y * (60.0d0 / t)
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y, double z, double t, double a) {
                    	double t_1 = ((x - y) * 60.0) / (z - t);
                    	double tmp;
                    	if (t_1 <= -2e+46) {
                    		tmp = (y * 60.0) / t;
                    	} else if (t_1 <= 1e+163) {
                    		tmp = a * 120.0;
                    	} else {
                    		tmp = y * (60.0 / t);
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a):
                    	t_1 = ((x - y) * 60.0) / (z - t)
                    	tmp = 0
                    	if t_1 <= -2e+46:
                    		tmp = (y * 60.0) / t
                    	elif t_1 <= 1e+163:
                    		tmp = a * 120.0
                    	else:
                    		tmp = y * (60.0 / t)
                    	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+46)
                    		tmp = Float64(Float64(y * 60.0) / t);
                    	elseif (t_1 <= 1e+163)
                    		tmp = Float64(a * 120.0);
                    	else
                    		tmp = Float64(y * Float64(60.0 / t));
                    	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+46)
                    		tmp = (y * 60.0) / t;
                    	elseif (t_1 <= 1e+163)
                    		tmp = a * 120.0;
                    	else
                    		tmp = y * (60.0 / t);
                    	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+46], N[(N[(y * 60.0), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t$95$1, 1e+163], N[(a * 120.0), $MachinePrecision], N[(y * N[(60.0 / t), $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^{+46}:\\
                    \;\;\;\;\frac{y \cdot 60}{t}\\
                    
                    \mathbf{elif}\;t\_1 \leq 10^{+163}:\\
                    \;\;\;\;a \cdot 120\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;y \cdot \frac{60}{t}\\
                    
                    
                    \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)) < -2e46

                      1. Initial program 99.7%

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

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

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

                          \[\leadsto -60 \cdot \color{blue}{\frac{y}{z - t}} \]
                        3. lower--.f6446.8

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

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

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

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

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

                        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-*.f6465.5

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

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

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

                        1. Initial program 99.8%

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

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

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

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

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

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

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

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

                            \[\leadsto x \cdot \color{blue}{\frac{60}{z}} \]
                          2. Taylor expanded in y around inf

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

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

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

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

                              \[\leadsto y \cdot \frac{\color{blue}{\mathsf{neg}\left(60\right)}}{z - t} \]
                            5. distribute-neg-fracN/A

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

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

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

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

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

                              \[\leadsto y \cdot \left(\mathsf{neg}\left(\frac{\color{blue}{60}}{z - t}\right)\right) \]
                            11. distribute-neg-fracN/A

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

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

                              \[\leadsto y \cdot \color{blue}{\frac{-60}{z - t}} \]
                            14. lower--.f6450.5

                              \[\leadsto y \cdot \frac{-60}{\color{blue}{z - t}} \]
                          4. Applied rewrites50.5%

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

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

                              \[\leadsto y \cdot \frac{60}{\color{blue}{t}} \]
                          7. Recombined 3 regimes into one program.
                          8. Final simplification55.8%

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

                          Alternative 7: 53.8% accurate, 0.4× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y \cdot 60}{t}\\ t_2 := \frac{\left(x - y\right) \cdot 60}{z - t}\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+46}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 10^{+163}:\\ \;\;\;\;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)) (t_2 (/ (* (- x y) 60.0) (- z t))))
                             (if (<= t_2 -2e+46) t_1 (if (<= t_2 1e+163) (* a 120.0) t_1))))
                          double code(double x, double y, double z, double t, double a) {
                          	double t_1 = (y * 60.0) / t;
                          	double t_2 = ((x - y) * 60.0) / (z - t);
                          	double tmp;
                          	if (t_2 <= -2e+46) {
                          		tmp = t_1;
                          	} else if (t_2 <= 1e+163) {
                          		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 = (y * 60.0d0) / t
                              t_2 = ((x - y) * 60.0d0) / (z - t)
                              if (t_2 <= (-2d+46)) then
                                  tmp = t_1
                              else if (t_2 <= 1d+163) 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;
                          	double t_2 = ((x - y) * 60.0) / (z - t);
                          	double tmp;
                          	if (t_2 <= -2e+46) {
                          		tmp = t_1;
                          	} else if (t_2 <= 1e+163) {
                          		tmp = a * 120.0;
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a):
                          	t_1 = (y * 60.0) / t
                          	t_2 = ((x - y) * 60.0) / (z - t)
                          	tmp = 0
                          	if t_2 <= -2e+46:
                          		tmp = t_1
                          	elif t_2 <= 1e+163:
                          		tmp = a * 120.0
                          	else:
                          		tmp = t_1
                          	return tmp
                          
                          function code(x, y, z, t, a)
                          	t_1 = Float64(Float64(y * 60.0) / t)
                          	t_2 = Float64(Float64(Float64(x - y) * 60.0) / Float64(z - t))
                          	tmp = 0.0
                          	if (t_2 <= -2e+46)
                          		tmp = t_1;
                          	elseif (t_2 <= 1e+163)
                          		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;
                          	t_2 = ((x - y) * 60.0) / (z - t);
                          	tmp = 0.0;
                          	if (t_2 <= -2e+46)
                          		tmp = t_1;
                          	elseif (t_2 <= 1e+163)
                          		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[(y * 60.0), $MachinePrecision] / t), $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+46], t$95$1, If[LessEqual[t$95$2, 1e+163], N[(a * 120.0), $MachinePrecision], t$95$1]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := \frac{y \cdot 60}{t}\\
                          t_2 := \frac{\left(x - y\right) \cdot 60}{z - t}\\
                          \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+46}:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;t\_2 \leq 10^{+163}:\\
                          \;\;\;\;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)) < -2e46 or 9.9999999999999994e162 < (/.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 y around inf

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

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

                                \[\leadsto -60 \cdot \color{blue}{\frac{y}{z - t}} \]
                              3. lower--.f6447.8

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

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

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

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

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

                              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-*.f6465.5

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

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

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

                            Alternative 8: 73.4% accurate, 0.7× speedup?

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

                              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-*.f6479.7

                                  \[\leadsto \color{blue}{120 \cdot a} \]
                              5. Applied rewrites79.7%

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

                              if -4.99999999999999999e97 < (*.f64 a #s(literal 120 binary64)) < 1.0000000000000001e-33

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

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

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

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

                            Alternative 9: 73.7% accurate, 0.7× speedup?

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

                              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-*.f6479.7

                                  \[\leadsto \color{blue}{120 \cdot a} \]
                              5. Applied rewrites79.7%

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

                              if -4.99999999999999999e97 < (*.f64 a #s(literal 120 binary64)) < 1.0000000000000001e-33

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

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

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

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

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

                              Alternative 10: 77.7% accurate, 0.7× speedup?

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

                                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}{60 \cdot \frac{x - y}{z} + 120 \cdot a} \]
                                4. Step-by-step derivation
                                  1. lower-fma.f64N/A

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

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

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

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

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

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

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

                                  if -3.09999999999999996e67 < z < -2.74999999999999996e-44

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

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

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

                                  if -2.74999999999999996e-44 < z < 2.44999999999999995e67

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

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

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

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

                                Alternative 11: 60.8% accurate, 0.8× speedup?

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

                                  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}{60 \cdot \frac{x - y}{z} + 120 \cdot a} \]
                                  4. Step-by-step derivation
                                    1. lower-fma.f64N/A

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

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

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

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

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

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

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

                                    if -3.05e-181 < z < -2.9499999999999998e-240

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

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

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

                                    if -2.9499999999999998e-240 < z < 4.4000000000000001e-133

                                    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--.f6473.6

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

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

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

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

                                      if 4.4000000000000001e-133 < z

                                      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}{60 \cdot \frac{x - y}{z} + 120 \cdot a} \]
                                      4. Step-by-step derivation
                                        1. lower-fma.f64N/A

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

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

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

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

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

                                        \[\leadsto 60 \cdot \frac{x}{z} + \color{blue}{120 \cdot a} \]
                                      7. Step-by-step derivation
                                        1. Applied rewrites67.8%

                                          \[\leadsto \mathsf{fma}\left(x, \color{blue}{\frac{60}{z}}, 120 \cdot a\right) \]
                                        2. Step-by-step derivation
                                          1. Applied rewrites67.8%

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(a, 120, \frac{x}{z \cdot 0.016666666666666666}\right)} \]
                                        3. Recombined 4 regimes into one program.
                                        4. Final simplification67.1%

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

                                        Alternative 12: 61.2% accurate, 0.8× speedup?

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

                                          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}{60 \cdot \frac{x - y}{z} + 120 \cdot a} \]
                                          4. Step-by-step derivation
                                            1. lower-fma.f64N/A

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

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

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

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

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

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

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

                                            if -3.05e-181 < z < -2.9499999999999998e-240

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

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

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

                                            if -2.9499999999999998e-240 < z < 4.4000000000000001e-133

                                            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--.f6473.6

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

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

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

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

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.05 \cdot 10^{-181}:\\ \;\;\;\;\mathsf{fma}\left(-60, \frac{y}{z}, a \cdot 120\right)\\ \mathbf{elif}\;z \leq -2.95 \cdot 10^{-240}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;z \leq 4.4 \cdot 10^{-133}:\\ \;\;\;\;\frac{\left(x - y\right) \cdot 60}{-t}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-60, \frac{y}{z}, a \cdot 120\right)\\ \end{array} \]
                                            10. Add Preprocessing

                                            Alternative 13: 89.3% accurate, 0.8× speedup?

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

                                              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 0

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

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

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

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

                                              if -340 < y < 6.4999999999999998e80

                                              1. Initial program 99.9%

                                                \[\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 x around inf

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

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

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

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

                                            Alternative 14: 84.0% accurate, 0.8× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(60, \frac{x - y}{z}, a \cdot 120\right)\\ \mathbf{if}\;z \leq -2.1 \cdot 10^{-53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.45 \cdot 10^{-67}:\\ \;\;\;\;\mathsf{fma}\left(-60, \frac{x - y}{t}, a \cdot 120\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a)
                                             :precision binary64
                                             (let* ((t_1 (fma 60.0 (/ (- x y) z) (* a 120.0))))
                                               (if (<= z -2.1e-53)
                                                 t_1
                                                 (if (<= z 1.45e-67) (fma -60.0 (/ (- x y) t) (* a 120.0)) t_1))))
                                            double code(double x, double y, double z, double t, double a) {
                                            	double t_1 = fma(60.0, ((x - y) / z), (a * 120.0));
                                            	double tmp;
                                            	if (z <= -2.1e-53) {
                                            		tmp = t_1;
                                            	} else if (z <= 1.45e-67) {
                                            		tmp = fma(-60.0, ((x - y) / t), (a * 120.0));
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            function code(x, y, z, t, a)
                                            	t_1 = fma(60.0, Float64(Float64(x - y) / z), Float64(a * 120.0))
                                            	tmp = 0.0
                                            	if (z <= -2.1e-53)
                                            		tmp = t_1;
                                            	elseif (z <= 1.45e-67)
                                            		tmp = fma(-60.0, Float64(Float64(x - y) / t), Float64(a * 120.0));
                                            	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] / z), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.1e-53], t$95$1, If[LessEqual[z, 1.45e-67], N[(-60.0 * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            t_1 := \mathsf{fma}\left(60, \frac{x - y}{z}, a \cdot 120\right)\\
                                            \mathbf{if}\;z \leq -2.1 \cdot 10^{-53}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{elif}\;z \leq 1.45 \cdot 10^{-67}:\\
                                            \;\;\;\;\mathsf{fma}\left(-60, \frac{x - y}{t}, a \cdot 120\right)\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if z < -2.09999999999999977e-53 or 1.45000000000000002e-67 < z

                                              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}{60 \cdot \frac{x - y}{z} + 120 \cdot a} \]
                                              4. Step-by-step derivation
                                                1. lower-fma.f64N/A

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

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

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

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

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

                                              if -2.09999999999999977e-53 < z < 1.45000000000000002e-67

                                              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-*.f6493.5

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

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

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

                                            Alternative 15: 81.3% accurate, 0.8× speedup?

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

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

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

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

                                              if -2.5999999999999998e-16 < z < 1.94999999999999992e-81

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

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

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

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

                                            Alternative 16: 51.5% 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.6

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

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

                                              \[\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 2024232 
                                            (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)))