Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2

Percentage Accurate: 55.7% → 85.2%
Time: 12.7s
Alternatives: 14
Speedup: 1.9×

Specification

?
\[\begin{array}{l} \\ \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (/
  (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t)
  (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
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, b, c, i)
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), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i):
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i)
	return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i))
end
function tmp = code(x, y, z, t, a, b, c, i)
	tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\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 14 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: 55.7% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (/
  (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t)
  (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
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, b, c, i)
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), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i):
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i)
	return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i))
end
function tmp = code(x, y, z, t, a, b, c, i)
	tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}

Alternative 1: 85.2% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\ \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \frac{t}{t\_1}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(-\frac{z \cdot -1}{y}\right) + x\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i)))
   (if (<=
        (/
         (+
          (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
          t)
         (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
        INFINITY)
     (fma
      y
      (/ (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) t_1)
      (/ t t_1))
     (+ (- (/ (* z -1.0) y)) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
	double tmp;
	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)) <= ((double) INFINITY)) {
		tmp = fma(y, (fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_1), (t / t_1));
	} else {
		tmp = -((z * -1.0) / y) + x;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i)
	tmp = 0.0
	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) <= Inf)
		tmp = fma(y, Float64(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_1), Float64(t / t_1));
	else
		tmp = Float64(Float64(-Float64(Float64(z * -1.0) / y)) + x);
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(y * N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(t / t$95$1), $MachinePrecision]), $MachinePrecision], N[((-N[(N[(z * -1.0), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
\mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \frac{t}{t\_1}\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

    1. Initial program 55.7%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Applied rewrites56.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]

    if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

    1. Initial program 55.7%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Taylor expanded in y around -inf

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

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

        \[\leadsto -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y} + \color{blue}{x} \]
    4. Applied rewrites27.7%

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

      \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
      3. lower-/.f6433.8

        \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
    7. Applied rewrites33.8%

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

      \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
    9. Step-by-step derivation
      1. Applied rewrites33.5%

        \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
    10. Recombined 2 regimes into one program.
    11. Add Preprocessing

    Alternative 2: 83.9% accurate, 0.5× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{if}\;t\_1 \leq 2 \cdot 10^{+307}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(-\frac{z \cdot -1}{y}\right) + x\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i)
     :precision binary64
     (let* ((t_1
             (/
              (+
               (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
               t)
              (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))))
       (if (<= t_1 2e+307) t_1 (+ (- (/ (* z -1.0) y)) x))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
    	double tmp;
    	if (t_1 <= 2e+307) {
    		tmp = t_1;
    	} else {
    		tmp = -((z * -1.0) / y) + x;
    	}
    	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, b, c, i)
    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), intent (in) :: b
        real(8), intent (in) :: c
        real(8), intent (in) :: i
        real(8) :: t_1
        real(8) :: tmp
        t_1 = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
        if (t_1 <= 2d+307) then
            tmp = t_1
        else
            tmp = -((z * (-1.0d0)) / y) + x
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
    	double tmp;
    	if (t_1 <= 2e+307) {
    		tmp = t_1;
    	} else {
    		tmp = -((z * -1.0) / y) + x;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b, c, i):
    	t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
    	tmp = 0
    	if t_1 <= 2e+307:
    		tmp = t_1
    	else:
    		tmp = -((z * -1.0) / y) + x
    	return tmp
    
    function code(x, y, z, t, a, b, c, i)
    	t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i))
    	tmp = 0.0
    	if (t_1 <= 2e+307)
    		tmp = t_1;
    	else
    		tmp = Float64(Float64(-Float64(Float64(z * -1.0) / y)) + x);
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b, c, i)
    	t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
    	tmp = 0.0;
    	if (t_1 <= 2e+307)
    		tmp = t_1;
    	else
    		tmp = -((z * -1.0) / y) + x;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 2e+307], t$95$1, N[((-N[(N[(z * -1.0), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
    \mathbf{if}\;t\_1 \leq 2 \cdot 10^{+307}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{else}:\\
    \;\;\;\;\left(-\frac{z \cdot -1}{y}\right) + x\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 1.99999999999999997e307

      1. Initial program 55.7%

        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]

      if 1.99999999999999997e307 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

      1. Initial program 55.7%

        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      2. Taylor expanded in y around -inf

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

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

          \[\leadsto -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y} + \color{blue}{x} \]
      4. Applied rewrites27.7%

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

        \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
      6. Step-by-step derivation
        1. lower-*.f64N/A

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

          \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
        3. lower-/.f6433.8

          \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
      7. Applied rewrites33.8%

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

        \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
      9. Step-by-step derivation
        1. Applied rewrites33.5%

          \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
      10. Recombined 2 regimes into one program.
      11. Add Preprocessing

      Alternative 3: 77.1% accurate, 0.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-\frac{z \cdot -1}{y}\right) + x\\ \mathbf{if}\;y \leq -2.1 \cdot 10^{+57}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -6 \cdot 10^{-19}:\\ \;\;\;\;\left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{-41}:\\ \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{elif}\;y \leq 2.2 \cdot 10^{+38}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(c, y, i\right)}, \frac{t}{\mathsf{fma}\left(c, y, i\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a b c i)
       :precision binary64
       (let* ((t_1 (+ (- (/ (* z -1.0) y)) x)))
         (if (<= y -2.1e+57)
           t_1
           (if (<= y -6e-19)
             (* (* (* y y) y) (/ z (fma (fma (fma (+ a y) y b) y c) y i)))
             (if (<= y 2.3e-41)
               (/
                (fma 230661.510616 y t)
                (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
               (if (<= y 2.2e+38)
                 (fma
                  y
                  (/
                   (fma (fma (fma y x z) y 27464.7644705) y 230661.510616)
                   (fma c y i))
                  (/ t (fma c y i)))
                 t_1))))))
      double code(double x, double y, double z, double t, double a, double b, double c, double i) {
      	double t_1 = -((z * -1.0) / y) + x;
      	double tmp;
      	if (y <= -2.1e+57) {
      		tmp = t_1;
      	} else if (y <= -6e-19) {
      		tmp = ((y * y) * y) * (z / fma(fma(fma((a + y), y, b), y, c), y, i));
      	} else if (y <= 2.3e-41) {
      		tmp = fma(230661.510616, y, t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
      	} else if (y <= 2.2e+38) {
      		tmp = fma(y, (fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / fma(c, y, i)), (t / fma(c, y, i)));
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b, c, i)
      	t_1 = Float64(Float64(-Float64(Float64(z * -1.0) / y)) + x)
      	tmp = 0.0
      	if (y <= -2.1e+57)
      		tmp = t_1;
      	elseif (y <= -6e-19)
      		tmp = Float64(Float64(Float64(y * y) * y) * Float64(z / fma(fma(fma(Float64(a + y), y, b), y, c), y, i)));
      	elseif (y <= 2.3e-41)
      		tmp = Float64(fma(230661.510616, y, t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i));
      	elseif (y <= 2.2e+38)
      		tmp = fma(y, Float64(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / fma(c, y, i)), Float64(t / fma(c, y, i)));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[((-N[(N[(z * -1.0), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -2.1e+57], t$95$1, If[LessEqual[y, -6e-19], N[(N[(N[(y * y), $MachinePrecision] * y), $MachinePrecision] * N[(z / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e-41], N[(N[(230661.510616 * y + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e+38], N[(y * N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / N[(c * y + i), $MachinePrecision]), $MachinePrecision] + N[(t / N[(c * y + i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \left(-\frac{z \cdot -1}{y}\right) + x\\
      \mathbf{if}\;y \leq -2.1 \cdot 10^{+57}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;y \leq -6 \cdot 10^{-19}:\\
      \;\;\;\;\left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
      
      \mathbf{elif}\;y \leq 2.3 \cdot 10^{-41}:\\
      \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
      
      \mathbf{elif}\;y \leq 2.2 \cdot 10^{+38}:\\
      \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(c, y, i\right)}, \frac{t}{\mathsf{fma}\left(c, y, i\right)}\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if y < -2.09999999999999991e57 or 2.20000000000000006e38 < y

        1. Initial program 55.7%

          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. Taylor expanded in y around -inf

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

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

            \[\leadsto -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y} + \color{blue}{x} \]
        4. Applied rewrites27.7%

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

          \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
        6. Step-by-step derivation
          1. lower-*.f64N/A

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

            \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
          3. lower-/.f6433.8

            \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
        7. Applied rewrites33.8%

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

          \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
        9. Step-by-step derivation
          1. Applied rewrites33.5%

            \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]

          if -2.09999999999999991e57 < y < -5.99999999999999985e-19

          1. Initial program 55.7%

            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          2. Taylor expanded in z around inf

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

              \[\leadsto {y}^{3} \cdot \color{blue}{\frac{z}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
            2. lower-*.f64N/A

              \[\leadsto {y}^{3} \cdot \color{blue}{\frac{z}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
            3. unpow3N/A

              \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{\color{blue}{z}}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
            4. unpow2N/A

              \[\leadsto \left({y}^{2} \cdot y\right) \cdot \frac{z}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
            5. lower-*.f64N/A

              \[\leadsto \left({y}^{2} \cdot y\right) \cdot \frac{\color{blue}{z}}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
            6. unpow2N/A

              \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
            7. lower-*.f64N/A

              \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
            8. lower-/.f64N/A

              \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\color{blue}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
            9. +-commutativeN/A

              \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) + \color{blue}{i}} \]
            10. *-commutativeN/A

              \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) \cdot y + i} \]
            11. lower-fma.f64N/A

              \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\mathsf{fma}\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right), \color{blue}{y}, i\right)} \]
          4. Applied rewrites11.1%

            \[\leadsto \color{blue}{\left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]

          if -5.99999999999999985e-19 < y < 2.3000000000000001e-41

          1. Initial program 55.7%

            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          2. Taylor expanded in y around 0

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

              \[\leadsto \frac{\frac{28832688827}{125000} \cdot y + \color{blue}{t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            2. lower-fma.f6447.7

              \[\leadsto \frac{\mathsf{fma}\left(230661.510616, \color{blue}{y}, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          4. Applied rewrites47.7%

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(230661.510616, y, t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]

          if 2.3000000000000001e-41 < y < 2.20000000000000006e38

          1. Initial program 55.7%

            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          2. Applied rewrites56.5%

            \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
          3. Taylor expanded in y around 0

            \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right)}{\mathsf{fma}\left(\color{blue}{c}, y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
          4. Step-by-step derivation
            1. Applied rewrites48.4%

              \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\color{blue}{c}, y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
            2. Taylor expanded in y around 0

              \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right)}{\mathsf{fma}\left(c, y, i\right)}, \frac{t}{\mathsf{fma}\left(\color{blue}{c}, y, i\right)}\right) \]
            3. Step-by-step derivation
              1. Applied rewrites45.9%

                \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(c, y, i\right)}, \frac{t}{\mathsf{fma}\left(\color{blue}{c}, y, i\right)}\right) \]
            4. Recombined 4 regimes into one program.
            5. Add Preprocessing

            Alternative 4: 76.9% accurate, 1.2× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-\frac{z \cdot -1}{y}\right) + x\\ \mathbf{if}\;y \leq -2.1 \cdot 10^{+57}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -6 \cdot 10^{-19}:\\ \;\;\;\;\left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{elif}\;y \leq 3.3 \cdot 10^{+31}:\\ \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a b c i)
             :precision binary64
             (let* ((t_1 (+ (- (/ (* z -1.0) y)) x)))
               (if (<= y -2.1e+57)
                 t_1
                 (if (<= y -6e-19)
                   (* (* (* y y) y) (/ z (fma (fma (fma (+ a y) y b) y c) y i)))
                   (if (<= y 3.3e+31)
                     (/
                      (fma 230661.510616 y t)
                      (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
                     t_1)))))
            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
            	double t_1 = -((z * -1.0) / y) + x;
            	double tmp;
            	if (y <= -2.1e+57) {
            		tmp = t_1;
            	} else if (y <= -6e-19) {
            		tmp = ((y * y) * y) * (z / fma(fma(fma((a + y), y, b), y, c), y, i));
            	} else if (y <= 3.3e+31) {
            		tmp = fma(230661.510616, y, t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b, c, i)
            	t_1 = Float64(Float64(-Float64(Float64(z * -1.0) / y)) + x)
            	tmp = 0.0
            	if (y <= -2.1e+57)
            		tmp = t_1;
            	elseif (y <= -6e-19)
            		tmp = Float64(Float64(Float64(y * y) * y) * Float64(z / fma(fma(fma(Float64(a + y), y, b), y, c), y, i)));
            	elseif (y <= 3.3e+31)
            		tmp = Float64(fma(230661.510616, y, t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i));
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[((-N[(N[(z * -1.0), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -2.1e+57], t$95$1, If[LessEqual[y, -6e-19], N[(N[(N[(y * y), $MachinePrecision] * y), $MachinePrecision] * N[(z / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e+31], N[(N[(230661.510616 * y + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \left(-\frac{z \cdot -1}{y}\right) + x\\
            \mathbf{if}\;y \leq -2.1 \cdot 10^{+57}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;y \leq -6 \cdot 10^{-19}:\\
            \;\;\;\;\left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
            
            \mathbf{elif}\;y \leq 3.3 \cdot 10^{+31}:\\
            \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if y < -2.09999999999999991e57 or 3.29999999999999992e31 < y

              1. Initial program 55.7%

                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
              2. Taylor expanded in y around -inf

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

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

                  \[\leadsto -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y} + \color{blue}{x} \]
              4. Applied rewrites27.7%

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

                \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
              6. Step-by-step derivation
                1. lower-*.f64N/A

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

                  \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                3. lower-/.f6433.8

                  \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
              7. Applied rewrites33.8%

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

                \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
              9. Step-by-step derivation
                1. Applied rewrites33.5%

                  \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]

                if -2.09999999999999991e57 < y < -5.99999999999999985e-19

                1. Initial program 55.7%

                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                2. Taylor expanded in z around inf

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

                    \[\leadsto {y}^{3} \cdot \color{blue}{\frac{z}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                  2. lower-*.f64N/A

                    \[\leadsto {y}^{3} \cdot \color{blue}{\frac{z}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                  3. unpow3N/A

                    \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{\color{blue}{z}}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                  4. unpow2N/A

                    \[\leadsto \left({y}^{2} \cdot y\right) \cdot \frac{z}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                  5. lower-*.f64N/A

                    \[\leadsto \left({y}^{2} \cdot y\right) \cdot \frac{\color{blue}{z}}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                  6. unpow2N/A

                    \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                  7. lower-*.f64N/A

                    \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                  8. lower-/.f64N/A

                    \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\color{blue}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                  9. +-commutativeN/A

                    \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) + \color{blue}{i}} \]
                  10. *-commutativeN/A

                    \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) \cdot y + i} \]
                  11. lower-fma.f64N/A

                    \[\leadsto \left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\mathsf{fma}\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right), \color{blue}{y}, i\right)} \]
                4. Applied rewrites11.1%

                  \[\leadsto \color{blue}{\left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]

                if -5.99999999999999985e-19 < y < 3.29999999999999992e31

                1. Initial program 55.7%

                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                2. Taylor expanded in y around 0

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

                    \[\leadsto \frac{\frac{28832688827}{125000} \cdot y + \color{blue}{t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  2. lower-fma.f6447.7

                    \[\leadsto \frac{\mathsf{fma}\left(230661.510616, \color{blue}{y}, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                4. Applied rewrites47.7%

                  \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(230661.510616, y, t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
              10. Recombined 3 regimes into one program.
              11. Add Preprocessing

              Alternative 5: 76.2% accurate, 1.2× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-\frac{z \cdot -1}{y}\right) + x\\ \mathbf{if}\;y \leq -5.6 \cdot 10^{+42}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -8 \cdot 10^{-19}:\\ \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\ \mathbf{elif}\;y \leq 3.3 \cdot 10^{+31}:\\ \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              (FPCore (x y z t a b c i)
               :precision binary64
               (let* ((t_1 (+ (- (/ (* z -1.0) y)) x)))
                 (if (<= y -5.6e+42)
                   t_1
                   (if (<= y -8e-19)
                     (* y (+ (/ x a) (/ z (* a y))))
                     (if (<= y 3.3e+31)
                       (/
                        (fma 230661.510616 y t)
                        (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
                       t_1)))))
              double code(double x, double y, double z, double t, double a, double b, double c, double i) {
              	double t_1 = -((z * -1.0) / y) + x;
              	double tmp;
              	if (y <= -5.6e+42) {
              		tmp = t_1;
              	} else if (y <= -8e-19) {
              		tmp = y * ((x / a) + (z / (a * y)));
              	} else if (y <= 3.3e+31) {
              		tmp = fma(230661.510616, y, t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a, b, c, i)
              	t_1 = Float64(Float64(-Float64(Float64(z * -1.0) / y)) + x)
              	tmp = 0.0
              	if (y <= -5.6e+42)
              		tmp = t_1;
              	elseif (y <= -8e-19)
              		tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y))));
              	elseif (y <= 3.3e+31)
              		tmp = Float64(fma(230661.510616, y, t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i));
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[((-N[(N[(z * -1.0), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -5.6e+42], t$95$1, If[LessEqual[y, -8e-19], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e+31], N[(N[(230661.510616 * y + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \left(-\frac{z \cdot -1}{y}\right) + x\\
              \mathbf{if}\;y \leq -5.6 \cdot 10^{+42}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;y \leq -8 \cdot 10^{-19}:\\
              \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
              
              \mathbf{elif}\;y \leq 3.3 \cdot 10^{+31}:\\
              \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if y < -5.5999999999999999e42 or 3.29999999999999992e31 < y

                1. Initial program 55.7%

                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                2. Taylor expanded in y around -inf

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

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

                    \[\leadsto -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y} + \color{blue}{x} \]
                4. Applied rewrites27.7%

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

                  \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                6. Step-by-step derivation
                  1. lower-*.f64N/A

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

                    \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                  3. lower-/.f6433.8

                    \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                7. Applied rewrites33.8%

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

                  \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
                9. Step-by-step derivation
                  1. Applied rewrites33.5%

                    \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]

                  if -5.5999999999999999e42 < y < -7.9999999999999998e-19

                  1. Initial program 55.7%

                    \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  2. Applied rewrites56.5%

                    \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
                  3. Taylor expanded in a around inf

                    \[\leadsto \color{blue}{\frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{a}} \]
                  4. Step-by-step derivation
                    1. lower-/.f64N/A

                      \[\leadsto \frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{\color{blue}{a}} \]
                  5. Applied rewrites12.7%

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

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

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

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

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

                      \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot \color{blue}{y}}\right) \]
                    5. lower-*.f6411.0

                      \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right) \]
                  8. Applied rewrites11.0%

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

                  if -7.9999999999999998e-19 < y < 3.29999999999999992e31

                  1. Initial program 55.7%

                    \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  2. Taylor expanded in y around 0

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

                      \[\leadsto \frac{\frac{28832688827}{125000} \cdot y + \color{blue}{t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    2. lower-fma.f6447.7

                      \[\leadsto \frac{\mathsf{fma}\left(230661.510616, \color{blue}{y}, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  4. Applied rewrites47.7%

                    \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(230661.510616, y, t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                10. Recombined 3 regimes into one program.
                11. Add Preprocessing

                Alternative 6: 68.2% accurate, 0.3× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ t_2 := \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{-98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-168}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{230661.510616}{i}, \frac{t}{i}\right)\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+307}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(-\frac{z \cdot -1}{y}\right) + x\\ \end{array} \end{array} \]
                (FPCore (x y z t a b c i)
                 :precision binary64
                 (let* ((t_1 (/ t (fma (fma (fma (+ a y) y b) y c) y i)))
                        (t_2
                         (/
                          (+
                           (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                           t)
                          (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))))
                   (if (<= t_2 -2e-98)
                     t_1
                     (if (<= t_2 2e-168)
                       (fma y (/ 230661.510616 i) (/ t i))
                       (if (<= t_2 2e+307) t_1 (+ (- (/ (* z -1.0) y)) x))))))
                double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                	double t_1 = t / fma(fma(fma((a + y), y, b), y, c), y, i);
                	double t_2 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
                	double tmp;
                	if (t_2 <= -2e-98) {
                		tmp = t_1;
                	} else if (t_2 <= 2e-168) {
                		tmp = fma(y, (230661.510616 / i), (t / i));
                	} else if (t_2 <= 2e+307) {
                		tmp = t_1;
                	} else {
                		tmp = -((z * -1.0) / y) + x;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a, b, c, i)
                	t_1 = Float64(t / fma(fma(fma(Float64(a + y), y, b), y, c), y, i))
                	t_2 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i))
                	tmp = 0.0
                	if (t_2 <= -2e-98)
                		tmp = t_1;
                	elseif (t_2 <= 2e-168)
                		tmp = fma(y, Float64(230661.510616 / i), Float64(t / i));
                	elseif (t_2 <= 2e+307)
                		tmp = t_1;
                	else
                		tmp = Float64(Float64(-Float64(Float64(z * -1.0) / y)) + x);
                	end
                	return tmp
                end
                
                code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(t / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e-98], t$95$1, If[LessEqual[t$95$2, 2e-168], N[(y * N[(230661.510616 / i), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+307], t$95$1, N[((-N[(N[(z * -1.0), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
                t_2 := \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
                \mathbf{if}\;t\_2 \leq -2 \cdot 10^{-98}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-168}:\\
                \;\;\;\;\mathsf{fma}\left(y, \frac{230661.510616}{i}, \frac{t}{i}\right)\\
                
                \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+307}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{else}:\\
                \;\;\;\;\left(-\frac{z \cdot -1}{y}\right) + x\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < -1.99999999999999988e-98 or 2.0000000000000001e-168 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 1.99999999999999997e307

                  1. Initial program 55.7%

                    \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  2. Taylor expanded in t around inf

                    \[\leadsto \color{blue}{\frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                  3. Step-by-step derivation
                    1. lower-/.f64N/A

                      \[\leadsto \frac{t}{\color{blue}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                    2. +-commutativeN/A

                      \[\leadsto \frac{t}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) + \color{blue}{i}} \]
                    3. *-commutativeN/A

                      \[\leadsto \frac{t}{\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) \cdot y + i} \]
                    4. lower-fma.f64N/A

                      \[\leadsto \frac{t}{\mathsf{fma}\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right), \color{blue}{y}, i\right)} \]
                    5. +-commutativeN/A

                      \[\leadsto \frac{t}{\mathsf{fma}\left(y \cdot \left(b + y \cdot \left(a + y\right)\right) + c, y, i\right)} \]
                    6. *-commutativeN/A

                      \[\leadsto \frac{t}{\mathsf{fma}\left(\left(b + y \cdot \left(a + y\right)\right) \cdot y + c, y, i\right)} \]
                    7. *-commutativeN/A

                      \[\leadsto \frac{t}{\mathsf{fma}\left(\left(b + \left(a + y\right) \cdot y\right) \cdot y + c, y, i\right)} \]
                    8. +-commutativeN/A

                      \[\leadsto \frac{t}{\mathsf{fma}\left(\left(b + \left(y + a\right) \cdot y\right) \cdot y + c, y, i\right)} \]
                    9. +-commutativeN/A

                      \[\leadsto \frac{t}{\mathsf{fma}\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c, y, i\right)} \]
                    10. lower-fma.f64N/A

                      \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\left(y + a\right) \cdot y + b, y, c\right), y, i\right)} \]
                    11. lower-fma.f64N/A

                      \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y + a, y, b\right), y, c\right), y, i\right)} \]
                    12. +-commutativeN/A

                      \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \]
                    13. lower-+.f6440.7

                      \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \]
                  4. Applied rewrites40.7%

                    \[\leadsto \color{blue}{\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]

                  if -1.99999999999999988e-98 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 2.0000000000000001e-168

                  1. Initial program 55.7%

                    \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  2. Applied rewrites56.5%

                    \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
                  3. Taylor expanded in y around 0

                    \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right)}{\color{blue}{i}}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
                  4. Step-by-step derivation
                    1. Applied rewrites40.6%

                      \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\color{blue}{i}}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
                    2. Taylor expanded in y around 0

                      \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right)}{i}, \frac{t}{\color{blue}{i}}\right) \]
                    3. Step-by-step derivation
                      1. Applied rewrites34.0%

                        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{i}, \frac{t}{\color{blue}{i}}\right) \]
                      2. Taylor expanded in y around 0

                        \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{\frac{28832688827}{125000}}{i}}, \frac{t}{i}\right) \]
                      3. Step-by-step derivation
                        1. lower-/.f6431.9

                          \[\leadsto \mathsf{fma}\left(y, \frac{230661.510616}{\color{blue}{i}}, \frac{t}{i}\right) \]
                      4. Applied rewrites31.9%

                        \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{230661.510616}{i}}, \frac{t}{i}\right) \]

                      if 1.99999999999999997e307 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

                      1. Initial program 55.7%

                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                      2. Taylor expanded in y around -inf

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

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

                          \[\leadsto -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y} + \color{blue}{x} \]
                      4. Applied rewrites27.7%

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

                        \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                      6. Step-by-step derivation
                        1. lower-*.f64N/A

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

                          \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                        3. lower-/.f6433.8

                          \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                      7. Applied rewrites33.8%

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

                        \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
                      9. Step-by-step derivation
                        1. Applied rewrites33.5%

                          \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
                      10. Recombined 3 regimes into one program.
                      11. Add Preprocessing

                      Alternative 7: 65.7% accurate, 0.4× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t\\ t_2 := \frac{t\_1}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{if}\;t\_2 \leq -1 \cdot 10^{-78}:\\ \;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+307}:\\ \;\;\;\;\frac{t\_1}{i}\\ \mathbf{else}:\\ \;\;\;\;\left(-\frac{z \cdot -1}{y}\right) + x\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b c i)
                       :precision binary64
                       (let* ((t_1
                               (+
                                (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                                t))
                              (t_2 (/ t_1 (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))))
                         (if (<= t_2 -1e-78)
                           (/ t (fma (fma (fma (+ a y) y b) y c) y i))
                           (if (<= t_2 2e+307) (/ t_1 i) (+ (- (/ (* z -1.0) y)) x)))))
                      double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                      	double t_1 = (((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t;
                      	double t_2 = t_1 / (((((((y + a) * y) + b) * y) + c) * y) + i);
                      	double tmp;
                      	if (t_2 <= -1e-78) {
                      		tmp = t / fma(fma(fma((a + y), y, b), y, c), y, i);
                      	} else if (t_2 <= 2e+307) {
                      		tmp = t_1 / i;
                      	} else {
                      		tmp = -((z * -1.0) / y) + x;
                      	}
                      	return tmp;
                      }
                      
                      function code(x, y, z, t, a, b, c, i)
                      	t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t)
                      	t_2 = Float64(t_1 / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i))
                      	tmp = 0.0
                      	if (t_2 <= -1e-78)
                      		tmp = Float64(t / fma(fma(fma(Float64(a + y), y, b), y, c), y, i));
                      	elseif (t_2 <= 2e+307)
                      		tmp = Float64(t_1 / i);
                      	else
                      		tmp = Float64(Float64(-Float64(Float64(z * -1.0) / y)) + x);
                      	end
                      	return tmp
                      end
                      
                      code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e-78], N[(t / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+307], N[(t$95$1 / i), $MachinePrecision], N[((-N[(N[(z * -1.0), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := \left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t\\
                      t_2 := \frac{t\_1}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
                      \mathbf{if}\;t\_2 \leq -1 \cdot 10^{-78}:\\
                      \;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
                      
                      \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+307}:\\
                      \;\;\;\;\frac{t\_1}{i}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\left(-\frac{z \cdot -1}{y}\right) + x\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < -9.99999999999999999e-79

                        1. Initial program 55.7%

                          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                        2. Taylor expanded in t around inf

                          \[\leadsto \color{blue}{\frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                        3. Step-by-step derivation
                          1. lower-/.f64N/A

                            \[\leadsto \frac{t}{\color{blue}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                          2. +-commutativeN/A

                            \[\leadsto \frac{t}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) + \color{blue}{i}} \]
                          3. *-commutativeN/A

                            \[\leadsto \frac{t}{\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) \cdot y + i} \]
                          4. lower-fma.f64N/A

                            \[\leadsto \frac{t}{\mathsf{fma}\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right), \color{blue}{y}, i\right)} \]
                          5. +-commutativeN/A

                            \[\leadsto \frac{t}{\mathsf{fma}\left(y \cdot \left(b + y \cdot \left(a + y\right)\right) + c, y, i\right)} \]
                          6. *-commutativeN/A

                            \[\leadsto \frac{t}{\mathsf{fma}\left(\left(b + y \cdot \left(a + y\right)\right) \cdot y + c, y, i\right)} \]
                          7. *-commutativeN/A

                            \[\leadsto \frac{t}{\mathsf{fma}\left(\left(b + \left(a + y\right) \cdot y\right) \cdot y + c, y, i\right)} \]
                          8. +-commutativeN/A

                            \[\leadsto \frac{t}{\mathsf{fma}\left(\left(b + \left(y + a\right) \cdot y\right) \cdot y + c, y, i\right)} \]
                          9. +-commutativeN/A

                            \[\leadsto \frac{t}{\mathsf{fma}\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c, y, i\right)} \]
                          10. lower-fma.f64N/A

                            \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\left(y + a\right) \cdot y + b, y, c\right), y, i\right)} \]
                          11. lower-fma.f64N/A

                            \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y + a, y, b\right), y, c\right), y, i\right)} \]
                          12. +-commutativeN/A

                            \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \]
                          13. lower-+.f6440.7

                            \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \]
                        4. Applied rewrites40.7%

                          \[\leadsto \color{blue}{\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]

                        if -9.99999999999999999e-79 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 1.99999999999999997e307

                        1. Initial program 55.7%

                          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                        2. Taylor expanded in y around 0

                          \[\leadsto \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}{\color{blue}{i}} \]
                        3. Step-by-step derivation
                          1. Applied rewrites34.1%

                            \[\leadsto \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\color{blue}{i}} \]

                          if 1.99999999999999997e307 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

                          1. Initial program 55.7%

                            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                          2. Taylor expanded in y around -inf

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

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

                              \[\leadsto -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y} + \color{blue}{x} \]
                          4. Applied rewrites27.7%

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

                            \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                          6. Step-by-step derivation
                            1. lower-*.f64N/A

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

                              \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                            3. lower-/.f6433.8

                              \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                          7. Applied rewrites33.8%

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

                            \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
                          9. Step-by-step derivation
                            1. Applied rewrites33.5%

                              \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
                          10. Recombined 3 regimes into one program.
                          11. Add Preprocessing

                          Alternative 8: 65.7% accurate, 0.4× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{-78}:\\ \;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+307}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{i}\\ \mathbf{else}:\\ \;\;\;\;\left(-\frac{z \cdot -1}{y}\right) + x\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b c i)
                           :precision binary64
                           (let* ((t_1
                                   (/
                                    (+
                                     (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                                     t)
                                    (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))))
                             (if (<= t_1 -1e-78)
                               (/ t (fma (fma (fma (+ a y) y b) y c) y i))
                               (if (<= t_1 2e+307)
                                 (/ (fma (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) y t) i)
                                 (+ (- (/ (* z -1.0) y)) x)))))
                          double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                          	double t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
                          	double tmp;
                          	if (t_1 <= -1e-78) {
                          		tmp = t / fma(fma(fma((a + y), y, b), y, c), y, i);
                          	} else if (t_1 <= 2e+307) {
                          		tmp = fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t) / i;
                          	} else {
                          		tmp = -((z * -1.0) / y) + x;
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z, t, a, b, c, i)
                          	t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i))
                          	tmp = 0.0
                          	if (t_1 <= -1e-78)
                          		tmp = Float64(t / fma(fma(fma(Float64(a + y), y, b), y, c), y, i));
                          	elseif (t_1 <= 2e+307)
                          		tmp = Float64(fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t) / i);
                          	else
                          		tmp = Float64(Float64(-Float64(Float64(z * -1.0) / y)) + x);
                          	end
                          	return tmp
                          end
                          
                          code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-78], N[(t / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+307], N[(N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / i), $MachinePrecision], N[((-N[(N[(z * -1.0), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
                          \mathbf{if}\;t\_1 \leq -1 \cdot 10^{-78}:\\
                          \;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
                          
                          \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+307}:\\
                          \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{i}\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\left(-\frac{z \cdot -1}{y}\right) + x\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < -9.99999999999999999e-79

                            1. Initial program 55.7%

                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                            2. Taylor expanded in t around inf

                              \[\leadsto \color{blue}{\frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                            3. Step-by-step derivation
                              1. lower-/.f64N/A

                                \[\leadsto \frac{t}{\color{blue}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                              2. +-commutativeN/A

                                \[\leadsto \frac{t}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) + \color{blue}{i}} \]
                              3. *-commutativeN/A

                                \[\leadsto \frac{t}{\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) \cdot y + i} \]
                              4. lower-fma.f64N/A

                                \[\leadsto \frac{t}{\mathsf{fma}\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right), \color{blue}{y}, i\right)} \]
                              5. +-commutativeN/A

                                \[\leadsto \frac{t}{\mathsf{fma}\left(y \cdot \left(b + y \cdot \left(a + y\right)\right) + c, y, i\right)} \]
                              6. *-commutativeN/A

                                \[\leadsto \frac{t}{\mathsf{fma}\left(\left(b + y \cdot \left(a + y\right)\right) \cdot y + c, y, i\right)} \]
                              7. *-commutativeN/A

                                \[\leadsto \frac{t}{\mathsf{fma}\left(\left(b + \left(a + y\right) \cdot y\right) \cdot y + c, y, i\right)} \]
                              8. +-commutativeN/A

                                \[\leadsto \frac{t}{\mathsf{fma}\left(\left(b + \left(y + a\right) \cdot y\right) \cdot y + c, y, i\right)} \]
                              9. +-commutativeN/A

                                \[\leadsto \frac{t}{\mathsf{fma}\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c, y, i\right)} \]
                              10. lower-fma.f64N/A

                                \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\left(y + a\right) \cdot y + b, y, c\right), y, i\right)} \]
                              11. lower-fma.f64N/A

                                \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y + a, y, b\right), y, c\right), y, i\right)} \]
                              12. +-commutativeN/A

                                \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \]
                              13. lower-+.f6440.7

                                \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \]
                            4. Applied rewrites40.7%

                              \[\leadsto \color{blue}{\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]

                            if -9.99999999999999999e-79 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 1.99999999999999997e307

                            1. Initial program 55.7%

                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                            2. Taylor expanded in i around inf

                              \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i}} \]
                            3. Step-by-step derivation
                              1. lower-/.f64N/A

                                \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{i}} \]
                            4. Applied rewrites34.1%

                              \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{i}} \]

                            if 1.99999999999999997e307 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

                            1. Initial program 55.7%

                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                            2. Taylor expanded in y around -inf

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

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

                                \[\leadsto -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y} + \color{blue}{x} \]
                            4. Applied rewrites27.7%

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

                              \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                            6. Step-by-step derivation
                              1. lower-*.f64N/A

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

                                \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                              3. lower-/.f6433.8

                                \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                            7. Applied rewrites33.8%

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

                              \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
                            9. Step-by-step derivation
                              1. Applied rewrites33.5%

                                \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
                            10. Recombined 3 regimes into one program.
                            11. Add Preprocessing

                            Alternative 9: 61.8% accurate, 1.9× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-\frac{z \cdot -1}{y}\right) + x\\ \mathbf{if}\;y \leq -5.6 \cdot 10^{+42}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -1.2 \cdot 10^{-19}:\\ \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\ \mathbf{elif}\;y \leq 1.45 \cdot 10^{+45}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{230661.510616}{i}, \frac{t}{i}\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b c i)
                             :precision binary64
                             (let* ((t_1 (+ (- (/ (* z -1.0) y)) x)))
                               (if (<= y -5.6e+42)
                                 t_1
                                 (if (<= y -1.2e-19)
                                   (* y (+ (/ x a) (/ z (* a y))))
                                   (if (<= y 1.45e+45) (fma y (/ 230661.510616 i) (/ t i)) t_1)))))
                            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                            	double t_1 = -((z * -1.0) / y) + x;
                            	double tmp;
                            	if (y <= -5.6e+42) {
                            		tmp = t_1;
                            	} else if (y <= -1.2e-19) {
                            		tmp = y * ((x / a) + (z / (a * y)));
                            	} else if (y <= 1.45e+45) {
                            		tmp = fma(y, (230661.510616 / i), (t / i));
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y, z, t, a, b, c, i)
                            	t_1 = Float64(Float64(-Float64(Float64(z * -1.0) / y)) + x)
                            	tmp = 0.0
                            	if (y <= -5.6e+42)
                            		tmp = t_1;
                            	elseif (y <= -1.2e-19)
                            		tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y))));
                            	elseif (y <= 1.45e+45)
                            		tmp = fma(y, Float64(230661.510616 / i), Float64(t / i));
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[((-N[(N[(z * -1.0), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -5.6e+42], t$95$1, If[LessEqual[y, -1.2e-19], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.45e+45], N[(y * N[(230661.510616 / i), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := \left(-\frac{z \cdot -1}{y}\right) + x\\
                            \mathbf{if}\;y \leq -5.6 \cdot 10^{+42}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;y \leq -1.2 \cdot 10^{-19}:\\
                            \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
                            
                            \mathbf{elif}\;y \leq 1.45 \cdot 10^{+45}:\\
                            \;\;\;\;\mathsf{fma}\left(y, \frac{230661.510616}{i}, \frac{t}{i}\right)\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 3 regimes
                            2. if y < -5.5999999999999999e42 or 1.4499999999999999e45 < y

                              1. Initial program 55.7%

                                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                              2. Taylor expanded in y around -inf

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

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

                                  \[\leadsto -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y} + \color{blue}{x} \]
                              4. Applied rewrites27.7%

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

                                \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                              6. Step-by-step derivation
                                1. lower-*.f64N/A

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

                                  \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                                3. lower-/.f6433.8

                                  \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                              7. Applied rewrites33.8%

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

                                \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
                              9. Step-by-step derivation
                                1. Applied rewrites33.5%

                                  \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]

                                if -5.5999999999999999e42 < y < -1.20000000000000011e-19

                                1. Initial program 55.7%

                                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                2. Applied rewrites56.5%

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
                                3. Taylor expanded in a around inf

                                  \[\leadsto \color{blue}{\frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{a}} \]
                                4. Step-by-step derivation
                                  1. lower-/.f64N/A

                                    \[\leadsto \frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{\color{blue}{a}} \]
                                5. Applied rewrites12.7%

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

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

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

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

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

                                    \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot \color{blue}{y}}\right) \]
                                  5. lower-*.f6411.0

                                    \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right) \]
                                8. Applied rewrites11.0%

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

                                if -1.20000000000000011e-19 < y < 1.4499999999999999e45

                                1. Initial program 55.7%

                                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                2. Applied rewrites56.5%

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
                                3. Taylor expanded in y around 0

                                  \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right)}{\color{blue}{i}}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
                                4. Step-by-step derivation
                                  1. Applied rewrites40.6%

                                    \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\color{blue}{i}}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
                                  2. Taylor expanded in y around 0

                                    \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right)}{i}, \frac{t}{\color{blue}{i}}\right) \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites34.0%

                                      \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{i}, \frac{t}{\color{blue}{i}}\right) \]
                                    2. Taylor expanded in y around 0

                                      \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{\frac{28832688827}{125000}}{i}}, \frac{t}{i}\right) \]
                                    3. Step-by-step derivation
                                      1. lower-/.f6431.9

                                        \[\leadsto \mathsf{fma}\left(y, \frac{230661.510616}{\color{blue}{i}}, \frac{t}{i}\right) \]
                                    4. Applied rewrites31.9%

                                      \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{230661.510616}{i}}, \frac{t}{i}\right) \]
                                  4. Recombined 3 regimes into one program.
                                  5. Add Preprocessing

                                  Alternative 10: 59.3% accurate, 0.8× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 2 \cdot 10^{+307}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{230661.510616}{i}, \frac{t}{i}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(-\frac{z \cdot -1}{y}\right) + x\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a b c i)
                                   :precision binary64
                                   (if (<=
                                        (/
                                         (+
                                          (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                                          t)
                                         (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
                                        2e+307)
                                     (fma y (/ 230661.510616 i) (/ t i))
                                     (+ (- (/ (* z -1.0) y)) x)))
                                  double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                  	double tmp;
                                  	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)) <= 2e+307) {
                                  		tmp = fma(y, (230661.510616 / i), (t / i));
                                  	} else {
                                  		tmp = -((z * -1.0) / y) + x;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(x, y, z, t, a, b, c, i)
                                  	tmp = 0.0
                                  	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) <= 2e+307)
                                  		tmp = fma(y, Float64(230661.510616 / i), Float64(t / i));
                                  	else
                                  		tmp = Float64(Float64(-Float64(Float64(z * -1.0) / y)) + x);
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], 2e+307], N[(y * N[(230661.510616 / i), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision], N[((-N[(N[(z * -1.0), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 2 \cdot 10^{+307}:\\
                                  \;\;\;\;\mathsf{fma}\left(y, \frac{230661.510616}{i}, \frac{t}{i}\right)\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\left(-\frac{z \cdot -1}{y}\right) + x\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 1.99999999999999997e307

                                    1. Initial program 55.7%

                                      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                    2. Applied rewrites56.5%

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
                                    3. Taylor expanded in y around 0

                                      \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right)}{\color{blue}{i}}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
                                    4. Step-by-step derivation
                                      1. Applied rewrites40.6%

                                        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\color{blue}{i}}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
                                      2. Taylor expanded in y around 0

                                        \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right)}{i}, \frac{t}{\color{blue}{i}}\right) \]
                                      3. Step-by-step derivation
                                        1. Applied rewrites34.0%

                                          \[\leadsto \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{i}, \frac{t}{\color{blue}{i}}\right) \]
                                        2. Taylor expanded in y around 0

                                          \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{\frac{28832688827}{125000}}{i}}, \frac{t}{i}\right) \]
                                        3. Step-by-step derivation
                                          1. lower-/.f6431.9

                                            \[\leadsto \mathsf{fma}\left(y, \frac{230661.510616}{\color{blue}{i}}, \frac{t}{i}\right) \]
                                        4. Applied rewrites31.9%

                                          \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{230661.510616}{i}}, \frac{t}{i}\right) \]

                                        if 1.99999999999999997e307 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

                                        1. Initial program 55.7%

                                          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                        2. Taylor expanded in y around -inf

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

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

                                            \[\leadsto -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y} + \color{blue}{x} \]
                                        4. Applied rewrites27.7%

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

                                          \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                                        6. Step-by-step derivation
                                          1. lower-*.f64N/A

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

                                            \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                                          3. lower-/.f6433.8

                                            \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                                        7. Applied rewrites33.8%

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

                                          \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
                                        9. Step-by-step derivation
                                          1. Applied rewrites33.5%

                                            \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
                                        10. Recombined 2 regimes into one program.
                                        11. Add Preprocessing

                                        Alternative 11: 55.8% accurate, 0.8× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 2 \cdot 10^{+307}:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;\left(-\frac{z \cdot -1}{y}\right) + x\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i)
                                         :precision binary64
                                         (if (<=
                                              (/
                                               (+
                                                (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                                                t)
                                               (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
                                              2e+307)
                                           (/ t i)
                                           (+ (- (/ (* z -1.0) y)) x)))
                                        double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                        	double tmp;
                                        	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)) <= 2e+307) {
                                        		tmp = t / i;
                                        	} else {
                                        		tmp = -((z * -1.0) / y) + x;
                                        	}
                                        	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, b, c, i)
                                        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), intent (in) :: b
                                            real(8), intent (in) :: c
                                            real(8), intent (in) :: i
                                            real(8) :: tmp
                                            if ((((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)) <= 2d+307) then
                                                tmp = t / i
                                            else
                                                tmp = -((z * (-1.0d0)) / y) + x
                                            end if
                                            code = tmp
                                        end function
                                        
                                        public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                        	double tmp;
                                        	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)) <= 2e+307) {
                                        		tmp = t / i;
                                        	} else {
                                        		tmp = -((z * -1.0) / y) + x;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a, b, c, i):
                                        	tmp = 0
                                        	if (((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)) <= 2e+307:
                                        		tmp = t / i
                                        	else:
                                        		tmp = -((z * -1.0) / y) + x
                                        	return tmp
                                        
                                        function code(x, y, z, t, a, b, c, i)
                                        	tmp = 0.0
                                        	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) <= 2e+307)
                                        		tmp = Float64(t / i);
                                        	else
                                        		tmp = Float64(Float64(-Float64(Float64(z * -1.0) / y)) + x);
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a, b, c, i)
                                        	tmp = 0.0;
                                        	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)) <= 2e+307)
                                        		tmp = t / i;
                                        	else
                                        		tmp = -((z * -1.0) / y) + x;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], 2e+307], N[(t / i), $MachinePrecision], N[((-N[(N[(z * -1.0), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 2 \cdot 10^{+307}:\\
                                        \;\;\;\;\frac{t}{i}\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\left(-\frac{z \cdot -1}{y}\right) + x\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 1.99999999999999997e307

                                          1. Initial program 55.7%

                                            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                          2. Taylor expanded in y around 0

                                            \[\leadsto \color{blue}{\frac{t}{i}} \]
                                          3. Step-by-step derivation
                                            1. lower-/.f6428.6

                                              \[\leadsto \frac{t}{\color{blue}{i}} \]
                                          4. Applied rewrites28.6%

                                            \[\leadsto \color{blue}{\frac{t}{i}} \]

                                          if 1.99999999999999997e307 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

                                          1. Initial program 55.7%

                                            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                          2. Taylor expanded in y around -inf

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

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

                                              \[\leadsto -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y} + \color{blue}{x} \]
                                          4. Applied rewrites27.7%

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

                                            \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                                          6. Step-by-step derivation
                                            1. lower-*.f64N/A

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

                                              \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                                            3. lower-/.f6433.8

                                              \[\leadsto \left(-\frac{z \cdot \left(\frac{a}{y} - 1\right)}{y}\right) + x \]
                                          7. Applied rewrites33.8%

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

                                            \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
                                          9. Step-by-step derivation
                                            1. Applied rewrites33.5%

                                              \[\leadsto \left(-\frac{z \cdot -1}{y}\right) + x \]
                                          10. Recombined 2 regimes into one program.
                                          11. Add Preprocessing

                                          Alternative 12: 51.3% accurate, 2.9× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-x\right) \cdot -1\\ \mathbf{if}\;y \leq -7.6 \cdot 10^{+25}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -1.8 \cdot 10^{-30}:\\ \;\;\;\;\frac{z}{a}\\ \mathbf{elif}\;y \leq 72000000000:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                          (FPCore (x y z t a b c i)
                                           :precision binary64
                                           (let* ((t_1 (* (- x) -1.0)))
                                             (if (<= y -7.6e+25)
                                               t_1
                                               (if (<= y -1.8e-30) (/ z a) (if (<= y 72000000000.0) (/ t i) t_1)))))
                                          double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                          	double t_1 = -x * -1.0;
                                          	double tmp;
                                          	if (y <= -7.6e+25) {
                                          		tmp = t_1;
                                          	} else if (y <= -1.8e-30) {
                                          		tmp = z / a;
                                          	} else if (y <= 72000000000.0) {
                                          		tmp = t / i;
                                          	} else {
                                          		tmp = t_1;
                                          	}
                                          	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, b, c, i)
                                          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), intent (in) :: b
                                              real(8), intent (in) :: c
                                              real(8), intent (in) :: i
                                              real(8) :: t_1
                                              real(8) :: tmp
                                              t_1 = -x * (-1.0d0)
                                              if (y <= (-7.6d+25)) then
                                                  tmp = t_1
                                              else if (y <= (-1.8d-30)) then
                                                  tmp = z / a
                                              else if (y <= 72000000000.0d0) then
                                                  tmp = t / i
                                              else
                                                  tmp = t_1
                                              end if
                                              code = tmp
                                          end function
                                          
                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                          	double t_1 = -x * -1.0;
                                          	double tmp;
                                          	if (y <= -7.6e+25) {
                                          		tmp = t_1;
                                          	} else if (y <= -1.8e-30) {
                                          		tmp = z / a;
                                          	} else if (y <= 72000000000.0) {
                                          		tmp = t / i;
                                          	} else {
                                          		tmp = t_1;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          def code(x, y, z, t, a, b, c, i):
                                          	t_1 = -x * -1.0
                                          	tmp = 0
                                          	if y <= -7.6e+25:
                                          		tmp = t_1
                                          	elif y <= -1.8e-30:
                                          		tmp = z / a
                                          	elif y <= 72000000000.0:
                                          		tmp = t / i
                                          	else:
                                          		tmp = t_1
                                          	return tmp
                                          
                                          function code(x, y, z, t, a, b, c, i)
                                          	t_1 = Float64(Float64(-x) * -1.0)
                                          	tmp = 0.0
                                          	if (y <= -7.6e+25)
                                          		tmp = t_1;
                                          	elseif (y <= -1.8e-30)
                                          		tmp = Float64(z / a);
                                          	elseif (y <= 72000000000.0)
                                          		tmp = Float64(t / i);
                                          	else
                                          		tmp = t_1;
                                          	end
                                          	return tmp
                                          end
                                          
                                          function tmp_2 = code(x, y, z, t, a, b, c, i)
                                          	t_1 = -x * -1.0;
                                          	tmp = 0.0;
                                          	if (y <= -7.6e+25)
                                          		tmp = t_1;
                                          	elseif (y <= -1.8e-30)
                                          		tmp = z / a;
                                          	elseif (y <= 72000000000.0)
                                          		tmp = t / i;
                                          	else
                                          		tmp = t_1;
                                          	end
                                          	tmp_2 = tmp;
                                          end
                                          
                                          code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[((-x) * -1.0), $MachinePrecision]}, If[LessEqual[y, -7.6e+25], t$95$1, If[LessEqual[y, -1.8e-30], N[(z / a), $MachinePrecision], If[LessEqual[y, 72000000000.0], N[(t / i), $MachinePrecision], t$95$1]]]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          t_1 := \left(-x\right) \cdot -1\\
                                          \mathbf{if}\;y \leq -7.6 \cdot 10^{+25}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          \mathbf{elif}\;y \leq -1.8 \cdot 10^{-30}:\\
                                          \;\;\;\;\frac{z}{a}\\
                                          
                                          \mathbf{elif}\;y \leq 72000000000:\\
                                          \;\;\;\;\frac{t}{i}\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 3 regimes
                                          2. if y < -7.6000000000000001e25 or 7.2e10 < y

                                            1. Initial program 55.7%

                                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                            2. Taylor expanded in x around -inf

                                              \[\leadsto \color{blue}{-1 \cdot \left(x \cdot \left(-1 \cdot \frac{\frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} + \frac{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}}{x} + -1 \cdot \frac{{y}^{4}}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}\right)\right)} \]
                                            3. Applied rewrites48.5%

                                              \[\leadsto \color{blue}{\left(-x\right) \cdot \left(\frac{-\left(y \cdot y\right) \cdot \left(y \cdot y\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} + \left(-\frac{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}}{x}\right)\right)} \]
                                            4. Taylor expanded in y around inf

                                              \[\leadsto \left(-x\right) \cdot -1 \]
                                            5. Step-by-step derivation
                                              1. Applied rewrites26.3%

                                                \[\leadsto \left(-x\right) \cdot -1 \]

                                              if -7.6000000000000001e25 < y < -1.8000000000000002e-30

                                              1. Initial program 55.7%

                                                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                              2. Applied rewrites56.5%

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
                                              3. Taylor expanded in a around inf

                                                \[\leadsto \color{blue}{\frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{a}} \]
                                              4. Step-by-step derivation
                                                1. lower-/.f64N/A

                                                  \[\leadsto \frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{\color{blue}{a}} \]
                                              5. Applied rewrites12.7%

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

                                                \[\leadsto \frac{z}{\color{blue}{a}} \]
                                              7. Step-by-step derivation
                                                1. lower-/.f647.3

                                                  \[\leadsto \frac{z}{a} \]
                                              8. Applied rewrites7.3%

                                                \[\leadsto \frac{z}{\color{blue}{a}} \]

                                              if -1.8000000000000002e-30 < y < 7.2e10

                                              1. Initial program 55.7%

                                                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                              2. Taylor expanded in y around 0

                                                \[\leadsto \color{blue}{\frac{t}{i}} \]
                                              3. Step-by-step derivation
                                                1. lower-/.f6428.6

                                                  \[\leadsto \frac{t}{\color{blue}{i}} \]
                                              4. Applied rewrites28.6%

                                                \[\leadsto \color{blue}{\frac{t}{i}} \]
                                            6. Recombined 3 regimes into one program.
                                            7. Add Preprocessing

                                            Alternative 13: 31.1% accurate, 3.9× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.8 \cdot 10^{-30}:\\ \;\;\;\;\frac{z}{a}\\ \mathbf{elif}\;y \leq 5.7 \cdot 10^{+38}:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{a}\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a b c i)
                                             :precision binary64
                                             (if (<= y -1.8e-30) (/ z a) (if (<= y 5.7e+38) (/ t i) (/ z a))))
                                            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                            	double tmp;
                                            	if (y <= -1.8e-30) {
                                            		tmp = z / a;
                                            	} else if (y <= 5.7e+38) {
                                            		tmp = t / i;
                                            	} else {
                                            		tmp = z / 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, b, c, i)
                                            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), intent (in) :: b
                                                real(8), intent (in) :: c
                                                real(8), intent (in) :: i
                                                real(8) :: tmp
                                                if (y <= (-1.8d-30)) then
                                                    tmp = z / a
                                                else if (y <= 5.7d+38) then
                                                    tmp = t / i
                                                else
                                                    tmp = z / a
                                                end if
                                                code = tmp
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                            	double tmp;
                                            	if (y <= -1.8e-30) {
                                            		tmp = z / a;
                                            	} else if (y <= 5.7e+38) {
                                            		tmp = t / i;
                                            	} else {
                                            		tmp = z / a;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z, t, a, b, c, i):
                                            	tmp = 0
                                            	if y <= -1.8e-30:
                                            		tmp = z / a
                                            	elif y <= 5.7e+38:
                                            		tmp = t / i
                                            	else:
                                            		tmp = z / a
                                            	return tmp
                                            
                                            function code(x, y, z, t, a, b, c, i)
                                            	tmp = 0.0
                                            	if (y <= -1.8e-30)
                                            		tmp = Float64(z / a);
                                            	elseif (y <= 5.7e+38)
                                            		tmp = Float64(t / i);
                                            	else
                                            		tmp = Float64(z / a);
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z, t, a, b, c, i)
                                            	tmp = 0.0;
                                            	if (y <= -1.8e-30)
                                            		tmp = z / a;
                                            	elseif (y <= 5.7e+38)
                                            		tmp = t / i;
                                            	else
                                            		tmp = z / a;
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.8e-30], N[(z / a), $MachinePrecision], If[LessEqual[y, 5.7e+38], N[(t / i), $MachinePrecision], N[(z / a), $MachinePrecision]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            \mathbf{if}\;y \leq -1.8 \cdot 10^{-30}:\\
                                            \;\;\;\;\frac{z}{a}\\
                                            
                                            \mathbf{elif}\;y \leq 5.7 \cdot 10^{+38}:\\
                                            \;\;\;\;\frac{t}{i}\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;\frac{z}{a}\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if y < -1.8000000000000002e-30 or 5.6999999999999997e38 < y

                                              1. Initial program 55.7%

                                                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                              2. Applied rewrites56.5%

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
                                              3. Taylor expanded in a around inf

                                                \[\leadsto \color{blue}{\frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{a}} \]
                                              4. Step-by-step derivation
                                                1. lower-/.f64N/A

                                                  \[\leadsto \frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{\color{blue}{a}} \]
                                              5. Applied rewrites12.7%

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

                                                \[\leadsto \frac{z}{\color{blue}{a}} \]
                                              7. Step-by-step derivation
                                                1. lower-/.f647.3

                                                  \[\leadsto \frac{z}{a} \]
                                              8. Applied rewrites7.3%

                                                \[\leadsto \frac{z}{\color{blue}{a}} \]

                                              if -1.8000000000000002e-30 < y < 5.6999999999999997e38

                                              1. Initial program 55.7%

                                                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                              2. Taylor expanded in y around 0

                                                \[\leadsto \color{blue}{\frac{t}{i}} \]
                                              3. Step-by-step derivation
                                                1. lower-/.f6428.6

                                                  \[\leadsto \frac{t}{\color{blue}{i}} \]
                                              4. Applied rewrites28.6%

                                                \[\leadsto \color{blue}{\frac{t}{i}} \]
                                            3. Recombined 2 regimes into one program.
                                            4. Add Preprocessing

                                            Alternative 14: 7.3% accurate, 10.8× speedup?

                                            \[\begin{array}{l} \\ \frac{z}{a} \end{array} \]
                                            (FPCore (x y z t a b c i) :precision binary64 (/ z a))
                                            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                            	return z / 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, b, c, i)
                                            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), intent (in) :: b
                                                real(8), intent (in) :: c
                                                real(8), intent (in) :: i
                                                code = z / a
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                            	return z / a;
                                            }
                                            
                                            def code(x, y, z, t, a, b, c, i):
                                            	return z / a
                                            
                                            function code(x, y, z, t, a, b, c, i)
                                            	return Float64(z / a)
                                            end
                                            
                                            function tmp = code(x, y, z, t, a, b, c, i)
                                            	tmp = z / a;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(z / a), $MachinePrecision]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \frac{z}{a}
                                            \end{array}
                                            
                                            Derivation
                                            1. Initial program 55.7%

                                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                            2. Applied rewrites56.5%

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
                                            3. Taylor expanded in a around inf

                                              \[\leadsto \color{blue}{\frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{a}} \]
                                            4. Step-by-step derivation
                                              1. lower-/.f64N/A

                                                \[\leadsto \frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{\color{blue}{a}} \]
                                            5. Applied rewrites12.7%

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

                                              \[\leadsto \frac{z}{\color{blue}{a}} \]
                                            7. Step-by-step derivation
                                              1. lower-/.f647.3

                                                \[\leadsto \frac{z}{a} \]
                                            8. Applied rewrites7.3%

                                              \[\leadsto \frac{z}{\color{blue}{a}} \]
                                            9. Add Preprocessing

                                            Reproduce

                                            ?
                                            herbie shell --seed 2025131 
                                            (FPCore (x y z t a b c i)
                                              :name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2"
                                              :precision binary64
                                              (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))