Statistics.Distribution.Beta:$centropy from math-functions-0.1.5.2

Percentage Accurate: 94.8% → 97.2%
Time: 12.5s
Alternatives: 25
Speedup: 0.5×

Specification

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

\\
\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
\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 25 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: 94.8% accurate, 1.0× speedup?

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

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

Alternative 1: 97.2% accurate, 0.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq 1.62 \cdot 10^{+212}:\\ \;\;\;\;\mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, 1 - y, a \cdot \left(1 - t\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\left(y + t\right) - 2\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= b 1.62e+212)
   (fma (+ y (+ t -2.0)) b (+ x (fma z (- 1.0 y) (* a (- 1.0 t)))))
   (* b (- (+ y t) 2.0))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= 1.62e+212) {
		tmp = fma((y + (t + -2.0)), b, (x + fma(z, (1.0 - y), (a * (1.0 - t)))));
	} else {
		tmp = b * ((y + t) - 2.0);
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (b <= 1.62e+212)
		tmp = fma(Float64(y + Float64(t + -2.0)), b, Float64(x + fma(z, Float64(1.0 - y), Float64(a * Float64(1.0 - t)))));
	else
		tmp = Float64(b * Float64(Float64(y + t) - 2.0));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.62e+212], N[(N[(y + N[(t + -2.0), $MachinePrecision]), $MachinePrecision] * b + N[(x + N[(z * N[(1.0 - y), $MachinePrecision] + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.62 \cdot 10^{+212}:\\
\;\;\;\;\mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, 1 - y, a \cdot \left(1 - t\right)\right)\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(\left(y + t\right) - 2\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < 1.61999999999999994e212

    1. Initial program 95.2%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Step-by-step derivation
      1. +-commutative95.2%

        \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b + \left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
      2. fma-define97.8%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
      3. associate--l+97.8%

        \[\leadsto \mathsf{fma}\left(\color{blue}{y + \left(t - 2\right)}, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
      4. sub-neg97.8%

        \[\leadsto \mathsf{fma}\left(y + \color{blue}{\left(t + \left(-2\right)\right)}, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
      5. metadata-eval97.8%

        \[\leadsto \mathsf{fma}\left(y + \left(t + \color{blue}{-2}\right), b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
      6. sub-neg97.8%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, \color{blue}{\left(x + \left(-\left(y - 1\right) \cdot z\right)\right)} - \left(t - 1\right) \cdot a\right) \]
      7. associate--l+97.8%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, \color{blue}{x + \left(\left(-\left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)}\right) \]
      8. *-commutative97.8%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \left(\left(-\color{blue}{z \cdot \left(y - 1\right)}\right) - \left(t - 1\right) \cdot a\right)\right) \]
      9. distribute-rgt-neg-in97.8%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \left(\color{blue}{z \cdot \left(-\left(y - 1\right)\right)} - \left(t - 1\right) \cdot a\right)\right) \]
      10. fma-neg98.2%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \color{blue}{\mathsf{fma}\left(z, -\left(y - 1\right), -\left(t - 1\right) \cdot a\right)}\right) \]
      11. neg-sub098.2%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, \color{blue}{0 - \left(y - 1\right)}, -\left(t - 1\right) \cdot a\right)\right) \]
      12. sub-neg98.2%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, 0 - \color{blue}{\left(y + \left(-1\right)\right)}, -\left(t - 1\right) \cdot a\right)\right) \]
      13. +-commutative98.2%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, 0 - \color{blue}{\left(\left(-1\right) + y\right)}, -\left(t - 1\right) \cdot a\right)\right) \]
      14. associate--r+98.2%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, \color{blue}{\left(0 - \left(-1\right)\right) - y}, -\left(t - 1\right) \cdot a\right)\right) \]
      15. metadata-eval98.2%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, \left(0 - \color{blue}{-1}\right) - y, -\left(t - 1\right) \cdot a\right)\right) \]
      16. metadata-eval98.2%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, \color{blue}{1} - y, -\left(t - 1\right) \cdot a\right)\right) \]
      17. *-commutative98.2%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, 1 - y, -\color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
      18. distribute-rgt-neg-in98.2%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, 1 - y, \color{blue}{a \cdot \left(-\left(t - 1\right)\right)}\right)\right) \]
      19. neg-sub098.2%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, 1 - y, a \cdot \color{blue}{\left(0 - \left(t - 1\right)\right)}\right)\right) \]
      20. sub-neg98.2%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, 1 - y, a \cdot \left(0 - \color{blue}{\left(t + \left(-1\right)\right)}\right)\right)\right) \]
      21. +-commutative98.2%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, 1 - y, a \cdot \left(0 - \color{blue}{\left(\left(-1\right) + t\right)}\right)\right)\right) \]
      22. associate--r+98.2%

        \[\leadsto \mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, 1 - y, a \cdot \color{blue}{\left(\left(0 - \left(-1\right)\right) - t\right)}\right)\right) \]
    3. Simplified98.2%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, 1 - y, a \cdot \left(1 - t\right)\right)\right)} \]
    4. Add Preprocessing

    if 1.61999999999999994e212 < b

    1. Initial program 81.5%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 96.5%

      \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 1.62 \cdot 10^{+212}:\\ \;\;\;\;\mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, 1 - y, a \cdot \left(1 - t\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\left(y + t\right) - 2\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 97.6% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(\left(y + t\right) - 2\right) + \left(a \cdot \left(1 - t\right) - \left(z \cdot \left(y + -1\right) - x\right)\right)\\ \mathbf{if}\;t\_1 \leq \infty:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(b - z\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1
         (+ (* b (- (+ y t) 2.0)) (- (* a (- 1.0 t)) (- (* z (+ y -1.0)) x)))))
   (if (<= t_1 INFINITY) t_1 (* y (- b z)))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (b * ((y + t) - 2.0)) + ((a * (1.0 - t)) - ((z * (y + -1.0)) - x));
	double tmp;
	if (t_1 <= ((double) INFINITY)) {
		tmp = t_1;
	} else {
		tmp = y * (b - z);
	}
	return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (b * ((y + t) - 2.0)) + ((a * (1.0 - t)) - ((z * (y + -1.0)) - x));
	double tmp;
	if (t_1 <= Double.POSITIVE_INFINITY) {
		tmp = t_1;
	} else {
		tmp = y * (b - z);
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (b * ((y + t) - 2.0)) + ((a * (1.0 - t)) - ((z * (y + -1.0)) - x))
	tmp = 0
	if t_1 <= math.inf:
		tmp = t_1
	else:
		tmp = y * (b - z)
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(b * Float64(Float64(y + t) - 2.0)) + Float64(Float64(a * Float64(1.0 - t)) - Float64(Float64(z * Float64(y + -1.0)) - x)))
	tmp = 0.0
	if (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = Float64(y * Float64(b - z));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (b * ((y + t) - 2.0)) + ((a * (1.0 - t)) - ((z * (y + -1.0)) - x));
	tmp = 0.0;
	if (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = y * (b - z);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision] - N[(N[(z * N[(y + -1.0), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(\left(y + t\right) - 2\right) + \left(a \cdot \left(1 - t\right) - \left(z \cdot \left(y + -1\right) - x\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\

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


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

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing

    if +inf.0 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b))

    1. Initial program 0.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf 57.1%

      \[\leadsto \color{blue}{y \cdot \left(b - z\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification97.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \cdot \left(\left(y + t\right) - 2\right) + \left(a \cdot \left(1 - t\right) - \left(z \cdot \left(y + -1\right) - x\right)\right) \leq \infty:\\ \;\;\;\;b \cdot \left(\left(y + t\right) - 2\right) + \left(a \cdot \left(1 - t\right) - \left(z \cdot \left(y + -1\right) - x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(b - z\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 49.5% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(y - 2\right)\\ t_2 := t \cdot \left(b - a\right)\\ \mathbf{if}\;t \leq -5.2 \cdot 10^{+35}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -7.2 \cdot 10^{-144}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;t \leq -7.1 \cdot 10^{-261}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 5.7 \cdot 10^{-229}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;t \leq 1.5 \cdot 10^{-71}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 5.8 \cdot 10^{-64}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;t \leq 2.95 \cdot 10^{-46}:\\ \;\;\;\;y \cdot \left(-z\right)\\ \mathbf{elif}\;t \leq 3.3 \cdot 10^{+16}:\\ \;\;\;\;x + a\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* b (- y 2.0))) (t_2 (* t (- b a))))
   (if (<= t -5.2e+35)
     t_2
     (if (<= t -7.2e-144)
       (+ x a)
       (if (<= t -7.1e-261)
         t_1
         (if (<= t 5.7e-229)
           (+ x a)
           (if (<= t 1.5e-71)
             t_1
             (if (<= t 5.8e-64)
               (+ x a)
               (if (<= t 2.95e-46)
                 (* y (- z))
                 (if (<= t 3.3e+16) (+ x a) t_2))))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = b * (y - 2.0);
	double t_2 = t * (b - a);
	double tmp;
	if (t <= -5.2e+35) {
		tmp = t_2;
	} else if (t <= -7.2e-144) {
		tmp = x + a;
	} else if (t <= -7.1e-261) {
		tmp = t_1;
	} else if (t <= 5.7e-229) {
		tmp = x + a;
	} else if (t <= 1.5e-71) {
		tmp = t_1;
	} else if (t <= 5.8e-64) {
		tmp = x + a;
	} else if (t <= 2.95e-46) {
		tmp = y * -z;
	} else if (t <= 3.3e+16) {
		tmp = x + a;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = b * (y - 2.0d0)
    t_2 = t * (b - a)
    if (t <= (-5.2d+35)) then
        tmp = t_2
    else if (t <= (-7.2d-144)) then
        tmp = x + a
    else if (t <= (-7.1d-261)) then
        tmp = t_1
    else if (t <= 5.7d-229) then
        tmp = x + a
    else if (t <= 1.5d-71) then
        tmp = t_1
    else if (t <= 5.8d-64) then
        tmp = x + a
    else if (t <= 2.95d-46) then
        tmp = y * -z
    else if (t <= 3.3d+16) then
        tmp = x + a
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = b * (y - 2.0);
	double t_2 = t * (b - a);
	double tmp;
	if (t <= -5.2e+35) {
		tmp = t_2;
	} else if (t <= -7.2e-144) {
		tmp = x + a;
	} else if (t <= -7.1e-261) {
		tmp = t_1;
	} else if (t <= 5.7e-229) {
		tmp = x + a;
	} else if (t <= 1.5e-71) {
		tmp = t_1;
	} else if (t <= 5.8e-64) {
		tmp = x + a;
	} else if (t <= 2.95e-46) {
		tmp = y * -z;
	} else if (t <= 3.3e+16) {
		tmp = x + a;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = b * (y - 2.0)
	t_2 = t * (b - a)
	tmp = 0
	if t <= -5.2e+35:
		tmp = t_2
	elif t <= -7.2e-144:
		tmp = x + a
	elif t <= -7.1e-261:
		tmp = t_1
	elif t <= 5.7e-229:
		tmp = x + a
	elif t <= 1.5e-71:
		tmp = t_1
	elif t <= 5.8e-64:
		tmp = x + a
	elif t <= 2.95e-46:
		tmp = y * -z
	elif t <= 3.3e+16:
		tmp = x + a
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(b * Float64(y - 2.0))
	t_2 = Float64(t * Float64(b - a))
	tmp = 0.0
	if (t <= -5.2e+35)
		tmp = t_2;
	elseif (t <= -7.2e-144)
		tmp = Float64(x + a);
	elseif (t <= -7.1e-261)
		tmp = t_1;
	elseif (t <= 5.7e-229)
		tmp = Float64(x + a);
	elseif (t <= 1.5e-71)
		tmp = t_1;
	elseif (t <= 5.8e-64)
		tmp = Float64(x + a);
	elseif (t <= 2.95e-46)
		tmp = Float64(y * Float64(-z));
	elseif (t <= 3.3e+16)
		tmp = Float64(x + a);
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = b * (y - 2.0);
	t_2 = t * (b - a);
	tmp = 0.0;
	if (t <= -5.2e+35)
		tmp = t_2;
	elseif (t <= -7.2e-144)
		tmp = x + a;
	elseif (t <= -7.1e-261)
		tmp = t_1;
	elseif (t <= 5.7e-229)
		tmp = x + a;
	elseif (t <= 1.5e-71)
		tmp = t_1;
	elseif (t <= 5.8e-64)
		tmp = x + a;
	elseif (t <= 2.95e-46)
		tmp = y * -z;
	elseif (t <= 3.3e+16)
		tmp = x + a;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.2e+35], t$95$2, If[LessEqual[t, -7.2e-144], N[(x + a), $MachinePrecision], If[LessEqual[t, -7.1e-261], t$95$1, If[LessEqual[t, 5.7e-229], N[(x + a), $MachinePrecision], If[LessEqual[t, 1.5e-71], t$95$1, If[LessEqual[t, 5.8e-64], N[(x + a), $MachinePrecision], If[LessEqual[t, 2.95e-46], N[(y * (-z)), $MachinePrecision], If[LessEqual[t, 3.3e+16], N[(x + a), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(y - 2\right)\\
t_2 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -5.2 \cdot 10^{+35}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq -7.2 \cdot 10^{-144}:\\
\;\;\;\;x + a\\

\mathbf{elif}\;t \leq -7.1 \cdot 10^{-261}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 5.7 \cdot 10^{-229}:\\
\;\;\;\;x + a\\

\mathbf{elif}\;t \leq 1.5 \cdot 10^{-71}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 5.8 \cdot 10^{-64}:\\
\;\;\;\;x + a\\

\mathbf{elif}\;t \leq 2.95 \cdot 10^{-46}:\\
\;\;\;\;y \cdot \left(-z\right)\\

\mathbf{elif}\;t \leq 3.3 \cdot 10^{+16}:\\
\;\;\;\;x + a\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -5.20000000000000013e35 or 3.3e16 < t

    1. Initial program 91.6%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 71.2%

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

    if -5.20000000000000013e35 < t < -7.2000000000000001e-144 or -7.10000000000000021e-261 < t < 5.70000000000000023e-229 or 1.5000000000000001e-71 < t < 5.7999999999999998e-64 or 2.95e-46 < t < 3.3e16

    1. Initial program 97.4%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 76.2%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in b around 0 52.9%

      \[\leadsto \color{blue}{x - a \cdot \left(t - 1\right)} \]
    5. Taylor expanded in t around 0 48.7%

      \[\leadsto x - \color{blue}{-1 \cdot a} \]
    6. Step-by-step derivation
      1. neg-mul-148.7%

        \[\leadsto x - \color{blue}{\left(-a\right)} \]
    7. Simplified48.7%

      \[\leadsto x - \color{blue}{\left(-a\right)} \]

    if -7.2000000000000001e-144 < t < -7.10000000000000021e-261 or 5.70000000000000023e-229 < t < 1.5000000000000001e-71

    1. Initial program 92.3%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 44.9%

      \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
    4. Taylor expanded in t around 0 44.9%

      \[\leadsto \color{blue}{b \cdot \left(y - 2\right)} \]

    if 5.7999999999999998e-64 < t < 2.95e-46

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 86.0%

      \[\leadsto \color{blue}{z \cdot \left(1 - y\right)} \]
    4. Taylor expanded in y around inf 86.0%

      \[\leadsto \color{blue}{-1 \cdot \left(y \cdot z\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg86.0%

        \[\leadsto \color{blue}{-y \cdot z} \]
      2. distribute-lft-neg-out86.0%

        \[\leadsto \color{blue}{\left(-y\right) \cdot z} \]
      3. *-commutative86.0%

        \[\leadsto \color{blue}{z \cdot \left(-y\right)} \]
    6. Simplified86.0%

      \[\leadsto \color{blue}{z \cdot \left(-y\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification59.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5.2 \cdot 10^{+35}:\\ \;\;\;\;t \cdot \left(b - a\right)\\ \mathbf{elif}\;t \leq -7.2 \cdot 10^{-144}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;t \leq -7.1 \cdot 10^{-261}:\\ \;\;\;\;b \cdot \left(y - 2\right)\\ \mathbf{elif}\;t \leq 5.7 \cdot 10^{-229}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;t \leq 1.5 \cdot 10^{-71}:\\ \;\;\;\;b \cdot \left(y - 2\right)\\ \mathbf{elif}\;t \leq 5.8 \cdot 10^{-64}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;t \leq 2.95 \cdot 10^{-46}:\\ \;\;\;\;y \cdot \left(-z\right)\\ \mathbf{elif}\;t \leq 3.3 \cdot 10^{+16}:\\ \;\;\;\;x + a\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b - a\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 57.1% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(b - a\right)\\ \mathbf{if}\;t \leq -5 \cdot 10^{+35}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 5.6 \cdot 10^{-64}:\\ \;\;\;\;x + b \cdot \left(y - 2\right)\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{-35}:\\ \;\;\;\;y \cdot \left(b - z\right)\\ \mathbf{elif}\;t \leq 16000:\\ \;\;\;\;x + a \cdot \left(1 - t\right)\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{+17}:\\ \;\;\;\;z \cdot \left(\frac{x}{z} - y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* t (- b a))))
   (if (<= t -5e+35)
     t_1
     (if (<= t 5.6e-64)
       (+ x (* b (- y 2.0)))
       (if (<= t 1.8e-35)
         (* y (- b z))
         (if (<= t 16000.0)
           (+ x (* a (- 1.0 t)))
           (if (<= t 1.8e+17) (* z (- (/ x z) y)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = t * (b - a);
	double tmp;
	if (t <= -5e+35) {
		tmp = t_1;
	} else if (t <= 5.6e-64) {
		tmp = x + (b * (y - 2.0));
	} else if (t <= 1.8e-35) {
		tmp = y * (b - z);
	} else if (t <= 16000.0) {
		tmp = x + (a * (1.0 - t));
	} else if (t <= 1.8e+17) {
		tmp = z * ((x / z) - y);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = t * (b - a)
    if (t <= (-5d+35)) then
        tmp = t_1
    else if (t <= 5.6d-64) then
        tmp = x + (b * (y - 2.0d0))
    else if (t <= 1.8d-35) then
        tmp = y * (b - z)
    else if (t <= 16000.0d0) then
        tmp = x + (a * (1.0d0 - t))
    else if (t <= 1.8d+17) then
        tmp = z * ((x / z) - y)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = t * (b - a);
	double tmp;
	if (t <= -5e+35) {
		tmp = t_1;
	} else if (t <= 5.6e-64) {
		tmp = x + (b * (y - 2.0));
	} else if (t <= 1.8e-35) {
		tmp = y * (b - z);
	} else if (t <= 16000.0) {
		tmp = x + (a * (1.0 - t));
	} else if (t <= 1.8e+17) {
		tmp = z * ((x / z) - y);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = t * (b - a)
	tmp = 0
	if t <= -5e+35:
		tmp = t_1
	elif t <= 5.6e-64:
		tmp = x + (b * (y - 2.0))
	elif t <= 1.8e-35:
		tmp = y * (b - z)
	elif t <= 16000.0:
		tmp = x + (a * (1.0 - t))
	elif t <= 1.8e+17:
		tmp = z * ((x / z) - y)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(t * Float64(b - a))
	tmp = 0.0
	if (t <= -5e+35)
		tmp = t_1;
	elseif (t <= 5.6e-64)
		tmp = Float64(x + Float64(b * Float64(y - 2.0)));
	elseif (t <= 1.8e-35)
		tmp = Float64(y * Float64(b - z));
	elseif (t <= 16000.0)
		tmp = Float64(x + Float64(a * Float64(1.0 - t)));
	elseif (t <= 1.8e+17)
		tmp = Float64(z * Float64(Float64(x / z) - y));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = t * (b - a);
	tmp = 0.0;
	if (t <= -5e+35)
		tmp = t_1;
	elseif (t <= 5.6e-64)
		tmp = x + (b * (y - 2.0));
	elseif (t <= 1.8e-35)
		tmp = y * (b - z);
	elseif (t <= 16000.0)
		tmp = x + (a * (1.0 - t));
	elseif (t <= 1.8e+17)
		tmp = z * ((x / z) - y);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5e+35], t$95$1, If[LessEqual[t, 5.6e-64], N[(x + N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e-35], N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 16000.0], N[(x + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e+17], N[(z * N[(N[(x / z), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -5 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 5.6 \cdot 10^{-64}:\\
\;\;\;\;x + b \cdot \left(y - 2\right)\\

\mathbf{elif}\;t \leq 1.8 \cdot 10^{-35}:\\
\;\;\;\;y \cdot \left(b - z\right)\\

\mathbf{elif}\;t \leq 16000:\\
\;\;\;\;x + a \cdot \left(1 - t\right)\\

\mathbf{elif}\;t \leq 1.8 \cdot 10^{+17}:\\
\;\;\;\;z \cdot \left(\frac{x}{z} - y\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -5.00000000000000021e35 or 1.8e17 < t

    1. Initial program 91.6%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 71.2%

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

    if -5.00000000000000021e35 < t < 5.60000000000000008e-64

    1. Initial program 94.6%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 73.9%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in a around 0 59.5%

      \[\leadsto \color{blue}{x + b \cdot \left(\left(t + y\right) - 2\right)} \]
    5. Taylor expanded in t around 0 59.5%

      \[\leadsto x + \color{blue}{b \cdot \left(y - 2\right)} \]

    if 5.60000000000000008e-64 < t < 1.80000000000000009e-35

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf 73.2%

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

    if 1.80000000000000009e-35 < t < 16000

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 82.1%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in b around 0 63.3%

      \[\leadsto \color{blue}{x - a \cdot \left(t - 1\right)} \]

    if 16000 < t < 1.8e17

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 100.0%

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Taylor expanded in y around inf 76.5%

      \[\leadsto x - \color{blue}{y \cdot z} \]
    5. Taylor expanded in z around inf 76.5%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5 \cdot 10^{+35}:\\ \;\;\;\;t \cdot \left(b - a\right)\\ \mathbf{elif}\;t \leq 5.6 \cdot 10^{-64}:\\ \;\;\;\;x + b \cdot \left(y - 2\right)\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{-35}:\\ \;\;\;\;y \cdot \left(b - z\right)\\ \mathbf{elif}\;t \leq 16000:\\ \;\;\;\;x + a \cdot \left(1 - t\right)\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{+17}:\\ \;\;\;\;z \cdot \left(\frac{x}{z} - y\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b - a\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 51.5% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(b - z\right)\\ t_2 := t \cdot \left(b - a\right)\\ \mathbf{if}\;t \leq -1.05 \cdot 10^{+35}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -3.6 \cdot 10^{-151}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;t \leq -9 \cdot 10^{-304}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 8.5 \cdot 10^{-246}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;t \leq 1.55 \cdot 10^{+17}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* y (- b z))) (t_2 (* t (- b a))))
   (if (<= t -1.05e+35)
     t_2
     (if (<= t -3.6e-151)
       (+ x a)
       (if (<= t -9e-304)
         t_1
         (if (<= t 8.5e-246) (+ x a) (if (<= t 1.55e+17) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = y * (b - z);
	double t_2 = t * (b - a);
	double tmp;
	if (t <= -1.05e+35) {
		tmp = t_2;
	} else if (t <= -3.6e-151) {
		tmp = x + a;
	} else if (t <= -9e-304) {
		tmp = t_1;
	} else if (t <= 8.5e-246) {
		tmp = x + a;
	} else if (t <= 1.55e+17) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = y * (b - z)
    t_2 = t * (b - a)
    if (t <= (-1.05d+35)) then
        tmp = t_2
    else if (t <= (-3.6d-151)) then
        tmp = x + a
    else if (t <= (-9d-304)) then
        tmp = t_1
    else if (t <= 8.5d-246) then
        tmp = x + a
    else if (t <= 1.55d+17) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = y * (b - z);
	double t_2 = t * (b - a);
	double tmp;
	if (t <= -1.05e+35) {
		tmp = t_2;
	} else if (t <= -3.6e-151) {
		tmp = x + a;
	} else if (t <= -9e-304) {
		tmp = t_1;
	} else if (t <= 8.5e-246) {
		tmp = x + a;
	} else if (t <= 1.55e+17) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = y * (b - z)
	t_2 = t * (b - a)
	tmp = 0
	if t <= -1.05e+35:
		tmp = t_2
	elif t <= -3.6e-151:
		tmp = x + a
	elif t <= -9e-304:
		tmp = t_1
	elif t <= 8.5e-246:
		tmp = x + a
	elif t <= 1.55e+17:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(y * Float64(b - z))
	t_2 = Float64(t * Float64(b - a))
	tmp = 0.0
	if (t <= -1.05e+35)
		tmp = t_2;
	elseif (t <= -3.6e-151)
		tmp = Float64(x + a);
	elseif (t <= -9e-304)
		tmp = t_1;
	elseif (t <= 8.5e-246)
		tmp = Float64(x + a);
	elseif (t <= 1.55e+17)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = y * (b - z);
	t_2 = t * (b - a);
	tmp = 0.0;
	if (t <= -1.05e+35)
		tmp = t_2;
	elseif (t <= -3.6e-151)
		tmp = x + a;
	elseif (t <= -9e-304)
		tmp = t_1;
	elseif (t <= 8.5e-246)
		tmp = x + a;
	elseif (t <= 1.55e+17)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e+35], t$95$2, If[LessEqual[t, -3.6e-151], N[(x + a), $MachinePrecision], If[LessEqual[t, -9e-304], t$95$1, If[LessEqual[t, 8.5e-246], N[(x + a), $MachinePrecision], If[LessEqual[t, 1.55e+17], t$95$1, t$95$2]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y \cdot \left(b - z\right)\\
t_2 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+35}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq -3.6 \cdot 10^{-151}:\\
\;\;\;\;x + a\\

\mathbf{elif}\;t \leq -9 \cdot 10^{-304}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 8.5 \cdot 10^{-246}:\\
\;\;\;\;x + a\\

\mathbf{elif}\;t \leq 1.55 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -1.0499999999999999e35 or 1.55e17 < t

    1. Initial program 91.6%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 71.2%

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

    if -1.0499999999999999e35 < t < -3.60000000000000032e-151 or -8.9999999999999995e-304 < t < 8.4999999999999998e-246

    1. Initial program 97.8%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 78.9%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in b around 0 53.9%

      \[\leadsto \color{blue}{x - a \cdot \left(t - 1\right)} \]
    5. Taylor expanded in t around 0 50.1%

      \[\leadsto x - \color{blue}{-1 \cdot a} \]
    6. Step-by-step derivation
      1. neg-mul-150.1%

        \[\leadsto x - \color{blue}{\left(-a\right)} \]
    7. Simplified50.1%

      \[\leadsto x - \color{blue}{\left(-a\right)} \]

    if -3.60000000000000032e-151 < t < -8.9999999999999995e-304 or 8.4999999999999998e-246 < t < 1.55e17

    1. Initial program 94.5%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf 50.8%

      \[\leadsto \color{blue}{y \cdot \left(b - z\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification60.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.05 \cdot 10^{+35}:\\ \;\;\;\;t \cdot \left(b - a\right)\\ \mathbf{elif}\;t \leq -3.6 \cdot 10^{-151}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;t \leq -9 \cdot 10^{-304}:\\ \;\;\;\;y \cdot \left(b - z\right)\\ \mathbf{elif}\;t \leq 8.5 \cdot 10^{-246}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;t \leq 1.55 \cdot 10^{+17}:\\ \;\;\;\;y \cdot \left(b - z\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b - a\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 25.1% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(-a\right)\\ \mathbf{if}\;x \leq -8.6 \cdot 10^{+157}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq -2.4 \cdot 10^{-73}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 7.6 \cdot 10^{-252}:\\ \;\;\;\;b \cdot y\\ \mathbf{elif}\;x \leq 3.6 \cdot 10^{-186}:\\ \;\;\;\;a\\ \mathbf{elif}\;x \leq 5.8 \cdot 10^{+140}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* t (- a))))
   (if (<= x -8.6e+157)
     x
     (if (<= x -2.4e-73)
       t_1
       (if (<= x 7.6e-252)
         (* b y)
         (if (<= x 3.6e-186) a (if (<= x 5.8e+140) t_1 x)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = t * -a;
	double tmp;
	if (x <= -8.6e+157) {
		tmp = x;
	} else if (x <= -2.4e-73) {
		tmp = t_1;
	} else if (x <= 7.6e-252) {
		tmp = b * y;
	} else if (x <= 3.6e-186) {
		tmp = a;
	} else if (x <= 5.8e+140) {
		tmp = t_1;
	} else {
		tmp = x;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = t * -a
    if (x <= (-8.6d+157)) then
        tmp = x
    else if (x <= (-2.4d-73)) then
        tmp = t_1
    else if (x <= 7.6d-252) then
        tmp = b * y
    else if (x <= 3.6d-186) then
        tmp = a
    else if (x <= 5.8d+140) then
        tmp = t_1
    else
        tmp = x
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = t * -a;
	double tmp;
	if (x <= -8.6e+157) {
		tmp = x;
	} else if (x <= -2.4e-73) {
		tmp = t_1;
	} else if (x <= 7.6e-252) {
		tmp = b * y;
	} else if (x <= 3.6e-186) {
		tmp = a;
	} else if (x <= 5.8e+140) {
		tmp = t_1;
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = t * -a
	tmp = 0
	if x <= -8.6e+157:
		tmp = x
	elif x <= -2.4e-73:
		tmp = t_1
	elif x <= 7.6e-252:
		tmp = b * y
	elif x <= 3.6e-186:
		tmp = a
	elif x <= 5.8e+140:
		tmp = t_1
	else:
		tmp = x
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(t * Float64(-a))
	tmp = 0.0
	if (x <= -8.6e+157)
		tmp = x;
	elseif (x <= -2.4e-73)
		tmp = t_1;
	elseif (x <= 7.6e-252)
		tmp = Float64(b * y);
	elseif (x <= 3.6e-186)
		tmp = a;
	elseif (x <= 5.8e+140)
		tmp = t_1;
	else
		tmp = x;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = t * -a;
	tmp = 0.0;
	if (x <= -8.6e+157)
		tmp = x;
	elseif (x <= -2.4e-73)
		tmp = t_1;
	elseif (x <= 7.6e-252)
		tmp = b * y;
	elseif (x <= 3.6e-186)
		tmp = a;
	elseif (x <= 5.8e+140)
		tmp = t_1;
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * (-a)), $MachinePrecision]}, If[LessEqual[x, -8.6e+157], x, If[LessEqual[x, -2.4e-73], t$95$1, If[LessEqual[x, 7.6e-252], N[(b * y), $MachinePrecision], If[LessEqual[x, 3.6e-186], a, If[LessEqual[x, 5.8e+140], t$95$1, x]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(-a\right)\\
\mathbf{if}\;x \leq -8.6 \cdot 10^{+157}:\\
\;\;\;\;x\\

\mathbf{elif}\;x \leq -2.4 \cdot 10^{-73}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq 7.6 \cdot 10^{-252}:\\
\;\;\;\;b \cdot y\\

\mathbf{elif}\;x \leq 3.6 \cdot 10^{-186}:\\
\;\;\;\;a\\

\mathbf{elif}\;x \leq 5.8 \cdot 10^{+140}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -8.6e157 or 5.7999999999999998e140 < x

    1. Initial program 97.3%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf 52.8%

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

    if -8.6e157 < x < -2.40000000000000006e-73 or 3.5999999999999998e-186 < x < 5.7999999999999998e140

    1. Initial program 93.4%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 70.6%

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Taylor expanded in t around inf 32.7%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot t\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg32.7%

        \[\leadsto \color{blue}{-a \cdot t} \]
      2. *-commutative32.7%

        \[\leadsto -\color{blue}{t \cdot a} \]
      3. distribute-rgt-neg-in32.7%

        \[\leadsto \color{blue}{t \cdot \left(-a\right)} \]
    6. Simplified32.7%

      \[\leadsto \color{blue}{t \cdot \left(-a\right)} \]

    if -2.40000000000000006e-73 < x < 7.6e-252

    1. Initial program 87.7%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 72.8%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in y around inf 26.0%

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

    if 7.6e-252 < x < 3.5999999999999998e-186

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf 39.7%

      \[\leadsto \color{blue}{a \cdot \left(1 - t\right)} \]
    4. Taylor expanded in t around 0 34.4%

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

Alternative 7: 69.9% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(z + a \cdot \left(1 - t\right)\right)\\ t_2 := x + b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{if}\;b \leq -8 \cdot 10^{-15}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;b \leq -1.5 \cdot 10^{-207}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 9.6 \cdot 10^{-294}:\\ \;\;\;\;z \cdot \left(1 - y\right) - t \cdot a\\ \mathbf{elif}\;b \leq 8 \cdot 10^{-25}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (+ x (+ z (* a (- 1.0 t))))) (t_2 (+ x (* b (- (+ y t) 2.0)))))
   (if (<= b -8e-15)
     t_2
     (if (<= b -1.5e-207)
       t_1
       (if (<= b 9.6e-294)
         (- (* z (- 1.0 y)) (* t a))
         (if (<= b 8e-25) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x + (z + (a * (1.0 - t)));
	double t_2 = x + (b * ((y + t) - 2.0));
	double tmp;
	if (b <= -8e-15) {
		tmp = t_2;
	} else if (b <= -1.5e-207) {
		tmp = t_1;
	} else if (b <= 9.6e-294) {
		tmp = (z * (1.0 - y)) - (t * a);
	} else if (b <= 8e-25) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = x + (z + (a * (1.0d0 - t)))
    t_2 = x + (b * ((y + t) - 2.0d0))
    if (b <= (-8d-15)) then
        tmp = t_2
    else if (b <= (-1.5d-207)) then
        tmp = t_1
    else if (b <= 9.6d-294) then
        tmp = (z * (1.0d0 - y)) - (t * a)
    else if (b <= 8d-25) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x + (z + (a * (1.0 - t)));
	double t_2 = x + (b * ((y + t) - 2.0));
	double tmp;
	if (b <= -8e-15) {
		tmp = t_2;
	} else if (b <= -1.5e-207) {
		tmp = t_1;
	} else if (b <= 9.6e-294) {
		tmp = (z * (1.0 - y)) - (t * a);
	} else if (b <= 8e-25) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = x + (z + (a * (1.0 - t)))
	t_2 = x + (b * ((y + t) - 2.0))
	tmp = 0
	if b <= -8e-15:
		tmp = t_2
	elif b <= -1.5e-207:
		tmp = t_1
	elif b <= 9.6e-294:
		tmp = (z * (1.0 - y)) - (t * a)
	elif b <= 8e-25:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(x + Float64(z + Float64(a * Float64(1.0 - t))))
	t_2 = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0)))
	tmp = 0.0
	if (b <= -8e-15)
		tmp = t_2;
	elseif (b <= -1.5e-207)
		tmp = t_1;
	elseif (b <= 9.6e-294)
		tmp = Float64(Float64(z * Float64(1.0 - y)) - Float64(t * a));
	elseif (b <= 8e-25)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = x + (z + (a * (1.0 - t)));
	t_2 = x + (b * ((y + t) - 2.0));
	tmp = 0.0;
	if (b <= -8e-15)
		tmp = t_2;
	elseif (b <= -1.5e-207)
		tmp = t_1;
	elseif (b <= 9.6e-294)
		tmp = (z * (1.0 - y)) - (t * a);
	elseif (b <= 8e-25)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(z + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8e-15], t$95$2, If[LessEqual[b, -1.5e-207], t$95$1, If[LessEqual[b, 9.6e-294], N[(N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e-25], t$95$1, t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x + \left(z + a \cdot \left(1 - t\right)\right)\\
t_2 := x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -8 \cdot 10^{-15}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;b \leq -1.5 \cdot 10^{-207}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;b \leq 9.6 \cdot 10^{-294}:\\
\;\;\;\;z \cdot \left(1 - y\right) - t \cdot a\\

\mathbf{elif}\;b \leq 8 \cdot 10^{-25}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -8.0000000000000006e-15 or 8.00000000000000031e-25 < b

    1. Initial program 87.4%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 85.3%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in a around 0 76.2%

      \[\leadsto \color{blue}{x + b \cdot \left(\left(t + y\right) - 2\right)} \]

    if -8.0000000000000006e-15 < b < -1.5e-207 or 9.59999999999999988e-294 < b < 8.00000000000000031e-25

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 92.4%

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Taylor expanded in y around 0 71.1%

      \[\leadsto x - \color{blue}{\left(-1 \cdot z + a \cdot \left(t - 1\right)\right)} \]
    5. Step-by-step derivation
      1. +-commutative71.1%

        \[\leadsto x - \color{blue}{\left(a \cdot \left(t - 1\right) + -1 \cdot z\right)} \]
      2. sub-neg71.1%

        \[\leadsto x - \left(a \cdot \color{blue}{\left(t + \left(-1\right)\right)} + -1 \cdot z\right) \]
      3. metadata-eval71.1%

        \[\leadsto x - \left(a \cdot \left(t + \color{blue}{-1}\right) + -1 \cdot z\right) \]
      4. neg-mul-171.1%

        \[\leadsto x - \left(a \cdot \left(t + -1\right) + \color{blue}{\left(-z\right)}\right) \]
      5. unsub-neg71.1%

        \[\leadsto x - \color{blue}{\left(a \cdot \left(t + -1\right) - z\right)} \]
    6. Simplified71.1%

      \[\leadsto x - \color{blue}{\left(a \cdot \left(t + -1\right) - z\right)} \]

    if -1.5e-207 < b < 9.59999999999999988e-294

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 95.1%

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Taylor expanded in t around inf 85.4%

      \[\leadsto x - \left(\color{blue}{a \cdot t} + z \cdot \left(y - 1\right)\right) \]
    5. Step-by-step derivation
      1. *-commutative85.4%

        \[\leadsto x - \left(\color{blue}{t \cdot a} + z \cdot \left(y - 1\right)\right) \]
    6. Simplified85.4%

      \[\leadsto x - \left(\color{blue}{t \cdot a} + z \cdot \left(y - 1\right)\right) \]
    7. Taylor expanded in x around 0 80.4%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot t + z \cdot \left(y - 1\right)\right)} \]
    8. Step-by-step derivation
      1. mul-1-neg80.4%

        \[\leadsto \color{blue}{-\left(a \cdot t + z \cdot \left(y - 1\right)\right)} \]
      2. sub-neg80.4%

        \[\leadsto -\left(a \cdot t + z \cdot \color{blue}{\left(y + \left(-1\right)\right)}\right) \]
      3. metadata-eval80.4%

        \[\leadsto -\left(a \cdot t + z \cdot \left(y + \color{blue}{-1}\right)\right) \]
      4. *-commutative80.4%

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

        \[\leadsto -\color{blue}{\left(z \cdot \left(y + -1\right) + t \cdot a\right)} \]
      6. distribute-neg-in80.4%

        \[\leadsto \color{blue}{\left(-z \cdot \left(y + -1\right)\right) + \left(-t \cdot a\right)} \]
      7. sub-neg80.4%

        \[\leadsto \color{blue}{\left(-z \cdot \left(y + -1\right)\right) - t \cdot a} \]
      8. distribute-rgt-neg-in80.4%

        \[\leadsto \color{blue}{z \cdot \left(-\left(y + -1\right)\right)} - t \cdot a \]
      9. *-commutative80.4%

        \[\leadsto \color{blue}{\left(-\left(y + -1\right)\right) \cdot z} - t \cdot a \]
      10. +-commutative80.4%

        \[\leadsto \left(-\color{blue}{\left(-1 + y\right)}\right) \cdot z - t \cdot a \]
      11. distribute-neg-in80.4%

        \[\leadsto \color{blue}{\left(\left(--1\right) + \left(-y\right)\right)} \cdot z - t \cdot a \]
      12. metadata-eval80.4%

        \[\leadsto \left(\color{blue}{1} + \left(-y\right)\right) \cdot z - t \cdot a \]
      13. sub-neg80.4%

        \[\leadsto \color{blue}{\left(1 - y\right)} \cdot z - t \cdot a \]
      14. *-commutative80.4%

        \[\leadsto \color{blue}{z \cdot \left(1 - y\right)} - t \cdot a \]
      15. *-commutative80.4%

        \[\leadsto z \cdot \left(1 - y\right) - \color{blue}{a \cdot t} \]
    9. Simplified80.4%

      \[\leadsto \color{blue}{z \cdot \left(1 - y\right) - a \cdot t} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification74.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -8 \cdot 10^{-15}:\\ \;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{elif}\;b \leq -1.5 \cdot 10^{-207}:\\ \;\;\;\;x + \left(z + a \cdot \left(1 - t\right)\right)\\ \mathbf{elif}\;b \leq 9.6 \cdot 10^{-294}:\\ \;\;\;\;z \cdot \left(1 - y\right) - t \cdot a\\ \mathbf{elif}\;b \leq 8 \cdot 10^{-25}:\\ \;\;\;\;x + \left(z + a \cdot \left(1 - t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 71.0% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(z + a \cdot \left(1 - t\right)\right)\\ t_2 := x + b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{if}\;b \leq -9 \cdot 10^{-15}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;b \leq -2 \cdot 10^{-297}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 8.5 \cdot 10^{-294}:\\ \;\;\;\;x - y \cdot z\\ \mathbf{elif}\;b \leq 3.7 \cdot 10^{-25}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (+ x (+ z (* a (- 1.0 t))))) (t_2 (+ x (* b (- (+ y t) 2.0)))))
   (if (<= b -9e-15)
     t_2
     (if (<= b -2e-297)
       t_1
       (if (<= b 8.5e-294) (- x (* y z)) (if (<= b 3.7e-25) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x + (z + (a * (1.0 - t)));
	double t_2 = x + (b * ((y + t) - 2.0));
	double tmp;
	if (b <= -9e-15) {
		tmp = t_2;
	} else if (b <= -2e-297) {
		tmp = t_1;
	} else if (b <= 8.5e-294) {
		tmp = x - (y * z);
	} else if (b <= 3.7e-25) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = x + (z + (a * (1.0d0 - t)))
    t_2 = x + (b * ((y + t) - 2.0d0))
    if (b <= (-9d-15)) then
        tmp = t_2
    else if (b <= (-2d-297)) then
        tmp = t_1
    else if (b <= 8.5d-294) then
        tmp = x - (y * z)
    else if (b <= 3.7d-25) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x + (z + (a * (1.0 - t)));
	double t_2 = x + (b * ((y + t) - 2.0));
	double tmp;
	if (b <= -9e-15) {
		tmp = t_2;
	} else if (b <= -2e-297) {
		tmp = t_1;
	} else if (b <= 8.5e-294) {
		tmp = x - (y * z);
	} else if (b <= 3.7e-25) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = x + (z + (a * (1.0 - t)))
	t_2 = x + (b * ((y + t) - 2.0))
	tmp = 0
	if b <= -9e-15:
		tmp = t_2
	elif b <= -2e-297:
		tmp = t_1
	elif b <= 8.5e-294:
		tmp = x - (y * z)
	elif b <= 3.7e-25:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(x + Float64(z + Float64(a * Float64(1.0 - t))))
	t_2 = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0)))
	tmp = 0.0
	if (b <= -9e-15)
		tmp = t_2;
	elseif (b <= -2e-297)
		tmp = t_1;
	elseif (b <= 8.5e-294)
		tmp = Float64(x - Float64(y * z));
	elseif (b <= 3.7e-25)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = x + (z + (a * (1.0 - t)));
	t_2 = x + (b * ((y + t) - 2.0));
	tmp = 0.0;
	if (b <= -9e-15)
		tmp = t_2;
	elseif (b <= -2e-297)
		tmp = t_1;
	elseif (b <= 8.5e-294)
		tmp = x - (y * z);
	elseif (b <= 3.7e-25)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(z + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9e-15], t$95$2, If[LessEqual[b, -2e-297], t$95$1, If[LessEqual[b, 8.5e-294], N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e-25], t$95$1, t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x + \left(z + a \cdot \left(1 - t\right)\right)\\
t_2 := x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -9 \cdot 10^{-15}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;b \leq -2 \cdot 10^{-297}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;b \leq 8.5 \cdot 10^{-294}:\\
\;\;\;\;x - y \cdot z\\

\mathbf{elif}\;b \leq 3.7 \cdot 10^{-25}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -8.9999999999999995e-15 or 3.70000000000000009e-25 < b

    1. Initial program 87.4%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 85.3%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in a around 0 76.2%

      \[\leadsto \color{blue}{x + b \cdot \left(\left(t + y\right) - 2\right)} \]

    if -8.9999999999999995e-15 < b < -2.00000000000000008e-297 or 8.4999999999999999e-294 < b < 3.70000000000000009e-25

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 92.5%

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Taylor expanded in y around 0 70.4%

      \[\leadsto x - \color{blue}{\left(-1 \cdot z + a \cdot \left(t - 1\right)\right)} \]
    5. Step-by-step derivation
      1. +-commutative70.4%

        \[\leadsto x - \color{blue}{\left(a \cdot \left(t - 1\right) + -1 \cdot z\right)} \]
      2. sub-neg70.4%

        \[\leadsto x - \left(a \cdot \color{blue}{\left(t + \left(-1\right)\right)} + -1 \cdot z\right) \]
      3. metadata-eval70.4%

        \[\leadsto x - \left(a \cdot \left(t + \color{blue}{-1}\right) + -1 \cdot z\right) \]
      4. neg-mul-170.4%

        \[\leadsto x - \left(a \cdot \left(t + -1\right) + \color{blue}{\left(-z\right)}\right) \]
      5. unsub-neg70.4%

        \[\leadsto x - \color{blue}{\left(a \cdot \left(t + -1\right) - z\right)} \]
    6. Simplified70.4%

      \[\leadsto x - \color{blue}{\left(a \cdot \left(t + -1\right) - z\right)} \]

    if -2.00000000000000008e-297 < b < 8.4999999999999999e-294

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 100.0%

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Taylor expanded in y around inf 97.7%

      \[\leadsto x - \color{blue}{y \cdot z} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification73.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -9 \cdot 10^{-15}:\\ \;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{elif}\;b \leq -2 \cdot 10^{-297}:\\ \;\;\;\;x + \left(z + a \cdot \left(1 - t\right)\right)\\ \mathbf{elif}\;b \leq 8.5 \cdot 10^{-294}:\\ \;\;\;\;x - y \cdot z\\ \mathbf{elif}\;b \leq 3.7 \cdot 10^{-25}:\\ \;\;\;\;x + \left(z + a \cdot \left(1 - t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 60.8% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + b \cdot \left(\left(y + t\right) - 2\right)\\ t_2 := x + a \cdot \left(1 - t\right)\\ \mathbf{if}\;a \leq -1.16 \cdot 10^{+128}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq -1.05 \cdot 10^{-60}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -7.5 \cdot 10^{-125}:\\ \;\;\;\;z \cdot \left(\frac{x}{z} - y\right)\\ \mathbf{elif}\;a \leq 7.8 \cdot 10^{+147}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (+ x (* b (- (+ y t) 2.0)))) (t_2 (+ x (* a (- 1.0 t)))))
   (if (<= a -1.16e+128)
     t_2
     (if (<= a -1.05e-60)
       t_1
       (if (<= a -7.5e-125)
         (* z (- (/ x z) y))
         (if (<= a 7.8e+147) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x + (b * ((y + t) - 2.0));
	double t_2 = x + (a * (1.0 - t));
	double tmp;
	if (a <= -1.16e+128) {
		tmp = t_2;
	} else if (a <= -1.05e-60) {
		tmp = t_1;
	} else if (a <= -7.5e-125) {
		tmp = z * ((x / z) - y);
	} else if (a <= 7.8e+147) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = x + (b * ((y + t) - 2.0d0))
    t_2 = x + (a * (1.0d0 - t))
    if (a <= (-1.16d+128)) then
        tmp = t_2
    else if (a <= (-1.05d-60)) then
        tmp = t_1
    else if (a <= (-7.5d-125)) then
        tmp = z * ((x / z) - y)
    else if (a <= 7.8d+147) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x + (b * ((y + t) - 2.0));
	double t_2 = x + (a * (1.0 - t));
	double tmp;
	if (a <= -1.16e+128) {
		tmp = t_2;
	} else if (a <= -1.05e-60) {
		tmp = t_1;
	} else if (a <= -7.5e-125) {
		tmp = z * ((x / z) - y);
	} else if (a <= 7.8e+147) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = x + (b * ((y + t) - 2.0))
	t_2 = x + (a * (1.0 - t))
	tmp = 0
	if a <= -1.16e+128:
		tmp = t_2
	elif a <= -1.05e-60:
		tmp = t_1
	elif a <= -7.5e-125:
		tmp = z * ((x / z) - y)
	elif a <= 7.8e+147:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0)))
	t_2 = Float64(x + Float64(a * Float64(1.0 - t)))
	tmp = 0.0
	if (a <= -1.16e+128)
		tmp = t_2;
	elseif (a <= -1.05e-60)
		tmp = t_1;
	elseif (a <= -7.5e-125)
		tmp = Float64(z * Float64(Float64(x / z) - y));
	elseif (a <= 7.8e+147)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = x + (b * ((y + t) - 2.0));
	t_2 = x + (a * (1.0 - t));
	tmp = 0.0;
	if (a <= -1.16e+128)
		tmp = t_2;
	elseif (a <= -1.05e-60)
		tmp = t_1;
	elseif (a <= -7.5e-125)
		tmp = z * ((x / z) - y);
	elseif (a <= 7.8e+147)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.16e+128], t$95$2, If[LessEqual[a, -1.05e-60], t$95$1, If[LessEqual[a, -7.5e-125], N[(z * N[(N[(x / z), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.8e+147], t$95$1, t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x + b \cdot \left(\left(y + t\right) - 2\right)\\
t_2 := x + a \cdot \left(1 - t\right)\\
\mathbf{if}\;a \leq -1.16 \cdot 10^{+128}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;a \leq -1.05 \cdot 10^{-60}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq -7.5 \cdot 10^{-125}:\\
\;\;\;\;z \cdot \left(\frac{x}{z} - y\right)\\

\mathbf{elif}\;a \leq 7.8 \cdot 10^{+147}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -1.1600000000000001e128 or 7.80000000000000033e147 < a

    1. Initial program 92.2%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 77.4%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in b around 0 70.1%

      \[\leadsto \color{blue}{x - a \cdot \left(t - 1\right)} \]

    if -1.1600000000000001e128 < a < -1.04999999999999996e-60 or -7.5e-125 < a < 7.80000000000000033e147

    1. Initial program 95.1%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 76.7%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in a around 0 70.0%

      \[\leadsto \color{blue}{x + b \cdot \left(\left(t + y\right) - 2\right)} \]

    if -1.04999999999999996e-60 < a < -7.5e-125

    1. Initial program 87.5%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 87.5%

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Taylor expanded in y around inf 54.5%

      \[\leadsto x - \color{blue}{y \cdot z} \]
    5. Taylor expanded in z around inf 60.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.16 \cdot 10^{+128}:\\ \;\;\;\;x + a \cdot \left(1 - t\right)\\ \mathbf{elif}\;a \leq -1.05 \cdot 10^{-60}:\\ \;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{elif}\;a \leq -7.5 \cdot 10^{-125}:\\ \;\;\;\;z \cdot \left(\frac{x}{z} - y\right)\\ \mathbf{elif}\;a \leq 7.8 \cdot 10^{+147}:\\ \;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{else}:\\ \;\;\;\;x + a \cdot \left(1 - t\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 49.9% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(b - z\right)\\ \mathbf{if}\;y \leq -2.6 \cdot 10^{+126}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -6.2 \cdot 10^{+57}:\\ \;\;\;\;x - t \cdot a\\ \mathbf{elif}\;y \leq -1.6 \cdot 10^{+37} \lor \neg \left(y \leq 1.6 \cdot 10^{+32}\right):\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;x + b \cdot t\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* y (- b z))))
   (if (<= y -2.6e+126)
     t_1
     (if (<= y -6.2e+57)
       (- x (* t a))
       (if (or (<= y -1.6e+37) (not (<= y 1.6e+32))) t_1 (+ x (* b t)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = y * (b - z);
	double tmp;
	if (y <= -2.6e+126) {
		tmp = t_1;
	} else if (y <= -6.2e+57) {
		tmp = x - (t * a);
	} else if ((y <= -1.6e+37) || !(y <= 1.6e+32)) {
		tmp = t_1;
	} else {
		tmp = x + (b * t);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = y * (b - z)
    if (y <= (-2.6d+126)) then
        tmp = t_1
    else if (y <= (-6.2d+57)) then
        tmp = x - (t * a)
    else if ((y <= (-1.6d+37)) .or. (.not. (y <= 1.6d+32))) then
        tmp = t_1
    else
        tmp = x + (b * t)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = y * (b - z);
	double tmp;
	if (y <= -2.6e+126) {
		tmp = t_1;
	} else if (y <= -6.2e+57) {
		tmp = x - (t * a);
	} else if ((y <= -1.6e+37) || !(y <= 1.6e+32)) {
		tmp = t_1;
	} else {
		tmp = x + (b * t);
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = y * (b - z)
	tmp = 0
	if y <= -2.6e+126:
		tmp = t_1
	elif y <= -6.2e+57:
		tmp = x - (t * a)
	elif (y <= -1.6e+37) or not (y <= 1.6e+32):
		tmp = t_1
	else:
		tmp = x + (b * t)
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(y * Float64(b - z))
	tmp = 0.0
	if (y <= -2.6e+126)
		tmp = t_1;
	elseif (y <= -6.2e+57)
		tmp = Float64(x - Float64(t * a));
	elseif ((y <= -1.6e+37) || !(y <= 1.6e+32))
		tmp = t_1;
	else
		tmp = Float64(x + Float64(b * t));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = y * (b - z);
	tmp = 0.0;
	if (y <= -2.6e+126)
		tmp = t_1;
	elseif (y <= -6.2e+57)
		tmp = x - (t * a);
	elseif ((y <= -1.6e+37) || ~((y <= 1.6e+32)))
		tmp = t_1;
	else
		tmp = x + (b * t);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.6e+126], t$95$1, If[LessEqual[y, -6.2e+57], N[(x - N[(t * a), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -1.6e+37], N[Not[LessEqual[y, 1.6e+32]], $MachinePrecision]], t$95$1, N[(x + N[(b * t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y \cdot \left(b - z\right)\\
\mathbf{if}\;y \leq -2.6 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq -6.2 \cdot 10^{+57}:\\
\;\;\;\;x - t \cdot a\\

\mathbf{elif}\;y \leq -1.6 \cdot 10^{+37} \lor \neg \left(y \leq 1.6 \cdot 10^{+32}\right):\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;x + b \cdot t\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -2.6e126 or -6.20000000000000026e57 < y < -1.60000000000000007e37 or 1.5999999999999999e32 < y

    1. Initial program 88.7%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf 75.0%

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

    if -2.6e126 < y < -6.20000000000000026e57

    1. Initial program 92.9%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 86.1%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in b around 0 71.4%

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

      \[\leadsto x - \color{blue}{a \cdot t} \]
    6. Step-by-step derivation
      1. *-commutative65.2%

        \[\leadsto x - \left(\color{blue}{t \cdot a} + z \cdot \left(y - 1\right)\right) \]
    7. Simplified58.4%

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

    if -1.60000000000000007e37 < y < 1.5999999999999999e32

    1. Initial program 97.2%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 85.6%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in a around 0 61.5%

      \[\leadsto \color{blue}{x + b \cdot \left(\left(t + y\right) - 2\right)} \]
    5. Taylor expanded in t around inf 48.7%

      \[\leadsto x + \color{blue}{b \cdot t} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification59.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.6 \cdot 10^{+126}:\\ \;\;\;\;y \cdot \left(b - z\right)\\ \mathbf{elif}\;y \leq -6.2 \cdot 10^{+57}:\\ \;\;\;\;x - t \cdot a\\ \mathbf{elif}\;y \leq -1.6 \cdot 10^{+37} \lor \neg \left(y \leq 1.6 \cdot 10^{+32}\right):\\ \;\;\;\;y \cdot \left(b - z\right)\\ \mathbf{else}:\\ \;\;\;\;x + b \cdot t\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 51.9% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x - y \cdot z\\ t_2 := t \cdot \left(b - a\right)\\ \mathbf{if}\;t \leq -10200:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq 4 \cdot 10^{-229}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 7.8 \cdot 10^{-132}:\\ \;\;\;\;y \cdot \left(b - z\right)\\ \mathbf{elif}\;t \leq 1.08 \cdot 10^{+21}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (- x (* y z))) (t_2 (* t (- b a))))
   (if (<= t -10200.0)
     t_2
     (if (<= t 4e-229)
       t_1
       (if (<= t 7.8e-132) (* y (- b z)) (if (<= t 1.08e+21) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x - (y * z);
	double t_2 = t * (b - a);
	double tmp;
	if (t <= -10200.0) {
		tmp = t_2;
	} else if (t <= 4e-229) {
		tmp = t_1;
	} else if (t <= 7.8e-132) {
		tmp = y * (b - z);
	} else if (t <= 1.08e+21) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = x - (y * z)
    t_2 = t * (b - a)
    if (t <= (-10200.0d0)) then
        tmp = t_2
    else if (t <= 4d-229) then
        tmp = t_1
    else if (t <= 7.8d-132) then
        tmp = y * (b - z)
    else if (t <= 1.08d+21) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x - (y * z);
	double t_2 = t * (b - a);
	double tmp;
	if (t <= -10200.0) {
		tmp = t_2;
	} else if (t <= 4e-229) {
		tmp = t_1;
	} else if (t <= 7.8e-132) {
		tmp = y * (b - z);
	} else if (t <= 1.08e+21) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = x - (y * z)
	t_2 = t * (b - a)
	tmp = 0
	if t <= -10200.0:
		tmp = t_2
	elif t <= 4e-229:
		tmp = t_1
	elif t <= 7.8e-132:
		tmp = y * (b - z)
	elif t <= 1.08e+21:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(x - Float64(y * z))
	t_2 = Float64(t * Float64(b - a))
	tmp = 0.0
	if (t <= -10200.0)
		tmp = t_2;
	elseif (t <= 4e-229)
		tmp = t_1;
	elseif (t <= 7.8e-132)
		tmp = Float64(y * Float64(b - z));
	elseif (t <= 1.08e+21)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = x - (y * z);
	t_2 = t * (b - a);
	tmp = 0.0;
	if (t <= -10200.0)
		tmp = t_2;
	elseif (t <= 4e-229)
		tmp = t_1;
	elseif (t <= 7.8e-132)
		tmp = y * (b - z);
	elseif (t <= 1.08e+21)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -10200.0], t$95$2, If[LessEqual[t, 4e-229], t$95$1, If[LessEqual[t, 7.8e-132], N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.08e+21], t$95$1, t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x - y \cdot z\\
t_2 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -10200:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq 4 \cdot 10^{-229}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 7.8 \cdot 10^{-132}:\\
\;\;\;\;y \cdot \left(b - z\right)\\

\mathbf{elif}\;t \leq 1.08 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -10200 or 1.08e21 < t

    1. Initial program 91.9%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 69.3%

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

    if -10200 < t < 4.00000000000000028e-229 or 7.79999999999999964e-132 < t < 1.08e21

    1. Initial program 95.7%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 74.0%

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Taylor expanded in y around inf 50.9%

      \[\leadsto x - \color{blue}{y \cdot z} \]

    if 4.00000000000000028e-229 < t < 7.79999999999999964e-132

    1. Initial program 92.9%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf 64.4%

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

Alternative 12: 34.5% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(1 - t\right)\\ \mathbf{if}\;x \leq -3.9 \cdot 10^{+158}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;x \leq -1.22 \cdot 10^{-73}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 5 \cdot 10^{-300}:\\ \;\;\;\;b \cdot \left(y - 2\right)\\ \mathbf{elif}\;x \leq 1.4 \cdot 10^{+140}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;x + a\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* a (- 1.0 t))))
   (if (<= x -3.9e+158)
     (+ x a)
     (if (<= x -1.22e-73)
       t_1
       (if (<= x 5e-300) (* b (- y 2.0)) (if (<= x 1.4e+140) t_1 (+ x a)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = a * (1.0 - t);
	double tmp;
	if (x <= -3.9e+158) {
		tmp = x + a;
	} else if (x <= -1.22e-73) {
		tmp = t_1;
	} else if (x <= 5e-300) {
		tmp = b * (y - 2.0);
	} else if (x <= 1.4e+140) {
		tmp = t_1;
	} else {
		tmp = x + a;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = a * (1.0d0 - t)
    if (x <= (-3.9d+158)) then
        tmp = x + a
    else if (x <= (-1.22d-73)) then
        tmp = t_1
    else if (x <= 5d-300) then
        tmp = b * (y - 2.0d0)
    else if (x <= 1.4d+140) then
        tmp = t_1
    else
        tmp = x + a
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = a * (1.0 - t);
	double tmp;
	if (x <= -3.9e+158) {
		tmp = x + a;
	} else if (x <= -1.22e-73) {
		tmp = t_1;
	} else if (x <= 5e-300) {
		tmp = b * (y - 2.0);
	} else if (x <= 1.4e+140) {
		tmp = t_1;
	} else {
		tmp = x + a;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = a * (1.0 - t)
	tmp = 0
	if x <= -3.9e+158:
		tmp = x + a
	elif x <= -1.22e-73:
		tmp = t_1
	elif x <= 5e-300:
		tmp = b * (y - 2.0)
	elif x <= 1.4e+140:
		tmp = t_1
	else:
		tmp = x + a
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(a * Float64(1.0 - t))
	tmp = 0.0
	if (x <= -3.9e+158)
		tmp = Float64(x + a);
	elseif (x <= -1.22e-73)
		tmp = t_1;
	elseif (x <= 5e-300)
		tmp = Float64(b * Float64(y - 2.0));
	elseif (x <= 1.4e+140)
		tmp = t_1;
	else
		tmp = Float64(x + a);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = a * (1.0 - t);
	tmp = 0.0;
	if (x <= -3.9e+158)
		tmp = x + a;
	elseif (x <= -1.22e-73)
		tmp = t_1;
	elseif (x <= 5e-300)
		tmp = b * (y - 2.0);
	elseif (x <= 1.4e+140)
		tmp = t_1;
	else
		tmp = x + a;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.9e+158], N[(x + a), $MachinePrecision], If[LessEqual[x, -1.22e-73], t$95$1, If[LessEqual[x, 5e-300], N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+140], t$95$1, N[(x + a), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;x \leq -3.9 \cdot 10^{+158}:\\
\;\;\;\;x + a\\

\mathbf{elif}\;x \leq -1.22 \cdot 10^{-73}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq 5 \cdot 10^{-300}:\\
\;\;\;\;b \cdot \left(y - 2\right)\\

\mathbf{elif}\;x \leq 1.4 \cdot 10^{+140}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -3.9e158 or 1.39999999999999991e140 < x

    1. Initial program 97.3%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 87.9%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in b around 0 62.8%

      \[\leadsto \color{blue}{x - a \cdot \left(t - 1\right)} \]
    5. Taylor expanded in t around 0 55.6%

      \[\leadsto x - \color{blue}{-1 \cdot a} \]
    6. Step-by-step derivation
      1. neg-mul-155.6%

        \[\leadsto x - \color{blue}{\left(-a\right)} \]
    7. Simplified55.6%

      \[\leadsto x - \color{blue}{\left(-a\right)} \]

    if -3.9e158 < x < -1.22e-73 or 4.99999999999999996e-300 < x < 1.39999999999999991e140

    1. Initial program 92.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf 41.8%

      \[\leadsto \color{blue}{a \cdot \left(1 - t\right)} \]

    if -1.22e-73 < x < 4.99999999999999996e-300

    1. Initial program 93.5%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 58.9%

      \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
    4. Taylor expanded in t around 0 42.0%

      \[\leadsto \color{blue}{b \cdot \left(y - 2\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification45.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.9 \cdot 10^{+158}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;x \leq -1.22 \cdot 10^{-73}:\\ \;\;\;\;a \cdot \left(1 - t\right)\\ \mathbf{elif}\;x \leq 5 \cdot 10^{-300}:\\ \;\;\;\;b \cdot \left(y - 2\right)\\ \mathbf{elif}\;x \leq 1.4 \cdot 10^{+140}:\\ \;\;\;\;a \cdot \left(1 - t\right)\\ \mathbf{else}:\\ \;\;\;\;x + a\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 34.6% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(1 - t\right)\\ \mathbf{if}\;x \leq -7 \cdot 10^{+158}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;x \leq -3.5 \cdot 10^{-62}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -2.15 \cdot 10^{-186}:\\ \;\;\;\;y \cdot \left(-z\right)\\ \mathbf{elif}\;x \leq 2 \cdot 10^{+139}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;x + a\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* a (- 1.0 t))))
   (if (<= x -7e+158)
     (+ x a)
     (if (<= x -3.5e-62)
       t_1
       (if (<= x -2.15e-186) (* y (- z)) (if (<= x 2e+139) t_1 (+ x a)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = a * (1.0 - t);
	double tmp;
	if (x <= -7e+158) {
		tmp = x + a;
	} else if (x <= -3.5e-62) {
		tmp = t_1;
	} else if (x <= -2.15e-186) {
		tmp = y * -z;
	} else if (x <= 2e+139) {
		tmp = t_1;
	} else {
		tmp = x + a;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = a * (1.0d0 - t)
    if (x <= (-7d+158)) then
        tmp = x + a
    else if (x <= (-3.5d-62)) then
        tmp = t_1
    else if (x <= (-2.15d-186)) then
        tmp = y * -z
    else if (x <= 2d+139) then
        tmp = t_1
    else
        tmp = x + a
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = a * (1.0 - t);
	double tmp;
	if (x <= -7e+158) {
		tmp = x + a;
	} else if (x <= -3.5e-62) {
		tmp = t_1;
	} else if (x <= -2.15e-186) {
		tmp = y * -z;
	} else if (x <= 2e+139) {
		tmp = t_1;
	} else {
		tmp = x + a;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = a * (1.0 - t)
	tmp = 0
	if x <= -7e+158:
		tmp = x + a
	elif x <= -3.5e-62:
		tmp = t_1
	elif x <= -2.15e-186:
		tmp = y * -z
	elif x <= 2e+139:
		tmp = t_1
	else:
		tmp = x + a
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(a * Float64(1.0 - t))
	tmp = 0.0
	if (x <= -7e+158)
		tmp = Float64(x + a);
	elseif (x <= -3.5e-62)
		tmp = t_1;
	elseif (x <= -2.15e-186)
		tmp = Float64(y * Float64(-z));
	elseif (x <= 2e+139)
		tmp = t_1;
	else
		tmp = Float64(x + a);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = a * (1.0 - t);
	tmp = 0.0;
	if (x <= -7e+158)
		tmp = x + a;
	elseif (x <= -3.5e-62)
		tmp = t_1;
	elseif (x <= -2.15e-186)
		tmp = y * -z;
	elseif (x <= 2e+139)
		tmp = t_1;
	else
		tmp = x + a;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7e+158], N[(x + a), $MachinePrecision], If[LessEqual[x, -3.5e-62], t$95$1, If[LessEqual[x, -2.15e-186], N[(y * (-z)), $MachinePrecision], If[LessEqual[x, 2e+139], t$95$1, N[(x + a), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;x \leq -7 \cdot 10^{+158}:\\
\;\;\;\;x + a\\

\mathbf{elif}\;x \leq -3.5 \cdot 10^{-62}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq -2.15 \cdot 10^{-186}:\\
\;\;\;\;y \cdot \left(-z\right)\\

\mathbf{elif}\;x \leq 2 \cdot 10^{+139}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -7.0000000000000003e158 or 2.00000000000000007e139 < x

    1. Initial program 97.3%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 87.9%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in b around 0 62.8%

      \[\leadsto \color{blue}{x - a \cdot \left(t - 1\right)} \]
    5. Taylor expanded in t around 0 55.6%

      \[\leadsto x - \color{blue}{-1 \cdot a} \]
    6. Step-by-step derivation
      1. neg-mul-155.6%

        \[\leadsto x - \color{blue}{\left(-a\right)} \]
    7. Simplified55.6%

      \[\leadsto x - \color{blue}{\left(-a\right)} \]

    if -7.0000000000000003e158 < x < -3.5000000000000001e-62 or -2.14999999999999995e-186 < x < 2.00000000000000007e139

    1. Initial program 93.1%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf 38.9%

      \[\leadsto \color{blue}{a \cdot \left(1 - t\right)} \]

    if -3.5000000000000001e-62 < x < -2.14999999999999995e-186

    1. Initial program 87.5%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 46.7%

      \[\leadsto \color{blue}{z \cdot \left(1 - y\right)} \]
    4. Taylor expanded in y around inf 38.9%

      \[\leadsto \color{blue}{-1 \cdot \left(y \cdot z\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg38.9%

        \[\leadsto \color{blue}{-y \cdot z} \]
      2. distribute-lft-neg-out38.9%

        \[\leadsto \color{blue}{\left(-y\right) \cdot z} \]
      3. *-commutative38.9%

        \[\leadsto \color{blue}{z \cdot \left(-y\right)} \]
    6. Simplified38.9%

      \[\leadsto \color{blue}{z \cdot \left(-y\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification43.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -7 \cdot 10^{+158}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;x \leq -3.5 \cdot 10^{-62}:\\ \;\;\;\;a \cdot \left(1 - t\right)\\ \mathbf{elif}\;x \leq -2.15 \cdot 10^{-186}:\\ \;\;\;\;y \cdot \left(-z\right)\\ \mathbf{elif}\;x \leq 2 \cdot 10^{+139}:\\ \;\;\;\;a \cdot \left(1 - t\right)\\ \mathbf{else}:\\ \;\;\;\;x + a\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 86.6% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(1 - t\right)\\ \mathbf{if}\;b \leq -6.8 \cdot 10^{-15} \lor \neg \left(b \leq 1.05 \cdot 10^{-51}\right):\\ \;\;\;\;\left(x + b \cdot \left(\left(y + t\right) - 2\right)\right) + t\_1\\ \mathbf{else}:\\ \;\;\;\;x + \left(t\_1 + z \cdot \left(1 - y\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* a (- 1.0 t))))
   (if (or (<= b -6.8e-15) (not (<= b 1.05e-51)))
     (+ (+ x (* b (- (+ y t) 2.0))) t_1)
     (+ x (+ t_1 (* z (- 1.0 y)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = a * (1.0 - t);
	double tmp;
	if ((b <= -6.8e-15) || !(b <= 1.05e-51)) {
		tmp = (x + (b * ((y + t) - 2.0))) + t_1;
	} else {
		tmp = x + (t_1 + (z * (1.0 - y)));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = a * (1.0d0 - t)
    if ((b <= (-6.8d-15)) .or. (.not. (b <= 1.05d-51))) then
        tmp = (x + (b * ((y + t) - 2.0d0))) + t_1
    else
        tmp = x + (t_1 + (z * (1.0d0 - y)))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = a * (1.0 - t);
	double tmp;
	if ((b <= -6.8e-15) || !(b <= 1.05e-51)) {
		tmp = (x + (b * ((y + t) - 2.0))) + t_1;
	} else {
		tmp = x + (t_1 + (z * (1.0 - y)));
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = a * (1.0 - t)
	tmp = 0
	if (b <= -6.8e-15) or not (b <= 1.05e-51):
		tmp = (x + (b * ((y + t) - 2.0))) + t_1
	else:
		tmp = x + (t_1 + (z * (1.0 - y)))
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(a * Float64(1.0 - t))
	tmp = 0.0
	if ((b <= -6.8e-15) || !(b <= 1.05e-51))
		tmp = Float64(Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) + t_1);
	else
		tmp = Float64(x + Float64(t_1 + Float64(z * Float64(1.0 - y))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = a * (1.0 - t);
	tmp = 0.0;
	if ((b <= -6.8e-15) || ~((b <= 1.05e-51)))
		tmp = (x + (b * ((y + t) - 2.0))) + t_1;
	else
		tmp = x + (t_1 + (z * (1.0 - y)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[b, -6.8e-15], N[Not[LessEqual[b, 1.05e-51]], $MachinePrecision]], N[(N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(x + N[(t$95$1 + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;b \leq -6.8 \cdot 10^{-15} \lor \neg \left(b \leq 1.05 \cdot 10^{-51}\right):\\
\;\;\;\;\left(x + b \cdot \left(\left(y + t\right) - 2\right)\right) + t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -6.8000000000000001e-15 or 1.05000000000000001e-51 < b

    1. Initial program 88.2%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 86.2%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]

    if -6.8000000000000001e-15 < b < 1.05000000000000001e-51

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 93.1%

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification89.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -6.8 \cdot 10^{-15} \lor \neg \left(b \leq 1.05 \cdot 10^{-51}\right):\\ \;\;\;\;\left(x + b \cdot \left(\left(y + t\right) - 2\right)\right) + a \cdot \left(1 - t\right)\\ \mathbf{else}:\\ \;\;\;\;x + \left(a \cdot \left(1 - t\right) + z \cdot \left(1 - y\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 28.6% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(-z\right)\\ \mathbf{if}\;y \leq -1.65 \cdot 10^{+40}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.6 \cdot 10^{-113}:\\ \;\;\;\;b \cdot t\\ \mathbf{elif}\;y \leq 2.4 \cdot 10^{-37}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 2 \cdot 10^{+32}:\\ \;\;\;\;a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* y (- z))))
   (if (<= y -1.65e+40)
     t_1
     (if (<= y 2.6e-113)
       (* b t)
       (if (<= y 2.4e-37) x (if (<= y 2e+32) a t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = y * -z;
	double tmp;
	if (y <= -1.65e+40) {
		tmp = t_1;
	} else if (y <= 2.6e-113) {
		tmp = b * t;
	} else if (y <= 2.4e-37) {
		tmp = x;
	} else if (y <= 2e+32) {
		tmp = a;
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = y * -z
    if (y <= (-1.65d+40)) then
        tmp = t_1
    else if (y <= 2.6d-113) then
        tmp = b * t
    else if (y <= 2.4d-37) then
        tmp = x
    else if (y <= 2d+32) then
        tmp = a
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = y * -z;
	double tmp;
	if (y <= -1.65e+40) {
		tmp = t_1;
	} else if (y <= 2.6e-113) {
		tmp = b * t;
	} else if (y <= 2.4e-37) {
		tmp = x;
	} else if (y <= 2e+32) {
		tmp = a;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = y * -z
	tmp = 0
	if y <= -1.65e+40:
		tmp = t_1
	elif y <= 2.6e-113:
		tmp = b * t
	elif y <= 2.4e-37:
		tmp = x
	elif y <= 2e+32:
		tmp = a
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(y * Float64(-z))
	tmp = 0.0
	if (y <= -1.65e+40)
		tmp = t_1;
	elseif (y <= 2.6e-113)
		tmp = Float64(b * t);
	elseif (y <= 2.4e-37)
		tmp = x;
	elseif (y <= 2e+32)
		tmp = a;
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = y * -z;
	tmp = 0.0;
	if (y <= -1.65e+40)
		tmp = t_1;
	elseif (y <= 2.6e-113)
		tmp = b * t;
	elseif (y <= 2.4e-37)
		tmp = x;
	elseif (y <= 2e+32)
		tmp = a;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * (-z)), $MachinePrecision]}, If[LessEqual[y, -1.65e+40], t$95$1, If[LessEqual[y, 2.6e-113], N[(b * t), $MachinePrecision], If[LessEqual[y, 2.4e-37], x, If[LessEqual[y, 2e+32], a, t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y \cdot \left(-z\right)\\
\mathbf{if}\;y \leq -1.65 \cdot 10^{+40}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 2.6 \cdot 10^{-113}:\\
\;\;\;\;b \cdot t\\

\mathbf{elif}\;y \leq 2.4 \cdot 10^{-37}:\\
\;\;\;\;x\\

\mathbf{elif}\;y \leq 2 \cdot 10^{+32}:\\
\;\;\;\;a\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -1.6499999999999999e40 or 2.00000000000000011e32 < y

    1. Initial program 89.2%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 43.9%

      \[\leadsto \color{blue}{z \cdot \left(1 - y\right)} \]
    4. Taylor expanded in y around inf 43.9%

      \[\leadsto \color{blue}{-1 \cdot \left(y \cdot z\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg43.9%

        \[\leadsto \color{blue}{-y \cdot z} \]
      2. distribute-lft-neg-out43.9%

        \[\leadsto \color{blue}{\left(-y\right) \cdot z} \]
      3. *-commutative43.9%

        \[\leadsto \color{blue}{z \cdot \left(-y\right)} \]
    6. Simplified43.9%

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

    if -1.6499999999999999e40 < y < 2.5999999999999999e-113

    1. Initial program 97.5%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 42.7%

      \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
    4. Taylor expanded in t around inf 29.8%

      \[\leadsto \color{blue}{b \cdot t} \]

    if 2.5999999999999999e-113 < y < 2.39999999999999991e-37

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf 44.9%

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

    if 2.39999999999999991e-37 < y < 2.00000000000000011e32

    1. Initial program 92.2%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf 40.0%

      \[\leadsto \color{blue}{a \cdot \left(1 - t\right)} \]
    4. Taylor expanded in t around 0 25.5%

      \[\leadsto \color{blue}{a} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification36.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.65 \cdot 10^{+40}:\\ \;\;\;\;y \cdot \left(-z\right)\\ \mathbf{elif}\;y \leq 2.6 \cdot 10^{-113}:\\ \;\;\;\;b \cdot t\\ \mathbf{elif}\;y \leq 2.4 \cdot 10^{-37}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 2 \cdot 10^{+32}:\\ \;\;\;\;a\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(-z\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 26.8% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -9 \cdot 10^{+44}:\\ \;\;\;\;b \cdot t\\ \mathbf{elif}\;t \leq 1.6 \cdot 10^{-229}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{-132}:\\ \;\;\;\;b \cdot y\\ \mathbf{elif}\;t \leq 1.45 \cdot 10^{+17}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;b \cdot t\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= t -9e+44)
   (* b t)
   (if (<= t 1.6e-229)
     x
     (if (<= t 1.05e-132) (* b y) (if (<= t 1.45e+17) x (* b t))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (t <= -9e+44) {
		tmp = b * t;
	} else if (t <= 1.6e-229) {
		tmp = x;
	} else if (t <= 1.05e-132) {
		tmp = b * y;
	} else if (t <= 1.45e+17) {
		tmp = x;
	} else {
		tmp = b * t;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: tmp
    if (t <= (-9d+44)) then
        tmp = b * t
    else if (t <= 1.6d-229) then
        tmp = x
    else if (t <= 1.05d-132) then
        tmp = b * y
    else if (t <= 1.45d+17) then
        tmp = x
    else
        tmp = b * t
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (t <= -9e+44) {
		tmp = b * t;
	} else if (t <= 1.6e-229) {
		tmp = x;
	} else if (t <= 1.05e-132) {
		tmp = b * y;
	} else if (t <= 1.45e+17) {
		tmp = x;
	} else {
		tmp = b * t;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if t <= -9e+44:
		tmp = b * t
	elif t <= 1.6e-229:
		tmp = x
	elif t <= 1.05e-132:
		tmp = b * y
	elif t <= 1.45e+17:
		tmp = x
	else:
		tmp = b * t
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (t <= -9e+44)
		tmp = Float64(b * t);
	elseif (t <= 1.6e-229)
		tmp = x;
	elseif (t <= 1.05e-132)
		tmp = Float64(b * y);
	elseif (t <= 1.45e+17)
		tmp = x;
	else
		tmp = Float64(b * t);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (t <= -9e+44)
		tmp = b * t;
	elseif (t <= 1.6e-229)
		tmp = x;
	elseif (t <= 1.05e-132)
		tmp = b * y;
	elseif (t <= 1.45e+17)
		tmp = x;
	else
		tmp = b * t;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -9e+44], N[(b * t), $MachinePrecision], If[LessEqual[t, 1.6e-229], x, If[LessEqual[t, 1.05e-132], N[(b * y), $MachinePrecision], If[LessEqual[t, 1.45e+17], x, N[(b * t), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -9 \cdot 10^{+44}:\\
\;\;\;\;b \cdot t\\

\mathbf{elif}\;t \leq 1.6 \cdot 10^{-229}:\\
\;\;\;\;x\\

\mathbf{elif}\;t \leq 1.05 \cdot 10^{-132}:\\
\;\;\;\;b \cdot y\\

\mathbf{elif}\;t \leq 1.45 \cdot 10^{+17}:\\
\;\;\;\;x\\

\mathbf{else}:\\
\;\;\;\;b \cdot t\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -9e44 or 1.45e17 < t

    1. Initial program 91.1%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 47.2%

      \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
    4. Taylor expanded in t around inf 41.3%

      \[\leadsto \color{blue}{b \cdot t} \]

    if -9e44 < t < 1.60000000000000007e-229 or 1.05e-132 < t < 1.45e17

    1. Initial program 96.1%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf 27.2%

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

    if 1.60000000000000007e-229 < t < 1.05e-132

    1. Initial program 92.9%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 72.8%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in y around inf 43.1%

      \[\leadsto \color{blue}{b \cdot y} \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 17: 82.0% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{if}\;b \leq -9 \cdot 10^{-15}:\\ \;\;\;\;x + t\_1\\ \mathbf{elif}\;b \leq 4 \cdot 10^{+145}:\\ \;\;\;\;x + \left(a \cdot \left(1 - t\right) + z \cdot \left(1 - y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* b (- (+ y t) 2.0))))
   (if (<= b -9e-15)
     (+ x t_1)
     (if (<= b 4e+145) (+ x (+ (* a (- 1.0 t)) (* z (- 1.0 y)))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = b * ((y + t) - 2.0);
	double tmp;
	if (b <= -9e-15) {
		tmp = x + t_1;
	} else if (b <= 4e+145) {
		tmp = x + ((a * (1.0 - t)) + (z * (1.0 - y)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = b * ((y + t) - 2.0d0)
    if (b <= (-9d-15)) then
        tmp = x + t_1
    else if (b <= 4d+145) then
        tmp = x + ((a * (1.0d0 - t)) + (z * (1.0d0 - y)))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = b * ((y + t) - 2.0);
	double tmp;
	if (b <= -9e-15) {
		tmp = x + t_1;
	} else if (b <= 4e+145) {
		tmp = x + ((a * (1.0 - t)) + (z * (1.0 - y)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = b * ((y + t) - 2.0)
	tmp = 0
	if b <= -9e-15:
		tmp = x + t_1
	elif b <= 4e+145:
		tmp = x + ((a * (1.0 - t)) + (z * (1.0 - y)))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(b * Float64(Float64(y + t) - 2.0))
	tmp = 0.0
	if (b <= -9e-15)
		tmp = Float64(x + t_1);
	elseif (b <= 4e+145)
		tmp = Float64(x + Float64(Float64(a * Float64(1.0 - t)) + Float64(z * Float64(1.0 - y))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = b * ((y + t) - 2.0);
	tmp = 0.0;
	if (b <= -9e-15)
		tmp = x + t_1;
	elseif (b <= 4e+145)
		tmp = x + ((a * (1.0 - t)) + (z * (1.0 - y)));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9e-15], N[(x + t$95$1), $MachinePrecision], If[LessEqual[b, 4e+145], N[(x + N[(N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -9 \cdot 10^{-15}:\\
\;\;\;\;x + t\_1\\

\mathbf{elif}\;b \leq 4 \cdot 10^{+145}:\\
\;\;\;\;x + \left(a \cdot \left(1 - t\right) + z \cdot \left(1 - y\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -8.9999999999999995e-15

    1. Initial program 87.7%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 88.0%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in a around 0 76.1%

      \[\leadsto \color{blue}{x + b \cdot \left(\left(t + y\right) - 2\right)} \]

    if -8.9999999999999995e-15 < b < 4e145

    1. Initial program 99.3%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 88.2%

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

    if 4e145 < b

    1. Initial program 82.1%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 88.8%

      \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification85.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -9 \cdot 10^{-15}:\\ \;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{elif}\;b \leq 4 \cdot 10^{+145}:\\ \;\;\;\;x + \left(a \cdot \left(1 - t\right) + z \cdot \left(1 - y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\left(y + t\right) - 2\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 55.2% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{if}\;b \leq -2000000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 7.5 \cdot 10^{-235}:\\ \;\;\;\;x - y \cdot z\\ \mathbf{elif}\;b \leq 2 \cdot 10^{+40}:\\ \;\;\;\;x - t \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* b (- (+ y t) 2.0))))
   (if (<= b -2000000000000.0)
     t_1
     (if (<= b 7.5e-235) (- x (* y z)) (if (<= b 2e+40) (- x (* t a)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = b * ((y + t) - 2.0);
	double tmp;
	if (b <= -2000000000000.0) {
		tmp = t_1;
	} else if (b <= 7.5e-235) {
		tmp = x - (y * z);
	} else if (b <= 2e+40) {
		tmp = x - (t * a);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = b * ((y + t) - 2.0d0)
    if (b <= (-2000000000000.0d0)) then
        tmp = t_1
    else if (b <= 7.5d-235) then
        tmp = x - (y * z)
    else if (b <= 2d+40) then
        tmp = x - (t * a)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = b * ((y + t) - 2.0);
	double tmp;
	if (b <= -2000000000000.0) {
		tmp = t_1;
	} else if (b <= 7.5e-235) {
		tmp = x - (y * z);
	} else if (b <= 2e+40) {
		tmp = x - (t * a);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = b * ((y + t) - 2.0)
	tmp = 0
	if b <= -2000000000000.0:
		tmp = t_1
	elif b <= 7.5e-235:
		tmp = x - (y * z)
	elif b <= 2e+40:
		tmp = x - (t * a)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(b * Float64(Float64(y + t) - 2.0))
	tmp = 0.0
	if (b <= -2000000000000.0)
		tmp = t_1;
	elseif (b <= 7.5e-235)
		tmp = Float64(x - Float64(y * z));
	elseif (b <= 2e+40)
		tmp = Float64(x - Float64(t * a));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = b * ((y + t) - 2.0);
	tmp = 0.0;
	if (b <= -2000000000000.0)
		tmp = t_1;
	elseif (b <= 7.5e-235)
		tmp = x - (y * z);
	elseif (b <= 2e+40)
		tmp = x - (t * a);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2000000000000.0], t$95$1, If[LessEqual[b, 7.5e-235], N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2e+40], N[(x - N[(t * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -2000000000000:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;b \leq 7.5 \cdot 10^{-235}:\\
\;\;\;\;x - y \cdot z\\

\mathbf{elif}\;b \leq 2 \cdot 10^{+40}:\\
\;\;\;\;x - t \cdot a\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -2e12 or 2.00000000000000006e40 < b

    1. Initial program 86.5%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 72.3%

      \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]

    if -2e12 < b < 7.49999999999999968e-235

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 90.6%

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Taylor expanded in y around inf 57.6%

      \[\leadsto x - \color{blue}{y \cdot z} \]

    if 7.49999999999999968e-235 < b < 2.00000000000000006e40

    1. Initial program 98.3%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 80.3%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in b around 0 69.2%

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

      \[\leadsto x - \color{blue}{a \cdot t} \]
    6. Step-by-step derivation
      1. *-commutative80.2%

        \[\leadsto x - \left(\color{blue}{t \cdot a} + z \cdot \left(y - 1\right)\right) \]
    7. Simplified62.1%

      \[\leadsto x - \color{blue}{t \cdot a} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification65.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2000000000000:\\ \;\;\;\;b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{elif}\;b \leq 7.5 \cdot 10^{-235}:\\ \;\;\;\;x - y \cdot z\\ \mathbf{elif}\;b \leq 2 \cdot 10^{+40}:\\ \;\;\;\;x - t \cdot a\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\left(y + t\right) - 2\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 74.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{if}\;b \leq -9 \cdot 10^{-15}:\\ \;\;\;\;x + t\_1\\ \mathbf{elif}\;b \leq 4.3 \cdot 10^{+136}:\\ \;\;\;\;x + \left(z \cdot \left(1 - y\right) - t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* b (- (+ y t) 2.0))))
   (if (<= b -9e-15)
     (+ x t_1)
     (if (<= b 4.3e+136) (+ x (- (* z (- 1.0 y)) (* t a))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = b * ((y + t) - 2.0);
	double tmp;
	if (b <= -9e-15) {
		tmp = x + t_1;
	} else if (b <= 4.3e+136) {
		tmp = x + ((z * (1.0 - y)) - (t * a));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = b * ((y + t) - 2.0d0)
    if (b <= (-9d-15)) then
        tmp = x + t_1
    else if (b <= 4.3d+136) then
        tmp = x + ((z * (1.0d0 - y)) - (t * a))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = b * ((y + t) - 2.0);
	double tmp;
	if (b <= -9e-15) {
		tmp = x + t_1;
	} else if (b <= 4.3e+136) {
		tmp = x + ((z * (1.0 - y)) - (t * a));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = b * ((y + t) - 2.0)
	tmp = 0
	if b <= -9e-15:
		tmp = x + t_1
	elif b <= 4.3e+136:
		tmp = x + ((z * (1.0 - y)) - (t * a))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(b * Float64(Float64(y + t) - 2.0))
	tmp = 0.0
	if (b <= -9e-15)
		tmp = Float64(x + t_1);
	elseif (b <= 4.3e+136)
		tmp = Float64(x + Float64(Float64(z * Float64(1.0 - y)) - Float64(t * a)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = b * ((y + t) - 2.0);
	tmp = 0.0;
	if (b <= -9e-15)
		tmp = x + t_1;
	elseif (b <= 4.3e+136)
		tmp = x + ((z * (1.0 - y)) - (t * a));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9e-15], N[(x + t$95$1), $MachinePrecision], If[LessEqual[b, 4.3e+136], N[(x + N[(N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -9 \cdot 10^{-15}:\\
\;\;\;\;x + t\_1\\

\mathbf{elif}\;b \leq 4.3 \cdot 10^{+136}:\\
\;\;\;\;x + \left(z \cdot \left(1 - y\right) - t \cdot a\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -8.9999999999999995e-15

    1. Initial program 87.7%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 88.0%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in a around 0 76.1%

      \[\leadsto \color{blue}{x + b \cdot \left(\left(t + y\right) - 2\right)} \]

    if -8.9999999999999995e-15 < b < 4.2999999999999999e136

    1. Initial program 99.3%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 88.2%

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Taylor expanded in t around inf 78.5%

      \[\leadsto x - \left(\color{blue}{a \cdot t} + z \cdot \left(y - 1\right)\right) \]
    5. Step-by-step derivation
      1. *-commutative78.5%

        \[\leadsto x - \left(\color{blue}{t \cdot a} + z \cdot \left(y - 1\right)\right) \]
    6. Simplified78.5%

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

    if 4.2999999999999999e136 < b

    1. Initial program 82.1%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 88.8%

      \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification79.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -9 \cdot 10^{-15}:\\ \;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{elif}\;b \leq 4.3 \cdot 10^{+136}:\\ \;\;\;\;x + \left(z \cdot \left(1 - y\right) - t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\left(y + t\right) - 2\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 57.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(b - a\right)\\ \mathbf{if}\;t \leq -2.1 \cdot 10^{+35}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.6 \cdot 10^{-64}:\\ \;\;\;\;x + b \cdot \left(y - 2\right)\\ \mathbf{elif}\;t \leq 1.08 \cdot 10^{+18}:\\ \;\;\;\;x - y \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* t (- b a))))
   (if (<= t -2.1e+35)
     t_1
     (if (<= t 1.6e-64)
       (+ x (* b (- y 2.0)))
       (if (<= t 1.08e+18) (- x (* y z)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = t * (b - a);
	double tmp;
	if (t <= -2.1e+35) {
		tmp = t_1;
	} else if (t <= 1.6e-64) {
		tmp = x + (b * (y - 2.0));
	} else if (t <= 1.08e+18) {
		tmp = x - (y * z);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = t * (b - a)
    if (t <= (-2.1d+35)) then
        tmp = t_1
    else if (t <= 1.6d-64) then
        tmp = x + (b * (y - 2.0d0))
    else if (t <= 1.08d+18) then
        tmp = x - (y * z)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = t * (b - a);
	double tmp;
	if (t <= -2.1e+35) {
		tmp = t_1;
	} else if (t <= 1.6e-64) {
		tmp = x + (b * (y - 2.0));
	} else if (t <= 1.08e+18) {
		tmp = x - (y * z);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = t * (b - a)
	tmp = 0
	if t <= -2.1e+35:
		tmp = t_1
	elif t <= 1.6e-64:
		tmp = x + (b * (y - 2.0))
	elif t <= 1.08e+18:
		tmp = x - (y * z)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(t * Float64(b - a))
	tmp = 0.0
	if (t <= -2.1e+35)
		tmp = t_1;
	elseif (t <= 1.6e-64)
		tmp = Float64(x + Float64(b * Float64(y - 2.0)));
	elseif (t <= 1.08e+18)
		tmp = Float64(x - Float64(y * z));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = t * (b - a);
	tmp = 0.0;
	if (t <= -2.1e+35)
		tmp = t_1;
	elseif (t <= 1.6e-64)
		tmp = x + (b * (y - 2.0));
	elseif (t <= 1.08e+18)
		tmp = x - (y * z);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.1e+35], t$95$1, If[LessEqual[t, 1.6e-64], N[(x + N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.08e+18], N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -2.1 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 1.6 \cdot 10^{-64}:\\
\;\;\;\;x + b \cdot \left(y - 2\right)\\

\mathbf{elif}\;t \leq 1.08 \cdot 10^{+18}:\\
\;\;\;\;x - y \cdot z\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -2.0999999999999999e35 or 1.08e18 < t

    1. Initial program 91.6%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 71.2%

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

    if -2.0999999999999999e35 < t < 1.59999999999999988e-64

    1. Initial program 94.5%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 73.7%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in a around 0 59.2%

      \[\leadsto \color{blue}{x + b \cdot \left(\left(t + y\right) - 2\right)} \]
    5. Taylor expanded in t around 0 59.2%

      \[\leadsto x + \color{blue}{b \cdot \left(y - 2\right)} \]

    if 1.59999999999999988e-64 < t < 1.08e18

    1. Initial program 100.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 88.7%

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Taylor expanded in y around inf 53.5%

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

Alternative 21: 32.9% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(-z\right)\\ \mathbf{if}\;z \leq -2 \cdot 10^{+98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 5.8 \cdot 10^{-99}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;z \leq 3.05 \cdot 10^{+155}:\\ \;\;\;\;t \cdot \left(-a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* y (- z))))
   (if (<= z -2e+98)
     t_1
     (if (<= z 5.8e-99) (+ x a) (if (<= z 3.05e+155) (* t (- a)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = y * -z;
	double tmp;
	if (z <= -2e+98) {
		tmp = t_1;
	} else if (z <= 5.8e-99) {
		tmp = x + a;
	} else if (z <= 3.05e+155) {
		tmp = t * -a;
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = y * -z
    if (z <= (-2d+98)) then
        tmp = t_1
    else if (z <= 5.8d-99) then
        tmp = x + a
    else if (z <= 3.05d+155) then
        tmp = t * -a
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = y * -z;
	double tmp;
	if (z <= -2e+98) {
		tmp = t_1;
	} else if (z <= 5.8e-99) {
		tmp = x + a;
	} else if (z <= 3.05e+155) {
		tmp = t * -a;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = y * -z
	tmp = 0
	if z <= -2e+98:
		tmp = t_1
	elif z <= 5.8e-99:
		tmp = x + a
	elif z <= 3.05e+155:
		tmp = t * -a
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(y * Float64(-z))
	tmp = 0.0
	if (z <= -2e+98)
		tmp = t_1;
	elseif (z <= 5.8e-99)
		tmp = Float64(x + a);
	elseif (z <= 3.05e+155)
		tmp = Float64(t * Float64(-a));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = y * -z;
	tmp = 0.0;
	if (z <= -2e+98)
		tmp = t_1;
	elseif (z <= 5.8e-99)
		tmp = x + a;
	elseif (z <= 3.05e+155)
		tmp = t * -a;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * (-z)), $MachinePrecision]}, If[LessEqual[z, -2e+98], t$95$1, If[LessEqual[z, 5.8e-99], N[(x + a), $MachinePrecision], If[LessEqual[z, 3.05e+155], N[(t * (-a)), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

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

\mathbf{elif}\;z \leq 5.8 \cdot 10^{-99}:\\
\;\;\;\;x + a\\

\mathbf{elif}\;z \leq 3.05 \cdot 10^{+155}:\\
\;\;\;\;t \cdot \left(-a\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -2e98 or 3.04999999999999978e155 < z

    1. Initial program 88.2%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 65.2%

      \[\leadsto \color{blue}{z \cdot \left(1 - y\right)} \]
    4. Taylor expanded in y around inf 50.5%

      \[\leadsto \color{blue}{-1 \cdot \left(y \cdot z\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg50.5%

        \[\leadsto \color{blue}{-y \cdot z} \]
      2. distribute-lft-neg-out50.5%

        \[\leadsto \color{blue}{\left(-y\right) \cdot z} \]
      3. *-commutative50.5%

        \[\leadsto \color{blue}{z \cdot \left(-y\right)} \]
    6. Simplified50.5%

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

    if -2e98 < z < 5.79999999999999971e-99

    1. Initial program 96.1%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 92.4%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in b around 0 57.0%

      \[\leadsto \color{blue}{x - a \cdot \left(t - 1\right)} \]
    5. Taylor expanded in t around 0 37.8%

      \[\leadsto x - \color{blue}{-1 \cdot a} \]
    6. Step-by-step derivation
      1. neg-mul-137.8%

        \[\leadsto x - \color{blue}{\left(-a\right)} \]
    7. Simplified37.8%

      \[\leadsto x - \color{blue}{\left(-a\right)} \]

    if 5.79999999999999971e-99 < z < 3.04999999999999978e155

    1. Initial program 96.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 67.3%

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Taylor expanded in t around inf 29.8%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot t\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg29.8%

        \[\leadsto \color{blue}{-a \cdot t} \]
      2. *-commutative29.8%

        \[\leadsto -\color{blue}{t \cdot a} \]
      3. distribute-rgt-neg-in29.8%

        \[\leadsto \color{blue}{t \cdot \left(-a\right)} \]
    6. Simplified29.8%

      \[\leadsto \color{blue}{t \cdot \left(-a\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification39.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2 \cdot 10^{+98}:\\ \;\;\;\;y \cdot \left(-z\right)\\ \mathbf{elif}\;z \leq 5.8 \cdot 10^{-99}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;z \leq 3.05 \cdot 10^{+155}:\\ \;\;\;\;t \cdot \left(-a\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(-z\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 22: 51.1% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -9.5 \cdot 10^{+37} \lor \neg \left(y \leq 7.5 \cdot 10^{+29}\right):\\ \;\;\;\;y \cdot \left(b - z\right)\\ \mathbf{else}:\\ \;\;\;\;x + b \cdot t\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (or (<= y -9.5e+37) (not (<= y 7.5e+29))) (* y (- b z)) (+ x (* b t))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((y <= -9.5e+37) || !(y <= 7.5e+29)) {
		tmp = y * (b - z);
	} else {
		tmp = x + (b * t);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: tmp
    if ((y <= (-9.5d+37)) .or. (.not. (y <= 7.5d+29))) then
        tmp = y * (b - z)
    else
        tmp = x + (b * t)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((y <= -9.5e+37) || !(y <= 7.5e+29)) {
		tmp = y * (b - z);
	} else {
		tmp = x + (b * t);
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if (y <= -9.5e+37) or not (y <= 7.5e+29):
		tmp = y * (b - z)
	else:
		tmp = x + (b * t)
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if ((y <= -9.5e+37) || !(y <= 7.5e+29))
		tmp = Float64(y * Float64(b - z));
	else
		tmp = Float64(x + Float64(b * t));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if ((y <= -9.5e+37) || ~((y <= 7.5e+29)))
		tmp = y * (b - z);
	else
		tmp = x + (b * t);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -9.5e+37], N[Not[LessEqual[y, 7.5e+29]], $MachinePrecision]], N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.5 \cdot 10^{+37} \lor \neg \left(y \leq 7.5 \cdot 10^{+29}\right):\\
\;\;\;\;y \cdot \left(b - z\right)\\

\mathbf{else}:\\
\;\;\;\;x + b \cdot t\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -9.4999999999999995e37 or 7.49999999999999945e29 < y

    1. Initial program 89.2%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf 68.4%

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

    if -9.4999999999999995e37 < y < 7.49999999999999945e29

    1. Initial program 97.2%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0 85.6%

      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
    4. Taylor expanded in a around 0 61.5%

      \[\leadsto \color{blue}{x + b \cdot \left(\left(t + y\right) - 2\right)} \]
    5. Taylor expanded in t around inf 48.7%

      \[\leadsto x + \color{blue}{b \cdot t} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification57.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -9.5 \cdot 10^{+37} \lor \neg \left(y \leq 7.5 \cdot 10^{+29}\right):\\ \;\;\;\;y \cdot \left(b - z\right)\\ \mathbf{else}:\\ \;\;\;\;x + b \cdot t\\ \end{array} \]
  5. Add Preprocessing

Alternative 23: 26.6% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -5.2 \cdot 10^{+44} \lor \neg \left(t \leq 8.4 \cdot 10^{+17}\right):\\ \;\;\;\;b \cdot t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (or (<= t -5.2e+44) (not (<= t 8.4e+17))) (* b t) x))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((t <= -5.2e+44) || !(t <= 8.4e+17)) {
		tmp = b * t;
	} else {
		tmp = x;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: tmp
    if ((t <= (-5.2d+44)) .or. (.not. (t <= 8.4d+17))) then
        tmp = b * t
    else
        tmp = x
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((t <= -5.2e+44) || !(t <= 8.4e+17)) {
		tmp = b * t;
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if (t <= -5.2e+44) or not (t <= 8.4e+17):
		tmp = b * t
	else:
		tmp = x
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if ((t <= -5.2e+44) || !(t <= 8.4e+17))
		tmp = Float64(b * t);
	else
		tmp = x;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if ((t <= -5.2e+44) || ~((t <= 8.4e+17)))
		tmp = b * t;
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -5.2e+44], N[Not[LessEqual[t, 8.4e+17]], $MachinePrecision]], N[(b * t), $MachinePrecision], x]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.2 \cdot 10^{+44} \lor \neg \left(t \leq 8.4 \cdot 10^{+17}\right):\\
\;\;\;\;b \cdot t\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -5.1999999999999998e44 or 8.4e17 < t

    1. Initial program 91.1%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 47.2%

      \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
    4. Taylor expanded in t around inf 41.3%

      \[\leadsto \color{blue}{b \cdot t} \]

    if -5.1999999999999998e44 < t < 8.4e17

    1. Initial program 95.8%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf 24.8%

      \[\leadsto \color{blue}{x} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification32.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5.2 \cdot 10^{+44} \lor \neg \left(t \leq 8.4 \cdot 10^{+17}\right):\\ \;\;\;\;b \cdot t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
  5. Add Preprocessing

Alternative 24: 20.4% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.15 \cdot 10^{-14} \lor \neg \left(x \leq 1.55 \cdot 10^{+140}\right):\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;a\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (or (<= x -1.15e-14) (not (<= x 1.55e+140))) x a))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((x <= -1.15e-14) || !(x <= 1.55e+140)) {
		tmp = x;
	} else {
		tmp = a;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: tmp
    if ((x <= (-1.15d-14)) .or. (.not. (x <= 1.55d+140))) then
        tmp = x
    else
        tmp = a
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((x <= -1.15e-14) || !(x <= 1.55e+140)) {
		tmp = x;
	} else {
		tmp = a;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if (x <= -1.15e-14) or not (x <= 1.55e+140):
		tmp = x
	else:
		tmp = a
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if ((x <= -1.15e-14) || !(x <= 1.55e+140))
		tmp = x;
	else
		tmp = a;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if ((x <= -1.15e-14) || ~((x <= 1.55e+140)))
		tmp = x;
	else
		tmp = a;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[x, -1.15e-14], N[Not[LessEqual[x, 1.55e+140]], $MachinePrecision]], x, a]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.15 \cdot 10^{-14} \lor \neg \left(x \leq 1.55 \cdot 10^{+140}\right):\\
\;\;\;\;x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1.14999999999999999e-14 or 1.55e140 < x

    1. Initial program 96.1%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf 41.6%

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

    if -1.14999999999999999e-14 < x < 1.55e140

    1. Initial program 92.2%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf 36.0%

      \[\leadsto \color{blue}{a \cdot \left(1 - t\right)} \]
    4. Taylor expanded in t around 0 12.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.15 \cdot 10^{-14} \lor \neg \left(x \leq 1.55 \cdot 10^{+140}\right):\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;a\\ \end{array} \]
  5. Add Preprocessing

Alternative 25: 11.1% accurate, 21.0× speedup?

\[\begin{array}{l} \\ a \end{array} \]
(FPCore (x y z t a b) :precision binary64 a)
double code(double x, double y, double z, double t, double a, double b) {
	return a;
}
real(8) function code(x, y, z, t, a, b)
    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
    code = a
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return a;
}
def code(x, y, z, t, a, b):
	return a
function code(x, y, z, t, a, b)
	return a
end
function tmp = code(x, y, z, t, a, b)
	tmp = a;
end
code[x_, y_, z_, t_, a_, b_] := a
\begin{array}{l}

\\
a
\end{array}
Derivation
  1. Initial program 93.7%

    \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
  2. Add Preprocessing
  3. Taylor expanded in a around inf 28.4%

    \[\leadsto \color{blue}{a \cdot \left(1 - t\right)} \]
  4. Taylor expanded in t around 0 9.9%

    \[\leadsto \color{blue}{a} \]
  5. Add Preprocessing

Reproduce

?
herbie shell --seed 2024096 
(FPCore (x y z t a b)
  :name "Statistics.Distribution.Beta:$centropy from math-functions-0.1.5.2"
  :precision binary64
  (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))