Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3

Percentage Accurate: 97.2% → 99.6%
Time: 5.9s
Alternatives: 10
Speedup: 1.1×

Specification

?
\[\begin{array}{l} \\ x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))
double code(double x, double y, double z, double t, double a) {
	return x - ((y - z) / (((t - z) + 1.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 = x - ((y - z) / (((t - z) + 1.0d0) / a))
end function
public static double code(double x, double y, double z, double t, double a) {
	return x - ((y - z) / (((t - z) + 1.0) / a));
}
def code(x, y, z, t, a):
	return x - ((y - z) / (((t - z) + 1.0) / a))
function code(x, y, z, t, a)
	return Float64(x - Float64(Float64(y - z) / Float64(Float64(Float64(t - z) + 1.0) / a)))
end
function tmp = code(x, y, z, t, a)
	tmp = x - ((y - z) / (((t - z) + 1.0) / a));
end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(y - z), $MachinePrecision] / N[(N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

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 10 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: 97.2% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))
double code(double x, double y, double z, double t, double a) {
	return x - ((y - z) / (((t - z) + 1.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 = x - ((y - z) / (((t - z) + 1.0d0) / a))
end function
public static double code(double x, double y, double z, double t, double a) {
	return x - ((y - z) / (((t - z) + 1.0) / a));
}
def code(x, y, z, t, a):
	return x - ((y - z) / (((t - z) + 1.0) / a))
function code(x, y, z, t, a)
	return Float64(x - Float64(Float64(y - z) / Float64(Float64(Float64(t - z) + 1.0) / a)))
end
function tmp = code(x, y, z, t, a)
	tmp = x - ((y - z) / (((t - z) + 1.0) / a));
end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(y - z), $MachinePrecision] / N[(N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 99.6% accurate, 1.1× speedup?

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

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

    \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
  2. Taylor expanded in a around 0

    \[\leadsto \color{blue}{x + a \cdot \left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}\right)} \]
  3. Step-by-step derivation
    1. +-commutativeN/A

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

      \[\leadsto \left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}\right) \cdot a + x \]
    3. lower-fma.f64N/A

      \[\leadsto \mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}, \color{blue}{a}, x\right) \]
    4. sub-divN/A

      \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(1 + t\right) - z}, a, x\right) \]
    5. lower-/.f64N/A

      \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(1 + t\right) - z}, a, x\right) \]
    6. lower--.f64N/A

      \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(1 + t\right) - z}, a, x\right) \]
    7. associate--l+N/A

      \[\leadsto \mathsf{fma}\left(\frac{z - y}{1 + \left(t - z\right)}, a, x\right) \]
    8. +-commutativeN/A

      \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(t - z\right) + 1}, a, x\right) \]
    9. associate-+l-N/A

      \[\leadsto \mathsf{fma}\left(\frac{z - y}{t - \left(z - 1\right)}, a, x\right) \]
    10. lower--.f64N/A

      \[\leadsto \mathsf{fma}\left(\frac{z - y}{t - \left(z - 1\right)}, a, x\right) \]
    11. lower--.f6499.6

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

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

Alternative 2: 89.5% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{z - y}{-z}, a, x\right)\\
\mathbf{if}\;z \leq -2.35 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 1.8 \cdot 10^{+16}:\\
\;\;\;\;x - a \cdot \frac{y}{1 + t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.35e19 or 1.8e16 < z

    1. Initial program 97.2%

      \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
    2. Taylor expanded in a around 0

      \[\leadsto \color{blue}{x + a \cdot \left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}\right)} \]
    3. Step-by-step derivation
      1. +-commutativeN/A

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

        \[\leadsto \left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}\right) \cdot a + x \]
      3. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}, \color{blue}{a}, x\right) \]
      4. sub-divN/A

        \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(1 + t\right) - z}, a, x\right) \]
      5. lower-/.f64N/A

        \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(1 + t\right) - z}, a, x\right) \]
      6. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(1 + t\right) - z}, a, x\right) \]
      7. associate--l+N/A

        \[\leadsto \mathsf{fma}\left(\frac{z - y}{1 + \left(t - z\right)}, a, x\right) \]
      8. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(t - z\right) + 1}, a, x\right) \]
      9. associate-+l-N/A

        \[\leadsto \mathsf{fma}\left(\frac{z - y}{t - \left(z - 1\right)}, a, x\right) \]
      10. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(\frac{z - y}{t - \left(z - 1\right)}, a, x\right) \]
      11. lower--.f6499.6

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

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

      \[\leadsto \mathsf{fma}\left(\frac{z - y}{-1 \cdot z}, a, x\right) \]
    6. Step-by-step derivation
      1. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(\frac{z - y}{\mathsf{neg}\left(z\right)}, a, x\right) \]
      2. lower-neg.f6459.6

        \[\leadsto \mathsf{fma}\left(\frac{z - y}{-z}, a, x\right) \]
    7. Applied rewrites59.6%

      \[\leadsto \mathsf{fma}\left(\frac{z - y}{-z}, a, x\right) \]

    if -2.35e19 < z < 1.8e16

    1. Initial program 97.2%

      \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
    2. Taylor expanded in z around 0

      \[\leadsto x - \color{blue}{\frac{a \cdot y}{1 + t}} \]
    3. Step-by-step derivation
      1. associate-/l*N/A

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

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

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

        \[\leadsto x - a \cdot \frac{y}{1 + \color{blue}{t}} \]
    4. Applied rewrites72.2%

      \[\leadsto x - \color{blue}{a \cdot \frac{y}{1 + t}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 3: 84.7% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.95 \cdot 10^{+43}:\\ \;\;\;\;x - a\\ \mathbf{elif}\;z \leq 1.9 \cdot 10^{+32}:\\ \;\;\;\;x - a \cdot \frac{y}{1 + t}\\ \mathbf{else}:\\ \;\;\;\;x - a\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= z -1.95e+43)
   (- x a)
   (if (<= z 1.9e+32) (- x (* a (/ y (+ 1.0 t)))) (- x a))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -1.95e+43) {
		tmp = x - a;
	} else if (z <= 1.9e+32) {
		tmp = x - (a * (y / (1.0 + t)));
	} else {
		tmp = x - 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 (z <= (-1.95d+43)) then
        tmp = x - a
    else if (z <= 1.9d+32) then
        tmp = x - (a * (y / (1.0d0 + t)))
    else
        tmp = x - a
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -1.95e+43) {
		tmp = x - a;
	} else if (z <= 1.9e+32) {
		tmp = x - (a * (y / (1.0 + t)));
	} else {
		tmp = x - a;
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if z <= -1.95e+43:
		tmp = x - a
	elif z <= 1.9e+32:
		tmp = x - (a * (y / (1.0 + t)))
	else:
		tmp = x - a
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (z <= -1.95e+43)
		tmp = Float64(x - a);
	elseif (z <= 1.9e+32)
		tmp = Float64(x - Float64(a * Float64(y / Float64(1.0 + t))));
	else
		tmp = Float64(x - a);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (z <= -1.95e+43)
		tmp = x - a;
	elseif (z <= 1.9e+32)
		tmp = x - (a * (y / (1.0 + t)));
	else
		tmp = x - a;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.95e+43], N[(x - a), $MachinePrecision], If[LessEqual[z, 1.9e+32], N[(x - N[(a * N[(y / N[(1.0 + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.95 \cdot 10^{+43}:\\
\;\;\;\;x - a\\

\mathbf{elif}\;z \leq 1.9 \cdot 10^{+32}:\\
\;\;\;\;x - a \cdot \frac{y}{1 + t}\\

\mathbf{else}:\\
\;\;\;\;x - a\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.95e43 or 1.9000000000000002e32 < z

    1. Initial program 97.2%

      \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
    2. Taylor expanded in z around inf

      \[\leadsto x - \color{blue}{a} \]
    3. Step-by-step derivation
      1. Applied rewrites59.8%

        \[\leadsto x - \color{blue}{a} \]

      if -1.95e43 < z < 1.9000000000000002e32

      1. Initial program 97.2%

        \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
      2. Taylor expanded in z around 0

        \[\leadsto x - \color{blue}{\frac{a \cdot y}{1 + t}} \]
      3. Step-by-step derivation
        1. associate-/l*N/A

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

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

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

          \[\leadsto x - a \cdot \frac{y}{1 + \color{blue}{t}} \]
      4. Applied rewrites72.2%

        \[\leadsto x - \color{blue}{a \cdot \frac{y}{1 + t}} \]
    4. Recombined 2 regimes into one program.
    5. Add Preprocessing

    Alternative 4: 72.6% accurate, 0.8× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{z - y}{t}, a, x\right)\\ \mathbf{if}\;t \leq -5.4:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -2.3 \cdot 10^{-284}:\\ \;\;\;\;x - a \cdot \frac{y}{1}\\ \mathbf{elif}\;t \leq 6.8 \cdot 10^{+96}:\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (let* ((t_1 (fma (/ (- z y) t) a x)))
       (if (<= t -5.4)
         t_1
         (if (<= t -2.3e-284)
           (- x (* a (/ y 1.0)))
           (if (<= t 6.8e+96) (- x a) t_1)))))
    double code(double x, double y, double z, double t, double a) {
    	double t_1 = fma(((z - y) / t), a, x);
    	double tmp;
    	if (t <= -5.4) {
    		tmp = t_1;
    	} else if (t <= -2.3e-284) {
    		tmp = x - (a * (y / 1.0));
    	} else if (t <= 6.8e+96) {
    		tmp = x - a;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a)
    	t_1 = fma(Float64(Float64(z - y) / t), a, x)
    	tmp = 0.0
    	if (t <= -5.4)
    		tmp = t_1;
    	elseif (t <= -2.3e-284)
    		tmp = Float64(x - Float64(a * Float64(y / 1.0)));
    	elseif (t <= 6.8e+96)
    		tmp = Float64(x - a);
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(z - y), $MachinePrecision] / t), $MachinePrecision] * a + x), $MachinePrecision]}, If[LessEqual[t, -5.4], t$95$1, If[LessEqual[t, -2.3e-284], N[(x - N[(a * N[(y / 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.8e+96], N[(x - a), $MachinePrecision], t$95$1]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(\frac{z - y}{t}, a, x\right)\\
    \mathbf{if}\;t \leq -5.4:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t \leq -2.3 \cdot 10^{-284}:\\
    \;\;\;\;x - a \cdot \frac{y}{1}\\
    
    \mathbf{elif}\;t \leq 6.8 \cdot 10^{+96}:\\
    \;\;\;\;x - a\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if t < -5.4000000000000004 or 6.8000000000000002e96 < t

      1. Initial program 97.2%

        \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
      2. Taylor expanded in a around 0

        \[\leadsto \color{blue}{x + a \cdot \left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}\right)} \]
      3. Step-by-step derivation
        1. +-commutativeN/A

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

          \[\leadsto \left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}\right) \cdot a + x \]
        3. lower-fma.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}, \color{blue}{a}, x\right) \]
        4. sub-divN/A

          \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(1 + t\right) - z}, a, x\right) \]
        5. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(1 + t\right) - z}, a, x\right) \]
        6. lower--.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(1 + t\right) - z}, a, x\right) \]
        7. associate--l+N/A

          \[\leadsto \mathsf{fma}\left(\frac{z - y}{1 + \left(t - z\right)}, a, x\right) \]
        8. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(t - z\right) + 1}, a, x\right) \]
        9. associate-+l-N/A

          \[\leadsto \mathsf{fma}\left(\frac{z - y}{t - \left(z - 1\right)}, a, x\right) \]
        10. lower--.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{z - y}{t - \left(z - 1\right)}, a, x\right) \]
        11. lower--.f6499.6

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

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

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

          \[\leadsto \mathsf{fma}\left(\frac{z - y}{t}, a, x\right) \]
        2. lift--.f6452.8

          \[\leadsto \mathsf{fma}\left(\frac{z - y}{t}, a, x\right) \]
      7. Applied rewrites52.8%

        \[\leadsto \mathsf{fma}\left(\frac{z - y}{t}, a, x\right) \]

      if -5.4000000000000004 < t < -2.3e-284

      1. Initial program 97.2%

        \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
      2. Taylor expanded in z around 0

        \[\leadsto x - \color{blue}{\frac{a \cdot y}{1 + t}} \]
      3. Step-by-step derivation
        1. associate-/l*N/A

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

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

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

          \[\leadsto x - a \cdot \frac{y}{1 + \color{blue}{t}} \]
      4. Applied rewrites72.2%

        \[\leadsto x - \color{blue}{a \cdot \frac{y}{1 + t}} \]
      5. Taylor expanded in t around 0

        \[\leadsto x - a \cdot \frac{y}{1} \]
      6. Step-by-step derivation
        1. Applied rewrites57.0%

          \[\leadsto x - a \cdot \frac{y}{1} \]

        if -2.3e-284 < t < 6.8000000000000002e96

        1. Initial program 97.2%

          \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
        2. Taylor expanded in z around inf

          \[\leadsto x - \color{blue}{a} \]
        3. Step-by-step derivation
          1. Applied rewrites59.8%

            \[\leadsto x - \color{blue}{a} \]
        4. Recombined 3 regimes into one program.
        5. Add Preprocessing

        Alternative 5: 71.8% accurate, 0.9× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.75 \cdot 10^{+42}:\\ \;\;\;\;x - a\\ \mathbf{elif}\;z \leq 2.95 \cdot 10^{-276}:\\ \;\;\;\;x - a \cdot \frac{y}{1}\\ \mathbf{elif}\;z \leq 1.95 \cdot 10^{+50}:\\ \;\;\;\;x - a \cdot \frac{y}{t}\\ \mathbf{else}:\\ \;\;\;\;x - a\\ \end{array} \end{array} \]
        (FPCore (x y z t a)
         :precision binary64
         (if (<= z -2.75e+42)
           (- x a)
           (if (<= z 2.95e-276)
             (- x (* a (/ y 1.0)))
             (if (<= z 1.95e+50) (- x (* a (/ y t))) (- x a)))))
        double code(double x, double y, double z, double t, double a) {
        	double tmp;
        	if (z <= -2.75e+42) {
        		tmp = x - a;
        	} else if (z <= 2.95e-276) {
        		tmp = x - (a * (y / 1.0));
        	} else if (z <= 1.95e+50) {
        		tmp = x - (a * (y / t));
        	} else {
        		tmp = x - 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 (z <= (-2.75d+42)) then
                tmp = x - a
            else if (z <= 2.95d-276) then
                tmp = x - (a * (y / 1.0d0))
            else if (z <= 1.95d+50) then
                tmp = x - (a * (y / t))
            else
                tmp = x - a
            end if
            code = tmp
        end function
        
        public static double code(double x, double y, double z, double t, double a) {
        	double tmp;
        	if (z <= -2.75e+42) {
        		tmp = x - a;
        	} else if (z <= 2.95e-276) {
        		tmp = x - (a * (y / 1.0));
        	} else if (z <= 1.95e+50) {
        		tmp = x - (a * (y / t));
        	} else {
        		tmp = x - a;
        	}
        	return tmp;
        }
        
        def code(x, y, z, t, a):
        	tmp = 0
        	if z <= -2.75e+42:
        		tmp = x - a
        	elif z <= 2.95e-276:
        		tmp = x - (a * (y / 1.0))
        	elif z <= 1.95e+50:
        		tmp = x - (a * (y / t))
        	else:
        		tmp = x - a
        	return tmp
        
        function code(x, y, z, t, a)
        	tmp = 0.0
        	if (z <= -2.75e+42)
        		tmp = Float64(x - a);
        	elseif (z <= 2.95e-276)
        		tmp = Float64(x - Float64(a * Float64(y / 1.0)));
        	elseif (z <= 1.95e+50)
        		tmp = Float64(x - Float64(a * Float64(y / t)));
        	else
        		tmp = Float64(x - a);
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t, a)
        	tmp = 0.0;
        	if (z <= -2.75e+42)
        		tmp = x - a;
        	elseif (z <= 2.95e-276)
        		tmp = x - (a * (y / 1.0));
        	elseif (z <= 1.95e+50)
        		tmp = x - (a * (y / t));
        	else
        		tmp = x - a;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.75e+42], N[(x - a), $MachinePrecision], If[LessEqual[z, 2.95e-276], N[(x - N[(a * N[(y / 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.95e+50], N[(x - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;z \leq -2.75 \cdot 10^{+42}:\\
        \;\;\;\;x - a\\
        
        \mathbf{elif}\;z \leq 2.95 \cdot 10^{-276}:\\
        \;\;\;\;x - a \cdot \frac{y}{1}\\
        
        \mathbf{elif}\;z \leq 1.95 \cdot 10^{+50}:\\
        \;\;\;\;x - a \cdot \frac{y}{t}\\
        
        \mathbf{else}:\\
        \;\;\;\;x - a\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if z < -2.75000000000000001e42 or 1.94999999999999984e50 < z

          1. Initial program 97.2%

            \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
          2. Taylor expanded in z around inf

            \[\leadsto x - \color{blue}{a} \]
          3. Step-by-step derivation
            1. Applied rewrites59.8%

              \[\leadsto x - \color{blue}{a} \]

            if -2.75000000000000001e42 < z < 2.94999999999999988e-276

            1. Initial program 97.2%

              \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
            2. Taylor expanded in z around 0

              \[\leadsto x - \color{blue}{\frac{a \cdot y}{1 + t}} \]
            3. Step-by-step derivation
              1. associate-/l*N/A

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

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

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

                \[\leadsto x - a \cdot \frac{y}{1 + \color{blue}{t}} \]
            4. Applied rewrites72.2%

              \[\leadsto x - \color{blue}{a \cdot \frac{y}{1 + t}} \]
            5. Taylor expanded in t around 0

              \[\leadsto x - a \cdot \frac{y}{1} \]
            6. Step-by-step derivation
              1. Applied rewrites57.0%

                \[\leadsto x - a \cdot \frac{y}{1} \]

              if 2.94999999999999988e-276 < z < 1.94999999999999984e50

              1. Initial program 97.2%

                \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
              2. Taylor expanded in z around 0

                \[\leadsto x - \color{blue}{\frac{a \cdot y}{1 + t}} \]
              3. Step-by-step derivation
                1. associate-/l*N/A

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

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

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

                  \[\leadsto x - a \cdot \frac{y}{1 + \color{blue}{t}} \]
              4. Applied rewrites72.2%

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

                \[\leadsto x - a \cdot \frac{y}{\color{blue}{t}} \]
              6. Step-by-step derivation
                1. lower-/.f6455.4

                  \[\leadsto x - a \cdot \frac{y}{t} \]
              7. Applied rewrites55.4%

                \[\leadsto x - a \cdot \frac{y}{\color{blue}{t}} \]
            7. Recombined 3 regimes into one program.
            8. Add Preprocessing

            Alternative 6: 70.8% accurate, 1.0× speedup?

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

              1. Initial program 97.2%

                \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
              2. Taylor expanded in z around inf

                \[\leadsto x - \color{blue}{a} \]
              3. Step-by-step derivation
                1. Applied rewrites59.8%

                  \[\leadsto x - \color{blue}{a} \]

                if -8e14 < z < 1.94999999999999984e50

                1. Initial program 97.2%

                  \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
                2. Taylor expanded in z around 0

                  \[\leadsto x - \color{blue}{\frac{a \cdot y}{1 + t}} \]
                3. Step-by-step derivation
                  1. associate-/l*N/A

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

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

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

                    \[\leadsto x - a \cdot \frac{y}{1 + \color{blue}{t}} \]
                4. Applied rewrites72.2%

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

                  \[\leadsto x - a \cdot \frac{y}{\color{blue}{t}} \]
                6. Step-by-step derivation
                  1. lower-/.f6455.4

                    \[\leadsto x - a \cdot \frac{y}{t} \]
                7. Applied rewrites55.4%

                  \[\leadsto x - a \cdot \frac{y}{\color{blue}{t}} \]
              4. Recombined 2 regimes into one program.
              5. Add Preprocessing

              Alternative 7: 64.4% accurate, 1.1× speedup?

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

                1. Initial program 97.2%

                  \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
                2. Taylor expanded in a around 0

                  \[\leadsto \color{blue}{x + a \cdot \left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}\right)} \]
                3. Step-by-step derivation
                  1. +-commutativeN/A

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

                    \[\leadsto \left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}\right) \cdot a + x \]
                  3. lower-fma.f64N/A

                    \[\leadsto \mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}, \color{blue}{a}, x\right) \]
                  4. sub-divN/A

                    \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(1 + t\right) - z}, a, x\right) \]
                  5. lower-/.f64N/A

                    \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(1 + t\right) - z}, a, x\right) \]
                  6. lower--.f64N/A

                    \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(1 + t\right) - z}, a, x\right) \]
                  7. associate--l+N/A

                    \[\leadsto \mathsf{fma}\left(\frac{z - y}{1 + \left(t - z\right)}, a, x\right) \]
                  8. +-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(\frac{z - y}{\left(t - z\right) + 1}, a, x\right) \]
                  9. associate-+l-N/A

                    \[\leadsto \mathsf{fma}\left(\frac{z - y}{t - \left(z - 1\right)}, a, x\right) \]
                  10. lower--.f64N/A

                    \[\leadsto \mathsf{fma}\left(\frac{z - y}{t - \left(z - 1\right)}, a, x\right) \]
                  11. lower--.f6499.6

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

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

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

                    \[\leadsto \mathsf{fma}\left(\frac{z - y}{t}, a, x\right) \]
                  2. lift--.f6452.8

                    \[\leadsto \mathsf{fma}\left(\frac{z - y}{t}, a, x\right) \]
                7. Applied rewrites52.8%

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

                  \[\leadsto \mathsf{fma}\left(\frac{z}{t}, a, x\right) \]
                9. Step-by-step derivation
                  1. lower-/.f6445.2

                    \[\leadsto \mathsf{fma}\left(\frac{z}{t}, a, x\right) \]
                10. Applied rewrites45.2%

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

                if -3.8000000000000001e157 < t < 6.0000000000000001e105

                1. Initial program 97.2%

                  \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
                2. Taylor expanded in z around inf

                  \[\leadsto x - \color{blue}{a} \]
                3. Step-by-step derivation
                  1. Applied rewrites59.8%

                    \[\leadsto x - \color{blue}{a} \]
                4. Recombined 2 regimes into one program.
                5. Add Preprocessing

                Alternative 8: 60.9% accurate, 0.7× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \leq 2 \cdot 10^{+276}:\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;a \cdot \frac{y}{z}\\ \end{array} \end{array} \]
                (FPCore (x y z t a)
                 :precision binary64
                 (if (<= (/ (- y z) (/ (+ (- t z) 1.0) a)) 2e+276) (- x a) (* a (/ y z))))
                double code(double x, double y, double z, double t, double a) {
                	double tmp;
                	if (((y - z) / (((t - z) + 1.0) / a)) <= 2e+276) {
                		tmp = x - a;
                	} else {
                		tmp = a * (y / 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 (((y - z) / (((t - z) + 1.0d0) / a)) <= 2d+276) then
                        tmp = x - a
                    else
                        tmp = a * (y / z)
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y, double z, double t, double a) {
                	double tmp;
                	if (((y - z) / (((t - z) + 1.0) / a)) <= 2e+276) {
                		tmp = x - a;
                	} else {
                		tmp = a * (y / z);
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a):
                	tmp = 0
                	if ((y - z) / (((t - z) + 1.0) / a)) <= 2e+276:
                		tmp = x - a
                	else:
                		tmp = a * (y / z)
                	return tmp
                
                function code(x, y, z, t, a)
                	tmp = 0.0
                	if (Float64(Float64(y - z) / Float64(Float64(Float64(t - z) + 1.0) / a)) <= 2e+276)
                		tmp = Float64(x - a);
                	else
                		tmp = Float64(a * Float64(y / z));
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a)
                	tmp = 0.0;
                	if (((y - z) / (((t - z) + 1.0) / a)) <= 2e+276)
                		tmp = x - a;
                	else
                		tmp = a * (y / z);
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_] := If[LessEqual[N[(N[(y - z), $MachinePrecision] / N[(N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], 2e+276], N[(x - a), $MachinePrecision], N[(a * N[(y / z), $MachinePrecision]), $MachinePrecision]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;\frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \leq 2 \cdot 10^{+276}:\\
                \;\;\;\;x - a\\
                
                \mathbf{else}:\\
                \;\;\;\;a \cdot \frac{y}{z}\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if (/.f64 (-.f64 y z) (/.f64 (+.f64 (-.f64 t z) #s(literal 1 binary64)) a)) < 2.0000000000000001e276

                  1. Initial program 97.2%

                    \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
                  2. Taylor expanded in z around inf

                    \[\leadsto x - \color{blue}{a} \]
                  3. Step-by-step derivation
                    1. Applied rewrites59.8%

                      \[\leadsto x - \color{blue}{a} \]

                    if 2.0000000000000001e276 < (/.f64 (-.f64 y z) (/.f64 (+.f64 (-.f64 t z) #s(literal 1 binary64)) a))

                    1. Initial program 97.2%

                      \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
                    2. Taylor expanded in y around inf

                      \[\leadsto \color{blue}{-1 \cdot \frac{a \cdot y}{\left(1 + t\right) - z}} \]
                    3. Step-by-step derivation
                      1. associate-*r/N/A

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

                        \[\leadsto \frac{-1 \cdot \left(a \cdot y\right)}{\color{blue}{\left(1 + t\right) - z}} \]
                      3. mul-1-negN/A

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

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

                        \[\leadsto \frac{-a \cdot y}{\left(\color{blue}{1} + t\right) - z} \]
                      6. associate--l+N/A

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

                        \[\leadsto \frac{-a \cdot y}{\left(t - z\right) + \color{blue}{1}} \]
                      8. associate-+l-N/A

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

                        \[\leadsto \frac{-a \cdot y}{t - \color{blue}{\left(z - 1\right)}} \]
                      10. lower--.f6424.5

                        \[\leadsto \frac{-a \cdot y}{t - \left(z - \color{blue}{1}\right)} \]
                    4. Applied rewrites24.5%

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

                      \[\leadsto \frac{a \cdot y}{\color{blue}{z}} \]
                    6. Step-by-step derivation
                      1. lower-/.f64N/A

                        \[\leadsto \frac{a \cdot y}{z} \]
                      2. lift-*.f649.3

                        \[\leadsto \frac{a \cdot y}{z} \]
                    7. Applied rewrites9.3%

                      \[\leadsto \frac{a \cdot y}{\color{blue}{z}} \]
                    8. Step-by-step derivation
                      1. lift-*.f64N/A

                        \[\leadsto \frac{a \cdot y}{z} \]
                      2. lift-/.f64N/A

                        \[\leadsto \frac{a \cdot y}{z} \]
                      3. associate-/l*N/A

                        \[\leadsto a \cdot \frac{y}{\color{blue}{z}} \]
                      4. lower-*.f64N/A

                        \[\leadsto a \cdot \frac{y}{\color{blue}{z}} \]
                      5. lower-/.f6410.4

                        \[\leadsto a \cdot \frac{y}{z} \]
                    9. Applied rewrites10.4%

                      \[\leadsto a \cdot \frac{y}{\color{blue}{z}} \]
                  4. Recombined 2 regimes into one program.
                  5. Add Preprocessing

                  Alternative 9: 59.8% accurate, 5.1× speedup?

                  \[\begin{array}{l} \\ x - a \end{array} \]
                  (FPCore (x y z t a) :precision binary64 (- x a))
                  double code(double x, double y, double z, double t, double a) {
                  	return x - 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 = x - a
                  end function
                  
                  public static double code(double x, double y, double z, double t, double a) {
                  	return x - a;
                  }
                  
                  def code(x, y, z, t, a):
                  	return x - a
                  
                  function code(x, y, z, t, a)
                  	return Float64(x - a)
                  end
                  
                  function tmp = code(x, y, z, t, a)
                  	tmp = x - a;
                  end
                  
                  code[x_, y_, z_, t_, a_] := N[(x - a), $MachinePrecision]
                  
                  \begin{array}{l}
                  
                  \\
                  x - a
                  \end{array}
                  
                  Derivation
                  1. Initial program 97.2%

                    \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
                  2. Taylor expanded in z around inf

                    \[\leadsto x - \color{blue}{a} \]
                  3. Step-by-step derivation
                    1. Applied rewrites59.8%

                      \[\leadsto x - \color{blue}{a} \]
                    2. Add Preprocessing

                    Alternative 10: 16.5% accurate, 9.3× speedup?

                    \[\begin{array}{l} \\ -a \end{array} \]
                    (FPCore (x y z t a) :precision binary64 (- a))
                    double code(double x, double y, double z, double t, double a) {
                    	return -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 = -a
                    end function
                    
                    public static double code(double x, double y, double z, double t, double a) {
                    	return -a;
                    }
                    
                    def code(x, y, z, t, a):
                    	return -a
                    
                    function code(x, y, z, t, a)
                    	return Float64(-a)
                    end
                    
                    function tmp = code(x, y, z, t, a)
                    	tmp = -a;
                    end
                    
                    code[x_, y_, z_, t_, a_] := (-a)
                    
                    \begin{array}{l}
                    
                    \\
                    -a
                    \end{array}
                    
                    Derivation
                    1. Initial program 97.2%

                      \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
                    2. Taylor expanded in a around inf

                      \[\leadsto \color{blue}{a \cdot \left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}\right)} \]
                    3. Step-by-step derivation
                      1. *-commutativeN/A

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

                        \[\leadsto \left(\frac{z}{\left(1 + t\right) - z} - \frac{y}{\left(1 + t\right) - z}\right) \cdot \color{blue}{a} \]
                      3. sub-divN/A

                        \[\leadsto \frac{z - y}{\left(1 + t\right) - z} \cdot a \]
                      4. lower-/.f64N/A

                        \[\leadsto \frac{z - y}{\left(1 + t\right) - z} \cdot a \]
                      5. lower--.f64N/A

                        \[\leadsto \frac{z - y}{\left(1 + t\right) - z} \cdot a \]
                      6. associate--l+N/A

                        \[\leadsto \frac{z - y}{1 + \left(t - z\right)} \cdot a \]
                      7. +-commutativeN/A

                        \[\leadsto \frac{z - y}{\left(t - z\right) + 1} \cdot a \]
                      8. associate-+l-N/A

                        \[\leadsto \frac{z - y}{t - \left(z - 1\right)} \cdot a \]
                      9. lower--.f64N/A

                        \[\leadsto \frac{z - y}{t - \left(z - 1\right)} \cdot a \]
                      10. lower--.f6447.8

                        \[\leadsto \frac{z - y}{t - \left(z - 1\right)} \cdot a \]
                    4. Applied rewrites47.8%

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

                      \[\leadsto -1 \cdot \color{blue}{a} \]
                    6. Step-by-step derivation
                      1. mul-1-negN/A

                        \[\leadsto \mathsf{neg}\left(a\right) \]
                      2. lower-neg.f6416.5

                        \[\leadsto -a \]
                    7. Applied rewrites16.5%

                      \[\leadsto -a \]
                    8. Add Preprocessing

                    Reproduce

                    ?
                    herbie shell --seed 2025127 
                    (FPCore (x y z t a)
                      :name "Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3"
                      :precision binary64
                      (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))