
(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:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(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}
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 (* a (* c z))) (t_2 (* c (* z t))))
(if (<= z -4.4e+104)
(- (+ (* 9.0 (/ (* x y) (* c z))) (/ b (* c z))) (* 4.0 (/ (* a t) c)))
(if (<= z 4.2e+32)
(/ (+ b (- (* y (* 9.0 x)) (* a (* t (* z 4.0))))) (* c z))
(if (<= z 2.4e+160)
(* a (+ (* (/ t c) -4.0) (+ (* 9.0 (/ (* x y) t_1)) (/ b t_1))))
(* t (+ (* -4.0 (/ a c)) (+ (* 9.0 (/ (* x y) t_2)) (/ b t_2)))))))))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 = a * (c * z);
double t_2 = c * (z * t);
double tmp;
if (z <= -4.4e+104) {
tmp = ((9.0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0 * ((a * t) / c));
} else if (z <= 4.2e+32) {
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
} else if (z <= 2.4e+160) {
tmp = a * (((t / c) * -4.0) + ((9.0 * ((x * y) / t_1)) + (b / t_1)));
} else {
tmp = t * ((-4.0 * (a / c)) + ((9.0 * ((x * y) / t_2)) + (b / t_2)));
}
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) :: t_2
real(8) :: tmp
t_1 = a * (c * z)
t_2 = c * (z * t)
if (z <= (-4.4d+104)) then
tmp = ((9.0d0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0d0 * ((a * t) / c))
else if (z <= 4.2d+32) then
tmp = (b + ((y * (9.0d0 * x)) - (a * (t * (z * 4.0d0))))) / (c * z)
else if (z <= 2.4d+160) then
tmp = a * (((t / c) * (-4.0d0)) + ((9.0d0 * ((x * y) / t_1)) + (b / t_1)))
else
tmp = t * (((-4.0d0) * (a / c)) + ((9.0d0 * ((x * y) / t_2)) + (b / t_2)))
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 = a * (c * z);
double t_2 = c * (z * t);
double tmp;
if (z <= -4.4e+104) {
tmp = ((9.0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0 * ((a * t) / c));
} else if (z <= 4.2e+32) {
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
} else if (z <= 2.4e+160) {
tmp = a * (((t / c) * -4.0) + ((9.0 * ((x * y) / t_1)) + (b / t_1)));
} else {
tmp = t * ((-4.0 * (a / c)) + ((9.0 * ((x * y) / t_2)) + (b / t_2)));
}
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 = a * (c * z) t_2 = c * (z * t) tmp = 0 if z <= -4.4e+104: tmp = ((9.0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0 * ((a * t) / c)) elif z <= 4.2e+32: tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z) elif z <= 2.4e+160: tmp = a * (((t / c) * -4.0) + ((9.0 * ((x * y) / t_1)) + (b / t_1))) else: tmp = t * ((-4.0 * (a / c)) + ((9.0 * ((x * y) / t_2)) + (b / t_2))) 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(a * Float64(c * z)) t_2 = Float64(c * Float64(z * t)) tmp = 0.0 if (z <= -4.4e+104) tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / Float64(c * z))) + Float64(b / Float64(c * z))) - Float64(4.0 * Float64(Float64(a * t) / c))); elseif (z <= 4.2e+32) tmp = Float64(Float64(b + Float64(Float64(y * Float64(9.0 * x)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(c * z)); elseif (z <= 2.4e+160) tmp = Float64(a * Float64(Float64(Float64(t / c) * -4.0) + Float64(Float64(9.0 * Float64(Float64(x * y) / t_1)) + Float64(b / t_1)))); else tmp = Float64(t * Float64(Float64(-4.0 * Float64(a / c)) + Float64(Float64(9.0 * Float64(Float64(x * y) / t_2)) + Float64(b / t_2)))); 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 = a * (c * z);
t_2 = c * (z * t);
tmp = 0.0;
if (z <= -4.4e+104)
tmp = ((9.0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0 * ((a * t) / c));
elseif (z <= 4.2e+32)
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
elseif (z <= 2.4e+160)
tmp = a * (((t / c) * -4.0) + ((9.0 * ((x * y) / t_1)) + (b / t_1)));
else
tmp = t * ((-4.0 * (a / c)) + ((9.0 * ((x * y) / t_2)) + (b / t_2)));
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[(a * N[(c * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.4e+104], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e+32], 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[(c * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e+160], N[(a * N[(N[(N[(t / c), $MachinePrecision] * -4.0), $MachinePrecision] + N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(b / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(-4.0 * N[(a / c), $MachinePrecision]), $MachinePrecision] + N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision] + N[(b / t$95$2), $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}
t_1 := a \cdot \left(c \cdot z\right)\\
t_2 := c \cdot \left(z \cdot t\right)\\
\mathbf{if}\;z \leq -4.4 \cdot 10^{+104}:\\
\;\;\;\;\left(9 \cdot \frac{x \cdot y}{c \cdot z} + \frac{b}{c \cdot z}\right) - 4 \cdot \frac{a \cdot t}{c}\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{+32}:\\
\;\;\;\;\frac{b + \left(y \cdot \left(9 \cdot x\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{c \cdot z}\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+160}:\\
\;\;\;\;a \cdot \left(\frac{t}{c} \cdot -4 + \left(9 \cdot \frac{x \cdot y}{t\_1} + \frac{b}{t\_1}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(-4 \cdot \frac{a}{c} + \left(9 \cdot \frac{x \cdot y}{t\_2} + \frac{b}{t\_2}\right)\right)\\
\end{array}
\end{array}
if z < -4.40000000000000001e104Initial program 58.7%
+-commutative58.7%
associate-+r-58.7%
*-commutative58.7%
associate-*r*64.3%
*-commutative64.3%
associate-+r-64.3%
+-commutative64.3%
associate-*l*64.3%
associate-*l*67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in x around 0 82.8%
if -4.40000000000000001e104 < z < 4.2000000000000001e32Initial program 89.2%
if 4.2000000000000001e32 < z < 2.4000000000000001e160Initial program 66.2%
Simplified68.5%
Taylor expanded in a around inf 85.1%
if 2.4000000000000001e160 < z Initial program 54.8%
Simplified58.4%
Taylor expanded in t around inf 88.4%
Final simplification87.1%
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 (/ (+ b (- (* y (* 9.0 x)) (* a (* t (* z 4.0))))) (* c z))))
(if (<= t_1 -1e-83)
(/ (+ b (- (* x (* 9.0 y)) (* (* a t) (* z 4.0)))) (* c z))
(if (<= t_1 0.0)
(/ (+ (* -4.0 (/ (* a (* z t)) c)) (+ (* 9.0 (/ (* x y) c)) (/ b c))) z)
(if (<= t_1 INFINITY)
(/ (+ (* z (- (* 9.0 (/ (* x y) z)) (* 4.0 (* a t)))) b) (* c z))
(* x (+ (* 9.0 (/ (/ y z) c)) (* -4.0 (/ (* a (/ t c)) x)))))))))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 = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
double tmp;
if (t_1 <= -1e-83) {
tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (c * z);
} else if (t_1 <= 0.0) {
tmp = ((-4.0 * ((a * (z * t)) / c)) + ((9.0 * ((x * y) / c)) + (b / c))) / z;
} else if (t_1 <= ((double) INFINITY)) {
tmp = ((z * ((9.0 * ((x * y) / z)) - (4.0 * (a * t)))) + b) / (c * z);
} else {
tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x)));
}
return tmp;
}
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 = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
double tmp;
if (t_1 <= -1e-83) {
tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (c * z);
} else if (t_1 <= 0.0) {
tmp = ((-4.0 * ((a * (z * t)) / c)) + ((9.0 * ((x * y) / c)) + (b / c))) / z;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = ((z * ((9.0 * ((x * y) / z)) - (4.0 * (a * t)))) + b) / (c * z);
} else {
tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x)));
}
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 = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z) tmp = 0 if t_1 <= -1e-83: tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (c * z) elif t_1 <= 0.0: tmp = ((-4.0 * ((a * (z * t)) / c)) + ((9.0 * ((x * y) / c)) + (b / c))) / z elif t_1 <= math.inf: tmp = ((z * ((9.0 * ((x * y) / z)) - (4.0 * (a * t)))) + b) / (c * z) else: tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x))) 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(Float64(b + Float64(Float64(y * Float64(9.0 * x)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(c * z)) tmp = 0.0 if (t_1 <= -1e-83) tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(a * t) * Float64(z * 4.0)))) / Float64(c * z)); elseif (t_1 <= 0.0) tmp = Float64(Float64(Float64(-4.0 * Float64(Float64(a * Float64(z * t)) / c)) + Float64(Float64(9.0 * Float64(Float64(x * y) / c)) + Float64(b / c))) / z); elseif (t_1 <= Inf) tmp = Float64(Float64(Float64(z * Float64(Float64(9.0 * Float64(Float64(x * y) / z)) - Float64(4.0 * Float64(a * t)))) + b) / Float64(c * z)); else tmp = Float64(x * Float64(Float64(9.0 * Float64(Float64(y / z) / c)) + Float64(-4.0 * Float64(Float64(a * Float64(t / c)) / x)))); 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 = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
tmp = 0.0;
if (t_1 <= -1e-83)
tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (c * z);
elseif (t_1 <= 0.0)
tmp = ((-4.0 * ((a * (z * t)) / c)) + ((9.0 * ((x * y) / c)) + (b / c))) / z;
elseif (t_1 <= Inf)
tmp = ((z * ((9.0 * ((x * y) / z)) - (4.0 * (a * t)))) + b) / (c * z);
else
tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x)));
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[(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[(c * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-83], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(N[(N[(-4.0 * N[(N[(a * N[(z * t), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] + N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] + N[(b / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(N[(z * N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(9.0 * N[(N[(y / z), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(N[(a * N[(t / c), $MachinePrecision]), $MachinePrecision] / x), $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}
t_1 := \frac{b + \left(y \cdot \left(9 \cdot x\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{c \cdot z}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-83}:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - \left(a \cdot t\right) \cdot \left(z \cdot 4\right)\right)}{c \cdot z}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{-4 \cdot \frac{a \cdot \left(z \cdot t\right)}{c} + \left(9 \cdot \frac{x \cdot y}{c} + \frac{b}{c}\right)}{z}\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{z \cdot \left(9 \cdot \frac{x \cdot y}{z} - 4 \cdot \left(a \cdot t\right)\right) + b}{c \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(9 \cdot \frac{\frac{y}{z}}{c} + -4 \cdot \frac{a \cdot \frac{t}{c}}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < -1e-83Initial program 86.7%
+-commutative86.7%
associate-+r-86.7%
*-commutative86.7%
associate-*r*88.1%
*-commutative88.1%
associate-+r-88.1%
+-commutative88.1%
associate-*l*87.1%
associate-*l*84.5%
*-commutative84.5%
Simplified84.5%
if -1e-83 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < 0.0Initial program 57.7%
Simplified57.2%
Taylor expanded in z around 0 96.1%
if 0.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < +inf.0Initial program 84.0%
+-commutative84.0%
associate-+r-84.0%
*-commutative84.0%
associate-*r*86.5%
*-commutative86.5%
associate-+r-86.5%
+-commutative86.5%
associate-*l*86.5%
associate-*l*87.3%
*-commutative87.3%
Simplified87.3%
Taylor expanded in z around inf 84.9%
if +inf.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) Initial program 0.0%
+-commutative0.0%
associate-+r-0.0%
*-commutative0.0%
associate-*r*0.6%
*-commutative0.6%
associate-+r-0.6%
+-commutative0.6%
associate-*l*0.6%
associate-*l*0.6%
*-commutative0.6%
Simplified0.6%
Taylor expanded in x around inf 37.2%
Taylor expanded in b around 0 37.2%
cancel-sign-sub-inv37.2%
*-commutative37.2%
associate-/r*56.2%
metadata-eval56.2%
associate-/r*71.2%
associate-/l*85.2%
Simplified85.2%
Final simplification85.9%
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 (/ (+ b (- (* y (* 9.0 x)) (* a (* t (* z 4.0))))) (* c z)))
(t_2 (* 4.0 (* a t))))
(if (<= t_1 -5e-174)
(/ (+ b (- (* x (* 9.0 y)) (* (* a t) (* z 4.0)))) (* c z))
(if (<= t_1 0.0)
(/ (- (/ b z) t_2) c)
(if (<= t_1 INFINITY)
(/ (+ (* z (- (* 9.0 (/ (* x y) z)) t_2)) b) (* c z))
(* x (+ (* 9.0 (/ (/ y z) c)) (* -4.0 (/ (* a (/ t c)) x)))))))))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 = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
double t_2 = 4.0 * (a * t);
double tmp;
if (t_1 <= -5e-174) {
tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (c * z);
} else if (t_1 <= 0.0) {
tmp = ((b / z) - t_2) / c;
} else if (t_1 <= ((double) INFINITY)) {
tmp = ((z * ((9.0 * ((x * y) / z)) - t_2)) + b) / (c * z);
} else {
tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x)));
}
return tmp;
}
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 = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
double t_2 = 4.0 * (a * t);
double tmp;
if (t_1 <= -5e-174) {
tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (c * z);
} else if (t_1 <= 0.0) {
tmp = ((b / z) - t_2) / c;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = ((z * ((9.0 * ((x * y) / z)) - t_2)) + b) / (c * z);
} else {
tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x)));
}
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 = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z) t_2 = 4.0 * (a * t) tmp = 0 if t_1 <= -5e-174: tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (c * z) elif t_1 <= 0.0: tmp = ((b / z) - t_2) / c elif t_1 <= math.inf: tmp = ((z * ((9.0 * ((x * y) / z)) - t_2)) + b) / (c * z) else: tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x))) 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(Float64(b + Float64(Float64(y * Float64(9.0 * x)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(c * z)) t_2 = Float64(4.0 * Float64(a * t)) tmp = 0.0 if (t_1 <= -5e-174) tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(a * t) * Float64(z * 4.0)))) / Float64(c * z)); elseif (t_1 <= 0.0) tmp = Float64(Float64(Float64(b / z) - t_2) / c); elseif (t_1 <= Inf) tmp = Float64(Float64(Float64(z * Float64(Float64(9.0 * Float64(Float64(x * y) / z)) - t_2)) + b) / Float64(c * z)); else tmp = Float64(x * Float64(Float64(9.0 * Float64(Float64(y / z) / c)) + Float64(-4.0 * Float64(Float64(a * Float64(t / c)) / x)))); 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 = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
t_2 = 4.0 * (a * t);
tmp = 0.0;
if (t_1 <= -5e-174)
tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (c * z);
elseif (t_1 <= 0.0)
tmp = ((b / z) - t_2) / c;
elseif (t_1 <= Inf)
tmp = ((z * ((9.0 * ((x * y) / z)) - t_2)) + b) / (c * z);
else
tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x)));
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[(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[(c * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-174], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(N[(N[(b / z), $MachinePrecision] - t$95$2), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(N[(z * N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(9.0 * N[(N[(y / z), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(N[(a * N[(t / c), $MachinePrecision]), $MachinePrecision] / x), $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}
t_1 := \frac{b + \left(y \cdot \left(9 \cdot x\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{c \cdot z}\\
t_2 := 4 \cdot \left(a \cdot t\right)\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-174}:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - \left(a \cdot t\right) \cdot \left(z \cdot 4\right)\right)}{c \cdot z}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{\frac{b}{z} - t\_2}{c}\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{z \cdot \left(9 \cdot \frac{x \cdot y}{z} - t\_2\right) + b}{c \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(9 \cdot \frac{\frac{y}{z}}{c} + -4 \cdot \frac{a \cdot \frac{t}{c}}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < -5.0000000000000002e-174Initial program 87.0%
+-commutative87.0%
associate-+r-87.0%
*-commutative87.0%
associate-*r*88.3%
*-commutative88.3%
associate-+r-88.3%
+-commutative88.3%
associate-*l*87.3%
associate-*l*84.8%
*-commutative84.8%
Simplified84.8%
if -5.0000000000000002e-174 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < 0.0Initial program 54.3%
+-commutative54.3%
associate-+r-54.3%
*-commutative54.3%
associate-*r*53.8%
*-commutative53.8%
associate-+r-53.8%
+-commutative53.8%
associate-*l*53.8%
associate-*l*54.3%
*-commutative54.3%
Simplified54.3%
Taylor expanded in x around inf 75.0%
Taylor expanded in x around 0 64.8%
Taylor expanded in c around 0 96.3%
if 0.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < +inf.0Initial program 84.0%
+-commutative84.0%
associate-+r-84.0%
*-commutative84.0%
associate-*r*86.5%
*-commutative86.5%
associate-+r-86.5%
+-commutative86.5%
associate-*l*86.5%
associate-*l*87.3%
*-commutative87.3%
Simplified87.3%
Taylor expanded in z around inf 84.9%
if +inf.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) Initial program 0.0%
+-commutative0.0%
associate-+r-0.0%
*-commutative0.0%
associate-*r*0.6%
*-commutative0.6%
associate-+r-0.6%
+-commutative0.6%
associate-*l*0.6%
associate-*l*0.6%
*-commutative0.6%
Simplified0.6%
Taylor expanded in x around inf 37.2%
Taylor expanded in b around 0 37.2%
cancel-sign-sub-inv37.2%
*-commutative37.2%
associate-/r*56.2%
metadata-eval56.2%
associate-/r*71.2%
associate-/l*85.2%
Simplified85.2%
Final simplification86.0%
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 (/ (+ b (- (* y (* 9.0 x)) (* a (* t (* z 4.0))))) (* c z)))
(t_2 (/ (+ b (- (* x (* 9.0 y)) (* (* a t) (* z 4.0)))) (* c z))))
(if (<= t_1 -5e-174)
t_2
(if (<= t_1 0.0)
(/ (- (/ b z) (* 4.0 (* a t))) c)
(if (<= t_1 INFINITY)
t_2
(* x (+ (* 9.0 (/ (/ y z) c)) (* -4.0 (/ (* a (/ t c)) x)))))))))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 = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
double t_2 = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (c * z);
double tmp;
if (t_1 <= -5e-174) {
tmp = t_2;
} else if (t_1 <= 0.0) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else if (t_1 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x)));
}
return tmp;
}
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 = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
double t_2 = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (c * z);
double tmp;
if (t_1 <= -5e-174) {
tmp = t_2;
} else if (t_1 <= 0.0) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x)));
}
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 = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z) t_2 = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (c * z) tmp = 0 if t_1 <= -5e-174: tmp = t_2 elif t_1 <= 0.0: tmp = ((b / z) - (4.0 * (a * t))) / c elif t_1 <= math.inf: tmp = t_2 else: tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x))) 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(Float64(b + Float64(Float64(y * Float64(9.0 * x)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(c * z)) t_2 = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(a * t) * Float64(z * 4.0)))) / Float64(c * z)) tmp = 0.0 if (t_1 <= -5e-174) tmp = t_2; elseif (t_1 <= 0.0) tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c); elseif (t_1 <= Inf) tmp = t_2; else tmp = Float64(x * Float64(Float64(9.0 * Float64(Float64(y / z) / c)) + Float64(-4.0 * Float64(Float64(a * Float64(t / c)) / x)))); 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 = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
t_2 = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (c * z);
tmp = 0.0;
if (t_1 <= -5e-174)
tmp = t_2;
elseif (t_1 <= 0.0)
tmp = ((b / z) - (4.0 * (a * t))) / c;
elseif (t_1 <= Inf)
tmp = t_2;
else
tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x)));
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[(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[(c * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-174], t$95$2, If[LessEqual[t$95$1, 0.0], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[t$95$1, Infinity], t$95$2, N[(x * N[(N[(9.0 * N[(N[(y / z), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(N[(a * N[(t / c), $MachinePrecision]), $MachinePrecision] / x), $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}
t_1 := \frac{b + \left(y \cdot \left(9 \cdot x\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{c \cdot z}\\
t_2 := \frac{b + \left(x \cdot \left(9 \cdot y\right) - \left(a \cdot t\right) \cdot \left(z \cdot 4\right)\right)}{c \cdot z}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-174}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(9 \cdot \frac{\frac{y}{z}}{c} + -4 \cdot \frac{a \cdot \frac{t}{c}}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < -5.0000000000000002e-174 or 0.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < +inf.0Initial program 85.3%
+-commutative85.3%
associate-+r-85.3%
*-commutative85.3%
associate-*r*87.3%
*-commutative87.3%
associate-+r-87.3%
+-commutative87.3%
associate-*l*86.9%
associate-*l*86.2%
*-commutative86.2%
Simplified86.2%
if -5.0000000000000002e-174 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < 0.0Initial program 54.3%
+-commutative54.3%
associate-+r-54.3%
*-commutative54.3%
associate-*r*53.8%
*-commutative53.8%
associate-+r-53.8%
+-commutative53.8%
associate-*l*53.8%
associate-*l*54.3%
*-commutative54.3%
Simplified54.3%
Taylor expanded in x around inf 75.0%
Taylor expanded in x around 0 64.8%
Taylor expanded in c around 0 96.3%
if +inf.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) Initial program 0.0%
+-commutative0.0%
associate-+r-0.0%
*-commutative0.0%
associate-*r*0.6%
*-commutative0.6%
associate-+r-0.6%
+-commutative0.6%
associate-*l*0.6%
associate-*l*0.6%
*-commutative0.6%
Simplified0.6%
Taylor expanded in x around inf 37.2%
Taylor expanded in b around 0 37.2%
cancel-sign-sub-inv37.2%
*-commutative37.2%
associate-/r*56.2%
metadata-eval56.2%
associate-/r*71.2%
associate-/l*85.2%
Simplified85.2%
Final simplification87.1%
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 -4.9e+104)
(- (+ (* 9.0 (/ (* x y) (* c z))) (/ b (* c z))) (* 4.0 (/ (* a t) c)))
(if (<= z 2.5e-32)
(/ (+ b (- (* y (* 9.0 x)) (* a (* t (* z 4.0))))) (* c z))
(*
t
(+
(* -4.0 (/ a c))
(/ (* x (+ (* 9.0 (/ y (* c z))) (/ b (* c (* z x))))) t))))))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 <= -4.9e+104) {
tmp = ((9.0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0 * ((a * t) / c));
} else if (z <= 2.5e-32) {
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
} else {
tmp = t * ((-4.0 * (a / c)) + ((x * ((9.0 * (y / (c * z))) + (b / (c * (z * x))))) / t));
}
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 <= (-4.9d+104)) then
tmp = ((9.0d0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0d0 * ((a * t) / c))
else if (z <= 2.5d-32) then
tmp = (b + ((y * (9.0d0 * x)) - (a * (t * (z * 4.0d0))))) / (c * z)
else
tmp = t * (((-4.0d0) * (a / c)) + ((x * ((9.0d0 * (y / (c * z))) + (b / (c * (z * x))))) / t))
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 <= -4.9e+104) {
tmp = ((9.0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0 * ((a * t) / c));
} else if (z <= 2.5e-32) {
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
} else {
tmp = t * ((-4.0 * (a / c)) + ((x * ((9.0 * (y / (c * z))) + (b / (c * (z * x))))) / t));
}
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 <= -4.9e+104: tmp = ((9.0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0 * ((a * t) / c)) elif z <= 2.5e-32: tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z) else: tmp = t * ((-4.0 * (a / c)) + ((x * ((9.0 * (y / (c * z))) + (b / (c * (z * x))))) / t)) 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 <= -4.9e+104) tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / Float64(c * z))) + Float64(b / Float64(c * z))) - Float64(4.0 * Float64(Float64(a * t) / c))); elseif (z <= 2.5e-32) tmp = Float64(Float64(b + Float64(Float64(y * Float64(9.0 * x)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(c * z)); else tmp = Float64(t * Float64(Float64(-4.0 * Float64(a / c)) + Float64(Float64(x * Float64(Float64(9.0 * Float64(y / Float64(c * z))) + Float64(b / Float64(c * Float64(z * x))))) / t))); 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 <= -4.9e+104)
tmp = ((9.0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0 * ((a * t) / c));
elseif (z <= 2.5e-32)
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
else
tmp = t * ((-4.0 * (a / c)) + ((x * ((9.0 * (y / (c * z))) + (b / (c * (z * x))))) / t));
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, -4.9e+104], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.5e-32], 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[(c * z), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(-4.0 * N[(a / c), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(9.0 * N[(y / N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b / N[(c * N[(z * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $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}\;z \leq -4.9 \cdot 10^{+104}:\\
\;\;\;\;\left(9 \cdot \frac{x \cdot y}{c \cdot z} + \frac{b}{c \cdot z}\right) - 4 \cdot \frac{a \cdot t}{c}\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-32}:\\
\;\;\;\;\frac{b + \left(y \cdot \left(9 \cdot x\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{c \cdot z}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(-4 \cdot \frac{a}{c} + \frac{x \cdot \left(9 \cdot \frac{y}{c \cdot z} + \frac{b}{c \cdot \left(z \cdot x\right)}\right)}{t}\right)\\
\end{array}
\end{array}
if z < -4.89999999999999985e104Initial program 58.7%
+-commutative58.7%
associate-+r-58.7%
*-commutative58.7%
associate-*r*64.3%
*-commutative64.3%
associate-+r-64.3%
+-commutative64.3%
associate-*l*64.3%
associate-*l*67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in x around 0 82.8%
if -4.89999999999999985e104 < z < 2.5e-32Initial program 89.0%
if 2.5e-32 < z Initial program 65.6%
+-commutative65.6%
associate-+r-65.6%
*-commutative65.6%
associate-*r*68.0%
*-commutative68.0%
associate-+r-68.0%
+-commutative68.0%
associate-*l*68.0%
associate-*l*69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in x around inf 77.6%
Taylor expanded in t around inf 88.4%
Final simplification87.6%
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 (* a (* c z))))
(if (<= z -4.4e+104)
(- (+ (* 9.0 (/ (* x y) (* c z))) (/ b (* c z))) (* 4.0 (/ (* a t) c)))
(if (<= z 4.4e+32)
(/ (+ b (- (* y (* 9.0 x)) (* a (* t (* z 4.0))))) (* c z))
(* a (+ (* (/ t c) -4.0) (+ (* 9.0 (/ (* x y) t_1)) (/ b 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 = a * (c * z);
double tmp;
if (z <= -4.4e+104) {
tmp = ((9.0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0 * ((a * t) / c));
} else if (z <= 4.4e+32) {
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
} else {
tmp = a * (((t / c) * -4.0) + ((9.0 * ((x * y) / t_1)) + (b / 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 = a * (c * z)
if (z <= (-4.4d+104)) then
tmp = ((9.0d0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0d0 * ((a * t) / c))
else if (z <= 4.4d+32) then
tmp = (b + ((y * (9.0d0 * x)) - (a * (t * (z * 4.0d0))))) / (c * z)
else
tmp = a * (((t / c) * (-4.0d0)) + ((9.0d0 * ((x * y) / t_1)) + (b / 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 = a * (c * z);
double tmp;
if (z <= -4.4e+104) {
tmp = ((9.0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0 * ((a * t) / c));
} else if (z <= 4.4e+32) {
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
} else {
tmp = a * (((t / c) * -4.0) + ((9.0 * ((x * y) / t_1)) + (b / 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 = a * (c * z) tmp = 0 if z <= -4.4e+104: tmp = ((9.0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0 * ((a * t) / c)) elif z <= 4.4e+32: tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z) else: tmp = a * (((t / c) * -4.0) + ((9.0 * ((x * y) / t_1)) + (b / 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(a * Float64(c * z)) tmp = 0.0 if (z <= -4.4e+104) tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / Float64(c * z))) + Float64(b / Float64(c * z))) - Float64(4.0 * Float64(Float64(a * t) / c))); elseif (z <= 4.4e+32) tmp = Float64(Float64(b + Float64(Float64(y * Float64(9.0 * x)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(c * z)); else tmp = Float64(a * Float64(Float64(Float64(t / c) * -4.0) + Float64(Float64(9.0 * Float64(Float64(x * y) / t_1)) + Float64(b / 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 = a * (c * z);
tmp = 0.0;
if (z <= -4.4e+104)
tmp = ((9.0 * ((x * y) / (c * z))) + (b / (c * z))) - (4.0 * ((a * t) / c));
elseif (z <= 4.4e+32)
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (c * z);
else
tmp = a * (((t / c) * -4.0) + ((9.0 * ((x * y) / t_1)) + (b / 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[(a * N[(c * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.4e+104], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.4e+32], 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[(c * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(N[(t / c), $MachinePrecision] * -4.0), $MachinePrecision] + N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(b / t$95$1), $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}
t_1 := a \cdot \left(c \cdot z\right)\\
\mathbf{if}\;z \leq -4.4 \cdot 10^{+104}:\\
\;\;\;\;\left(9 \cdot \frac{x \cdot y}{c \cdot z} + \frac{b}{c \cdot z}\right) - 4 \cdot \frac{a \cdot t}{c}\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{+32}:\\
\;\;\;\;\frac{b + \left(y \cdot \left(9 \cdot x\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{c \cdot z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\frac{t}{c} \cdot -4 + \left(9 \cdot \frac{x \cdot y}{t\_1} + \frac{b}{t\_1}\right)\right)\\
\end{array}
\end{array}
if z < -4.40000000000000001e104Initial program 58.7%
+-commutative58.7%
associate-+r-58.7%
*-commutative58.7%
associate-*r*64.3%
*-commutative64.3%
associate-+r-64.3%
+-commutative64.3%
associate-*l*64.3%
associate-*l*67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in x around 0 82.8%
if -4.40000000000000001e104 < z < 4.40000000000000002e32Initial program 89.2%
if 4.40000000000000002e32 < z Initial program 61.5%
Simplified64.3%
Taylor expanded in a around inf 79.8%
Final simplification85.4%
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 -1.66e-130)
(* (/ y c) (/ (* 9.0 x) z))
(if (<= y -6.2e-224)
(* a (/ (* t -4.0) c))
(if (<= y 1.6e-209)
(* (/ b c) (/ 1.0 z))
(if (<= y 4.4e+176)
(* (/ t c) (* a -4.0))
(/ 1.0 (* (/ z 9.0) (/ (/ c x) y))))))))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 <= -1.66e-130) {
tmp = (y / c) * ((9.0 * x) / z);
} else if (y <= -6.2e-224) {
tmp = a * ((t * -4.0) / c);
} else if (y <= 1.6e-209) {
tmp = (b / c) * (1.0 / z);
} else if (y <= 4.4e+176) {
tmp = (t / c) * (a * -4.0);
} else {
tmp = 1.0 / ((z / 9.0) * ((c / x) / y));
}
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 <= (-1.66d-130)) then
tmp = (y / c) * ((9.0d0 * x) / z)
else if (y <= (-6.2d-224)) then
tmp = a * ((t * (-4.0d0)) / c)
else if (y <= 1.6d-209) then
tmp = (b / c) * (1.0d0 / z)
else if (y <= 4.4d+176) then
tmp = (t / c) * (a * (-4.0d0))
else
tmp = 1.0d0 / ((z / 9.0d0) * ((c / x) / y))
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 <= -1.66e-130) {
tmp = (y / c) * ((9.0 * x) / z);
} else if (y <= -6.2e-224) {
tmp = a * ((t * -4.0) / c);
} else if (y <= 1.6e-209) {
tmp = (b / c) * (1.0 / z);
} else if (y <= 4.4e+176) {
tmp = (t / c) * (a * -4.0);
} else {
tmp = 1.0 / ((z / 9.0) * ((c / x) / y));
}
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 <= -1.66e-130: tmp = (y / c) * ((9.0 * x) / z) elif y <= -6.2e-224: tmp = a * ((t * -4.0) / c) elif y <= 1.6e-209: tmp = (b / c) * (1.0 / z) elif y <= 4.4e+176: tmp = (t / c) * (a * -4.0) else: tmp = 1.0 / ((z / 9.0) * ((c / x) / y)) 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 <= -1.66e-130) tmp = Float64(Float64(y / c) * Float64(Float64(9.0 * x) / z)); elseif (y <= -6.2e-224) tmp = Float64(a * Float64(Float64(t * -4.0) / c)); elseif (y <= 1.6e-209) tmp = Float64(Float64(b / c) * Float64(1.0 / z)); elseif (y <= 4.4e+176) tmp = Float64(Float64(t / c) * Float64(a * -4.0)); else tmp = Float64(1.0 / Float64(Float64(z / 9.0) * Float64(Float64(c / x) / y))); 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 <= -1.66e-130)
tmp = (y / c) * ((9.0 * x) / z);
elseif (y <= -6.2e-224)
tmp = a * ((t * -4.0) / c);
elseif (y <= 1.6e-209)
tmp = (b / c) * (1.0 / z);
elseif (y <= 4.4e+176)
tmp = (t / c) * (a * -4.0);
else
tmp = 1.0 / ((z / 9.0) * ((c / x) / y));
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, -1.66e-130], N[(N[(y / c), $MachinePrecision] * N[(N[(9.0 * x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.2e-224], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e-209], N[(N[(b / c), $MachinePrecision] * N[(1.0 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.4e+176], N[(N[(t / c), $MachinePrecision] * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(z / 9.0), $MachinePrecision] * N[(N[(c / x), $MachinePrecision] / y), $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 -1.66 \cdot 10^{-130}:\\
\;\;\;\;\frac{y}{c} \cdot \frac{9 \cdot x}{z}\\
\mathbf{elif}\;y \leq -6.2 \cdot 10^{-224}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c}\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-209}:\\
\;\;\;\;\frac{b}{c} \cdot \frac{1}{z}\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+176}:\\
\;\;\;\;\frac{t}{c} \cdot \left(a \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{z}{9} \cdot \frac{\frac{c}{x}}{y}}\\
\end{array}
\end{array}
if y < -1.65999999999999993e-130Initial program 76.1%
Simplified74.6%
Taylor expanded in x around inf 41.1%
associate-*r/41.1%
*-commutative41.1%
Applied egg-rr41.1%
associate-*r*41.1%
times-frac44.0%
Applied egg-rr44.0%
if -1.65999999999999993e-130 < y < -6.20000000000000017e-224Initial program 81.7%
Simplified81.4%
Taylor expanded in t around inf 44.9%
*-commutative44.9%
associate-/l*50.7%
associate-*r*50.7%
*-commutative50.7%
*-commutative50.7%
associate-*l/50.7%
Simplified50.7%
if -6.20000000000000017e-224 < y < 1.6000000000000001e-209Initial program 69.8%
Simplified77.4%
Taylor expanded in b around inf 55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in b around 0 55.1%
*-commutative55.1%
associate-/r*60.7%
Simplified60.7%
associate-/l/55.1%
*-un-lft-identity55.1%
*-commutative55.1%
times-frac64.4%
Applied egg-rr64.4%
if 1.6000000000000001e-209 < y < 4.40000000000000015e176Initial program 76.5%
Simplified78.9%
Taylor expanded in x around inf 73.0%
Taylor expanded in a around inf 53.0%
associate-*r/58.8%
associate-*r*58.8%
Simplified58.8%
if 4.40000000000000015e176 < y Initial program 78.7%
Simplified74.9%
Taylor expanded in x around inf 74.3%
associate-*r/70.4%
*-commutative70.4%
Applied egg-rr70.4%
clear-num70.4%
inv-pow70.4%
times-frac74.4%
Applied egg-rr74.4%
unpow-174.4%
associate-/r*84.6%
Simplified84.6%
Final simplification56.7%
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 (<= c 4.4e-6)
(/ (+ (* z (- (* 9.0 (/ (* x y) z)) (* 4.0 (* a t)))) b) (* c z))
(*
a
(- (/ (+ (* 9.0 (/ (* x y) (* c z))) (/ b (* c z))) a) (* 4.0 (/ 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 (c <= 4.4e-6) {
tmp = ((z * ((9.0 * ((x * y) / z)) - (4.0 * (a * t)))) + b) / (c * z);
} else {
tmp = a * ((((9.0 * ((x * y) / (c * z))) + (b / (c * z))) / a) - (4.0 * (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 (c <= 4.4d-6) then
tmp = ((z * ((9.0d0 * ((x * y) / z)) - (4.0d0 * (a * t)))) + b) / (c * z)
else
tmp = a * ((((9.0d0 * ((x * y) / (c * z))) + (b / (c * z))) / a) - (4.0d0 * (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 (c <= 4.4e-6) {
tmp = ((z * ((9.0 * ((x * y) / z)) - (4.0 * (a * t)))) + b) / (c * z);
} else {
tmp = a * ((((9.0 * ((x * y) / (c * z))) + (b / (c * z))) / a) - (4.0 * (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 c <= 4.4e-6: tmp = ((z * ((9.0 * ((x * y) / z)) - (4.0 * (a * t)))) + b) / (c * z) else: tmp = a * ((((9.0 * ((x * y) / (c * z))) + (b / (c * z))) / a) - (4.0 * (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 (c <= 4.4e-6) tmp = Float64(Float64(Float64(z * Float64(Float64(9.0 * Float64(Float64(x * y) / z)) - Float64(4.0 * Float64(a * t)))) + b) / Float64(c * z)); else tmp = Float64(a * Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / Float64(c * z))) + Float64(b / Float64(c * z))) / a) - Float64(4.0 * Float64(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 (c <= 4.4e-6)
tmp = ((z * ((9.0 * ((x * y) / z)) - (4.0 * (a * t)))) + b) / (c * z);
else
tmp = a * ((((9.0 * ((x * y) / (c * z))) + (b / (c * z))) / a) - (4.0 * (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[LessEqual[c, 4.4e-6], N[(N[(N[(z * N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] - N[(4.0 * N[(t / 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}\;c \leq 4.4 \cdot 10^{-6}:\\
\;\;\;\;\frac{z \cdot \left(9 \cdot \frac{x \cdot y}{z} - 4 \cdot \left(a \cdot t\right)\right) + b}{c \cdot z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\frac{9 \cdot \frac{x \cdot y}{c \cdot z} + \frac{b}{c \cdot z}}{a} - 4 \cdot \frac{t}{c}\right)\\
\end{array}
\end{array}
if c < 4.4000000000000002e-6Initial program 80.2%
+-commutative80.2%
associate-+r-80.2%
*-commutative80.2%
associate-*r*81.8%
*-commutative81.8%
associate-+r-81.8%
+-commutative81.8%
associate-*l*81.4%
associate-*l*81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in z around inf 81.1%
if 4.4000000000000002e-6 < c Initial program 58.4%
Simplified60.2%
Taylor expanded in a around -inf 74.7%
Final simplification79.8%
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 -1.6e-130)
(* (/ y c) (/ (* 9.0 x) z))
(if (<= y -1.1e-222)
(* a (/ (* t -4.0) c))
(if (<= y 6.2e-207)
(* (/ b c) (/ 1.0 z))
(if (<= y 2.5e+176)
(* (/ t c) (* a -4.0))
(* (/ x (/ c y)) (/ 9.0 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 <= -1.6e-130) {
tmp = (y / c) * ((9.0 * x) / z);
} else if (y <= -1.1e-222) {
tmp = a * ((t * -4.0) / c);
} else if (y <= 6.2e-207) {
tmp = (b / c) * (1.0 / z);
} else if (y <= 2.5e+176) {
tmp = (t / c) * (a * -4.0);
} else {
tmp = (x / (c / y)) * (9.0 / 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 <= (-1.6d-130)) then
tmp = (y / c) * ((9.0d0 * x) / z)
else if (y <= (-1.1d-222)) then
tmp = a * ((t * (-4.0d0)) / c)
else if (y <= 6.2d-207) then
tmp = (b / c) * (1.0d0 / z)
else if (y <= 2.5d+176) then
tmp = (t / c) * (a * (-4.0d0))
else
tmp = (x / (c / y)) * (9.0d0 / 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 <= -1.6e-130) {
tmp = (y / c) * ((9.0 * x) / z);
} else if (y <= -1.1e-222) {
tmp = a * ((t * -4.0) / c);
} else if (y <= 6.2e-207) {
tmp = (b / c) * (1.0 / z);
} else if (y <= 2.5e+176) {
tmp = (t / c) * (a * -4.0);
} else {
tmp = (x / (c / y)) * (9.0 / 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 <= -1.6e-130: tmp = (y / c) * ((9.0 * x) / z) elif y <= -1.1e-222: tmp = a * ((t * -4.0) / c) elif y <= 6.2e-207: tmp = (b / c) * (1.0 / z) elif y <= 2.5e+176: tmp = (t / c) * (a * -4.0) else: tmp = (x / (c / y)) * (9.0 / 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 <= -1.6e-130) tmp = Float64(Float64(y / c) * Float64(Float64(9.0 * x) / z)); elseif (y <= -1.1e-222) tmp = Float64(a * Float64(Float64(t * -4.0) / c)); elseif (y <= 6.2e-207) tmp = Float64(Float64(b / c) * Float64(1.0 / z)); elseif (y <= 2.5e+176) tmp = Float64(Float64(t / c) * Float64(a * -4.0)); else tmp = Float64(Float64(x / Float64(c / y)) * Float64(9.0 / 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 <= -1.6e-130)
tmp = (y / c) * ((9.0 * x) / z);
elseif (y <= -1.1e-222)
tmp = a * ((t * -4.0) / c);
elseif (y <= 6.2e-207)
tmp = (b / c) * (1.0 / z);
elseif (y <= 2.5e+176)
tmp = (t / c) * (a * -4.0);
else
tmp = (x / (c / y)) * (9.0 / 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, -1.6e-130], N[(N[(y / c), $MachinePrecision] * N[(N[(9.0 * x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.1e-222], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e-207], N[(N[(b / c), $MachinePrecision] * N[(1.0 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e+176], N[(N[(t / c), $MachinePrecision] * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(c / y), $MachinePrecision]), $MachinePrecision] * N[(9.0 / 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 -1.6 \cdot 10^{-130}:\\
\;\;\;\;\frac{y}{c} \cdot \frac{9 \cdot x}{z}\\
\mathbf{elif}\;y \leq -1.1 \cdot 10^{-222}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c}\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-207}:\\
\;\;\;\;\frac{b}{c} \cdot \frac{1}{z}\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+176}:\\
\;\;\;\;\frac{t}{c} \cdot \left(a \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{c}{y}} \cdot \frac{9}{z}\\
\end{array}
\end{array}
if y < -1.6e-130Initial program 76.1%
Simplified74.6%
Taylor expanded in x around inf 41.1%
associate-*r/41.1%
*-commutative41.1%
Applied egg-rr41.1%
associate-*r*41.1%
times-frac44.0%
Applied egg-rr44.0%
if -1.6e-130 < y < -1.1e-222Initial program 81.7%
Simplified81.4%
Taylor expanded in t around inf 44.9%
*-commutative44.9%
associate-/l*50.7%
associate-*r*50.7%
*-commutative50.7%
*-commutative50.7%
associate-*l/50.7%
Simplified50.7%
if -1.1e-222 < y < 6.2000000000000003e-207Initial program 69.8%
Simplified77.4%
Taylor expanded in b around inf 55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in b around 0 55.1%
*-commutative55.1%
associate-/r*60.7%
Simplified60.7%
associate-/l/55.1%
*-un-lft-identity55.1%
*-commutative55.1%
times-frac64.4%
Applied egg-rr64.4%
if 6.2000000000000003e-207 < y < 2.5e176Initial program 76.5%
Simplified78.9%
Taylor expanded in x around inf 73.0%
Taylor expanded in a around inf 53.0%
associate-*r/58.8%
associate-*r*58.8%
Simplified58.8%
if 2.5e176 < y Initial program 78.7%
+-commutative78.7%
associate-+r-78.7%
*-commutative78.7%
associate-*r*78.7%
*-commutative78.7%
associate-+r-78.7%
+-commutative78.7%
associate-*l*74.9%
associate-*l*70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in z around inf 74.4%
Taylor expanded in x around inf 74.3%
associate-*r/70.4%
*-commutative70.4%
times-frac74.5%
associate-/l*81.0%
Simplified81.0%
clear-num81.1%
un-div-inv81.0%
Applied egg-rr81.0%
Final simplification56.4%
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 -1.66e-130)
(* 9.0 (* (/ y c) (/ x z)))
(if (<= y -3.1e-222)
(* a (/ (* t -4.0) c))
(if (<= y 1.46e-210)
(* (/ b c) (/ 1.0 z))
(if (<= y 4e+176)
(* (/ t c) (* a -4.0))
(* (/ x (/ c y)) (/ 9.0 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 <= -1.66e-130) {
tmp = 9.0 * ((y / c) * (x / z));
} else if (y <= -3.1e-222) {
tmp = a * ((t * -4.0) / c);
} else if (y <= 1.46e-210) {
tmp = (b / c) * (1.0 / z);
} else if (y <= 4e+176) {
tmp = (t / c) * (a * -4.0);
} else {
tmp = (x / (c / y)) * (9.0 / 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 <= (-1.66d-130)) then
tmp = 9.0d0 * ((y / c) * (x / z))
else if (y <= (-3.1d-222)) then
tmp = a * ((t * (-4.0d0)) / c)
else if (y <= 1.46d-210) then
tmp = (b / c) * (1.0d0 / z)
else if (y <= 4d+176) then
tmp = (t / c) * (a * (-4.0d0))
else
tmp = (x / (c / y)) * (9.0d0 / 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 <= -1.66e-130) {
tmp = 9.0 * ((y / c) * (x / z));
} else if (y <= -3.1e-222) {
tmp = a * ((t * -4.0) / c);
} else if (y <= 1.46e-210) {
tmp = (b / c) * (1.0 / z);
} else if (y <= 4e+176) {
tmp = (t / c) * (a * -4.0);
} else {
tmp = (x / (c / y)) * (9.0 / 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 <= -1.66e-130: tmp = 9.0 * ((y / c) * (x / z)) elif y <= -3.1e-222: tmp = a * ((t * -4.0) / c) elif y <= 1.46e-210: tmp = (b / c) * (1.0 / z) elif y <= 4e+176: tmp = (t / c) * (a * -4.0) else: tmp = (x / (c / y)) * (9.0 / 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 <= -1.66e-130) tmp = Float64(9.0 * Float64(Float64(y / c) * Float64(x / z))); elseif (y <= -3.1e-222) tmp = Float64(a * Float64(Float64(t * -4.0) / c)); elseif (y <= 1.46e-210) tmp = Float64(Float64(b / c) * Float64(1.0 / z)); elseif (y <= 4e+176) tmp = Float64(Float64(t / c) * Float64(a * -4.0)); else tmp = Float64(Float64(x / Float64(c / y)) * Float64(9.0 / 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 <= -1.66e-130)
tmp = 9.0 * ((y / c) * (x / z));
elseif (y <= -3.1e-222)
tmp = a * ((t * -4.0) / c);
elseif (y <= 1.46e-210)
tmp = (b / c) * (1.0 / z);
elseif (y <= 4e+176)
tmp = (t / c) * (a * -4.0);
else
tmp = (x / (c / y)) * (9.0 / 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, -1.66e-130], N[(9.0 * N[(N[(y / c), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.1e-222], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.46e-210], N[(N[(b / c), $MachinePrecision] * N[(1.0 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e+176], N[(N[(t / c), $MachinePrecision] * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(c / y), $MachinePrecision]), $MachinePrecision] * N[(9.0 / 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 -1.66 \cdot 10^{-130}:\\
\;\;\;\;9 \cdot \left(\frac{y}{c} \cdot \frac{x}{z}\right)\\
\mathbf{elif}\;y \leq -3.1 \cdot 10^{-222}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c}\\
\mathbf{elif}\;y \leq 1.46 \cdot 10^{-210}:\\
\;\;\;\;\frac{b}{c} \cdot \frac{1}{z}\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+176}:\\
\;\;\;\;\frac{t}{c} \cdot \left(a \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{c}{y}} \cdot \frac{9}{z}\\
\end{array}
\end{array}
if y < -1.65999999999999993e-130Initial program 76.1%
Simplified74.6%
Taylor expanded in x around inf 41.1%
*-commutative41.1%
*-commutative41.1%
*-commutative41.1%
times-frac43.9%
Simplified43.9%
if -1.65999999999999993e-130 < y < -3.09999999999999979e-222Initial program 81.7%
Simplified81.4%
Taylor expanded in t around inf 44.9%
*-commutative44.9%
associate-/l*50.7%
associate-*r*50.7%
*-commutative50.7%
*-commutative50.7%
associate-*l/50.7%
Simplified50.7%
if -3.09999999999999979e-222 < y < 1.45999999999999994e-210Initial program 69.8%
Simplified77.4%
Taylor expanded in b around inf 55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in b around 0 55.1%
*-commutative55.1%
associate-/r*60.7%
Simplified60.7%
associate-/l/55.1%
*-un-lft-identity55.1%
*-commutative55.1%
times-frac64.4%
Applied egg-rr64.4%
if 1.45999999999999994e-210 < y < 4e176Initial program 76.5%
Simplified78.9%
Taylor expanded in x around inf 73.0%
Taylor expanded in a around inf 53.0%
associate-*r/58.8%
associate-*r*58.8%
Simplified58.8%
if 4e176 < y Initial program 78.7%
+-commutative78.7%
associate-+r-78.7%
*-commutative78.7%
associate-*r*78.7%
*-commutative78.7%
associate-+r-78.7%
+-commutative78.7%
associate-*l*74.9%
associate-*l*70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in z around inf 74.4%
Taylor expanded in x around inf 74.3%
associate-*r/70.4%
*-commutative70.4%
times-frac74.5%
associate-/l*81.0%
Simplified81.0%
clear-num81.1%
un-div-inv81.0%
Applied egg-rr81.0%
Final simplification56.4%
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 -1.66e-130)
(* 9.0 (* (/ y c) (/ x z)))
(if (<= y -4e-220)
(* a (/ (* t -4.0) c))
(if (<= y 1.3e-209)
(* (/ b c) (/ 1.0 z))
(if (<= y 2.7e+176)
(* (/ t c) (* a -4.0))
(* (/ 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 <= -1.66e-130) {
tmp = 9.0 * ((y / c) * (x / z));
} else if (y <= -4e-220) {
tmp = a * ((t * -4.0) / c);
} else if (y <= 1.3e-209) {
tmp = (b / c) * (1.0 / z);
} else if (y <= 2.7e+176) {
tmp = (t / c) * (a * -4.0);
} 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 <= (-1.66d-130)) then
tmp = 9.0d0 * ((y / c) * (x / z))
else if (y <= (-4d-220)) then
tmp = a * ((t * (-4.0d0)) / c)
else if (y <= 1.3d-209) then
tmp = (b / c) * (1.0d0 / z)
else if (y <= 2.7d+176) then
tmp = (t / c) * (a * (-4.0d0))
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 <= -1.66e-130) {
tmp = 9.0 * ((y / c) * (x / z));
} else if (y <= -4e-220) {
tmp = a * ((t * -4.0) / c);
} else if (y <= 1.3e-209) {
tmp = (b / c) * (1.0 / z);
} else if (y <= 2.7e+176) {
tmp = (t / c) * (a * -4.0);
} 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 <= -1.66e-130: tmp = 9.0 * ((y / c) * (x / z)) elif y <= -4e-220: tmp = a * ((t * -4.0) / c) elif y <= 1.3e-209: tmp = (b / c) * (1.0 / z) elif y <= 2.7e+176: tmp = (t / c) * (a * -4.0) 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 <= -1.66e-130) tmp = Float64(9.0 * Float64(Float64(y / c) * Float64(x / z))); elseif (y <= -4e-220) tmp = Float64(a * Float64(Float64(t * -4.0) / c)); elseif (y <= 1.3e-209) tmp = Float64(Float64(b / c) * Float64(1.0 / z)); elseif (y <= 2.7e+176) tmp = Float64(Float64(t / c) * Float64(a * -4.0)); 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 <= -1.66e-130)
tmp = 9.0 * ((y / c) * (x / z));
elseif (y <= -4e-220)
tmp = a * ((t * -4.0) / c);
elseif (y <= 1.3e-209)
tmp = (b / c) * (1.0 / z);
elseif (y <= 2.7e+176)
tmp = (t / c) * (a * -4.0);
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, -1.66e-130], N[(9.0 * N[(N[(y / c), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4e-220], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e-209], N[(N[(b / c), $MachinePrecision] * N[(1.0 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e+176], N[(N[(t / c), $MachinePrecision] * N[(a * -4.0), $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 -1.66 \cdot 10^{-130}:\\
\;\;\;\;9 \cdot \left(\frac{y}{c} \cdot \frac{x}{z}\right)\\
\mathbf{elif}\;y \leq -4 \cdot 10^{-220}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{-209}:\\
\;\;\;\;\frac{b}{c} \cdot \frac{1}{z}\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+176}:\\
\;\;\;\;\frac{t}{c} \cdot \left(a \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{9}{z} \cdot \left(x \cdot \frac{y}{c}\right)\\
\end{array}
\end{array}
if y < -1.65999999999999993e-130Initial program 76.1%
Simplified74.6%
Taylor expanded in x around inf 41.1%
*-commutative41.1%
*-commutative41.1%
*-commutative41.1%
times-frac43.9%
Simplified43.9%
if -1.65999999999999993e-130 < y < -3.99999999999999997e-220Initial program 80.4%
Simplified80.2%
Taylor expanded in t around inf 41.2%
*-commutative41.2%
associate-/l*47.4%
associate-*r*47.4%
*-commutative47.4%
*-commutative47.4%
associate-*l/47.4%
Simplified47.4%
if -3.99999999999999997e-220 < y < 1.29999999999999992e-209Initial program 70.4%
Simplified77.8%
Taylor expanded in b around inf 56.0%
*-commutative56.0%
Simplified56.0%
Taylor expanded in b around 0 56.0%
*-commutative56.0%
associate-/r*61.5%
Simplified61.5%
associate-/l/56.0%
*-un-lft-identity56.0%
*-commutative56.0%
times-frac65.1%
Applied egg-rr65.1%
if 1.29999999999999992e-209 < y < 2.6999999999999998e176Initial program 76.5%
Simplified78.9%
Taylor expanded in x around inf 73.0%
Taylor expanded in a around inf 53.0%
associate-*r/58.8%
associate-*r*58.8%
Simplified58.8%
if 2.6999999999999998e176 < y Initial program 78.7%
+-commutative78.7%
associate-+r-78.7%
*-commutative78.7%
associate-*r*78.7%
*-commutative78.7%
associate-+r-78.7%
+-commutative78.7%
associate-*l*74.9%
associate-*l*70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in z around inf 74.4%
Taylor expanded in x around inf 74.3%
associate-*r/70.4%
*-commutative70.4%
times-frac74.5%
associate-/l*81.0%
Simplified81.0%
Final simplification56.4%
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 (* (/ y c) (/ x z)))))
(if (<= y -5.5e-143)
t_1
(if (<= y -4.3e-222)
(* a (/ (* t -4.0) c))
(if (<= y 5.4e-210)
(* (/ b c) (/ 1.0 z))
(if (<= y 2.4e+176) (* (/ t c) (* a -4.0)) 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 * ((y / c) * (x / z));
double tmp;
if (y <= -5.5e-143) {
tmp = t_1;
} else if (y <= -4.3e-222) {
tmp = a * ((t * -4.0) / c);
} else if (y <= 5.4e-210) {
tmp = (b / c) * (1.0 / z);
} else if (y <= 2.4e+176) {
tmp = (t / c) * (a * -4.0);
} 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 * ((y / c) * (x / z))
if (y <= (-5.5d-143)) then
tmp = t_1
else if (y <= (-4.3d-222)) then
tmp = a * ((t * (-4.0d0)) / c)
else if (y <= 5.4d-210) then
tmp = (b / c) * (1.0d0 / z)
else if (y <= 2.4d+176) then
tmp = (t / c) * (a * (-4.0d0))
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 * ((y / c) * (x / z));
double tmp;
if (y <= -5.5e-143) {
tmp = t_1;
} else if (y <= -4.3e-222) {
tmp = a * ((t * -4.0) / c);
} else if (y <= 5.4e-210) {
tmp = (b / c) * (1.0 / z);
} else if (y <= 2.4e+176) {
tmp = (t / c) * (a * -4.0);
} 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 * ((y / c) * (x / z)) tmp = 0 if y <= -5.5e-143: tmp = t_1 elif y <= -4.3e-222: tmp = a * ((t * -4.0) / c) elif y <= 5.4e-210: tmp = (b / c) * (1.0 / z) elif y <= 2.4e+176: tmp = (t / c) * (a * -4.0) 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(Float64(y / c) * Float64(x / z))) tmp = 0.0 if (y <= -5.5e-143) tmp = t_1; elseif (y <= -4.3e-222) tmp = Float64(a * Float64(Float64(t * -4.0) / c)); elseif (y <= 5.4e-210) tmp = Float64(Float64(b / c) * Float64(1.0 / z)); elseif (y <= 2.4e+176) tmp = Float64(Float64(t / c) * Float64(a * -4.0)); 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 * ((y / c) * (x / z));
tmp = 0.0;
if (y <= -5.5e-143)
tmp = t_1;
elseif (y <= -4.3e-222)
tmp = a * ((t * -4.0) / c);
elseif (y <= 5.4e-210)
tmp = (b / c) * (1.0 / z);
elseif (y <= 2.4e+176)
tmp = (t / c) * (a * -4.0);
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[(N[(y / c), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e-143], t$95$1, If[LessEqual[y, -4.3e-222], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.4e-210], N[(N[(b / c), $MachinePrecision] * N[(1.0 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e+176], N[(N[(t / c), $MachinePrecision] * N[(a * -4.0), $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(\frac{y}{c} \cdot \frac{x}{z}\right)\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{-143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4.3 \cdot 10^{-222}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c}\\
\mathbf{elif}\;y \leq 5.4 \cdot 10^{-210}:\\
\;\;\;\;\frac{b}{c} \cdot \frac{1}{z}\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+176}:\\
\;\;\;\;\frac{t}{c} \cdot \left(a \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.50000000000000041e-143 or 2.4000000000000001e176 < y Initial program 76.7%
Simplified74.6%
Taylor expanded in x around inf 48.1%
*-commutative48.1%
*-commutative48.1%
*-commutative48.1%
times-frac50.9%
Simplified50.9%
if -5.50000000000000041e-143 < y < -4.29999999999999991e-222Initial program 81.7%
Simplified81.4%
Taylor expanded in t around inf 44.9%
*-commutative44.9%
associate-/l*50.7%
associate-*r*50.7%
*-commutative50.7%
*-commutative50.7%
associate-*l/50.7%
Simplified50.7%
if -4.29999999999999991e-222 < y < 5.39999999999999983e-210Initial program 69.8%
Simplified77.4%
Taylor expanded in b around inf 55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in b around 0 55.1%
*-commutative55.1%
associate-/r*60.7%
Simplified60.7%
associate-/l/55.1%
*-un-lft-identity55.1%
*-commutative55.1%
times-frac64.4%
Applied egg-rr64.4%
if 5.39999999999999983e-210 < y < 2.4000000000000001e176Initial program 76.5%
Simplified78.9%
Taylor expanded in x around inf 73.0%
Taylor expanded in a around inf 53.0%
associate-*r/58.8%
associate-*r*58.8%
Simplified58.8%
Final simplification56.0%
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 (* 4.0 (* a t))))
(if (<= y -4.4e-23)
(* x (+ (* 9.0 (/ (/ y z) c)) (* -4.0 (/ (* a (/ t c)) x))))
(if (<= y 9e+51)
(/ (- (/ b z) t_1) c)
(/ (- (* 9.0 (/ (* x y) z)) t_1) 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 t_1 = 4.0 * (a * t);
double tmp;
if (y <= -4.4e-23) {
tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x)));
} else if (y <= 9e+51) {
tmp = ((b / z) - t_1) / c;
} else {
tmp = ((9.0 * ((x * y) / z)) - t_1) / 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) :: t_1
real(8) :: tmp
t_1 = 4.0d0 * (a * t)
if (y <= (-4.4d-23)) then
tmp = x * ((9.0d0 * ((y / z) / c)) + ((-4.0d0) * ((a * (t / c)) / x)))
else if (y <= 9d+51) then
tmp = ((b / z) - t_1) / c
else
tmp = ((9.0d0 * ((x * y) / z)) - t_1) / 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 t_1 = 4.0 * (a * t);
double tmp;
if (y <= -4.4e-23) {
tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x)));
} else if (y <= 9e+51) {
tmp = ((b / z) - t_1) / c;
} else {
tmp = ((9.0 * ((x * y) / z)) - t_1) / 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): t_1 = 4.0 * (a * t) tmp = 0 if y <= -4.4e-23: tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x))) elif y <= 9e+51: tmp = ((b / z) - t_1) / c else: tmp = ((9.0 * ((x * y) / z)) - t_1) / 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) t_1 = Float64(4.0 * Float64(a * t)) tmp = 0.0 if (y <= -4.4e-23) tmp = Float64(x * Float64(Float64(9.0 * Float64(Float64(y / z) / c)) + Float64(-4.0 * Float64(Float64(a * Float64(t / c)) / x)))); elseif (y <= 9e+51) tmp = Float64(Float64(Float64(b / z) - t_1) / c); else tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) - t_1) / 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)
t_1 = 4.0 * (a * t);
tmp = 0.0;
if (y <= -4.4e-23)
tmp = x * ((9.0 * ((y / z) / c)) + (-4.0 * ((a * (t / c)) / x)));
elseif (y <= 9e+51)
tmp = ((b / z) - t_1) / c;
else
tmp = ((9.0 * ((x * y) / z)) - t_1) / 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_] := Block[{t$95$1 = N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.4e-23], N[(x * N[(N[(9.0 * N[(N[(y / z), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(N[(a * N[(t / c), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e+51], N[(N[(N[(b / z), $MachinePrecision] - t$95$1), $MachinePrecision] / c), $MachinePrecision], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - t$95$1), $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}
t_1 := 4 \cdot \left(a \cdot t\right)\\
\mathbf{if}\;y \leq -4.4 \cdot 10^{-23}:\\
\;\;\;\;x \cdot \left(9 \cdot \frac{\frac{y}{z}}{c} + -4 \cdot \frac{a \cdot \frac{t}{c}}{x}\right)\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+51}:\\
\;\;\;\;\frac{\frac{b}{z} - t\_1}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{z} - t\_1}{c}\\
\end{array}
\end{array}
if y < -4.3999999999999999e-23Initial program 74.7%
+-commutative74.7%
associate-+r-74.7%
*-commutative74.7%
associate-*r*73.4%
*-commutative73.4%
associate-+r-73.4%
+-commutative73.4%
associate-*l*73.4%
associate-*l*73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in x around inf 64.5%
Taylor expanded in b around 0 57.2%
cancel-sign-sub-inv57.2%
*-commutative57.2%
associate-/r*58.8%
metadata-eval58.8%
associate-/r*62.0%
associate-/l*62.4%
Simplified62.4%
if -4.3999999999999999e-23 < y < 8.9999999999999999e51Initial program 73.0%
+-commutative73.0%
associate-+r-73.0%
*-commutative73.0%
associate-*r*76.5%
*-commutative76.5%
associate-+r-76.5%
+-commutative76.5%
associate-*l*76.5%
associate-*l*76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in x around inf 61.1%
Taylor expanded in x around 0 72.3%
Taylor expanded in c around 0 81.0%
if 8.9999999999999999e51 < y Initial program 84.4%
+-commutative84.4%
associate-+r-84.4%
*-commutative84.4%
associate-*r*84.4%
*-commutative84.4%
associate-+r-84.4%
+-commutative84.4%
associate-*l*82.6%
associate-*l*78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in z around inf 80.5%
Taylor expanded in b around 0 78.6%
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 (* 4.0 (* a t))))
(if (<= y -4.4e-23)
(/ (* x (+ (* 9.0 (/ y c)) (/ b (* c x)))) z)
(if (<= y 1.45e+51)
(/ (- (/ b z) t_1) c)
(/ (- (* 9.0 (/ (* x y) z)) t_1) 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 t_1 = 4.0 * (a * t);
double tmp;
if (y <= -4.4e-23) {
tmp = (x * ((9.0 * (y / c)) + (b / (c * x)))) / z;
} else if (y <= 1.45e+51) {
tmp = ((b / z) - t_1) / c;
} else {
tmp = ((9.0 * ((x * y) / z)) - t_1) / 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) :: t_1
real(8) :: tmp
t_1 = 4.0d0 * (a * t)
if (y <= (-4.4d-23)) then
tmp = (x * ((9.0d0 * (y / c)) + (b / (c * x)))) / z
else if (y <= 1.45d+51) then
tmp = ((b / z) - t_1) / c
else
tmp = ((9.0d0 * ((x * y) / z)) - t_1) / 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 t_1 = 4.0 * (a * t);
double tmp;
if (y <= -4.4e-23) {
tmp = (x * ((9.0 * (y / c)) + (b / (c * x)))) / z;
} else if (y <= 1.45e+51) {
tmp = ((b / z) - t_1) / c;
} else {
tmp = ((9.0 * ((x * y) / z)) - t_1) / 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): t_1 = 4.0 * (a * t) tmp = 0 if y <= -4.4e-23: tmp = (x * ((9.0 * (y / c)) + (b / (c * x)))) / z elif y <= 1.45e+51: tmp = ((b / z) - t_1) / c else: tmp = ((9.0 * ((x * y) / z)) - t_1) / 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) t_1 = Float64(4.0 * Float64(a * t)) tmp = 0.0 if (y <= -4.4e-23) tmp = Float64(Float64(x * Float64(Float64(9.0 * Float64(y / c)) + Float64(b / Float64(c * x)))) / z); elseif (y <= 1.45e+51) tmp = Float64(Float64(Float64(b / z) - t_1) / c); else tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) - t_1) / 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)
t_1 = 4.0 * (a * t);
tmp = 0.0;
if (y <= -4.4e-23)
tmp = (x * ((9.0 * (y / c)) + (b / (c * x)))) / z;
elseif (y <= 1.45e+51)
tmp = ((b / z) - t_1) / c;
else
tmp = ((9.0 * ((x * y) / z)) - t_1) / 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_] := Block[{t$95$1 = N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.4e-23], N[(N[(x * N[(N[(9.0 * N[(y / c), $MachinePrecision]), $MachinePrecision] + N[(b / N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, 1.45e+51], N[(N[(N[(b / z), $MachinePrecision] - t$95$1), $MachinePrecision] / c), $MachinePrecision], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - t$95$1), $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}
t_1 := 4 \cdot \left(a \cdot t\right)\\
\mathbf{if}\;y \leq -4.4 \cdot 10^{-23}:\\
\;\;\;\;\frac{x \cdot \left(9 \cdot \frac{y}{c} + \frac{b}{c \cdot x}\right)}{z}\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{+51}:\\
\;\;\;\;\frac{\frac{b}{z} - t\_1}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{z} - t\_1}{c}\\
\end{array}
\end{array}
if y < -4.3999999999999999e-23Initial program 74.7%
+-commutative74.7%
associate-+r-74.7%
*-commutative74.7%
associate-*r*73.4%
*-commutative73.4%
associate-+r-73.4%
+-commutative73.4%
associate-*l*73.4%
associate-*l*73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in x around inf 64.5%
Taylor expanded in z around 0 63.0%
if -4.3999999999999999e-23 < y < 1.4499999999999999e51Initial program 73.0%
+-commutative73.0%
associate-+r-73.0%
*-commutative73.0%
associate-*r*76.5%
*-commutative76.5%
associate-+r-76.5%
+-commutative76.5%
associate-*l*76.5%
associate-*l*76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in x around inf 61.1%
Taylor expanded in x around 0 72.3%
Taylor expanded in c around 0 81.0%
if 1.4499999999999999e51 < y Initial program 84.4%
+-commutative84.4%
associate-+r-84.4%
*-commutative84.4%
associate-*r*84.4%
*-commutative84.4%
associate-+r-84.4%
+-commutative84.4%
associate-*l*82.6%
associate-*l*78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in z around inf 80.5%
Taylor expanded in b around 0 78.6%
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 (* a (/ (* t -4.0) c))))
(if (<= t -2.4e-50)
t_1
(if (<= t 6.2e-124)
(/ (/ b z) c)
(if (<= t 1.1e-42) (* 9.0 (* x (/ (/ y z) 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 = a * ((t * -4.0) / c);
double tmp;
if (t <= -2.4e-50) {
tmp = t_1;
} else if (t <= 6.2e-124) {
tmp = (b / z) / c;
} else if (t <= 1.1e-42) {
tmp = 9.0 * (x * ((y / z) / 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 = a * ((t * (-4.0d0)) / c)
if (t <= (-2.4d-50)) then
tmp = t_1
else if (t <= 6.2d-124) then
tmp = (b / z) / c
else if (t <= 1.1d-42) then
tmp = 9.0d0 * (x * ((y / z) / 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 = a * ((t * -4.0) / c);
double tmp;
if (t <= -2.4e-50) {
tmp = t_1;
} else if (t <= 6.2e-124) {
tmp = (b / z) / c;
} else if (t <= 1.1e-42) {
tmp = 9.0 * (x * ((y / z) / 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 = a * ((t * -4.0) / c) tmp = 0 if t <= -2.4e-50: tmp = t_1 elif t <= 6.2e-124: tmp = (b / z) / c elif t <= 1.1e-42: tmp = 9.0 * (x * ((y / z) / 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(a * Float64(Float64(t * -4.0) / c)) tmp = 0.0 if (t <= -2.4e-50) tmp = t_1; elseif (t <= 6.2e-124) tmp = Float64(Float64(b / z) / c); elseif (t <= 1.1e-42) tmp = Float64(9.0 * Float64(x * Float64(Float64(y / z) / 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 = a * ((t * -4.0) / c);
tmp = 0.0;
if (t <= -2.4e-50)
tmp = t_1;
elseif (t <= 6.2e-124)
tmp = (b / z) / c;
elseif (t <= 1.1e-42)
tmp = 9.0 * (x * ((y / z) / 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[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.4e-50], t$95$1, If[LessEqual[t, 6.2e-124], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[t, 1.1e-42], N[(9.0 * N[(x * N[(N[(y / z), $MachinePrecision] / 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 := a \cdot \frac{t \cdot -4}{c}\\
\mathbf{if}\;t \leq -2.4 \cdot 10^{-50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-124}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-42}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{\frac{y}{z}}{c}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.40000000000000002e-50 or 1.10000000000000003e-42 < t Initial program 71.5%
Simplified75.9%
Taylor expanded in t around inf 48.6%
*-commutative48.6%
associate-/l*57.4%
associate-*r*57.4%
*-commutative57.4%
*-commutative57.4%
associate-*l/57.4%
Simplified57.4%
if -2.40000000000000002e-50 < t < 6.1999999999999996e-124Initial program 83.9%
Simplified81.6%
Taylor expanded in b around inf 48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in b around 0 48.9%
*-commutative48.9%
associate-/r*55.9%
Simplified55.9%
if 6.1999999999999996e-124 < t < 1.10000000000000003e-42Initial program 65.7%
+-commutative65.7%
associate-+r-65.7%
*-commutative65.7%
associate-*r*60.4%
*-commutative60.4%
associate-+r-60.4%
+-commutative60.4%
associate-*l*60.7%
associate-*l*66.0%
*-commutative66.0%
Simplified66.0%
Taylor expanded in z around inf 60.6%
Taylor expanded in x around inf 48.7%
associate-/l*62.3%
*-commutative62.3%
associate-/r*51.5%
Simplified51.5%
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 (* a (/ (* t -4.0) c))))
(if (<= t -6.4e-50)
t_1
(if (<= t 2.2e-125)
(/ (/ b z) c)
(if (<= t 4.3e-70) (* 9.0 (* x (/ y (* c z)))) 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 = a * ((t * -4.0) / c);
double tmp;
if (t <= -6.4e-50) {
tmp = t_1;
} else if (t <= 2.2e-125) {
tmp = (b / z) / c;
} else if (t <= 4.3e-70) {
tmp = 9.0 * (x * (y / (c * z)));
} 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 = a * ((t * (-4.0d0)) / c)
if (t <= (-6.4d-50)) then
tmp = t_1
else if (t <= 2.2d-125) then
tmp = (b / z) / c
else if (t <= 4.3d-70) then
tmp = 9.0d0 * (x * (y / (c * z)))
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 = a * ((t * -4.0) / c);
double tmp;
if (t <= -6.4e-50) {
tmp = t_1;
} else if (t <= 2.2e-125) {
tmp = (b / z) / c;
} else if (t <= 4.3e-70) {
tmp = 9.0 * (x * (y / (c * z)));
} 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 = a * ((t * -4.0) / c) tmp = 0 if t <= -6.4e-50: tmp = t_1 elif t <= 2.2e-125: tmp = (b / z) / c elif t <= 4.3e-70: tmp = 9.0 * (x * (y / (c * z))) 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(a * Float64(Float64(t * -4.0) / c)) tmp = 0.0 if (t <= -6.4e-50) tmp = t_1; elseif (t <= 2.2e-125) tmp = Float64(Float64(b / z) / c); elseif (t <= 4.3e-70) tmp = Float64(9.0 * Float64(x * Float64(y / Float64(c * z)))); 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 = a * ((t * -4.0) / c);
tmp = 0.0;
if (t <= -6.4e-50)
tmp = t_1;
elseif (t <= 2.2e-125)
tmp = (b / z) / c;
elseif (t <= 4.3e-70)
tmp = 9.0 * (x * (y / (c * z)));
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[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.4e-50], t$95$1, If[LessEqual[t, 2.2e-125], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[t, 4.3e-70], N[(9.0 * N[(x * N[(y / N[(c * z), $MachinePrecision]), $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 := a \cdot \frac{t \cdot -4}{c}\\
\mathbf{if}\;t \leq -6.4 \cdot 10^{-50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-125}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{-70}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{y}{c \cdot z}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6.4e-50 or 4.3e-70 < t Initial program 71.2%
Simplified75.4%
Taylor expanded in t around inf 49.0%
*-commutative49.0%
associate-/l*57.5%
associate-*r*57.5%
*-commutative57.5%
*-commutative57.5%
associate-*l/57.5%
Simplified57.5%
if -6.4e-50 < t < 2.19999999999999995e-125Initial program 83.9%
Simplified81.6%
Taylor expanded in b around inf 48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in b around 0 48.9%
*-commutative48.9%
associate-/r*55.9%
Simplified55.9%
if 2.19999999999999995e-125 < t < 4.3e-70Initial program 67.3%
+-commutative67.3%
associate-+r-67.3%
*-commutative67.3%
associate-*r*59.9%
*-commutative59.9%
associate-+r-59.9%
+-commutative59.9%
associate-*l*60.3%
associate-*l*67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in z around inf 59.8%
Taylor expanded in x around inf 50.9%
associate-*r/51.1%
*-commutative51.1%
times-frac50.9%
associate-/l*59.1%
Simplified59.1%
Taylor expanded in x around 0 50.9%
associate-/l*59.2%
Simplified59.2%
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 (<= t -8.5e+92) (not (<= t 2.8e+47))) (* a (/ (* t -4.0) c)) (/ (+ b (* 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 ((t <= -8.5e+92) || !(t <= 2.8e+47)) {
tmp = a * ((t * -4.0) / c);
} else {
tmp = (b + (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 ((t <= (-8.5d+92)) .or. (.not. (t <= 2.8d+47))) then
tmp = a * ((t * (-4.0d0)) / c)
else
tmp = (b + (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 ((t <= -8.5e+92) || !(t <= 2.8e+47)) {
tmp = a * ((t * -4.0) / c);
} else {
tmp = (b + (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 (t <= -8.5e+92) or not (t <= 2.8e+47): tmp = a * ((t * -4.0) / c) else: tmp = (b + (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 ((t <= -8.5e+92) || !(t <= 2.8e+47)) tmp = Float64(a * Float64(Float64(t * -4.0) / c)); else tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(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 ((t <= -8.5e+92) || ~((t <= 2.8e+47)))
tmp = a * ((t * -4.0) / c);
else
tmp = (b + (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[Or[LessEqual[t, -8.5e+92], N[Not[LessEqual[t, 2.8e+47]], $MachinePrecision]], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c * 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}\;t \leq -8.5 \cdot 10^{+92} \lor \neg \left(t \leq 2.8 \cdot 10^{+47}\right):\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c \cdot z}\\
\end{array}
\end{array}
if t < -8.5000000000000001e92 or 2.79999999999999988e47 < t Initial program 66.3%
Simplified70.6%
Taylor expanded in t around inf 50.9%
*-commutative50.9%
associate-/l*63.4%
associate-*r*63.4%
*-commutative63.4%
*-commutative63.4%
associate-*l/63.4%
Simplified63.4%
if -8.5000000000000001e92 < t < 2.79999999999999988e47Initial program 81.9%
Simplified81.2%
Taylor expanded in t around 0 70.2%
+-commutative70.2%
*-commutative70.2%
Simplified70.2%
Final simplification67.5%
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 -4.4e-23)
(/ (* x (+ (* 9.0 (/ y c)) (/ b (* c x)))) z)
(if (<= y 8.5e+132)
(/ (- (/ b z) (* 4.0 (* a t))) c)
(/ 1.0 (* (/ z 9.0) (/ (/ c x) y))))))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 <= -4.4e-23) {
tmp = (x * ((9.0 * (y / c)) + (b / (c * x)))) / z;
} else if (y <= 8.5e+132) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = 1.0 / ((z / 9.0) * ((c / x) / y));
}
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 <= (-4.4d-23)) then
tmp = (x * ((9.0d0 * (y / c)) + (b / (c * x)))) / z
else if (y <= 8.5d+132) then
tmp = ((b / z) - (4.0d0 * (a * t))) / c
else
tmp = 1.0d0 / ((z / 9.0d0) * ((c / x) / y))
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 <= -4.4e-23) {
tmp = (x * ((9.0 * (y / c)) + (b / (c * x)))) / z;
} else if (y <= 8.5e+132) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = 1.0 / ((z / 9.0) * ((c / x) / y));
}
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 <= -4.4e-23: tmp = (x * ((9.0 * (y / c)) + (b / (c * x)))) / z elif y <= 8.5e+132: tmp = ((b / z) - (4.0 * (a * t))) / c else: tmp = 1.0 / ((z / 9.0) * ((c / x) / y)) 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 <= -4.4e-23) tmp = Float64(Float64(x * Float64(Float64(9.0 * Float64(y / c)) + Float64(b / Float64(c * x)))) / z); elseif (y <= 8.5e+132) tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(1.0 / Float64(Float64(z / 9.0) * Float64(Float64(c / x) / y))); 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 <= -4.4e-23)
tmp = (x * ((9.0 * (y / c)) + (b / (c * x)))) / z;
elseif (y <= 8.5e+132)
tmp = ((b / z) - (4.0 * (a * t))) / c;
else
tmp = 1.0 / ((z / 9.0) * ((c / x) / y));
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, -4.4e-23], N[(N[(x * N[(N[(9.0 * N[(y / c), $MachinePrecision]), $MachinePrecision] + N[(b / N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, 8.5e+132], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(1.0 / N[(N[(z / 9.0), $MachinePrecision] * N[(N[(c / x), $MachinePrecision] / y), $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 -4.4 \cdot 10^{-23}:\\
\;\;\;\;\frac{x \cdot \left(9 \cdot \frac{y}{c} + \frac{b}{c \cdot x}\right)}{z}\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{+132}:\\
\;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{z}{9} \cdot \frac{\frac{c}{x}}{y}}\\
\end{array}
\end{array}
if y < -4.3999999999999999e-23Initial program 74.7%
+-commutative74.7%
associate-+r-74.7%
*-commutative74.7%
associate-*r*73.4%
*-commutative73.4%
associate-+r-73.4%
+-commutative73.4%
associate-*l*73.4%
associate-*l*73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in x around inf 64.5%
Taylor expanded in z around 0 63.0%
if -4.3999999999999999e-23 < y < 8.49999999999999969e132Initial program 74.5%
+-commutative74.5%
associate-+r-74.5%
*-commutative74.5%
associate-*r*77.6%
*-commutative77.6%
associate-+r-77.6%
+-commutative77.6%
associate-*l*77.6%
associate-*l*77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in x around inf 63.4%
Taylor expanded in x around 0 70.9%
Taylor expanded in c around 0 78.6%
if 8.49999999999999969e132 < y Initial program 83.6%
Simplified80.6%
Taylor expanded in x around inf 73.7%
associate-*r/70.6%
*-commutative70.6%
Applied egg-rr70.6%
clear-num70.6%
inv-pow70.6%
times-frac70.6%
Applied egg-rr70.6%
unpow-170.6%
associate-/r*78.3%
Simplified78.3%
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 -4.4e-23)
(* 9.0 (* x (/ (/ y z) c)))
(if (<= y 1.6e+133)
(/ (- (/ b z) (* 4.0 (* a t))) c)
(/ 1.0 (* (/ z 9.0) (/ (/ c x) y))))))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 <= -4.4e-23) {
tmp = 9.0 * (x * ((y / z) / c));
} else if (y <= 1.6e+133) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = 1.0 / ((z / 9.0) * ((c / x) / y));
}
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 <= (-4.4d-23)) then
tmp = 9.0d0 * (x * ((y / z) / c))
else if (y <= 1.6d+133) then
tmp = ((b / z) - (4.0d0 * (a * t))) / c
else
tmp = 1.0d0 / ((z / 9.0d0) * ((c / x) / y))
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 <= -4.4e-23) {
tmp = 9.0 * (x * ((y / z) / c));
} else if (y <= 1.6e+133) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = 1.0 / ((z / 9.0) * ((c / x) / y));
}
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 <= -4.4e-23: tmp = 9.0 * (x * ((y / z) / c)) elif y <= 1.6e+133: tmp = ((b / z) - (4.0 * (a * t))) / c else: tmp = 1.0 / ((z / 9.0) * ((c / x) / y)) 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 <= -4.4e-23) tmp = Float64(9.0 * Float64(x * Float64(Float64(y / z) / c))); elseif (y <= 1.6e+133) tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(1.0 / Float64(Float64(z / 9.0) * Float64(Float64(c / x) / y))); 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 <= -4.4e-23)
tmp = 9.0 * (x * ((y / z) / c));
elseif (y <= 1.6e+133)
tmp = ((b / z) - (4.0 * (a * t))) / c;
else
tmp = 1.0 / ((z / 9.0) * ((c / x) / y));
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, -4.4e-23], N[(9.0 * N[(x * N[(N[(y / z), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e+133], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(1.0 / N[(N[(z / 9.0), $MachinePrecision] * N[(N[(c / x), $MachinePrecision] / y), $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 -4.4 \cdot 10^{-23}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{\frac{y}{z}}{c}\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{+133}:\\
\;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{z}{9} \cdot \frac{\frac{c}{x}}{y}}\\
\end{array}
\end{array}
if y < -4.3999999999999999e-23Initial program 74.7%
+-commutative74.7%
associate-+r-74.7%
*-commutative74.7%
associate-*r*73.4%
*-commutative73.4%
associate-+r-73.4%
+-commutative73.4%
associate-*l*73.4%
associate-*l*73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in z around inf 70.3%
Taylor expanded in x around inf 48.2%
associate-/l*51.4%
*-commutative51.4%
associate-/r*52.3%
Simplified52.3%
if -4.3999999999999999e-23 < y < 1.59999999999999999e133Initial program 74.5%
+-commutative74.5%
associate-+r-74.5%
*-commutative74.5%
associate-*r*77.6%
*-commutative77.6%
associate-+r-77.6%
+-commutative77.6%
associate-*l*77.6%
associate-*l*77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in x around inf 63.4%
Taylor expanded in x around 0 70.9%
Taylor expanded in c around 0 78.6%
if 1.59999999999999999e133 < y Initial program 83.6%
Simplified80.6%
Taylor expanded in x around inf 73.7%
associate-*r/70.6%
*-commutative70.6%
Applied egg-rr70.6%
clear-num70.6%
inv-pow70.6%
times-frac70.6%
Applied egg-rr70.6%
unpow-170.6%
associate-/r*78.3%
Simplified78.3%
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 (<= a -4.4e-124) (not (<= a 1.05e+172))) (* a (/ (* t -4.0) c)) (/ (/ 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) {
double tmp;
if ((a <= -4.4e-124) || !(a <= 1.05e+172)) {
tmp = a * ((t * -4.0) / c);
} else {
tmp = (b / 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 ((a <= (-4.4d-124)) .or. (.not. (a <= 1.05d+172))) then
tmp = a * ((t * (-4.0d0)) / c)
else
tmp = (b / 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 ((a <= -4.4e-124) || !(a <= 1.05e+172)) {
tmp = a * ((t * -4.0) / c);
} else {
tmp = (b / 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 (a <= -4.4e-124) or not (a <= 1.05e+172): tmp = a * ((t * -4.0) / c) else: tmp = (b / 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 ((a <= -4.4e-124) || !(a <= 1.05e+172)) tmp = Float64(a * Float64(Float64(t * -4.0) / c)); else tmp = Float64(Float64(b / 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 ((a <= -4.4e-124) || ~((a <= 1.05e+172)))
tmp = a * ((t * -4.0) / c);
else
tmp = (b / 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[a, -4.4e-124], N[Not[LessEqual[a, 1.05e+172]], $MachinePrecision]], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], N[(N[(b / z), $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}\;a \leq -4.4 \cdot 10^{-124} \lor \neg \left(a \leq 1.05 \cdot 10^{+172}\right):\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\end{array}
\end{array}
if a < -4.3999999999999998e-124 or 1.0500000000000001e172 < a Initial program 70.4%
Simplified68.3%
Taylor expanded in t around inf 51.0%
*-commutative51.0%
associate-/l*58.9%
associate-*r*58.9%
*-commutative58.9%
*-commutative58.9%
associate-*l/58.9%
Simplified58.9%
if -4.3999999999999998e-124 < a < 1.0500000000000001e172Initial program 80.4%
Simplified84.7%
Taylor expanded in b around inf 42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in b around 0 42.6%
*-commutative42.6%
associate-/r*47.5%
Simplified47.5%
Final simplification52.9%
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 (<= a -2.26e-125) (not (<= a 1e+172))) (* -4.0 (* t (/ a c))) (/ (/ 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) {
double tmp;
if ((a <= -2.26e-125) || !(a <= 1e+172)) {
tmp = -4.0 * (t * (a / c));
} else {
tmp = (b / 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 ((a <= (-2.26d-125)) .or. (.not. (a <= 1d+172))) then
tmp = (-4.0d0) * (t * (a / c))
else
tmp = (b / 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 ((a <= -2.26e-125) || !(a <= 1e+172)) {
tmp = -4.0 * (t * (a / c));
} else {
tmp = (b / 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 (a <= -2.26e-125) or not (a <= 1e+172): tmp = -4.0 * (t * (a / c)) else: tmp = (b / 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 ((a <= -2.26e-125) || !(a <= 1e+172)) tmp = Float64(-4.0 * Float64(t * Float64(a / c))); else tmp = Float64(Float64(b / 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 ((a <= -2.26e-125) || ~((a <= 1e+172)))
tmp = -4.0 * (t * (a / c));
else
tmp = (b / 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[a, -2.26e-125], N[Not[LessEqual[a, 1e+172]], $MachinePrecision]], N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b / z), $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}\;a \leq -2.26 \cdot 10^{-125} \lor \neg \left(a \leq 10^{+172}\right):\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\end{array}
\end{array}
if a < -2.2599999999999999e-125 or 1.0000000000000001e172 < a Initial program 70.4%
+-commutative70.4%
associate-+r-70.4%
*-commutative70.4%
associate-*r*68.2%
*-commutative68.2%
associate-+r-68.2%
+-commutative68.2%
associate-*l*68.2%
associate-*l*66.2%
*-commutative66.2%
Simplified66.2%
Taylor expanded in x around inf 58.3%
Taylor expanded in x around 0 60.1%
Taylor expanded in c around 0 69.0%
Taylor expanded in b around 0 51.0%
*-commutative51.0%
associate-/l*60.5%
Simplified60.5%
if -2.2599999999999999e-125 < a < 1.0000000000000001e172Initial program 80.4%
Simplified84.7%
Taylor expanded in b around inf 42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in b around 0 42.6%
*-commutative42.6%
associate-/r*47.5%
Simplified47.5%
Final simplification53.6%
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 (<= a -7.4e-125) (* a (/ (* t -4.0) c)) (if (<= a 1e+172) (/ (/ b z) c) (* (/ t c) (* a -4.0)))))
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 (a <= -7.4e-125) {
tmp = a * ((t * -4.0) / c);
} else if (a <= 1e+172) {
tmp = (b / z) / c;
} else {
tmp = (t / c) * (a * -4.0);
}
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 (a <= (-7.4d-125)) then
tmp = a * ((t * (-4.0d0)) / c)
else if (a <= 1d+172) then
tmp = (b / z) / c
else
tmp = (t / c) * (a * (-4.0d0))
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 (a <= -7.4e-125) {
tmp = a * ((t * -4.0) / c);
} else if (a <= 1e+172) {
tmp = (b / z) / c;
} else {
tmp = (t / c) * (a * -4.0);
}
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 a <= -7.4e-125: tmp = a * ((t * -4.0) / c) elif a <= 1e+172: tmp = (b / z) / c else: tmp = (t / c) * (a * -4.0) 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 (a <= -7.4e-125) tmp = Float64(a * Float64(Float64(t * -4.0) / c)); elseif (a <= 1e+172) tmp = Float64(Float64(b / z) / c); else tmp = Float64(Float64(t / c) * Float64(a * -4.0)); 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 (a <= -7.4e-125)
tmp = a * ((t * -4.0) / c);
elseif (a <= 1e+172)
tmp = (b / z) / c;
else
tmp = (t / c) * (a * -4.0);
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[a, -7.4e-125], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1e+172], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision], N[(N[(t / c), $MachinePrecision] * N[(a * -4.0), $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}\;a \leq -7.4 \cdot 10^{-125}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c}\\
\mathbf{elif}\;a \leq 10^{+172}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{c} \cdot \left(a \cdot -4\right)\\
\end{array}
\end{array}
if a < -7.3999999999999998e-125Initial program 70.0%
Simplified68.5%
Taylor expanded in t around inf 49.4%
*-commutative49.4%
associate-/l*54.2%
associate-*r*54.2%
*-commutative54.2%
*-commutative54.2%
associate-*l/54.2%
Simplified54.2%
if -7.3999999999999998e-125 < a < 1.0000000000000001e172Initial program 80.4%
Simplified84.7%
Taylor expanded in b around inf 42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in b around 0 42.6%
*-commutative42.6%
associate-/r*47.5%
Simplified47.5%
if 1.0000000000000001e172 < a Initial program 72.0%
Simplified67.2%
Taylor expanded in x around inf 71.9%
Taylor expanded in a around inf 58.6%
associate-*r/81.1%
associate-*r*81.1%
Simplified81.1%
Final simplification52.9%
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 -2.1e-73) (* (/ (* a t) c) -4.0) (if (<= z 3.6e+32) (/ (/ b z) c) (* -4.0 (* t (/ a 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.1e-73) {
tmp = ((a * t) / c) * -4.0;
} else if (z <= 3.6e+32) {
tmp = (b / z) / c;
} else {
tmp = -4.0 * (t * (a / 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.1d-73)) then
tmp = ((a * t) / c) * (-4.0d0)
else if (z <= 3.6d+32) then
tmp = (b / z) / c
else
tmp = (-4.0d0) * (t * (a / 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.1e-73) {
tmp = ((a * t) / c) * -4.0;
} else if (z <= 3.6e+32) {
tmp = (b / z) / c;
} else {
tmp = -4.0 * (t * (a / 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.1e-73: tmp = ((a * t) / c) * -4.0 elif z <= 3.6e+32: tmp = (b / z) / c else: tmp = -4.0 * (t * (a / 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.1e-73) tmp = Float64(Float64(Float64(a * t) / c) * -4.0); elseif (z <= 3.6e+32) tmp = Float64(Float64(b / z) / c); else tmp = Float64(-4.0 * Float64(t * Float64(a / 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.1e-73)
tmp = ((a * t) / c) * -4.0;
elseif (z <= 3.6e+32)
tmp = (b / z) / c;
else
tmp = -4.0 * (t * (a / 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, -2.1e-73], N[(N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision] * -4.0), $MachinePrecision], If[LessEqual[z, 3.6e+32], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision], N[(-4.0 * N[(t * N[(a / 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}\;z \leq -2.1 \cdot 10^{-73}:\\
\;\;\;\;\frac{a \cdot t}{c} \cdot -4\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+32}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\end{array}
\end{array}
if z < -2.0999999999999999e-73Initial program 67.9%
Simplified70.4%
Taylor expanded in t around inf 57.3%
if -2.0999999999999999e-73 < z < 3.5999999999999997e32Initial program 90.1%
Simplified89.6%
Taylor expanded in b around inf 50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in b around 0 50.4%
*-commutative50.4%
associate-/r*52.9%
Simplified52.9%
if 3.5999999999999997e32 < z Initial program 61.5%
+-commutative61.5%
associate-+r-61.5%
*-commutative61.5%
associate-*r*64.3%
*-commutative64.3%
associate-+r-64.3%
+-commutative64.3%
associate-*l*64.3%
associate-*l*65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in x around inf 75.5%
Taylor expanded in x around 0 61.6%
Taylor expanded in c around 0 67.6%
Taylor expanded in b around 0 47.3%
*-commutative47.3%
associate-/l*58.4%
Simplified58.4%
Final simplification55.7%
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(Float64(b / 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[(N[(b / z), $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])\\
\\
\frac{\frac{b}{z}}{c}
\end{array}
Initial program 75.6%
Simplified76.9%
Taylor expanded in b around inf 34.5%
*-commutative34.5%
Simplified34.5%
Taylor expanded in b around 0 34.5%
*-commutative34.5%
associate-/r*38.1%
Simplified38.1%
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(b / Float64(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[(b / N[(c * 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])\\
\\
\frac{b}{c \cdot z}
\end{array}
Initial program 75.6%
Simplified76.9%
Taylor expanded in b around inf 34.5%
*-commutative34.5%
Simplified34.5%
Final simplification34.5%
(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}
herbie shell --seed 2024123
(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)))