Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, B

Percentage Accurate: 99.8% → 99.8%
Time: 14.7s
Alternatives: 16
Speedup: 1.0×

Specification

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

\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 16 alternatives:

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

Initial Program: 99.8% accurate, 1.0× speedup?

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

\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}

Alternative 1: 99.8% accurate, 1.0× speedup?

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

\\
i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right)
\end{array}
Derivation
  1. Initial program 99.8%

    \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
  2. Add Preprocessing
  3. Final simplification99.8%

    \[\leadsto i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \]
  4. Add Preprocessing

Alternative 2: 50.2% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \log y \cdot x\\ t_2 := i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + t\_1\right)\right)\right)\right)\\ \mathbf{if}\;t\_2 \leq -4 \cdot 10^{+293}:\\ \;\;\;\;\left(\frac{z}{i} + y\right) \cdot i\\ \mathbf{elif}\;t\_2 \leq -230:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, t\right) + i \cdot y\\ \mathbf{elif}\;t\_2 \leq 8 \cdot 10^{+304}:\\ \;\;\;\;\log c \cdot b + \left(a + t\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1 + i \cdot y\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (let* ((t_1 (* (log y) x))
        (t_2 (+ (* i y) (+ (* (log c) (- b 0.5)) (+ a (+ t (+ z t_1)))))))
   (if (<= t_2 -4e+293)
     (* (+ (/ z i) y) i)
     (if (<= t_2 -230.0)
       (+ (fma (/ z t) t t) (* i y))
       (if (<= t_2 8e+304) (+ (* (log c) b) (+ a t)) (+ t_1 (* i y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = log(y) * x;
	double t_2 = (i * y) + ((log(c) * (b - 0.5)) + (a + (t + (z + t_1))));
	double tmp;
	if (t_2 <= -4e+293) {
		tmp = ((z / i) + y) * i;
	} else if (t_2 <= -230.0) {
		tmp = fma((z / t), t, t) + (i * y);
	} else if (t_2 <= 8e+304) {
		tmp = (log(c) * b) + (a + t);
	} else {
		tmp = t_1 + (i * y);
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	t_1 = Float64(log(y) * x)
	t_2 = Float64(Float64(i * y) + Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(a + Float64(t + Float64(z + t_1)))))
	tmp = 0.0
	if (t_2 <= -4e+293)
		tmp = Float64(Float64(Float64(z / i) + y) * i);
	elseif (t_2 <= -230.0)
		tmp = Float64(fma(Float64(z / t), t, t) + Float64(i * y));
	elseif (t_2 <= 8e+304)
		tmp = Float64(Float64(log(c) * b) + Float64(a + t));
	else
		tmp = Float64(t_1 + Float64(i * y));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * y), $MachinePrecision] + N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(a + N[(t + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -4e+293], N[(N[(N[(z / i), $MachinePrecision] + y), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[t$95$2, -230.0], N[(N[(N[(z / t), $MachinePrecision] * t + t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 8e+304], N[(N[(N[Log[c], $MachinePrecision] * b), $MachinePrecision] + N[(a + t), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(i * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \log y \cdot x\\
t_2 := i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + t\_1\right)\right)\right)\right)\\
\mathbf{if}\;t\_2 \leq -4 \cdot 10^{+293}:\\
\;\;\;\;\left(\frac{z}{i} + y\right) \cdot i\\

\mathbf{elif}\;t\_2 \leq -230:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, t\right) + i \cdot y\\

\mathbf{elif}\;t\_2 \leq 8 \cdot 10^{+304}:\\
\;\;\;\;\log c \cdot b + \left(a + t\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1 + i \cdot y\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -3.9999999999999997e293

    1. Initial program 99.9%

      \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
    2. Add Preprocessing
    3. Taylor expanded in i around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)} \]
    4. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto -1 \cdot \color{blue}{\left(\left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right) \cdot i\right)} \]
      2. associate-*r*N/A

        \[\leadsto \color{blue}{\left(-1 \cdot \left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right) \cdot i} \]
      3. neg-mul-1N/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)\right)} \cdot i \]
      4. distribute-lft-outN/A

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{-1 \cdot \left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)}\right)\right) \cdot i \]
      5. mul-1-negN/A

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(\left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)\right)}\right)\right) \cdot i \]
      6. remove-double-negN/A

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

        \[\leadsto \color{blue}{\left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right) \cdot i} \]
    5. Applied rewrites89.1%

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

      \[\leadsto \left(\frac{z}{i} + y\right) \cdot i \]
    7. Step-by-step derivation
      1. Applied rewrites77.1%

        \[\leadsto \left(\frac{z}{i} + y\right) \cdot i \]

      if -3.9999999999999997e293 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -230

      1. Initial program 99.8%

        \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
      2. Add Preprocessing
      3. Taylor expanded in t around inf

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

          \[\leadsto t \cdot \color{blue}{\left(\left(\frac{a}{t} + \left(\frac{z}{t} + \left(\frac{x \cdot \log y}{t} + \frac{\log c \cdot \left(b - \frac{1}{2}\right)}{t}\right)\right)\right) + 1\right)} + y \cdot i \]
        2. distribute-rgt-inN/A

          \[\leadsto \color{blue}{\left(\left(\frac{a}{t} + \left(\frac{z}{t} + \left(\frac{x \cdot \log y}{t} + \frac{\log c \cdot \left(b - \frac{1}{2}\right)}{t}\right)\right)\right) \cdot t + 1 \cdot t\right)} + y \cdot i \]
        3. *-lft-identityN/A

          \[\leadsto \left(\left(\frac{a}{t} + \left(\frac{z}{t} + \left(\frac{x \cdot \log y}{t} + \frac{\log c \cdot \left(b - \frac{1}{2}\right)}{t}\right)\right)\right) \cdot t + \color{blue}{t}\right) + y \cdot i \]
        4. lower-fma.f64N/A

          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{a}{t} + \left(\frac{z}{t} + \left(\frac{x \cdot \log y}{t} + \frac{\log c \cdot \left(b - \frac{1}{2}\right)}{t}\right)\right), t, t\right)} + y \cdot i \]
      5. Applied rewrites73.1%

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

        \[\leadsto \mathsf{fma}\left(\frac{z}{t}, t, t\right) + y \cdot i \]
      7. Step-by-step derivation
        1. Applied rewrites38.3%

          \[\leadsto \mathsf{fma}\left(\frac{z}{t}, t, t\right) + y \cdot i \]

        if -230 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < 7.9999999999999995e304

        1. Initial program 99.8%

          \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
        2. Add Preprocessing
        3. Taylor expanded in x around 0

          \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
        4. Step-by-step derivation
          1. associate-+r+N/A

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

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

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

            \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
          5. associate-+r+N/A

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

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

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

            \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
          9. lower--.f64N/A

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

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

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

            \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
          13. lower-fma.f6476.8

            \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
        5. Applied rewrites76.8%

          \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
        6. Taylor expanded in b around inf

          \[\leadsto \left(t + a\right) + b \cdot \color{blue}{\log c} \]
        7. Step-by-step derivation
          1. Applied rewrites43.4%

            \[\leadsto \left(t + a\right) + b \cdot \color{blue}{\log c} \]

          if 7.9999999999999995e304 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i))

          1. Initial program 99.7%

            \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
          2. Add Preprocessing
          3. Taylor expanded in x around inf

            \[\leadsto \color{blue}{x \cdot \log y} + y \cdot i \]
          4. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \color{blue}{\log y \cdot x} + y \cdot i \]
            2. lower-*.f64N/A

              \[\leadsto \color{blue}{\log y \cdot x} + y \cdot i \]
            3. lower-log.f6492.2

              \[\leadsto \color{blue}{\log y} \cdot x + y \cdot i \]
          5. Applied rewrites92.2%

            \[\leadsto \color{blue}{\log y \cdot x} + y \cdot i \]
        8. Recombined 4 regimes into one program.
        9. Final simplification47.1%

          \[\leadsto \begin{array}{l} \mathbf{if}\;i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \leq -4 \cdot 10^{+293}:\\ \;\;\;\;\left(\frac{z}{i} + y\right) \cdot i\\ \mathbf{elif}\;i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \leq -230:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, t\right) + i \cdot y\\ \mathbf{elif}\;i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \leq 8 \cdot 10^{+304}:\\ \;\;\;\;\log c \cdot b + \left(a + t\right)\\ \mathbf{else}:\\ \;\;\;\;\log y \cdot x + i \cdot y\\ \end{array} \]
        10. Add Preprocessing

        Alternative 3: 49.2% accurate, 0.3× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right)\\ \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+293}:\\ \;\;\;\;\left(\frac{z}{i} + y\right) \cdot i\\ \mathbf{elif}\;t\_1 \leq -230:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, t\right) + i \cdot y\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+299}:\\ \;\;\;\;\log c \cdot b + \left(a + t\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{i \cdot y}{a}, a, a\right)\\ \end{array} \end{array} \]
        (FPCore (x y z t a b c i)
         :precision binary64
         (let* ((t_1
                 (+
                  (* i y)
                  (+ (* (log c) (- b 0.5)) (+ a (+ t (+ z (* (log y) x))))))))
           (if (<= t_1 -4e+293)
             (* (+ (/ z i) y) i)
             (if (<= t_1 -230.0)
               (+ (fma (/ z t) t t) (* i y))
               (if (<= t_1 2e+299)
                 (+ (* (log c) b) (+ a t))
                 (fma (/ (* i y) a) a a))))))
        double code(double x, double y, double z, double t, double a, double b, double c, double i) {
        	double t_1 = (i * y) + ((log(c) * (b - 0.5)) + (a + (t + (z + (log(y) * x)))));
        	double tmp;
        	if (t_1 <= -4e+293) {
        		tmp = ((z / i) + y) * i;
        	} else if (t_1 <= -230.0) {
        		tmp = fma((z / t), t, t) + (i * y);
        	} else if (t_1 <= 2e+299) {
        		tmp = (log(c) * b) + (a + t);
        	} else {
        		tmp = fma(((i * y) / a), a, a);
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b, c, i)
        	t_1 = Float64(Float64(i * y) + Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(a + Float64(t + Float64(z + Float64(log(y) * x))))))
        	tmp = 0.0
        	if (t_1 <= -4e+293)
        		tmp = Float64(Float64(Float64(z / i) + y) * i);
        	elseif (t_1 <= -230.0)
        		tmp = Float64(fma(Float64(z / t), t, t) + Float64(i * y));
        	elseif (t_1 <= 2e+299)
        		tmp = Float64(Float64(log(c) * b) + Float64(a + t));
        	else
        		tmp = fma(Float64(Float64(i * y) / a), a, a);
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(i * y), $MachinePrecision] + N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(a + N[(t + N[(z + N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e+293], N[(N[(N[(z / i), $MachinePrecision] + y), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[t$95$1, -230.0], N[(N[(N[(z / t), $MachinePrecision] * t + t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+299], N[(N[(N[Log[c], $MachinePrecision] * b), $MachinePrecision] + N[(a + t), $MachinePrecision]), $MachinePrecision], N[(N[(N[(i * y), $MachinePrecision] / a), $MachinePrecision] * a + a), $MachinePrecision]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right)\\
        \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+293}:\\
        \;\;\;\;\left(\frac{z}{i} + y\right) \cdot i\\
        
        \mathbf{elif}\;t\_1 \leq -230:\\
        \;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, t\right) + i \cdot y\\
        
        \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+299}:\\
        \;\;\;\;\log c \cdot b + \left(a + t\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{fma}\left(\frac{i \cdot y}{a}, a, a\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 4 regimes
        2. if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -3.9999999999999997e293

          1. Initial program 99.9%

            \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
          2. Add Preprocessing
          3. Taylor expanded in i around -inf

            \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto -1 \cdot \color{blue}{\left(\left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right) \cdot i\right)} \]
            2. associate-*r*N/A

              \[\leadsto \color{blue}{\left(-1 \cdot \left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right) \cdot i} \]
            3. neg-mul-1N/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)\right)} \cdot i \]
            4. distribute-lft-outN/A

              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{-1 \cdot \left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)}\right)\right) \cdot i \]
            5. mul-1-negN/A

              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(\left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)\right)}\right)\right) \cdot i \]
            6. remove-double-negN/A

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

              \[\leadsto \color{blue}{\left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right) \cdot i} \]
          5. Applied rewrites89.1%

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

            \[\leadsto \left(\frac{z}{i} + y\right) \cdot i \]
          7. Step-by-step derivation
            1. Applied rewrites77.1%

              \[\leadsto \left(\frac{z}{i} + y\right) \cdot i \]

            if -3.9999999999999997e293 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -230

            1. Initial program 99.8%

              \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
            2. Add Preprocessing
            3. Taylor expanded in t around inf

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

                \[\leadsto t \cdot \color{blue}{\left(\left(\frac{a}{t} + \left(\frac{z}{t} + \left(\frac{x \cdot \log y}{t} + \frac{\log c \cdot \left(b - \frac{1}{2}\right)}{t}\right)\right)\right) + 1\right)} + y \cdot i \]
              2. distribute-rgt-inN/A

                \[\leadsto \color{blue}{\left(\left(\frac{a}{t} + \left(\frac{z}{t} + \left(\frac{x \cdot \log y}{t} + \frac{\log c \cdot \left(b - \frac{1}{2}\right)}{t}\right)\right)\right) \cdot t + 1 \cdot t\right)} + y \cdot i \]
              3. *-lft-identityN/A

                \[\leadsto \left(\left(\frac{a}{t} + \left(\frac{z}{t} + \left(\frac{x \cdot \log y}{t} + \frac{\log c \cdot \left(b - \frac{1}{2}\right)}{t}\right)\right)\right) \cdot t + \color{blue}{t}\right) + y \cdot i \]
              4. lower-fma.f64N/A

                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{a}{t} + \left(\frac{z}{t} + \left(\frac{x \cdot \log y}{t} + \frac{\log c \cdot \left(b - \frac{1}{2}\right)}{t}\right)\right), t, t\right)} + y \cdot i \]
            5. Applied rewrites73.1%

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

              \[\leadsto \mathsf{fma}\left(\frac{z}{t}, t, t\right) + y \cdot i \]
            7. Step-by-step derivation
              1. Applied rewrites38.3%

                \[\leadsto \mathsf{fma}\left(\frac{z}{t}, t, t\right) + y \cdot i \]

              if -230 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < 2.0000000000000001e299

              1. Initial program 99.8%

                \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
              2. Add Preprocessing
              3. Taylor expanded in x around 0

                \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
              4. Step-by-step derivation
                1. associate-+r+N/A

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

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

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

                  \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                5. associate-+r+N/A

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

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

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

                  \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
                9. lower--.f64N/A

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

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

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

                  \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
                13. lower-fma.f6476.0

                  \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
              5. Applied rewrites76.0%

                \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
              6. Taylor expanded in b around inf

                \[\leadsto \left(t + a\right) + b \cdot \color{blue}{\log c} \]
              7. Step-by-step derivation
                1. Applied rewrites42.1%

                  \[\leadsto \left(t + a\right) + b \cdot \color{blue}{\log c} \]

                if 2.0000000000000001e299 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i))

                1. Initial program 99.8%

                  \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                2. Add Preprocessing
                3. Taylor expanded in a around -inf

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

                    \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} - 1\right)} \]
                  2. sub-negN/A

                    \[\leadsto \left(-1 \cdot a\right) \cdot \color{blue}{\left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} + \left(\mathsf{neg}\left(1\right)\right)\right)} \]
                  3. metadata-evalN/A

                    \[\leadsto \left(-1 \cdot a\right) \cdot \left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} + \color{blue}{-1}\right) \]
                  4. distribute-rgt-inN/A

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

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

                    \[\leadsto \color{blue}{\frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \left(-1 \cdot \left(-1 \cdot a\right)\right)} + -1 \cdot \left(-1 \cdot a\right) \]
                  7. associate-*r*N/A

                    \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \color{blue}{\left(\left(-1 \cdot -1\right) \cdot a\right)} + -1 \cdot \left(-1 \cdot a\right) \]
                  8. metadata-evalN/A

                    \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \left(\color{blue}{1} \cdot a\right) + -1 \cdot \left(-1 \cdot a\right) \]
                  9. *-lft-identityN/A

                    \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \color{blue}{a} + -1 \cdot \left(-1 \cdot a\right) \]
                  10. associate-*r*N/A

                    \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot a + \color{blue}{\left(-1 \cdot -1\right) \cdot a} \]
                5. Applied rewrites91.7%

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

                  \[\leadsto \mathsf{fma}\left(\frac{i \cdot y}{a}, a, a\right) \]
                7. Step-by-step derivation
                  1. Applied rewrites66.9%

                    \[\leadsto \mathsf{fma}\left(\frac{y \cdot i}{a}, a, a\right) \]
                8. Recombined 4 regimes into one program.
                9. Final simplification46.1%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \leq -4 \cdot 10^{+293}:\\ \;\;\;\;\left(\frac{z}{i} + y\right) \cdot i\\ \mathbf{elif}\;i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \leq -230:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, t\right) + i \cdot y\\ \mathbf{elif}\;i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \leq 2 \cdot 10^{+299}:\\ \;\;\;\;\log c \cdot b + \left(a + t\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{i \cdot y}{a}, a, a\right)\\ \end{array} \]
                10. Add Preprocessing

                Alternative 4: 48.2% accurate, 0.5× speedup?

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

                  1. Initial program 99.9%

                    \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                  2. Add Preprocessing
                  3. Taylor expanded in i around -inf

                    \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)} \]
                  4. Step-by-step derivation
                    1. *-commutativeN/A

                      \[\leadsto -1 \cdot \color{blue}{\left(\left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right) \cdot i\right)} \]
                    2. associate-*r*N/A

                      \[\leadsto \color{blue}{\left(-1 \cdot \left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right) \cdot i} \]
                    3. neg-mul-1N/A

                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)\right)} \cdot i \]
                    4. distribute-lft-outN/A

                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{-1 \cdot \left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)}\right)\right) \cdot i \]
                    5. mul-1-negN/A

                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(\left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)\right)}\right)\right) \cdot i \]
                    6. remove-double-negN/A

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

                      \[\leadsto \color{blue}{\left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right) \cdot i} \]
                  5. Applied rewrites89.1%

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

                    \[\leadsto \left(\frac{z}{i} + y\right) \cdot i \]
                  7. Step-by-step derivation
                    1. Applied rewrites77.1%

                      \[\leadsto \left(\frac{z}{i} + y\right) \cdot i \]

                    if -3.9999999999999997e293 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -10

                    1. Initial program 99.8%

                      \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                    2. Add Preprocessing
                    3. Taylor expanded in t around inf

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

                        \[\leadsto t \cdot \color{blue}{\left(\left(\frac{a}{t} + \left(\frac{z}{t} + \left(\frac{x \cdot \log y}{t} + \frac{\log c \cdot \left(b - \frac{1}{2}\right)}{t}\right)\right)\right) + 1\right)} + y \cdot i \]
                      2. distribute-rgt-inN/A

                        \[\leadsto \color{blue}{\left(\left(\frac{a}{t} + \left(\frac{z}{t} + \left(\frac{x \cdot \log y}{t} + \frac{\log c \cdot \left(b - \frac{1}{2}\right)}{t}\right)\right)\right) \cdot t + 1 \cdot t\right)} + y \cdot i \]
                      3. *-lft-identityN/A

                        \[\leadsto \left(\left(\frac{a}{t} + \left(\frac{z}{t} + \left(\frac{x \cdot \log y}{t} + \frac{\log c \cdot \left(b - \frac{1}{2}\right)}{t}\right)\right)\right) \cdot t + \color{blue}{t}\right) + y \cdot i \]
                      4. lower-fma.f64N/A

                        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{a}{t} + \left(\frac{z}{t} + \left(\frac{x \cdot \log y}{t} + \frac{\log c \cdot \left(b - \frac{1}{2}\right)}{t}\right)\right), t, t\right)} + y \cdot i \]
                    5. Applied rewrites73.6%

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

                      \[\leadsto \mathsf{fma}\left(\frac{z}{t}, t, t\right) + y \cdot i \]
                    7. Step-by-step derivation
                      1. Applied rewrites37.6%

                        \[\leadsto \mathsf{fma}\left(\frac{z}{t}, t, t\right) + y \cdot i \]

                      if -10 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i))

                      1. Initial program 99.8%

                        \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                      2. Add Preprocessing
                      3. Taylor expanded in x around 0

                        \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
                      4. Step-by-step derivation
                        1. associate-+r+N/A

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

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

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

                          \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                        5. associate-+r+N/A

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

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

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

                          \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
                        9. lower--.f64N/A

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

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

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

                          \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
                        13. lower-fma.f6477.0

                          \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
                      5. Applied rewrites77.0%

                        \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
                      6. Taylor expanded in y around inf

                        \[\leadsto \left(t + a\right) + i \cdot \color{blue}{y} \]
                      7. Step-by-step derivation
                        1. Applied rewrites41.1%

                          \[\leadsto \left(t + a\right) + y \cdot \color{blue}{i} \]
                      8. Recombined 3 regimes into one program.
                      9. Final simplification43.3%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \leq -4 \cdot 10^{+293}:\\ \;\;\;\;\left(\frac{z}{i} + y\right) \cdot i\\ \mathbf{elif}\;i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \leq -10:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, t\right) + i \cdot y\\ \mathbf{else}:\\ \;\;\;\;i \cdot y + \left(a + t\right)\\ \end{array} \]
                      10. Add Preprocessing

                      Alternative 5: 38.0% accurate, 0.5× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right)\\ \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+305}:\\ \;\;\;\;i \cdot y\\ \mathbf{elif}\;t\_1 \leq -4 \cdot 10^{+90}:\\ \;\;\;\;\frac{z}{i} \cdot i\\ \mathbf{else}:\\ \;\;\;\;i \cdot y + \left(a + t\right)\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b c i)
                       :precision binary64
                       (let* ((t_1
                               (+
                                (* i y)
                                (+ (* (log c) (- b 0.5)) (+ a (+ t (+ z (* (log y) x))))))))
                         (if (<= t_1 -2e+305)
                           (* i y)
                           (if (<= t_1 -4e+90) (* (/ z i) i) (+ (* i y) (+ a t))))))
                      double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                      	double t_1 = (i * y) + ((log(c) * (b - 0.5)) + (a + (t + (z + (log(y) * x)))));
                      	double tmp;
                      	if (t_1 <= -2e+305) {
                      		tmp = i * y;
                      	} else if (t_1 <= -4e+90) {
                      		tmp = (z / i) * i;
                      	} else {
                      		tmp = (i * y) + (a + t);
                      	}
                      	return tmp;
                      }
                      
                      real(8) function code(x, y, z, t, a, b, c, i)
                          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 = (i * y) + ((log(c) * (b - 0.5d0)) + (a + (t + (z + (log(y) * x)))))
                          if (t_1 <= (-2d+305)) then
                              tmp = i * y
                          else if (t_1 <= (-4d+90)) then
                              tmp = (z / i) * i
                          else
                              tmp = (i * y) + (a + t)
                          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 = (i * y) + ((Math.log(c) * (b - 0.5)) + (a + (t + (z + (Math.log(y) * x)))));
                      	double tmp;
                      	if (t_1 <= -2e+305) {
                      		tmp = i * y;
                      	} else if (t_1 <= -4e+90) {
                      		tmp = (z / i) * i;
                      	} else {
                      		tmp = (i * y) + (a + t);
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a, b, c, i):
                      	t_1 = (i * y) + ((math.log(c) * (b - 0.5)) + (a + (t + (z + (math.log(y) * x)))))
                      	tmp = 0
                      	if t_1 <= -2e+305:
                      		tmp = i * y
                      	elif t_1 <= -4e+90:
                      		tmp = (z / i) * i
                      	else:
                      		tmp = (i * y) + (a + t)
                      	return tmp
                      
                      function code(x, y, z, t, a, b, c, i)
                      	t_1 = Float64(Float64(i * y) + Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(a + Float64(t + Float64(z + Float64(log(y) * x))))))
                      	tmp = 0.0
                      	if (t_1 <= -2e+305)
                      		tmp = Float64(i * y);
                      	elseif (t_1 <= -4e+90)
                      		tmp = Float64(Float64(z / i) * i);
                      	else
                      		tmp = Float64(Float64(i * y) + Float64(a + t));
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a, b, c, i)
                      	t_1 = (i * y) + ((log(c) * (b - 0.5)) + (a + (t + (z + (log(y) * x)))));
                      	tmp = 0.0;
                      	if (t_1 <= -2e+305)
                      		tmp = i * y;
                      	elseif (t_1 <= -4e+90)
                      		tmp = (z / i) * i;
                      	else
                      		tmp = (i * y) + (a + t);
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(i * y), $MachinePrecision] + N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(a + N[(t + N[(z + N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+305], N[(i * y), $MachinePrecision], If[LessEqual[t$95$1, -4e+90], N[(N[(z / i), $MachinePrecision] * i), $MachinePrecision], N[(N[(i * y), $MachinePrecision] + N[(a + t), $MachinePrecision]), $MachinePrecision]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right)\\
                      \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+305}:\\
                      \;\;\;\;i \cdot y\\
                      
                      \mathbf{elif}\;t\_1 \leq -4 \cdot 10^{+90}:\\
                      \;\;\;\;\frac{z}{i} \cdot i\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;i \cdot y + \left(a + t\right)\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -1.9999999999999999e305

                        1. Initial program 100.0%

                          \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                        2. Add Preprocessing
                        3. Taylor expanded in y around inf

                          \[\leadsto \color{blue}{i \cdot y} \]
                        4. Step-by-step derivation
                          1. *-commutativeN/A

                            \[\leadsto \color{blue}{y \cdot i} \]
                          2. lower-*.f64100.0

                            \[\leadsto \color{blue}{y \cdot i} \]
                        5. Applied rewrites100.0%

                          \[\leadsto \color{blue}{y \cdot i} \]

                        if -1.9999999999999999e305 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -3.99999999999999987e90

                        1. Initial program 99.8%

                          \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                        2. Add Preprocessing
                        3. Taylor expanded in i around -inf

                          \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)} \]
                        4. Step-by-step derivation
                          1. *-commutativeN/A

                            \[\leadsto -1 \cdot \color{blue}{\left(\left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right) \cdot i\right)} \]
                          2. associate-*r*N/A

                            \[\leadsto \color{blue}{\left(-1 \cdot \left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right) \cdot i} \]
                          3. neg-mul-1N/A

                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)\right)} \cdot i \]
                          4. distribute-lft-outN/A

                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{-1 \cdot \left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)}\right)\right) \cdot i \]
                          5. mul-1-negN/A

                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(\left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)\right)}\right)\right) \cdot i \]
                          6. remove-double-negN/A

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

                            \[\leadsto \color{blue}{\left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right) \cdot i} \]
                        5. Applied rewrites61.3%

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

                          \[\leadsto \frac{z}{i} \cdot i \]
                        7. Step-by-step derivation
                          1. Applied rewrites14.4%

                            \[\leadsto \frac{z}{i} \cdot i \]

                          if -3.99999999999999987e90 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i))

                          1. Initial program 99.8%

                            \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                          2. Add Preprocessing
                          3. Taylor expanded in x around 0

                            \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
                          4. Step-by-step derivation
                            1. associate-+r+N/A

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

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

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

                              \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                            5. associate-+r+N/A

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

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

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

                              \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
                            9. lower--.f64N/A

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

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

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

                              \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
                            13. lower-fma.f6477.7

                              \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
                          5. Applied rewrites77.7%

                            \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
                          6. Taylor expanded in y around inf

                            \[\leadsto \left(t + a\right) + i \cdot \color{blue}{y} \]
                          7. Step-by-step derivation
                            1. Applied rewrites39.6%

                              \[\leadsto \left(t + a\right) + y \cdot \color{blue}{i} \]
                          8. Recombined 3 regimes into one program.
                          9. Final simplification33.6%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \leq -2 \cdot 10^{+305}:\\ \;\;\;\;i \cdot y\\ \mathbf{elif}\;i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \leq -4 \cdot 10^{+90}:\\ \;\;\;\;\frac{z}{i} \cdot i\\ \mathbf{else}:\\ \;\;\;\;i \cdot y + \left(a + t\right)\\ \end{array} \]
                          10. Add Preprocessing

                          Alternative 6: 41.9% accurate, 0.9× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \leq -10:\\ \;\;\;\;\left(\frac{z}{i} + y\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;i \cdot y + \left(a + t\right)\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b c i)
                           :precision binary64
                           (if (<=
                                (+ (* i y) (+ (* (log c) (- b 0.5)) (+ a (+ t (+ z (* (log y) x))))))
                                -10.0)
                             (* (+ (/ z i) y) i)
                             (+ (* i y) (+ a t))))
                          double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                          	double tmp;
                          	if (((i * y) + ((log(c) * (b - 0.5)) + (a + (t + (z + (log(y) * x)))))) <= -10.0) {
                          		tmp = ((z / i) + y) * i;
                          	} else {
                          		tmp = (i * y) + (a + t);
                          	}
                          	return tmp;
                          }
                          
                          real(8) function code(x, y, z, t, a, b, c, i)
                              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 (((i * y) + ((log(c) * (b - 0.5d0)) + (a + (t + (z + (log(y) * x)))))) <= (-10.0d0)) then
                                  tmp = ((z / i) + y) * i
                              else
                                  tmp = (i * y) + (a + t)
                              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 (((i * y) + ((Math.log(c) * (b - 0.5)) + (a + (t + (z + (Math.log(y) * x)))))) <= -10.0) {
                          		tmp = ((z / i) + y) * i;
                          	} else {
                          		tmp = (i * y) + (a + t);
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a, b, c, i):
                          	tmp = 0
                          	if ((i * y) + ((math.log(c) * (b - 0.5)) + (a + (t + (z + (math.log(y) * x)))))) <= -10.0:
                          		tmp = ((z / i) + y) * i
                          	else:
                          		tmp = (i * y) + (a + t)
                          	return tmp
                          
                          function code(x, y, z, t, a, b, c, i)
                          	tmp = 0.0
                          	if (Float64(Float64(i * y) + Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(a + Float64(t + Float64(z + Float64(log(y) * x)))))) <= -10.0)
                          		tmp = Float64(Float64(Float64(z / i) + y) * i);
                          	else
                          		tmp = Float64(Float64(i * y) + Float64(a + t));
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t, a, b, c, i)
                          	tmp = 0.0;
                          	if (((i * y) + ((log(c) * (b - 0.5)) + (a + (t + (z + (log(y) * x)))))) <= -10.0)
                          		tmp = ((z / i) + y) * i;
                          	else
                          		tmp = (i * y) + (a + t);
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(i * y), $MachinePrecision] + N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(a + N[(t + N[(z + N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -10.0], N[(N[(N[(z / i), $MachinePrecision] + y), $MachinePrecision] * i), $MachinePrecision], N[(N[(i * y), $MachinePrecision] + N[(a + t), $MachinePrecision]), $MachinePrecision]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \leq -10:\\
                          \;\;\;\;\left(\frac{z}{i} + y\right) \cdot i\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;i \cdot y + \left(a + t\right)\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -10

                            1. Initial program 99.8%

                              \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                            2. Add Preprocessing
                            3. Taylor expanded in i around -inf

                              \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)} \]
                            4. Step-by-step derivation
                              1. *-commutativeN/A

                                \[\leadsto -1 \cdot \color{blue}{\left(\left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right) \cdot i\right)} \]
                              2. associate-*r*N/A

                                \[\leadsto \color{blue}{\left(-1 \cdot \left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right) \cdot i} \]
                              3. neg-mul-1N/A

                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 \cdot y + -1 \cdot \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)\right)} \cdot i \]
                              4. distribute-lft-outN/A

                                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{-1 \cdot \left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)}\right)\right) \cdot i \]
                              5. mul-1-negN/A

                                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(\left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right)\right)\right)}\right)\right) \cdot i \]
                              6. remove-double-negN/A

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

                                \[\leadsto \color{blue}{\left(y + \frac{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{i}\right) \cdot i} \]
                            5. Applied rewrites70.1%

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

                              \[\leadsto \left(\frac{z}{i} + y\right) \cdot i \]
                            7. Step-by-step derivation
                              1. Applied rewrites35.7%

                                \[\leadsto \left(\frac{z}{i} + y\right) \cdot i \]

                              if -10 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i))

                              1. Initial program 99.8%

                                \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                              2. Add Preprocessing
                              3. Taylor expanded in x around 0

                                \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
                              4. Step-by-step derivation
                                1. associate-+r+N/A

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

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

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

                                  \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                                5. associate-+r+N/A

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

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

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

                                  \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
                                9. lower--.f64N/A

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

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

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

                                  \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
                                13. lower-fma.f6477.0

                                  \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
                              5. Applied rewrites77.0%

                                \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
                              6. Taylor expanded in y around inf

                                \[\leadsto \left(t + a\right) + i \cdot \color{blue}{y} \]
                              7. Step-by-step derivation
                                1. Applied rewrites41.1%

                                  \[\leadsto \left(t + a\right) + y \cdot \color{blue}{i} \]
                              8. Recombined 2 regimes into one program.
                              9. Final simplification38.6%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;i \cdot y + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + \log y \cdot x\right)\right)\right)\right) \leq -10:\\ \;\;\;\;\left(\frac{z}{i} + y\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;i \cdot y + \left(a + t\right)\\ \end{array} \]
                              10. Add Preprocessing

                              Alternative 7: 91.6% accurate, 1.0× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -2.5 \cdot 10^{+62}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\ \mathbf{elif}\;x \leq 1.32 \cdot 10^{+163}:\\ \;\;\;\;\mathsf{fma}\left(b - 0.5, \log c, \left(a + t\right) + \mathsf{fma}\left(i, y, z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(\log y, x, z\right)\right) + \left(a + t\right)\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b c i)
                               :precision binary64
                               (if (<= x -2.5e+62)
                                 (fma (+ (fma i y z) (* (log y) x)) 1.0 a)
                                 (if (<= x 1.32e+163)
                                   (fma (- b 0.5) (log c) (+ (+ a t) (fma i y z)))
                                   (+ (fma (- b 0.5) (log c) (fma (log y) x z)) (+ a t)))))
                              double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                              	double tmp;
                              	if (x <= -2.5e+62) {
                              		tmp = fma((fma(i, y, z) + (log(y) * x)), 1.0, a);
                              	} else if (x <= 1.32e+163) {
                              		tmp = fma((b - 0.5), log(c), ((a + t) + fma(i, y, z)));
                              	} else {
                              		tmp = fma((b - 0.5), log(c), fma(log(y), x, z)) + (a + t);
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a, b, c, i)
                              	tmp = 0.0
                              	if (x <= -2.5e+62)
                              		tmp = fma(Float64(fma(i, y, z) + Float64(log(y) * x)), 1.0, a);
                              	elseif (x <= 1.32e+163)
                              		tmp = fma(Float64(b - 0.5), log(c), Float64(Float64(a + t) + fma(i, y, z)));
                              	else
                              		tmp = Float64(fma(Float64(b - 0.5), log(c), fma(log(y), x, z)) + Float64(a + t));
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[x, -2.5e+62], N[(N[(N[(i * y + z), $MachinePrecision] + N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] * 1.0 + a), $MachinePrecision], If[LessEqual[x, 1.32e+163], N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + N[(N[(a + t), $MachinePrecision] + N[(i * y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + N[(N[Log[y], $MachinePrecision] * x + z), $MachinePrecision]), $MachinePrecision] + N[(a + t), $MachinePrecision]), $MachinePrecision]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;x \leq -2.5 \cdot 10^{+62}:\\
                              \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\
                              
                              \mathbf{elif}\;x \leq 1.32 \cdot 10^{+163}:\\
                              \;\;\;\;\mathsf{fma}\left(b - 0.5, \log c, \left(a + t\right) + \mathsf{fma}\left(i, y, z\right)\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(\log y, x, z\right)\right) + \left(a + t\right)\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 3 regimes
                              2. if x < -2.50000000000000014e62

                                1. Initial program 99.8%

                                  \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                2. Add Preprocessing
                                3. Taylor expanded in a around -inf

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

                                    \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} - 1\right)} \]
                                  2. sub-negN/A

                                    \[\leadsto \left(-1 \cdot a\right) \cdot \color{blue}{\left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} + \left(\mathsf{neg}\left(1\right)\right)\right)} \]
                                  3. metadata-evalN/A

                                    \[\leadsto \left(-1 \cdot a\right) \cdot \left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} + \color{blue}{-1}\right) \]
                                  4. distribute-rgt-inN/A

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

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

                                    \[\leadsto \color{blue}{\frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \left(-1 \cdot \left(-1 \cdot a\right)\right)} + -1 \cdot \left(-1 \cdot a\right) \]
                                  7. associate-*r*N/A

                                    \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \color{blue}{\left(\left(-1 \cdot -1\right) \cdot a\right)} + -1 \cdot \left(-1 \cdot a\right) \]
                                  8. metadata-evalN/A

                                    \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \left(\color{blue}{1} \cdot a\right) + -1 \cdot \left(-1 \cdot a\right) \]
                                  9. *-lft-identityN/A

                                    \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \color{blue}{a} + -1 \cdot \left(-1 \cdot a\right) \]
                                  10. associate-*r*N/A

                                    \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot a + \color{blue}{\left(-1 \cdot -1\right) \cdot a} \]
                                5. Applied rewrites71.7%

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

                                  \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(y, i, z\right) + x \cdot \log y}{a}, a, a\right) \]
                                7. Step-by-step derivation
                                  1. Applied rewrites62.8%

                                    \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(y, i, z\right) + \log y \cdot x}{a}, a, a\right) \]
                                  2. Step-by-step derivation
                                    1. Applied rewrites83.8%

                                      \[\leadsto \mathsf{fma}\left(\log y \cdot x + \mathsf{fma}\left(i, y, z\right), \color{blue}{1}, a\right) \]

                                    if -2.50000000000000014e62 < x < 1.31999999999999995e163

                                    1. Initial program 99.8%

                                      \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                    2. Add Preprocessing
                                    3. Taylor expanded in x around 0

                                      \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
                                    4. Step-by-step derivation
                                      1. associate-+r+N/A

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

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

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

                                        \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                                      5. associate-+r+N/A

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

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

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

                                        \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
                                      9. lower--.f64N/A

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

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

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

                                        \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
                                      13. lower-fma.f6498.0

                                        \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
                                    5. Applied rewrites98.0%

                                      \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
                                    6. Step-by-step derivation
                                      1. Applied rewrites98.0%

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

                                      if 1.31999999999999995e163 < x

                                      1. Initial program 99.5%

                                        \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in y around 0

                                        \[\leadsto \color{blue}{a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
                                      4. Step-by-step derivation
                                        1. associate-+r+N/A

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

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

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

                                          \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                                        5. associate-+r+N/A

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

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

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

                                          \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + x \cdot \log y\right)} \]
                                        9. lower--.f64N/A

                                          \[\leadsto \left(t + a\right) + \mathsf{fma}\left(\color{blue}{b - \frac{1}{2}}, \log c, z + x \cdot \log y\right) \]
                                        10. lower-log.f64N/A

                                          \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \color{blue}{\log c}, z + x \cdot \log y\right) \]
                                        11. +-commutativeN/A

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

                                          \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{\log y \cdot x} + z\right) \]
                                        13. lower-fma.f64N/A

                                          \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{\mathsf{fma}\left(\log y, x, z\right)}\right) \]
                                        14. lower-log.f6495.4

                                          \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(\color{blue}{\log y}, x, z\right)\right) \]
                                      5. Applied rewrites95.4%

                                        \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(\log y, x, z\right)\right)} \]
                                    7. Recombined 3 regimes into one program.
                                    8. Final simplification94.6%

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -2.5 \cdot 10^{+62}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\ \mathbf{elif}\;x \leq 1.32 \cdot 10^{+163}:\\ \;\;\;\;\mathsf{fma}\left(b - 0.5, \log c, \left(a + t\right) + \mathsf{fma}\left(i, y, z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(\log y, x, z\right)\right) + \left(a + t\right)\\ \end{array} \]
                                    9. Add Preprocessing

                                    Alternative 8: 84.1% accurate, 1.0× speedup?

                                    \[\begin{array}{l} \\ \left(\mathsf{fma}\left(b - 0.5, \log c, a\right) + \mathsf{fma}\left(\log y, x, z\right)\right) + i \cdot y \end{array} \]
                                    (FPCore (x y z t a b c i)
                                     :precision binary64
                                     (+ (+ (fma (- b 0.5) (log c) a) (fma (log y) x z)) (* i y)))
                                    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                    	return (fma((b - 0.5), log(c), a) + fma(log(y), x, z)) + (i * y);
                                    }
                                    
                                    function code(x, y, z, t, a, b, c, i)
                                    	return Float64(Float64(fma(Float64(b - 0.5), log(c), a) + fma(log(y), x, z)) + Float64(i * y))
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + a), $MachinePrecision] + N[(N[Log[y], $MachinePrecision] * x + z), $MachinePrecision]), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \left(\mathsf{fma}\left(b - 0.5, \log c, a\right) + \mathsf{fma}\left(\log y, x, z\right)\right) + i \cdot y
                                    \end{array}
                                    
                                    Derivation
                                    1. Initial program 99.8%

                                      \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                    2. Add Preprocessing
                                    3. Taylor expanded in t around 0

                                      \[\leadsto \color{blue}{\left(a + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} + y \cdot i \]
                                    4. Step-by-step derivation
                                      1. +-commutativeN/A

                                        \[\leadsto \color{blue}{\left(\left(z + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) + a\right)} + y \cdot i \]
                                      2. associate-+r+N/A

                                        \[\leadsto \left(\color{blue}{\left(\left(z + x \cdot \log y\right) + \log c \cdot \left(b - \frac{1}{2}\right)\right)} + a\right) + y \cdot i \]
                                      3. associate-+l+N/A

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

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

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

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

                                        \[\leadsto \left(\color{blue}{\mathsf{fma}\left(\log y, x, z\right)} + \left(\log c \cdot \left(b - \frac{1}{2}\right) + a\right)\right) + y \cdot i \]
                                      8. lower-log.f64N/A

                                        \[\leadsto \left(\mathsf{fma}\left(\color{blue}{\log y}, x, z\right) + \left(\log c \cdot \left(b - \frac{1}{2}\right) + a\right)\right) + y \cdot i \]
                                      9. *-commutativeN/A

                                        \[\leadsto \left(\mathsf{fma}\left(\log y, x, z\right) + \left(\color{blue}{\left(b - \frac{1}{2}\right) \cdot \log c} + a\right)\right) + y \cdot i \]
                                      10. lower-fma.f64N/A

                                        \[\leadsto \left(\mathsf{fma}\left(\log y, x, z\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, a\right)}\right) + y \cdot i \]
                                      11. lower--.f64N/A

                                        \[\leadsto \left(\mathsf{fma}\left(\log y, x, z\right) + \mathsf{fma}\left(\color{blue}{b - \frac{1}{2}}, \log c, a\right)\right) + y \cdot i \]
                                      12. lower-log.f6486.3

                                        \[\leadsto \left(\mathsf{fma}\left(\log y, x, z\right) + \mathsf{fma}\left(b - 0.5, \color{blue}{\log c}, a\right)\right) + y \cdot i \]
                                    5. Applied rewrites86.3%

                                      \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\log y, x, z\right) + \mathsf{fma}\left(b - 0.5, \log c, a\right)\right)} + y \cdot i \]
                                    6. Final simplification86.3%

                                      \[\leadsto \left(\mathsf{fma}\left(b - 0.5, \log c, a\right) + \mathsf{fma}\left(\log y, x, z\right)\right) + i \cdot y \]
                                    7. Add Preprocessing

                                    Alternative 9: 75.8% accurate, 1.7× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\mathsf{fma}\left(b - 0.5, \log c, z\right) + t\right) + a\\ \mathbf{if}\;b - 0.5 \leq -4 \cdot 10^{+181}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b - 0.5 \leq 6 \cdot 10^{+149}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b c i)
                                     :precision binary64
                                     (let* ((t_1 (+ (+ (fma (- b 0.5) (log c) z) t) a)))
                                       (if (<= (- b 0.5) -4e+181)
                                         t_1
                                         (if (<= (- b 0.5) 6e+149)
                                           (fma (+ (fma i y z) (* (log y) x)) 1.0 a)
                                           t_1))))
                                    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                    	double t_1 = (fma((b - 0.5), log(c), z) + t) + a;
                                    	double tmp;
                                    	if ((b - 0.5) <= -4e+181) {
                                    		tmp = t_1;
                                    	} else if ((b - 0.5) <= 6e+149) {
                                    		tmp = fma((fma(i, y, z) + (log(y) * x)), 1.0, a);
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a, b, c, i)
                                    	t_1 = Float64(Float64(fma(Float64(b - 0.5), log(c), z) + t) + a)
                                    	tmp = 0.0
                                    	if (Float64(b - 0.5) <= -4e+181)
                                    		tmp = t_1;
                                    	elseif (Float64(b - 0.5) <= 6e+149)
                                    		tmp = fma(Float64(fma(i, y, z) + Float64(log(y) * x)), 1.0, a);
                                    	else
                                    		tmp = t_1;
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision]}, If[LessEqual[N[(b - 0.5), $MachinePrecision], -4e+181], t$95$1, If[LessEqual[N[(b - 0.5), $MachinePrecision], 6e+149], N[(N[(N[(i * y + z), $MachinePrecision] + N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] * 1.0 + a), $MachinePrecision], t$95$1]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \left(\mathsf{fma}\left(b - 0.5, \log c, z\right) + t\right) + a\\
                                    \mathbf{if}\;b - 0.5 \leq -4 \cdot 10^{+181}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;b - 0.5 \leq 6 \cdot 10^{+149}:\\
                                    \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if (-.f64 b #s(literal 1/2 binary64)) < -3.9999999999999997e181 or 6.00000000000000007e149 < (-.f64 b #s(literal 1/2 binary64))

                                      1. Initial program 99.6%

                                        \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in x around 0

                                        \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
                                      4. Step-by-step derivation
                                        1. associate-+r+N/A

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

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

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

                                          \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                                        5. associate-+r+N/A

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

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

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

                                          \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
                                        9. lower--.f64N/A

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

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

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

                                          \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
                                        13. lower-fma.f6492.6

                                          \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
                                      5. Applied rewrites92.6%

                                        \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
                                      6. Taylor expanded in y around 0

                                        \[\leadsto a + \color{blue}{\left(t + \left(z + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)} \]
                                      7. Step-by-step derivation
                                        1. Applied rewrites78.6%

                                          \[\leadsto \left(\mathsf{fma}\left(b - 0.5, \log c, z\right) + t\right) + \color{blue}{a} \]

                                        if -3.9999999999999997e181 < (-.f64 b #s(literal 1/2 binary64)) < 6.00000000000000007e149

                                        1. Initial program 99.8%

                                          \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in a around -inf

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

                                            \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} - 1\right)} \]
                                          2. sub-negN/A

                                            \[\leadsto \left(-1 \cdot a\right) \cdot \color{blue}{\left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} + \left(\mathsf{neg}\left(1\right)\right)\right)} \]
                                          3. metadata-evalN/A

                                            \[\leadsto \left(-1 \cdot a\right) \cdot \left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} + \color{blue}{-1}\right) \]
                                          4. distribute-rgt-inN/A

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

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

                                            \[\leadsto \color{blue}{\frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \left(-1 \cdot \left(-1 \cdot a\right)\right)} + -1 \cdot \left(-1 \cdot a\right) \]
                                          7. associate-*r*N/A

                                            \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \color{blue}{\left(\left(-1 \cdot -1\right) \cdot a\right)} + -1 \cdot \left(-1 \cdot a\right) \]
                                          8. metadata-evalN/A

                                            \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \left(\color{blue}{1} \cdot a\right) + -1 \cdot \left(-1 \cdot a\right) \]
                                          9. *-lft-identityN/A

                                            \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \color{blue}{a} + -1 \cdot \left(-1 \cdot a\right) \]
                                          10. associate-*r*N/A

                                            \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot a + \color{blue}{\left(-1 \cdot -1\right) \cdot a} \]
                                        5. Applied rewrites75.4%

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

                                          \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(y, i, z\right) + x \cdot \log y}{a}, a, a\right) \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites58.6%

                                            \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(y, i, z\right) + \log y \cdot x}{a}, a, a\right) \]
                                          2. Step-by-step derivation
                                            1. Applied rewrites77.5%

                                              \[\leadsto \mathsf{fma}\left(\log y \cdot x + \mathsf{fma}\left(i, y, z\right), \color{blue}{1}, a\right) \]
                                          3. Recombined 2 regimes into one program.
                                          4. Final simplification77.7%

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;b - 0.5 \leq -4 \cdot 10^{+181}:\\ \;\;\;\;\left(\mathsf{fma}\left(b - 0.5, \log c, z\right) + t\right) + a\\ \mathbf{elif}\;b - 0.5 \leq 6 \cdot 10^{+149}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\mathsf{fma}\left(b - 0.5, \log c, z\right) + t\right) + a\\ \end{array} \]
                                          5. Add Preprocessing

                                          Alternative 10: 91.3% accurate, 1.7× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\ \mathbf{if}\;x \leq -2.5 \cdot 10^{+62}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 5.8 \cdot 10^{+159}:\\ \;\;\;\;\mathsf{fma}\left(b - 0.5, \log c, \left(a + t\right) + \mathsf{fma}\left(i, y, z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                          (FPCore (x y z t a b c i)
                                           :precision binary64
                                           (let* ((t_1 (fma (+ (fma i y z) (* (log y) x)) 1.0 a)))
                                             (if (<= x -2.5e+62)
                                               t_1
                                               (if (<= x 5.8e+159)
                                                 (fma (- b 0.5) (log c) (+ (+ a t) (fma i y z)))
                                                 t_1))))
                                          double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                          	double t_1 = fma((fma(i, y, z) + (log(y) * x)), 1.0, a);
                                          	double tmp;
                                          	if (x <= -2.5e+62) {
                                          		tmp = t_1;
                                          	} else if (x <= 5.8e+159) {
                                          		tmp = fma((b - 0.5), log(c), ((a + t) + fma(i, y, z)));
                                          	} else {
                                          		tmp = t_1;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          function code(x, y, z, t, a, b, c, i)
                                          	t_1 = fma(Float64(fma(i, y, z) + Float64(log(y) * x)), 1.0, a)
                                          	tmp = 0.0
                                          	if (x <= -2.5e+62)
                                          		tmp = t_1;
                                          	elseif (x <= 5.8e+159)
                                          		tmp = fma(Float64(b - 0.5), log(c), Float64(Float64(a + t) + fma(i, y, z)));
                                          	else
                                          		tmp = t_1;
                                          	end
                                          	return tmp
                                          end
                                          
                                          code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(i * y + z), $MachinePrecision] + N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] * 1.0 + a), $MachinePrecision]}, If[LessEqual[x, -2.5e+62], t$95$1, If[LessEqual[x, 5.8e+159], N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + N[(N[(a + t), $MachinePrecision] + N[(i * y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          t_1 := \mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\
                                          \mathbf{if}\;x \leq -2.5 \cdot 10^{+62}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          \mathbf{elif}\;x \leq 5.8 \cdot 10^{+159}:\\
                                          \;\;\;\;\mathsf{fma}\left(b - 0.5, \log c, \left(a + t\right) + \mathsf{fma}\left(i, y, z\right)\right)\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 2 regimes
                                          2. if x < -2.50000000000000014e62 or 5.80000000000000029e159 < x

                                            1. Initial program 99.7%

                                              \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in a around -inf

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

                                                \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} - 1\right)} \]
                                              2. sub-negN/A

                                                \[\leadsto \left(-1 \cdot a\right) \cdot \color{blue}{\left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} + \left(\mathsf{neg}\left(1\right)\right)\right)} \]
                                              3. metadata-evalN/A

                                                \[\leadsto \left(-1 \cdot a\right) \cdot \left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} + \color{blue}{-1}\right) \]
                                              4. distribute-rgt-inN/A

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

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

                                                \[\leadsto \color{blue}{\frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \left(-1 \cdot \left(-1 \cdot a\right)\right)} + -1 \cdot \left(-1 \cdot a\right) \]
                                              7. associate-*r*N/A

                                                \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \color{blue}{\left(\left(-1 \cdot -1\right) \cdot a\right)} + -1 \cdot \left(-1 \cdot a\right) \]
                                              8. metadata-evalN/A

                                                \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \left(\color{blue}{1} \cdot a\right) + -1 \cdot \left(-1 \cdot a\right) \]
                                              9. *-lft-identityN/A

                                                \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \color{blue}{a} + -1 \cdot \left(-1 \cdot a\right) \]
                                              10. associate-*r*N/A

                                                \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot a + \color{blue}{\left(-1 \cdot -1\right) \cdot a} \]
                                            5. Applied rewrites71.7%

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

                                              \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(y, i, z\right) + x \cdot \log y}{a}, a, a\right) \]
                                            7. Step-by-step derivation
                                              1. Applied rewrites64.2%

                                                \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(y, i, z\right) + \log y \cdot x}{a}, a, a\right) \]
                                              2. Step-by-step derivation
                                                1. Applied rewrites87.0%

                                                  \[\leadsto \mathsf{fma}\left(\log y \cdot x + \mathsf{fma}\left(i, y, z\right), \color{blue}{1}, a\right) \]

                                                if -2.50000000000000014e62 < x < 5.80000000000000029e159

                                                1. Initial program 99.8%

                                                  \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in x around 0

                                                  \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
                                                4. Step-by-step derivation
                                                  1. associate-+r+N/A

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

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

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

                                                    \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                                                  5. associate-+r+N/A

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

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

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

                                                    \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
                                                  9. lower--.f64N/A

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

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

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

                                                    \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
                                                  13. lower-fma.f6498.0

                                                    \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
                                                5. Applied rewrites98.0%

                                                  \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
                                                6. Step-by-step derivation
                                                  1. Applied rewrites98.0%

                                                    \[\leadsto \mathsf{fma}\left(b - 0.5, \color{blue}{\log c}, \mathsf{fma}\left(i, y, z\right) + \left(t + a\right)\right) \]
                                                7. Recombined 2 regimes into one program.
                                                8. Final simplification94.5%

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -2.5 \cdot 10^{+62}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\ \mathbf{elif}\;x \leq 5.8 \cdot 10^{+159}:\\ \;\;\;\;\mathsf{fma}\left(b - 0.5, \log c, \left(a + t\right) + \mathsf{fma}\left(i, y, z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\ \end{array} \]
                                                9. Add Preprocessing

                                                Alternative 11: 91.3% accurate, 1.7× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\ \mathbf{if}\;x \leq -2.5 \cdot 10^{+62}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 5.8 \cdot 10^{+159}:\\ \;\;\;\;\mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right) + \left(a + t\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a b c i)
                                                 :precision binary64
                                                 (let* ((t_1 (fma (+ (fma i y z) (* (log y) x)) 1.0 a)))
                                                   (if (<= x -2.5e+62)
                                                     t_1
                                                     (if (<= x 5.8e+159)
                                                       (+ (fma (- b 0.5) (log c) (fma y i z)) (+ a t))
                                                       t_1))))
                                                double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                	double t_1 = fma((fma(i, y, z) + (log(y) * x)), 1.0, a);
                                                	double tmp;
                                                	if (x <= -2.5e+62) {
                                                		tmp = t_1;
                                                	} else if (x <= 5.8e+159) {
                                                		tmp = fma((b - 0.5), log(c), fma(y, i, z)) + (a + t);
                                                	} else {
                                                		tmp = t_1;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                function code(x, y, z, t, a, b, c, i)
                                                	t_1 = fma(Float64(fma(i, y, z) + Float64(log(y) * x)), 1.0, a)
                                                	tmp = 0.0
                                                	if (x <= -2.5e+62)
                                                		tmp = t_1;
                                                	elseif (x <= 5.8e+159)
                                                		tmp = Float64(fma(Float64(b - 0.5), log(c), fma(y, i, z)) + Float64(a + t));
                                                	else
                                                		tmp = t_1;
                                                	end
                                                	return tmp
                                                end
                                                
                                                code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(i * y + z), $MachinePrecision] + N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] * 1.0 + a), $MachinePrecision]}, If[LessEqual[x, -2.5e+62], t$95$1, If[LessEqual[x, 5.8e+159], N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + N[(y * i + z), $MachinePrecision]), $MachinePrecision] + N[(a + t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                t_1 := \mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\
                                                \mathbf{if}\;x \leq -2.5 \cdot 10^{+62}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{elif}\;x \leq 5.8 \cdot 10^{+159}:\\
                                                \;\;\;\;\mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right) + \left(a + t\right)\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 2 regimes
                                                2. if x < -2.50000000000000014e62 or 5.80000000000000029e159 < x

                                                  1. Initial program 99.7%

                                                    \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                                  2. Add Preprocessing
                                                  3. Taylor expanded in a around -inf

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

                                                      \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} - 1\right)} \]
                                                    2. sub-negN/A

                                                      \[\leadsto \left(-1 \cdot a\right) \cdot \color{blue}{\left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} + \left(\mathsf{neg}\left(1\right)\right)\right)} \]
                                                    3. metadata-evalN/A

                                                      \[\leadsto \left(-1 \cdot a\right) \cdot \left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} + \color{blue}{-1}\right) \]
                                                    4. distribute-rgt-inN/A

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

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

                                                      \[\leadsto \color{blue}{\frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \left(-1 \cdot \left(-1 \cdot a\right)\right)} + -1 \cdot \left(-1 \cdot a\right) \]
                                                    7. associate-*r*N/A

                                                      \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \color{blue}{\left(\left(-1 \cdot -1\right) \cdot a\right)} + -1 \cdot \left(-1 \cdot a\right) \]
                                                    8. metadata-evalN/A

                                                      \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \left(\color{blue}{1} \cdot a\right) + -1 \cdot \left(-1 \cdot a\right) \]
                                                    9. *-lft-identityN/A

                                                      \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \color{blue}{a} + -1 \cdot \left(-1 \cdot a\right) \]
                                                    10. associate-*r*N/A

                                                      \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot a + \color{blue}{\left(-1 \cdot -1\right) \cdot a} \]
                                                  5. Applied rewrites71.7%

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

                                                    \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(y, i, z\right) + x \cdot \log y}{a}, a, a\right) \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites64.2%

                                                      \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(y, i, z\right) + \log y \cdot x}{a}, a, a\right) \]
                                                    2. Step-by-step derivation
                                                      1. Applied rewrites87.0%

                                                        \[\leadsto \mathsf{fma}\left(\log y \cdot x + \mathsf{fma}\left(i, y, z\right), \color{blue}{1}, a\right) \]

                                                      if -2.50000000000000014e62 < x < 5.80000000000000029e159

                                                      1. Initial program 99.8%

                                                        \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in x around 0

                                                        \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
                                                      4. Step-by-step derivation
                                                        1. associate-+r+N/A

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

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

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

                                                          \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                                                        5. associate-+r+N/A

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

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

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

                                                          \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
                                                        9. lower--.f64N/A

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

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

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

                                                          \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
                                                        13. lower-fma.f6498.0

                                                          \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
                                                      5. Applied rewrites98.0%

                                                        \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
                                                    3. Recombined 2 regimes into one program.
                                                    4. Final simplification94.5%

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -2.5 \cdot 10^{+62}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\ \mathbf{elif}\;x \leq 5.8 \cdot 10^{+159}:\\ \;\;\;\;\mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right) + \left(a + t\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(i, y, z\right) + \log y \cdot x, 1, a\right)\\ \end{array} \]
                                                    5. Add Preprocessing

                                                    Alternative 12: 70.7% accurate, 1.8× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \log y \cdot x + i \cdot y\\ \mathbf{if}\;x \leq -7.5 \cdot 10^{+167}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 9.6 \cdot 10^{+178}:\\ \;\;\;\;\left(\mathsf{fma}\left(b - 0.5, \log c, z\right) + t\right) + a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                    (FPCore (x y z t a b c i)
                                                     :precision binary64
                                                     (let* ((t_1 (+ (* (log y) x) (* i y))))
                                                       (if (<= x -7.5e+167)
                                                         t_1
                                                         (if (<= x 9.6e+178) (+ (+ (fma (- b 0.5) (log c) z) t) a) t_1))))
                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                    	double t_1 = (log(y) * x) + (i * y);
                                                    	double tmp;
                                                    	if (x <= -7.5e+167) {
                                                    		tmp = t_1;
                                                    	} else if (x <= 9.6e+178) {
                                                    		tmp = (fma((b - 0.5), log(c), z) + t) + a;
                                                    	} else {
                                                    		tmp = t_1;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    function code(x, y, z, t, a, b, c, i)
                                                    	t_1 = Float64(Float64(log(y) * x) + Float64(i * y))
                                                    	tmp = 0.0
                                                    	if (x <= -7.5e+167)
                                                    		tmp = t_1;
                                                    	elseif (x <= 9.6e+178)
                                                    		tmp = Float64(Float64(fma(Float64(b - 0.5), log(c), z) + t) + a);
                                                    	else
                                                    		tmp = t_1;
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7.5e+167], t$95$1, If[LessEqual[x, 9.6e+178], N[(N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision], t$95$1]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    t_1 := \log y \cdot x + i \cdot y\\
                                                    \mathbf{if}\;x \leq -7.5 \cdot 10^{+167}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    \mathbf{elif}\;x \leq 9.6 \cdot 10^{+178}:\\
                                                    \;\;\;\;\left(\mathsf{fma}\left(b - 0.5, \log c, z\right) + t\right) + a\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 2 regimes
                                                    2. if x < -7.4999999999999995e167 or 9.599999999999999e178 < x

                                                      1. Initial program 99.6%

                                                        \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in x around inf

                                                        \[\leadsto \color{blue}{x \cdot \log y} + y \cdot i \]
                                                      4. Step-by-step derivation
                                                        1. *-commutativeN/A

                                                          \[\leadsto \color{blue}{\log y \cdot x} + y \cdot i \]
                                                        2. lower-*.f64N/A

                                                          \[\leadsto \color{blue}{\log y \cdot x} + y \cdot i \]
                                                        3. lower-log.f6477.1

                                                          \[\leadsto \color{blue}{\log y} \cdot x + y \cdot i \]
                                                      5. Applied rewrites77.1%

                                                        \[\leadsto \color{blue}{\log y \cdot x} + y \cdot i \]

                                                      if -7.4999999999999995e167 < x < 9.599999999999999e178

                                                      1. Initial program 99.8%

                                                        \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in x around 0

                                                        \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
                                                      4. Step-by-step derivation
                                                        1. associate-+r+N/A

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

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

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

                                                          \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                                                        5. associate-+r+N/A

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

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

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

                                                          \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
                                                        9. lower--.f64N/A

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

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

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

                                                          \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
                                                        13. lower-fma.f6494.8

                                                          \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
                                                      5. Applied rewrites94.8%

                                                        \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
                                                      6. Taylor expanded in y around 0

                                                        \[\leadsto a + \color{blue}{\left(t + \left(z + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)} \]
                                                      7. Step-by-step derivation
                                                        1. Applied rewrites74.0%

                                                          \[\leadsto \left(\mathsf{fma}\left(b - 0.5, \log c, z\right) + t\right) + \color{blue}{a} \]
                                                      8. Recombined 2 regimes into one program.
                                                      9. Final simplification74.7%

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -7.5 \cdot 10^{+167}:\\ \;\;\;\;\log y \cdot x + i \cdot y\\ \mathbf{elif}\;x \leq 9.6 \cdot 10^{+178}:\\ \;\;\;\;\left(\mathsf{fma}\left(b - 0.5, \log c, z\right) + t\right) + a\\ \mathbf{else}:\\ \;\;\;\;\log y \cdot x + i \cdot y\\ \end{array} \]
                                                      10. Add Preprocessing

                                                      Alternative 13: 75.1% accurate, 1.9× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 3.2 \cdot 10^{+45}:\\ \;\;\;\;\left(\mathsf{fma}\left(b - 0.5, \log c, z\right) + t\right) + a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right) + \left(a + t\right)\\ \end{array} \end{array} \]
                                                      (FPCore (x y z t a b c i)
                                                       :precision binary64
                                                       (if (<= y 3.2e+45)
                                                         (+ (+ (fma (- b 0.5) (log c) z) t) a)
                                                         (+ (fma -0.5 (log c) (fma y i z)) (+ a t))))
                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                      	double tmp;
                                                      	if (y <= 3.2e+45) {
                                                      		tmp = (fma((b - 0.5), log(c), z) + t) + a;
                                                      	} else {
                                                      		tmp = fma(-0.5, log(c), fma(y, i, z)) + (a + t);
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      function code(x, y, z, t, a, b, c, i)
                                                      	tmp = 0.0
                                                      	if (y <= 3.2e+45)
                                                      		tmp = Float64(Float64(fma(Float64(b - 0.5), log(c), z) + t) + a);
                                                      	else
                                                      		tmp = Float64(fma(-0.5, log(c), fma(y, i, z)) + Float64(a + t));
                                                      	end
                                                      	return tmp
                                                      end
                                                      
                                                      code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 3.2e+45], N[(N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision], N[(N[(-0.5 * N[Log[c], $MachinePrecision] + N[(y * i + z), $MachinePrecision]), $MachinePrecision] + N[(a + t), $MachinePrecision]), $MachinePrecision]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      \mathbf{if}\;y \leq 3.2 \cdot 10^{+45}:\\
                                                      \;\;\;\;\left(\mathsf{fma}\left(b - 0.5, \log c, z\right) + t\right) + a\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;\mathsf{fma}\left(-0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right) + \left(a + t\right)\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 2 regimes
                                                      2. if y < 3.2000000000000003e45

                                                        1. Initial program 99.8%

                                                          \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                                        2. Add Preprocessing
                                                        3. Taylor expanded in x around 0

                                                          \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
                                                        4. Step-by-step derivation
                                                          1. associate-+r+N/A

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

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

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

                                                            \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                                                          5. associate-+r+N/A

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

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

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

                                                            \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
                                                          9. lower--.f64N/A

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

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

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

                                                            \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
                                                          13. lower-fma.f6482.0

                                                            \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
                                                        5. Applied rewrites82.0%

                                                          \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
                                                        6. Taylor expanded in y around 0

                                                          \[\leadsto a + \color{blue}{\left(t + \left(z + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)} \]
                                                        7. Step-by-step derivation
                                                          1. Applied rewrites76.9%

                                                            \[\leadsto \left(\mathsf{fma}\left(b - 0.5, \log c, z\right) + t\right) + \color{blue}{a} \]

                                                          if 3.2000000000000003e45 < y

                                                          1. Initial program 99.9%

                                                            \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                                          2. Add Preprocessing
                                                          3. Taylor expanded in x around 0

                                                            \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
                                                          4. Step-by-step derivation
                                                            1. associate-+r+N/A

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

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

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

                                                              \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                                                            5. associate-+r+N/A

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

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

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

                                                              \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
                                                            9. lower--.f64N/A

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

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

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

                                                              \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
                                                            13. lower-fma.f6482.8

                                                              \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
                                                          5. Applied rewrites82.8%

                                                            \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
                                                          6. Taylor expanded in b around 0

                                                            \[\leadsto \left(t + a\right) + \left(z + \color{blue}{\left(\frac{-1}{2} \cdot \log c + i \cdot y\right)}\right) \]
                                                          7. Step-by-step derivation
                                                            1. Applied rewrites75.4%

                                                              \[\leadsto \left(t + a\right) + \mathsf{fma}\left(-0.5, \color{blue}{\log c}, \mathsf{fma}\left(y, i, z\right)\right) \]
                                                          8. Recombined 2 regimes into one program.
                                                          9. Final simplification76.3%

                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 3.2 \cdot 10^{+45}:\\ \;\;\;\;\left(\mathsf{fma}\left(b - 0.5, \log c, z\right) + t\right) + a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right) + \left(a + t\right)\\ \end{array} \]
                                                          10. Add Preprocessing

                                                          Alternative 14: 52.9% accurate, 9.7× speedup?

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

                                                            1. Initial program 99.9%

                                                              \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                                            2. Add Preprocessing
                                                            3. Taylor expanded in a around -inf

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

                                                                \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} - 1\right)} \]
                                                              2. sub-negN/A

                                                                \[\leadsto \left(-1 \cdot a\right) \cdot \color{blue}{\left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} + \left(\mathsf{neg}\left(1\right)\right)\right)} \]
                                                              3. metadata-evalN/A

                                                                \[\leadsto \left(-1 \cdot a\right) \cdot \left(-1 \cdot \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} + \color{blue}{-1}\right) \]
                                                              4. distribute-rgt-inN/A

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

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

                                                                \[\leadsto \color{blue}{\frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \left(-1 \cdot \left(-1 \cdot a\right)\right)} + -1 \cdot \left(-1 \cdot a\right) \]
                                                              7. associate-*r*N/A

                                                                \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \color{blue}{\left(\left(-1 \cdot -1\right) \cdot a\right)} + -1 \cdot \left(-1 \cdot a\right) \]
                                                              8. metadata-evalN/A

                                                                \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \left(\color{blue}{1} \cdot a\right) + -1 \cdot \left(-1 \cdot a\right) \]
                                                              9. *-lft-identityN/A

                                                                \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot \color{blue}{a} + -1 \cdot \left(-1 \cdot a\right) \]
                                                              10. associate-*r*N/A

                                                                \[\leadsto \frac{t + \left(z + \left(i \cdot y + \left(x \cdot \log y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)}{a} \cdot a + \color{blue}{\left(-1 \cdot -1\right) \cdot a} \]
                                                            5. Applied rewrites67.6%

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

                                                              \[\leadsto \mathsf{fma}\left(\frac{z}{a}, a, a\right) \]
                                                            7. Step-by-step derivation
                                                              1. Applied rewrites38.7%

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

                                                              if -7.99999999999999962e158 < z

                                                              1. Initial program 99.8%

                                                                \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                                              2. Add Preprocessing
                                                              3. Taylor expanded in x around 0

                                                                \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
                                                              4. Step-by-step derivation
                                                                1. associate-+r+N/A

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

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

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

                                                                  \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                                                                5. associate-+r+N/A

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

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

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

                                                                  \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
                                                                9. lower--.f64N/A

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

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

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

                                                                  \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
                                                                13. lower-fma.f6480.7

                                                                  \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
                                                              5. Applied rewrites80.7%

                                                                \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
                                                              6. Taylor expanded in y around inf

                                                                \[\leadsto \left(t + a\right) + i \cdot \color{blue}{y} \]
                                                              7. Step-by-step derivation
                                                                1. Applied rewrites48.6%

                                                                  \[\leadsto \left(t + a\right) + y \cdot \color{blue}{i} \]
                                                              8. Recombined 2 regimes into one program.
                                                              9. Final simplification47.4%

                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -8 \cdot 10^{+158}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, a, a\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot y + \left(a + t\right)\\ \end{array} \]
                                                              10. Add Preprocessing

                                                              Alternative 15: 52.3% accurate, 19.5× speedup?

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

                                                                \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                                              2. Add Preprocessing
                                                              3. Taylor expanded in x around 0

                                                                \[\leadsto \color{blue}{a + \left(t + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right)\right)} \]
                                                              4. Step-by-step derivation
                                                                1. associate-+r+N/A

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

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

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

                                                                  \[\leadsto \color{blue}{\left(t + a\right)} + \left(z + \left(i \cdot y + \log c \cdot \left(b - \frac{1}{2}\right)\right)\right) \]
                                                                5. associate-+r+N/A

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

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

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

                                                                  \[\leadsto \left(t + a\right) + \color{blue}{\mathsf{fma}\left(b - \frac{1}{2}, \log c, z + i \cdot y\right)} \]
                                                                9. lower--.f64N/A

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

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

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

                                                                  \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - \frac{1}{2}, \log c, \color{blue}{y \cdot i} + z\right) \]
                                                                13. lower-fma.f6482.3

                                                                  \[\leadsto \left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \color{blue}{\mathsf{fma}\left(y, i, z\right)}\right) \]
                                                              5. Applied rewrites82.3%

                                                                \[\leadsto \color{blue}{\left(t + a\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(y, i, z\right)\right)} \]
                                                              6. Taylor expanded in y around inf

                                                                \[\leadsto \left(t + a\right) + i \cdot \color{blue}{y} \]
                                                              7. Step-by-step derivation
                                                                1. Applied rewrites46.4%

                                                                  \[\leadsto \left(t + a\right) + y \cdot \color{blue}{i} \]
                                                                2. Final simplification46.4%

                                                                  \[\leadsto i \cdot y + \left(a + t\right) \]
                                                                3. Add Preprocessing

                                                                Alternative 16: 23.8% accurate, 39.0× speedup?

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

                                                                  \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
                                                                2. Add Preprocessing
                                                                3. Taylor expanded in y around inf

                                                                  \[\leadsto \color{blue}{i \cdot y} \]
                                                                4. Step-by-step derivation
                                                                  1. *-commutativeN/A

                                                                    \[\leadsto \color{blue}{y \cdot i} \]
                                                                  2. lower-*.f6419.9

                                                                    \[\leadsto \color{blue}{y \cdot i} \]
                                                                5. Applied rewrites19.9%

                                                                  \[\leadsto \color{blue}{y \cdot i} \]
                                                                6. Final simplification19.9%

                                                                  \[\leadsto i \cdot y \]
                                                                7. Add Preprocessing

                                                                Reproduce

                                                                ?
                                                                herbie shell --seed 2024277 
                                                                (FPCore (x y z t a b c i)
                                                                  :name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, B"
                                                                  :precision binary64
                                                                  (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))