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

Percentage Accurate: 79.4% → 89.1%
Time: 15.4s
Alternatives: 17
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 17 alternatives:

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

Initial Program: 79.4% accurate, 1.0× speedup?

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

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

Alternative 1: 89.1% accurate, 0.1× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;z \leq -1.2 \cdot 10^{+16} \lor \neg \left(z \leq 3700000000\right):\\ \;\;\;\;\frac{y \cdot \left(\left(9 \cdot \frac{x}{z} + \frac{b}{z \cdot y}\right) - 4 \cdot \frac{a \cdot t}{y}\right)}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{b + \mathsf{fma}\left(x, y \cdot 9, t \cdot \left(a \cdot \left(z \cdot -4\right)\right)\right)}{z \cdot c}\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (or (<= z -1.2e+16) (not (<= z 3700000000.0)))
   (/ (* y (- (+ (* 9.0 (/ x z)) (/ b (* z y))) (* 4.0 (/ (* a t) y)))) c)
   (/ (+ b (fma x (* y 9.0) (* t (* a (* z -4.0))))) (* z c))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if ((z <= -1.2e+16) || !(z <= 3700000000.0)) {
		tmp = (y * (((9.0 * (x / z)) + (b / (z * y))) - (4.0 * ((a * t) / y)))) / c;
	} else {
		tmp = (b + fma(x, (y * 9.0), (t * (a * (z * -4.0))))) / (z * c);
	}
	return tmp;
}
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if ((z <= -1.2e+16) || !(z <= 3700000000.0))
		tmp = Float64(Float64(y * Float64(Float64(Float64(9.0 * Float64(x / z)) + Float64(b / Float64(z * y))) - Float64(4.0 * Float64(Float64(a * t) / y)))) / c);
	else
		tmp = Float64(Float64(b + fma(x, Float64(y * 9.0), Float64(t * Float64(a * Float64(z * -4.0))))) / Float64(z * c));
	end
	return tmp
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -1.2e+16], N[Not[LessEqual[z, 3700000000.0]], $MachinePrecision]], N[(N[(y * N[(N[(N[(9.0 * N[(x / z), $MachinePrecision]), $MachinePrecision] + N[(b / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(N[(a * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(x * N[(y * 9.0), $MachinePrecision] + N[(t * N[(a * N[(z * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+16} \lor \neg \left(z \leq 3700000000\right):\\
\;\;\;\;\frac{y \cdot \left(\left(9 \cdot \frac{x}{z} + \frac{b}{z \cdot y}\right) - 4 \cdot \frac{a \cdot t}{y}\right)}{c}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.2e16 or 3.7e9 < z

    1. Initial program 64.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. +-commutative64.7%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative61.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} \]
      8. associate-*l*60.7%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified68.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 y around inf 74.3%

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

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

    if -1.2e16 < z < 3.7e9

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

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

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

Alternative 2: 89.0% accurate, 0.6× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;z \leq -2.2 \cdot 10^{+16} \lor \neg \left(z \leq 4600000000\right):\\ \;\;\;\;\frac{y \cdot \left(\left(9 \cdot \frac{x}{z} + \frac{b}{z \cdot y}\right) - 4 \cdot \frac{a \cdot t}{y}\right)}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{b + \left(y \cdot \left(9 \cdot x\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (or (<= z -2.2e+16) (not (<= z 4600000000.0)))
   (/ (* y (- (+ (* 9.0 (/ x z)) (/ b (* z y))) (* 4.0 (/ (* a t) y)))) c)
   (/ (+ b (- (* y (* 9.0 x)) (* a (* t (* z 4.0))))) (* z c))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if ((z <= -2.2e+16) || !(z <= 4600000000.0)) {
		tmp = (y * (((9.0 * (x / z)) + (b / (z * y))) - (4.0 * ((a * t) / y)))) / c;
	} else {
		tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if ((z <= (-2.2d+16)) .or. (.not. (z <= 4600000000.0d0))) then
        tmp = (y * (((9.0d0 * (x / z)) + (b / (z * y))) - (4.0d0 * ((a * t) / y)))) / c
    else
        tmp = (b + ((y * (9.0d0 * x)) - (a * (t * (z * 4.0d0))))) / (z * c)
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if ((z <= -2.2e+16) || !(z <= 4600000000.0)) {
		tmp = (y * (((9.0 * (x / z)) + (b / (z * y))) - (4.0 * ((a * t) / y)))) / c;
	} else {
		tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	tmp = 0
	if (z <= -2.2e+16) or not (z <= 4600000000.0):
		tmp = (y * (((9.0 * (x / z)) + (b / (z * y))) - (4.0 * ((a * t) / y)))) / c
	else:
		tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c)
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if ((z <= -2.2e+16) || !(z <= 4600000000.0))
		tmp = Float64(Float64(y * Float64(Float64(Float64(9.0 * Float64(x / z)) + Float64(b / Float64(z * y))) - Float64(4.0 * Float64(Float64(a * t) / y)))) / c);
	else
		tmp = Float64(Float64(b + Float64(Float64(y * Float64(9.0 * x)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c));
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if ((z <= -2.2e+16) || ~((z <= 4600000000.0)))
		tmp = (y * (((9.0 * (x / z)) + (b / (z * y))) - (4.0 * ((a * t) / y)))) / c;
	else
		tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -2.2e+16], N[Not[LessEqual[z, 4600000000.0]], $MachinePrecision]], N[(N[(y * N[(N[(N[(9.0 * N[(x / z), $MachinePrecision]), $MachinePrecision] + N[(b / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(N[(a * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(N[(y * N[(9.0 * x), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.2 \cdot 10^{+16} \lor \neg \left(z \leq 4600000000\right):\\
\;\;\;\;\frac{y \cdot \left(\left(9 \cdot \frac{x}{z} + \frac{b}{z \cdot y}\right) - 4 \cdot \frac{a \cdot t}{y}\right)}{c}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.2e16 or 4.6e9 < z

    1. Initial program 64.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. +-commutative64.7%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative61.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} \]
      8. associate-*l*60.7%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified68.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 y around inf 74.3%

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

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

    if -2.2e16 < z < 4.6e9

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

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

Alternative 3: 85.0% accurate, 0.7× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;z \leq -6 \cdot 10^{+41}:\\ \;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\ \mathbf{elif}\;z \leq 3.8 \cdot 10^{+113}:\\ \;\;\;\;\frac{b + \left(y \cdot \left(9 \cdot x\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot \left(9 \cdot \frac{x}{z} - \frac{t \cdot \left(4 \cdot a\right)}{y}\right)}{c}\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (<= z -6e+41)
   (/ (- (/ b z) (* 4.0 (* a t))) c)
   (if (<= z 3.8e+113)
     (/ (+ b (- (* y (* 9.0 x)) (* a (* t (* z 4.0))))) (* z c))
     (/ (* y (- (* 9.0 (/ x z)) (/ (* t (* 4.0 a)) y))) c))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (z <= -6e+41) {
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	} else if (z <= 3.8e+113) {
		tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
	} else {
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if (z <= (-6d+41)) then
        tmp = ((b / z) - (4.0d0 * (a * t))) / c
    else if (z <= 3.8d+113) then
        tmp = (b + ((y * (9.0d0 * x)) - (a * (t * (z * 4.0d0))))) / (z * c)
    else
        tmp = (y * ((9.0d0 * (x / z)) - ((t * (4.0d0 * a)) / y))) / c
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (z <= -6e+41) {
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	} else if (z <= 3.8e+113) {
		tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
	} else {
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c;
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	tmp = 0
	if z <= -6e+41:
		tmp = ((b / z) - (4.0 * (a * t))) / c
	elif z <= 3.8e+113:
		tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c)
	else:
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if (z <= -6e+41)
		tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c);
	elseif (z <= 3.8e+113)
		tmp = Float64(Float64(b + Float64(Float64(y * Float64(9.0 * x)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c));
	else
		tmp = Float64(Float64(y * Float64(Float64(9.0 * Float64(x / z)) - Float64(Float64(t * Float64(4.0 * a)) / y))) / c);
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if (z <= -6e+41)
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	elseif (z <= 3.8e+113)
		tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
	else
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -6e+41], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, 3.8e+113], N[(N[(b + N[(N[(y * N[(9.0 * x), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[(9.0 * N[(x / z), $MachinePrecision]), $MachinePrecision] - N[(N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6 \cdot 10^{+41}:\\
\;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\

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

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


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

    1. Initial program 68.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. +-commutative68.1%

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified72.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 y around inf 72.0%

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

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

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

    if -5.9999999999999997e41 < z < 3.8000000000000003e113

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

    if 3.8000000000000003e113 < z

    1. Initial program 45.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. +-commutative45.4%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative45.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} \]
      8. associate-*l*45.2%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified50.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 y around inf 65.1%

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

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

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

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

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

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

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

Alternative 4: 83.9% accurate, 0.7× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;z \leq -4 \cdot 10^{+41}:\\ \;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\ \mathbf{elif}\;z \leq 2.5 \cdot 10^{+161}:\\ \;\;\;\;\frac{b + \left(x \cdot \left(y \cdot 9\right) - \left(a \cdot t\right) \cdot \left(z \cdot 4\right)\right)}{z \cdot c}\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot \left(9 \cdot \frac{x}{z} - \frac{t \cdot \left(4 \cdot a\right)}{y}\right)}{c}\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (<= z -4e+41)
   (/ (- (/ b z) (* 4.0 (* a t))) c)
   (if (<= z 2.5e+161)
     (/ (+ b (- (* x (* y 9.0)) (* (* a t) (* z 4.0)))) (* z c))
     (/ (* y (- (* 9.0 (/ x z)) (/ (* t (* 4.0 a)) y))) c))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (z <= -4e+41) {
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	} else if (z <= 2.5e+161) {
		tmp = (b + ((x * (y * 9.0)) - ((a * t) * (z * 4.0)))) / (z * c);
	} else {
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if (z <= (-4d+41)) then
        tmp = ((b / z) - (4.0d0 * (a * t))) / c
    else if (z <= 2.5d+161) then
        tmp = (b + ((x * (y * 9.0d0)) - ((a * t) * (z * 4.0d0)))) / (z * c)
    else
        tmp = (y * ((9.0d0 * (x / z)) - ((t * (4.0d0 * a)) / y))) / c
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (z <= -4e+41) {
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	} else if (z <= 2.5e+161) {
		tmp = (b + ((x * (y * 9.0)) - ((a * t) * (z * 4.0)))) / (z * c);
	} else {
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c;
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	tmp = 0
	if z <= -4e+41:
		tmp = ((b / z) - (4.0 * (a * t))) / c
	elif z <= 2.5e+161:
		tmp = (b + ((x * (y * 9.0)) - ((a * t) * (z * 4.0)))) / (z * c)
	else:
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if (z <= -4e+41)
		tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c);
	elseif (z <= 2.5e+161)
		tmp = Float64(Float64(b + Float64(Float64(x * Float64(y * 9.0)) - Float64(Float64(a * t) * Float64(z * 4.0)))) / Float64(z * c));
	else
		tmp = Float64(Float64(y * Float64(Float64(9.0 * Float64(x / z)) - Float64(Float64(t * Float64(4.0 * a)) / y))) / c);
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if (z <= -4e+41)
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	elseif (z <= 2.5e+161)
		tmp = (b + ((x * (y * 9.0)) - ((a * t) * (z * 4.0)))) / (z * c);
	else
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -4e+41], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, 2.5e+161], N[(N[(b + N[(N[(x * N[(y * 9.0), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[(9.0 * N[(x / z), $MachinePrecision]), $MachinePrecision] - N[(N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{+41}:\\
\;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\

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

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


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

    1. Initial program 68.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. +-commutative68.1%

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified72.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 y around inf 72.0%

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

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

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

    if -4.00000000000000002e41 < z < 2.4999999999999998e161

    1. Initial program 93.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. +-commutative93.5%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative92.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} \]
      8. associate-*l*92.2%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified90.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

    if 2.4999999999999998e161 < z

    1. Initial program 34.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. +-commutative34.1%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative39.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} \]
      8. associate-*l*40.0%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified40.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 y around inf 59.6%

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

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

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

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

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

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

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

Alternative 5: 73.9% accurate, 0.7× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;y \leq -780000:\\ \;\;\;\;\frac{y \cdot \left(9 \cdot \frac{x}{z} - \frac{t \cdot \left(4 \cdot a\right)}{y}\right)}{c}\\ \mathbf{elif}\;y \leq 3.7 \cdot 10^{+53}:\\ \;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(\frac{9}{z} \cdot \frac{x}{c} + \frac{\left(a \cdot t\right) \cdot -4}{y \cdot c}\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (<= y -780000.0)
   (/ (* y (- (* 9.0 (/ x z)) (/ (* t (* 4.0 a)) y))) c)
   (if (<= y 3.7e+53)
     (/ (- (/ b z) (* 4.0 (* a t))) c)
     (* y (+ (* (/ 9.0 z) (/ x c)) (/ (* (* a t) -4.0) (* y c)))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (y <= -780000.0) {
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c;
	} else if (y <= 3.7e+53) {
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	} else {
		tmp = y * (((9.0 / z) * (x / c)) + (((a * t) * -4.0) / (y * c)));
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if (y <= (-780000.0d0)) then
        tmp = (y * ((9.0d0 * (x / z)) - ((t * (4.0d0 * a)) / y))) / c
    else if (y <= 3.7d+53) then
        tmp = ((b / z) - (4.0d0 * (a * t))) / c
    else
        tmp = y * (((9.0d0 / z) * (x / c)) + (((a * t) * (-4.0d0)) / (y * c)))
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (y <= -780000.0) {
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c;
	} else if (y <= 3.7e+53) {
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	} else {
		tmp = y * (((9.0 / z) * (x / c)) + (((a * t) * -4.0) / (y * c)));
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	tmp = 0
	if y <= -780000.0:
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c
	elif y <= 3.7e+53:
		tmp = ((b / z) - (4.0 * (a * t))) / c
	else:
		tmp = y * (((9.0 / z) * (x / c)) + (((a * t) * -4.0) / (y * c)))
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if (y <= -780000.0)
		tmp = Float64(Float64(y * Float64(Float64(9.0 * Float64(x / z)) - Float64(Float64(t * Float64(4.0 * a)) / y))) / c);
	elseif (y <= 3.7e+53)
		tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c);
	else
		tmp = Float64(y * Float64(Float64(Float64(9.0 / z) * Float64(x / c)) + Float64(Float64(Float64(a * t) * -4.0) / Float64(y * c))));
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if (y <= -780000.0)
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c;
	elseif (y <= 3.7e+53)
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	else
		tmp = y * (((9.0 / z) * (x / c)) + (((a * t) * -4.0) / (y * c)));
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -780000.0], N[(N[(y * N[(N[(9.0 * N[(x / z), $MachinePrecision]), $MachinePrecision] - N[(N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[y, 3.7e+53], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(y * N[(N[(N[(9.0 / z), $MachinePrecision] * N[(x / c), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(a * t), $MachinePrecision] * -4.0), $MachinePrecision] / N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -780000:\\
\;\;\;\;\frac{y \cdot \left(9 \cdot \frac{x}{z} - \frac{t \cdot \left(4 \cdot a\right)}{y}\right)}{c}\\

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

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


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

    1. Initial program 80.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. +-commutative80.2%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative80.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} \]
      8. associate-*l*80.2%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified74.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 y around inf 76.8%

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

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

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

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

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

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

    if -7.8e5 < y < 3.7e53

    1. Initial program 82.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. +-commutative82.6%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative81.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} \]
      8. associate-*l*81.1%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified84.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 y around inf 56.5%

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

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

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

    if 3.7e53 < y

    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. +-commutative77.3%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative73.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} \]
      8. associate-*l*72.0%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified75.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 y around inf 78.8%

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

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

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

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

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

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

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

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

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

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

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

Alternative 6: 75.4% accurate, 0.7× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;y \leq -12200000000 \lor \neg \left(y \leq 4.5 \cdot 10^{+48}\right):\\ \;\;\;\;\frac{y \cdot \left(9 \cdot \frac{x}{z} - \frac{t \cdot \left(4 \cdot a\right)}{y}\right)}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (or (<= y -12200000000.0) (not (<= y 4.5e+48)))
   (/ (* y (- (* 9.0 (/ x z)) (/ (* t (* 4.0 a)) y))) c)
   (/ (- (/ b z) (* 4.0 (* a t))) c)))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if ((y <= -12200000000.0) || !(y <= 4.5e+48)) {
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c;
	} else {
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if ((y <= (-12200000000.0d0)) .or. (.not. (y <= 4.5d+48))) then
        tmp = (y * ((9.0d0 * (x / z)) - ((t * (4.0d0 * a)) / y))) / c
    else
        tmp = ((b / z) - (4.0d0 * (a * t))) / c
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if ((y <= -12200000000.0) || !(y <= 4.5e+48)) {
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c;
	} else {
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	tmp = 0
	if (y <= -12200000000.0) or not (y <= 4.5e+48):
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c
	else:
		tmp = ((b / z) - (4.0 * (a * t))) / c
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if ((y <= -12200000000.0) || !(y <= 4.5e+48))
		tmp = Float64(Float64(y * Float64(Float64(9.0 * Float64(x / z)) - Float64(Float64(t * Float64(4.0 * a)) / y))) / c);
	else
		tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c);
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if ((y <= -12200000000.0) || ~((y <= 4.5e+48)))
		tmp = (y * ((9.0 * (x / z)) - ((t * (4.0 * a)) / y))) / c;
	else
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[y, -12200000000.0], N[Not[LessEqual[y, 4.5e+48]], $MachinePrecision]], N[(N[(y * N[(N[(9.0 * N[(x / z), $MachinePrecision]), $MachinePrecision] - N[(N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -12200000000 \lor \neg \left(y \leq 4.5 \cdot 10^{+48}\right):\\
\;\;\;\;\frac{y \cdot \left(9 \cdot \frac{x}{z} - \frac{t \cdot \left(4 \cdot a\right)}{y}\right)}{c}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.22e10 or 4.49999999999999995e48 < y

    1. Initial program 78.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. +-commutative78.5%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative76.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} \]
      8. associate-*l*76.2%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified74.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 y around inf 78.3%

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

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

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

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

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

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

    if -1.22e10 < y < 4.49999999999999995e48

    1. Initial program 83.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. +-commutative83.0%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative81.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} \]
      8. associate-*l*81.5%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified85.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 y around inf 55.6%

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

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

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

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

Alternative 7: 50.1% accurate, 0.8× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;y \leq -280000:\\ \;\;\;\;\left(9 \cdot x\right) \cdot \frac{\frac{y}{z}}{c}\\ \mathbf{elif}\;y \leq 3.2 \cdot 10^{-153}:\\ \;\;\;\;\frac{1}{z \cdot \frac{c}{b}}\\ \mathbf{elif}\;y \leq 1.75 \cdot 10^{+52}:\\ \;\;\;\;a \cdot \left(t \cdot \frac{-4}{c}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{9}{z} \cdot \left(x \cdot \frac{y}{c}\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (<= y -280000.0)
   (* (* 9.0 x) (/ (/ y z) c))
   (if (<= y 3.2e-153)
     (/ 1.0 (* z (/ c b)))
     (if (<= y 1.75e+52) (* a (* t (/ -4.0 c))) (* (/ 9.0 z) (* x (/ y c)))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (y <= -280000.0) {
		tmp = (9.0 * x) * ((y / z) / c);
	} else if (y <= 3.2e-153) {
		tmp = 1.0 / (z * (c / b));
	} else if (y <= 1.75e+52) {
		tmp = a * (t * (-4.0 / c));
	} else {
		tmp = (9.0 / z) * (x * (y / c));
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if (y <= (-280000.0d0)) then
        tmp = (9.0d0 * x) * ((y / z) / c)
    else if (y <= 3.2d-153) then
        tmp = 1.0d0 / (z * (c / b))
    else if (y <= 1.75d+52) then
        tmp = a * (t * ((-4.0d0) / c))
    else
        tmp = (9.0d0 / z) * (x * (y / c))
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (y <= -280000.0) {
		tmp = (9.0 * x) * ((y / z) / c);
	} else if (y <= 3.2e-153) {
		tmp = 1.0 / (z * (c / b));
	} else if (y <= 1.75e+52) {
		tmp = a * (t * (-4.0 / c));
	} else {
		tmp = (9.0 / z) * (x * (y / c));
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	tmp = 0
	if y <= -280000.0:
		tmp = (9.0 * x) * ((y / z) / c)
	elif y <= 3.2e-153:
		tmp = 1.0 / (z * (c / b))
	elif y <= 1.75e+52:
		tmp = a * (t * (-4.0 / c))
	else:
		tmp = (9.0 / z) * (x * (y / c))
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if (y <= -280000.0)
		tmp = Float64(Float64(9.0 * x) * Float64(Float64(y / z) / c));
	elseif (y <= 3.2e-153)
		tmp = Float64(1.0 / Float64(z * Float64(c / b)));
	elseif (y <= 1.75e+52)
		tmp = Float64(a * Float64(t * Float64(-4.0 / c)));
	else
		tmp = Float64(Float64(9.0 / z) * Float64(x * Float64(y / c)));
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if (y <= -280000.0)
		tmp = (9.0 * x) * ((y / z) / c);
	elseif (y <= 3.2e-153)
		tmp = 1.0 / (z * (c / b));
	elseif (y <= 1.75e+52)
		tmp = a * (t * (-4.0 / c));
	else
		tmp = (9.0 / z) * (x * (y / c));
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -280000.0], N[(N[(9.0 * x), $MachinePrecision] * N[(N[(y / z), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.2e-153], N[(1.0 / N[(z * N[(c / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.75e+52], N[(a * N[(t * N[(-4.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(9.0 / z), $MachinePrecision] * N[(x * N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -280000:\\
\;\;\;\;\left(9 \cdot x\right) \cdot \frac{\frac{y}{z}}{c}\\

\mathbf{elif}\;y \leq 3.2 \cdot 10^{-153}:\\
\;\;\;\;\frac{1}{z \cdot \frac{c}{b}}\\

\mathbf{elif}\;y \leq 1.75 \cdot 10^{+52}:\\
\;\;\;\;a \cdot \left(t \cdot \frac{-4}{c}\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -2.8e5

    1. Initial program 80.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. +-commutative80.2%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative80.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} \]
      8. associate-*l*80.2%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified74.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 y around inf 76.8%

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

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

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

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

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

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

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

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

    if -2.8e5 < y < 3.1999999999999999e-153

    1. Initial program 89.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. +-commutative89.8%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative88.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} \]
      8. associate-*l*88.3%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified93.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 b around inf 53.2%

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

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

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

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

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

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

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

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

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

    if 3.1999999999999999e-153 < y < 1.75e52

    1. Initial program 68.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. +-commutative68.0%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative66.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} \]
      8. associate-*l*66.3%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified68.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 y around inf 61.5%

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

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

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

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

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

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

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

        \[\leadsto a \cdot \color{blue}{\frac{-4 \cdot t}{c}} \]
      6. *-commutative44.5%

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

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

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

    if 1.75e52 < y

    1. Initial program 77.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. +-commutative77.6%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative74.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} \]
      8. associate-*l*72.5%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified76.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 0 71.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{x \cdot y}{c} \cdot \frac{9}{z}} \]
      4. associate-/l*62.4%

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

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

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

Alternative 8: 50.3% accurate, 0.8× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;y \leq -1900000:\\ \;\;\;\;\left(9 \cdot x\right) \cdot \frac{\frac{y}{z}}{c}\\ \mathbf{elif}\;y \leq 1.22 \cdot 10^{-154}:\\ \;\;\;\;\frac{1}{z \cdot \frac{c}{b}}\\ \mathbf{elif}\;y \leq 2.1 \cdot 10^{+56}:\\ \;\;\;\;a \cdot \left(t \cdot \frac{-4}{c}\right)\\ \mathbf{else}:\\ \;\;\;\;9 \cdot \frac{x \cdot \frac{y}{c}}{z}\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (<= y -1900000.0)
   (* (* 9.0 x) (/ (/ y z) c))
   (if (<= y 1.22e-154)
     (/ 1.0 (* z (/ c b)))
     (if (<= y 2.1e+56) (* a (* t (/ -4.0 c))) (* 9.0 (/ (* x (/ y c)) z))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (y <= -1900000.0) {
		tmp = (9.0 * x) * ((y / z) / c);
	} else if (y <= 1.22e-154) {
		tmp = 1.0 / (z * (c / b));
	} else if (y <= 2.1e+56) {
		tmp = a * (t * (-4.0 / c));
	} else {
		tmp = 9.0 * ((x * (y / c)) / z);
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if (y <= (-1900000.0d0)) then
        tmp = (9.0d0 * x) * ((y / z) / c)
    else if (y <= 1.22d-154) then
        tmp = 1.0d0 / (z * (c / b))
    else if (y <= 2.1d+56) then
        tmp = a * (t * ((-4.0d0) / c))
    else
        tmp = 9.0d0 * ((x * (y / c)) / z)
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (y <= -1900000.0) {
		tmp = (9.0 * x) * ((y / z) / c);
	} else if (y <= 1.22e-154) {
		tmp = 1.0 / (z * (c / b));
	} else if (y <= 2.1e+56) {
		tmp = a * (t * (-4.0 / c));
	} else {
		tmp = 9.0 * ((x * (y / c)) / z);
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	tmp = 0
	if y <= -1900000.0:
		tmp = (9.0 * x) * ((y / z) / c)
	elif y <= 1.22e-154:
		tmp = 1.0 / (z * (c / b))
	elif y <= 2.1e+56:
		tmp = a * (t * (-4.0 / c))
	else:
		tmp = 9.0 * ((x * (y / c)) / z)
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if (y <= -1900000.0)
		tmp = Float64(Float64(9.0 * x) * Float64(Float64(y / z) / c));
	elseif (y <= 1.22e-154)
		tmp = Float64(1.0 / Float64(z * Float64(c / b)));
	elseif (y <= 2.1e+56)
		tmp = Float64(a * Float64(t * Float64(-4.0 / c)));
	else
		tmp = Float64(9.0 * Float64(Float64(x * Float64(y / c)) / z));
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if (y <= -1900000.0)
		tmp = (9.0 * x) * ((y / z) / c);
	elseif (y <= 1.22e-154)
		tmp = 1.0 / (z * (c / b));
	elseif (y <= 2.1e+56)
		tmp = a * (t * (-4.0 / c));
	else
		tmp = 9.0 * ((x * (y / c)) / z);
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -1900000.0], N[(N[(9.0 * x), $MachinePrecision] * N[(N[(y / z), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.22e-154], N[(1.0 / N[(z * N[(c / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.1e+56], N[(a * N[(t * N[(-4.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(9.0 * N[(N[(x * N[(y / c), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1900000:\\
\;\;\;\;\left(9 \cdot x\right) \cdot \frac{\frac{y}{z}}{c}\\

\mathbf{elif}\;y \leq 1.22 \cdot 10^{-154}:\\
\;\;\;\;\frac{1}{z \cdot \frac{c}{b}}\\

\mathbf{elif}\;y \leq 2.1 \cdot 10^{+56}:\\
\;\;\;\;a \cdot \left(t \cdot \frac{-4}{c}\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -1.9e6

    1. Initial program 80.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. +-commutative80.2%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative80.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} \]
      8. associate-*l*80.2%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified74.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 y around inf 76.8%

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

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

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

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

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

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

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

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

    if -1.9e6 < y < 1.22000000000000005e-154

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative89.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} \]
      8. associate-*l*89.3%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified93.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 b around inf 53.8%

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

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

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

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

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

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

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

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

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

    if 1.22000000000000005e-154 < y < 2.10000000000000017e56

    1. Initial program 69.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. +-commutative69.3%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative65.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} \]
      8. associate-*l*65.7%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified69.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 y around inf 61.1%

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

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

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

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

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

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

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

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

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

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

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

    if 2.10000000000000017e56 < y

    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. +-commutative77.3%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative73.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} \]
      8. associate-*l*72.0%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified75.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 z around 0 70.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto 9 \cdot \frac{\color{blue}{x \cdot \frac{y}{c}}}{z} \]
    10. Applied egg-rr61.6%

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

Alternative 9: 50.2% accurate, 0.8× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;y \leq -1100000:\\ \;\;\;\;\left(9 \cdot x\right) \cdot \frac{\frac{y}{c}}{z}\\ \mathbf{elif}\;y \leq 6.2 \cdot 10^{-154}:\\ \;\;\;\;\frac{1}{z \cdot \frac{c}{b}}\\ \mathbf{elif}\;y \leq 2.4 \cdot 10^{+54}:\\ \;\;\;\;a \cdot \left(t \cdot \frac{-4}{c}\right)\\ \mathbf{else}:\\ \;\;\;\;9 \cdot \frac{x \cdot \frac{y}{c}}{z}\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (<= y -1100000.0)
   (* (* 9.0 x) (/ (/ y c) z))
   (if (<= y 6.2e-154)
     (/ 1.0 (* z (/ c b)))
     (if (<= y 2.4e+54) (* a (* t (/ -4.0 c))) (* 9.0 (/ (* x (/ y c)) z))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (y <= -1100000.0) {
		tmp = (9.0 * x) * ((y / c) / z);
	} else if (y <= 6.2e-154) {
		tmp = 1.0 / (z * (c / b));
	} else if (y <= 2.4e+54) {
		tmp = a * (t * (-4.0 / c));
	} else {
		tmp = 9.0 * ((x * (y / c)) / z);
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if (y <= (-1100000.0d0)) then
        tmp = (9.0d0 * x) * ((y / c) / z)
    else if (y <= 6.2d-154) then
        tmp = 1.0d0 / (z * (c / b))
    else if (y <= 2.4d+54) then
        tmp = a * (t * ((-4.0d0) / c))
    else
        tmp = 9.0d0 * ((x * (y / c)) / z)
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (y <= -1100000.0) {
		tmp = (9.0 * x) * ((y / c) / z);
	} else if (y <= 6.2e-154) {
		tmp = 1.0 / (z * (c / b));
	} else if (y <= 2.4e+54) {
		tmp = a * (t * (-4.0 / c));
	} else {
		tmp = 9.0 * ((x * (y / c)) / z);
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	tmp = 0
	if y <= -1100000.0:
		tmp = (9.0 * x) * ((y / c) / z)
	elif y <= 6.2e-154:
		tmp = 1.0 / (z * (c / b))
	elif y <= 2.4e+54:
		tmp = a * (t * (-4.0 / c))
	else:
		tmp = 9.0 * ((x * (y / c)) / z)
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if (y <= -1100000.0)
		tmp = Float64(Float64(9.0 * x) * Float64(Float64(y / c) / z));
	elseif (y <= 6.2e-154)
		tmp = Float64(1.0 / Float64(z * Float64(c / b)));
	elseif (y <= 2.4e+54)
		tmp = Float64(a * Float64(t * Float64(-4.0 / c)));
	else
		tmp = Float64(9.0 * Float64(Float64(x * Float64(y / c)) / z));
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if (y <= -1100000.0)
		tmp = (9.0 * x) * ((y / c) / z);
	elseif (y <= 6.2e-154)
		tmp = 1.0 / (z * (c / b));
	elseif (y <= 2.4e+54)
		tmp = a * (t * (-4.0 / c));
	else
		tmp = 9.0 * ((x * (y / c)) / z);
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -1100000.0], N[(N[(9.0 * x), $MachinePrecision] * N[(N[(y / c), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e-154], N[(1.0 / N[(z * N[(c / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e+54], N[(a * N[(t * N[(-4.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(9.0 * N[(N[(x * N[(y / c), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1100000:\\
\;\;\;\;\left(9 \cdot x\right) \cdot \frac{\frac{y}{c}}{z}\\

\mathbf{elif}\;y \leq 6.2 \cdot 10^{-154}:\\
\;\;\;\;\frac{1}{z \cdot \frac{c}{b}}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -1.1e6

    1. Initial program 80.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. +-commutative80.2%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative80.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} \]
      8. associate-*l*80.2%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified74.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 inf 45.4%

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

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

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

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

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

    if -1.1e6 < y < 6.19999999999999963e-154

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative89.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} \]
      8. associate-*l*89.3%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified93.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 b around inf 53.8%

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

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

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

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

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

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

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

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

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

    if 6.19999999999999963e-154 < y < 2.39999999999999998e54

    1. Initial program 69.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. +-commutative69.3%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative65.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} \]
      8. associate-*l*65.7%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified69.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 y around inf 61.1%

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

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

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

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

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

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

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

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

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

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

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

    if 2.39999999999999998e54 < y

    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. +-commutative77.3%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative73.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} \]
      8. associate-*l*72.0%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified75.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 z around 0 70.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto 9 \cdot \frac{\color{blue}{x \cdot \frac{y}{c}}}{z} \]
    10. Applied egg-rr61.6%

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

Alternative 10: 49.9% accurate, 0.8× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;y \leq -9200000:\\ \;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\ \mathbf{elif}\;y \leq 1.3 \cdot 10^{-154}:\\ \;\;\;\;\frac{1}{z \cdot \frac{c}{b}}\\ \mathbf{elif}\;y \leq 1.65 \cdot 10^{+54}:\\ \;\;\;\;a \cdot \left(t \cdot \frac{-4}{c}\right)\\ \mathbf{else}:\\ \;\;\;\;9 \cdot \frac{x \cdot \frac{y}{c}}{z}\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (<= y -9200000.0)
   (* 9.0 (* x (/ y (* z c))))
   (if (<= y 1.3e-154)
     (/ 1.0 (* z (/ c b)))
     (if (<= y 1.65e+54) (* a (* t (/ -4.0 c))) (* 9.0 (/ (* x (/ y c)) z))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (y <= -9200000.0) {
		tmp = 9.0 * (x * (y / (z * c)));
	} else if (y <= 1.3e-154) {
		tmp = 1.0 / (z * (c / b));
	} else if (y <= 1.65e+54) {
		tmp = a * (t * (-4.0 / c));
	} else {
		tmp = 9.0 * ((x * (y / c)) / z);
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if (y <= (-9200000.0d0)) then
        tmp = 9.0d0 * (x * (y / (z * c)))
    else if (y <= 1.3d-154) then
        tmp = 1.0d0 / (z * (c / b))
    else if (y <= 1.65d+54) then
        tmp = a * (t * ((-4.0d0) / c))
    else
        tmp = 9.0d0 * ((x * (y / c)) / z)
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (y <= -9200000.0) {
		tmp = 9.0 * (x * (y / (z * c)));
	} else if (y <= 1.3e-154) {
		tmp = 1.0 / (z * (c / b));
	} else if (y <= 1.65e+54) {
		tmp = a * (t * (-4.0 / c));
	} else {
		tmp = 9.0 * ((x * (y / c)) / z);
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	tmp = 0
	if y <= -9200000.0:
		tmp = 9.0 * (x * (y / (z * c)))
	elif y <= 1.3e-154:
		tmp = 1.0 / (z * (c / b))
	elif y <= 1.65e+54:
		tmp = a * (t * (-4.0 / c))
	else:
		tmp = 9.0 * ((x * (y / c)) / z)
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if (y <= -9200000.0)
		tmp = Float64(9.0 * Float64(x * Float64(y / Float64(z * c))));
	elseif (y <= 1.3e-154)
		tmp = Float64(1.0 / Float64(z * Float64(c / b)));
	elseif (y <= 1.65e+54)
		tmp = Float64(a * Float64(t * Float64(-4.0 / c)));
	else
		tmp = Float64(9.0 * Float64(Float64(x * Float64(y / c)) / z));
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if (y <= -9200000.0)
		tmp = 9.0 * (x * (y / (z * c)));
	elseif (y <= 1.3e-154)
		tmp = 1.0 / (z * (c / b));
	elseif (y <= 1.65e+54)
		tmp = a * (t * (-4.0 / c));
	else
		tmp = 9.0 * ((x * (y / c)) / z);
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -9200000.0], N[(9.0 * N[(x * N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e-154], N[(1.0 / N[(z * N[(c / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+54], N[(a * N[(t * N[(-4.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(9.0 * N[(N[(x * N[(y / c), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9200000:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\

\mathbf{elif}\;y \leq 1.3 \cdot 10^{-154}:\\
\;\;\;\;\frac{1}{z \cdot \frac{c}{b}}\\

\mathbf{elif}\;y \leq 1.65 \cdot 10^{+54}:\\
\;\;\;\;a \cdot \left(t \cdot \frac{-4}{c}\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -9.2e6

    1. Initial program 80.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. +-commutative80.2%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative80.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} \]
      8. associate-*l*80.2%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified74.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 inf 45.4%

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

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

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

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

    if -9.2e6 < y < 1.3e-154

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative89.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} \]
      8. associate-*l*89.3%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified93.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 b around inf 53.8%

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

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

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

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

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

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

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

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

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

    if 1.3e-154 < y < 1.65e54

    1. Initial program 69.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. +-commutative69.3%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative65.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} \]
      8. associate-*l*65.7%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified69.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 y around inf 61.1%

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

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

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

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

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

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

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

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

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

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

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

    if 1.65e54 < y

    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. +-commutative77.3%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative73.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} \]
      8. associate-*l*72.0%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified75.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 z around 0 70.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto 9 \cdot \frac{\color{blue}{x \cdot \frac{y}{c}}}{z} \]
    10. Applied egg-rr61.6%

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

Alternative 11: 49.5% accurate, 0.8× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} t_1 := 9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\ \mathbf{if}\;y \leq -2550000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.9 \cdot 10^{-154}:\\ \;\;\;\;\frac{1}{z \cdot \frac{c}{b}}\\ \mathbf{elif}\;y \leq 3.6 \cdot 10^{+51}:\\ \;\;\;\;a \cdot \left(t \cdot \frac{-4}{c}\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (let* ((t_1 (* 9.0 (* x (/ y (* z c))))))
   (if (<= y -2550000000.0)
     t_1
     (if (<= y 2.9e-154)
       (/ 1.0 (* z (/ c b)))
       (if (<= y 3.6e+51) (* a (* t (/ -4.0 c))) t_1)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = 9.0 * (x * (y / (z * c)));
	double tmp;
	if (y <= -2550000000.0) {
		tmp = t_1;
	} else if (y <= 2.9e-154) {
		tmp = 1.0 / (z * (c / b));
	} else if (y <= 3.6e+51) {
		tmp = a * (t * (-4.0 / c));
	} else {
		tmp = t_1;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: t_1
    real(8) :: tmp
    t_1 = 9.0d0 * (x * (y / (z * c)))
    if (y <= (-2550000000.0d0)) then
        tmp = t_1
    else if (y <= 2.9d-154) then
        tmp = 1.0d0 / (z * (c / b))
    else if (y <= 3.6d+51) then
        tmp = a * (t * ((-4.0d0) / c))
    else
        tmp = t_1
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double t_1 = 9.0 * (x * (y / (z * c)));
	double tmp;
	if (y <= -2550000000.0) {
		tmp = t_1;
	} else if (y <= 2.9e-154) {
		tmp = 1.0 / (z * (c / b));
	} else if (y <= 3.6e+51) {
		tmp = a * (t * (-4.0 / c));
	} else {
		tmp = t_1;
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	t_1 = 9.0 * (x * (y / (z * c)))
	tmp = 0
	if y <= -2550000000.0:
		tmp = t_1
	elif y <= 2.9e-154:
		tmp = 1.0 / (z * (c / b))
	elif y <= 3.6e+51:
		tmp = a * (t * (-4.0 / c))
	else:
		tmp = t_1
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	t_1 = Float64(9.0 * Float64(x * Float64(y / Float64(z * c))))
	tmp = 0.0
	if (y <= -2550000000.0)
		tmp = t_1;
	elseif (y <= 2.9e-154)
		tmp = Float64(1.0 / Float64(z * Float64(c / b)));
	elseif (y <= 3.6e+51)
		tmp = Float64(a * Float64(t * Float64(-4.0 / c)));
	else
		tmp = t_1;
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	t_1 = 9.0 * (x * (y / (z * c)));
	tmp = 0.0;
	if (y <= -2550000000.0)
		tmp = t_1;
	elseif (y <= 2.9e-154)
		tmp = 1.0 / (z * (c / b));
	elseif (y <= 3.6e+51)
		tmp = a * (t * (-4.0 / c));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(9.0 * N[(x * N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2550000000.0], t$95$1, If[LessEqual[y, 2.9e-154], N[(1.0 / N[(z * N[(c / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.6e+51], N[(a * N[(t * N[(-4.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := 9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\
\mathbf{if}\;y \leq -2550000000:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 2.9 \cdot 10^{-154}:\\
\;\;\;\;\frac{1}{z \cdot \frac{c}{b}}\\

\mathbf{elif}\;y \leq 3.6 \cdot 10^{+51}:\\
\;\;\;\;a \cdot \left(t \cdot \frac{-4}{c}\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -2.55e9 or 3.60000000000000011e51 < y

    1. Initial program 79.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. +-commutative79.0%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative77.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} \]
      8. associate-*l*76.6%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified75.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 51.1%

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

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

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

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

    if -2.55e9 < y < 2.9e-154

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative89.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} \]
      8. associate-*l*89.3%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified93.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 b around inf 53.8%

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

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

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

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

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

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

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

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

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

    if 2.9e-154 < y < 3.60000000000000011e51

    1. Initial program 68.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. +-commutative68.6%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative65.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} \]
      8. associate-*l*65.0%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified69.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 y around inf 60.3%

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{a \cdot \left(t \cdot \frac{-4}{c}\right)} \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 12: 75.9% accurate, 0.9× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;z \leq -1.5 \cdot 10^{+41} \lor \neg \left(z \leq 0.0011\right):\\ \;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{b + 9 \cdot \left(y \cdot x\right)}{z \cdot c}\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (or (<= z -1.5e+41) (not (<= z 0.0011)))
   (/ (- (/ b z) (* 4.0 (* a t))) c)
   (/ (+ b (* 9.0 (* y x))) (* z c))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if ((z <= -1.5e+41) || !(z <= 0.0011)) {
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	} else {
		tmp = (b + (9.0 * (y * x))) / (z * c);
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if ((z <= (-1.5d+41)) .or. (.not. (z <= 0.0011d0))) then
        tmp = ((b / z) - (4.0d0 * (a * t))) / c
    else
        tmp = (b + (9.0d0 * (y * x))) / (z * c)
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if ((z <= -1.5e+41) || !(z <= 0.0011)) {
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	} else {
		tmp = (b + (9.0 * (y * x))) / (z * c);
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	tmp = 0
	if (z <= -1.5e+41) or not (z <= 0.0011):
		tmp = ((b / z) - (4.0 * (a * t))) / c
	else:
		tmp = (b + (9.0 * (y * x))) / (z * c)
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if ((z <= -1.5e+41) || !(z <= 0.0011))
		tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c);
	else
		tmp = Float64(Float64(b + Float64(9.0 * Float64(y * x))) / Float64(z * c));
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if ((z <= -1.5e+41) || ~((z <= 0.0011)))
		tmp = ((b / z) - (4.0 * (a * t))) / c;
	else
		tmp = (b + (9.0 * (y * x))) / (z * c);
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -1.5e+41], N[Not[LessEqual[z, 0.0011]], $MachinePrecision]], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(9.0 * N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+41} \lor \neg \left(z \leq 0.0011\right):\\
\;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.4999999999999999e41 or 0.00110000000000000007 < z

    1. Initial program 64.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. +-commutative64.3%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative61.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} \]
      8. associate-*l*60.4%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified68.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 y around inf 72.4%

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

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

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

    if -1.4999999999999999e41 < z < 0.00110000000000000007

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

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

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

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

Alternative 13: 69.2% accurate, 0.9× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;z \leq -6.2 \cdot 10^{+73}:\\ \;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\ \mathbf{elif}\;z \leq 3.2 \cdot 10^{+117}:\\ \;\;\;\;\frac{b + 9 \cdot \left(y \cdot x\right)}{z \cdot c}\\ \mathbf{else}:\\ \;\;\;\;a \cdot \frac{t \cdot -4}{c}\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (<= z -6.2e+73)
   (* -4.0 (/ (* a t) c))
   (if (<= z 3.2e+117)
     (/ (+ b (* 9.0 (* y x))) (* z c))
     (* a (/ (* t -4.0) c)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (z <= -6.2e+73) {
		tmp = -4.0 * ((a * t) / c);
	} else if (z <= 3.2e+117) {
		tmp = (b + (9.0 * (y * x))) / (z * c);
	} else {
		tmp = a * ((t * -4.0) / c);
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if (z <= (-6.2d+73)) then
        tmp = (-4.0d0) * ((a * t) / c)
    else if (z <= 3.2d+117) then
        tmp = (b + (9.0d0 * (y * x))) / (z * c)
    else
        tmp = a * ((t * (-4.0d0)) / c)
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (z <= -6.2e+73) {
		tmp = -4.0 * ((a * t) / c);
	} else if (z <= 3.2e+117) {
		tmp = (b + (9.0 * (y * x))) / (z * c);
	} else {
		tmp = a * ((t * -4.0) / c);
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	tmp = 0
	if z <= -6.2e+73:
		tmp = -4.0 * ((a * t) / c)
	elif z <= 3.2e+117:
		tmp = (b + (9.0 * (y * x))) / (z * c)
	else:
		tmp = a * ((t * -4.0) / c)
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if (z <= -6.2e+73)
		tmp = Float64(-4.0 * Float64(Float64(a * t) / c));
	elseif (z <= 3.2e+117)
		tmp = Float64(Float64(b + Float64(9.0 * Float64(y * x))) / Float64(z * c));
	else
		tmp = Float64(a * Float64(Float64(t * -4.0) / c));
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if (z <= -6.2e+73)
		tmp = -4.0 * ((a * t) / c);
	elseif (z <= 3.2e+117)
		tmp = (b + (9.0 * (y * x))) / (z * c);
	else
		tmp = a * ((t * -4.0) / c);
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -6.2e+73], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e+117], N[(N[(b + N[(9.0 * N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+73}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\

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

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


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

    1. Initial program 70.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. +-commutative70.8%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative60.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} \]
      8. associate-*l*58.4%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified73.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 z around inf 64.9%

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

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

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

    if -6.1999999999999999e73 < z < 3.20000000000000005e117

    1. Initial program 91.9%

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

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

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

    if 3.20000000000000005e117 < z

    1. Initial program 45.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. +-commutative45.4%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative45.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} \]
      8. associate-*l*45.2%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified50.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 z around inf 56.4%

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

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

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

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

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

        \[\leadsto a \cdot \color{blue}{\left(\frac{t}{c} \cdot -4\right)} \]
      6. associate-*l/61.1%

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

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

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

Alternative 14: 50.4% accurate, 1.1× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;b \leq -7.5 \cdot 10^{-8} \lor \neg \left(b \leq 2.2 \cdot 10^{+72}\right):\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \frac{-4}{c}\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (or (<= b -7.5e-8) (not (<= b 2.2e+72)))
   (/ (/ b c) z)
   (* a (* t (/ -4.0 c)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if ((b <= -7.5e-8) || !(b <= 2.2e+72)) {
		tmp = (b / c) / z;
	} else {
		tmp = a * (t * (-4.0 / c));
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if ((b <= (-7.5d-8)) .or. (.not. (b <= 2.2d+72))) then
        tmp = (b / c) / z
    else
        tmp = a * (t * ((-4.0d0) / c))
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if ((b <= -7.5e-8) || !(b <= 2.2e+72)) {
		tmp = (b / c) / z;
	} else {
		tmp = a * (t * (-4.0 / c));
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	tmp = 0
	if (b <= -7.5e-8) or not (b <= 2.2e+72):
		tmp = (b / c) / z
	else:
		tmp = a * (t * (-4.0 / c))
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if ((b <= -7.5e-8) || !(b <= 2.2e+72))
		tmp = Float64(Float64(b / c) / z);
	else
		tmp = Float64(a * Float64(t * Float64(-4.0 / c)));
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if ((b <= -7.5e-8) || ~((b <= 2.2e+72)))
		tmp = (b / c) / z;
	else
		tmp = a * (t * (-4.0 / c));
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -7.5e-8], N[Not[LessEqual[b, 2.2e+72]], $MachinePrecision]], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], N[(a * N[(t * N[(-4.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{-8} \lor \neg \left(b \leq 2.2 \cdot 10^{+72}\right):\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -7.4999999999999997e-8 or 2.2e72 < b

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative80.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} \]
      8. associate-*l*81.0%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\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 z around 0 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
    10. Simplified61.5%

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

    if -7.4999999999999997e-8 < b < 2.2e72

    1. Initial program 82.3%

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative77.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} \]
      8. associate-*l*77.2%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified81.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 y around inf 71.0%

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 15: 50.4% accurate, 1.1× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;b \leq -8.5 \cdot 10^{-8}:\\ \;\;\;\;\frac{1}{z \cdot \frac{c}{b}}\\ \mathbf{elif}\;b \leq 1.35 \cdot 10^{+72}:\\ \;\;\;\;a \cdot \left(t \cdot \frac{-4}{c}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (<= b -8.5e-8)
   (/ 1.0 (* z (/ c b)))
   (if (<= b 1.35e+72) (* a (* t (/ -4.0 c))) (/ (/ b c) z))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (b <= -8.5e-8) {
		tmp = 1.0 / (z * (c / b));
	} else if (b <= 1.35e+72) {
		tmp = a * (t * (-4.0 / c));
	} else {
		tmp = (b / c) / z;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8) :: tmp
    if (b <= (-8.5d-8)) then
        tmp = 1.0d0 / (z * (c / b))
    else if (b <= 1.35d+72) then
        tmp = a * (t * ((-4.0d0) / c))
    else
        tmp = (b / c) / z
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (b <= -8.5e-8) {
		tmp = 1.0 / (z * (c / b));
	} else if (b <= 1.35e+72) {
		tmp = a * (t * (-4.0 / c));
	} else {
		tmp = (b / c) / z;
	}
	return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	tmp = 0
	if b <= -8.5e-8:
		tmp = 1.0 / (z * (c / b))
	elif b <= 1.35e+72:
		tmp = a * (t * (-4.0 / c))
	else:
		tmp = (b / c) / z
	return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if (b <= -8.5e-8)
		tmp = Float64(1.0 / Float64(z * Float64(c / b)));
	elseif (b <= 1.35e+72)
		tmp = Float64(a * Float64(t * Float64(-4.0 / c)));
	else
		tmp = Float64(Float64(b / c) / z);
	end
	return tmp
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
	tmp = 0.0;
	if (b <= -8.5e-8)
		tmp = 1.0 / (z * (c / b));
	elseif (b <= 1.35e+72)
		tmp = a * (t * (-4.0 / c));
	else
		tmp = (b / c) / z;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -8.5e-8], N[(1.0 / N[(z * N[(c / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.35e+72], N[(a * N[(t * N[(-4.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.5 \cdot 10^{-8}:\\
\;\;\;\;\frac{1}{z \cdot \frac{c}{b}}\\

\mathbf{elif}\;b \leq 1.35 \cdot 10^{+72}:\\
\;\;\;\;a \cdot \left(t \cdot \frac{-4}{c}\right)\\

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


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

    1. Initial program 81.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. +-commutative81.5%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative82.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} \]
      8. associate-*l*82.8%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified80.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 57.7%

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

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

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

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

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

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

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

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

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

    if -8.49999999999999935e-8 < b < 1.35e72

    1. Initial program 82.3%

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative77.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} \]
      8. associate-*l*77.2%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified81.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 y around inf 71.0%

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

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

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

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

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

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

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

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

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

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

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

    if 1.35e72 < b

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
      7. +-commutative78.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} \]
      8. associate-*l*78.3%

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

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

        \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
    3. Simplified78.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 0 69.9%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
    10. Simplified64.7%

      \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 16: 34.3% accurate, 3.8× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \frac{\frac{b}{c}}{z} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c) :precision binary64 (/ (/ b c) z))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	return (b / c) / z;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    code = (b / c) / z
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	return (b / c) / z;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	return (b / c) / z
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	return Float64(Float64(b / c) / z)
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp = code(x, y, z, t, a, b, c)
	tmp = (b / c) / z;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\frac{\frac{b}{c}}{z}
\end{array}
Derivation
  1. Initial program 80.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. +-commutative80.9%

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

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

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

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

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

      \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
    7. +-commutative79.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} \]
    8. associate-*l*78.9%

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

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

      \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
  3. Simplified80.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 z around 0 78.0%

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
  10. Simplified35.9%

    \[\leadsto \color{blue}{\frac{\frac{b}{c}}{z}} \]
  11. Add Preprocessing

Alternative 17: 35.2% accurate, 3.8× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \frac{b}{z \cdot c} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c) :precision binary64 (/ b (* z c)))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	return b / (z * c);
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    code = b / (z * c)
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	return b / (z * c);
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
def code(x, y, z, t, a, b, c):
	return b / (z * c)
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	return Float64(b / Float64(z * c))
end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp = code(x, y, z, t, a, b, c)
	tmp = b / (z * c);
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\frac{b}{z \cdot c}
\end{array}
Derivation
  1. Initial program 80.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. +-commutative80.9%

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

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

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

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

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

      \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot a\right) \cdot t\right)}}{z \cdot c} \]
    7. +-commutative79.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} \]
    8. associate-*l*78.9%

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

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

      \[\leadsto \frac{\left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \color{blue}{\left(t \cdot a\right)}\right) + b}{z \cdot c} \]
  3. Simplified80.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 b around inf 34.7%

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

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

    \[\leadsto \color{blue}{\frac{b}{z \cdot c}} \]
  8. Add Preprocessing

Developer Target 1: 81.0% 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 2024118 
(FPCore (x y z t a b c)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, J"
  :precision binary64

  :alt
  (! :herbie-platform default (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) -220031348160821/200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ (+ (- (* (* x 9) y) (* (* z 4) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 0) (/ (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) z) c) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 365902434742109/31250000000000000000000000000000000000000000000000000000000000000000) (/ (+ (- (* (* x 9) y) (* (* z 4) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 28768236795461370000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (+ (* (* 9 (/ y c)) (/ x z)) (/ b (* c z))) (* 4 (/ (* a t) c))) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 138385150424563190000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ (+ (- (* (* x 9) y) (* (* z 4) (* t a))) b) (* z c)) (- (+ (* 9 (* (/ y (* c z)) x)) (/ b (* c z))) (* 4 (/ (* a t) c)))))))))

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