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

Percentage Accurate: 99.5% → 99.8%
Time: 7.9s
Alternatives: 16
Speedup: 1.1×

Specification

?
\[\begin{array}{l} \\ \frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120 \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
	return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 16 alternatives:

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

Initial Program: 99.5% 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);
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    code = ((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, 1.1× speedup?

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

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

    \[\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{60 \cdot \left(x - y\right)}{z - t} + \color{blue}{a \cdot 120} \]
    3. fp-cancel-sign-sub-invN/A

      \[\leadsto \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t} - \left(\mathsf{neg}\left(a\right)\right) \cdot 120} \]
    4. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 55.0% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\ \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+237}:\\ \;\;\;\;x \cdot \frac{-60}{t}\\ \mathbf{elif}\;t\_1 \leq 3.9 \cdot 10^{+276}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(-y\right) \cdot \frac{60}{z}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
   (if (<= t_1 -2e+237)
     (* x (/ -60.0 t))
     (if (<= t_1 3.9e+276) (* 120.0 a) (* (- y) (/ 60.0 z))))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = (60.0 * (x - y)) / (z - t);
	double tmp;
	if (t_1 <= -2e+237) {
		tmp = x * (-60.0 / t);
	} else if (t_1 <= 3.9e+276) {
		tmp = 120.0 * a;
	} else {
		tmp = -y * (60.0 / z);
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (60.0d0 * (x - y)) / (z - t)
    if (t_1 <= (-2d+237)) then
        tmp = x * ((-60.0d0) / t)
    else if (t_1 <= 3.9d+276) then
        tmp = 120.0d0 * a
    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 t_1 = (60.0 * (x - y)) / (z - t);
	double tmp;
	if (t_1 <= -2e+237) {
		tmp = x * (-60.0 / t);
	} else if (t_1 <= 3.9e+276) {
		tmp = 120.0 * a;
	} else {
		tmp = -y * (60.0 / z);
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = (60.0 * (x - y)) / (z - t)
	tmp = 0
	if t_1 <= -2e+237:
		tmp = x * (-60.0 / t)
	elif t_1 <= 3.9e+276:
		tmp = 120.0 * a
	else:
		tmp = -y * (60.0 / z)
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t))
	tmp = 0.0
	if (t_1 <= -2e+237)
		tmp = Float64(x * Float64(-60.0 / t));
	elseif (t_1 <= 3.9e+276)
		tmp = Float64(120.0 * a);
	else
		tmp = Float64(Float64(-y) * Float64(60.0 / z));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = (60.0 * (x - y)) / (z - t);
	tmp = 0.0;
	if (t_1 <= -2e+237)
		tmp = x * (-60.0 / t);
	elseif (t_1 <= 3.9e+276)
		tmp = 120.0 * a;
	else
		tmp = -y * (60.0 / z);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+237], N[(x * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 3.9e+276], N[(120.0 * a), $MachinePrecision], N[((-y) * N[(60.0 / z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

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

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

\mathbf{else}:\\
\;\;\;\;\left(-y\right) \cdot \frac{60}{z}\\


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

    1. Initial program 93.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

        if -1.99999999999999988e237 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 3.9000000000000002e276

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

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

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

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

        1. Initial program 93.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 3: 55.7% accurate, 0.4× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\ \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+237}:\\ \;\;\;\;x \cdot \frac{-60}{t}\\ \mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+206}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(-y\right) \cdot \frac{-60}{t}\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
             (if (<= t_1 -2e+237)
               (* x (/ -60.0 t))
               (if (<= t_1 4e+206) (* 120.0 a) (* (- y) (/ -60.0 t))))))
          double code(double x, double y, double z, double t, double a) {
          	double t_1 = (60.0 * (x - y)) / (z - t);
          	double tmp;
          	if (t_1 <= -2e+237) {
          		tmp = x * (-60.0 / t);
          	} else if (t_1 <= 4e+206) {
          		tmp = 120.0 * a;
          	} else {
          		tmp = -y * (-60.0 / t);
          	}
          	return tmp;
          }
          
          module fmin_fmax_functions
              implicit none
              private
              public fmax
              public fmin
          
              interface fmax
                  module procedure fmax88
                  module procedure fmax44
                  module procedure fmax84
                  module procedure fmax48
              end interface
              interface fmin
                  module procedure fmin88
                  module procedure fmin44
                  module procedure fmin84
                  module procedure fmin48
              end interface
          contains
              real(8) function fmax88(x, y) result (res)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
              end function
              real(4) function fmax44(x, y) result (res)
                  real(4), intent (in) :: x
                  real(4), intent (in) :: y
                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
              end function
              real(8) function fmax84(x, y) result(res)
                  real(8), intent (in) :: x
                  real(4), intent (in) :: y
                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
              end function
              real(8) function fmax48(x, y) result(res)
                  real(4), intent (in) :: x
                  real(8), intent (in) :: y
                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
              end function
              real(8) function fmin88(x, y) result (res)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
              end function
              real(4) function fmin44(x, y) result (res)
                  real(4), intent (in) :: x
                  real(4), intent (in) :: y
                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
              end function
              real(8) function fmin84(x, y) result(res)
                  real(8), intent (in) :: x
                  real(4), intent (in) :: y
                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
              end function
              real(8) function fmin48(x, y) result(res)
                  real(4), intent (in) :: x
                  real(8), intent (in) :: y
                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
              end function
          end module
          
          real(8) function code(x, y, z, t, a)
          use fmin_fmax_functions
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              real(8), intent (in) :: z
              real(8), intent (in) :: t
              real(8), intent (in) :: a
              real(8) :: t_1
              real(8) :: tmp
              t_1 = (60.0d0 * (x - y)) / (z - t)
              if (t_1 <= (-2d+237)) then
                  tmp = x * ((-60.0d0) / t)
              else if (t_1 <= 4d+206) then
                  tmp = 120.0d0 * a
              else
                  tmp = -y * ((-60.0d0) / t)
              end if
              code = tmp
          end function
          
          public static double code(double x, double y, double z, double t, double a) {
          	double t_1 = (60.0 * (x - y)) / (z - t);
          	double tmp;
          	if (t_1 <= -2e+237) {
          		tmp = x * (-60.0 / t);
          	} else if (t_1 <= 4e+206) {
          		tmp = 120.0 * a;
          	} else {
          		tmp = -y * (-60.0 / t);
          	}
          	return tmp;
          }
          
          def code(x, y, z, t, a):
          	t_1 = (60.0 * (x - y)) / (z - t)
          	tmp = 0
          	if t_1 <= -2e+237:
          		tmp = x * (-60.0 / t)
          	elif t_1 <= 4e+206:
          		tmp = 120.0 * a
          	else:
          		tmp = -y * (-60.0 / t)
          	return tmp
          
          function code(x, y, z, t, a)
          	t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t))
          	tmp = 0.0
          	if (t_1 <= -2e+237)
          		tmp = Float64(x * Float64(-60.0 / t));
          	elseif (t_1 <= 4e+206)
          		tmp = Float64(120.0 * a);
          	else
          		tmp = Float64(Float64(-y) * Float64(-60.0 / t));
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y, z, t, a)
          	t_1 = (60.0 * (x - y)) / (z - t);
          	tmp = 0.0;
          	if (t_1 <= -2e+237)
          		tmp = x * (-60.0 / t);
          	elseif (t_1 <= 4e+206)
          		tmp = 120.0 * a;
          	else
          		tmp = -y * (-60.0 / t);
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+237], N[(x * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e+206], N[(120.0 * a), $MachinePrecision], N[((-y) * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
          \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+237}:\\
          \;\;\;\;x \cdot \frac{-60}{t}\\
          
          \mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+206}:\\
          \;\;\;\;120 \cdot a\\
          
          \mathbf{else}:\\
          \;\;\;\;\left(-y\right) \cdot \frac{-60}{t}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.99999999999999988e237

            1. Initial program 93.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

                if -1.99999999999999988e237 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.0000000000000002e206

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

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

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

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

                1. Initial program 95.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 4: 55.7% accurate, 0.4× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\ \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+237}:\\ \;\;\;\;x \cdot \frac{-60}{t}\\ \mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+206}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{t} \cdot 60\\ \end{array} \end{array} \]
                    (FPCore (x y z t a)
                     :precision binary64
                     (let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
                       (if (<= t_1 -2e+237)
                         (* x (/ -60.0 t))
                         (if (<= t_1 4e+206) (* 120.0 a) (* (/ y t) 60.0)))))
                    double code(double x, double y, double z, double t, double a) {
                    	double t_1 = (60.0 * (x - y)) / (z - t);
                    	double tmp;
                    	if (t_1 <= -2e+237) {
                    		tmp = x * (-60.0 / t);
                    	} else if (t_1 <= 4e+206) {
                    		tmp = 120.0 * a;
                    	} else {
                    		tmp = (y / t) * 60.0;
                    	}
                    	return tmp;
                    }
                    
                    module fmin_fmax_functions
                        implicit none
                        private
                        public fmax
                        public fmin
                    
                        interface fmax
                            module procedure fmax88
                            module procedure fmax44
                            module procedure fmax84
                            module procedure fmax48
                        end interface
                        interface fmin
                            module procedure fmin88
                            module procedure fmin44
                            module procedure fmin84
                            module procedure fmin48
                        end interface
                    contains
                        real(8) function fmax88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmax44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmax84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmax48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                        end function
                        real(8) function fmin88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmin44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmin84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmin48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                        end function
                    end module
                    
                    real(8) function code(x, y, z, t, a)
                    use fmin_fmax_functions
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8), intent (in) :: z
                        real(8), intent (in) :: t
                        real(8), intent (in) :: a
                        real(8) :: t_1
                        real(8) :: tmp
                        t_1 = (60.0d0 * (x - y)) / (z - t)
                        if (t_1 <= (-2d+237)) then
                            tmp = x * ((-60.0d0) / t)
                        else if (t_1 <= 4d+206) then
                            tmp = 120.0d0 * a
                        else
                            tmp = (y / t) * 60.0d0
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y, double z, double t, double a) {
                    	double t_1 = (60.0 * (x - y)) / (z - t);
                    	double tmp;
                    	if (t_1 <= -2e+237) {
                    		tmp = x * (-60.0 / t);
                    	} else if (t_1 <= 4e+206) {
                    		tmp = 120.0 * a;
                    	} else {
                    		tmp = (y / t) * 60.0;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a):
                    	t_1 = (60.0 * (x - y)) / (z - t)
                    	tmp = 0
                    	if t_1 <= -2e+237:
                    		tmp = x * (-60.0 / t)
                    	elif t_1 <= 4e+206:
                    		tmp = 120.0 * a
                    	else:
                    		tmp = (y / t) * 60.0
                    	return tmp
                    
                    function code(x, y, z, t, a)
                    	t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t))
                    	tmp = 0.0
                    	if (t_1 <= -2e+237)
                    		tmp = Float64(x * Float64(-60.0 / t));
                    	elseif (t_1 <= 4e+206)
                    		tmp = Float64(120.0 * a);
                    	else
                    		tmp = Float64(Float64(y / t) * 60.0);
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a)
                    	t_1 = (60.0 * (x - y)) / (z - t);
                    	tmp = 0.0;
                    	if (t_1 <= -2e+237)
                    		tmp = x * (-60.0 / t);
                    	elseif (t_1 <= 4e+206)
                    		tmp = 120.0 * a;
                    	else
                    		tmp = (y / t) * 60.0;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+237], N[(x * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e+206], N[(120.0 * a), $MachinePrecision], N[(N[(y / t), $MachinePrecision] * 60.0), $MachinePrecision]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
                    \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+237}:\\
                    \;\;\;\;x \cdot \frac{-60}{t}\\
                    
                    \mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+206}:\\
                    \;\;\;\;120 \cdot a\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{y}{t} \cdot 60\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.99999999999999988e237

                      1. Initial program 93.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

                          if -1.99999999999999988e237 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.0000000000000002e206

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

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

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

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

                          1. Initial program 95.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. *-commutativeN/A

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

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

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

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

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

                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 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 rewrites45.3%

                              \[\leadsto \frac{y}{t} \cdot \color{blue}{60} \]
                          8. Recombined 3 regimes into one program.
                          9. Add Preprocessing

                          Alternative 5: 53.5% accurate, 0.7× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{60 \cdot \left(x - y\right)}{z - t} \leq -2 \cdot 10^{+237}:\\ \;\;\;\;x \cdot \frac{-60}{t}\\ \mathbf{else}:\\ \;\;\;\;120 \cdot a\\ \end{array} \end{array} \]
                          (FPCore (x y z t a)
                           :precision binary64
                           (if (<= (/ (* 60.0 (- x y)) (- z t)) -2e+237) (* x (/ -60.0 t)) (* 120.0 a)))
                          double code(double x, double y, double z, double t, double a) {
                          	double tmp;
                          	if (((60.0 * (x - y)) / (z - t)) <= -2e+237) {
                          		tmp = x * (-60.0 / t);
                          	} else {
                          		tmp = 120.0 * a;
                          	}
                          	return tmp;
                          }
                          
                          module fmin_fmax_functions
                              implicit none
                              private
                              public fmax
                              public fmin
                          
                              interface fmax
                                  module procedure fmax88
                                  module procedure fmax44
                                  module procedure fmax84
                                  module procedure fmax48
                              end interface
                              interface fmin
                                  module procedure fmin88
                                  module procedure fmin44
                                  module procedure fmin84
                                  module procedure fmin48
                              end interface
                          contains
                              real(8) function fmax88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmax44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmax84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmax48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                              end function
                              real(8) function fmin88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmin44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmin84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmin48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                              end function
                          end module
                          
                          real(8) function code(x, y, z, t, a)
                          use fmin_fmax_functions
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              real(8), intent (in) :: z
                              real(8), intent (in) :: t
                              real(8), intent (in) :: a
                              real(8) :: tmp
                              if (((60.0d0 * (x - y)) / (z - t)) <= (-2d+237)) then
                                  tmp = x * ((-60.0d0) / t)
                              else
                                  tmp = 120.0d0 * a
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y, double z, double t, double a) {
                          	double tmp;
                          	if (((60.0 * (x - y)) / (z - t)) <= -2e+237) {
                          		tmp = x * (-60.0 / t);
                          	} else {
                          		tmp = 120.0 * a;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a):
                          	tmp = 0
                          	if ((60.0 * (x - y)) / (z - t)) <= -2e+237:
                          		tmp = x * (-60.0 / t)
                          	else:
                          		tmp = 120.0 * a
                          	return tmp
                          
                          function code(x, y, z, t, a)
                          	tmp = 0.0
                          	if (Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) <= -2e+237)
                          		tmp = Float64(x * Float64(-60.0 / t));
                          	else
                          		tmp = Float64(120.0 * a);
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t, a)
                          	tmp = 0.0;
                          	if (((60.0 * (x - y)) / (z - t)) <= -2e+237)
                          		tmp = x * (-60.0 / t);
                          	else
                          		tmp = 120.0 * a;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_, a_] := If[LessEqual[N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], -2e+237], N[(x * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision], N[(120.0 * a), $MachinePrecision]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;\frac{60 \cdot \left(x - y\right)}{z - t} \leq -2 \cdot 10^{+237}:\\
                          \;\;\;\;x \cdot \frac{-60}{t}\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;120 \cdot a\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.99999999999999988e237

                            1. Initial program 93.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \color{blue}{120 \cdot a} \]
                              3. Recombined 2 regimes into one program.
                              4. Add Preprocessing

                              Alternative 6: 73.5% accurate, 0.8× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3.5 \cdot 10^{+150}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x}{z} \cdot 60\right)\\ \mathbf{elif}\;a \leq -5 \cdot 10^{-60} \lor \neg \left(a \leq 40000000000\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\ \end{array} \end{array} \]
                              (FPCore (x y z t a)
                               :precision binary64
                               (if (<= a -3.5e+150)
                                 (fma a 120.0 (* (/ x z) 60.0))
                                 (if (or (<= a -5e-60) (not (<= a 40000000000.0)))
                                   (fma (/ y t) 60.0 (* 120.0 a))
                                   (* (- x y) (/ 60.0 (- z t))))))
                              double code(double x, double y, double z, double t, double a) {
                              	double tmp;
                              	if (a <= -3.5e+150) {
                              		tmp = fma(a, 120.0, ((x / z) * 60.0));
                              	} else if ((a <= -5e-60) || !(a <= 40000000000.0)) {
                              		tmp = fma((y / t), 60.0, (120.0 * a));
                              	} else {
                              		tmp = (x - y) * (60.0 / (z - t));
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a)
                              	tmp = 0.0
                              	if (a <= -3.5e+150)
                              		tmp = fma(a, 120.0, Float64(Float64(x / z) * 60.0));
                              	elseif ((a <= -5e-60) || !(a <= 40000000000.0))
                              		tmp = fma(Float64(y / t), 60.0, Float64(120.0 * a));
                              	else
                              		tmp = Float64(Float64(x - y) * Float64(60.0 / Float64(z - t)));
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.5e+150], N[(a * 120.0 + N[(N[(x / z), $MachinePrecision] * 60.0), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -5e-60], N[Not[LessEqual[a, 40000000000.0]], $MachinePrecision]], N[(N[(y / t), $MachinePrecision] * 60.0 + N[(120.0 * a), $MachinePrecision]), $MachinePrecision], N[(N[(x - y), $MachinePrecision] * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;a \leq -3.5 \cdot 10^{+150}:\\
                              \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x}{z} \cdot 60\right)\\
                              
                              \mathbf{elif}\;a \leq -5 \cdot 10^{-60} \lor \neg \left(a \leq 40000000000\right):\\
                              \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 3 regimes
                              2. if a < -3.49999999999999984e150

                                1. Initial program 96.3%

                                  \[\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{60 \cdot \left(x - y\right)}{z - t} + \color{blue}{a \cdot 120} \]
                                  3. fp-cancel-sign-sub-invN/A

                                    \[\leadsto \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t} - \left(\mathsf{neg}\left(a\right)\right) \cdot 120} \]
                                  4. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if -3.49999999999999984e150 < a < -5.0000000000000001e-60 or 4e10 < a

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

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

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

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

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

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

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 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 rewrites83.4%

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

                                    if -5.0000000000000001e-60 < a < 4e10

                                    1. Initial program 99.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 7: 89.8% accurate, 0.8× speedup?

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

                                    1. Initial program 98.1%

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

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

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

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

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

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

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

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

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

                                    if -3.0499999999999999e29 < y < 1.15e31

                                    1. Initial program 99.8%

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

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

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

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

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

                                  Alternative 8: 84.5% accurate, 0.8× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.75 \cdot 10^{+22} \lor \neg \left(t \leq 2.8 \cdot 10^{+16}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x - y}{z} \cdot 60\right)\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a)
                                   :precision binary64
                                   (if (or (<= t -1.75e+22) (not (<= t 2.8e+16)))
                                     (fma (/ (- x y) t) -60.0 (* 120.0 a))
                                     (fma a 120.0 (* (/ (- x y) z) 60.0))))
                                  double code(double x, double y, double z, double t, double a) {
                                  	double tmp;
                                  	if ((t <= -1.75e+22) || !(t <= 2.8e+16)) {
                                  		tmp = fma(((x - y) / t), -60.0, (120.0 * a));
                                  	} else {
                                  		tmp = fma(a, 120.0, (((x - y) / z) * 60.0));
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(x, y, z, t, a)
                                  	tmp = 0.0
                                  	if ((t <= -1.75e+22) || !(t <= 2.8e+16))
                                  		tmp = fma(Float64(Float64(x - y) / t), -60.0, Float64(120.0 * a));
                                  	else
                                  		tmp = fma(a, 120.0, Float64(Float64(Float64(x - y) / z) * 60.0));
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.75e+22], N[Not[LessEqual[t, 2.8e+16]], $MachinePrecision]], N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * -60.0 + N[(120.0 * a), $MachinePrecision]), $MachinePrecision], N[(a * 120.0 + N[(N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision] * 60.0), $MachinePrecision]), $MachinePrecision]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;t \leq -1.75 \cdot 10^{+22} \lor \neg \left(t \leq 2.8 \cdot 10^{+16}\right):\\
                                  \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x - y}{z} \cdot 60\right)\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if t < -1.75e22 or 2.8e16 < 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 0

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

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

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

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

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

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

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

                                    if -1.75e22 < t < 2.8e16

                                    1. Initial program 99.1%

                                      \[\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{60 \cdot \left(x - y\right)}{z - t} + \color{blue}{a \cdot 120} \]
                                      3. fp-cancel-sign-sub-invN/A

                                        \[\leadsto \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t} - \left(\mathsf{neg}\left(a\right)\right) \cdot 120} \]
                                      4. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 9: 84.5% accurate, 0.8× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.75 \cdot 10^{+22} \lor \neg \left(t \leq 2.8 \cdot 10^{+16}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{z}, 60, 120 \cdot a\right)\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a)
                                   :precision binary64
                                   (if (or (<= t -1.75e+22) (not (<= t 2.8e+16)))
                                     (fma (/ (- x y) t) -60.0 (* 120.0 a))
                                     (fma (/ (- x y) z) 60.0 (* 120.0 a))))
                                  double code(double x, double y, double z, double t, double a) {
                                  	double tmp;
                                  	if ((t <= -1.75e+22) || !(t <= 2.8e+16)) {
                                  		tmp = fma(((x - y) / t), -60.0, (120.0 * a));
                                  	} else {
                                  		tmp = fma(((x - y) / z), 60.0, (120.0 * a));
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(x, y, z, t, a)
                                  	tmp = 0.0
                                  	if ((t <= -1.75e+22) || !(t <= 2.8e+16))
                                  		tmp = fma(Float64(Float64(x - y) / t), -60.0, Float64(120.0 * a));
                                  	else
                                  		tmp = fma(Float64(Float64(x - y) / z), 60.0, Float64(120.0 * a));
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.75e+22], N[Not[LessEqual[t, 2.8e+16]], $MachinePrecision]], N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * -60.0 + N[(120.0 * a), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision] * 60.0 + N[(120.0 * a), $MachinePrecision]), $MachinePrecision]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;t \leq -1.75 \cdot 10^{+22} \lor \neg \left(t \leq 2.8 \cdot 10^{+16}\right):\\
                                  \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\mathsf{fma}\left(\frac{x - y}{z}, 60, 120 \cdot a\right)\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if t < -1.75e22 or 2.8e16 < 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 0

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

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

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

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

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

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

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

                                    if -1.75e22 < t < 2.8e16

                                    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 inf

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

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

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

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

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

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

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

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

                                  Alternative 10: 82.9% accurate, 0.8× speedup?

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

                                    1. Initial program 99.1%

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

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

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

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

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

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

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

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

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

                                    if -9.30000000000000007e-63 < a < 6.5999999999999996

                                    1. Initial program 98.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 11: 73.1% accurate, 0.9× speedup?

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

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 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 rewrites81.0%

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

                                      if -5.0000000000000001e-60 < a < 4e10

                                      1. Initial program 99.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 12: 61.4% accurate, 0.9× speedup?

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

                                      1. Initial program 97.7%

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

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

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

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

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

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

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

                                      if -9.4999999999999998e191 < x < 9.5000000000000009e130

                                      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 0

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

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

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

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

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

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

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 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.6%

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

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

                                      Alternative 13: 58.9% accurate, 0.9× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.35 \cdot 10^{-71} \lor \neg \left(a \leq 5.5 \cdot 10^{-148}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(-y\right) \cdot \frac{60}{z - t}\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a)
                                       :precision binary64
                                       (if (or (<= a -1.35e-71) (not (<= a 5.5e-148)))
                                         (* 120.0 a)
                                         (* (- y) (/ 60.0 (- z t)))))
                                      double code(double x, double y, double z, double t, double a) {
                                      	double tmp;
                                      	if ((a <= -1.35e-71) || !(a <= 5.5e-148)) {
                                      		tmp = 120.0 * a;
                                      	} else {
                                      		tmp = -y * (60.0 / (z - t));
                                      	}
                                      	return tmp;
                                      }
                                      
                                      module fmin_fmax_functions
                                          implicit none
                                          private
                                          public fmax
                                          public fmin
                                      
                                          interface fmax
                                              module procedure fmax88
                                              module procedure fmax44
                                              module procedure fmax84
                                              module procedure fmax48
                                          end interface
                                          interface fmin
                                              module procedure fmin88
                                              module procedure fmin44
                                              module procedure fmin84
                                              module procedure fmin48
                                          end interface
                                      contains
                                          real(8) function fmax88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmax44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmax84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmax48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmin44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmin48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                          end function
                                      end module
                                      
                                      real(8) function code(x, y, z, t, a)
                                      use fmin_fmax_functions
                                          real(8), intent (in) :: x
                                          real(8), intent (in) :: y
                                          real(8), intent (in) :: z
                                          real(8), intent (in) :: t
                                          real(8), intent (in) :: a
                                          real(8) :: tmp
                                          if ((a <= (-1.35d-71)) .or. (.not. (a <= 5.5d-148))) then
                                              tmp = 120.0d0 * a
                                          else
                                              tmp = -y * (60.0d0 / (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 ((a <= -1.35e-71) || !(a <= 5.5e-148)) {
                                      		tmp = 120.0 * a;
                                      	} else {
                                      		tmp = -y * (60.0 / (z - t));
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a):
                                      	tmp = 0
                                      	if (a <= -1.35e-71) or not (a <= 5.5e-148):
                                      		tmp = 120.0 * a
                                      	else:
                                      		tmp = -y * (60.0 / (z - t))
                                      	return tmp
                                      
                                      function code(x, y, z, t, a)
                                      	tmp = 0.0
                                      	if ((a <= -1.35e-71) || !(a <= 5.5e-148))
                                      		tmp = Float64(120.0 * a);
                                      	else
                                      		tmp = Float64(Float64(-y) * Float64(60.0 / Float64(z - t)));
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t, a)
                                      	tmp = 0.0;
                                      	if ((a <= -1.35e-71) || ~((a <= 5.5e-148)))
                                      		tmp = 120.0 * a;
                                      	else
                                      		tmp = -y * (60.0 / (z - t));
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.35e-71], N[Not[LessEqual[a, 5.5e-148]], $MachinePrecision]], N[(120.0 * a), $MachinePrecision], N[((-y) * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      \mathbf{if}\;a \leq -1.35 \cdot 10^{-71} \lor \neg \left(a \leq 5.5 \cdot 10^{-148}\right):\\
                                      \;\;\;\;120 \cdot a\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;\left(-y\right) \cdot \frac{60}{z - t}\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if a < -1.3500000000000001e-71 or 5.5000000000000003e-148 < a

                                        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 inf

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

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

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

                                        if -1.3500000000000001e-71 < a < 5.5000000000000003e-148

                                        1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.35 \cdot 10^{-71} \lor \neg \left(a \leq 5.5 \cdot 10^{-148}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(-y\right) \cdot \frac{60}{z - t}\\ \end{array} \]
                                        10. Add Preprocessing

                                        Alternative 14: 59.1% accurate, 1.0× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -9.8 \cdot 10^{-63} \lor \neg \left(a \leq 2.1 \cdot 10^{-158}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{60}{z}\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a)
                                         :precision binary64
                                         (if (or (<= a -9.8e-63) (not (<= a 2.1e-158)))
                                           (* 120.0 a)
                                           (* (- x y) (/ 60.0 z))))
                                        double code(double x, double y, double z, double t, double a) {
                                        	double tmp;
                                        	if ((a <= -9.8e-63) || !(a <= 2.1e-158)) {
                                        		tmp = 120.0 * a;
                                        	} else {
                                        		tmp = (x - y) * (60.0 / z);
                                        	}
                                        	return tmp;
                                        }
                                        
                                        module fmin_fmax_functions
                                            implicit none
                                            private
                                            public fmax
                                            public fmin
                                        
                                            interface fmax
                                                module procedure fmax88
                                                module procedure fmax44
                                                module procedure fmax84
                                                module procedure fmax48
                                            end interface
                                            interface fmin
                                                module procedure fmin88
                                                module procedure fmin44
                                                module procedure fmin84
                                                module procedure fmin48
                                            end interface
                                        contains
                                            real(8) function fmax88(x, y) result (res)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                            end function
                                            real(4) function fmax44(x, y) result (res)
                                                real(4), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                            end function
                                            real(8) function fmax84(x, y) result(res)
                                                real(8), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                            end function
                                            real(8) function fmax48(x, y) result(res)
                                                real(4), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                            end function
                                            real(8) function fmin88(x, y) result (res)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                            end function
                                            real(4) function fmin44(x, y) result (res)
                                                real(4), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                            end function
                                            real(8) function fmin84(x, y) result(res)
                                                real(8), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                            end function
                                            real(8) function fmin48(x, y) result(res)
                                                real(4), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                            end function
                                        end module
                                        
                                        real(8) function code(x, y, z, t, a)
                                        use fmin_fmax_functions
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            real(8), intent (in) :: z
                                            real(8), intent (in) :: t
                                            real(8), intent (in) :: a
                                            real(8) :: tmp
                                            if ((a <= (-9.8d-63)) .or. (.not. (a <= 2.1d-158))) then
                                                tmp = 120.0d0 * a
                                            else
                                                tmp = (x - 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 ((a <= -9.8e-63) || !(a <= 2.1e-158)) {
                                        		tmp = 120.0 * a;
                                        	} else {
                                        		tmp = (x - y) * (60.0 / z);
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a):
                                        	tmp = 0
                                        	if (a <= -9.8e-63) or not (a <= 2.1e-158):
                                        		tmp = 120.0 * a
                                        	else:
                                        		tmp = (x - y) * (60.0 / z)
                                        	return tmp
                                        
                                        function code(x, y, z, t, a)
                                        	tmp = 0.0
                                        	if ((a <= -9.8e-63) || !(a <= 2.1e-158))
                                        		tmp = Float64(120.0 * a);
                                        	else
                                        		tmp = Float64(Float64(x - y) * Float64(60.0 / z));
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a)
                                        	tmp = 0.0;
                                        	if ((a <= -9.8e-63) || ~((a <= 2.1e-158)))
                                        		tmp = 120.0 * a;
                                        	else
                                        		tmp = (x - y) * (60.0 / z);
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -9.8e-63], N[Not[LessEqual[a, 2.1e-158]], $MachinePrecision]], N[(120.0 * a), $MachinePrecision], N[(N[(x - y), $MachinePrecision] * N[(60.0 / z), $MachinePrecision]), $MachinePrecision]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;a \leq -9.8 \cdot 10^{-63} \lor \neg \left(a \leq 2.1 \cdot 10^{-158}\right):\\
                                        \;\;\;\;120 \cdot a\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\left(x - y\right) \cdot \frac{60}{z}\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if a < -9.8000000000000003e-63 or 2.09999999999999991e-158 < a

                                          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 inf

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

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

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

                                          if -9.8000000000000003e-63 < a < 2.09999999999999991e-158

                                          1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -9.8 \cdot 10^{-63} \lor \neg \left(a \leq 2.1 \cdot 10^{-158}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{60}{z}\\ \end{array} \]
                                          10. Add Preprocessing

                                          Alternative 15: 59.8% accurate, 1.0× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -4.1 \cdot 10^{-63} \lor \neg \left(a \leq 4.1 \cdot 10^{-109}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{-60}{t}\\ \end{array} \end{array} \]
                                          (FPCore (x y z t a)
                                           :precision binary64
                                           (if (or (<= a -4.1e-63) (not (<= a 4.1e-109)))
                                             (* 120.0 a)
                                             (* (- x y) (/ -60.0 t))))
                                          double code(double x, double y, double z, double t, double a) {
                                          	double tmp;
                                          	if ((a <= -4.1e-63) || !(a <= 4.1e-109)) {
                                          		tmp = 120.0 * a;
                                          	} else {
                                          		tmp = (x - y) * (-60.0 / t);
                                          	}
                                          	return tmp;
                                          }
                                          
                                          module fmin_fmax_functions
                                              implicit none
                                              private
                                              public fmax
                                              public fmin
                                          
                                              interface fmax
                                                  module procedure fmax88
                                                  module procedure fmax44
                                                  module procedure fmax84
                                                  module procedure fmax48
                                              end interface
                                              interface fmin
                                                  module procedure fmin88
                                                  module procedure fmin44
                                                  module procedure fmin84
                                                  module procedure fmin48
                                              end interface
                                          contains
                                              real(8) function fmax88(x, y) result (res)
                                                  real(8), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                              end function
                                              real(4) function fmax44(x, y) result (res)
                                                  real(4), intent (in) :: x
                                                  real(4), intent (in) :: y
                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                              end function
                                              real(8) function fmax84(x, y) result(res)
                                                  real(8), intent (in) :: x
                                                  real(4), intent (in) :: y
                                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                              end function
                                              real(8) function fmax48(x, y) result(res)
                                                  real(4), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                              end function
                                              real(8) function fmin88(x, y) result (res)
                                                  real(8), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                              end function
                                              real(4) function fmin44(x, y) result (res)
                                                  real(4), intent (in) :: x
                                                  real(4), intent (in) :: y
                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                              end function
                                              real(8) function fmin84(x, y) result(res)
                                                  real(8), intent (in) :: x
                                                  real(4), intent (in) :: y
                                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                              end function
                                              real(8) function fmin48(x, y) result(res)
                                                  real(4), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                              end function
                                          end module
                                          
                                          real(8) function code(x, y, z, t, a)
                                          use fmin_fmax_functions
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              real(8), intent (in) :: z
                                              real(8), intent (in) :: t
                                              real(8), intent (in) :: a
                                              real(8) :: tmp
                                              if ((a <= (-4.1d-63)) .or. (.not. (a <= 4.1d-109))) then
                                                  tmp = 120.0d0 * a
                                              else
                                                  tmp = (x - y) * ((-60.0d0) / t)
                                              end if
                                              code = tmp
                                          end function
                                          
                                          public static double code(double x, double y, double z, double t, double a) {
                                          	double tmp;
                                          	if ((a <= -4.1e-63) || !(a <= 4.1e-109)) {
                                          		tmp = 120.0 * a;
                                          	} else {
                                          		tmp = (x - y) * (-60.0 / t);
                                          	}
                                          	return tmp;
                                          }
                                          
                                          def code(x, y, z, t, a):
                                          	tmp = 0
                                          	if (a <= -4.1e-63) or not (a <= 4.1e-109):
                                          		tmp = 120.0 * a
                                          	else:
                                          		tmp = (x - y) * (-60.0 / t)
                                          	return tmp
                                          
                                          function code(x, y, z, t, a)
                                          	tmp = 0.0
                                          	if ((a <= -4.1e-63) || !(a <= 4.1e-109))
                                          		tmp = Float64(120.0 * a);
                                          	else
                                          		tmp = Float64(Float64(x - y) * Float64(-60.0 / t));
                                          	end
                                          	return tmp
                                          end
                                          
                                          function tmp_2 = code(x, y, z, t, a)
                                          	tmp = 0.0;
                                          	if ((a <= -4.1e-63) || ~((a <= 4.1e-109)))
                                          		tmp = 120.0 * a;
                                          	else
                                          		tmp = (x - y) * (-60.0 / t);
                                          	end
                                          	tmp_2 = tmp;
                                          end
                                          
                                          code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4.1e-63], N[Not[LessEqual[a, 4.1e-109]], $MachinePrecision]], N[(120.0 * a), $MachinePrecision], N[(N[(x - y), $MachinePrecision] * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          \mathbf{if}\;a \leq -4.1 \cdot 10^{-63} \lor \neg \left(a \leq 4.1 \cdot 10^{-109}\right):\\
                                          \;\;\;\;120 \cdot a\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;\left(x - y\right) \cdot \frac{-60}{t}\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 2 regimes
                                          2. if a < -4.0999999999999998e-63 or 4.1000000000000002e-109 < a

                                            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 inf

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

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

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

                                            if -4.0999999999999998e-63 < a < 4.1000000000000002e-109

                                            1. Initial program 98.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.1 \cdot 10^{-63} \lor \neg \left(a \leq 4.1 \cdot 10^{-109}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{-60}{t}\\ \end{array} \]
                                            10. Add Preprocessing

                                            Alternative 16: 51.4% accurate, 5.2× speedup?

                                            \[\begin{array}{l} \\ 120 \cdot a \end{array} \]
                                            (FPCore (x y z t a) :precision binary64 (* 120.0 a))
                                            double code(double x, double y, double z, double t, double a) {
                                            	return 120.0 * a;
                                            }
                                            
                                            module fmin_fmax_functions
                                                implicit none
                                                private
                                                public fmax
                                                public fmin
                                            
                                                interface fmax
                                                    module procedure fmax88
                                                    module procedure fmax44
                                                    module procedure fmax84
                                                    module procedure fmax48
                                                end interface
                                                interface fmin
                                                    module procedure fmin88
                                                    module procedure fmin44
                                                    module procedure fmin84
                                                    module procedure fmin48
                                                end interface
                                            contains
                                                real(8) function fmax88(x, y) result (res)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                end function
                                                real(4) function fmax44(x, y) result (res)
                                                    real(4), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                end function
                                                real(8) function fmax84(x, y) result(res)
                                                    real(8), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                end function
                                                real(8) function fmax48(x, y) result(res)
                                                    real(4), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                end function
                                                real(8) function fmin88(x, y) result (res)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                end function
                                                real(4) function fmin44(x, y) result (res)
                                                    real(4), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                end function
                                                real(8) function fmin84(x, y) result(res)
                                                    real(8), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                end function
                                                real(8) function fmin48(x, y) result(res)
                                                    real(4), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                end function
                                            end module
                                            
                                            real(8) function code(x, y, z, t, a)
                                            use fmin_fmax_functions
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                real(8), intent (in) :: z
                                                real(8), intent (in) :: t
                                                real(8), intent (in) :: a
                                                code = 120.0d0 * a
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a) {
                                            	return 120.0 * a;
                                            }
                                            
                                            def code(x, y, z, t, a):
                                            	return 120.0 * a
                                            
                                            function code(x, y, z, t, a)
                                            	return Float64(120.0 * a)
                                            end
                                            
                                            function tmp = code(x, y, z, t, a)
                                            	tmp = 120.0 * a;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_] := N[(120.0 * a), $MachinePrecision]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            120 \cdot a
                                            \end{array}
                                            
                                            Derivation
                                            1. Initial program 99.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-*.f6449.8

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

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

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

                                            \[\begin{array}{l} \\ \frac{60}{\frac{z - t}{x - y}} + a \cdot 120 \end{array} \]
                                            (FPCore (x y z t a)
                                             :precision binary64
                                             (+ (/ 60.0 (/ (- z t) (- x y))) (* a 120.0)))
                                            double code(double x, double y, double z, double t, double a) {
                                            	return (60.0 / ((z - t) / (x - y))) + (a * 120.0);
                                            }
                                            
                                            module fmin_fmax_functions
                                                implicit none
                                                private
                                                public fmax
                                                public fmin
                                            
                                                interface fmax
                                                    module procedure fmax88
                                                    module procedure fmax44
                                                    module procedure fmax84
                                                    module procedure fmax48
                                                end interface
                                                interface fmin
                                                    module procedure fmin88
                                                    module procedure fmin44
                                                    module procedure fmin84
                                                    module procedure fmin48
                                                end interface
                                            contains
                                                real(8) function fmax88(x, y) result (res)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                end function
                                                real(4) function fmax44(x, y) result (res)
                                                    real(4), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                end function
                                                real(8) function fmax84(x, y) result(res)
                                                    real(8), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                end function
                                                real(8) function fmax48(x, y) result(res)
                                                    real(4), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                end function
                                                real(8) function fmin88(x, y) result (res)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                end function
                                                real(4) function fmin44(x, y) result (res)
                                                    real(4), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                end function
                                                real(8) function fmin84(x, y) result(res)
                                                    real(8), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                end function
                                                real(8) function fmin48(x, y) result(res)
                                                    real(4), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                end function
                                            end module
                                            
                                            real(8) function code(x, y, z, t, a)
                                            use fmin_fmax_functions
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                real(8), intent (in) :: z
                                                real(8), intent (in) :: t
                                                real(8), intent (in) :: a
                                                code = (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 2024360 
                                            (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)))