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

Percentage Accurate: 99.3% → 99.8%
Time: 13.6s
Alternatives: 19
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 19 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.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}
Derivation
  1. Initial program 99.4%

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{\frac{60}{\frac{z - t}{x - y}}} + a \cdot 120 \]
  5. Add Preprocessing

Alternative 2: 58.8% accurate, 0.4× speedup?

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

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

\mathbf{elif}\;t\_3 \leq 10^{+41}:\\
\;\;\;\;a \cdot 120\\

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


\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)) < -5.00000000000000018e-11 or 1.00000000000000001e41 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

    1. Initial program 99.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -5.00000000000000018e-11 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 1.00000000000000001e41

      1. Initial program 99.8%

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

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

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

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

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

    Alternative 3: 73.3% accurate, 0.6× speedup?

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

      1. Initial program 99.1%

        \[\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-*.f6479.3

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

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

      if -9.99999999999999914e28 < (*.f64 a #s(literal 120 binary64)) < 5e-31

      1. Initial program 99.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 4: 72.5% accurate, 0.7× speedup?

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

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

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

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

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

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

          if -5.00000000000000018e61 < (*.f64 a #s(literal 120 binary64)) < 1e-26

          1. Initial program 99.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

            if 1e-26 < (*.f64 a #s(literal 120 binary64))

            1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(-60, \color{blue}{\frac{y}{z}}, 120 \cdot a\right) \]
            11. Recombined 3 regimes into one program.
            12. Final simplification78.7%

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

            Alternative 5: 72.3% accurate, 0.7× speedup?

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

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

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

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

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

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

                if -5.00000000000000018e61 < (*.f64 a #s(literal 120 binary64)) < 1e-26

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

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

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

                if 1e-26 < (*.f64 a #s(literal 120 binary64))

                1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(-60, \color{blue}{\frac{y}{z}}, 120 \cdot a\right) \]
                11. Recombined 3 regimes into one program.
                12. Final simplification78.7%

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

                Alternative 6: 72.5% accurate, 0.7× speedup?

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

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

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

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

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

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

                    if -5.00000000000000018e61 < (*.f64 a #s(literal 120 binary64)) < 1e-26

                    1. Initial program 99.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if 1e-26 < (*.f64 a #s(literal 120 binary64))

                      1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(-60, \color{blue}{\frac{y}{z}}, 120 \cdot a\right) \]
                      11. Recombined 3 regimes into one program.
                      12. Final simplification78.7%

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

                      Alternative 7: 83.3% accurate, 0.8× speedup?

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

                        1. Initial program 99.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -8.99999999999999991e39 < z < 2.6000000000000001e-86

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

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

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

                        if 2.6000000000000001e-86 < z

                        1. Initial program 98.6%

                          \[\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-*.f6484.3

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

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

                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -9 \cdot 10^{+39}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{60 \cdot \left(x - y\right)}{z}\right)\\ \mathbf{elif}\;z \leq 2.6 \cdot 10^{-86}:\\ \;\;\;\;\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 8: 83.5% 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 -9 \cdot 10^{+39}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.6 \cdot 10^{-86}:\\ \;\;\;\;\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 -9e+39)
                           t_1
                           (if (<= z 2.6e-86) (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 <= -9e+39) {
                      		tmp = t_1;
                      	} else if (z <= 2.6e-86) {
                      		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 <= -9e+39)
                      		tmp = t_1;
                      	elseif (z <= 2.6e-86)
                      		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, -9e+39], t$95$1, If[LessEqual[z, 2.6e-86], 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 -9 \cdot 10^{+39}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;z \leq 2.6 \cdot 10^{-86}:\\
                      \;\;\;\;\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 < -8.99999999999999991e39 or 2.6000000000000001e-86 < z

                        1. Initial program 99.0%

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

                          \[\leadsto \color{blue}{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.8

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

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

                        if -8.99999999999999991e39 < z < 2.6000000000000001e-86

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

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

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

                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -9 \cdot 10^{+39}:\\ \;\;\;\;\mathsf{fma}\left(60, \frac{x - y}{z}, a \cdot 120\right)\\ \mathbf{elif}\;z \leq 2.6 \cdot 10^{-86}:\\ \;\;\;\;\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 9: 67.3% accurate, 0.9× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          if -9.20000000000000047e39 < z < 1.8999999999999999e-93

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

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

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

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

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

                            if 1.8999999999999999e-93 < z

                            1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            Alternative 10: 62.2% accurate, 0.9× speedup?

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

                              1. Initial program 99.2%

                                \[\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-*.f6481.1

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

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

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

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

                                if -5.49999999999999964e-83 < t < 8.19999999999999987e-85

                                1. Initial program 99.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5.5 \cdot 10^{-83}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{60}{t}, a \cdot 120\right)\\ \mathbf{elif}\;t \leq 8.2 \cdot 10^{-85}:\\ \;\;\;\;\frac{60 \cdot \left(x - y\right)}{z}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{60}{t}, a \cdot 120\right)\\ \end{array} \]
                                13. Add Preprocessing

                                Alternative 11: 57.8% accurate, 1.0× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.5 \cdot 10^{+150}:\\ \;\;\;\;\frac{y \cdot -60}{z - t}\\ \mathbf{elif}\;y \leq 3.8 \cdot 10^{+82}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;-60 \cdot \frac{y}{z - t}\\ \end{array} \end{array} \]
                                (FPCore (x y z t a)
                                 :precision binary64
                                 (if (<= y -3.5e+150)
                                   (/ (* y -60.0) (- z t))
                                   (if (<= y 3.8e+82) (* a 120.0) (* -60.0 (/ y (- z t))))))
                                double code(double x, double y, double z, double t, double a) {
                                	double tmp;
                                	if (y <= -3.5e+150) {
                                		tmp = (y * -60.0) / (z - t);
                                	} else if (y <= 3.8e+82) {
                                		tmp = a * 120.0;
                                	} else {
                                		tmp = -60.0 * (y / (z - 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) :: tmp
                                    if (y <= (-3.5d+150)) then
                                        tmp = (y * (-60.0d0)) / (z - t)
                                    else if (y <= 3.8d+82) then
                                        tmp = a * 120.0d0
                                    else
                                        tmp = (-60.0d0) * (y / (z - t))
                                    end if
                                    code = tmp
                                end function
                                
                                public static double code(double x, double y, double z, double t, double a) {
                                	double tmp;
                                	if (y <= -3.5e+150) {
                                		tmp = (y * -60.0) / (z - t);
                                	} else if (y <= 3.8e+82) {
                                		tmp = a * 120.0;
                                	} else {
                                		tmp = -60.0 * (y / (z - t));
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a):
                                	tmp = 0
                                	if y <= -3.5e+150:
                                		tmp = (y * -60.0) / (z - t)
                                	elif y <= 3.8e+82:
                                		tmp = a * 120.0
                                	else:
                                		tmp = -60.0 * (y / (z - t))
                                	return tmp
                                
                                function code(x, y, z, t, a)
                                	tmp = 0.0
                                	if (y <= -3.5e+150)
                                		tmp = Float64(Float64(y * -60.0) / Float64(z - t));
                                	elseif (y <= 3.8e+82)
                                		tmp = Float64(a * 120.0);
                                	else
                                		tmp = Float64(-60.0 * Float64(y / Float64(z - t)));
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t, a)
                                	tmp = 0.0;
                                	if (y <= -3.5e+150)
                                		tmp = (y * -60.0) / (z - t);
                                	elseif (y <= 3.8e+82)
                                		tmp = a * 120.0;
                                	else
                                		tmp = -60.0 * (y / (z - t));
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_, a_] := If[LessEqual[y, -3.5e+150], N[(N[(y * -60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.8e+82], N[(a * 120.0), $MachinePrecision], N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;y \leq -3.5 \cdot 10^{+150}:\\
                                \;\;\;\;\frac{y \cdot -60}{z - t}\\
                                
                                \mathbf{elif}\;y \leq 3.8 \cdot 10^{+82}:\\
                                \;\;\;\;a \cdot 120\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;-60 \cdot \frac{y}{z - t}\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if y < -3.49999999999999984e150

                                  1. Initial program 97.4%

                                    \[\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-*.f6423.2

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

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

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

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

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

                                      \[\leadsto \frac{\color{blue}{-60 \cdot y}}{z - t} \]
                                    4. lower--.f6468.2

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

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

                                  if -3.49999999999999984e150 < y < 3.80000000000000033e82

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

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

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

                                  if 3.80000000000000033e82 < y

                                  1. Initial program 99.7%

                                    \[\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120 \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in 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--.f6473.1

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

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

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.5 \cdot 10^{+150}:\\ \;\;\;\;\frac{y \cdot -60}{z - t}\\ \mathbf{elif}\;y \leq 3.8 \cdot 10^{+82}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;-60 \cdot \frac{y}{z - t}\\ \end{array} \]
                                5. Add Preprocessing

                                Alternative 12: 57.8% accurate, 1.0× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := -60 \cdot \frac{y}{z - t}\\ \mathbf{if}\;y \leq -3.5 \cdot 10^{+150}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 3.8 \cdot 10^{+82}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                (FPCore (x y z t a)
                                 :precision binary64
                                 (let* ((t_1 (* -60.0 (/ y (- z t)))))
                                   (if (<= y -3.5e+150) t_1 (if (<= y 3.8e+82) (* a 120.0) t_1))))
                                double code(double x, double y, double z, double t, double a) {
                                	double t_1 = -60.0 * (y / (z - t));
                                	double tmp;
                                	if (y <= -3.5e+150) {
                                		tmp = t_1;
                                	} else if (y <= 3.8e+82) {
                                		tmp = a * 120.0;
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                real(8) function code(x, y, z, t, a)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    real(8), intent (in) :: z
                                    real(8), intent (in) :: t
                                    real(8), intent (in) :: a
                                    real(8) :: t_1
                                    real(8) :: tmp
                                    t_1 = (-60.0d0) * (y / (z - t))
                                    if (y <= (-3.5d+150)) then
                                        tmp = t_1
                                    else if (y <= 3.8d+82) 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 * (y / (z - t));
                                	double tmp;
                                	if (y <= -3.5e+150) {
                                		tmp = t_1;
                                	} else if (y <= 3.8e+82) {
                                		tmp = a * 120.0;
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a):
                                	t_1 = -60.0 * (y / (z - t))
                                	tmp = 0
                                	if y <= -3.5e+150:
                                		tmp = t_1
                                	elif y <= 3.8e+82:
                                		tmp = a * 120.0
                                	else:
                                		tmp = t_1
                                	return tmp
                                
                                function code(x, y, z, t, a)
                                	t_1 = Float64(-60.0 * Float64(y / Float64(z - t)))
                                	tmp = 0.0
                                	if (y <= -3.5e+150)
                                		tmp = t_1;
                                	elseif (y <= 3.8e+82)
                                		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 * (y / (z - t));
                                	tmp = 0.0;
                                	if (y <= -3.5e+150)
                                		tmp = t_1;
                                	elseif (y <= 3.8e+82)
                                		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[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.5e+150], t$95$1, If[LessEqual[y, 3.8e+82], N[(a * 120.0), $MachinePrecision], t$95$1]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := -60 \cdot \frac{y}{z - t}\\
                                \mathbf{if}\;y \leq -3.5 \cdot 10^{+150}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;y \leq 3.8 \cdot 10^{+82}:\\
                                \;\;\;\;a \cdot 120\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if y < -3.49999999999999984e150 or 3.80000000000000033e82 < y

                                  1. Initial program 98.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--.f6470.9

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

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

                                  if -3.49999999999999984e150 < y < 3.80000000000000033e82

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

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

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

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.5 \cdot 10^{+150}:\\ \;\;\;\;-60 \cdot \frac{y}{z - t}\\ \mathbf{elif}\;y \leq 3.8 \cdot 10^{+82}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;-60 \cdot \frac{y}{z - t}\\ \end{array} \]
                                5. Add Preprocessing

                                Alternative 13: 51.3% accurate, 1.1× speedup?

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

                                  1. Initial program 97.4%

                                    \[\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-*.f6461.1

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

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

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

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

                                    if -3.1e152 < y < 1.3999999999999999e130

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

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

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

                                    if 1.3999999999999999e130 < y

                                    1. Initial program 99.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.1 \cdot 10^{+152}:\\ \;\;\;\;\frac{60 \cdot y}{t}\\ \mathbf{elif}\;y \leq 1.4 \cdot 10^{+130}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot -60}{z}\\ \end{array} \]
                                    13. Add Preprocessing

                                    Alternative 14: 50.5% accurate, 1.1× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.1 \cdot 10^{+152}:\\ \;\;\;\;\frac{60 \cdot y}{t}\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{+87}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;60 \cdot \frac{y}{t}\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a)
                                     :precision binary64
                                     (if (<= y -3.1e+152)
                                       (/ (* 60.0 y) t)
                                       (if (<= y 4.5e+87) (* a 120.0) (* 60.0 (/ y t)))))
                                    double code(double x, double y, double z, double t, double a) {
                                    	double tmp;
                                    	if (y <= -3.1e+152) {
                                    		tmp = (60.0 * y) / t;
                                    	} else if (y <= 4.5e+87) {
                                    		tmp = a * 120.0;
                                    	} else {
                                    		tmp = 60.0 * (y / 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) :: tmp
                                        if (y <= (-3.1d+152)) then
                                            tmp = (60.0d0 * y) / t
                                        else if (y <= 4.5d+87) then
                                            tmp = a * 120.0d0
                                        else
                                            tmp = 60.0d0 * (y / t)
                                        end if
                                        code = tmp
                                    end function
                                    
                                    public static double code(double x, double y, double z, double t, double a) {
                                    	double tmp;
                                    	if (y <= -3.1e+152) {
                                    		tmp = (60.0 * y) / t;
                                    	} else if (y <= 4.5e+87) {
                                    		tmp = a * 120.0;
                                    	} else {
                                    		tmp = 60.0 * (y / t);
                                    	}
                                    	return tmp;
                                    }
                                    
                                    def code(x, y, z, t, a):
                                    	tmp = 0
                                    	if y <= -3.1e+152:
                                    		tmp = (60.0 * y) / t
                                    	elif y <= 4.5e+87:
                                    		tmp = a * 120.0
                                    	else:
                                    		tmp = 60.0 * (y / t)
                                    	return tmp
                                    
                                    function code(x, y, z, t, a)
                                    	tmp = 0.0
                                    	if (y <= -3.1e+152)
                                    		tmp = Float64(Float64(60.0 * y) / t);
                                    	elseif (y <= 4.5e+87)
                                    		tmp = Float64(a * 120.0);
                                    	else
                                    		tmp = Float64(60.0 * Float64(y / t));
                                    	end
                                    	return tmp
                                    end
                                    
                                    function tmp_2 = code(x, y, z, t, a)
                                    	tmp = 0.0;
                                    	if (y <= -3.1e+152)
                                    		tmp = (60.0 * y) / t;
                                    	elseif (y <= 4.5e+87)
                                    		tmp = a * 120.0;
                                    	else
                                    		tmp = 60.0 * (y / t);
                                    	end
                                    	tmp_2 = tmp;
                                    end
                                    
                                    code[x_, y_, z_, t_, a_] := If[LessEqual[y, -3.1e+152], N[(N[(60.0 * y), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[y, 4.5e+87], N[(a * 120.0), $MachinePrecision], N[(60.0 * N[(y / t), $MachinePrecision]), $MachinePrecision]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;y \leq -3.1 \cdot 10^{+152}:\\
                                    \;\;\;\;\frac{60 \cdot y}{t}\\
                                    
                                    \mathbf{elif}\;y \leq 4.5 \cdot 10^{+87}:\\
                                    \;\;\;\;a \cdot 120\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;60 \cdot \frac{y}{t}\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 3 regimes
                                    2. if y < -3.1e152

                                      1. Initial program 97.4%

                                        \[\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-*.f6461.1

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

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

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

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

                                        if -3.1e152 < y < 4.5000000000000003e87

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

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

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

                                        if 4.5000000000000003e87 < y

                                        1. Initial program 99.8%

                                          \[\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120 \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in 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-*.f6453.5

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

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

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

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

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

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.1 \cdot 10^{+152}:\\ \;\;\;\;\frac{60 \cdot y}{t}\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{+87}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;60 \cdot \frac{y}{t}\\ \end{array} \]
                                          5. Add Preprocessing

                                          Alternative 15: 50.6% accurate, 1.1× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.1 \cdot 10^{+152}:\\ \;\;\;\;y \cdot \frac{60}{t}\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{+87}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;60 \cdot \frac{y}{t}\\ \end{array} \end{array} \]
                                          (FPCore (x y z t a)
                                           :precision binary64
                                           (if (<= y -3.1e+152)
                                             (* y (/ 60.0 t))
                                             (if (<= y 4.5e+87) (* a 120.0) (* 60.0 (/ y t)))))
                                          double code(double x, double y, double z, double t, double a) {
                                          	double tmp;
                                          	if (y <= -3.1e+152) {
                                          		tmp = y * (60.0 / t);
                                          	} else if (y <= 4.5e+87) {
                                          		tmp = a * 120.0;
                                          	} else {
                                          		tmp = 60.0 * (y / 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) :: tmp
                                              if (y <= (-3.1d+152)) then
                                                  tmp = y * (60.0d0 / t)
                                              else if (y <= 4.5d+87) then
                                                  tmp = a * 120.0d0
                                              else
                                                  tmp = 60.0d0 * (y / t)
                                              end if
                                              code = tmp
                                          end function
                                          
                                          public static double code(double x, double y, double z, double t, double a) {
                                          	double tmp;
                                          	if (y <= -3.1e+152) {
                                          		tmp = y * (60.0 / t);
                                          	} else if (y <= 4.5e+87) {
                                          		tmp = a * 120.0;
                                          	} else {
                                          		tmp = 60.0 * (y / t);
                                          	}
                                          	return tmp;
                                          }
                                          
                                          def code(x, y, z, t, a):
                                          	tmp = 0
                                          	if y <= -3.1e+152:
                                          		tmp = y * (60.0 / t)
                                          	elif y <= 4.5e+87:
                                          		tmp = a * 120.0
                                          	else:
                                          		tmp = 60.0 * (y / t)
                                          	return tmp
                                          
                                          function code(x, y, z, t, a)
                                          	tmp = 0.0
                                          	if (y <= -3.1e+152)
                                          		tmp = Float64(y * Float64(60.0 / t));
                                          	elseif (y <= 4.5e+87)
                                          		tmp = Float64(a * 120.0);
                                          	else
                                          		tmp = Float64(60.0 * Float64(y / t));
                                          	end
                                          	return tmp
                                          end
                                          
                                          function tmp_2 = code(x, y, z, t, a)
                                          	tmp = 0.0;
                                          	if (y <= -3.1e+152)
                                          		tmp = y * (60.0 / t);
                                          	elseif (y <= 4.5e+87)
                                          		tmp = a * 120.0;
                                          	else
                                          		tmp = 60.0 * (y / t);
                                          	end
                                          	tmp_2 = tmp;
                                          end
                                          
                                          code[x_, y_, z_, t_, a_] := If[LessEqual[y, -3.1e+152], N[(y * N[(60.0 / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e+87], N[(a * 120.0), $MachinePrecision], N[(60.0 * N[(y / t), $MachinePrecision]), $MachinePrecision]]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          \mathbf{if}\;y \leq -3.1 \cdot 10^{+152}:\\
                                          \;\;\;\;y \cdot \frac{60}{t}\\
                                          
                                          \mathbf{elif}\;y \leq 4.5 \cdot 10^{+87}:\\
                                          \;\;\;\;a \cdot 120\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;60 \cdot \frac{y}{t}\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 3 regimes
                                          2. if y < -3.1e152

                                            1. Initial program 97.4%

                                              \[\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-*.f6461.1

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

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

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

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

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

                                                if -3.1e152 < y < 4.5000000000000003e87

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

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

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

                                                if 4.5000000000000003e87 < y

                                                1. Initial program 99.8%

                                                  \[\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120 \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in 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-*.f6453.5

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

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

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

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

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

                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.1 \cdot 10^{+152}:\\ \;\;\;\;y \cdot \frac{60}{t}\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{+87}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;60 \cdot \frac{y}{t}\\ \end{array} \]
                                                  5. Add Preprocessing

                                                  Alternative 16: 50.6% accurate, 1.1× speedup?

                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := 60 \cdot \frac{y}{t}\\ \mathbf{if}\;y \leq -3.1 \cdot 10^{+152}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{+87}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                  (FPCore (x y z t a)
                                                   :precision binary64
                                                   (let* ((t_1 (* 60.0 (/ y t))))
                                                     (if (<= y -3.1e+152) t_1 (if (<= y 4.5e+87) (* a 120.0) t_1))))
                                                  double code(double x, double y, double z, double t, double a) {
                                                  	double t_1 = 60.0 * (y / t);
                                                  	double tmp;
                                                  	if (y <= -3.1e+152) {
                                                  		tmp = t_1;
                                                  	} else if (y <= 4.5e+87) {
                                                  		tmp = a * 120.0;
                                                  	} else {
                                                  		tmp = t_1;
                                                  	}
                                                  	return tmp;
                                                  }
                                                  
                                                  real(8) function code(x, y, z, t, a)
                                                      real(8), intent (in) :: x
                                                      real(8), intent (in) :: y
                                                      real(8), intent (in) :: z
                                                      real(8), intent (in) :: t
                                                      real(8), intent (in) :: a
                                                      real(8) :: t_1
                                                      real(8) :: tmp
                                                      t_1 = 60.0d0 * (y / t)
                                                      if (y <= (-3.1d+152)) then
                                                          tmp = t_1
                                                      else if (y <= 4.5d+87) 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 * (y / t);
                                                  	double tmp;
                                                  	if (y <= -3.1e+152) {
                                                  		tmp = t_1;
                                                  	} else if (y <= 4.5e+87) {
                                                  		tmp = a * 120.0;
                                                  	} else {
                                                  		tmp = t_1;
                                                  	}
                                                  	return tmp;
                                                  }
                                                  
                                                  def code(x, y, z, t, a):
                                                  	t_1 = 60.0 * (y / t)
                                                  	tmp = 0
                                                  	if y <= -3.1e+152:
                                                  		tmp = t_1
                                                  	elif y <= 4.5e+87:
                                                  		tmp = a * 120.0
                                                  	else:
                                                  		tmp = t_1
                                                  	return tmp
                                                  
                                                  function code(x, y, z, t, a)
                                                  	t_1 = Float64(60.0 * Float64(y / t))
                                                  	tmp = 0.0
                                                  	if (y <= -3.1e+152)
                                                  		tmp = t_1;
                                                  	elseif (y <= 4.5e+87)
                                                  		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 * (y / t);
                                                  	tmp = 0.0;
                                                  	if (y <= -3.1e+152)
                                                  		tmp = t_1;
                                                  	elseif (y <= 4.5e+87)
                                                  		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[(y / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.1e+152], t$95$1, If[LessEqual[y, 4.5e+87], N[(a * 120.0), $MachinePrecision], t$95$1]]]
                                                  
                                                  \begin{array}{l}
                                                  
                                                  \\
                                                  \begin{array}{l}
                                                  t_1 := 60 \cdot \frac{y}{t}\\
                                                  \mathbf{if}\;y \leq -3.1 \cdot 10^{+152}:\\
                                                  \;\;\;\;t\_1\\
                                                  
                                                  \mathbf{elif}\;y \leq 4.5 \cdot 10^{+87}:\\
                                                  \;\;\;\;a \cdot 120\\
                                                  
                                                  \mathbf{else}:\\
                                                  \;\;\;\;t\_1\\
                                                  
                                                  
                                                  \end{array}
                                                  \end{array}
                                                  
                                                  Derivation
                                                  1. Split input into 2 regimes
                                                  2. if y < -3.1e152 or 4.5000000000000003e87 < y

                                                    1. Initial program 98.7%

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

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

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

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

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

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

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

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

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

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

                                                        if -3.1e152 < y < 4.5000000000000003e87

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

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

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

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.1 \cdot 10^{+152}:\\ \;\;\;\;60 \cdot \frac{y}{t}\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{+87}:\\ \;\;\;\;a \cdot 120\\ \mathbf{else}:\\ \;\;\;\;60 \cdot \frac{y}{t}\\ \end{array} \]
                                                      5. Add Preprocessing

                                                      Alternative 17: 99.8% accurate, 1.1× speedup?

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

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

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

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

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

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

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

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

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

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

                                                      Alternative 18: 99.4% 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.4%

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

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

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

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

                                                      Alternative 19: 51.0% 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.4%

                                                        \[\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-*.f6445.1

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

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

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