AI.Clustering.Hierarchical.Internal:ward from clustering-0.2.1

Percentage Accurate: 60.2% → 88.2%
Time: 14.4s
Alternatives: 13
Speedup: 1.0×

Specification

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

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

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

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

Alternative 1: 88.2% accurate, 0.3× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < -inf.0 or 2.00000000000000013e265 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

    1. Initial program 7.9%

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

      \[\leadsto \color{blue}{\left(a + z\right) - b} \]

    if -inf.0 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 2.00000000000000013e265

    1. Initial program 99.7%

      \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
    2. Add Preprocessing
  3. Recombined 2 regimes into one program.
  4. Final simplification88.9%

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

Alternative 2: 70.1% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.5 \cdot 10^{+49} \lor \neg \left(y \leq 1.5 \cdot 10^{-14}\right):\\
\;\;\;\;\left(z + a\right) - b\\

\mathbf{else}:\\
\;\;\;\;z \cdot \left(\frac{x}{x + t} + \frac{a}{z} \cdot \frac{t}{x + t}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -2.5000000000000002e49 or 1.4999999999999999e-14 < y

    1. Initial program 42.1%

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

      \[\leadsto \color{blue}{\left(a + z\right) - b} \]

    if -2.5000000000000002e49 < y < 1.4999999999999999e-14

    1. Initial program 79.0%

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

      \[\leadsto \color{blue}{z \cdot \left(\left(\frac{x}{t + \left(x + y\right)} + \left(\frac{y}{t + \left(x + y\right)} + \frac{a \cdot \left(t + y\right)}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)} \]
    4. Step-by-step derivation
      1. associate--l+79.2%

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

        \[\leadsto z \cdot \left(\frac{x}{\color{blue}{\left(x + y\right) + t}} + \left(\left(\frac{y}{t + \left(x + y\right)} + \frac{a \cdot \left(t + y\right)}{z \cdot \left(t + \left(x + y\right)\right)}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
      3. associate-+r+79.2%

        \[\leadsto z \cdot \left(\frac{x}{\color{blue}{x + \left(y + t\right)}} + \left(\left(\frac{y}{t + \left(x + y\right)} + \frac{a \cdot \left(t + y\right)}{z \cdot \left(t + \left(x + y\right)\right)}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
      4. +-commutative79.2%

        \[\leadsto z \cdot \left(\frac{x}{x + \left(y + t\right)} + \left(\left(\frac{y}{\color{blue}{\left(x + y\right) + t}} + \frac{a \cdot \left(t + y\right)}{z \cdot \left(t + \left(x + y\right)\right)}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
      5. associate-+r+79.2%

        \[\leadsto z \cdot \left(\frac{x}{x + \left(y + t\right)} + \left(\left(\frac{y}{\color{blue}{x + \left(y + t\right)}} + \frac{a \cdot \left(t + y\right)}{z \cdot \left(t + \left(x + y\right)\right)}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
      6. associate-/l*85.1%

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

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

        \[\leadsto z \cdot \left(\frac{x}{x + \left(y + t\right)} + \left(\left(\frac{y}{x + \left(y + t\right)} + a \cdot \frac{y + t}{z \cdot \color{blue}{\left(\left(x + y\right) + t\right)}}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
      9. associate-+r+85.1%

        \[\leadsto z \cdot \left(\frac{x}{x + \left(y + t\right)} + \left(\left(\frac{y}{x + \left(y + t\right)} + a \cdot \frac{y + t}{z \cdot \color{blue}{\left(x + \left(y + t\right)\right)}}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
      10. associate-/r*83.7%

        \[\leadsto z \cdot \left(\frac{x}{x + \left(y + t\right)} + \left(\left(\frac{y}{x + \left(y + t\right)} + a \cdot \frac{y + t}{z \cdot \left(x + \left(y + t\right)\right)}\right) - \color{blue}{\frac{\frac{b \cdot y}{z}}{t + \left(x + y\right)}}\right)\right) \]
    5. Simplified83.7%

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

      \[\leadsto \color{blue}{z \cdot \left(\frac{x}{t + x} + \frac{a \cdot t}{z \cdot \left(t + x\right)}\right)} \]
    7. Step-by-step derivation
      1. times-frac68.6%

        \[\leadsto z \cdot \left(\frac{x}{t + x} + \color{blue}{\frac{a}{z} \cdot \frac{t}{t + x}}\right) \]
    8. Simplified68.6%

      \[\leadsto \color{blue}{z \cdot \left(\frac{x}{t + x} + \frac{a}{z} \cdot \frac{t}{t + x}\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification70.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.5 \cdot 10^{+49} \lor \neg \left(y \leq 1.5 \cdot 10^{-14}\right):\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(\frac{x}{x + t} + \frac{a}{z} \cdot \frac{t}{x + t}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 64.1% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.35 \cdot 10^{-98} \lor \neg \left(y \leq 1.05 \cdot 10^{-13}\right):\\
\;\;\;\;\left(z + a\right) - b\\

\mathbf{else}:\\
\;\;\;\;\frac{t \cdot a + x \cdot z}{x + t}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -2.35000000000000003e-98 or 1.04999999999999994e-13 < y

    1. Initial program 48.7%

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

      \[\leadsto \color{blue}{\left(a + z\right) - b} \]

    if -2.35000000000000003e-98 < y < 1.04999999999999994e-13

    1. Initial program 79.5%

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

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

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

Alternative 4: 59.5% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -8 \cdot 10^{+104} \lor \neg \left(a \leq 4.1 \cdot 10^{+59}\right):\\
\;\;\;\;a \cdot \frac{y + t}{x + \left(y + t\right)}\\

\mathbf{else}:\\
\;\;\;\;\left(z + a\right) - b\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -8e104 or 4.1e59 < a

    1. Initial program 46.5%

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

      \[\leadsto \color{blue}{\frac{a \cdot \left(t + y\right)}{t + \left(x + y\right)}} \]
    4. Step-by-step derivation
      1. associate-/l*79.7%

        \[\leadsto \color{blue}{a \cdot \frac{t + y}{t + \left(x + y\right)}} \]
      2. +-commutative79.7%

        \[\leadsto a \cdot \frac{\color{blue}{y + t}}{t + \left(x + y\right)} \]
      3. +-commutative79.7%

        \[\leadsto a \cdot \frac{y + t}{\color{blue}{\left(x + y\right) + t}} \]
      4. associate-+r+79.7%

        \[\leadsto a \cdot \frac{y + t}{\color{blue}{x + \left(y + t\right)}} \]
    5. Simplified79.7%

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

    if -8e104 < a < 4.1e59

    1. Initial program 67.3%

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

      \[\leadsto \color{blue}{\left(a + z\right) - b} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification63.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -8 \cdot 10^{+104} \lor \neg \left(a \leq 4.1 \cdot 10^{+59}\right):\\ \;\;\;\;a \cdot \frac{y + t}{x + \left(y + t\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(z + a\right) - b\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 59.7% accurate, 1.1× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.3 \cdot 10^{+214} \lor \neg \left(t \leq 1.3 \cdot 10^{+99}\right):\\
\;\;\;\;a + \frac{\left(x + y\right) \cdot z}{t}\\

\mathbf{else}:\\
\;\;\;\;\left(z + a\right) - b\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -2.2999999999999999e214 or 1.3e99 < t

    1. Initial program 51.7%

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

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

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

        \[\leadsto \color{blue}{a + \frac{a \cdot \left(\frac{z \cdot \left(x + y\right)}{a} - \left(x + \frac{b \cdot y}{a}\right)\right)}{t}} \]
      3. Taylor expanded in z around -inf 67.1%

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

      if -2.2999999999999999e214 < t < 1.3e99

      1. Initial program 64.0%

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

        \[\leadsto \color{blue}{\left(a + z\right) - b} \]
    5. Recombined 2 regimes into one program.
    6. Final simplification61.8%

      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.3 \cdot 10^{+214} \lor \neg \left(t \leq 1.3 \cdot 10^{+99}\right):\\ \;\;\;\;a + \frac{\left(x + y\right) \cdot z}{t}\\ \mathbf{else}:\\ \;\;\;\;\left(z + a\right) - b\\ \end{array} \]
    7. Add Preprocessing

    Alternative 6: 52.3% accurate, 1.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -4.2 \cdot 10^{+211}:\\ \;\;\;\;z\\ \mathbf{elif}\;x \leq -2.3 \cdot 10^{-64} \lor \neg \left(x \leq 1.08 \cdot 10^{-100}\right):\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;a - b\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (if (<= x -4.2e+211)
       z
       (if (or (<= x -2.3e-64) (not (<= x 1.08e-100))) (+ z a) (- a b))))
    double code(double x, double y, double z, double t, double a, double b) {
    	double tmp;
    	if (x <= -4.2e+211) {
    		tmp = z;
    	} else if ((x <= -2.3e-64) || !(x <= 1.08e-100)) {
    		tmp = z + a;
    	} else {
    		tmp = a - b;
    	}
    	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 <= (-4.2d+211)) then
            tmp = z
        else if ((x <= (-2.3d-64)) .or. (.not. (x <= 1.08d-100))) then
            tmp = z + a
        else
            tmp = a - b
        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 <= -4.2e+211) {
    		tmp = z;
    	} else if ((x <= -2.3e-64) || !(x <= 1.08e-100)) {
    		tmp = z + a;
    	} else {
    		tmp = a - b;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b):
    	tmp = 0
    	if x <= -4.2e+211:
    		tmp = z
    	elif (x <= -2.3e-64) or not (x <= 1.08e-100):
    		tmp = z + a
    	else:
    		tmp = a - b
    	return tmp
    
    function code(x, y, z, t, a, b)
    	tmp = 0.0
    	if (x <= -4.2e+211)
    		tmp = z;
    	elseif ((x <= -2.3e-64) || !(x <= 1.08e-100))
    		tmp = Float64(z + a);
    	else
    		tmp = Float64(a - b);
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b)
    	tmp = 0.0;
    	if (x <= -4.2e+211)
    		tmp = z;
    	elseif ((x <= -2.3e-64) || ~((x <= 1.08e-100)))
    		tmp = z + a;
    	else
    		tmp = a - b;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -4.2e+211], z, If[Or[LessEqual[x, -2.3e-64], N[Not[LessEqual[x, 1.08e-100]], $MachinePrecision]], N[(z + a), $MachinePrecision], N[(a - b), $MachinePrecision]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;x \leq -4.2 \cdot 10^{+211}:\\
    \;\;\;\;z\\
    
    \mathbf{elif}\;x \leq -2.3 \cdot 10^{-64} \lor \neg \left(x \leq 1.08 \cdot 10^{-100}\right):\\
    \;\;\;\;z + a\\
    
    \mathbf{else}:\\
    \;\;\;\;a - b\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if x < -4.2e211

      1. Initial program 55.9%

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

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

      if -4.2e211 < x < -2.3000000000000001e-64 or 1.0800000000000001e-100 < x

      1. Initial program 56.5%

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

        \[\leadsto \color{blue}{\left(a + z\right) - b} \]
      4. Taylor expanded in b around 0 55.5%

        \[\leadsto \color{blue}{a + z} \]
      5. Step-by-step derivation
        1. +-commutative55.5%

          \[\leadsto \color{blue}{z + a} \]
      6. Simplified55.5%

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

      if -2.3000000000000001e-64 < x < 1.0800000000000001e-100

      1. Initial program 70.0%

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

        \[\leadsto \color{blue}{\left(a + z\right) - b} \]
      4. Taylor expanded in z around 0 57.6%

        \[\leadsto \color{blue}{a - b} \]
    3. Recombined 3 regimes into one program.
    4. Final simplification56.1%

      \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.2 \cdot 10^{+211}:\\ \;\;\;\;z\\ \mathbf{elif}\;x \leq -2.3 \cdot 10^{-64} \lor \neg \left(x \leq 1.08 \cdot 10^{-100}\right):\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;a - b\\ \end{array} \]
    5. Add Preprocessing

    Alternative 7: 53.5% accurate, 1.6× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -2.4 \cdot 10^{-60} \lor \neg \left(a \leq 9.8 \cdot 10^{-135}\right):\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;z - b\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (if (or (<= a -2.4e-60) (not (<= a 9.8e-135))) (+ z a) (- z b)))
    double code(double x, double y, double z, double t, double a, double b) {
    	double tmp;
    	if ((a <= -2.4e-60) || !(a <= 9.8e-135)) {
    		tmp = z + a;
    	} else {
    		tmp = z - b;
    	}
    	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 ((a <= (-2.4d-60)) .or. (.not. (a <= 9.8d-135))) then
            tmp = z + a
        else
            tmp = z - b
        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 ((a <= -2.4e-60) || !(a <= 9.8e-135)) {
    		tmp = z + a;
    	} else {
    		tmp = z - b;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b):
    	tmp = 0
    	if (a <= -2.4e-60) or not (a <= 9.8e-135):
    		tmp = z + a
    	else:
    		tmp = z - b
    	return tmp
    
    function code(x, y, z, t, a, b)
    	tmp = 0.0
    	if ((a <= -2.4e-60) || !(a <= 9.8e-135))
    		tmp = Float64(z + a);
    	else
    		tmp = Float64(z - b);
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b)
    	tmp = 0.0;
    	if ((a <= -2.4e-60) || ~((a <= 9.8e-135)))
    		tmp = z + a;
    	else
    		tmp = z - b;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -2.4e-60], N[Not[LessEqual[a, 9.8e-135]], $MachinePrecision]], N[(z + a), $MachinePrecision], N[(z - b), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;a \leq -2.4 \cdot 10^{-60} \lor \neg \left(a \leq 9.8 \cdot 10^{-135}\right):\\
    \;\;\;\;z + a\\
    
    \mathbf{else}:\\
    \;\;\;\;z - b\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if a < -2.40000000000000009e-60 or 9.8000000000000005e-135 < a

      1. Initial program 56.6%

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

        \[\leadsto \color{blue}{\left(a + z\right) - b} \]
      4. Taylor expanded in b around 0 57.3%

        \[\leadsto \color{blue}{a + z} \]
      5. Step-by-step derivation
        1. +-commutative57.3%

          \[\leadsto \color{blue}{z + a} \]
      6. Simplified57.3%

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

      if -2.40000000000000009e-60 < a < 9.8000000000000005e-135

      1. Initial program 68.6%

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

        \[\leadsto \color{blue}{\left(a + z\right) - b} \]
      4. Taylor expanded in a around 0 51.6%

        \[\leadsto \color{blue}{z - b} \]
    3. Recombined 2 regimes into one program.
    4. Final simplification55.2%

      \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.4 \cdot 10^{-60} \lor \neg \left(a \leq 9.8 \cdot 10^{-135}\right):\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;z - b\\ \end{array} \]
    5. Add Preprocessing

    Alternative 8: 53.8% accurate, 1.6× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.7 \cdot 10^{+214}:\\ \;\;\;\;a\\ \mathbf{elif}\;t \leq 2.35 \cdot 10^{+253}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;a\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (if (<= t -1.7e+214) a (if (<= t 2.35e+253) (+ z a) a)))
    double code(double x, double y, double z, double t, double a, double b) {
    	double tmp;
    	if (t <= -1.7e+214) {
    		tmp = a;
    	} else if (t <= 2.35e+253) {
    		tmp = z + a;
    	} 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 (t <= (-1.7d+214)) then
            tmp = a
        else if (t <= 2.35d+253) then
            tmp = z + a
        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 (t <= -1.7e+214) {
    		tmp = a;
    	} else if (t <= 2.35e+253) {
    		tmp = z + a;
    	} else {
    		tmp = a;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b):
    	tmp = 0
    	if t <= -1.7e+214:
    		tmp = a
    	elif t <= 2.35e+253:
    		tmp = z + a
    	else:
    		tmp = a
    	return tmp
    
    function code(x, y, z, t, a, b)
    	tmp = 0.0
    	if (t <= -1.7e+214)
    		tmp = a;
    	elseif (t <= 2.35e+253)
    		tmp = Float64(z + a);
    	else
    		tmp = a;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b)
    	tmp = 0.0;
    	if (t <= -1.7e+214)
    		tmp = a;
    	elseif (t <= 2.35e+253)
    		tmp = z + a;
    	else
    		tmp = a;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.7e+214], a, If[LessEqual[t, 2.35e+253], N[(z + a), $MachinePrecision], a]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;t \leq -1.7 \cdot 10^{+214}:\\
    \;\;\;\;a\\
    
    \mathbf{elif}\;t \leq 2.35 \cdot 10^{+253}:\\
    \;\;\;\;z + a\\
    
    \mathbf{else}:\\
    \;\;\;\;a\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if t < -1.6999999999999999e214 or 2.35000000000000011e253 < t

      1. Initial program 42.1%

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

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

      if -1.6999999999999999e214 < t < 2.35000000000000011e253

      1. Initial program 63.8%

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

        \[\leadsto \color{blue}{\left(a + z\right) - b} \]
      4. Taylor expanded in b around 0 51.8%

        \[\leadsto \color{blue}{a + z} \]
      5. Step-by-step derivation
        1. +-commutative51.8%

          \[\leadsto \color{blue}{z + a} \]
      6. Simplified51.8%

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

    Alternative 9: 57.9% accurate, 1.7× speedup?

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

      1. Initial program 62.6%

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

        \[\leadsto \color{blue}{\left(a + z\right) - b} \]

      if 6.5000000000000002e137 < t

      1. Initial program 51.3%

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

        \[\leadsto \color{blue}{z \cdot \left(\left(\frac{x}{t + \left(x + y\right)} + \left(\frac{y}{t + \left(x + y\right)} + \frac{a \cdot \left(t + y\right)}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)} \]
      4. Step-by-step derivation
        1. associate--l+58.0%

          \[\leadsto z \cdot \color{blue}{\left(\frac{x}{t + \left(x + y\right)} + \left(\left(\frac{y}{t + \left(x + y\right)} + \frac{a \cdot \left(t + y\right)}{z \cdot \left(t + \left(x + y\right)\right)}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right)} \]
        2. +-commutative58.0%

          \[\leadsto z \cdot \left(\frac{x}{\color{blue}{\left(x + y\right) + t}} + \left(\left(\frac{y}{t + \left(x + y\right)} + \frac{a \cdot \left(t + y\right)}{z \cdot \left(t + \left(x + y\right)\right)}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
        3. associate-+r+58.0%

          \[\leadsto z \cdot \left(\frac{x}{\color{blue}{x + \left(y + t\right)}} + \left(\left(\frac{y}{t + \left(x + y\right)} + \frac{a \cdot \left(t + y\right)}{z \cdot \left(t + \left(x + y\right)\right)}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
        4. +-commutative58.0%

          \[\leadsto z \cdot \left(\frac{x}{x + \left(y + t\right)} + \left(\left(\frac{y}{\color{blue}{\left(x + y\right) + t}} + \frac{a \cdot \left(t + y\right)}{z \cdot \left(t + \left(x + y\right)\right)}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
        5. associate-+r+58.0%

          \[\leadsto z \cdot \left(\frac{x}{x + \left(y + t\right)} + \left(\left(\frac{y}{\color{blue}{x + \left(y + t\right)}} + \frac{a \cdot \left(t + y\right)}{z \cdot \left(t + \left(x + y\right)\right)}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
        6. associate-/l*66.0%

          \[\leadsto z \cdot \left(\frac{x}{x + \left(y + t\right)} + \left(\left(\frac{y}{x + \left(y + t\right)} + \color{blue}{a \cdot \frac{t + y}{z \cdot \left(t + \left(x + y\right)\right)}}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
        7. +-commutative66.0%

          \[\leadsto z \cdot \left(\frac{x}{x + \left(y + t\right)} + \left(\left(\frac{y}{x + \left(y + t\right)} + a \cdot \frac{\color{blue}{y + t}}{z \cdot \left(t + \left(x + y\right)\right)}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
        8. +-commutative66.0%

          \[\leadsto z \cdot \left(\frac{x}{x + \left(y + t\right)} + \left(\left(\frac{y}{x + \left(y + t\right)} + a \cdot \frac{y + t}{z \cdot \color{blue}{\left(\left(x + y\right) + t\right)}}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
        9. associate-+r+66.0%

          \[\leadsto z \cdot \left(\frac{x}{x + \left(y + t\right)} + \left(\left(\frac{y}{x + \left(y + t\right)} + a \cdot \frac{y + t}{z \cdot \color{blue}{\left(x + \left(y + t\right)\right)}}\right) - \frac{b \cdot y}{z \cdot \left(t + \left(x + y\right)\right)}\right)\right) \]
        10. associate-/r*58.2%

          \[\leadsto z \cdot \left(\frac{x}{x + \left(y + t\right)} + \left(\left(\frac{y}{x + \left(y + t\right)} + a \cdot \frac{y + t}{z \cdot \left(x + \left(y + t\right)\right)}\right) - \color{blue}{\frac{\frac{b \cdot y}{z}}{t + \left(x + y\right)}}\right)\right) \]
      5. Simplified58.2%

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

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

          \[\leadsto z \cdot \left(\frac{x}{t + x} + \color{blue}{\frac{a}{z} \cdot \frac{t}{t + x}}\right) \]
      8. Simplified71.7%

        \[\leadsto \color{blue}{z \cdot \left(\frac{x}{t + x} + \frac{a}{z} \cdot \frac{t}{t + x}\right)} \]
      9. Taylor expanded in z around 0 35.4%

        \[\leadsto \color{blue}{\frac{a \cdot t}{t + x}} \]
      10. Step-by-step derivation
        1. associate-*r/68.7%

          \[\leadsto \color{blue}{a \cdot \frac{t}{t + x}} \]
        2. +-commutative68.7%

          \[\leadsto a \cdot \frac{t}{\color{blue}{x + t}} \]
      11. Simplified68.7%

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 6.5 \cdot 10^{+137}:\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{else}:\\ \;\;\;\;a \cdot \frac{t}{x + t}\\ \end{array} \]
    5. Add Preprocessing

    Alternative 10: 57.1% accurate, 1.7× speedup?

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

      1. Initial program 62.0%

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

        \[\leadsto \color{blue}{\left(a + z\right) - b} \]

      if 1.1499999999999999e227 < t

      1. Initial program 49.9%

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

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

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

          \[\leadsto \color{blue}{a + \frac{a \cdot \left(\frac{z \cdot \left(x + y\right)}{a} - \left(x + \frac{b \cdot y}{a}\right)\right)}{t}} \]
        3. Taylor expanded in a around inf 76.6%

          \[\leadsto \color{blue}{a \cdot \left(1 - \frac{x}{t}\right)} \]
      5. Recombined 2 regimes into one program.
      6. Final simplification59.2%

        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 1.15 \cdot 10^{+227}:\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(1 - \frac{x}{t}\right)\\ \end{array} \]
      7. Add Preprocessing

      Alternative 11: 44.0% accurate, 1.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -6.5 \cdot 10^{+21}:\\ \;\;\;\;z\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{+154}:\\ \;\;\;\;a\\ \mathbf{else}:\\ \;\;\;\;z\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (if (<= z -6.5e+21) z (if (<= z 2.8e+154) a z)))
      double code(double x, double y, double z, double t, double a, double b) {
      	double tmp;
      	if (z <= -6.5e+21) {
      		tmp = z;
      	} else if (z <= 2.8e+154) {
      		tmp = a;
      	} else {
      		tmp = z;
      	}
      	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 (z <= (-6.5d+21)) then
              tmp = z
          else if (z <= 2.8d+154) then
              tmp = a
          else
              tmp = z
          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 (z <= -6.5e+21) {
      		tmp = z;
      	} else if (z <= 2.8e+154) {
      		tmp = a;
      	} else {
      		tmp = z;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b):
      	tmp = 0
      	if z <= -6.5e+21:
      		tmp = z
      	elif z <= 2.8e+154:
      		tmp = a
      	else:
      		tmp = z
      	return tmp
      
      function code(x, y, z, t, a, b)
      	tmp = 0.0
      	if (z <= -6.5e+21)
      		tmp = z;
      	elseif (z <= 2.8e+154)
      		tmp = a;
      	else
      		tmp = z;
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a, b)
      	tmp = 0.0;
      	if (z <= -6.5e+21)
      		tmp = z;
      	elseif (z <= 2.8e+154)
      		tmp = a;
      	else
      		tmp = z;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -6.5e+21], z, If[LessEqual[z, 2.8e+154], a, z]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -6.5 \cdot 10^{+21}:\\
      \;\;\;\;z\\
      
      \mathbf{elif}\;z \leq 2.8 \cdot 10^{+154}:\\
      \;\;\;\;a\\
      
      \mathbf{else}:\\
      \;\;\;\;z\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -6.5e21 or 2.7999999999999999e154 < z

        1. Initial program 41.4%

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

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

        if -6.5e21 < z < 2.7999999999999999e154

        1. Initial program 70.0%

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

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

      Alternative 12: 57.1% accurate, 2.1× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq 1.3 \cdot 10^{+227}:\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{else}:\\ \;\;\;\;a\\ \end{array} \end{array} \]
      (FPCore (x y z t a b) :precision binary64 (if (<= t 1.3e+227) (- (+ z a) b) a))
      double code(double x, double y, double z, double t, double a, double b) {
      	double tmp;
      	if (t <= 1.3e+227) {
      		tmp = (z + a) - b;
      	} 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 (t <= 1.3d+227) then
              tmp = (z + a) - b
          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 (t <= 1.3e+227) {
      		tmp = (z + a) - b;
      	} else {
      		tmp = a;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b):
      	tmp = 0
      	if t <= 1.3e+227:
      		tmp = (z + a) - b
      	else:
      		tmp = a
      	return tmp
      
      function code(x, y, z, t, a, b)
      	tmp = 0.0
      	if (t <= 1.3e+227)
      		tmp = Float64(Float64(z + a) - b);
      	else
      		tmp = a;
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a, b)
      	tmp = 0.0;
      	if (t <= 1.3e+227)
      		tmp = (z + a) - b;
      	else
      		tmp = a;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 1.3e+227], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision], a]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;t \leq 1.3 \cdot 10^{+227}:\\
      \;\;\;\;\left(z + a\right) - b\\
      
      \mathbf{else}:\\
      \;\;\;\;a\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if t < 1.29999999999999991e227

        1. Initial program 62.0%

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

          \[\leadsto \color{blue}{\left(a + z\right) - b} \]

        if 1.29999999999999991e227 < t

        1. Initial program 49.9%

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

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 1.3 \cdot 10^{+227}:\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{else}:\\ \;\;\;\;a\\ \end{array} \]
      5. Add Preprocessing

      Alternative 13: 32.6% 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 61.0%

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

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

      Developer Target 1: 82.4% accurate, 0.3× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x + t\right) + y\\ t_2 := \left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b\\ t_3 := \frac{t\_2}{t\_1}\\ t_4 := \left(z + a\right) - b\\ \mathbf{if}\;t\_3 < -3.5813117084150564 \cdot 10^{+153}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;t\_3 < 1.2285964308315609 \cdot 10^{+82}:\\ \;\;\;\;\frac{1}{\frac{t\_1}{t\_2}}\\ \mathbf{else}:\\ \;\;\;\;t\_4\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (let* ((t_1 (+ (+ x t) y))
              (t_2 (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)))
              (t_3 (/ t_2 t_1))
              (t_4 (- (+ z a) b)))
         (if (< t_3 -3.5813117084150564e+153)
           t_4
           (if (< t_3 1.2285964308315609e+82) (/ 1.0 (/ t_1 t_2)) t_4))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = (x + t) + y;
      	double t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b);
      	double t_3 = t_2 / t_1;
      	double t_4 = (z + a) - b;
      	double tmp;
      	if (t_3 < -3.5813117084150564e+153) {
      		tmp = t_4;
      	} else if (t_3 < 1.2285964308315609e+82) {
      		tmp = 1.0 / (t_1 / t_2);
      	} else {
      		tmp = t_4;
      	}
      	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) :: t_3
          real(8) :: t_4
          real(8) :: tmp
          t_1 = (x + t) + y
          t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b)
          t_3 = t_2 / t_1
          t_4 = (z + a) - b
          if (t_3 < (-3.5813117084150564d+153)) then
              tmp = t_4
          else if (t_3 < 1.2285964308315609d+82) then
              tmp = 1.0d0 / (t_1 / t_2)
          else
              tmp = t_4
          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 + t) + y;
      	double t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b);
      	double t_3 = t_2 / t_1;
      	double t_4 = (z + a) - b;
      	double tmp;
      	if (t_3 < -3.5813117084150564e+153) {
      		tmp = t_4;
      	} else if (t_3 < 1.2285964308315609e+82) {
      		tmp = 1.0 / (t_1 / t_2);
      	} else {
      		tmp = t_4;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b):
      	t_1 = (x + t) + y
      	t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b)
      	t_3 = t_2 / t_1
      	t_4 = (z + a) - b
      	tmp = 0
      	if t_3 < -3.5813117084150564e+153:
      		tmp = t_4
      	elif t_3 < 1.2285964308315609e+82:
      		tmp = 1.0 / (t_1 / t_2)
      	else:
      		tmp = t_4
      	return tmp
      
      function code(x, y, z, t, a, b)
      	t_1 = Float64(Float64(x + t) + y)
      	t_2 = Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b))
      	t_3 = Float64(t_2 / t_1)
      	t_4 = Float64(Float64(z + a) - b)
      	tmp = 0.0
      	if (t_3 < -3.5813117084150564e+153)
      		tmp = t_4;
      	elseif (t_3 < 1.2285964308315609e+82)
      		tmp = Float64(1.0 / Float64(t_1 / t_2));
      	else
      		tmp = t_4;
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a, b)
      	t_1 = (x + t) + y;
      	t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b);
      	t_3 = t_2 / t_1;
      	t_4 = (z + a) - b;
      	tmp = 0.0;
      	if (t_3 < -3.5813117084150564e+153)
      		tmp = t_4;
      	elseif (t_3 < 1.2285964308315609e+82)
      		tmp = 1.0 / (t_1 / t_2);
      	else
      		tmp = t_4;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 / t$95$1), $MachinePrecision]}, Block[{t$95$4 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, If[Less[t$95$3, -3.5813117084150564e+153], t$95$4, If[Less[t$95$3, 1.2285964308315609e+82], N[(1.0 / N[(t$95$1 / t$95$2), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \left(x + t\right) + y\\
      t_2 := \left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b\\
      t_3 := \frac{t\_2}{t\_1}\\
      t_4 := \left(z + a\right) - b\\
      \mathbf{if}\;t\_3 < -3.5813117084150564 \cdot 10^{+153}:\\
      \;\;\;\;t\_4\\
      
      \mathbf{elif}\;t\_3 < 1.2285964308315609 \cdot 10^{+82}:\\
      \;\;\;\;\frac{1}{\frac{t\_1}{t\_2}}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_4\\
      
      
      \end{array}
      \end{array}
      

      Reproduce

      ?
      herbie shell --seed 2024181 
      (FPCore (x y z t a b)
        :name "AI.Clustering.Hierarchical.Internal:ward from clustering-0.2.1"
        :precision binary64
      
        :alt
        (! :herbie-platform default (if (< (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)) -3581311708415056400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (+ z a) b) (if (< (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)) 12285964308315609000000000000000000000000000000000000000000000000000000000000000000) (/ 1 (/ (+ (+ x t) y) (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)))) (- (+ z a) b))))
      
        (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)))