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

Percentage Accurate: 80.0% → 89.8%
Time: 20.9s
Alternatives: 13
Speedup: 0.7×

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 13 alternatives:

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

Initial Program: 80.0% 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: 89.8% accurate, 0.1× speedup?

\[\begin{array}{l} c_m = \left|c\right| \\ c_s = \mathsf{copysign}\left(1, c\right) \\ [x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\ \\ c\_s \cdot \begin{array}{l} \mathbf{if}\;c\_m \leq 7.2 \cdot 10^{-72}:\\ \;\;\;\;\frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{c\_m \cdot z}\\ \mathbf{elif}\;c\_m \leq 1.46 \cdot 10^{+227}:\\ \;\;\;\;\frac{\frac{b}{c\_m} - -9 \cdot \frac{x}{\frac{c\_m}{y}}}{z} - 4 \cdot \frac{t \cdot a}{c\_m}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t \cdot \frac{a}{c\_m}, -4, \mathsf{fma}\left(9, \frac{x}{z} \cdot \frac{y}{c\_m}, \frac{b}{c\_m \cdot z}\right)\right)\\ \end{array} \end{array} \]
c_m = (fabs.f64 c)
c_s = (copysign.f64 1 c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
 :precision binary64
 (*
  c_s
  (if (<= c_m 7.2e-72)
    (/ (+ (- (* x (* 9.0 y)) (* (* z 4.0) (* t a))) b) (* c_m z))
    (if (<= c_m 1.46e+227)
      (- (/ (- (/ b c_m) (* -9.0 (/ x (/ c_m y)))) z) (* 4.0 (/ (* t a) c_m)))
      (fma
       (* t (/ a c_m))
       -4.0
       (fma 9.0 (* (/ x z) (/ y c_m)) (/ b (* c_m z))))))))
c_m = fabs(c);
c_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if (c_m <= 7.2e-72) {
		tmp = (((x * (9.0 * y)) - ((z * 4.0) * (t * a))) + b) / (c_m * z);
	} else if (c_m <= 1.46e+227) {
		tmp = (((b / c_m) - (-9.0 * (x / (c_m / y)))) / z) - (4.0 * ((t * a) / c_m));
	} else {
		tmp = fma((t * (a / c_m)), -4.0, fma(9.0, ((x / z) * (y / c_m)), (b / (c_m * z))));
	}
	return c_s * tmp;
}
c_m = abs(c)
c_s = copysign(1.0, c)
x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m])
function code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0
	if (c_m <= 7.2e-72)
		tmp = Float64(Float64(Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(z * 4.0) * Float64(t * a))) + b) / Float64(c_m * z));
	elseif (c_m <= 1.46e+227)
		tmp = Float64(Float64(Float64(Float64(b / c_m) - Float64(-9.0 * Float64(x / Float64(c_m / y)))) / z) - Float64(4.0 * Float64(Float64(t * a) / c_m)));
	else
		tmp = fma(Float64(t * Float64(a / c_m)), -4.0, fma(9.0, Float64(Float64(x / z) * Float64(y / c_m)), Float64(b / Float64(c_m * z))));
	end
	return Float64(c_s * tmp)
end
c_m = N[Abs[c], $MachinePrecision]
c_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[c$95$m, 7.2e-72], N[(N[(N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c$95$m, 1.46e+227], N[(N[(N[(N[(b / c$95$m), $MachinePrecision] - N[(-9.0 * N[(x / N[(c$95$m / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(a / c$95$m), $MachinePrecision]), $MachinePrecision] * -4.0 + N[(9.0 * N[(N[(x / z), $MachinePrecision] * N[(y / c$95$m), $MachinePrecision]), $MachinePrecision] + N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c_m = \left|c\right|
\\
c_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;c\_m \leq 7.2 \cdot 10^{-72}:\\
\;\;\;\;\frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{c\_m \cdot z}\\

\mathbf{elif}\;c\_m \leq 1.46 \cdot 10^{+227}:\\
\;\;\;\;\frac{\frac{b}{c\_m} - -9 \cdot \frac{x}{\frac{c\_m}{y}}}{z} - 4 \cdot \frac{t \cdot a}{c\_m}\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t \cdot \frac{a}{c\_m}, -4, \mathsf{fma}\left(9, \frac{x}{z} \cdot \frac{y}{c\_m}, \frac{b}{c\_m \cdot z}\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if c < 7.2e-72

    1. Initial program 84.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-84.7%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*84.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} \]
      10. associate-*l*87.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. Simplified87.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. Add Preprocessing

    if 7.2e-72 < c < 1.45999999999999993e227

    1. Initial program 77.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-77.3%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*77.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} \]
      10. associate-*l*79.1%

        \[\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.1%

      \[\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. Add Preprocessing
    5. Taylor expanded in x around 0 86.5%

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

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

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

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

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

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

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

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

    if 1.45999999999999993e227 < c

    1. Initial program 43.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-43.5%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*43.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} \]
      10. associate-*l*33.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. Simplified33.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. Add Preprocessing
    5. Taylor expanded in x around 0 54.3%

      \[\leadsto \color{blue}{\left(9 \cdot \frac{x \cdot y}{c \cdot z} + \frac{b}{c \cdot z}\right) - 4 \cdot \frac{a \cdot t}{c}} \]
    6. Step-by-step derivation
      1. cancel-sign-sub-inv54.3%

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

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

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{a \cdot t}{c}, -4, 9 \cdot \frac{x \cdot y}{c \cdot z} + \frac{b}{c \cdot z}\right)} \]
      6. associate-/l*69.6%

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{a}{\frac{c}{t}}}, -4, 9 \cdot \frac{x \cdot y}{c \cdot z} + \frac{b}{c \cdot z}\right) \]
      7. associate-/r/71.4%

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

        \[\leadsto \mathsf{fma}\left(\frac{a}{c} \cdot t, -4, \color{blue}{\mathsf{fma}\left(9, \frac{x \cdot y}{c \cdot z}, \frac{b}{c \cdot z}\right)}\right) \]
      9. *-commutative71.4%

        \[\leadsto \mathsf{fma}\left(\frac{a}{c} \cdot t, -4, \mathsf{fma}\left(9, \frac{x \cdot y}{\color{blue}{z \cdot c}}, \frac{b}{c \cdot z}\right)\right) \]
      10. times-frac86.8%

        \[\leadsto \mathsf{fma}\left(\frac{a}{c} \cdot t, -4, \mathsf{fma}\left(9, \color{blue}{\frac{x}{z} \cdot \frac{y}{c}}, \frac{b}{c \cdot z}\right)\right) \]
      11. *-commutative86.8%

        \[\leadsto \mathsf{fma}\left(\frac{a}{c} \cdot t, -4, \mathsf{fma}\left(9, \frac{x}{z} \cdot \frac{y}{c}, \frac{b}{\color{blue}{z \cdot c}}\right)\right) \]
    7. Simplified86.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{a}{c} \cdot t, -4, \mathsf{fma}\left(9, \frac{x}{z} \cdot \frac{y}{c}, \frac{b}{z \cdot c}\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification88.7%

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

Alternative 2: 88.3% accurate, 0.2× speedup?

\[\begin{array}{l} c_m = \left|c\right| \\ c_s = \mathsf{copysign}\left(1, c\right) \\ [x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\ \\ \begin{array}{l} t_1 := \frac{b + \left(y \cdot \left(x \cdot 9\right) - a \cdot \left(\left(z \cdot 4\right) \cdot t\right)\right)}{c\_m \cdot z}\\ c\_s \cdot \begin{array}{l} \mathbf{if}\;t\_1 \leq -1 \cdot 10^{-271}:\\ \;\;\;\;\frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{c\_m \cdot z}\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;\frac{\frac{b}{z} + \left(t \cdot a\right) \cdot -4}{c\_m}\\ \mathbf{elif}\;t\_1 \leq \infty:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \frac{a}{\frac{c\_m}{t}}\\ \end{array} \end{array} \end{array} \]
c_m = (fabs.f64 c)
c_s = (copysign.f64 1 c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
 :precision binary64
 (let* ((t_1 (/ (+ b (- (* y (* x 9.0)) (* a (* (* z 4.0) t)))) (* c_m z))))
   (*
    c_s
    (if (<= t_1 -1e-271)
      (/ (+ (- (* x (* 9.0 y)) (* (* z 4.0) (* t a))) b) (* c_m z))
      (if (<= t_1 0.0)
        (/ (+ (/ b z) (* (* t a) -4.0)) c_m)
        (if (<= t_1 INFINITY) t_1 (* -4.0 (/ a (/ c_m t)))))))))
c_m = fabs(c);
c_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double t_1 = (b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z);
	double tmp;
	if (t_1 <= -1e-271) {
		tmp = (((x * (9.0 * y)) - ((z * 4.0) * (t * a))) + b) / (c_m * z);
	} else if (t_1 <= 0.0) {
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	} else if (t_1 <= ((double) INFINITY)) {
		tmp = t_1;
	} else {
		tmp = -4.0 * (a / (c_m / t));
	}
	return c_s * tmp;
}
c_m = Math.abs(c);
c_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double t_1 = (b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z);
	double tmp;
	if (t_1 <= -1e-271) {
		tmp = (((x * (9.0 * y)) - ((z * 4.0) * (t * a))) + b) / (c_m * z);
	} else if (t_1 <= 0.0) {
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	} else if (t_1 <= Double.POSITIVE_INFINITY) {
		tmp = t_1;
	} else {
		tmp = -4.0 * (a / (c_m / t));
	}
	return c_s * tmp;
}
c_m = math.fabs(c)
c_s = math.copysign(1.0, c)
[x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m])
def code(c_s, x, y, z, t, a, b, c_m):
	t_1 = (b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z)
	tmp = 0
	if t_1 <= -1e-271:
		tmp = (((x * (9.0 * y)) - ((z * 4.0) * (t * a))) + b) / (c_m * z)
	elif t_1 <= 0.0:
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m
	elif t_1 <= math.inf:
		tmp = t_1
	else:
		tmp = -4.0 * (a / (c_m / t))
	return c_s * tmp
c_m = abs(c)
c_s = copysign(1.0, c)
x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m])
function code(c_s, x, y, z, t, a, b, c_m)
	t_1 = Float64(Float64(b + Float64(Float64(y * Float64(x * 9.0)) - Float64(a * Float64(Float64(z * 4.0) * t)))) / Float64(c_m * z))
	tmp = 0.0
	if (t_1 <= -1e-271)
		tmp = Float64(Float64(Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(z * 4.0) * Float64(t * a))) + b) / Float64(c_m * z));
	elseif (t_1 <= 0.0)
		tmp = Float64(Float64(Float64(b / z) + Float64(Float64(t * a) * -4.0)) / c_m);
	elseif (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = Float64(-4.0 * Float64(a / Float64(c_m / t)));
	end
	return Float64(c_s * tmp)
end
c_m = abs(c);
c_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
	t_1 = (b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z);
	tmp = 0.0;
	if (t_1 <= -1e-271)
		tmp = (((x * (9.0 * y)) - ((z * 4.0) * (t * a))) + b) / (c_m * z);
	elseif (t_1 <= 0.0)
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	elseif (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = -4.0 * (a / (c_m / t));
	end
	tmp_2 = c_s * tmp;
end
c_m = N[Abs[c], $MachinePrecision]
c_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(N[(b + N[(N[(y * N[(x * 9.0), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]}, N[(c$95$s * If[LessEqual[t$95$1, -1e-271], N[(N[(N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(N[(N[(b / z), $MachinePrecision] + N[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision], If[LessEqual[t$95$1, Infinity], t$95$1, N[(-4.0 * N[(a / N[(c$95$m / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]]
\begin{array}{l}
c_m = \left|c\right|
\\
c_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
\begin{array}{l}
t_1 := \frac{b + \left(y \cdot \left(x \cdot 9\right) - a \cdot \left(\left(z \cdot 4\right) \cdot t\right)\right)}{c\_m \cdot z}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-271}:\\
\;\;\;\;\frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{c\_m \cdot z}\\

\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{\frac{b}{z} + \left(t \cdot a\right) \cdot -4}{c\_m}\\

\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x 9) y) (*.f64 (*.f64 (*.f64 z 4) t) a)) b) (*.f64 z c)) < -9.99999999999999963e-272

    1. Initial program 89.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-89.9%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*89.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} \]
      10. associate-*l*90.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. Simplified90.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. Add Preprocessing

    if -9.99999999999999963e-272 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x 9) y) (*.f64 (*.f64 (*.f64 z 4) t) a)) b) (*.f64 z c)) < -0.0

    1. Initial program 52.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-52.0%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*52.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} \]
      10. associate-*l*52.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. Simplified52.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. Add Preprocessing
    5. Taylor expanded in x around 0 78.2%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z} - 4 \cdot \frac{a \cdot t}{c}} \]
    8. Step-by-step derivation
      1. cancel-sign-sub-inv78.2%

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

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

        \[\leadsto \frac{b}{c \cdot z} + \color{blue}{\frac{a \cdot t}{c} \cdot -4} \]
      4. *-commutative78.2%

        \[\leadsto \frac{b}{c \cdot z} + \frac{\color{blue}{t \cdot a}}{c} \cdot -4 \]
      5. associate-*r/73.1%

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

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

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

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

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

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

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

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

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

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \frac{\color{blue}{\frac{b}{z}}}{c} \]
      15. associate-/r*73.1%

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \color{blue}{\frac{b}{z \cdot c}} \]
      16. associate-/l/79.2%

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

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

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

    if -0.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x 9) y) (*.f64 (*.f64 (*.f64 z 4) t) a)) b) (*.f64 z c)) < +inf.0

    1. Initial program 88.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. Add Preprocessing

    if +inf.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x 9) y) (*.f64 (*.f64 (*.f64 z 4) t) a)) b) (*.f64 z c))

    1. Initial program 0.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-0.0%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*0.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} \]
      10. associate-*l*0.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. Simplified0.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. Add Preprocessing
    5. Taylor expanded in z around inf 48.8%

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

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

        \[\leadsto \color{blue}{\frac{a}{\frac{c}{t}}} \cdot -4 \]
    7. Simplified83.3%

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

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

Alternative 3: 49.8% accurate, 0.4× speedup?

\[\begin{array}{l} c_m = \left|c\right| \\ c_s = \mathsf{copysign}\left(1, c\right) \\ [x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\ \\ \begin{array}{l} t_1 := 9 \cdot \left(x \cdot \frac{\frac{y}{c\_m}}{z}\right)\\ t_2 := \frac{1}{\frac{c\_m \cdot z}{b}}\\ t_3 := \frac{t \cdot -4}{\frac{c\_m}{a}}\\ c\_s \cdot \begin{array}{l} \mathbf{if}\;a \leq -2.6 \cdot 10^{-32}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;a \leq -2.55 \cdot 10^{-244}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq 1.2 \cdot 10^{-277}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{-71}:\\ \;\;\;\;\frac{b}{c\_m \cdot z}\\ \mathbf{elif}\;a \leq 5 \cdot 10^{-35}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 7 \cdot 10^{+18}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq 10^{+66}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \end{array} \]
c_m = (fabs.f64 c)
c_s = (copysign.f64 1 c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
 :precision binary64
 (let* ((t_1 (* 9.0 (* x (/ (/ y c_m) z))))
        (t_2 (/ 1.0 (/ (* c_m z) b)))
        (t_3 (/ (* t -4.0) (/ c_m a))))
   (*
    c_s
    (if (<= a -2.6e-32)
      t_3
      (if (<= a -2.55e-244)
        t_2
        (if (<= a 1.2e-277)
          t_1
          (if (<= a 2.4e-71)
            (/ b (* c_m z))
            (if (<= a 5e-35)
              t_1
              (if (<= a 7e+18) t_2 (if (<= a 1e+66) t_1 t_3))))))))))
c_m = fabs(c);
c_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double t_1 = 9.0 * (x * ((y / c_m) / z));
	double t_2 = 1.0 / ((c_m * z) / b);
	double t_3 = (t * -4.0) / (c_m / a);
	double tmp;
	if (a <= -2.6e-32) {
		tmp = t_3;
	} else if (a <= -2.55e-244) {
		tmp = t_2;
	} else if (a <= 1.2e-277) {
		tmp = t_1;
	} else if (a <= 2.4e-71) {
		tmp = b / (c_m * z);
	} else if (a <= 5e-35) {
		tmp = t_1;
	} else if (a <= 7e+18) {
		tmp = t_2;
	} else if (a <= 1e+66) {
		tmp = t_1;
	} else {
		tmp = t_3;
	}
	return c_s * tmp;
}
c_m = abs(c)
c_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
    real(8), intent (in) :: c_s
    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_m
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = 9.0d0 * (x * ((y / c_m) / z))
    t_2 = 1.0d0 / ((c_m * z) / b)
    t_3 = (t * (-4.0d0)) / (c_m / a)
    if (a <= (-2.6d-32)) then
        tmp = t_3
    else if (a <= (-2.55d-244)) then
        tmp = t_2
    else if (a <= 1.2d-277) then
        tmp = t_1
    else if (a <= 2.4d-71) then
        tmp = b / (c_m * z)
    else if (a <= 5d-35) then
        tmp = t_1
    else if (a <= 7d+18) then
        tmp = t_2
    else if (a <= 1d+66) then
        tmp = t_1
    else
        tmp = t_3
    end if
    code = c_s * tmp
end function
c_m = Math.abs(c);
c_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double t_1 = 9.0 * (x * ((y / c_m) / z));
	double t_2 = 1.0 / ((c_m * z) / b);
	double t_3 = (t * -4.0) / (c_m / a);
	double tmp;
	if (a <= -2.6e-32) {
		tmp = t_3;
	} else if (a <= -2.55e-244) {
		tmp = t_2;
	} else if (a <= 1.2e-277) {
		tmp = t_1;
	} else if (a <= 2.4e-71) {
		tmp = b / (c_m * z);
	} else if (a <= 5e-35) {
		tmp = t_1;
	} else if (a <= 7e+18) {
		tmp = t_2;
	} else if (a <= 1e+66) {
		tmp = t_1;
	} else {
		tmp = t_3;
	}
	return c_s * tmp;
}
c_m = math.fabs(c)
c_s = math.copysign(1.0, c)
[x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m])
def code(c_s, x, y, z, t, a, b, c_m):
	t_1 = 9.0 * (x * ((y / c_m) / z))
	t_2 = 1.0 / ((c_m * z) / b)
	t_3 = (t * -4.0) / (c_m / a)
	tmp = 0
	if a <= -2.6e-32:
		tmp = t_3
	elif a <= -2.55e-244:
		tmp = t_2
	elif a <= 1.2e-277:
		tmp = t_1
	elif a <= 2.4e-71:
		tmp = b / (c_m * z)
	elif a <= 5e-35:
		tmp = t_1
	elif a <= 7e+18:
		tmp = t_2
	elif a <= 1e+66:
		tmp = t_1
	else:
		tmp = t_3
	return c_s * tmp
c_m = abs(c)
c_s = copysign(1.0, c)
x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m])
function code(c_s, x, y, z, t, a, b, c_m)
	t_1 = Float64(9.0 * Float64(x * Float64(Float64(y / c_m) / z)))
	t_2 = Float64(1.0 / Float64(Float64(c_m * z) / b))
	t_3 = Float64(Float64(t * -4.0) / Float64(c_m / a))
	tmp = 0.0
	if (a <= -2.6e-32)
		tmp = t_3;
	elseif (a <= -2.55e-244)
		tmp = t_2;
	elseif (a <= 1.2e-277)
		tmp = t_1;
	elseif (a <= 2.4e-71)
		tmp = Float64(b / Float64(c_m * z));
	elseif (a <= 5e-35)
		tmp = t_1;
	elseif (a <= 7e+18)
		tmp = t_2;
	elseif (a <= 1e+66)
		tmp = t_1;
	else
		tmp = t_3;
	end
	return Float64(c_s * tmp)
end
c_m = abs(c);
c_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
	t_1 = 9.0 * (x * ((y / c_m) / z));
	t_2 = 1.0 / ((c_m * z) / b);
	t_3 = (t * -4.0) / (c_m / a);
	tmp = 0.0;
	if (a <= -2.6e-32)
		tmp = t_3;
	elseif (a <= -2.55e-244)
		tmp = t_2;
	elseif (a <= 1.2e-277)
		tmp = t_1;
	elseif (a <= 2.4e-71)
		tmp = b / (c_m * z);
	elseif (a <= 5e-35)
		tmp = t_1;
	elseif (a <= 7e+18)
		tmp = t_2;
	elseif (a <= 1e+66)
		tmp = t_1;
	else
		tmp = t_3;
	end
	tmp_2 = c_s * tmp;
end
c_m = N[Abs[c], $MachinePrecision]
c_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(9.0 * N[(x * N[(N[(y / c$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 / N[(N[(c$95$m * z), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * -4.0), $MachinePrecision] / N[(c$95$m / a), $MachinePrecision]), $MachinePrecision]}, N[(c$95$s * If[LessEqual[a, -2.6e-32], t$95$3, If[LessEqual[a, -2.55e-244], t$95$2, If[LessEqual[a, 1.2e-277], t$95$1, If[LessEqual[a, 2.4e-71], N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e-35], t$95$1, If[LessEqual[a, 7e+18], t$95$2, If[LessEqual[a, 1e+66], t$95$1, t$95$3]]]]]]]), $MachinePrecision]]]]
\begin{array}{l}
c_m = \left|c\right|
\\
c_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
\begin{array}{l}
t_1 := 9 \cdot \left(x \cdot \frac{\frac{y}{c\_m}}{z}\right)\\
t_2 := \frac{1}{\frac{c\_m \cdot z}{b}}\\
t_3 := \frac{t \cdot -4}{\frac{c\_m}{a}}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;a \leq -2.6 \cdot 10^{-32}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;a \leq -2.55 \cdot 10^{-244}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;a \leq 1.2 \cdot 10^{-277}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 2.4 \cdot 10^{-71}:\\
\;\;\;\;\frac{b}{c\_m \cdot z}\\

\mathbf{elif}\;a \leq 5 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 7 \cdot 10^{+18}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;a \leq 10^{+66}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -2.5999999999999997e-32 or 9.99999999999999945e65 < a

    1. Initial program 77.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-77.1%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*77.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} \]
      10. associate-*l*72.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. Simplified72.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. Add Preprocessing
    5. Taylor expanded in z around inf 51.4%

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

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

        \[\leadsto -4 \cdot \color{blue}{\left(\frac{a}{c} \cdot t\right)} \]
      3. associate-*r*63.1%

        \[\leadsto \color{blue}{\left(-4 \cdot \frac{a}{c}\right) \cdot t} \]
      4. *-commutative63.1%

        \[\leadsto \color{blue}{t \cdot \left(-4 \cdot \frac{a}{c}\right)} \]
      5. associate-*r*63.1%

        \[\leadsto \color{blue}{\left(t \cdot -4\right) \cdot \frac{a}{c}} \]
      6. clear-num63.1%

        \[\leadsto \left(t \cdot -4\right) \cdot \color{blue}{\frac{1}{\frac{c}{a}}} \]
      7. un-div-inv63.1%

        \[\leadsto \color{blue}{\frac{t \cdot -4}{\frac{c}{a}}} \]
    7. Applied egg-rr63.1%

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

    if -2.5999999999999997e-32 < a < -2.5499999999999999e-244 or 4.99999999999999964e-35 < a < 7e18

    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{\color{blue}{\left(x \cdot 9\right) \cdot y - \left(\left(\left(z \cdot 4\right) \cdot t\right) \cdot a - b\right)}}{z \cdot c} \]
      2. *-commutative86.4%

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. 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} \]
      10. associate-*l*88.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. Simplified88.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. Add Preprocessing
    5. Taylor expanded in b around inf 49.7%

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    6. Step-by-step derivation
      1. *-commutative49.7%

        \[\leadsto \frac{b}{\color{blue}{z \cdot c}} \]
    7. Simplified49.7%

      \[\leadsto \color{blue}{\frac{b}{z \cdot c}} \]
    8. Step-by-step derivation
      1. clear-num49.7%

        \[\leadsto \color{blue}{\frac{1}{\frac{z \cdot c}{b}}} \]
      2. inv-pow49.7%

        \[\leadsto \color{blue}{{\left(\frac{z \cdot c}{b}\right)}^{-1}} \]
    9. Applied egg-rr49.7%

      \[\leadsto \color{blue}{{\left(\frac{z \cdot c}{b}\right)}^{-1}} \]
    10. Step-by-step derivation
      1. unpow-149.7%

        \[\leadsto \color{blue}{\frac{1}{\frac{z \cdot c}{b}}} \]
      2. associate-/l*37.0%

        \[\leadsto \frac{1}{\color{blue}{\frac{z}{\frac{b}{c}}}} \]
    11. Simplified37.0%

      \[\leadsto \color{blue}{\frac{1}{\frac{z}{\frac{b}{c}}}} \]
    12. Taylor expanded in z around 0 49.7%

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

    if -2.5499999999999999e-244 < a < 1.2e-277 or 2.4e-71 < a < 4.99999999999999964e-35 or 7e18 < a < 9.99999999999999945e65

    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{\color{blue}{\left(x \cdot 9\right) \cdot y - \left(\left(\left(z \cdot 4\right) \cdot t\right) \cdot a - b\right)}}{z \cdot c} \]
      2. *-commutative83.8%

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. 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} \]
      10. associate-*l*88.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. Simplified88.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. Add Preprocessing
    5. Taylor expanded in x around inf 77.4%

      \[\leadsto \color{blue}{9 \cdot \frac{x \cdot y}{c \cdot z}} \]
    6. Step-by-step derivation
      1. *-commutative77.4%

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

      \[\leadsto \color{blue}{9 \cdot \frac{x \cdot y}{z \cdot c}} \]
    8. Taylor expanded in x around 0 77.4%

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

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

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

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

    if 1.2e-277 < a < 2.4e-71

    1. Initial program 75.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-75.7%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*75.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} \]
      10. associate-*l*88.1%

        \[\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.1%

      \[\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. Add Preprocessing
    5. Taylor expanded in b around inf 51.6%

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    6. Step-by-step derivation
      1. *-commutative51.6%

        \[\leadsto \frac{b}{\color{blue}{z \cdot c}} \]
    7. Simplified51.6%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.6 \cdot 10^{-32}:\\ \;\;\;\;\frac{t \cdot -4}{\frac{c}{a}}\\ \mathbf{elif}\;a \leq -2.55 \cdot 10^{-244}:\\ \;\;\;\;\frac{1}{\frac{c \cdot z}{b}}\\ \mathbf{elif}\;a \leq 1.2 \cdot 10^{-277}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{\frac{y}{c}}{z}\right)\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{-71}:\\ \;\;\;\;\frac{b}{c \cdot z}\\ \mathbf{elif}\;a \leq 5 \cdot 10^{-35}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{\frac{y}{c}}{z}\right)\\ \mathbf{elif}\;a \leq 7 \cdot 10^{+18}:\\ \;\;\;\;\frac{1}{\frac{c \cdot z}{b}}\\ \mathbf{elif}\;a \leq 10^{+66}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{\frac{y}{c}}{z}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t \cdot -4}{\frac{c}{a}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 49.4% accurate, 0.4× speedup?

\[\begin{array}{l} c_m = \left|c\right| \\ c_s = \mathsf{copysign}\left(1, c\right) \\ [x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\ \\ \begin{array}{l} t_1 := 9 \cdot \frac{x \cdot y}{c\_m \cdot z}\\ t_2 := \frac{1}{\frac{c\_m \cdot z}{b}}\\ t_3 := \frac{t \cdot -4}{\frac{c\_m}{a}}\\ c\_s \cdot \begin{array}{l} \mathbf{if}\;a \leq -2.7 \cdot 10^{-33}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;a \leq -5.5 \cdot 10^{-243}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{-163}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 1.9 \cdot 10^{-71}:\\ \;\;\;\;\frac{b}{c\_m \cdot z}\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{-35}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{\frac{y}{c\_m}}{z}\right)\\ \mathbf{elif}\;a \leq 7.8 \cdot 10^{+18}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq 1.45 \cdot 10^{+66}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \end{array} \]
c_m = (fabs.f64 c)
c_s = (copysign.f64 1 c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
 :precision binary64
 (let* ((t_1 (* 9.0 (/ (* x y) (* c_m z))))
        (t_2 (/ 1.0 (/ (* c_m z) b)))
        (t_3 (/ (* t -4.0) (/ c_m a))))
   (*
    c_s
    (if (<= a -2.7e-33)
      t_3
      (if (<= a -5.5e-243)
        t_2
        (if (<= a 5.2e-163)
          t_1
          (if (<= a 1.9e-71)
            (/ b (* c_m z))
            (if (<= a 4.5e-35)
              (* 9.0 (* x (/ (/ y c_m) z)))
              (if (<= a 7.8e+18) t_2 (if (<= a 1.45e+66) t_1 t_3))))))))))
c_m = fabs(c);
c_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double t_1 = 9.0 * ((x * y) / (c_m * z));
	double t_2 = 1.0 / ((c_m * z) / b);
	double t_3 = (t * -4.0) / (c_m / a);
	double tmp;
	if (a <= -2.7e-33) {
		tmp = t_3;
	} else if (a <= -5.5e-243) {
		tmp = t_2;
	} else if (a <= 5.2e-163) {
		tmp = t_1;
	} else if (a <= 1.9e-71) {
		tmp = b / (c_m * z);
	} else if (a <= 4.5e-35) {
		tmp = 9.0 * (x * ((y / c_m) / z));
	} else if (a <= 7.8e+18) {
		tmp = t_2;
	} else if (a <= 1.45e+66) {
		tmp = t_1;
	} else {
		tmp = t_3;
	}
	return c_s * tmp;
}
c_m = abs(c)
c_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
    real(8), intent (in) :: c_s
    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_m
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = 9.0d0 * ((x * y) / (c_m * z))
    t_2 = 1.0d0 / ((c_m * z) / b)
    t_3 = (t * (-4.0d0)) / (c_m / a)
    if (a <= (-2.7d-33)) then
        tmp = t_3
    else if (a <= (-5.5d-243)) then
        tmp = t_2
    else if (a <= 5.2d-163) then
        tmp = t_1
    else if (a <= 1.9d-71) then
        tmp = b / (c_m * z)
    else if (a <= 4.5d-35) then
        tmp = 9.0d0 * (x * ((y / c_m) / z))
    else if (a <= 7.8d+18) then
        tmp = t_2
    else if (a <= 1.45d+66) then
        tmp = t_1
    else
        tmp = t_3
    end if
    code = c_s * tmp
end function
c_m = Math.abs(c);
c_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double t_1 = 9.0 * ((x * y) / (c_m * z));
	double t_2 = 1.0 / ((c_m * z) / b);
	double t_3 = (t * -4.0) / (c_m / a);
	double tmp;
	if (a <= -2.7e-33) {
		tmp = t_3;
	} else if (a <= -5.5e-243) {
		tmp = t_2;
	} else if (a <= 5.2e-163) {
		tmp = t_1;
	} else if (a <= 1.9e-71) {
		tmp = b / (c_m * z);
	} else if (a <= 4.5e-35) {
		tmp = 9.0 * (x * ((y / c_m) / z));
	} else if (a <= 7.8e+18) {
		tmp = t_2;
	} else if (a <= 1.45e+66) {
		tmp = t_1;
	} else {
		tmp = t_3;
	}
	return c_s * tmp;
}
c_m = math.fabs(c)
c_s = math.copysign(1.0, c)
[x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m])
def code(c_s, x, y, z, t, a, b, c_m):
	t_1 = 9.0 * ((x * y) / (c_m * z))
	t_2 = 1.0 / ((c_m * z) / b)
	t_3 = (t * -4.0) / (c_m / a)
	tmp = 0
	if a <= -2.7e-33:
		tmp = t_3
	elif a <= -5.5e-243:
		tmp = t_2
	elif a <= 5.2e-163:
		tmp = t_1
	elif a <= 1.9e-71:
		tmp = b / (c_m * z)
	elif a <= 4.5e-35:
		tmp = 9.0 * (x * ((y / c_m) / z))
	elif a <= 7.8e+18:
		tmp = t_2
	elif a <= 1.45e+66:
		tmp = t_1
	else:
		tmp = t_3
	return c_s * tmp
c_m = abs(c)
c_s = copysign(1.0, c)
x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m])
function code(c_s, x, y, z, t, a, b, c_m)
	t_1 = Float64(9.0 * Float64(Float64(x * y) / Float64(c_m * z)))
	t_2 = Float64(1.0 / Float64(Float64(c_m * z) / b))
	t_3 = Float64(Float64(t * -4.0) / Float64(c_m / a))
	tmp = 0.0
	if (a <= -2.7e-33)
		tmp = t_3;
	elseif (a <= -5.5e-243)
		tmp = t_2;
	elseif (a <= 5.2e-163)
		tmp = t_1;
	elseif (a <= 1.9e-71)
		tmp = Float64(b / Float64(c_m * z));
	elseif (a <= 4.5e-35)
		tmp = Float64(9.0 * Float64(x * Float64(Float64(y / c_m) / z)));
	elseif (a <= 7.8e+18)
		tmp = t_2;
	elseif (a <= 1.45e+66)
		tmp = t_1;
	else
		tmp = t_3;
	end
	return Float64(c_s * tmp)
end
c_m = abs(c);
c_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
	t_1 = 9.0 * ((x * y) / (c_m * z));
	t_2 = 1.0 / ((c_m * z) / b);
	t_3 = (t * -4.0) / (c_m / a);
	tmp = 0.0;
	if (a <= -2.7e-33)
		tmp = t_3;
	elseif (a <= -5.5e-243)
		tmp = t_2;
	elseif (a <= 5.2e-163)
		tmp = t_1;
	elseif (a <= 1.9e-71)
		tmp = b / (c_m * z);
	elseif (a <= 4.5e-35)
		tmp = 9.0 * (x * ((y / c_m) / z));
	elseif (a <= 7.8e+18)
		tmp = t_2;
	elseif (a <= 1.45e+66)
		tmp = t_1;
	else
		tmp = t_3;
	end
	tmp_2 = c_s * tmp;
end
c_m = N[Abs[c], $MachinePrecision]
c_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 / N[(N[(c$95$m * z), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * -4.0), $MachinePrecision] / N[(c$95$m / a), $MachinePrecision]), $MachinePrecision]}, N[(c$95$s * If[LessEqual[a, -2.7e-33], t$95$3, If[LessEqual[a, -5.5e-243], t$95$2, If[LessEqual[a, 5.2e-163], t$95$1, If[LessEqual[a, 1.9e-71], N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.5e-35], N[(9.0 * N[(x * N[(N[(y / c$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.8e+18], t$95$2, If[LessEqual[a, 1.45e+66], t$95$1, t$95$3]]]]]]]), $MachinePrecision]]]]
\begin{array}{l}
c_m = \left|c\right|
\\
c_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
\begin{array}{l}
t_1 := 9 \cdot \frac{x \cdot y}{c\_m \cdot z}\\
t_2 := \frac{1}{\frac{c\_m \cdot z}{b}}\\
t_3 := \frac{t \cdot -4}{\frac{c\_m}{a}}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;a \leq -2.7 \cdot 10^{-33}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;a \leq -5.5 \cdot 10^{-243}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;a \leq 5.2 \cdot 10^{-163}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 1.9 \cdot 10^{-71}:\\
\;\;\;\;\frac{b}{c\_m \cdot z}\\

\mathbf{elif}\;a \leq 4.5 \cdot 10^{-35}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{\frac{y}{c\_m}}{z}\right)\\

\mathbf{elif}\;a \leq 7.8 \cdot 10^{+18}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;a \leq 1.45 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if a < -2.7000000000000001e-33 or 1.44999999999999993e66 < a

    1. Initial program 77.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-77.1%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*77.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} \]
      10. associate-*l*72.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. Simplified72.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. Add Preprocessing
    5. Taylor expanded in z around inf 51.4%

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

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

        \[\leadsto -4 \cdot \color{blue}{\left(\frac{a}{c} \cdot t\right)} \]
      3. associate-*r*63.1%

        \[\leadsto \color{blue}{\left(-4 \cdot \frac{a}{c}\right) \cdot t} \]
      4. *-commutative63.1%

        \[\leadsto \color{blue}{t \cdot \left(-4 \cdot \frac{a}{c}\right)} \]
      5. associate-*r*63.1%

        \[\leadsto \color{blue}{\left(t \cdot -4\right) \cdot \frac{a}{c}} \]
      6. clear-num63.1%

        \[\leadsto \left(t \cdot -4\right) \cdot \color{blue}{\frac{1}{\frac{c}{a}}} \]
      7. un-div-inv63.1%

        \[\leadsto \color{blue}{\frac{t \cdot -4}{\frac{c}{a}}} \]
    7. Applied egg-rr63.1%

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

    if -2.7000000000000001e-33 < a < -5.50000000000000004e-243 or 4.5000000000000001e-35 < a < 7.8e18

    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{\color{blue}{\left(x \cdot 9\right) \cdot y - \left(\left(\left(z \cdot 4\right) \cdot t\right) \cdot a - b\right)}}{z \cdot c} \]
      2. *-commutative86.4%

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. 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} \]
      10. associate-*l*88.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. Simplified88.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. Add Preprocessing
    5. Taylor expanded in b around inf 49.7%

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    6. Step-by-step derivation
      1. *-commutative49.7%

        \[\leadsto \frac{b}{\color{blue}{z \cdot c}} \]
    7. Simplified49.7%

      \[\leadsto \color{blue}{\frac{b}{z \cdot c}} \]
    8. Step-by-step derivation
      1. clear-num49.7%

        \[\leadsto \color{blue}{\frac{1}{\frac{z \cdot c}{b}}} \]
      2. inv-pow49.7%

        \[\leadsto \color{blue}{{\left(\frac{z \cdot c}{b}\right)}^{-1}} \]
    9. Applied egg-rr49.7%

      \[\leadsto \color{blue}{{\left(\frac{z \cdot c}{b}\right)}^{-1}} \]
    10. Step-by-step derivation
      1. unpow-149.7%

        \[\leadsto \color{blue}{\frac{1}{\frac{z \cdot c}{b}}} \]
      2. associate-/l*37.0%

        \[\leadsto \frac{1}{\color{blue}{\frac{z}{\frac{b}{c}}}} \]
    11. Simplified37.0%

      \[\leadsto \color{blue}{\frac{1}{\frac{z}{\frac{b}{c}}}} \]
    12. Taylor expanded in z around 0 49.7%

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

    if -5.50000000000000004e-243 < a < 5.20000000000000003e-163 or 7.8e18 < a < 1.44999999999999993e66

    1. Initial program 78.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-78.3%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*78.3%

        \[\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} \]
      10. associate-*l*85.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. Simplified85.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. Add Preprocessing
    5. Taylor expanded in x around inf 59.0%

      \[\leadsto \color{blue}{9 \cdot \frac{x \cdot y}{c \cdot z}} \]
    6. Step-by-step derivation
      1. *-commutative59.0%

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

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

    if 5.20000000000000003e-163 < a < 1.89999999999999996e-71

    1. Initial program 75.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-75.0%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*74.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} \]
      10. associate-*l*92.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. Simplified92.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. Add Preprocessing
    5. Taylor expanded in b around inf 56.0%

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    6. Step-by-step derivation
      1. *-commutative56.0%

        \[\leadsto \frac{b}{\color{blue}{z \cdot c}} \]
    7. Simplified56.0%

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

    if 1.89999999999999996e-71 < a < 4.5000000000000001e-35

    1. Initial program 99.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-99.8%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*99.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} \]
      10. associate-*l*99.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. Simplified99.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. Add Preprocessing
    5. Taylor expanded in x around inf 67.5%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{x \cdot y}{z \cdot c}} \]
    8. Taylor expanded in x around 0 67.5%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.7 \cdot 10^{-33}:\\ \;\;\;\;\frac{t \cdot -4}{\frac{c}{a}}\\ \mathbf{elif}\;a \leq -5.5 \cdot 10^{-243}:\\ \;\;\;\;\frac{1}{\frac{c \cdot z}{b}}\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{-163}:\\ \;\;\;\;9 \cdot \frac{x \cdot y}{c \cdot z}\\ \mathbf{elif}\;a \leq 1.9 \cdot 10^{-71}:\\ \;\;\;\;\frac{b}{c \cdot z}\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{-35}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{\frac{y}{c}}{z}\right)\\ \mathbf{elif}\;a \leq 7.8 \cdot 10^{+18}:\\ \;\;\;\;\frac{1}{\frac{c \cdot z}{b}}\\ \mathbf{elif}\;a \leq 1.45 \cdot 10^{+66}:\\ \;\;\;\;9 \cdot \frac{x \cdot y}{c \cdot z}\\ \mathbf{else}:\\ \;\;\;\;\frac{t \cdot -4}{\frac{c}{a}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 49.4% accurate, 0.4× speedup?

\[\begin{array}{l} c_m = \left|c\right| \\ c_s = \mathsf{copysign}\left(1, c\right) \\ [x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\ \\ \begin{array}{l} t_1 := \frac{1}{\frac{c\_m \cdot z}{b}}\\ t_2 := \frac{t \cdot -4}{\frac{c\_m}{a}}\\ c\_s \cdot \begin{array}{l} \mathbf{if}\;a \leq -1.45 \cdot 10^{-37}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq -1.45 \cdot 10^{-247}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 5.3 \cdot 10^{-163}:\\ \;\;\;\;9 \cdot \frac{x \cdot y}{c\_m \cdot z}\\ \mathbf{elif}\;a \leq 1.75 \cdot 10^{-71}:\\ \;\;\;\;\frac{b}{c\_m \cdot z}\\ \mathbf{elif}\;a \leq 2.2 \cdot 10^{-35}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{\frac{y}{c\_m}}{z}\right)\\ \mathbf{elif}\;a \leq 6.8 \cdot 10^{+18}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 1.7 \cdot 10^{+66}:\\ \;\;\;\;\left(x \cdot y\right) \cdot \frac{9}{c\_m \cdot z}\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \end{array} \]
c_m = (fabs.f64 c)
c_s = (copysign.f64 1 c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
 :precision binary64
 (let* ((t_1 (/ 1.0 (/ (* c_m z) b))) (t_2 (/ (* t -4.0) (/ c_m a))))
   (*
    c_s
    (if (<= a -1.45e-37)
      t_2
      (if (<= a -1.45e-247)
        t_1
        (if (<= a 5.3e-163)
          (* 9.0 (/ (* x y) (* c_m z)))
          (if (<= a 1.75e-71)
            (/ b (* c_m z))
            (if (<= a 2.2e-35)
              (* 9.0 (* x (/ (/ y c_m) z)))
              (if (<= a 6.8e+18)
                t_1
                (if (<= a 1.7e+66) (* (* x y) (/ 9.0 (* c_m z))) t_2))))))))))
c_m = fabs(c);
c_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double t_1 = 1.0 / ((c_m * z) / b);
	double t_2 = (t * -4.0) / (c_m / a);
	double tmp;
	if (a <= -1.45e-37) {
		tmp = t_2;
	} else if (a <= -1.45e-247) {
		tmp = t_1;
	} else if (a <= 5.3e-163) {
		tmp = 9.0 * ((x * y) / (c_m * z));
	} else if (a <= 1.75e-71) {
		tmp = b / (c_m * z);
	} else if (a <= 2.2e-35) {
		tmp = 9.0 * (x * ((y / c_m) / z));
	} else if (a <= 6.8e+18) {
		tmp = t_1;
	} else if (a <= 1.7e+66) {
		tmp = (x * y) * (9.0 / (c_m * z));
	} else {
		tmp = t_2;
	}
	return c_s * tmp;
}
c_m = abs(c)
c_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
    real(8), intent (in) :: c_s
    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_m
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = 1.0d0 / ((c_m * z) / b)
    t_2 = (t * (-4.0d0)) / (c_m / a)
    if (a <= (-1.45d-37)) then
        tmp = t_2
    else if (a <= (-1.45d-247)) then
        tmp = t_1
    else if (a <= 5.3d-163) then
        tmp = 9.0d0 * ((x * y) / (c_m * z))
    else if (a <= 1.75d-71) then
        tmp = b / (c_m * z)
    else if (a <= 2.2d-35) then
        tmp = 9.0d0 * (x * ((y / c_m) / z))
    else if (a <= 6.8d+18) then
        tmp = t_1
    else if (a <= 1.7d+66) then
        tmp = (x * y) * (9.0d0 / (c_m * z))
    else
        tmp = t_2
    end if
    code = c_s * tmp
end function
c_m = Math.abs(c);
c_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double t_1 = 1.0 / ((c_m * z) / b);
	double t_2 = (t * -4.0) / (c_m / a);
	double tmp;
	if (a <= -1.45e-37) {
		tmp = t_2;
	} else if (a <= -1.45e-247) {
		tmp = t_1;
	} else if (a <= 5.3e-163) {
		tmp = 9.0 * ((x * y) / (c_m * z));
	} else if (a <= 1.75e-71) {
		tmp = b / (c_m * z);
	} else if (a <= 2.2e-35) {
		tmp = 9.0 * (x * ((y / c_m) / z));
	} else if (a <= 6.8e+18) {
		tmp = t_1;
	} else if (a <= 1.7e+66) {
		tmp = (x * y) * (9.0 / (c_m * z));
	} else {
		tmp = t_2;
	}
	return c_s * tmp;
}
c_m = math.fabs(c)
c_s = math.copysign(1.0, c)
[x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m])
def code(c_s, x, y, z, t, a, b, c_m):
	t_1 = 1.0 / ((c_m * z) / b)
	t_2 = (t * -4.0) / (c_m / a)
	tmp = 0
	if a <= -1.45e-37:
		tmp = t_2
	elif a <= -1.45e-247:
		tmp = t_1
	elif a <= 5.3e-163:
		tmp = 9.0 * ((x * y) / (c_m * z))
	elif a <= 1.75e-71:
		tmp = b / (c_m * z)
	elif a <= 2.2e-35:
		tmp = 9.0 * (x * ((y / c_m) / z))
	elif a <= 6.8e+18:
		tmp = t_1
	elif a <= 1.7e+66:
		tmp = (x * y) * (9.0 / (c_m * z))
	else:
		tmp = t_2
	return c_s * tmp
c_m = abs(c)
c_s = copysign(1.0, c)
x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m])
function code(c_s, x, y, z, t, a, b, c_m)
	t_1 = Float64(1.0 / Float64(Float64(c_m * z) / b))
	t_2 = Float64(Float64(t * -4.0) / Float64(c_m / a))
	tmp = 0.0
	if (a <= -1.45e-37)
		tmp = t_2;
	elseif (a <= -1.45e-247)
		tmp = t_1;
	elseif (a <= 5.3e-163)
		tmp = Float64(9.0 * Float64(Float64(x * y) / Float64(c_m * z)));
	elseif (a <= 1.75e-71)
		tmp = Float64(b / Float64(c_m * z));
	elseif (a <= 2.2e-35)
		tmp = Float64(9.0 * Float64(x * Float64(Float64(y / c_m) / z)));
	elseif (a <= 6.8e+18)
		tmp = t_1;
	elseif (a <= 1.7e+66)
		tmp = Float64(Float64(x * y) * Float64(9.0 / Float64(c_m * z)));
	else
		tmp = t_2;
	end
	return Float64(c_s * tmp)
end
c_m = abs(c);
c_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
	t_1 = 1.0 / ((c_m * z) / b);
	t_2 = (t * -4.0) / (c_m / a);
	tmp = 0.0;
	if (a <= -1.45e-37)
		tmp = t_2;
	elseif (a <= -1.45e-247)
		tmp = t_1;
	elseif (a <= 5.3e-163)
		tmp = 9.0 * ((x * y) / (c_m * z));
	elseif (a <= 1.75e-71)
		tmp = b / (c_m * z);
	elseif (a <= 2.2e-35)
		tmp = 9.0 * (x * ((y / c_m) / z));
	elseif (a <= 6.8e+18)
		tmp = t_1;
	elseif (a <= 1.7e+66)
		tmp = (x * y) * (9.0 / (c_m * z));
	else
		tmp = t_2;
	end
	tmp_2 = c_s * tmp;
end
c_m = N[Abs[c], $MachinePrecision]
c_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(1.0 / N[(N[(c$95$m * z), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * -4.0), $MachinePrecision] / N[(c$95$m / a), $MachinePrecision]), $MachinePrecision]}, N[(c$95$s * If[LessEqual[a, -1.45e-37], t$95$2, If[LessEqual[a, -1.45e-247], t$95$1, If[LessEqual[a, 5.3e-163], N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.75e-71], N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e-35], N[(9.0 * N[(x * N[(N[(y / c$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e+18], t$95$1, If[LessEqual[a, 1.7e+66], N[(N[(x * y), $MachinePrecision] * N[(9.0 / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]), $MachinePrecision]]]
\begin{array}{l}
c_m = \left|c\right|
\\
c_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
\begin{array}{l}
t_1 := \frac{1}{\frac{c\_m \cdot z}{b}}\\
t_2 := \frac{t \cdot -4}{\frac{c\_m}{a}}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;a \leq -1.45 \cdot 10^{-37}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;a \leq -1.45 \cdot 10^{-247}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 5.3 \cdot 10^{-163}:\\
\;\;\;\;9 \cdot \frac{x \cdot y}{c\_m \cdot z}\\

\mathbf{elif}\;a \leq 1.75 \cdot 10^{-71}:\\
\;\;\;\;\frac{b}{c\_m \cdot z}\\

\mathbf{elif}\;a \leq 2.2 \cdot 10^{-35}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{\frac{y}{c\_m}}{z}\right)\\

\mathbf{elif}\;a \leq 6.8 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 1.7 \cdot 10^{+66}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \frac{9}{c\_m \cdot z}\\

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


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if a < -1.45000000000000002e-37 or 1.70000000000000015e66 < a

    1. Initial program 77.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-77.3%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*77.3%

        \[\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} \]
      10. associate-*l*73.1%

        \[\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. Simplified73.1%

      \[\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. Add Preprocessing
    5. Taylor expanded in z around inf 51.0%

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

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

        \[\leadsto -4 \cdot \color{blue}{\left(\frac{a}{c} \cdot t\right)} \]
      3. associate-*r*62.5%

        \[\leadsto \color{blue}{\left(-4 \cdot \frac{a}{c}\right) \cdot t} \]
      4. *-commutative62.5%

        \[\leadsto \color{blue}{t \cdot \left(-4 \cdot \frac{a}{c}\right)} \]
      5. associate-*r*62.5%

        \[\leadsto \color{blue}{\left(t \cdot -4\right) \cdot \frac{a}{c}} \]
      6. clear-num62.5%

        \[\leadsto \left(t \cdot -4\right) \cdot \color{blue}{\frac{1}{\frac{c}{a}}} \]
      7. un-div-inv62.6%

        \[\leadsto \color{blue}{\frac{t \cdot -4}{\frac{c}{a}}} \]
    7. Applied egg-rr62.6%

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

    if -1.45000000000000002e-37 < a < -1.45e-247 or 2.19999999999999994e-35 < a < 6.8e18

    1. Initial program 86.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-86.2%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*86.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} \]
      10. associate-*l*88.1%

        \[\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.1%

      \[\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. Add Preprocessing
    5. Taylor expanded in b around inf 49.1%

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    6. Step-by-step derivation
      1. *-commutative49.1%

        \[\leadsto \frac{b}{\color{blue}{z \cdot c}} \]
    7. Simplified49.1%

      \[\leadsto \color{blue}{\frac{b}{z \cdot c}} \]
    8. Step-by-step derivation
      1. clear-num49.2%

        \[\leadsto \color{blue}{\frac{1}{\frac{z \cdot c}{b}}} \]
      2. inv-pow49.2%

        \[\leadsto \color{blue}{{\left(\frac{z \cdot c}{b}\right)}^{-1}} \]
    9. Applied egg-rr49.2%

      \[\leadsto \color{blue}{{\left(\frac{z \cdot c}{b}\right)}^{-1}} \]
    10. Step-by-step derivation
      1. unpow-149.2%

        \[\leadsto \color{blue}{\frac{1}{\frac{z \cdot c}{b}}} \]
      2. associate-/l*36.1%

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

      \[\leadsto \color{blue}{\frac{1}{\frac{z}{\frac{b}{c}}}} \]
    12. Taylor expanded in z around 0 49.2%

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

    if -1.45e-247 < a < 5.30000000000000016e-163

    1. Initial program 75.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-75.5%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*75.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} \]
      10. 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. Add Preprocessing
    5. Taylor expanded in x around inf 49.8%

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

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

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

    if 5.30000000000000016e-163 < a < 1.75e-71

    1. Initial program 75.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-75.0%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*74.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} \]
      10. associate-*l*92.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. Simplified92.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. Add Preprocessing
    5. Taylor expanded in b around inf 56.0%

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    6. Step-by-step derivation
      1. *-commutative56.0%

        \[\leadsto \frac{b}{\color{blue}{z \cdot c}} \]
    7. Simplified56.0%

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

    if 1.75e-71 < a < 2.19999999999999994e-35

    1. Initial program 99.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-99.8%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*99.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} \]
      10. associate-*l*99.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. Simplified99.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. Add Preprocessing
    5. Taylor expanded in x around inf 67.5%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{x \cdot y}{z \cdot c}} \]
    8. Taylor expanded in x around 0 67.5%

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

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

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

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

    if 6.8e18 < a < 1.70000000000000015e66

    1. Initial program 86.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-86.8%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*86.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} \]
      10. associate-*l*86.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. Simplified86.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. Add Preprocessing
    5. Taylor expanded in x around inf 86.7%

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.45 \cdot 10^{-37}:\\ \;\;\;\;\frac{t \cdot -4}{\frac{c}{a}}\\ \mathbf{elif}\;a \leq -1.45 \cdot 10^{-247}:\\ \;\;\;\;\frac{1}{\frac{c \cdot z}{b}}\\ \mathbf{elif}\;a \leq 5.3 \cdot 10^{-163}:\\ \;\;\;\;9 \cdot \frac{x \cdot y}{c \cdot z}\\ \mathbf{elif}\;a \leq 1.75 \cdot 10^{-71}:\\ \;\;\;\;\frac{b}{c \cdot z}\\ \mathbf{elif}\;a \leq 2.2 \cdot 10^{-35}:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{\frac{y}{c}}{z}\right)\\ \mathbf{elif}\;a \leq 6.8 \cdot 10^{+18}:\\ \;\;\;\;\frac{1}{\frac{c \cdot z}{b}}\\ \mathbf{elif}\;a \leq 1.7 \cdot 10^{+66}:\\ \;\;\;\;\left(x \cdot y\right) \cdot \frac{9}{c \cdot z}\\ \mathbf{else}:\\ \;\;\;\;\frac{t \cdot -4}{\frac{c}{a}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 90.9% accurate, 0.6× speedup?

\[\begin{array}{l} c_m = \left|c\right| \\ c_s = \mathsf{copysign}\left(1, c\right) \\ [x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\ \\ c\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -1.22 \cdot 10^{-54} \lor \neg \left(z \leq 1.35 \cdot 10^{+101}\right):\\ \;\;\;\;\frac{9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}}{c\_m} - 4 \cdot \frac{t \cdot a}{c\_m}\\ \mathbf{else}:\\ \;\;\;\;\frac{b + \left(y \cdot \left(x \cdot 9\right) - a \cdot \left(\left(z \cdot 4\right) \cdot t\right)\right)}{c\_m \cdot z}\\ \end{array} \end{array} \]
c_m = (fabs.f64 c)
c_s = (copysign.f64 1 c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
 :precision binary64
 (*
  c_s
  (if (or (<= z -1.22e-54) (not (<= z 1.35e+101)))
    (- (/ (+ (* 9.0 (/ (* x y) z)) (/ b z)) c_m) (* 4.0 (/ (* t a) c_m)))
    (/ (+ b (- (* y (* x 9.0)) (* a (* (* z 4.0) t)))) (* c_m z)))))
c_m = fabs(c);
c_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if ((z <= -1.22e-54) || !(z <= 1.35e+101)) {
		tmp = (((9.0 * ((x * y) / z)) + (b / z)) / c_m) - (4.0 * ((t * a) / c_m));
	} else {
		tmp = (b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z);
	}
	return c_s * tmp;
}
c_m = abs(c)
c_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
    real(8), intent (in) :: c_s
    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_m
    real(8) :: tmp
    if ((z <= (-1.22d-54)) .or. (.not. (z <= 1.35d+101))) then
        tmp = (((9.0d0 * ((x * y) / z)) + (b / z)) / c_m) - (4.0d0 * ((t * a) / c_m))
    else
        tmp = (b + ((y * (x * 9.0d0)) - (a * ((z * 4.0d0) * t)))) / (c_m * z)
    end if
    code = c_s * tmp
end function
c_m = Math.abs(c);
c_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if ((z <= -1.22e-54) || !(z <= 1.35e+101)) {
		tmp = (((9.0 * ((x * y) / z)) + (b / z)) / c_m) - (4.0 * ((t * a) / c_m));
	} else {
		tmp = (b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z);
	}
	return c_s * tmp;
}
c_m = math.fabs(c)
c_s = math.copysign(1.0, c)
[x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m])
def code(c_s, x, y, z, t, a, b, c_m):
	tmp = 0
	if (z <= -1.22e-54) or not (z <= 1.35e+101):
		tmp = (((9.0 * ((x * y) / z)) + (b / z)) / c_m) - (4.0 * ((t * a) / c_m))
	else:
		tmp = (b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z)
	return c_s * tmp
c_m = abs(c)
c_s = copysign(1.0, c)
x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m])
function code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0
	if ((z <= -1.22e-54) || !(z <= 1.35e+101))
		tmp = Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + Float64(b / z)) / c_m) - Float64(4.0 * Float64(Float64(t * a) / c_m)));
	else
		tmp = Float64(Float64(b + Float64(Float64(y * Float64(x * 9.0)) - Float64(a * Float64(Float64(z * 4.0) * t)))) / Float64(c_m * z));
	end
	return Float64(c_s * tmp)
end
c_m = abs(c);
c_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0;
	if ((z <= -1.22e-54) || ~((z <= 1.35e+101)))
		tmp = (((9.0 * ((x * y) / z)) + (b / z)) / c_m) - (4.0 * ((t * a) / c_m));
	else
		tmp = (b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z);
	end
	tmp_2 = c_s * tmp;
end
c_m = N[Abs[c], $MachinePrecision]
c_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[Or[LessEqual[z, -1.22e-54], N[Not[LessEqual[z, 1.35e+101]], $MachinePrecision]], N[(N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b + N[(N[(y * N[(x * 9.0), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
c_m = \left|c\right|
\\
c_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -1.22 \cdot 10^{-54} \lor \neg \left(z \leq 1.35 \cdot 10^{+101}\right):\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}}{c\_m} - 4 \cdot \frac{t \cdot a}{c\_m}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.22e-54 or 1.35000000000000003e101 < z

    1. Initial program 61.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-61.1%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*61.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} \]
      10. associate-*l*67.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. Simplified67.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. Add Preprocessing
    5. Taylor expanded in x around 0 81.5%

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

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

    if -1.22e-54 < z < 1.35000000000000003e101

    1. Initial program 95.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. Add Preprocessing
  3. Recombined 2 regimes into one program.
  4. Final simplification91.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.22 \cdot 10^{-54} \lor \neg \left(z \leq 1.35 \cdot 10^{+101}\right):\\ \;\;\;\;\frac{9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}}{c} - 4 \cdot \frac{t \cdot a}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{b + \left(y \cdot \left(x \cdot 9\right) - a \cdot \left(\left(z \cdot 4\right) \cdot t\right)\right)}{c \cdot z}\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 85.6% accurate, 0.7× speedup?

\[\begin{array}{l} c_m = \left|c\right| \\ c_s = \mathsf{copysign}\left(1, c\right) \\ [x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\ \\ c\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -6 \cdot 10^{+120} \lor \neg \left(z \leq 3.5 \cdot 10^{+155}\right):\\ \;\;\;\;\frac{\frac{b}{z} + \left(t \cdot a\right) \cdot -4}{c\_m}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{c\_m \cdot z}\\ \end{array} \end{array} \]
c_m = (fabs.f64 c)
c_s = (copysign.f64 1 c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
 :precision binary64
 (*
  c_s
  (if (or (<= z -6e+120) (not (<= z 3.5e+155)))
    (/ (+ (/ b z) (* (* t a) -4.0)) c_m)
    (/ (+ (- (* x (* 9.0 y)) (* (* z 4.0) (* t a))) b) (* c_m z)))))
c_m = fabs(c);
c_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if ((z <= -6e+120) || !(z <= 3.5e+155)) {
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	} else {
		tmp = (((x * (9.0 * y)) - ((z * 4.0) * (t * a))) + b) / (c_m * z);
	}
	return c_s * tmp;
}
c_m = abs(c)
c_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
    real(8), intent (in) :: c_s
    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_m
    real(8) :: tmp
    if ((z <= (-6d+120)) .or. (.not. (z <= 3.5d+155))) then
        tmp = ((b / z) + ((t * a) * (-4.0d0))) / c_m
    else
        tmp = (((x * (9.0d0 * y)) - ((z * 4.0d0) * (t * a))) + b) / (c_m * z)
    end if
    code = c_s * tmp
end function
c_m = Math.abs(c);
c_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if ((z <= -6e+120) || !(z <= 3.5e+155)) {
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	} else {
		tmp = (((x * (9.0 * y)) - ((z * 4.0) * (t * a))) + b) / (c_m * z);
	}
	return c_s * tmp;
}
c_m = math.fabs(c)
c_s = math.copysign(1.0, c)
[x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m])
def code(c_s, x, y, z, t, a, b, c_m):
	tmp = 0
	if (z <= -6e+120) or not (z <= 3.5e+155):
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m
	else:
		tmp = (((x * (9.0 * y)) - ((z * 4.0) * (t * a))) + b) / (c_m * z)
	return c_s * tmp
c_m = abs(c)
c_s = copysign(1.0, c)
x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m])
function code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0
	if ((z <= -6e+120) || !(z <= 3.5e+155))
		tmp = Float64(Float64(Float64(b / z) + Float64(Float64(t * a) * -4.0)) / c_m);
	else
		tmp = Float64(Float64(Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(z * 4.0) * Float64(t * a))) + b) / Float64(c_m * z));
	end
	return Float64(c_s * tmp)
end
c_m = abs(c);
c_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0;
	if ((z <= -6e+120) || ~((z <= 3.5e+155)))
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	else
		tmp = (((x * (9.0 * y)) - ((z * 4.0) * (t * a))) + b) / (c_m * z);
	end
	tmp_2 = c_s * tmp;
end
c_m = N[Abs[c], $MachinePrecision]
c_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[Or[LessEqual[z, -6e+120], N[Not[LessEqual[z, 3.5e+155]], $MachinePrecision]], N[(N[(N[(b / z), $MachinePrecision] + N[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision], N[(N[(N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
c_m = \left|c\right|
\\
c_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -6 \cdot 10^{+120} \lor \neg \left(z \leq 3.5 \cdot 10^{+155}\right):\\
\;\;\;\;\frac{\frac{b}{z} + \left(t \cdot a\right) \cdot -4}{c\_m}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -6e120 or 3.49999999999999985e155 < z

    1. Initial program 41.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-41.9%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*41.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} \]
      10. associate-*l*52.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. Simplified52.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. Add Preprocessing
    5. Taylor expanded in x around 0 79.6%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z} - 4 \cdot \frac{a \cdot t}{c}} \]
    8. Step-by-step derivation
      1. cancel-sign-sub-inv69.6%

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

        \[\leadsto \frac{b}{c \cdot z} + \color{blue}{-4} \cdot \frac{a \cdot t}{c} \]
      3. *-commutative69.6%

        \[\leadsto \frac{b}{c \cdot z} + \color{blue}{\frac{a \cdot t}{c} \cdot -4} \]
      4. *-commutative69.6%

        \[\leadsto \frac{b}{c \cdot z} + \frac{\color{blue}{t \cdot a}}{c} \cdot -4 \]
      5. associate-*r/72.2%

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

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

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

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

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

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

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

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

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

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \frac{\color{blue}{\frac{b}{z}}}{c} \]
      15. associate-/r*72.2%

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \color{blue}{\frac{b}{z \cdot c}} \]
      16. associate-/l/66.5%

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

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

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

    if -6e120 < z < 3.49999999999999985e155

    1. Initial program 92.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-92.5%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*92.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} \]
      10. associate-*l*91.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. Simplified91.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. Add Preprocessing
  3. Recombined 2 regimes into one program.
  4. Final simplification86.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6 \cdot 10^{+120} \lor \neg \left(z \leq 3.5 \cdot 10^{+155}\right):\\ \;\;\;\;\frac{\frac{b}{z} + \left(t \cdot a\right) \cdot -4}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{c \cdot z}\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 67.8% accurate, 0.8× speedup?

\[\begin{array}{l} c_m = \left|c\right| \\ c_s = \mathsf{copysign}\left(1, c\right) \\ [x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\ \\ c\_s \cdot \begin{array}{l} \mathbf{if}\;a \leq -2.95 \cdot 10^{-241}:\\ \;\;\;\;\frac{\frac{b}{z} + \left(t \cdot a\right) \cdot -4}{c\_m}\\ \mathbf{elif}\;a \leq 1.45 \cdot 10^{+66}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c\_m \cdot z}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(\frac{a}{c\_m} \cdot -4\right) + \frac{\frac{b}{c\_m}}{z}\\ \end{array} \end{array} \]
c_m = (fabs.f64 c)
c_s = (copysign.f64 1 c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
 :precision binary64
 (*
  c_s
  (if (<= a -2.95e-241)
    (/ (+ (/ b z) (* (* t a) -4.0)) c_m)
    (if (<= a 1.45e+66)
      (/ (+ b (* 9.0 (* x y))) (* c_m z))
      (+ (* t (* (/ a c_m) -4.0)) (/ (/ b c_m) z))))))
c_m = fabs(c);
c_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if (a <= -2.95e-241) {
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	} else if (a <= 1.45e+66) {
		tmp = (b + (9.0 * (x * y))) / (c_m * z);
	} else {
		tmp = (t * ((a / c_m) * -4.0)) + ((b / c_m) / z);
	}
	return c_s * tmp;
}
c_m = abs(c)
c_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
    real(8), intent (in) :: c_s
    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_m
    real(8) :: tmp
    if (a <= (-2.95d-241)) then
        tmp = ((b / z) + ((t * a) * (-4.0d0))) / c_m
    else if (a <= 1.45d+66) then
        tmp = (b + (9.0d0 * (x * y))) / (c_m * z)
    else
        tmp = (t * ((a / c_m) * (-4.0d0))) + ((b / c_m) / z)
    end if
    code = c_s * tmp
end function
c_m = Math.abs(c);
c_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if (a <= -2.95e-241) {
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	} else if (a <= 1.45e+66) {
		tmp = (b + (9.0 * (x * y))) / (c_m * z);
	} else {
		tmp = (t * ((a / c_m) * -4.0)) + ((b / c_m) / z);
	}
	return c_s * tmp;
}
c_m = math.fabs(c)
c_s = math.copysign(1.0, c)
[x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m])
def code(c_s, x, y, z, t, a, b, c_m):
	tmp = 0
	if a <= -2.95e-241:
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m
	elif a <= 1.45e+66:
		tmp = (b + (9.0 * (x * y))) / (c_m * z)
	else:
		tmp = (t * ((a / c_m) * -4.0)) + ((b / c_m) / z)
	return c_s * tmp
c_m = abs(c)
c_s = copysign(1.0, c)
x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m])
function code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0
	if (a <= -2.95e-241)
		tmp = Float64(Float64(Float64(b / z) + Float64(Float64(t * a) * -4.0)) / c_m);
	elseif (a <= 1.45e+66)
		tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(c_m * z));
	else
		tmp = Float64(Float64(t * Float64(Float64(a / c_m) * -4.0)) + Float64(Float64(b / c_m) / z));
	end
	return Float64(c_s * tmp)
end
c_m = abs(c);
c_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0;
	if (a <= -2.95e-241)
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	elseif (a <= 1.45e+66)
		tmp = (b + (9.0 * (x * y))) / (c_m * z);
	else
		tmp = (t * ((a / c_m) * -4.0)) + ((b / c_m) / z);
	end
	tmp_2 = c_s * tmp;
end
c_m = N[Abs[c], $MachinePrecision]
c_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[a, -2.95e-241], N[(N[(N[(b / z), $MachinePrecision] + N[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision], If[LessEqual[a, 1.45e+66], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(a / c$95$m), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision] + N[(N[(b / c$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c_m = \left|c\right|
\\
c_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;a \leq -2.95 \cdot 10^{-241}:\\
\;\;\;\;\frac{\frac{b}{z} + \left(t \cdot a\right) \cdot -4}{c\_m}\\

\mathbf{elif}\;a \leq 1.45 \cdot 10^{+66}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c\_m \cdot z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -2.9499999999999999e-241

    1. Initial program 80.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-80.1%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*80.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} \]
      10. 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. Add Preprocessing
    5. Taylor expanded in x around 0 78.9%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z} - 4 \cdot \frac{a \cdot t}{c}} \]
    8. Step-by-step derivation
      1. cancel-sign-sub-inv62.6%

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

        \[\leadsto \frac{b}{c \cdot z} + \color{blue}{-4} \cdot \frac{a \cdot t}{c} \]
      3. *-commutative62.6%

        \[\leadsto \frac{b}{c \cdot z} + \color{blue}{\frac{a \cdot t}{c} \cdot -4} \]
      4. *-commutative62.6%

        \[\leadsto \frac{b}{c \cdot z} + \frac{\color{blue}{t \cdot a}}{c} \cdot -4 \]
      5. associate-*r/66.4%

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

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

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

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

        \[\leadsto \color{blue}{\frac{b}{z} \cdot \frac{1}{c}} + \left(t \cdot \frac{a}{c}\right) \cdot -4 \]
      10. +-commutative62.8%

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

        \[\leadsto \color{blue}{t \cdot \left(\frac{a}{c} \cdot -4\right)} + \frac{b}{z} \cdot \frac{1}{c} \]
      12. *-commutative62.8%

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

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \color{blue}{\frac{\frac{b}{z} \cdot 1}{c}} \]
      14. *-rgt-identity62.8%

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \frac{\color{blue}{\frac{b}{z}}}{c} \]
      15. associate-/r*66.4%

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \color{blue}{\frac{b}{z \cdot c}} \]
      16. associate-/l/60.1%

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

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

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

    if -2.9499999999999999e-241 < a < 1.44999999999999993e66

    1. Initial program 79.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-79.5%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*79.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} \]
      10. associate-*l*86.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. Simplified86.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. Add Preprocessing
    5. Taylor expanded in x around inf 76.7%

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

    if 1.44999999999999993e66 < a

    1. Initial program 80.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-80.1%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*80.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} \]
      10. 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. Add Preprocessing
    5. Taylor expanded in x around 0 69.8%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z} - 4 \cdot \frac{a \cdot t}{c}} \]
    8. Step-by-step derivation
      1. cancel-sign-sub-inv64.9%

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

        \[\leadsto \frac{b}{c \cdot z} + \color{blue}{-4} \cdot \frac{a \cdot t}{c} \]
      3. *-commutative64.9%

        \[\leadsto \frac{b}{c \cdot z} + \color{blue}{\frac{a \cdot t}{c} \cdot -4} \]
      4. *-commutative64.9%

        \[\leadsto \frac{b}{c \cdot z} + \frac{\color{blue}{t \cdot a}}{c} \cdot -4 \]
      5. associate-*r/78.3%

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

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

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

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

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

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

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

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

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

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \frac{\color{blue}{\frac{b}{z}}}{c} \]
      15. associate-/r*78.3%

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \color{blue}{\frac{b}{z \cdot c}} \]
      16. associate-/l/78.2%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.95 \cdot 10^{-241}:\\ \;\;\;\;\frac{\frac{b}{z} + \left(t \cdot a\right) \cdot -4}{c}\\ \mathbf{elif}\;a \leq 1.45 \cdot 10^{+66}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c \cdot z}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(\frac{a}{c} \cdot -4\right) + \frac{\frac{b}{c}}{z}\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 67.3% accurate, 0.8× speedup?

\[\begin{array}{l} c_m = \left|c\right| \\ c_s = \mathsf{copysign}\left(1, c\right) \\ [x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\ \\ c\_s \cdot \begin{array}{l} \mathbf{if}\;a \leq -7.2 \cdot 10^{-241}:\\ \;\;\;\;\frac{b}{c\_m \cdot z} - 4 \cdot \frac{t \cdot a}{c\_m}\\ \mathbf{elif}\;a \leq 1.45 \cdot 10^{+66}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c\_m \cdot z}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(\frac{a}{c\_m} \cdot -4\right) + \frac{\frac{b}{c\_m}}{z}\\ \end{array} \end{array} \]
c_m = (fabs.f64 c)
c_s = (copysign.f64 1 c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
 :precision binary64
 (*
  c_s
  (if (<= a -7.2e-241)
    (- (/ b (* c_m z)) (* 4.0 (/ (* t a) c_m)))
    (if (<= a 1.45e+66)
      (/ (+ b (* 9.0 (* x y))) (* c_m z))
      (+ (* t (* (/ a c_m) -4.0)) (/ (/ b c_m) z))))))
c_m = fabs(c);
c_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if (a <= -7.2e-241) {
		tmp = (b / (c_m * z)) - (4.0 * ((t * a) / c_m));
	} else if (a <= 1.45e+66) {
		tmp = (b + (9.0 * (x * y))) / (c_m * z);
	} else {
		tmp = (t * ((a / c_m) * -4.0)) + ((b / c_m) / z);
	}
	return c_s * tmp;
}
c_m = abs(c)
c_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
    real(8), intent (in) :: c_s
    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_m
    real(8) :: tmp
    if (a <= (-7.2d-241)) then
        tmp = (b / (c_m * z)) - (4.0d0 * ((t * a) / c_m))
    else if (a <= 1.45d+66) then
        tmp = (b + (9.0d0 * (x * y))) / (c_m * z)
    else
        tmp = (t * ((a / c_m) * (-4.0d0))) + ((b / c_m) / z)
    end if
    code = c_s * tmp
end function
c_m = Math.abs(c);
c_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if (a <= -7.2e-241) {
		tmp = (b / (c_m * z)) - (4.0 * ((t * a) / c_m));
	} else if (a <= 1.45e+66) {
		tmp = (b + (9.0 * (x * y))) / (c_m * z);
	} else {
		tmp = (t * ((a / c_m) * -4.0)) + ((b / c_m) / z);
	}
	return c_s * tmp;
}
c_m = math.fabs(c)
c_s = math.copysign(1.0, c)
[x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m])
def code(c_s, x, y, z, t, a, b, c_m):
	tmp = 0
	if a <= -7.2e-241:
		tmp = (b / (c_m * z)) - (4.0 * ((t * a) / c_m))
	elif a <= 1.45e+66:
		tmp = (b + (9.0 * (x * y))) / (c_m * z)
	else:
		tmp = (t * ((a / c_m) * -4.0)) + ((b / c_m) / z)
	return c_s * tmp
c_m = abs(c)
c_s = copysign(1.0, c)
x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m])
function code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0
	if (a <= -7.2e-241)
		tmp = Float64(Float64(b / Float64(c_m * z)) - Float64(4.0 * Float64(Float64(t * a) / c_m)));
	elseif (a <= 1.45e+66)
		tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(c_m * z));
	else
		tmp = Float64(Float64(t * Float64(Float64(a / c_m) * -4.0)) + Float64(Float64(b / c_m) / z));
	end
	return Float64(c_s * tmp)
end
c_m = abs(c);
c_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0;
	if (a <= -7.2e-241)
		tmp = (b / (c_m * z)) - (4.0 * ((t * a) / c_m));
	elseif (a <= 1.45e+66)
		tmp = (b + (9.0 * (x * y))) / (c_m * z);
	else
		tmp = (t * ((a / c_m) * -4.0)) + ((b / c_m) / z);
	end
	tmp_2 = c_s * tmp;
end
c_m = N[Abs[c], $MachinePrecision]
c_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[a, -7.2e-241], N[(N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.45e+66], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(a / c$95$m), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision] + N[(N[(b / c$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c_m = \left|c\right|
\\
c_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;a \leq -7.2 \cdot 10^{-241}:\\
\;\;\;\;\frac{b}{c\_m \cdot z} - 4 \cdot \frac{t \cdot a}{c\_m}\\

\mathbf{elif}\;a \leq 1.45 \cdot 10^{+66}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c\_m \cdot z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -7.1999999999999998e-241

    1. Initial program 80.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-80.1%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*80.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} \]
      10. 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. Add Preprocessing
    5. Taylor expanded in x around 0 78.9%

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

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

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

    if -7.1999999999999998e-241 < a < 1.44999999999999993e66

    1. Initial program 79.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-79.5%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*79.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} \]
      10. associate-*l*86.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. Simplified86.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. Add Preprocessing
    5. Taylor expanded in x around inf 76.7%

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

    if 1.44999999999999993e66 < a

    1. Initial program 80.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-80.1%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*80.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} \]
      10. 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. Add Preprocessing
    5. Taylor expanded in x around 0 69.8%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z} - 4 \cdot \frac{a \cdot t}{c}} \]
    8. Step-by-step derivation
      1. cancel-sign-sub-inv64.9%

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

        \[\leadsto \frac{b}{c \cdot z} + \color{blue}{-4} \cdot \frac{a \cdot t}{c} \]
      3. *-commutative64.9%

        \[\leadsto \frac{b}{c \cdot z} + \color{blue}{\frac{a \cdot t}{c} \cdot -4} \]
      4. *-commutative64.9%

        \[\leadsto \frac{b}{c \cdot z} + \frac{\color{blue}{t \cdot a}}{c} \cdot -4 \]
      5. associate-*r/78.3%

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

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

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

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

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

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

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

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

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

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \frac{\color{blue}{\frac{b}{z}}}{c} \]
      15. associate-/r*78.3%

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \color{blue}{\frac{b}{z \cdot c}} \]
      16. associate-/l/78.2%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -7.2 \cdot 10^{-241}:\\ \;\;\;\;\frac{b}{c \cdot z} - 4 \cdot \frac{t \cdot a}{c}\\ \mathbf{elif}\;a \leq 1.45 \cdot 10^{+66}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c \cdot z}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(\frac{a}{c} \cdot -4\right) + \frac{\frac{b}{c}}{z}\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 69.3% accurate, 0.9× speedup?

\[\begin{array}{l} c_m = \left|c\right| \\ c_s = \mathsf{copysign}\left(1, c\right) \\ [x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\ \\ c\_s \cdot \begin{array}{l} \mathbf{if}\;y \leq -0.125:\\ \;\;\;\;x \cdot \left(9 \cdot \frac{\frac{y}{c\_m}}{z}\right)\\ \mathbf{elif}\;y \leq 2.4 \cdot 10^{+148}:\\ \;\;\;\;\frac{\frac{b}{z} + \left(t \cdot a\right) \cdot -4}{c\_m}\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot y\right) \cdot \frac{9}{c\_m \cdot z}\\ \end{array} \end{array} \]
c_m = (fabs.f64 c)
c_s = (copysign.f64 1 c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
 :precision binary64
 (*
  c_s
  (if (<= y -0.125)
    (* x (* 9.0 (/ (/ y c_m) z)))
    (if (<= y 2.4e+148)
      (/ (+ (/ b z) (* (* t a) -4.0)) c_m)
      (* (* x y) (/ 9.0 (* c_m z)))))))
c_m = fabs(c);
c_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if (y <= -0.125) {
		tmp = x * (9.0 * ((y / c_m) / z));
	} else if (y <= 2.4e+148) {
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	} else {
		tmp = (x * y) * (9.0 / (c_m * z));
	}
	return c_s * tmp;
}
c_m = abs(c)
c_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
    real(8), intent (in) :: c_s
    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_m
    real(8) :: tmp
    if (y <= (-0.125d0)) then
        tmp = x * (9.0d0 * ((y / c_m) / z))
    else if (y <= 2.4d+148) then
        tmp = ((b / z) + ((t * a) * (-4.0d0))) / c_m
    else
        tmp = (x * y) * (9.0d0 / (c_m * z))
    end if
    code = c_s * tmp
end function
c_m = Math.abs(c);
c_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if (y <= -0.125) {
		tmp = x * (9.0 * ((y / c_m) / z));
	} else if (y <= 2.4e+148) {
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	} else {
		tmp = (x * y) * (9.0 / (c_m * z));
	}
	return c_s * tmp;
}
c_m = math.fabs(c)
c_s = math.copysign(1.0, c)
[x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m])
def code(c_s, x, y, z, t, a, b, c_m):
	tmp = 0
	if y <= -0.125:
		tmp = x * (9.0 * ((y / c_m) / z))
	elif y <= 2.4e+148:
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m
	else:
		tmp = (x * y) * (9.0 / (c_m * z))
	return c_s * tmp
c_m = abs(c)
c_s = copysign(1.0, c)
x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m])
function code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0
	if (y <= -0.125)
		tmp = Float64(x * Float64(9.0 * Float64(Float64(y / c_m) / z)));
	elseif (y <= 2.4e+148)
		tmp = Float64(Float64(Float64(b / z) + Float64(Float64(t * a) * -4.0)) / c_m);
	else
		tmp = Float64(Float64(x * y) * Float64(9.0 / Float64(c_m * z)));
	end
	return Float64(c_s * tmp)
end
c_m = abs(c);
c_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0;
	if (y <= -0.125)
		tmp = x * (9.0 * ((y / c_m) / z));
	elseif (y <= 2.4e+148)
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	else
		tmp = (x * y) * (9.0 / (c_m * z));
	end
	tmp_2 = c_s * tmp;
end
c_m = N[Abs[c], $MachinePrecision]
c_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[y, -0.125], N[(x * N[(9.0 * N[(N[(y / c$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e+148], N[(N[(N[(b / z), $MachinePrecision] + N[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision], N[(N[(x * y), $MachinePrecision] * N[(9.0 / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c_m = \left|c\right|
\\
c_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;y \leq -0.125:\\
\;\;\;\;x \cdot \left(9 \cdot \frac{\frac{y}{c\_m}}{z}\right)\\

\mathbf{elif}\;y \leq 2.4 \cdot 10^{+148}:\\
\;\;\;\;\frac{\frac{b}{z} + \left(t \cdot a\right) \cdot -4}{c\_m}\\

\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \frac{9}{c\_m \cdot z}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -0.125

    1. Initial program 80.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-80.0%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*79.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} \]
      10. associate-*l*80.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. Simplified80.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. Add Preprocessing
    5. Taylor expanded in x around inf 52.8%

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

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

      \[\leadsto \color{blue}{9 \cdot \frac{x \cdot y}{z \cdot c}} \]
    8. Taylor expanded in x around 0 52.8%

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

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

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

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

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

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

    if -0.125 < y < 2.39999999999999995e148

    1. Initial program 78.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-78.6%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*78.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} \]
      10. associate-*l*81.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. Simplified81.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. Add Preprocessing
    5. Taylor expanded in x around 0 81.2%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z} - 4 \cdot \frac{a \cdot t}{c}} \]
    8. Step-by-step derivation
      1. cancel-sign-sub-inv72.8%

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

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

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

        \[\leadsto \frac{b}{c \cdot z} + \frac{\color{blue}{t \cdot a}}{c} \cdot -4 \]
      5. associate-*r/75.2%

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

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

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

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

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

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

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

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

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

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \frac{\color{blue}{\frac{b}{z}}}{c} \]
      15. associate-/r*75.2%

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \color{blue}{\frac{b}{z \cdot c}} \]
      16. associate-/l/70.9%

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

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

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

    if 2.39999999999999995e148 < y

    1. Initial program 87.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-87.4%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. 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} \]
      10. associate-*l*87.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. Simplified87.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. Add Preprocessing
    5. Taylor expanded in x around inf 62.5%

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

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

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

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

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

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

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

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

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

Alternative 11: 67.6% accurate, 0.9× speedup?

\[\begin{array}{l} c_m = \left|c\right| \\ c_s = \mathsf{copysign}\left(1, c\right) \\ [x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\ \\ c\_s \cdot \begin{array}{l} \mathbf{if}\;t \leq -7.8 \cdot 10^{+59}:\\ \;\;\;\;\frac{\frac{b}{z} + \left(t \cdot a\right) \cdot -4}{c\_m}\\ \mathbf{elif}\;t \leq 2.65 \cdot 10^{-17}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c\_m \cdot z}\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \frac{a}{\frac{c\_m}{t}}\\ \end{array} \end{array} \]
c_m = (fabs.f64 c)
c_s = (copysign.f64 1 c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
 :precision binary64
 (*
  c_s
  (if (<= t -7.8e+59)
    (/ (+ (/ b z) (* (* t a) -4.0)) c_m)
    (if (<= t 2.65e-17)
      (/ (+ b (* 9.0 (* x y))) (* c_m z))
      (* -4.0 (/ a (/ c_m t)))))))
c_m = fabs(c);
c_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if (t <= -7.8e+59) {
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	} else if (t <= 2.65e-17) {
		tmp = (b + (9.0 * (x * y))) / (c_m * z);
	} else {
		tmp = -4.0 * (a / (c_m / t));
	}
	return c_s * tmp;
}
c_m = abs(c)
c_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
    real(8), intent (in) :: c_s
    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_m
    real(8) :: tmp
    if (t <= (-7.8d+59)) then
        tmp = ((b / z) + ((t * a) * (-4.0d0))) / c_m
    else if (t <= 2.65d-17) then
        tmp = (b + (9.0d0 * (x * y))) / (c_m * z)
    else
        tmp = (-4.0d0) * (a / (c_m / t))
    end if
    code = c_s * tmp
end function
c_m = Math.abs(c);
c_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if (t <= -7.8e+59) {
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	} else if (t <= 2.65e-17) {
		tmp = (b + (9.0 * (x * y))) / (c_m * z);
	} else {
		tmp = -4.0 * (a / (c_m / t));
	}
	return c_s * tmp;
}
c_m = math.fabs(c)
c_s = math.copysign(1.0, c)
[x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m])
def code(c_s, x, y, z, t, a, b, c_m):
	tmp = 0
	if t <= -7.8e+59:
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m
	elif t <= 2.65e-17:
		tmp = (b + (9.0 * (x * y))) / (c_m * z)
	else:
		tmp = -4.0 * (a / (c_m / t))
	return c_s * tmp
c_m = abs(c)
c_s = copysign(1.0, c)
x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m])
function code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0
	if (t <= -7.8e+59)
		tmp = Float64(Float64(Float64(b / z) + Float64(Float64(t * a) * -4.0)) / c_m);
	elseif (t <= 2.65e-17)
		tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(c_m * z));
	else
		tmp = Float64(-4.0 * Float64(a / Float64(c_m / t)));
	end
	return Float64(c_s * tmp)
end
c_m = abs(c);
c_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0;
	if (t <= -7.8e+59)
		tmp = ((b / z) + ((t * a) * -4.0)) / c_m;
	elseif (t <= 2.65e-17)
		tmp = (b + (9.0 * (x * y))) / (c_m * z);
	else
		tmp = -4.0 * (a / (c_m / t));
	end
	tmp_2 = c_s * tmp;
end
c_m = N[Abs[c], $MachinePrecision]
c_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[t, -7.8e+59], N[(N[(N[(b / z), $MachinePrecision] + N[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision], If[LessEqual[t, 2.65e-17], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(a / N[(c$95$m / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c_m = \left|c\right|
\\
c_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;t \leq -7.8 \cdot 10^{+59}:\\
\;\;\;\;\frac{\frac{b}{z} + \left(t \cdot a\right) \cdot -4}{c\_m}\\

\mathbf{elif}\;t \leq 2.65 \cdot 10^{-17}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c\_m \cdot z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -7.80000000000000043e59

    1. Initial program 77.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-77.4%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*77.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} \]
      10. associate-*l*79.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. Simplified79.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. Add Preprocessing
    5. Taylor expanded in x around 0 74.0%

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

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

      \[\leadsto \color{blue}{\frac{b}{c \cdot z} - 4 \cdot \frac{a \cdot t}{c}} \]
    8. Step-by-step derivation
      1. cancel-sign-sub-inv67.4%

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

        \[\leadsto \frac{b}{c \cdot z} + \color{blue}{-4} \cdot \frac{a \cdot t}{c} \]
      3. *-commutative67.4%

        \[\leadsto \frac{b}{c \cdot z} + \color{blue}{\frac{a \cdot t}{c} \cdot -4} \]
      4. *-commutative67.4%

        \[\leadsto \frac{b}{c \cdot z} + \frac{\color{blue}{t \cdot a}}{c} \cdot -4 \]
      5. associate-*r/73.0%

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

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

        \[\leadsto \color{blue}{\frac{\frac{b}{z}}{c}} + \left(t \cdot \frac{a}{c}\right) \cdot -4 \]
      8. *-rgt-identity76.5%

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

        \[\leadsto \color{blue}{\frac{b}{z} \cdot \frac{1}{c}} + \left(t \cdot \frac{a}{c}\right) \cdot -4 \]
      10. +-commutative76.5%

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

        \[\leadsto \color{blue}{t \cdot \left(\frac{a}{c} \cdot -4\right)} + \frac{b}{z} \cdot \frac{1}{c} \]
      12. *-commutative76.5%

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

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \color{blue}{\frac{\frac{b}{z} \cdot 1}{c}} \]
      14. *-rgt-identity76.5%

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \frac{\color{blue}{\frac{b}{z}}}{c} \]
      15. associate-/r*73.0%

        \[\leadsto t \cdot \left(-4 \cdot \frac{a}{c}\right) + \color{blue}{\frac{b}{z \cdot c}} \]
      16. associate-/l/74.7%

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

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

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

    if -7.80000000000000043e59 < t < 2.6499999999999999e-17

    1. Initial program 89.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-89.6%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*89.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} \]
      10. associate-*l*89.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. Simplified89.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. Add Preprocessing
    5. Taylor expanded in x around inf 80.7%

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

    if 2.6499999999999999e-17 < t

    1. Initial program 62.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-62.7%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*62.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} \]
      10. associate-*l*67.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. Simplified67.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. Add Preprocessing
    5. Taylor expanded in z around inf 52.2%

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

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

        \[\leadsto \color{blue}{\frac{a}{\frac{c}{t}}} \cdot -4 \]
    7. Simplified63.4%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.8 \cdot 10^{+59}:\\ \;\;\;\;\frac{\frac{b}{z} + \left(t \cdot a\right) \cdot -4}{c}\\ \mathbf{elif}\;t \leq 2.65 \cdot 10^{-17}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c \cdot z}\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 50.1% accurate, 1.1× speedup?

\[\begin{array}{l} c_m = \left|c\right| \\ c_s = \mathsf{copysign}\left(1, c\right) \\ [x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\ \\ c\_s \cdot \begin{array}{l} \mathbf{if}\;b \leq -5.3 \cdot 10^{+126} \lor \neg \left(b \leq 5 \cdot 10^{+78}\right):\\ \;\;\;\;\frac{b}{c\_m \cdot z}\\ \mathbf{else}:\\ \;\;\;\;\left(t \cdot \frac{a}{c\_m}\right) \cdot -4\\ \end{array} \end{array} \]
c_m = (fabs.f64 c)
c_s = (copysign.f64 1 c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
 :precision binary64
 (*
  c_s
  (if (or (<= b -5.3e+126) (not (<= b 5e+78)))
    (/ b (* c_m z))
    (* (* t (/ a c_m)) -4.0))))
c_m = fabs(c);
c_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if ((b <= -5.3e+126) || !(b <= 5e+78)) {
		tmp = b / (c_m * z);
	} else {
		tmp = (t * (a / c_m)) * -4.0;
	}
	return c_s * tmp;
}
c_m = abs(c)
c_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
    real(8), intent (in) :: c_s
    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_m
    real(8) :: tmp
    if ((b <= (-5.3d+126)) .or. (.not. (b <= 5d+78))) then
        tmp = b / (c_m * z)
    else
        tmp = (t * (a / c_m)) * (-4.0d0)
    end if
    code = c_s * tmp
end function
c_m = Math.abs(c);
c_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	double tmp;
	if ((b <= -5.3e+126) || !(b <= 5e+78)) {
		tmp = b / (c_m * z);
	} else {
		tmp = (t * (a / c_m)) * -4.0;
	}
	return c_s * tmp;
}
c_m = math.fabs(c)
c_s = math.copysign(1.0, c)
[x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m])
def code(c_s, x, y, z, t, a, b, c_m):
	tmp = 0
	if (b <= -5.3e+126) or not (b <= 5e+78):
		tmp = b / (c_m * z)
	else:
		tmp = (t * (a / c_m)) * -4.0
	return c_s * tmp
c_m = abs(c)
c_s = copysign(1.0, c)
x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m])
function code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0
	if ((b <= -5.3e+126) || !(b <= 5e+78))
		tmp = Float64(b / Float64(c_m * z));
	else
		tmp = Float64(Float64(t * Float64(a / c_m)) * -4.0);
	end
	return Float64(c_s * tmp)
end
c_m = abs(c);
c_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
	tmp = 0.0;
	if ((b <= -5.3e+126) || ~((b <= 5e+78)))
		tmp = b / (c_m * z);
	else
		tmp = (t * (a / c_m)) * -4.0;
	end
	tmp_2 = c_s * tmp;
end
c_m = N[Abs[c], $MachinePrecision]
c_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[Or[LessEqual[b, -5.3e+126], N[Not[LessEqual[b, 5e+78]], $MachinePrecision]], N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(a / c$95$m), $MachinePrecision]), $MachinePrecision] * -4.0), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
c_m = \left|c\right|
\\
c_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -5.3 \cdot 10^{+126} \lor \neg \left(b \leq 5 \cdot 10^{+78}\right):\\
\;\;\;\;\frac{b}{c\_m \cdot z}\\

\mathbf{else}:\\
\;\;\;\;\left(t \cdot \frac{a}{c\_m}\right) \cdot -4\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -5.30000000000000028e126 or 4.99999999999999984e78 < b

    1. Initial program 81.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-81.8%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. 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} \]
      10. associate-*l*84.1%

        \[\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.1%

      \[\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. Add Preprocessing
    5. Taylor expanded in b around inf 63.1%

      \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
    6. Step-by-step derivation
      1. *-commutative63.1%

        \[\leadsto \frac{b}{\color{blue}{z \cdot c}} \]
    7. Simplified63.1%

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

    if -5.30000000000000028e126 < b < 4.99999999999999984e78

    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.7%

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

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

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

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

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

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

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

        \[\leadsto \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 \cdot c} \]
      9. associate-*l*78.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} \]
      10. associate-*l*79.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. Simplified79.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. Add Preprocessing
    5. Step-by-step derivation
      1. add-cube-cbrt79.7%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{-4 \cdot \left(\frac{a}{c} \cdot t\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification57.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -5.3 \cdot 10^{+126} \lor \neg \left(b \leq 5 \cdot 10^{+78}\right):\\ \;\;\;\;\frac{b}{c \cdot z}\\ \mathbf{else}:\\ \;\;\;\;\left(t \cdot \frac{a}{c}\right) \cdot -4\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 35.8% accurate, 3.8× speedup?

\[\begin{array}{l} c_m = \left|c\right| \\ c_s = \mathsf{copysign}\left(1, c\right) \\ [x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\ \\ c\_s \cdot \frac{b}{c\_m \cdot z} \end{array} \]
c_m = (fabs.f64 c)
c_s = (copysign.f64 1 c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m) :precision binary64 (* c_s (/ b (* c_m z))))
c_m = fabs(c);
c_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	return c_s * (b / (c_m * z));
}
c_m = abs(c)
c_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
    real(8), intent (in) :: c_s
    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_m
    code = c_s * (b / (c_m * z))
end function
c_m = Math.abs(c);
c_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
	return c_s * (b / (c_m * z));
}
c_m = math.fabs(c)
c_s = math.copysign(1.0, c)
[x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m])
def code(c_s, x, y, z, t, a, b, c_m):
	return c_s * (b / (c_m * z))
c_m = abs(c)
c_s = copysign(1.0, c)
x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m])
function code(c_s, x, y, z, t, a, b, c_m)
	return Float64(c_s * Float64(b / Float64(c_m * z)))
end
c_m = abs(c);
c_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp = code(c_s, x, y, z, t, a, b, c_m)
	tmp = c_s * (b / (c_m * z));
end
c_m = N[Abs[c], $MachinePrecision]
c_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
c_m = \left|c\right|
\\
c_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \frac{b}{c\_m \cdot z}
\end{array}
Derivation
  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-79.9%

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

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

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

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

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

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

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

      \[\leadsto \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 \cdot c} \]
    9. associate-*l*79.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} \]
    10. associate-*l*81.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. Simplified81.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. Add Preprocessing
  5. Taylor expanded in b around inf 35.0%

    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
  6. Step-by-step derivation
    1. *-commutative35.0%

      \[\leadsto \frac{b}{\color{blue}{z \cdot c}} \]
  7. Simplified35.0%

    \[\leadsto \color{blue}{\frac{b}{z \cdot c}} \]
  8. Final simplification35.0%

    \[\leadsto \frac{b}{c \cdot z} \]
  9. Add Preprocessing

Developer target: 80.5% accurate, 0.1× 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 2024041 
(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)))