Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, J

Percentage Accurate: 79.4% → 91.3%
Time: 16.4s
Alternatives: 16
Speedup: 1.1×

Specification

?
\[\begin{array}{l} \\ \frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
	return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    code = ((((x * 9.0d0) * y) - (((z * 4.0d0) * t) * a)) + b) / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
def code(x, y, z, t, a, b, c):
	return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)
function code(x, y, z, t, a, b, c)
	return Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c))
end
function tmp = code(x, y, z, t, a, b, c)
	tmp = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 16 alternatives:

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

Initial Program: 79.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
	return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    code = ((((x * 9.0d0) * y) - (((z * 4.0d0) * t) * a)) + b) / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
def code(x, y, z, t, a, b, c):
	return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)
function code(x, y, z, t, a, b, c)
	return Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c))
end
function tmp = code(x, y, z, t, a, b, c)
	tmp = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 91.3% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(9 \cdot y\right)\\ \mathbf{if}\;z \leq -1.95 \cdot 10^{-26} \lor \neg \left(z \leq 1.12 \cdot 10^{-48}\right):\\ \;\;\;\;\frac{\frac{t_1 + b}{z} + t \cdot \left(a \cdot -4\right)}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{b + \left(t_1 - 4 \cdot \left(t \cdot \left(z \cdot a\right)\right)\right)}{z \cdot c}\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (let* ((t_1 (* x (* 9.0 y))))
   (if (or (<= z -1.95e-26) (not (<= z 1.12e-48)))
     (/ (+ (/ (+ t_1 b) z) (* t (* a -4.0))) c)
     (/ (+ b (- t_1 (* 4.0 (* t (* z a))))) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = x * (9.0 * y);
	double tmp;
	if ((z <= -1.95e-26) || !(z <= 1.12e-48)) {
		tmp = (((t_1 + b) / z) + (t * (a * -4.0))) / c;
	} else {
		tmp = (b + (t_1 - (4.0 * (t * (z * a))))) / (z * c);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: t_1
    real(8) :: tmp
    t_1 = x * (9.0d0 * y)
    if ((z <= (-1.95d-26)) .or. (.not. (z <= 1.12d-48))) then
        tmp = (((t_1 + b) / z) + (t * (a * (-4.0d0)))) / c
    else
        tmp = (b + (t_1 - (4.0d0 * (t * (z * a))))) / (z * c)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = x * (9.0 * y);
	double tmp;
	if ((z <= -1.95e-26) || !(z <= 1.12e-48)) {
		tmp = (((t_1 + b) / z) + (t * (a * -4.0))) / c;
	} else {
		tmp = (b + (t_1 - (4.0 * (t * (z * a))))) / (z * c);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	t_1 = x * (9.0 * y)
	tmp = 0
	if (z <= -1.95e-26) or not (z <= 1.12e-48):
		tmp = (((t_1 + b) / z) + (t * (a * -4.0))) / c
	else:
		tmp = (b + (t_1 - (4.0 * (t * (z * a))))) / (z * c)
	return tmp
function code(x, y, z, t, a, b, c)
	t_1 = Float64(x * Float64(9.0 * y))
	tmp = 0.0
	if ((z <= -1.95e-26) || !(z <= 1.12e-48))
		tmp = Float64(Float64(Float64(Float64(t_1 + b) / z) + Float64(t * Float64(a * -4.0))) / c);
	else
		tmp = Float64(Float64(b + Float64(t_1 - Float64(4.0 * Float64(t * Float64(z * a))))) / Float64(z * c));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	t_1 = x * (9.0 * y);
	tmp = 0.0;
	if ((z <= -1.95e-26) || ~((z <= 1.12e-48)))
		tmp = (((t_1 + b) / z) + (t * (a * -4.0))) / c;
	else
		tmp = (b + (t_1 - (4.0 * (t * (z * a))))) / (z * c);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[z, -1.95e-26], N[Not[LessEqual[z, 1.12e-48]], $MachinePrecision]], N[(N[(N[(N[(t$95$1 + b), $MachinePrecision] / z), $MachinePrecision] + N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(t$95$1 - N[(4.0 * N[(t * N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot \left(9 \cdot y\right)\\
\mathbf{if}\;z \leq -1.95 \cdot 10^{-26} \lor \neg \left(z \leq 1.12 \cdot 10^{-48}\right):\\
\;\;\;\;\frac{\frac{t_1 + b}{z} + t \cdot \left(a \cdot -4\right)}{c}\\

\mathbf{else}:\\
\;\;\;\;\frac{b + \left(t_1 - 4 \cdot \left(t \cdot \left(z \cdot a\right)\right)\right)}{z \cdot c}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.94999999999999993e-26 or 1.11999999999999999e-48 < z

    1. Initial program 73.6%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-/r*79.2%

        \[\leadsto \color{blue}{\frac{\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z}}{c}} \]
    3. Simplified93.1%

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

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

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

    if -1.94999999999999993e-26 < z < 1.11999999999999999e-48

    1. Initial program 94.5%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*94.5%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*87.7%

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified87.7%

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

      \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{4 \cdot \left(a \cdot \left(t \cdot z\right)\right)}\right) + b}{z \cdot c} \]
    5. Step-by-step derivation
      1. associate-*r*87.7%

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - 4 \cdot \left(\color{blue}{\left(t \cdot a\right)} \cdot z\right)\right) + b}{z \cdot c} \]
      3. associate-*l*96.0%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.95 \cdot 10^{-26} \lor \neg \left(z \leq 1.12 \cdot 10^{-48}\right):\\ \;\;\;\;\frac{\frac{x \cdot \left(9 \cdot y\right) + b}{z} + t \cdot \left(a \cdot -4\right)}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - 4 \cdot \left(t \cdot \left(z \cdot a\right)\right)\right)}{z \cdot c}\\ \end{array} \]

Alternative 2: 48.0% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := 9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\ t_2 := \frac{\frac{b}{c}}{z}\\ \mathbf{if}\;b \leq -4.5 \cdot 10^{-65}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq -2.95 \cdot 10^{-204}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 7.8 \cdot 10^{-283}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 3 \cdot 10^{-141}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 7.5 \cdot 10^{-30}:\\ \;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{+49}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (let* ((t_1 (* 9.0 (* x (/ y (* z c))))) (t_2 (/ (/ b c) z)))
   (if (<= b -4.5e-65)
     t_2
     (if (<= b -2.95e-204)
       t_1
       (if (<= b 7.8e-283)
         (* -4.0 (/ (* t a) c))
         (if (<= b 3e-141)
           t_1
           (if (<= b 7.5e-30)
             (* -4.0 (/ a (/ c t)))
             (if (<= b 2.2e+49) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = 9.0 * (x * (y / (z * c)));
	double t_2 = (b / c) / z;
	double tmp;
	if (b <= -4.5e-65) {
		tmp = t_2;
	} else if (b <= -2.95e-204) {
		tmp = t_1;
	} else if (b <= 7.8e-283) {
		tmp = -4.0 * ((t * a) / c);
	} else if (b <= 3e-141) {
		tmp = t_1;
	} else if (b <= 7.5e-30) {
		tmp = -4.0 * (a / (c / t));
	} else if (b <= 2.2e+49) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = 9.0d0 * (x * (y / (z * c)))
    t_2 = (b / c) / z
    if (b <= (-4.5d-65)) then
        tmp = t_2
    else if (b <= (-2.95d-204)) then
        tmp = t_1
    else if (b <= 7.8d-283) then
        tmp = (-4.0d0) * ((t * a) / c)
    else if (b <= 3d-141) then
        tmp = t_1
    else if (b <= 7.5d-30) then
        tmp = (-4.0d0) * (a / (c / t))
    else if (b <= 2.2d+49) 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 c) {
	double t_1 = 9.0 * (x * (y / (z * c)));
	double t_2 = (b / c) / z;
	double tmp;
	if (b <= -4.5e-65) {
		tmp = t_2;
	} else if (b <= -2.95e-204) {
		tmp = t_1;
	} else if (b <= 7.8e-283) {
		tmp = -4.0 * ((t * a) / c);
	} else if (b <= 3e-141) {
		tmp = t_1;
	} else if (b <= 7.5e-30) {
		tmp = -4.0 * (a / (c / t));
	} else if (b <= 2.2e+49) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	t_1 = 9.0 * (x * (y / (z * c)))
	t_2 = (b / c) / z
	tmp = 0
	if b <= -4.5e-65:
		tmp = t_2
	elif b <= -2.95e-204:
		tmp = t_1
	elif b <= 7.8e-283:
		tmp = -4.0 * ((t * a) / c)
	elif b <= 3e-141:
		tmp = t_1
	elif b <= 7.5e-30:
		tmp = -4.0 * (a / (c / t))
	elif b <= 2.2e+49:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c)
	t_1 = Float64(9.0 * Float64(x * Float64(y / Float64(z * c))))
	t_2 = Float64(Float64(b / c) / z)
	tmp = 0.0
	if (b <= -4.5e-65)
		tmp = t_2;
	elseif (b <= -2.95e-204)
		tmp = t_1;
	elseif (b <= 7.8e-283)
		tmp = Float64(-4.0 * Float64(Float64(t * a) / c));
	elseif (b <= 3e-141)
		tmp = t_1;
	elseif (b <= 7.5e-30)
		tmp = Float64(-4.0 * Float64(a / Float64(c / t)));
	elseif (b <= 2.2e+49)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	t_1 = 9.0 * (x * (y / (z * c)));
	t_2 = (b / c) / z;
	tmp = 0.0;
	if (b <= -4.5e-65)
		tmp = t_2;
	elseif (b <= -2.95e-204)
		tmp = t_1;
	elseif (b <= 7.8e-283)
		tmp = -4.0 * ((t * a) / c);
	elseif (b <= 3e-141)
		tmp = t_1;
	elseif (b <= 7.5e-30)
		tmp = -4.0 * (a / (c / t));
	elseif (b <= 2.2e+49)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(9.0 * N[(x * N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[b, -4.5e-65], t$95$2, If[LessEqual[b, -2.95e-204], t$95$1, If[LessEqual[b, 7.8e-283], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3e-141], t$95$1, If[LessEqual[b, 7.5e-30], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e+49], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := 9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\
t_2 := \frac{\frac{b}{c}}{z}\\
\mathbf{if}\;b \leq -4.5 \cdot 10^{-65}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq -2.95 \cdot 10^{-204}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq 7.8 \cdot 10^{-283}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\

\mathbf{elif}\;b \leq 3 \cdot 10^{-141}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq 7.5 \cdot 10^{-30}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\

\mathbf{elif}\;b \leq 2.2 \cdot 10^{+49}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if b < -4.4999999999999998e-65 or 2.2000000000000001e49 < b

    1. Initial program 86.4%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*86.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*84.0%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    5. Step-by-step derivation
      1. associate-/r*57.2%

        \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
    6. Simplified57.2%

      \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]

    if -4.4999999999999998e-65 < b < -2.9500000000000001e-204 or 7.8000000000000004e-283 < b < 2.99999999999999983e-141 or 7.5000000000000006e-30 < b < 2.2000000000000001e49

    1. Initial program 81.6%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*81.8%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*81.8%

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified81.8%

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

      \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{4 \cdot \left(a \cdot \left(t \cdot z\right)\right)}\right) + b}{z \cdot c} \]
    5. Step-by-step derivation
      1. associate-*r*81.8%

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - 4 \cdot \left(\color{blue}{\left(t \cdot a\right)} \cdot z\right)\right) + b}{z \cdot c} \]
      3. associate-*l*82.7%

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - 4 \cdot \color{blue}{\left(t \cdot \left(a \cdot z\right)\right)}\right) + b}{z \cdot c} \]
    6. Simplified82.7%

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

      \[\leadsto \color{blue}{9 \cdot \frac{y \cdot x}{c \cdot z}} \]
    8. Step-by-step derivation
      1. associate-/l*59.4%

        \[\leadsto 9 \cdot \color{blue}{\frac{y}{\frac{c \cdot z}{x}}} \]
      2. *-commutative59.4%

        \[\leadsto 9 \cdot \frac{y}{\frac{\color{blue}{z \cdot c}}{x}} \]
      3. associate-/r/57.1%

        \[\leadsto 9 \cdot \color{blue}{\left(\frac{y}{z \cdot c} \cdot x\right)} \]
    9. Simplified57.1%

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

    if -2.9500000000000001e-204 < b < 7.8000000000000004e-283

    1. Initial program 76.3%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*76.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*83.2%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]

    if 2.99999999999999983e-141 < b < 7.5000000000000006e-30

    1. Initial program 87.6%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*87.5%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*79.4%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]
    5. Step-by-step derivation
      1. *-commutative54.1%

        \[\leadsto \color{blue}{\frac{a \cdot t}{c} \cdot -4} \]
      2. associate-/l*54.0%

        \[\leadsto \color{blue}{\frac{a}{\frac{c}{t}}} \cdot -4 \]
    6. Simplified54.0%

      \[\leadsto \color{blue}{\frac{a}{\frac{c}{t}} \cdot -4} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification57.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -4.5 \cdot 10^{-65}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \mathbf{elif}\;b \leq -2.95 \cdot 10^{-204}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\ \mathbf{elif}\;b \leq 7.8 \cdot 10^{-283}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 3 \cdot 10^{-141}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\ \mathbf{elif}\;b \leq 7.5 \cdot 10^{-30}:\\ \;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{+49}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \end{array} \]

Alternative 3: 48.1% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := 9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\ t_2 := \frac{\frac{b}{c}}{z}\\ \mathbf{if}\;b \leq -3.8 \cdot 10^{-65}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq -1.24 \cdot 10^{-204}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 4.6 \cdot 10^{-283}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 1.45 \cdot 10^{-139}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 5.5 \cdot 10^{-28}:\\ \;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\ \mathbf{elif}\;b \leq 1.05 \cdot 10^{+46}:\\ \;\;\;\;9 \cdot \frac{y}{\frac{z \cdot c}{x}}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (let* ((t_1 (* 9.0 (* x (/ y (* z c))))) (t_2 (/ (/ b c) z)))
   (if (<= b -3.8e-65)
     t_2
     (if (<= b -1.24e-204)
       t_1
       (if (<= b 4.6e-283)
         (* -4.0 (/ (* t a) c))
         (if (<= b 1.45e-139)
           t_1
           (if (<= b 5.5e-28)
             (* -4.0 (/ a (/ c t)))
             (if (<= b 1.05e+46) (* 9.0 (/ y (/ (* z c) x))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = 9.0 * (x * (y / (z * c)));
	double t_2 = (b / c) / z;
	double tmp;
	if (b <= -3.8e-65) {
		tmp = t_2;
	} else if (b <= -1.24e-204) {
		tmp = t_1;
	} else if (b <= 4.6e-283) {
		tmp = -4.0 * ((t * a) / c);
	} else if (b <= 1.45e-139) {
		tmp = t_1;
	} else if (b <= 5.5e-28) {
		tmp = -4.0 * (a / (c / t));
	} else if (b <= 1.05e+46) {
		tmp = 9.0 * (y / ((z * c) / x));
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = 9.0d0 * (x * (y / (z * c)))
    t_2 = (b / c) / z
    if (b <= (-3.8d-65)) then
        tmp = t_2
    else if (b <= (-1.24d-204)) then
        tmp = t_1
    else if (b <= 4.6d-283) then
        tmp = (-4.0d0) * ((t * a) / c)
    else if (b <= 1.45d-139) then
        tmp = t_1
    else if (b <= 5.5d-28) then
        tmp = (-4.0d0) * (a / (c / t))
    else if (b <= 1.05d+46) then
        tmp = 9.0d0 * (y / ((z * c) / x))
    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 c) {
	double t_1 = 9.0 * (x * (y / (z * c)));
	double t_2 = (b / c) / z;
	double tmp;
	if (b <= -3.8e-65) {
		tmp = t_2;
	} else if (b <= -1.24e-204) {
		tmp = t_1;
	} else if (b <= 4.6e-283) {
		tmp = -4.0 * ((t * a) / c);
	} else if (b <= 1.45e-139) {
		tmp = t_1;
	} else if (b <= 5.5e-28) {
		tmp = -4.0 * (a / (c / t));
	} else if (b <= 1.05e+46) {
		tmp = 9.0 * (y / ((z * c) / x));
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	t_1 = 9.0 * (x * (y / (z * c)))
	t_2 = (b / c) / z
	tmp = 0
	if b <= -3.8e-65:
		tmp = t_2
	elif b <= -1.24e-204:
		tmp = t_1
	elif b <= 4.6e-283:
		tmp = -4.0 * ((t * a) / c)
	elif b <= 1.45e-139:
		tmp = t_1
	elif b <= 5.5e-28:
		tmp = -4.0 * (a / (c / t))
	elif b <= 1.05e+46:
		tmp = 9.0 * (y / ((z * c) / x))
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c)
	t_1 = Float64(9.0 * Float64(x * Float64(y / Float64(z * c))))
	t_2 = Float64(Float64(b / c) / z)
	tmp = 0.0
	if (b <= -3.8e-65)
		tmp = t_2;
	elseif (b <= -1.24e-204)
		tmp = t_1;
	elseif (b <= 4.6e-283)
		tmp = Float64(-4.0 * Float64(Float64(t * a) / c));
	elseif (b <= 1.45e-139)
		tmp = t_1;
	elseif (b <= 5.5e-28)
		tmp = Float64(-4.0 * Float64(a / Float64(c / t)));
	elseif (b <= 1.05e+46)
		tmp = Float64(9.0 * Float64(y / Float64(Float64(z * c) / x)));
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	t_1 = 9.0 * (x * (y / (z * c)));
	t_2 = (b / c) / z;
	tmp = 0.0;
	if (b <= -3.8e-65)
		tmp = t_2;
	elseif (b <= -1.24e-204)
		tmp = t_1;
	elseif (b <= 4.6e-283)
		tmp = -4.0 * ((t * a) / c);
	elseif (b <= 1.45e-139)
		tmp = t_1;
	elseif (b <= 5.5e-28)
		tmp = -4.0 * (a / (c / t));
	elseif (b <= 1.05e+46)
		tmp = 9.0 * (y / ((z * c) / x));
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(9.0 * N[(x * N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[b, -3.8e-65], t$95$2, If[LessEqual[b, -1.24e-204], t$95$1, If[LessEqual[b, 4.6e-283], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.45e-139], t$95$1, If[LessEqual[b, 5.5e-28], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e+46], N[(9.0 * N[(y / N[(N[(z * c), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := 9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\
t_2 := \frac{\frac{b}{c}}{z}\\
\mathbf{if}\;b \leq -3.8 \cdot 10^{-65}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq -1.24 \cdot 10^{-204}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq 4.6 \cdot 10^{-283}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\

\mathbf{elif}\;b \leq 1.45 \cdot 10^{-139}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq 5.5 \cdot 10^{-28}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\

\mathbf{elif}\;b \leq 1.05 \cdot 10^{+46}:\\
\;\;\;\;9 \cdot \frac{y}{\frac{z \cdot c}{x}}\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if b < -3.8000000000000002e-65 or 1.05e46 < b

    1. Initial program 86.4%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*86.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*84.0%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    5. Step-by-step derivation
      1. associate-/r*57.2%

        \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
    6. Simplified57.2%

      \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]

    if -3.8000000000000002e-65 < b < -1.23999999999999993e-204 or 4.5999999999999998e-283 < b < 1.4499999999999999e-139

    1. Initial program 78.7%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*78.8%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*78.9%

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

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

      \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{4 \cdot \left(a \cdot \left(t \cdot z\right)\right)}\right) + b}{z \cdot c} \]
    5. Step-by-step derivation
      1. associate-*r*78.9%

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - 4 \cdot \left(\color{blue}{\left(t \cdot a\right)} \cdot z\right)\right) + b}{z \cdot c} \]
      3. associate-*l*81.4%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{y \cdot x}{c \cdot z}} \]
    8. Step-by-step derivation
      1. associate-/l*54.0%

        \[\leadsto 9 \cdot \color{blue}{\frac{y}{\frac{c \cdot z}{x}}} \]
      2. *-commutative54.0%

        \[\leadsto 9 \cdot \frac{y}{\frac{\color{blue}{z \cdot c}}{x}} \]
      3. associate-/r/51.2%

        \[\leadsto 9 \cdot \color{blue}{\left(\frac{y}{z \cdot c} \cdot x\right)} \]
    9. Simplified51.2%

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

    if -1.23999999999999993e-204 < b < 4.5999999999999998e-283

    1. Initial program 76.3%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*76.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*83.2%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]

    if 1.4499999999999999e-139 < b < 5.49999999999999967e-28

    1. Initial program 87.6%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*87.5%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*79.4%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]
    5. Step-by-step derivation
      1. *-commutative54.1%

        \[\leadsto \color{blue}{\frac{a \cdot t}{c} \cdot -4} \]
      2. associate-/l*54.0%

        \[\leadsto \color{blue}{\frac{a}{\frac{c}{t}}} \cdot -4 \]
    6. Simplified54.0%

      \[\leadsto \color{blue}{\frac{a}{\frac{c}{t}} \cdot -4} \]

    if 5.49999999999999967e-28 < b < 1.05e46

    1. Initial program 94.0%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*94.0%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*94.0%

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

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

      \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{4 \cdot \left(a \cdot \left(t \cdot z\right)\right)}\right) + b}{z \cdot c} \]
    5. Step-by-step derivation
      1. associate-*r*94.0%

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - 4 \cdot \left(\color{blue}{\left(t \cdot a\right)} \cdot z\right)\right) + b}{z \cdot c} \]
      3. associate-*l*88.0%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{y \cdot x}{c \cdot z}} \]
    8. Step-by-step derivation
      1. associate-/l*81.6%

        \[\leadsto 9 \cdot \color{blue}{\frac{y}{\frac{c \cdot z}{x}}} \]
      2. *-commutative81.6%

        \[\leadsto 9 \cdot \frac{y}{\frac{\color{blue}{z \cdot c}}{x}} \]
    9. Simplified81.6%

      \[\leadsto \color{blue}{9 \cdot \frac{y}{\frac{z \cdot c}{x}}} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification57.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.8 \cdot 10^{-65}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \mathbf{elif}\;b \leq -1.24 \cdot 10^{-204}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\ \mathbf{elif}\;b \leq 4.6 \cdot 10^{-283}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 1.45 \cdot 10^{-139}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\ \mathbf{elif}\;b \leq 5.5 \cdot 10^{-28}:\\ \;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\ \mathbf{elif}\;b \leq 1.05 \cdot 10^{+46}:\\ \;\;\;\;9 \cdot \frac{y}{\frac{z \cdot c}{x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \end{array} \]

Alternative 4: 48.1% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\frac{b}{c}}{z}\\ \mathbf{if}\;b \leq -3.2 \cdot 10^{-65}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq -2.9 \cdot 10^{-204}:\\ \;\;\;\;9 \cdot \frac{x \cdot y}{z \cdot c}\\ \mathbf{elif}\;b \leq 5.3 \cdot 10^{-283}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 8 \cdot 10^{-146}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\ \mathbf{elif}\;b \leq 2.25 \cdot 10^{-27}:\\ \;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\ \mathbf{elif}\;b \leq 4.2 \cdot 10^{+51}:\\ \;\;\;\;9 \cdot \frac{y}{\frac{z \cdot c}{x}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (let* ((t_1 (/ (/ b c) z)))
   (if (<= b -3.2e-65)
     t_1
     (if (<= b -2.9e-204)
       (* 9.0 (/ (* x y) (* z c)))
       (if (<= b 5.3e-283)
         (* -4.0 (/ (* t a) c))
         (if (<= b 8e-146)
           (* 9.0 (* x (/ y (* z c))))
           (if (<= b 2.25e-27)
             (* -4.0 (/ a (/ c t)))
             (if (<= b 4.2e+51) (* 9.0 (/ y (/ (* z c) x))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = (b / c) / z;
	double tmp;
	if (b <= -3.2e-65) {
		tmp = t_1;
	} else if (b <= -2.9e-204) {
		tmp = 9.0 * ((x * y) / (z * c));
	} else if (b <= 5.3e-283) {
		tmp = -4.0 * ((t * a) / c);
	} else if (b <= 8e-146) {
		tmp = 9.0 * (x * (y / (z * c)));
	} else if (b <= 2.25e-27) {
		tmp = -4.0 * (a / (c / t));
	} else if (b <= 4.2e+51) {
		tmp = 9.0 * (y / ((z * c) / x));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (b / c) / z
    if (b <= (-3.2d-65)) then
        tmp = t_1
    else if (b <= (-2.9d-204)) then
        tmp = 9.0d0 * ((x * y) / (z * c))
    else if (b <= 5.3d-283) then
        tmp = (-4.0d0) * ((t * a) / c)
    else if (b <= 8d-146) then
        tmp = 9.0d0 * (x * (y / (z * c)))
    else if (b <= 2.25d-27) then
        tmp = (-4.0d0) * (a / (c / t))
    else if (b <= 4.2d+51) then
        tmp = 9.0d0 * (y / ((z * c) / x))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = (b / c) / z;
	double tmp;
	if (b <= -3.2e-65) {
		tmp = t_1;
	} else if (b <= -2.9e-204) {
		tmp = 9.0 * ((x * y) / (z * c));
	} else if (b <= 5.3e-283) {
		tmp = -4.0 * ((t * a) / c);
	} else if (b <= 8e-146) {
		tmp = 9.0 * (x * (y / (z * c)));
	} else if (b <= 2.25e-27) {
		tmp = -4.0 * (a / (c / t));
	} else if (b <= 4.2e+51) {
		tmp = 9.0 * (y / ((z * c) / x));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	t_1 = (b / c) / z
	tmp = 0
	if b <= -3.2e-65:
		tmp = t_1
	elif b <= -2.9e-204:
		tmp = 9.0 * ((x * y) / (z * c))
	elif b <= 5.3e-283:
		tmp = -4.0 * ((t * a) / c)
	elif b <= 8e-146:
		tmp = 9.0 * (x * (y / (z * c)))
	elif b <= 2.25e-27:
		tmp = -4.0 * (a / (c / t))
	elif b <= 4.2e+51:
		tmp = 9.0 * (y / ((z * c) / x))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c)
	t_1 = Float64(Float64(b / c) / z)
	tmp = 0.0
	if (b <= -3.2e-65)
		tmp = t_1;
	elseif (b <= -2.9e-204)
		tmp = Float64(9.0 * Float64(Float64(x * y) / Float64(z * c)));
	elseif (b <= 5.3e-283)
		tmp = Float64(-4.0 * Float64(Float64(t * a) / c));
	elseif (b <= 8e-146)
		tmp = Float64(9.0 * Float64(x * Float64(y / Float64(z * c))));
	elseif (b <= 2.25e-27)
		tmp = Float64(-4.0 * Float64(a / Float64(c / t)));
	elseif (b <= 4.2e+51)
		tmp = Float64(9.0 * Float64(y / Float64(Float64(z * c) / x)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	t_1 = (b / c) / z;
	tmp = 0.0;
	if (b <= -3.2e-65)
		tmp = t_1;
	elseif (b <= -2.9e-204)
		tmp = 9.0 * ((x * y) / (z * c));
	elseif (b <= 5.3e-283)
		tmp = -4.0 * ((t * a) / c);
	elseif (b <= 8e-146)
		tmp = 9.0 * (x * (y / (z * c)));
	elseif (b <= 2.25e-27)
		tmp = -4.0 * (a / (c / t));
	elseif (b <= 4.2e+51)
		tmp = 9.0 * (y / ((z * c) / x));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[b, -3.2e-65], t$95$1, If[LessEqual[b, -2.9e-204], N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.3e-283], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e-146], N[(9.0 * N[(x * N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.25e-27], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.2e+51], N[(9.0 * N[(y / N[(N[(z * c), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{\frac{b}{c}}{z}\\
\mathbf{if}\;b \leq -3.2 \cdot 10^{-65}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq -2.9 \cdot 10^{-204}:\\
\;\;\;\;9 \cdot \frac{x \cdot y}{z \cdot c}\\

\mathbf{elif}\;b \leq 5.3 \cdot 10^{-283}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\

\mathbf{elif}\;b \leq 8 \cdot 10^{-146}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\

\mathbf{elif}\;b \leq 2.25 \cdot 10^{-27}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\

\mathbf{elif}\;b \leq 4.2 \cdot 10^{+51}:\\
\;\;\;\;9 \cdot \frac{y}{\frac{z \cdot c}{x}}\\

\mathbf{else}:\\
\;\;\;\;t_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if b < -3.1999999999999999e-65 or 4.2000000000000002e51 < b

    1. Initial program 86.4%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*86.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*84.0%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    5. Step-by-step derivation
      1. associate-/r*57.2%

        \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
    6. Simplified57.2%

      \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]

    if -3.1999999999999999e-65 < b < -2.90000000000000009e-204

    1. Initial program 84.2%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*84.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*87.2%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{y \cdot x}{c \cdot z}} \]

    if -2.90000000000000009e-204 < b < 5.3000000000000003e-283

    1. Initial program 76.3%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*76.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*83.2%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]

    if 5.3000000000000003e-283 < b < 8.00000000000000021e-146

    1. Initial program 73.1%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*73.1%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*70.6%

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified70.6%

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

      \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{4 \cdot \left(a \cdot \left(t \cdot z\right)\right)}\right) + b}{z \cdot c} \]
    5. Step-by-step derivation
      1. associate-*r*70.6%

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - 4 \cdot \left(\color{blue}{\left(t \cdot a\right)} \cdot z\right)\right) + b}{z \cdot c} \]
      3. associate-*l*75.9%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{y \cdot x}{c \cdot z}} \]
    8. Step-by-step derivation
      1. associate-/l*50.1%

        \[\leadsto 9 \cdot \color{blue}{\frac{y}{\frac{c \cdot z}{x}}} \]
      2. *-commutative50.1%

        \[\leadsto 9 \cdot \frac{y}{\frac{\color{blue}{z \cdot c}}{x}} \]
      3. associate-/r/50.2%

        \[\leadsto 9 \cdot \color{blue}{\left(\frac{y}{z \cdot c} \cdot x\right)} \]
    9. Simplified50.2%

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

    if 8.00000000000000021e-146 < b < 2.2500000000000001e-27

    1. Initial program 87.6%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*87.5%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*79.4%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]
    5. Step-by-step derivation
      1. *-commutative54.1%

        \[\leadsto \color{blue}{\frac{a \cdot t}{c} \cdot -4} \]
      2. associate-/l*54.0%

        \[\leadsto \color{blue}{\frac{a}{\frac{c}{t}}} \cdot -4 \]
    6. Simplified54.0%

      \[\leadsto \color{blue}{\frac{a}{\frac{c}{t}} \cdot -4} \]

    if 2.2500000000000001e-27 < b < 4.2000000000000002e51

    1. Initial program 94.0%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*94.0%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*94.0%

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

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

      \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{4 \cdot \left(a \cdot \left(t \cdot z\right)\right)}\right) + b}{z \cdot c} \]
    5. Step-by-step derivation
      1. associate-*r*94.0%

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - 4 \cdot \left(\color{blue}{\left(t \cdot a\right)} \cdot z\right)\right) + b}{z \cdot c} \]
      3. associate-*l*88.0%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{y \cdot x}{c \cdot z}} \]
    8. Step-by-step derivation
      1. associate-/l*81.6%

        \[\leadsto 9 \cdot \color{blue}{\frac{y}{\frac{c \cdot z}{x}}} \]
      2. *-commutative81.6%

        \[\leadsto 9 \cdot \frac{y}{\frac{\color{blue}{z \cdot c}}{x}} \]
    9. Simplified81.6%

      \[\leadsto \color{blue}{9 \cdot \frac{y}{\frac{z \cdot c}{x}}} \]
  3. Recombined 6 regimes into one program.
  4. Final simplification58.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.2 \cdot 10^{-65}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \mathbf{elif}\;b \leq -2.9 \cdot 10^{-204}:\\ \;\;\;\;9 \cdot \frac{x \cdot y}{z \cdot c}\\ \mathbf{elif}\;b \leq 5.3 \cdot 10^{-283}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 8 \cdot 10^{-146}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\ \mathbf{elif}\;b \leq 2.25 \cdot 10^{-27}:\\ \;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\ \mathbf{elif}\;b \leq 4.2 \cdot 10^{+51}:\\ \;\;\;\;9 \cdot \frac{y}{\frac{z \cdot c}{x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \end{array} \]

Alternative 5: 48.0% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y}{z \cdot c} \cdot \left(x \cdot 9\right)\\ t_2 := \frac{\frac{b}{c}}{z}\\ \mathbf{if}\;b \leq -2.8 \cdot 10^{-65}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq -1.05 \cdot 10^{-204}:\\ \;\;\;\;9 \cdot \frac{x \cdot y}{z \cdot c}\\ \mathbf{elif}\;b \leq 6.7 \cdot 10^{-283}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 8.2 \cdot 10^{-139}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 6 \cdot 10^{-28}:\\ \;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\ \mathbf{elif}\;b \leq 1.35 \cdot 10^{+44}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (let* ((t_1 (* (/ y (* z c)) (* x 9.0))) (t_2 (/ (/ b c) z)))
   (if (<= b -2.8e-65)
     t_2
     (if (<= b -1.05e-204)
       (* 9.0 (/ (* x y) (* z c)))
       (if (<= b 6.7e-283)
         (* -4.0 (/ (* t a) c))
         (if (<= b 8.2e-139)
           t_1
           (if (<= b 6e-28)
             (* -4.0 (/ a (/ c t)))
             (if (<= b 1.35e+44) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = (y / (z * c)) * (x * 9.0);
	double t_2 = (b / c) / z;
	double tmp;
	if (b <= -2.8e-65) {
		tmp = t_2;
	} else if (b <= -1.05e-204) {
		tmp = 9.0 * ((x * y) / (z * c));
	} else if (b <= 6.7e-283) {
		tmp = -4.0 * ((t * a) / c);
	} else if (b <= 8.2e-139) {
		tmp = t_1;
	} else if (b <= 6e-28) {
		tmp = -4.0 * (a / (c / t));
	} else if (b <= 1.35e+44) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = (y / (z * c)) * (x * 9.0d0)
    t_2 = (b / c) / z
    if (b <= (-2.8d-65)) then
        tmp = t_2
    else if (b <= (-1.05d-204)) then
        tmp = 9.0d0 * ((x * y) / (z * c))
    else if (b <= 6.7d-283) then
        tmp = (-4.0d0) * ((t * a) / c)
    else if (b <= 8.2d-139) then
        tmp = t_1
    else if (b <= 6d-28) then
        tmp = (-4.0d0) * (a / (c / t))
    else if (b <= 1.35d+44) 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 c) {
	double t_1 = (y / (z * c)) * (x * 9.0);
	double t_2 = (b / c) / z;
	double tmp;
	if (b <= -2.8e-65) {
		tmp = t_2;
	} else if (b <= -1.05e-204) {
		tmp = 9.0 * ((x * y) / (z * c));
	} else if (b <= 6.7e-283) {
		tmp = -4.0 * ((t * a) / c);
	} else if (b <= 8.2e-139) {
		tmp = t_1;
	} else if (b <= 6e-28) {
		tmp = -4.0 * (a / (c / t));
	} else if (b <= 1.35e+44) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	t_1 = (y / (z * c)) * (x * 9.0)
	t_2 = (b / c) / z
	tmp = 0
	if b <= -2.8e-65:
		tmp = t_2
	elif b <= -1.05e-204:
		tmp = 9.0 * ((x * y) / (z * c))
	elif b <= 6.7e-283:
		tmp = -4.0 * ((t * a) / c)
	elif b <= 8.2e-139:
		tmp = t_1
	elif b <= 6e-28:
		tmp = -4.0 * (a / (c / t))
	elif b <= 1.35e+44:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c)
	t_1 = Float64(Float64(y / Float64(z * c)) * Float64(x * 9.0))
	t_2 = Float64(Float64(b / c) / z)
	tmp = 0.0
	if (b <= -2.8e-65)
		tmp = t_2;
	elseif (b <= -1.05e-204)
		tmp = Float64(9.0 * Float64(Float64(x * y) / Float64(z * c)));
	elseif (b <= 6.7e-283)
		tmp = Float64(-4.0 * Float64(Float64(t * a) / c));
	elseif (b <= 8.2e-139)
		tmp = t_1;
	elseif (b <= 6e-28)
		tmp = Float64(-4.0 * Float64(a / Float64(c / t)));
	elseif (b <= 1.35e+44)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	t_1 = (y / (z * c)) * (x * 9.0);
	t_2 = (b / c) / z;
	tmp = 0.0;
	if (b <= -2.8e-65)
		tmp = t_2;
	elseif (b <= -1.05e-204)
		tmp = 9.0 * ((x * y) / (z * c));
	elseif (b <= 6.7e-283)
		tmp = -4.0 * ((t * a) / c);
	elseif (b <= 8.2e-139)
		tmp = t_1;
	elseif (b <= 6e-28)
		tmp = -4.0 * (a / (c / t));
	elseif (b <= 1.35e+44)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision] * N[(x * 9.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[b, -2.8e-65], t$95$2, If[LessEqual[b, -1.05e-204], N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.7e-283], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e-139], t$95$1, If[LessEqual[b, 6e-28], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.35e+44], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{y}{z \cdot c} \cdot \left(x \cdot 9\right)\\
t_2 := \frac{\frac{b}{c}}{z}\\
\mathbf{if}\;b \leq -2.8 \cdot 10^{-65}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq -1.05 \cdot 10^{-204}:\\
\;\;\;\;9 \cdot \frac{x \cdot y}{z \cdot c}\\

\mathbf{elif}\;b \leq 6.7 \cdot 10^{-283}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\

\mathbf{elif}\;b \leq 8.2 \cdot 10^{-139}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq 6 \cdot 10^{-28}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\

\mathbf{elif}\;b \leq 1.35 \cdot 10^{+44}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if b < -2.8e-65 or 1.35e44 < b

    1. Initial program 86.4%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*86.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*84.0%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    5. Step-by-step derivation
      1. associate-/r*57.2%

        \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
    6. Simplified57.2%

      \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]

    if -2.8e-65 < b < -1.05000000000000005e-204

    1. Initial program 84.2%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*84.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*87.2%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{y \cdot x}{c \cdot z}} \]

    if -1.05000000000000005e-204 < b < 6.70000000000000047e-283

    1. Initial program 76.3%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*76.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*83.2%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]

    if 6.70000000000000047e-283 < b < 8.20000000000000028e-139 or 6.00000000000000005e-28 < b < 1.35e44

    1. Initial program 79.9%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*80.0%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*78.2%

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

      \[\leadsto \color{blue}{\frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{z \cdot c}} \]
    4. Step-by-step derivation
      1. *-un-lft-identity78.2%

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

        \[\leadsto \frac{1 \cdot \left(\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b\right)}{\color{blue}{c \cdot z}} \]
      3. times-frac84.2%

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

        \[\leadsto \frac{1}{c} \cdot \frac{\left(\color{blue}{\left(x \cdot 9\right) \cdot y} - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{z} \]
      5. associate-*r*82.3%

        \[\leadsto \frac{1}{c} \cdot \frac{\left(\left(x \cdot 9\right) \cdot y - \color{blue}{\left(\left(z \cdot 4\right) \cdot t\right) \cdot a}\right) + b}{z} \]
      6. associate-*r*82.2%

        \[\leadsto \frac{1}{c} \cdot \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z} \]
      7. associate-*r*84.2%

        \[\leadsto \frac{1}{c} \cdot \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z} \]
      8. associate-*l*84.2%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{y \cdot x}{c \cdot z}} \]
    7. Step-by-step derivation
      1. associate-*r/58.3%

        \[\leadsto \color{blue}{\frac{9 \cdot \left(y \cdot x\right)}{c \cdot z}} \]
      2. *-commutative58.3%

        \[\leadsto \frac{9 \cdot \color{blue}{\left(x \cdot y\right)}}{c \cdot z} \]
      3. associate-*r*58.2%

        \[\leadsto \frac{\color{blue}{\left(9 \cdot x\right) \cdot y}}{c \cdot z} \]
      4. *-commutative58.2%

        \[\leadsto \frac{\left(9 \cdot x\right) \cdot y}{\color{blue}{z \cdot c}} \]
      5. associate-*r/60.5%

        \[\leadsto \color{blue}{\left(9 \cdot x\right) \cdot \frac{y}{z \cdot c}} \]
      6. *-commutative60.5%

        \[\leadsto \color{blue}{\frac{y}{z \cdot c} \cdot \left(9 \cdot x\right)} \]
    8. Simplified60.5%

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

    if 8.20000000000000028e-139 < b < 6.00000000000000005e-28

    1. Initial program 87.6%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*87.5%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*79.4%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]
    5. Step-by-step derivation
      1. *-commutative54.1%

        \[\leadsto \color{blue}{\frac{a \cdot t}{c} \cdot -4} \]
      2. associate-/l*54.0%

        \[\leadsto \color{blue}{\frac{a}{\frac{c}{t}}} \cdot -4 \]
    6. Simplified54.0%

      \[\leadsto \color{blue}{\frac{a}{\frac{c}{t}} \cdot -4} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification58.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2.8 \cdot 10^{-65}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \mathbf{elif}\;b \leq -1.05 \cdot 10^{-204}:\\ \;\;\;\;9 \cdot \frac{x \cdot y}{z \cdot c}\\ \mathbf{elif}\;b \leq 6.7 \cdot 10^{-283}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 8.2 \cdot 10^{-139}:\\ \;\;\;\;\frac{y}{z \cdot c} \cdot \left(x \cdot 9\right)\\ \mathbf{elif}\;b \leq 6 \cdot 10^{-28}:\\ \;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\ \mathbf{elif}\;b \leq 1.35 \cdot 10^{+44}:\\ \;\;\;\;\frac{y}{z \cdot c} \cdot \left(x \cdot 9\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \end{array} \]

Alternative 6: 48.1% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y}{z \cdot c} \cdot \left(x \cdot 9\right)\\ t_2 := \frac{\frac{b}{c}}{z}\\ \mathbf{if}\;b \leq -2.8 \cdot 10^{-65}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq -2 \cdot 10^{-204}:\\ \;\;\;\;\frac{9 \cdot \frac{x \cdot y}{c}}{z}\\ \mathbf{elif}\;b \leq 4.8 \cdot 10^{-283}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 1.35 \cdot 10^{-141}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 10^{-28}:\\ \;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\ \mathbf{elif}\;b \leq 2.9 \cdot 10^{+43}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (let* ((t_1 (* (/ y (* z c)) (* x 9.0))) (t_2 (/ (/ b c) z)))
   (if (<= b -2.8e-65)
     t_2
     (if (<= b -2e-204)
       (/ (* 9.0 (/ (* x y) c)) z)
       (if (<= b 4.8e-283)
         (* -4.0 (/ (* t a) c))
         (if (<= b 1.35e-141)
           t_1
           (if (<= b 1e-28)
             (* -4.0 (/ a (/ c t)))
             (if (<= b 2.9e+43) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = (y / (z * c)) * (x * 9.0);
	double t_2 = (b / c) / z;
	double tmp;
	if (b <= -2.8e-65) {
		tmp = t_2;
	} else if (b <= -2e-204) {
		tmp = (9.0 * ((x * y) / c)) / z;
	} else if (b <= 4.8e-283) {
		tmp = -4.0 * ((t * a) / c);
	} else if (b <= 1.35e-141) {
		tmp = t_1;
	} else if (b <= 1e-28) {
		tmp = -4.0 * (a / (c / t));
	} else if (b <= 2.9e+43) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = (y / (z * c)) * (x * 9.0d0)
    t_2 = (b / c) / z
    if (b <= (-2.8d-65)) then
        tmp = t_2
    else if (b <= (-2d-204)) then
        tmp = (9.0d0 * ((x * y) / c)) / z
    else if (b <= 4.8d-283) then
        tmp = (-4.0d0) * ((t * a) / c)
    else if (b <= 1.35d-141) then
        tmp = t_1
    else if (b <= 1d-28) then
        tmp = (-4.0d0) * (a / (c / t))
    else if (b <= 2.9d+43) 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 c) {
	double t_1 = (y / (z * c)) * (x * 9.0);
	double t_2 = (b / c) / z;
	double tmp;
	if (b <= -2.8e-65) {
		tmp = t_2;
	} else if (b <= -2e-204) {
		tmp = (9.0 * ((x * y) / c)) / z;
	} else if (b <= 4.8e-283) {
		tmp = -4.0 * ((t * a) / c);
	} else if (b <= 1.35e-141) {
		tmp = t_1;
	} else if (b <= 1e-28) {
		tmp = -4.0 * (a / (c / t));
	} else if (b <= 2.9e+43) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	t_1 = (y / (z * c)) * (x * 9.0)
	t_2 = (b / c) / z
	tmp = 0
	if b <= -2.8e-65:
		tmp = t_2
	elif b <= -2e-204:
		tmp = (9.0 * ((x * y) / c)) / z
	elif b <= 4.8e-283:
		tmp = -4.0 * ((t * a) / c)
	elif b <= 1.35e-141:
		tmp = t_1
	elif b <= 1e-28:
		tmp = -4.0 * (a / (c / t))
	elif b <= 2.9e+43:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c)
	t_1 = Float64(Float64(y / Float64(z * c)) * Float64(x * 9.0))
	t_2 = Float64(Float64(b / c) / z)
	tmp = 0.0
	if (b <= -2.8e-65)
		tmp = t_2;
	elseif (b <= -2e-204)
		tmp = Float64(Float64(9.0 * Float64(Float64(x * y) / c)) / z);
	elseif (b <= 4.8e-283)
		tmp = Float64(-4.0 * Float64(Float64(t * a) / c));
	elseif (b <= 1.35e-141)
		tmp = t_1;
	elseif (b <= 1e-28)
		tmp = Float64(-4.0 * Float64(a / Float64(c / t)));
	elseif (b <= 2.9e+43)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	t_1 = (y / (z * c)) * (x * 9.0);
	t_2 = (b / c) / z;
	tmp = 0.0;
	if (b <= -2.8e-65)
		tmp = t_2;
	elseif (b <= -2e-204)
		tmp = (9.0 * ((x * y) / c)) / z;
	elseif (b <= 4.8e-283)
		tmp = -4.0 * ((t * a) / c);
	elseif (b <= 1.35e-141)
		tmp = t_1;
	elseif (b <= 1e-28)
		tmp = -4.0 * (a / (c / t));
	elseif (b <= 2.9e+43)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision] * N[(x * 9.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[b, -2.8e-65], t$95$2, If[LessEqual[b, -2e-204], N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, 4.8e-283], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.35e-141], t$95$1, If[LessEqual[b, 1e-28], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.9e+43], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{y}{z \cdot c} \cdot \left(x \cdot 9\right)\\
t_2 := \frac{\frac{b}{c}}{z}\\
\mathbf{if}\;b \leq -2.8 \cdot 10^{-65}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq -2 \cdot 10^{-204}:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{c}}{z}\\

\mathbf{elif}\;b \leq 4.8 \cdot 10^{-283}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\

\mathbf{elif}\;b \leq 1.35 \cdot 10^{-141}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq 10^{-28}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\

\mathbf{elif}\;b \leq 2.9 \cdot 10^{+43}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if b < -2.8e-65 or 2.9000000000000002e43 < b

    1. Initial program 86.4%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*86.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*84.0%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    5. Step-by-step derivation
      1. associate-/r*57.2%

        \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
    6. Simplified57.2%

      \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]

    if -2.8e-65 < b < -2e-204

    1. Initial program 84.2%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*84.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*87.2%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{y \cdot x}{c \cdot z}} \]
    5. Step-by-step derivation
      1. associate-/r*58.6%

        \[\leadsto 9 \cdot \color{blue}{\frac{\frac{y \cdot x}{c}}{z}} \]
      2. associate-*r/58.6%

        \[\leadsto \color{blue}{\frac{9 \cdot \frac{y \cdot x}{c}}{z}} \]
    6. Simplified58.6%

      \[\leadsto \color{blue}{\frac{9 \cdot \frac{y \cdot x}{c}}{z}} \]

    if -2e-204 < b < 4.7999999999999999e-283

    1. Initial program 76.3%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*76.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*83.2%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]

    if 4.7999999999999999e-283 < b < 1.3500000000000001e-141 or 9.99999999999999971e-29 < b < 2.9000000000000002e43

    1. Initial program 79.9%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*80.0%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*78.2%

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

      \[\leadsto \color{blue}{\frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{z \cdot c}} \]
    4. Step-by-step derivation
      1. *-un-lft-identity78.2%

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

        \[\leadsto \frac{1 \cdot \left(\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b\right)}{\color{blue}{c \cdot z}} \]
      3. times-frac84.2%

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

        \[\leadsto \frac{1}{c} \cdot \frac{\left(\color{blue}{\left(x \cdot 9\right) \cdot y} - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{z} \]
      5. associate-*r*82.3%

        \[\leadsto \frac{1}{c} \cdot \frac{\left(\left(x \cdot 9\right) \cdot y - \color{blue}{\left(\left(z \cdot 4\right) \cdot t\right) \cdot a}\right) + b}{z} \]
      6. associate-*r*82.2%

        \[\leadsto \frac{1}{c} \cdot \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z} \]
      7. associate-*r*84.2%

        \[\leadsto \frac{1}{c} \cdot \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z} \]
      8. associate-*l*84.2%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{y \cdot x}{c \cdot z}} \]
    7. Step-by-step derivation
      1. associate-*r/58.3%

        \[\leadsto \color{blue}{\frac{9 \cdot \left(y \cdot x\right)}{c \cdot z}} \]
      2. *-commutative58.3%

        \[\leadsto \frac{9 \cdot \color{blue}{\left(x \cdot y\right)}}{c \cdot z} \]
      3. associate-*r*58.2%

        \[\leadsto \frac{\color{blue}{\left(9 \cdot x\right) \cdot y}}{c \cdot z} \]
      4. *-commutative58.2%

        \[\leadsto \frac{\left(9 \cdot x\right) \cdot y}{\color{blue}{z \cdot c}} \]
      5. associate-*r/60.5%

        \[\leadsto \color{blue}{\left(9 \cdot x\right) \cdot \frac{y}{z \cdot c}} \]
      6. *-commutative60.5%

        \[\leadsto \color{blue}{\frac{y}{z \cdot c} \cdot \left(9 \cdot x\right)} \]
    8. Simplified60.5%

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

    if 1.3500000000000001e-141 < b < 9.99999999999999971e-29

    1. Initial program 87.6%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*87.5%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*79.4%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]
    5. Step-by-step derivation
      1. *-commutative54.1%

        \[\leadsto \color{blue}{\frac{a \cdot t}{c} \cdot -4} \]
      2. associate-/l*54.0%

        \[\leadsto \color{blue}{\frac{a}{\frac{c}{t}}} \cdot -4 \]
    6. Simplified54.0%

      \[\leadsto \color{blue}{\frac{a}{\frac{c}{t}} \cdot -4} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification58.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2.8 \cdot 10^{-65}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \mathbf{elif}\;b \leq -2 \cdot 10^{-204}:\\ \;\;\;\;\frac{9 \cdot \frac{x \cdot y}{c}}{z}\\ \mathbf{elif}\;b \leq 4.8 \cdot 10^{-283}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 1.35 \cdot 10^{-141}:\\ \;\;\;\;\frac{y}{z \cdot c} \cdot \left(x \cdot 9\right)\\ \mathbf{elif}\;b \leq 10^{-28}:\\ \;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\ \mathbf{elif}\;b \leq 2.9 \cdot 10^{+43}:\\ \;\;\;\;\frac{y}{z \cdot c} \cdot \left(x \cdot 9\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \end{array} \]

Alternative 7: 64.9% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\ t_2 := t \cdot \left(a \cdot -4\right)\\ t_3 := \frac{t_2 + 9 \cdot \frac{x \cdot y}{z}}{c}\\ \mathbf{if}\;x \leq -2.8 \cdot 10^{+190}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -3.3 \cdot 10^{+120}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -7.5 \cdot 10^{+81}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -1.5 \cdot 10^{+41}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 2.6 \cdot 10^{-89}:\\ \;\;\;\;\frac{t_2 + \frac{b}{z}}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z} \cdot \frac{9 \cdot y}{c}\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (let* ((t_1 (/ (+ b (* 9.0 (* x y))) (* z c)))
        (t_2 (* t (* a -4.0)))
        (t_3 (/ (+ t_2 (* 9.0 (/ (* x y) z))) c)))
   (if (<= x -2.8e+190)
     t_3
     (if (<= x -3.3e+120)
       t_1
       (if (<= x -7.5e+81)
         t_3
         (if (<= x -1.5e+41)
           t_1
           (if (<= x 2.6e-89)
             (/ (+ t_2 (/ b z)) c)
             (* (/ x z) (/ (* 9.0 y) c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = (b + (9.0 * (x * y))) / (z * c);
	double t_2 = t * (a * -4.0);
	double t_3 = (t_2 + (9.0 * ((x * y) / z))) / c;
	double tmp;
	if (x <= -2.8e+190) {
		tmp = t_3;
	} else if (x <= -3.3e+120) {
		tmp = t_1;
	} else if (x <= -7.5e+81) {
		tmp = t_3;
	} else if (x <= -1.5e+41) {
		tmp = t_1;
	} else if (x <= 2.6e-89) {
		tmp = (t_2 + (b / z)) / c;
	} else {
		tmp = (x / z) * ((9.0 * y) / c);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = (b + (9.0d0 * (x * y))) / (z * c)
    t_2 = t * (a * (-4.0d0))
    t_3 = (t_2 + (9.0d0 * ((x * y) / z))) / c
    if (x <= (-2.8d+190)) then
        tmp = t_3
    else if (x <= (-3.3d+120)) then
        tmp = t_1
    else if (x <= (-7.5d+81)) then
        tmp = t_3
    else if (x <= (-1.5d+41)) then
        tmp = t_1
    else if (x <= 2.6d-89) then
        tmp = (t_2 + (b / z)) / c
    else
        tmp = (x / z) * ((9.0d0 * y) / c)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = (b + (9.0 * (x * y))) / (z * c);
	double t_2 = t * (a * -4.0);
	double t_3 = (t_2 + (9.0 * ((x * y) / z))) / c;
	double tmp;
	if (x <= -2.8e+190) {
		tmp = t_3;
	} else if (x <= -3.3e+120) {
		tmp = t_1;
	} else if (x <= -7.5e+81) {
		tmp = t_3;
	} else if (x <= -1.5e+41) {
		tmp = t_1;
	} else if (x <= 2.6e-89) {
		tmp = (t_2 + (b / z)) / c;
	} else {
		tmp = (x / z) * ((9.0 * y) / c);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	t_1 = (b + (9.0 * (x * y))) / (z * c)
	t_2 = t * (a * -4.0)
	t_3 = (t_2 + (9.0 * ((x * y) / z))) / c
	tmp = 0
	if x <= -2.8e+190:
		tmp = t_3
	elif x <= -3.3e+120:
		tmp = t_1
	elif x <= -7.5e+81:
		tmp = t_3
	elif x <= -1.5e+41:
		tmp = t_1
	elif x <= 2.6e-89:
		tmp = (t_2 + (b / z)) / c
	else:
		tmp = (x / z) * ((9.0 * y) / c)
	return tmp
function code(x, y, z, t, a, b, c)
	t_1 = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c))
	t_2 = Float64(t * Float64(a * -4.0))
	t_3 = Float64(Float64(t_2 + Float64(9.0 * Float64(Float64(x * y) / z))) / c)
	tmp = 0.0
	if (x <= -2.8e+190)
		tmp = t_3;
	elseif (x <= -3.3e+120)
		tmp = t_1;
	elseif (x <= -7.5e+81)
		tmp = t_3;
	elseif (x <= -1.5e+41)
		tmp = t_1;
	elseif (x <= 2.6e-89)
		tmp = Float64(Float64(t_2 + Float64(b / z)) / c);
	else
		tmp = Float64(Float64(x / z) * Float64(Float64(9.0 * y) / c));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	t_1 = (b + (9.0 * (x * y))) / (z * c);
	t_2 = t * (a * -4.0);
	t_3 = (t_2 + (9.0 * ((x * y) / z))) / c;
	tmp = 0.0;
	if (x <= -2.8e+190)
		tmp = t_3;
	elseif (x <= -3.3e+120)
		tmp = t_1;
	elseif (x <= -7.5e+81)
		tmp = t_3;
	elseif (x <= -1.5e+41)
		tmp = t_1;
	elseif (x <= 2.6e-89)
		tmp = (t_2 + (b / z)) / c;
	else
		tmp = (x / z) * ((9.0 * y) / c);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t$95$2 + N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[x, -2.8e+190], t$95$3, If[LessEqual[x, -3.3e+120], t$95$1, If[LessEqual[x, -7.5e+81], t$95$3, If[LessEqual[x, -1.5e+41], t$95$1, If[LessEqual[x, 2.6e-89], N[(N[(t$95$2 + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(x / z), $MachinePrecision] * N[(N[(9.0 * y), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
t_2 := t \cdot \left(a \cdot -4\right)\\
t_3 := \frac{t_2 + 9 \cdot \frac{x \cdot y}{z}}{c}\\
\mathbf{if}\;x \leq -2.8 \cdot 10^{+190}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;x \leq -3.3 \cdot 10^{+120}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq -7.5 \cdot 10^{+81}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;x \leq -1.5 \cdot 10^{+41}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq 2.6 \cdot 10^{-89}:\\
\;\;\;\;\frac{t_2 + \frac{b}{z}}{c}\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{z} \cdot \frac{9 \cdot y}{c}\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -2.79999999999999997e190 or -3.29999999999999991e120 < x < -7.49999999999999973e81

    1. Initial program 91.7%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-/r*82.8%

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

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

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

    if -2.79999999999999997e190 < x < -3.29999999999999991e120 or -7.49999999999999973e81 < x < -1.4999999999999999e41

    1. Initial program 77.2%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*77.2%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*72.0%

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

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

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

    if -1.4999999999999999e41 < x < 2.5999999999999999e-89

    1. Initial program 84.9%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-/r*85.2%

        \[\leadsto \color{blue}{\frac{\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z}}{c}} \]
    3. Simplified93.7%

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

      \[\leadsto \color{blue}{\frac{\frac{b}{z} + -4 \cdot \left(a \cdot t\right)}{c}} \]
    5. Step-by-step derivation
      1. associate-*r*81.7%

        \[\leadsto \frac{\frac{b}{z} + \color{blue}{\left(-4 \cdot a\right) \cdot t}}{c} \]
      2. *-commutative81.7%

        \[\leadsto \frac{\frac{b}{z} + \color{blue}{\left(a \cdot -4\right)} \cdot t}{c} \]
      3. *-commutative81.7%

        \[\leadsto \frac{\frac{b}{z} + \color{blue}{t \cdot \left(a \cdot -4\right)}}{c} \]
    6. Simplified81.7%

      \[\leadsto \color{blue}{\frac{\frac{b}{z} + t \cdot \left(a \cdot -4\right)}{c}} \]

    if 2.5999999999999999e-89 < x

    1. Initial program 82.3%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*82.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*81.2%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{y \cdot x}{c \cdot z}} \]
    5. Step-by-step derivation
      1. associate-*r/44.2%

        \[\leadsto \color{blue}{\frac{9 \cdot \left(y \cdot x\right)}{c \cdot z}} \]
      2. associate-*r*44.2%

        \[\leadsto \frac{\color{blue}{\left(9 \cdot y\right) \cdot x}}{c \cdot z} \]
      3. times-frac48.7%

        \[\leadsto \color{blue}{\frac{9 \cdot y}{c} \cdot \frac{x}{z}} \]
      4. *-commutative48.7%

        \[\leadsto \color{blue}{\frac{x}{z} \cdot \frac{9 \cdot y}{c}} \]
    6. Simplified48.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -2.8 \cdot 10^{+190}:\\ \;\;\;\;\frac{t \cdot \left(a \cdot -4\right) + 9 \cdot \frac{x \cdot y}{z}}{c}\\ \mathbf{elif}\;x \leq -3.3 \cdot 10^{+120}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\ \mathbf{elif}\;x \leq -7.5 \cdot 10^{+81}:\\ \;\;\;\;\frac{t \cdot \left(a \cdot -4\right) + 9 \cdot \frac{x \cdot y}{z}}{c}\\ \mathbf{elif}\;x \leq -1.5 \cdot 10^{+41}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\ \mathbf{elif}\;x \leq 2.6 \cdot 10^{-89}:\\ \;\;\;\;\frac{t \cdot \left(a \cdot -4\right) + \frac{b}{z}}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z} \cdot \frac{9 \cdot y}{c}\\ \end{array} \]

Alternative 8: 64.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\ \mathbf{if}\;x \leq -2.5 \cdot 10^{+222}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -4.6 \cdot 10^{+204}:\\ \;\;\;\;-4 \cdot \frac{t}{\frac{c}{a}}\\ \mathbf{elif}\;x \leq -1.35 \cdot 10^{+44}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 2.6 \cdot 10^{-89}:\\ \;\;\;\;\frac{t \cdot \left(a \cdot -4\right) + \frac{b}{z}}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z} \cdot \frac{9 \cdot y}{c}\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (let* ((t_1 (/ (+ b (* 9.0 (* x y))) (* z c))))
   (if (<= x -2.5e+222)
     t_1
     (if (<= x -4.6e+204)
       (* -4.0 (/ t (/ c a)))
       (if (<= x -1.35e+44)
         t_1
         (if (<= x 2.6e-89)
           (/ (+ (* t (* a -4.0)) (/ b z)) c)
           (* (/ x z) (/ (* 9.0 y) c))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = (b + (9.0 * (x * y))) / (z * c);
	double tmp;
	if (x <= -2.5e+222) {
		tmp = t_1;
	} else if (x <= -4.6e+204) {
		tmp = -4.0 * (t / (c / a));
	} else if (x <= -1.35e+44) {
		tmp = t_1;
	} else if (x <= 2.6e-89) {
		tmp = ((t * (a * -4.0)) + (b / z)) / c;
	} else {
		tmp = (x / z) * ((9.0 * y) / c);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (b + (9.0d0 * (x * y))) / (z * c)
    if (x <= (-2.5d+222)) then
        tmp = t_1
    else if (x <= (-4.6d+204)) then
        tmp = (-4.0d0) * (t / (c / a))
    else if (x <= (-1.35d+44)) then
        tmp = t_1
    else if (x <= 2.6d-89) then
        tmp = ((t * (a * (-4.0d0))) + (b / z)) / c
    else
        tmp = (x / z) * ((9.0d0 * y) / c)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = (b + (9.0 * (x * y))) / (z * c);
	double tmp;
	if (x <= -2.5e+222) {
		tmp = t_1;
	} else if (x <= -4.6e+204) {
		tmp = -4.0 * (t / (c / a));
	} else if (x <= -1.35e+44) {
		tmp = t_1;
	} else if (x <= 2.6e-89) {
		tmp = ((t * (a * -4.0)) + (b / z)) / c;
	} else {
		tmp = (x / z) * ((9.0 * y) / c);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	t_1 = (b + (9.0 * (x * y))) / (z * c)
	tmp = 0
	if x <= -2.5e+222:
		tmp = t_1
	elif x <= -4.6e+204:
		tmp = -4.0 * (t / (c / a))
	elif x <= -1.35e+44:
		tmp = t_1
	elif x <= 2.6e-89:
		tmp = ((t * (a * -4.0)) + (b / z)) / c
	else:
		tmp = (x / z) * ((9.0 * y) / c)
	return tmp
function code(x, y, z, t, a, b, c)
	t_1 = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c))
	tmp = 0.0
	if (x <= -2.5e+222)
		tmp = t_1;
	elseif (x <= -4.6e+204)
		tmp = Float64(-4.0 * Float64(t / Float64(c / a)));
	elseif (x <= -1.35e+44)
		tmp = t_1;
	elseif (x <= 2.6e-89)
		tmp = Float64(Float64(Float64(t * Float64(a * -4.0)) + Float64(b / z)) / c);
	else
		tmp = Float64(Float64(x / z) * Float64(Float64(9.0 * y) / c));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	t_1 = (b + (9.0 * (x * y))) / (z * c);
	tmp = 0.0;
	if (x <= -2.5e+222)
		tmp = t_1;
	elseif (x <= -4.6e+204)
		tmp = -4.0 * (t / (c / a));
	elseif (x <= -1.35e+44)
		tmp = t_1;
	elseif (x <= 2.6e-89)
		tmp = ((t * (a * -4.0)) + (b / z)) / c;
	else
		tmp = (x / z) * ((9.0 * y) / c);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.5e+222], t$95$1, If[LessEqual[x, -4.6e+204], N[(-4.0 * N[(t / N[(c / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.35e+44], t$95$1, If[LessEqual[x, 2.6e-89], N[(N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(x / z), $MachinePrecision] * N[(N[(9.0 * y), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\mathbf{if}\;x \leq -2.5 \cdot 10^{+222}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq -4.6 \cdot 10^{+204}:\\
\;\;\;\;-4 \cdot \frac{t}{\frac{c}{a}}\\

\mathbf{elif}\;x \leq -1.35 \cdot 10^{+44}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq 2.6 \cdot 10^{-89}:\\
\;\;\;\;\frac{t \cdot \left(a \cdot -4\right) + \frac{b}{z}}{c}\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{z} \cdot \frac{9 \cdot y}{c}\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -2.50000000000000012e222 or -4.59999999999999981e204 < x < -1.35e44

    1. Initial program 82.7%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*82.7%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*79.6%

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified79.6%

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

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

    if -2.50000000000000012e222 < x < -4.59999999999999981e204

    1. Initial program 99.6%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*99.6%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*76.2%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]
    5. Step-by-step derivation
      1. *-commutative52.3%

        \[\leadsto \color{blue}{\frac{a \cdot t}{c} \cdot -4} \]
      2. *-commutative52.3%

        \[\leadsto \frac{\color{blue}{t \cdot a}}{c} \cdot -4 \]
      3. associate-/l*76.1%

        \[\leadsto \color{blue}{\frac{t}{\frac{c}{a}}} \cdot -4 \]
    6. Simplified76.1%

      \[\leadsto \color{blue}{\frac{t}{\frac{c}{a}} \cdot -4} \]

    if -1.35e44 < x < 2.5999999999999999e-89

    1. Initial program 84.9%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-/r*85.2%

        \[\leadsto \color{blue}{\frac{\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z}}{c}} \]
    3. Simplified93.7%

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

      \[\leadsto \color{blue}{\frac{\frac{b}{z} + -4 \cdot \left(a \cdot t\right)}{c}} \]
    5. Step-by-step derivation
      1. associate-*r*81.7%

        \[\leadsto \frac{\frac{b}{z} + \color{blue}{\left(-4 \cdot a\right) \cdot t}}{c} \]
      2. *-commutative81.7%

        \[\leadsto \frac{\frac{b}{z} + \color{blue}{\left(a \cdot -4\right)} \cdot t}{c} \]
      3. *-commutative81.7%

        \[\leadsto \frac{\frac{b}{z} + \color{blue}{t \cdot \left(a \cdot -4\right)}}{c} \]
    6. Simplified81.7%

      \[\leadsto \color{blue}{\frac{\frac{b}{z} + t \cdot \left(a \cdot -4\right)}{c}} \]

    if 2.5999999999999999e-89 < x

    1. Initial program 82.3%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*82.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*81.2%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{y \cdot x}{c \cdot z}} \]
    5. Step-by-step derivation
      1. associate-*r/44.2%

        \[\leadsto \color{blue}{\frac{9 \cdot \left(y \cdot x\right)}{c \cdot z}} \]
      2. associate-*r*44.2%

        \[\leadsto \frac{\color{blue}{\left(9 \cdot y\right) \cdot x}}{c \cdot z} \]
      3. times-frac48.7%

        \[\leadsto \color{blue}{\frac{9 \cdot y}{c} \cdot \frac{x}{z}} \]
      4. *-commutative48.7%

        \[\leadsto \color{blue}{\frac{x}{z} \cdot \frac{9 \cdot y}{c}} \]
    6. Simplified48.7%

      \[\leadsto \color{blue}{\frac{x}{z} \cdot \frac{9 \cdot y}{c}} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification68.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -2.5 \cdot 10^{+222}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\ \mathbf{elif}\;x \leq -4.6 \cdot 10^{+204}:\\ \;\;\;\;-4 \cdot \frac{t}{\frac{c}{a}}\\ \mathbf{elif}\;x \leq -1.35 \cdot 10^{+44}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\ \mathbf{elif}\;x \leq 2.6 \cdot 10^{-89}:\\ \;\;\;\;\frac{t \cdot \left(a \cdot -4\right) + \frac{b}{z}}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z} \cdot \frac{9 \cdot y}{c}\\ \end{array} \]

Alternative 9: 47.7% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := 9 \cdot \left(\frac{x}{z} \cdot \frac{y}{c}\right)\\ t_2 := \frac{\frac{b}{c}}{z}\\ t_3 := -4 \cdot \frac{t \cdot a}{c}\\ \mathbf{if}\;b \leq -4.5 \cdot 10^{-65}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq -2.25 \cdot 10^{-204}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 2.5 \cdot 10^{-28}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;b \leq 1.05 \cdot 10^{+90}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 1.3 \cdot 10^{+108}:\\ \;\;\;\;t_3\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (let* ((t_1 (* 9.0 (* (/ x z) (/ y c))))
        (t_2 (/ (/ b c) z))
        (t_3 (* -4.0 (/ (* t a) c))))
   (if (<= b -4.5e-65)
     t_2
     (if (<= b -2.25e-204)
       t_1
       (if (<= b 2.5e-28)
         t_3
         (if (<= b 1.05e+90) t_1 (if (<= b 1.3e+108) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = 9.0 * ((x / z) * (y / c));
	double t_2 = (b / c) / z;
	double t_3 = -4.0 * ((t * a) / c);
	double tmp;
	if (b <= -4.5e-65) {
		tmp = t_2;
	} else if (b <= -2.25e-204) {
		tmp = t_1;
	} else if (b <= 2.5e-28) {
		tmp = t_3;
	} else if (b <= 1.05e+90) {
		tmp = t_1;
	} else if (b <= 1.3e+108) {
		tmp = t_3;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = 9.0d0 * ((x / z) * (y / c))
    t_2 = (b / c) / z
    t_3 = (-4.0d0) * ((t * a) / c)
    if (b <= (-4.5d-65)) then
        tmp = t_2
    else if (b <= (-2.25d-204)) then
        tmp = t_1
    else if (b <= 2.5d-28) then
        tmp = t_3
    else if (b <= 1.05d+90) then
        tmp = t_1
    else if (b <= 1.3d+108) then
        tmp = t_3
    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 c) {
	double t_1 = 9.0 * ((x / z) * (y / c));
	double t_2 = (b / c) / z;
	double t_3 = -4.0 * ((t * a) / c);
	double tmp;
	if (b <= -4.5e-65) {
		tmp = t_2;
	} else if (b <= -2.25e-204) {
		tmp = t_1;
	} else if (b <= 2.5e-28) {
		tmp = t_3;
	} else if (b <= 1.05e+90) {
		tmp = t_1;
	} else if (b <= 1.3e+108) {
		tmp = t_3;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	t_1 = 9.0 * ((x / z) * (y / c))
	t_2 = (b / c) / z
	t_3 = -4.0 * ((t * a) / c)
	tmp = 0
	if b <= -4.5e-65:
		tmp = t_2
	elif b <= -2.25e-204:
		tmp = t_1
	elif b <= 2.5e-28:
		tmp = t_3
	elif b <= 1.05e+90:
		tmp = t_1
	elif b <= 1.3e+108:
		tmp = t_3
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c)
	t_1 = Float64(9.0 * Float64(Float64(x / z) * Float64(y / c)))
	t_2 = Float64(Float64(b / c) / z)
	t_3 = Float64(-4.0 * Float64(Float64(t * a) / c))
	tmp = 0.0
	if (b <= -4.5e-65)
		tmp = t_2;
	elseif (b <= -2.25e-204)
		tmp = t_1;
	elseif (b <= 2.5e-28)
		tmp = t_3;
	elseif (b <= 1.05e+90)
		tmp = t_1;
	elseif (b <= 1.3e+108)
		tmp = t_3;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	t_1 = 9.0 * ((x / z) * (y / c));
	t_2 = (b / c) / z;
	t_3 = -4.0 * ((t * a) / c);
	tmp = 0.0;
	if (b <= -4.5e-65)
		tmp = t_2;
	elseif (b <= -2.25e-204)
		tmp = t_1;
	elseif (b <= 2.5e-28)
		tmp = t_3;
	elseif (b <= 1.05e+90)
		tmp = t_1;
	elseif (b <= 1.3e+108)
		tmp = t_3;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(9.0 * N[(N[(x / z), $MachinePrecision] * N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, Block[{t$95$3 = N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.5e-65], t$95$2, If[LessEqual[b, -2.25e-204], t$95$1, If[LessEqual[b, 2.5e-28], t$95$3, If[LessEqual[b, 1.05e+90], t$95$1, If[LessEqual[b, 1.3e+108], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := 9 \cdot \left(\frac{x}{z} \cdot \frac{y}{c}\right)\\
t_2 := \frac{\frac{b}{c}}{z}\\
t_3 := -4 \cdot \frac{t \cdot a}{c}\\
\mathbf{if}\;b \leq -4.5 \cdot 10^{-65}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq -2.25 \cdot 10^{-204}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq 2.5 \cdot 10^{-28}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;b \leq 1.05 \cdot 10^{+90}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq 1.3 \cdot 10^{+108}:\\
\;\;\;\;t_3\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -4.4999999999999998e-65 or 1.3000000000000001e108 < b

    1. Initial program 86.5%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*86.5%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*83.8%

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified83.8%

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    5. Step-by-step derivation
      1. associate-/r*59.3%

        \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
    6. Simplified59.3%

      \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]

    if -4.4999999999999998e-65 < b < -2.24999999999999987e-204 or 2.5000000000000001e-28 < b < 1.0499999999999999e90

    1. Initial program 88.3%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-/r*83.6%

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

      \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(x, 9 \cdot y, b\right)}{z} + t \cdot \left(a \cdot -4\right)}{c}} \]
    4. Step-by-step derivation
      1. fma-udef87.2%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{y \cdot x}{c \cdot z}} \]
    7. Step-by-step derivation
      1. times-frac56.3%

        \[\leadsto 9 \cdot \color{blue}{\left(\frac{y}{c} \cdot \frac{x}{z}\right)} \]
    8. Simplified56.3%

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

    if -2.24999999999999987e-204 < b < 2.5000000000000001e-28 or 1.0499999999999999e90 < b < 1.3000000000000001e108

    1. Initial program 78.2%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*78.2%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*77.5%

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified77.5%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -4.5 \cdot 10^{-65}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \mathbf{elif}\;b \leq -2.25 \cdot 10^{-204}:\\ \;\;\;\;9 \cdot \left(\frac{x}{z} \cdot \frac{y}{c}\right)\\ \mathbf{elif}\;b \leq 2.5 \cdot 10^{-28}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 1.05 \cdot 10^{+90}:\\ \;\;\;\;9 \cdot \left(\frac{x}{z} \cdot \frac{y}{c}\right)\\ \mathbf{elif}\;b \leq 1.3 \cdot 10^{+108}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \end{array} \]

Alternative 10: 85.9% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \frac{\frac{x \cdot \left(9 \cdot y\right) + b}{z} + t \cdot \left(a \cdot -4\right)}{c} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (/ (+ (/ (+ (* x (* 9.0 y)) b) z) (* t (* a -4.0))) c))
double code(double x, double y, double z, double t, double a, double b, double c) {
	return ((((x * (9.0 * y)) + b) / z) + (t * (a * -4.0))) / c;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    code = ((((x * (9.0d0 * y)) + b) / z) + (t * (a * (-4.0d0)))) / c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	return ((((x * (9.0 * y)) + b) / z) + (t * (a * -4.0))) / c;
}
def code(x, y, z, t, a, b, c):
	return ((((x * (9.0 * y)) + b) / z) + (t * (a * -4.0))) / c
function code(x, y, z, t, a, b, c)
	return Float64(Float64(Float64(Float64(Float64(x * Float64(9.0 * y)) + b) / z) + Float64(t * Float64(a * -4.0))) / c)
end
function tmp = code(x, y, z, t, a, b, c)
	tmp = ((((x * (9.0 * y)) + b) / z) + (t * (a * -4.0))) / c;
end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / z), $MachinePrecision] + N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]
\begin{array}{l}

\\
\frac{\frac{x \cdot \left(9 \cdot y\right) + b}{z} + t \cdot \left(a \cdot -4\right)}{c}
\end{array}
Derivation
  1. Initial program 83.8%

    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
  2. Step-by-step derivation
    1. associate-/r*81.6%

      \[\leadsto \color{blue}{\frac{\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z}}{c}} \]
  3. Simplified87.5%

    \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(x, 9 \cdot y, b\right)}{z} + t \cdot \left(a \cdot -4\right)}{c}} \]
  4. Step-by-step derivation
    1. fma-udef87.5%

      \[\leadsto \frac{\frac{\color{blue}{x \cdot \left(9 \cdot y\right) + b}}{z} + t \cdot \left(a \cdot -4\right)}{c} \]
  5. Applied egg-rr87.5%

    \[\leadsto \frac{\frac{\color{blue}{x \cdot \left(9 \cdot y\right) + b}}{z} + t \cdot \left(a \cdot -4\right)}{c} \]
  6. Final simplification87.5%

    \[\leadsto \frac{\frac{x \cdot \left(9 \cdot y\right) + b}{z} + t \cdot \left(a \cdot -4\right)}{c} \]

Alternative 11: 48.2% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := -4 \cdot \frac{t \cdot a}{c}\\ t_2 := \frac{\frac{b}{c}}{z}\\ t_3 := \frac{\frac{b}{z}}{c}\\ \mathbf{if}\;b \leq -4.5 \cdot 10^{-53}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq 6 \cdot 10^{-12}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 1.9 \cdot 10^{+83}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;b \leq 1.05 \cdot 10^{+108}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 8.8 \cdot 10^{+224}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (let* ((t_1 (* -4.0 (/ (* t a) c))) (t_2 (/ (/ b c) z)) (t_3 (/ (/ b z) c)))
   (if (<= b -4.5e-53)
     t_2
     (if (<= b 6e-12)
       t_1
       (if (<= b 1.9e+83)
         t_3
         (if (<= b 1.05e+108) t_1 (if (<= b 8.8e+224) t_2 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = -4.0 * ((t * a) / c);
	double t_2 = (b / c) / z;
	double t_3 = (b / z) / c;
	double tmp;
	if (b <= -4.5e-53) {
		tmp = t_2;
	} else if (b <= 6e-12) {
		tmp = t_1;
	} else if (b <= 1.9e+83) {
		tmp = t_3;
	} else if (b <= 1.05e+108) {
		tmp = t_1;
	} else if (b <= 8.8e+224) {
		tmp = t_2;
	} else {
		tmp = t_3;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = (-4.0d0) * ((t * a) / c)
    t_2 = (b / c) / z
    t_3 = (b / z) / c
    if (b <= (-4.5d-53)) then
        tmp = t_2
    else if (b <= 6d-12) then
        tmp = t_1
    else if (b <= 1.9d+83) then
        tmp = t_3
    else if (b <= 1.05d+108) then
        tmp = t_1
    else if (b <= 8.8d+224) then
        tmp = t_2
    else
        tmp = t_3
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = -4.0 * ((t * a) / c);
	double t_2 = (b / c) / z;
	double t_3 = (b / z) / c;
	double tmp;
	if (b <= -4.5e-53) {
		tmp = t_2;
	} else if (b <= 6e-12) {
		tmp = t_1;
	} else if (b <= 1.9e+83) {
		tmp = t_3;
	} else if (b <= 1.05e+108) {
		tmp = t_1;
	} else if (b <= 8.8e+224) {
		tmp = t_2;
	} else {
		tmp = t_3;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	t_1 = -4.0 * ((t * a) / c)
	t_2 = (b / c) / z
	t_3 = (b / z) / c
	tmp = 0
	if b <= -4.5e-53:
		tmp = t_2
	elif b <= 6e-12:
		tmp = t_1
	elif b <= 1.9e+83:
		tmp = t_3
	elif b <= 1.05e+108:
		tmp = t_1
	elif b <= 8.8e+224:
		tmp = t_2
	else:
		tmp = t_3
	return tmp
function code(x, y, z, t, a, b, c)
	t_1 = Float64(-4.0 * Float64(Float64(t * a) / c))
	t_2 = Float64(Float64(b / c) / z)
	t_3 = Float64(Float64(b / z) / c)
	tmp = 0.0
	if (b <= -4.5e-53)
		tmp = t_2;
	elseif (b <= 6e-12)
		tmp = t_1;
	elseif (b <= 1.9e+83)
		tmp = t_3;
	elseif (b <= 1.05e+108)
		tmp = t_1;
	elseif (b <= 8.8e+224)
		tmp = t_2;
	else
		tmp = t_3;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	t_1 = -4.0 * ((t * a) / c);
	t_2 = (b / c) / z;
	t_3 = (b / z) / c;
	tmp = 0.0;
	if (b <= -4.5e-53)
		tmp = t_2;
	elseif (b <= 6e-12)
		tmp = t_1;
	elseif (b <= 1.9e+83)
		tmp = t_3;
	elseif (b <= 1.05e+108)
		tmp = t_1;
	elseif (b <= 8.8e+224)
		tmp = t_2;
	else
		tmp = t_3;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[b, -4.5e-53], t$95$2, If[LessEqual[b, 6e-12], t$95$1, If[LessEqual[b, 1.9e+83], t$95$3, If[LessEqual[b, 1.05e+108], t$95$1, If[LessEqual[b, 8.8e+224], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := -4 \cdot \frac{t \cdot a}{c}\\
t_2 := \frac{\frac{b}{c}}{z}\\
t_3 := \frac{\frac{b}{z}}{c}\\
\mathbf{if}\;b \leq -4.5 \cdot 10^{-53}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq 6 \cdot 10^{-12}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq 1.9 \cdot 10^{+83}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;b \leq 1.05 \cdot 10^{+108}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq 8.8 \cdot 10^{+224}:\\
\;\;\;\;t_2\\

\mathbf{else}:\\
\;\;\;\;t_3\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -4.49999999999999985e-53 or 1.05000000000000005e108 < b < 8.7999999999999999e224

    1. Initial program 84.9%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*84.8%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*81.7%

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified81.7%

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    5. Step-by-step derivation
      1. associate-/r*58.5%

        \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
    6. Simplified58.5%

      \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]

    if -4.49999999999999985e-53 < b < 6.0000000000000003e-12 or 1.9000000000000001e83 < b < 1.05000000000000005e108

    1. Initial program 80.7%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*80.8%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*80.9%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]

    if 6.0000000000000003e-12 < b < 1.9000000000000001e83 or 8.7999999999999999e224 < b

    1. Initial program 96.2%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-/r*92.8%

        \[\leadsto \color{blue}{\frac{\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z}}{c}} \]
    3. Simplified92.8%

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

      \[\leadsto \color{blue}{\frac{\frac{b}{z} + 9 \cdot \frac{y \cdot x}{z}}{c}} \]
    5. Step-by-step derivation
      1. associate-/l*78.9%

        \[\leadsto \frac{\frac{b}{z} + 9 \cdot \color{blue}{\frac{y}{\frac{z}{x}}}}{c} \]
    6. Simplified78.9%

      \[\leadsto \color{blue}{\frac{\frac{b}{z} + 9 \cdot \frac{y}{\frac{z}{x}}}{c}} \]
    7. Taylor expanded in b around inf 75.6%

      \[\leadsto \frac{\color{blue}{\frac{b}{z}}}{c} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification54.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -4.5 \cdot 10^{-53}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \mathbf{elif}\;b \leq 6 \cdot 10^{-12}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 1.9 \cdot 10^{+83}:\\ \;\;\;\;\frac{\frac{b}{z}}{c}\\ \mathbf{elif}\;b \leq 1.05 \cdot 10^{+108}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 8.8 \cdot 10^{+224}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{z}}{c}\\ \end{array} \]

Alternative 12: 48.5% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := -4 \cdot \frac{t \cdot a}{c}\\ t_2 := \frac{\frac{b}{c}}{z}\\ \mathbf{if}\;b \leq -9 \cdot 10^{-53}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq 5.5 \cdot 10^{-12}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 6.2 \cdot 10^{+80}:\\ \;\;\;\;\frac{b}{z} \cdot \frac{1}{c}\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{+107}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (let* ((t_1 (* -4.0 (/ (* t a) c))) (t_2 (/ (/ b c) z)))
   (if (<= b -9e-53)
     t_2
     (if (<= b 5.5e-12)
       t_1
       (if (<= b 6.2e+80)
         (* (/ b z) (/ 1.0 c))
         (if (<= b 9.8e+107) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = -4.0 * ((t * a) / c);
	double t_2 = (b / c) / z;
	double tmp;
	if (b <= -9e-53) {
		tmp = t_2;
	} else if (b <= 5.5e-12) {
		tmp = t_1;
	} else if (b <= 6.2e+80) {
		tmp = (b / z) * (1.0 / c);
	} else if (b <= 9.8e+107) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = (-4.0d0) * ((t * a) / c)
    t_2 = (b / c) / z
    if (b <= (-9d-53)) then
        tmp = t_2
    else if (b <= 5.5d-12) then
        tmp = t_1
    else if (b <= 6.2d+80) then
        tmp = (b / z) * (1.0d0 / c)
    else if (b <= 9.8d+107) 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 c) {
	double t_1 = -4.0 * ((t * a) / c);
	double t_2 = (b / c) / z;
	double tmp;
	if (b <= -9e-53) {
		tmp = t_2;
	} else if (b <= 5.5e-12) {
		tmp = t_1;
	} else if (b <= 6.2e+80) {
		tmp = (b / z) * (1.0 / c);
	} else if (b <= 9.8e+107) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	t_1 = -4.0 * ((t * a) / c)
	t_2 = (b / c) / z
	tmp = 0
	if b <= -9e-53:
		tmp = t_2
	elif b <= 5.5e-12:
		tmp = t_1
	elif b <= 6.2e+80:
		tmp = (b / z) * (1.0 / c)
	elif b <= 9.8e+107:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c)
	t_1 = Float64(-4.0 * Float64(Float64(t * a) / c))
	t_2 = Float64(Float64(b / c) / z)
	tmp = 0.0
	if (b <= -9e-53)
		tmp = t_2;
	elseif (b <= 5.5e-12)
		tmp = t_1;
	elseif (b <= 6.2e+80)
		tmp = Float64(Float64(b / z) * Float64(1.0 / c));
	elseif (b <= 9.8e+107)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	t_1 = -4.0 * ((t * a) / c);
	t_2 = (b / c) / z;
	tmp = 0.0;
	if (b <= -9e-53)
		tmp = t_2;
	elseif (b <= 5.5e-12)
		tmp = t_1;
	elseif (b <= 6.2e+80)
		tmp = (b / z) * (1.0 / c);
	elseif (b <= 9.8e+107)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[b, -9e-53], t$95$2, If[LessEqual[b, 5.5e-12], t$95$1, If[LessEqual[b, 6.2e+80], N[(N[(b / z), $MachinePrecision] * N[(1.0 / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.8e+107], t$95$1, t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := -4 \cdot \frac{t \cdot a}{c}\\
t_2 := \frac{\frac{b}{c}}{z}\\
\mathbf{if}\;b \leq -9 \cdot 10^{-53}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq 5.5 \cdot 10^{-12}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq 6.2 \cdot 10^{+80}:\\
\;\;\;\;\frac{b}{z} \cdot \frac{1}{c}\\

\mathbf{elif}\;b \leq 9.8 \cdot 10^{+107}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -8.9999999999999997e-53 or 9.8000000000000003e107 < b

    1. Initial program 87.0%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*87.0%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*84.3%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    5. Step-by-step derivation
      1. associate-/r*60.8%

        \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
    6. Simplified60.8%

      \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]

    if -8.9999999999999997e-53 < b < 5.5000000000000004e-12 or 6.19999999999999976e80 < b < 9.8000000000000003e107

    1. Initial program 80.7%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*80.8%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*80.9%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]

    if 5.5000000000000004e-12 < b < 6.19999999999999976e80

    1. Initial program 91.9%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*91.9%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*91.9%

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

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

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

        \[\leadsto \frac{1 \cdot \left(\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b\right)}{\color{blue}{c \cdot z}} \]
      3. times-frac84.2%

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

        \[\leadsto \frac{1}{c} \cdot \frac{\left(\color{blue}{\left(x \cdot 9\right) \cdot y} - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{z} \]
      5. associate-*r*84.2%

        \[\leadsto \frac{1}{c} \cdot \frac{\left(\left(x \cdot 9\right) \cdot y - \color{blue}{\left(\left(z \cdot 4\right) \cdot t\right) \cdot a}\right) + b}{z} \]
      6. associate-*r*84.2%

        \[\leadsto \frac{1}{c} \cdot \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z} \]
      7. associate-*r*84.2%

        \[\leadsto \frac{1}{c} \cdot \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z} \]
      8. associate-*l*84.2%

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

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

      \[\leadsto \frac{1}{c} \cdot \color{blue}{\frac{b}{z}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification53.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -9 \cdot 10^{-53}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \mathbf{elif}\;b \leq 5.5 \cdot 10^{-12}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;b \leq 6.2 \cdot 10^{+80}:\\ \;\;\;\;\frac{b}{z} \cdot \frac{1}{c}\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{+107}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \end{array} \]

Alternative 13: 68.0% accurate, 1.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.1 \cdot 10^{+174}:\\ \;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\ \mathbf{elif}\;z \leq 9.6 \cdot 10^{+147}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (if (<= z -3.1e+174)
   (* -4.0 (* t (/ a c)))
   (if (<= z 9.6e+147)
     (/ (+ b (* 9.0 (* x y))) (* z c))
     (* -4.0 (/ (* t a) c)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (z <= -3.1e+174) {
		tmp = -4.0 * (t * (a / c));
	} else if (z <= 9.6e+147) {
		tmp = (b + (9.0 * (x * y))) / (z * c);
	} else {
		tmp = -4.0 * ((t * a) / c);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if (z <= (-3.1d+174)) then
        tmp = (-4.0d0) * (t * (a / c))
    else if (z <= 9.6d+147) then
        tmp = (b + (9.0d0 * (x * y))) / (z * c)
    else
        tmp = (-4.0d0) * ((t * a) / c)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (z <= -3.1e+174) {
		tmp = -4.0 * (t * (a / c));
	} else if (z <= 9.6e+147) {
		tmp = (b + (9.0 * (x * y))) / (z * c);
	} else {
		tmp = -4.0 * ((t * a) / c);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	tmp = 0
	if z <= -3.1e+174:
		tmp = -4.0 * (t * (a / c))
	elif z <= 9.6e+147:
		tmp = (b + (9.0 * (x * y))) / (z * c)
	else:
		tmp = -4.0 * ((t * a) / c)
	return tmp
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if (z <= -3.1e+174)
		tmp = Float64(-4.0 * Float64(t * Float64(a / c)));
	elseif (z <= 9.6e+147)
		tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c));
	else
		tmp = Float64(-4.0 * Float64(Float64(t * a) / c));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if (z <= -3.1e+174)
		tmp = -4.0 * (t * (a / c));
	elseif (z <= 9.6e+147)
		tmp = (b + (9.0 * (x * y))) / (z * c);
	else
		tmp = -4.0 * ((t * a) / c);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -3.1e+174], N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.6e+147], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+174}:\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\

\mathbf{elif}\;z \leq 9.6 \cdot 10^{+147}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\

\mathbf{else}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -3.1e174

    1. Initial program 54.8%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*54.9%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*61.9%

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

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]
    5. Step-by-step derivation
      1. *-commutative72.8%

        \[\leadsto \color{blue}{\frac{a \cdot t}{c} \cdot -4} \]
      2. *-commutative72.8%

        \[\leadsto \frac{\color{blue}{t \cdot a}}{c} \cdot -4 \]
      3. associate-/l*75.1%

        \[\leadsto \color{blue}{\frac{t}{\frac{c}{a}}} \cdot -4 \]
    6. Simplified75.1%

      \[\leadsto \color{blue}{\frac{t}{\frac{c}{a}} \cdot -4} \]
    7. Taylor expanded in t around 0 72.8%

      \[\leadsto \color{blue}{\frac{a \cdot t}{c}} \cdot -4 \]
    8. Step-by-step derivation
      1. associate-/l*66.0%

        \[\leadsto \color{blue}{\frac{a}{\frac{c}{t}}} \cdot -4 \]
      2. associate-/r/72.8%

        \[\leadsto \color{blue}{\left(\frac{a}{c} \cdot t\right)} \cdot -4 \]
    9. Simplified72.8%

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

    if -3.1e174 < z < 9.60000000000000007e147

    1. Initial program 91.4%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*91.4%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*88.7%

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified88.7%

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

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

    if 9.60000000000000007e147 < z

    1. Initial program 45.8%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*45.8%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*50.8%

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified50.8%

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

      \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification70.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.1 \cdot 10^{+174}:\\ \;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\ \mathbf{elif}\;z \leq 9.6 \cdot 10^{+147}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\ \end{array} \]

Alternative 14: 35.0% accurate, 2.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 2.5 \cdot 10^{+52}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{z}}{c}\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (if (<= y 2.5e+52) (/ (/ b c) z) (/ (/ b z) c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (y <= 2.5e+52) {
		tmp = (b / c) / z;
	} else {
		tmp = (b / z) / c;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if (y <= 2.5d+52) then
        tmp = (b / c) / z
    else
        tmp = (b / z) / c
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (y <= 2.5e+52) {
		tmp = (b / c) / z;
	} else {
		tmp = (b / z) / c;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	tmp = 0
	if y <= 2.5e+52:
		tmp = (b / c) / z
	else:
		tmp = (b / z) / c
	return tmp
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if (y <= 2.5e+52)
		tmp = Float64(Float64(b / c) / z);
	else
		tmp = Float64(Float64(b / z) / c);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if (y <= 2.5e+52)
		tmp = (b / c) / z;
	else
		tmp = (b / z) / c;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 2.5e+52], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.5 \cdot 10^{+52}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\

\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 2.5e52

    1. Initial program 83.9%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-*l*84.0%

        \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. associate-*l*83.2%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    5. Step-by-step derivation
      1. associate-/r*36.6%

        \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
    6. Simplified36.6%

      \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]

    if 2.5e52 < y

    1. Initial program 83.1%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. associate-/r*81.4%

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

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

      \[\leadsto \color{blue}{\frac{\frac{b}{z} + 9 \cdot \frac{y \cdot x}{z}}{c}} \]
    5. Step-by-step derivation
      1. associate-/l*64.0%

        \[\leadsto \frac{\frac{b}{z} + 9 \cdot \color{blue}{\frac{y}{\frac{z}{x}}}}{c} \]
    6. Simplified64.0%

      \[\leadsto \color{blue}{\frac{\frac{b}{z} + 9 \cdot \frac{y}{\frac{z}{x}}}{c}} \]
    7. Taylor expanded in b around inf 25.5%

      \[\leadsto \frac{\color{blue}{\frac{b}{z}}}{c} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification34.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 2.5 \cdot 10^{+52}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{z}}{c}\\ \end{array} \]

Alternative 15: 35.5% accurate, 3.8× speedup?

\[\begin{array}{l} \\ \frac{b}{z \cdot c} \end{array} \]
(FPCore (x y z t a b c) :precision binary64 (/ b (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
	return b / (z * c);
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    code = b / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	return b / (z * c);
}
def code(x, y, z, t, a, b, c):
	return b / (z * c)
function code(x, y, z, t, a, b, c)
	return Float64(b / Float64(z * c))
end
function tmp = code(x, y, z, t, a, b, c)
	tmp = b / (z * c);
end
code[x_, y_, z_, t_, a_, b_, c_] := N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{b}{z \cdot c}
\end{array}
Derivation
  1. Initial program 83.8%

    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
  2. Step-by-step derivation
    1. associate-*l*83.8%

      \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. associate-*l*82.8%

      \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z \cdot c} \]
  3. Simplified82.8%

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

    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
  5. Final simplification33.1%

    \[\leadsto \frac{b}{z \cdot c} \]

Alternative 16: 35.3% accurate, 3.8× speedup?

\[\begin{array}{l} \\ \frac{\frac{b}{c}}{z} \end{array} \]
(FPCore (x y z t a b c) :precision binary64 (/ (/ b c) z))
double code(double x, double y, double z, double t, double a, double b, double c) {
	return (b / c) / z;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    code = (b / c) / z
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	return (b / c) / z;
}
def code(x, y, z, t, a, b, c):
	return (b / c) / z
function code(x, y, z, t, a, b, c)
	return Float64(Float64(b / c) / z)
end
function tmp = code(x, y, z, t, a, b, c)
	tmp = (b / c) / z;
end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}

\\
\frac{\frac{b}{c}}{z}
\end{array}
Derivation
  1. Initial program 83.8%

    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
  2. Step-by-step derivation
    1. associate-*l*83.8%

      \[\leadsto \frac{\left(\color{blue}{x \cdot \left(9 \cdot y\right)} - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. associate-*l*82.8%

      \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \color{blue}{\left(z \cdot 4\right) \cdot \left(t \cdot a\right)}\right) + b}{z \cdot c} \]
  3. Simplified82.8%

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

    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
  5. Step-by-step derivation
    1. associate-/r*33.5%

      \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
  6. Simplified33.5%

    \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
  7. Final simplification33.5%

    \[\leadsto \frac{\frac{b}{c}}{z} \]

Developer target: 79.9% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{b}{c \cdot z}\\ t_2 := 4 \cdot \frac{a \cdot t}{c}\\ t_3 := \left(x \cdot 9\right) \cdot y\\ t_4 := \left(t_3 - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b\\ t_5 := \frac{t_4}{z \cdot c}\\ t_6 := \frac{\left(t_3 - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{z \cdot c}\\ \mathbf{if}\;t_5 < -1.100156740804105 \cdot 10^{-171}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;t_5 < 0:\\ \;\;\;\;\frac{\frac{t_4}{z}}{c}\\ \mathbf{elif}\;t_5 < 1.1708877911747488 \cdot 10^{-53}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;t_5 < 2.876823679546137 \cdot 10^{+130}:\\ \;\;\;\;\left(\left(9 \cdot \frac{y}{c}\right) \cdot \frac{x}{z} + t_1\right) - t_2\\ \mathbf{elif}\;t_5 < 1.3838515042456319 \cdot 10^{+158}:\\ \;\;\;\;t_6\\ \mathbf{else}:\\ \;\;\;\;\left(9 \cdot \left(\frac{y}{c \cdot z} \cdot x\right) + t_1\right) - t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (let* ((t_1 (/ b (* c z)))
        (t_2 (* 4.0 (/ (* a t) c)))
        (t_3 (* (* x 9.0) y))
        (t_4 (+ (- t_3 (* (* (* z 4.0) t) a)) b))
        (t_5 (/ t_4 (* z c)))
        (t_6 (/ (+ (- t_3 (* (* z 4.0) (* t a))) b) (* z c))))
   (if (< t_5 -1.100156740804105e-171)
     t_6
     (if (< t_5 0.0)
       (/ (/ t_4 z) c)
       (if (< t_5 1.1708877911747488e-53)
         t_6
         (if (< t_5 2.876823679546137e+130)
           (- (+ (* (* 9.0 (/ y c)) (/ x z)) t_1) t_2)
           (if (< t_5 1.3838515042456319e+158)
             t_6
             (- (+ (* 9.0 (* (/ y (* c z)) x)) t_1) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = b / (c * z);
	double t_2 = 4.0 * ((a * t) / c);
	double t_3 = (x * 9.0) * y;
	double t_4 = (t_3 - (((z * 4.0) * t) * a)) + b;
	double t_5 = t_4 / (z * c);
	double t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c);
	double tmp;
	if (t_5 < -1.100156740804105e-171) {
		tmp = t_6;
	} else if (t_5 < 0.0) {
		tmp = (t_4 / z) / c;
	} else if (t_5 < 1.1708877911747488e-53) {
		tmp = t_6;
	} else if (t_5 < 2.876823679546137e+130) {
		tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2;
	} else if (t_5 < 1.3838515042456319e+158) {
		tmp = t_6;
	} else {
		tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: t_4
    real(8) :: t_5
    real(8) :: t_6
    real(8) :: tmp
    t_1 = b / (c * z)
    t_2 = 4.0d0 * ((a * t) / c)
    t_3 = (x * 9.0d0) * y
    t_4 = (t_3 - (((z * 4.0d0) * t) * a)) + b
    t_5 = t_4 / (z * c)
    t_6 = ((t_3 - ((z * 4.0d0) * (t * a))) + b) / (z * c)
    if (t_5 < (-1.100156740804105d-171)) then
        tmp = t_6
    else if (t_5 < 0.0d0) then
        tmp = (t_4 / z) / c
    else if (t_5 < 1.1708877911747488d-53) then
        tmp = t_6
    else if (t_5 < 2.876823679546137d+130) then
        tmp = (((9.0d0 * (y / c)) * (x / z)) + t_1) - t_2
    else if (t_5 < 1.3838515042456319d+158) then
        tmp = t_6
    else
        tmp = ((9.0d0 * ((y / (c * z)) * x)) + t_1) - 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 c) {
	double t_1 = b / (c * z);
	double t_2 = 4.0 * ((a * t) / c);
	double t_3 = (x * 9.0) * y;
	double t_4 = (t_3 - (((z * 4.0) * t) * a)) + b;
	double t_5 = t_4 / (z * c);
	double t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c);
	double tmp;
	if (t_5 < -1.100156740804105e-171) {
		tmp = t_6;
	} else if (t_5 < 0.0) {
		tmp = (t_4 / z) / c;
	} else if (t_5 < 1.1708877911747488e-53) {
		tmp = t_6;
	} else if (t_5 < 2.876823679546137e+130) {
		tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2;
	} else if (t_5 < 1.3838515042456319e+158) {
		tmp = t_6;
	} else {
		tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c):
	t_1 = b / (c * z)
	t_2 = 4.0 * ((a * t) / c)
	t_3 = (x * 9.0) * y
	t_4 = (t_3 - (((z * 4.0) * t) * a)) + b
	t_5 = t_4 / (z * c)
	t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c)
	tmp = 0
	if t_5 < -1.100156740804105e-171:
		tmp = t_6
	elif t_5 < 0.0:
		tmp = (t_4 / z) / c
	elif t_5 < 1.1708877911747488e-53:
		tmp = t_6
	elif t_5 < 2.876823679546137e+130:
		tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2
	elif t_5 < 1.3838515042456319e+158:
		tmp = t_6
	else:
		tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2
	return tmp
function code(x, y, z, t, a, b, c)
	t_1 = Float64(b / Float64(c * z))
	t_2 = Float64(4.0 * Float64(Float64(a * t) / c))
	t_3 = Float64(Float64(x * 9.0) * y)
	t_4 = Float64(Float64(t_3 - Float64(Float64(Float64(z * 4.0) * t) * a)) + b)
	t_5 = Float64(t_4 / Float64(z * c))
	t_6 = Float64(Float64(Float64(t_3 - Float64(Float64(z * 4.0) * Float64(t * a))) + b) / Float64(z * c))
	tmp = 0.0
	if (t_5 < -1.100156740804105e-171)
		tmp = t_6;
	elseif (t_5 < 0.0)
		tmp = Float64(Float64(t_4 / z) / c);
	elseif (t_5 < 1.1708877911747488e-53)
		tmp = t_6;
	elseif (t_5 < 2.876823679546137e+130)
		tmp = Float64(Float64(Float64(Float64(9.0 * Float64(y / c)) * Float64(x / z)) + t_1) - t_2);
	elseif (t_5 < 1.3838515042456319e+158)
		tmp = t_6;
	else
		tmp = Float64(Float64(Float64(9.0 * Float64(Float64(y / Float64(c * z)) * x)) + t_1) - t_2);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c)
	t_1 = b / (c * z);
	t_2 = 4.0 * ((a * t) / c);
	t_3 = (x * 9.0) * y;
	t_4 = (t_3 - (((z * 4.0) * t) * a)) + b;
	t_5 = t_4 / (z * c);
	t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c);
	tmp = 0.0;
	if (t_5 < -1.100156740804105e-171)
		tmp = t_6;
	elseif (t_5 < 0.0)
		tmp = (t_4 / z) / c;
	elseif (t_5 < 1.1708877911747488e-53)
		tmp = t_6;
	elseif (t_5 < 2.876823679546137e+130)
		tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2;
	elseif (t_5 < 1.3838515042456319e+158)
		tmp = t_6;
	else
		tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t$95$3 - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]}, Block[{t$95$5 = N[(t$95$4 / N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(t$95$3 - N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$5, -1.100156740804105e-171], t$95$6, If[Less[t$95$5, 0.0], N[(N[(t$95$4 / z), $MachinePrecision] / c), $MachinePrecision], If[Less[t$95$5, 1.1708877911747488e-53], t$95$6, If[Less[t$95$5, 2.876823679546137e+130], N[(N[(N[(N[(9.0 * N[(y / c), $MachinePrecision]), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], If[Less[t$95$5, 1.3838515042456319e+158], t$95$6, N[(N[(N[(9.0 * N[(N[(y / N[(c * z), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{b}{c \cdot z}\\
t_2 := 4 \cdot \frac{a \cdot t}{c}\\
t_3 := \left(x \cdot 9\right) \cdot y\\
t_4 := \left(t_3 - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b\\
t_5 := \frac{t_4}{z \cdot c}\\
t_6 := \frac{\left(t_3 - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{z \cdot c}\\
\mathbf{if}\;t_5 < -1.100156740804105 \cdot 10^{-171}:\\
\;\;\;\;t_6\\

\mathbf{elif}\;t_5 < 0:\\
\;\;\;\;\frac{\frac{t_4}{z}}{c}\\

\mathbf{elif}\;t_5 < 1.1708877911747488 \cdot 10^{-53}:\\
\;\;\;\;t_6\\

\mathbf{elif}\;t_5 < 2.876823679546137 \cdot 10^{+130}:\\
\;\;\;\;\left(\left(9 \cdot \frac{y}{c}\right) \cdot \frac{x}{z} + t_1\right) - t_2\\

\mathbf{elif}\;t_5 < 1.3838515042456319 \cdot 10^{+158}:\\
\;\;\;\;t_6\\

\mathbf{else}:\\
\;\;\;\;\left(9 \cdot \left(\frac{y}{c \cdot z} \cdot x\right) + t_1\right) - t_2\\


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2023217 
(FPCore (x y z t a b c)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, J"
  :precision binary64

  :herbie-target
  (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) -1.100156740804105e-171) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 0.0) (/ (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) z) c) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 1.1708877911747488e-53) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 2.876823679546137e+130) (- (+ (* (* 9.0 (/ y c)) (/ x z)) (/ b (* c z))) (* 4.0 (/ (* a t) c))) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 1.3838515042456319e+158) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (- (+ (* 9.0 (* (/ y (* c z)) x)) (/ b (* c z))) (* 4.0 (/ (* a t) c))))))))

  (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))