
(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 19 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}
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (/ (- b (- (* (* (* z 4.0) t) a) (* (* x 9.0) y))) (* z c_m))))
(*
c_s
(if (<= t_1 -5e-225)
t_1
(if (<= t_1 0.0)
(/
1.0
(/
z
(fma
-4.0
(/ (* z (* t a)) c_m)
(fma 9.0 (* x (/ y c_m)) (/ b c_m)))))
(if (<= t_1 INFINITY)
(/ (+ b (- (* x (* 9.0 y)) (* (* z 4.0) (* t a)))) (* z c_m))
(*
y
(-
(/ (fma -4.0 (* a (/ t c_m)) (/ b (* z c_m))) y)
(* (/ x z) (/ -9.0 c_m))))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = (b - ((((z * 4.0) * t) * a) - ((x * 9.0) * y))) / (z * c_m);
double tmp;
if (t_1 <= -5e-225) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = 1.0 / (z / fma(-4.0, ((z * (t * a)) / c_m), fma(9.0, (x * (y / c_m)), (b / c_m))));
} else if (t_1 <= ((double) INFINITY)) {
tmp = (b + ((x * (9.0 * y)) - ((z * 4.0) * (t * a)))) / (z * c_m);
} else {
tmp = y * ((fma(-4.0, (a * (t / c_m)), (b / (z * c_m))) / y) - ((x / z) * (-9.0 / c_m)));
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(Float64(b - Float64(Float64(Float64(Float64(z * 4.0) * t) * a) - Float64(Float64(x * 9.0) * y))) / Float64(z * c_m)) tmp = 0.0 if (t_1 <= -5e-225) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(1.0 / Float64(z / fma(-4.0, Float64(Float64(z * Float64(t * a)) / c_m), fma(9.0, Float64(x * Float64(y / c_m)), Float64(b / c_m))))); elseif (t_1 <= Inf) tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(z * 4.0) * Float64(t * a)))) / Float64(z * c_m)); else tmp = Float64(y * Float64(Float64(fma(-4.0, Float64(a * Float64(t / c_m)), Float64(b / Float64(z * c_m))) / y) - Float64(Float64(x / z) * Float64(-9.0 / c_m)))); end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(N[(b - N[(N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision] - N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]}, N[(c$95$s * If[LessEqual[t$95$1, -5e-225], t$95$1, If[LessEqual[t$95$1, 0.0], N[(1.0 / N[(z / N[(-4.0 * N[(N[(z * N[(t * a), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision] + N[(9.0 * N[(x * N[(y / c$95$m), $MachinePrecision]), $MachinePrecision] + N[(b / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(N[(-4.0 * N[(a * N[(t / c$95$m), $MachinePrecision]), $MachinePrecision] + N[(b / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x / z), $MachinePrecision] * N[(-9.0 / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
\begin{array}{l}
t_1 := \frac{b - \left(\left(\left(z \cdot 4\right) \cdot t\right) \cdot a - \left(x \cdot 9\right) \cdot y\right)}{z \cdot c\_m}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-225}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{1}{\frac{z}{\mathsf{fma}\left(-4, \frac{z \cdot \left(t \cdot a\right)}{c\_m}, \mathsf{fma}\left(9, x \cdot \frac{y}{c\_m}, \frac{b}{c\_m}\right)\right)}}\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right)}{z \cdot c\_m}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\frac{\mathsf{fma}\left(-4, a \cdot \frac{t}{c\_m}, \frac{b}{z \cdot c\_m}\right)}{y} - \frac{x}{z} \cdot \frac{-9}{c\_m}\right)\\
\end{array}
\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.0000000000000001e-225Initial program 93.4%
if -5.0000000000000001e-225 < (/.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.4%
Simplified60.7%
Taylor expanded in z around 0 91.9%
clear-num89.1%
inv-pow89.1%
fma-define89.1%
associate-/l*89.1%
*-commutative89.1%
fma-define89.1%
associate-/l*89.1%
Applied egg-rr89.1%
unpow-189.1%
associate-*r/89.1%
*-commutative89.1%
associate-*r*93.0%
Simplified93.0%
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 86.9%
associate-+l-86.9%
*-commutative86.9%
associate-*r*87.5%
*-commutative87.5%
associate-+l-87.5%
associate-*l*87.5%
associate-*l*86.5%
*-commutative86.5%
Simplified86.5%
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%
Simplified18.0%
Taylor expanded in y around -inf 45.0%
Simplified70.1%
Final simplification88.4%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (/ (- b (- (* (* (* z 4.0) t) a) (* (* x 9.0) y))) (* z c_m))))
(*
c_s
(if (<= t_1 -5e-251)
t_1
(if (<= t_1 0.0)
(/
(+
(* -4.0 (/ (* a (* z t)) c_m))
(+ (/ b c_m) (* 9.0 (* x (/ y c_m)))))
z)
(if (<= t_1 INFINITY)
(/ (+ b (- (* x (* 9.0 y)) (* (* z 4.0) (* t a)))) (* z c_m))
(*
y
(-
(/ (fma -4.0 (* a (/ t c_m)) (/ b (* z c_m))) y)
(* (/ x z) (/ -9.0 c_m))))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = (b - ((((z * 4.0) * t) * a) - ((x * 9.0) * y))) / (z * c_m);
double tmp;
if (t_1 <= -5e-251) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = ((-4.0 * ((a * (z * t)) / c_m)) + ((b / c_m) + (9.0 * (x * (y / c_m))))) / z;
} else if (t_1 <= ((double) INFINITY)) {
tmp = (b + ((x * (9.0 * y)) - ((z * 4.0) * (t * a)))) / (z * c_m);
} else {
tmp = y * ((fma(-4.0, (a * (t / c_m)), (b / (z * c_m))) / y) - ((x / z) * (-9.0 / c_m)));
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(Float64(b - Float64(Float64(Float64(Float64(z * 4.0) * t) * a) - Float64(Float64(x * 9.0) * y))) / Float64(z * c_m)) tmp = 0.0 if (t_1 <= -5e-251) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(Float64(Float64(-4.0 * Float64(Float64(a * Float64(z * t)) / c_m)) + Float64(Float64(b / c_m) + Float64(9.0 * Float64(x * Float64(y / c_m))))) / z); elseif (t_1 <= Inf) tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(z * 4.0) * Float64(t * a)))) / Float64(z * c_m)); else tmp = Float64(y * Float64(Float64(fma(-4.0, Float64(a * Float64(t / c_m)), Float64(b / Float64(z * c_m))) / y) - Float64(Float64(x / z) * Float64(-9.0 / c_m)))); end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(N[(b - N[(N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision] - N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]}, N[(c$95$s * If[LessEqual[t$95$1, -5e-251], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(N[(-4.0 * N[(N[(a * N[(z * t), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision] + N[(N[(b / c$95$m), $MachinePrecision] + N[(9.0 * N[(x * N[(y / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(N[(-4.0 * N[(a * N[(t / c$95$m), $MachinePrecision]), $MachinePrecision] + N[(b / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x / z), $MachinePrecision] * N[(-9.0 / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
\begin{array}{l}
t_1 := \frac{b - \left(\left(\left(z \cdot 4\right) \cdot t\right) \cdot a - \left(x \cdot 9\right) \cdot y\right)}{z \cdot c\_m}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-251}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{-4 \cdot \frac{a \cdot \left(z \cdot t\right)}{c\_m} + \left(\frac{b}{c\_m} + 9 \cdot \left(x \cdot \frac{y}{c\_m}\right)\right)}{z}\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right)}{z \cdot c\_m}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\frac{\mathsf{fma}\left(-4, a \cdot \frac{t}{c\_m}, \frac{b}{z \cdot c\_m}\right)}{y} - \frac{x}{z} \cdot \frac{-9}{c\_m}\right)\\
\end{array}
\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.0000000000000003e-251Initial program 92.6%
if -5.0000000000000003e-251 < (/.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.9%
Simplified57.3%
Taylor expanded in z around 0 95.5%
associate-/l*95.5%
Applied egg-rr95.5%
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 86.9%
associate-+l-86.9%
*-commutative86.9%
associate-*r*87.5%
*-commutative87.5%
associate-+l-87.5%
associate-*l*87.5%
associate-*l*86.5%
*-commutative86.5%
Simplified86.5%
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%
Simplified18.0%
Taylor expanded in y around -inf 45.0%
Simplified70.1%
Final simplification88.3%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (/ (- b (- (* (* (* z 4.0) t) a) (* (* x 9.0) y))) (* z c_m))))
(*
c_s
(if (<= t_1 -5e-251)
t_1
(if (<= t_1 0.0)
(/
(+
(* -4.0 (/ (* a (* z t)) c_m))
(+ (/ b c_m) (* 9.0 (* x (/ y c_m)))))
z)
(if (<= t_1 INFINITY)
(/ (+ b (- (* x (* 9.0 y)) (* (* z 4.0) (* t a)))) (* z c_m))
(*
x
(-
(/ (fma -4.0 (* a (/ t c_m)) (/ b (* z c_m))) x)
(* (/ y z) (/ -9.0 c_m))))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = (b - ((((z * 4.0) * t) * a) - ((x * 9.0) * y))) / (z * c_m);
double tmp;
if (t_1 <= -5e-251) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = ((-4.0 * ((a * (z * t)) / c_m)) + ((b / c_m) + (9.0 * (x * (y / c_m))))) / z;
} else if (t_1 <= ((double) INFINITY)) {
tmp = (b + ((x * (9.0 * y)) - ((z * 4.0) * (t * a)))) / (z * c_m);
} else {
tmp = x * ((fma(-4.0, (a * (t / c_m)), (b / (z * c_m))) / x) - ((y / z) * (-9.0 / c_m)));
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(Float64(b - Float64(Float64(Float64(Float64(z * 4.0) * t) * a) - Float64(Float64(x * 9.0) * y))) / Float64(z * c_m)) tmp = 0.0 if (t_1 <= -5e-251) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(Float64(Float64(-4.0 * Float64(Float64(a * Float64(z * t)) / c_m)) + Float64(Float64(b / c_m) + Float64(9.0 * Float64(x * Float64(y / c_m))))) / z); elseif (t_1 <= Inf) tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(z * 4.0) * Float64(t * a)))) / Float64(z * c_m)); else tmp = Float64(x * Float64(Float64(fma(-4.0, Float64(a * Float64(t / c_m)), Float64(b / Float64(z * c_m))) / x) - Float64(Float64(y / z) * Float64(-9.0 / c_m)))); end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(N[(b - N[(N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision] - N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]}, N[(c$95$s * If[LessEqual[t$95$1, -5e-251], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(N[(-4.0 * N[(N[(a * N[(z * t), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision] + N[(N[(b / c$95$m), $MachinePrecision] + N[(9.0 * N[(x * N[(y / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(-4.0 * N[(a * N[(t / c$95$m), $MachinePrecision]), $MachinePrecision] + N[(b / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - N[(N[(y / z), $MachinePrecision] * N[(-9.0 / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
\begin{array}{l}
t_1 := \frac{b - \left(\left(\left(z \cdot 4\right) \cdot t\right) \cdot a - \left(x \cdot 9\right) \cdot y\right)}{z \cdot c\_m}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-251}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{-4 \cdot \frac{a \cdot \left(z \cdot t\right)}{c\_m} + \left(\frac{b}{c\_m} + 9 \cdot \left(x \cdot \frac{y}{c\_m}\right)\right)}{z}\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right)}{z \cdot c\_m}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{\mathsf{fma}\left(-4, a \cdot \frac{t}{c\_m}, \frac{b}{z \cdot c\_m}\right)}{x} - \frac{y}{z} \cdot \frac{-9}{c\_m}\right)\\
\end{array}
\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.0000000000000003e-251Initial program 92.6%
if -5.0000000000000003e-251 < (/.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.9%
Simplified57.3%
Taylor expanded in z around 0 95.5%
associate-/l*95.5%
Applied egg-rr95.5%
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 86.9%
associate-+l-86.9%
*-commutative86.9%
associate-*r*87.5%
*-commutative87.5%
associate-+l-87.5%
associate-*l*87.5%
associate-*l*86.5%
*-commutative86.5%
Simplified86.5%
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%
Simplified18.0%
Taylor expanded in x around -inf 49.1%
Simplified74.4%
Final simplification88.7%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= z -950000000.0)
(*
x
(-
(+ (* 9.0 (/ y (* z c_m))) (/ b (* c_m (* x z))))
(* 4.0 (/ (* t a) (* x c_m)))))
(if (<= z 1.5e+141)
(/ (+ b (fma x (* 9.0 y) (* t (* a (* z -4.0))))) (* z c_m))
(/ (- (* 9.0 (/ (* x y) z)) (* 4.0 (* t a))) c_m)))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (z <= -950000000.0) {
tmp = x * (((9.0 * (y / (z * c_m))) + (b / (c_m * (x * z)))) - (4.0 * ((t * a) / (x * c_m))));
} else if (z <= 1.5e+141) {
tmp = (b + fma(x, (9.0 * y), (t * (a * (z * -4.0))))) / (z * c_m);
} else {
tmp = ((9.0 * ((x * y) / z)) - (4.0 * (t * a))) / c_m;
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (z <= -950000000.0) tmp = Float64(x * Float64(Float64(Float64(9.0 * Float64(y / Float64(z * c_m))) + Float64(b / Float64(c_m * Float64(x * z)))) - Float64(4.0 * Float64(Float64(t * a) / Float64(x * c_m))))); elseif (z <= 1.5e+141) tmp = Float64(Float64(b + fma(x, Float64(9.0 * y), Float64(t * Float64(a * Float64(z * -4.0))))) / Float64(z * c_m)); else tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) - Float64(4.0 * Float64(t * a))) / c_m); end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[z, -950000000.0], N[(x * N[(N[(N[(9.0 * N[(y / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b / N[(c$95$m * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] / N[(x * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e+141], N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision] + N[(t * N[(a * N[(z * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -950000000:\\
\;\;\;\;x \cdot \left(\left(9 \cdot \frac{y}{z \cdot c\_m} + \frac{b}{c\_m \cdot \left(x \cdot z\right)}\right) - 4 \cdot \frac{t \cdot a}{x \cdot c\_m}\right)\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+141}:\\
\;\;\;\;\frac{b + \mathsf{fma}\left(x, 9 \cdot y, t \cdot \left(a \cdot \left(z \cdot -4\right)\right)\right)}{z \cdot c\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{z} - 4 \cdot \left(t \cdot a\right)}{c\_m}\\
\end{array}
\end{array}
if z < -9.5e8Initial program 59.3%
associate-+l-59.3%
*-commutative59.3%
associate-*r*57.6%
*-commutative57.6%
associate-+l-57.6%
associate-*l*57.6%
associate-*l*62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in x around inf 73.4%
if -9.5e8 < z < 1.4999999999999999e141Initial program 93.5%
Simplified94.5%
if 1.4999999999999999e141 < z Initial program 45.1%
associate-+l-45.1%
*-commutative45.1%
associate-*r*41.7%
*-commutative41.7%
associate-+l-41.7%
associate-*l*41.8%
associate-*l*51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in z around inf 54.4%
Taylor expanded in b around 0 67.1%
Final simplification85.8%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (/ (- b (- (* (* (* z 4.0) t) a) (* (* x 9.0) y))) (* z c_m))))
(*
c_s
(if (<= t_1 -5e-251)
t_1
(if (<= t_1 0.0)
(/
(+
(* -4.0 (/ (* a (* z t)) c_m))
(+ (/ b c_m) (* 9.0 (* x (/ y c_m)))))
z)
(if (<= t_1 INFINITY)
(/ (+ b (- (* x (* 9.0 y)) (* (* z 4.0) (* t a)))) (* z c_m))
(* a (/ 1.0 (/ c_m (* t -4.0))))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = (b - ((((z * 4.0) * t) * a) - ((x * 9.0) * y))) / (z * c_m);
double tmp;
if (t_1 <= -5e-251) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = ((-4.0 * ((a * (z * t)) / c_m)) + ((b / c_m) + (9.0 * (x * (y / c_m))))) / z;
} else if (t_1 <= ((double) INFINITY)) {
tmp = (b + ((x * (9.0 * y)) - ((z * 4.0) * (t * a)))) / (z * c_m);
} else {
tmp = a * (1.0 / (c_m / (t * -4.0)));
}
return c_s * tmp;
}
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = (b - ((((z * 4.0) * t) * a) - ((x * 9.0) * y))) / (z * c_m);
double tmp;
if (t_1 <= -5e-251) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = ((-4.0 * ((a * (z * t)) / c_m)) + ((b / c_m) + (9.0 * (x * (y / c_m))))) / z;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = (b + ((x * (9.0 * y)) - ((z * 4.0) * (t * a)))) / (z * c_m);
} else {
tmp = a * (1.0 / (c_m / (t * -4.0)));
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): t_1 = (b - ((((z * 4.0) * t) * a) - ((x * 9.0) * y))) / (z * c_m) tmp = 0 if t_1 <= -5e-251: tmp = t_1 elif t_1 <= 0.0: tmp = ((-4.0 * ((a * (z * t)) / c_m)) + ((b / c_m) + (9.0 * (x * (y / c_m))))) / z elif t_1 <= math.inf: tmp = (b + ((x * (9.0 * y)) - ((z * 4.0) * (t * a)))) / (z * c_m) else: tmp = a * (1.0 / (c_m / (t * -4.0))) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(Float64(b - Float64(Float64(Float64(Float64(z * 4.0) * t) * a) - Float64(Float64(x * 9.0) * y))) / Float64(z * c_m)) tmp = 0.0 if (t_1 <= -5e-251) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(Float64(Float64(-4.0 * Float64(Float64(a * Float64(z * t)) / c_m)) + Float64(Float64(b / c_m) + Float64(9.0 * Float64(x * Float64(y / c_m))))) / z); elseif (t_1 <= Inf) tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(z * 4.0) * Float64(t * a)))) / Float64(z * c_m)); else tmp = Float64(a * Float64(1.0 / Float64(c_m / Float64(t * -4.0)))); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
t_1 = (b - ((((z * 4.0) * t) * a) - ((x * 9.0) * y))) / (z * c_m);
tmp = 0.0;
if (t_1 <= -5e-251)
tmp = t_1;
elseif (t_1 <= 0.0)
tmp = ((-4.0 * ((a * (z * t)) / c_m)) + ((b / c_m) + (9.0 * (x * (y / c_m))))) / z;
elseif (t_1 <= Inf)
tmp = (b + ((x * (9.0 * y)) - ((z * 4.0) * (t * a)))) / (z * c_m);
else
tmp = a * (1.0 / (c_m / (t * -4.0)));
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(N[(b - N[(N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision] - N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]}, N[(c$95$s * If[LessEqual[t$95$1, -5e-251], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(N[(-4.0 * N[(N[(a * N[(z * t), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision] + N[(N[(b / c$95$m), $MachinePrecision] + N[(9.0 * N[(x * N[(y / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], N[(a * N[(1.0 / N[(c$95$m / N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
\begin{array}{l}
t_1 := \frac{b - \left(\left(\left(z \cdot 4\right) \cdot t\right) \cdot a - \left(x \cdot 9\right) \cdot y\right)}{z \cdot c\_m}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-251}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{-4 \cdot \frac{a \cdot \left(z \cdot t\right)}{c\_m} + \left(\frac{b}{c\_m} + 9 \cdot \left(x \cdot \frac{y}{c\_m}\right)\right)}{z}\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right)}{z \cdot c\_m}\\
\mathbf{else}:\\
\;\;\;\;a \cdot \frac{1}{\frac{c\_m}{t \cdot -4}}\\
\end{array}
\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.0000000000000003e-251Initial program 92.6%
if -5.0000000000000003e-251 < (/.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.9%
Simplified57.3%
Taylor expanded in z around 0 95.5%
associate-/l*95.5%
Applied egg-rr95.5%
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 86.9%
associate-+l-86.9%
*-commutative86.9%
associate-*r*87.5%
*-commutative87.5%
associate-+l-87.5%
associate-*l*87.5%
associate-*l*86.5%
*-commutative86.5%
Simplified86.5%
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%
Simplified18.0%
Taylor expanded in t around inf 45.0%
*-commutative45.0%
associate-/l*49.1%
associate-*r*49.1%
*-commutative49.1%
*-commutative49.1%
associate-*l/49.1%
Simplified49.1%
clear-num49.1%
inv-pow49.1%
*-commutative49.1%
Applied egg-rr49.1%
unpow-149.1%
Simplified49.1%
Final simplification86.4%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (* (* x 9.0) y)))
(*
c_s
(if (or (<= t_1 -1e+296) (not (<= t_1 1e+235)))
(* 9.0 (* (/ y z) (/ x c_m)))
(/ (- b (- (* (* (* z 4.0) t) a) t_1)) (* z c_m))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = (x * 9.0) * y;
double tmp;
if ((t_1 <= -1e+296) || !(t_1 <= 1e+235)) {
tmp = 9.0 * ((y / z) * (x / c_m));
} else {
tmp = (b - ((((z * 4.0) * t) * a) - t_1)) / (z * c_m);
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: t_1
real(8) :: tmp
t_1 = (x * 9.0d0) * y
if ((t_1 <= (-1d+296)) .or. (.not. (t_1 <= 1d+235))) then
tmp = 9.0d0 * ((y / z) * (x / c_m))
else
tmp = (b - ((((z * 4.0d0) * t) * a) - t_1)) / (z * c_m)
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = (x * 9.0) * y;
double tmp;
if ((t_1 <= -1e+296) || !(t_1 <= 1e+235)) {
tmp = 9.0 * ((y / z) * (x / c_m));
} else {
tmp = (b - ((((z * 4.0) * t) * a) - t_1)) / (z * c_m);
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): t_1 = (x * 9.0) * y tmp = 0 if (t_1 <= -1e+296) or not (t_1 <= 1e+235): tmp = 9.0 * ((y / z) * (x / c_m)) else: tmp = (b - ((((z * 4.0) * t) * a) - t_1)) / (z * c_m) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(Float64(x * 9.0) * y) tmp = 0.0 if ((t_1 <= -1e+296) || !(t_1 <= 1e+235)) tmp = Float64(9.0 * Float64(Float64(y / z) * Float64(x / c_m))); else tmp = Float64(Float64(b - Float64(Float64(Float64(Float64(z * 4.0) * t) * a) - t_1)) / Float64(z * c_m)); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
t_1 = (x * 9.0) * y;
tmp = 0.0;
if ((t_1 <= -1e+296) || ~((t_1 <= 1e+235)))
tmp = 9.0 * ((y / z) * (x / c_m));
else
tmp = (b - ((((z * 4.0) * t) * a) - t_1)) / (z * c_m);
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, N[(c$95$s * If[Or[LessEqual[t$95$1, -1e+296], N[Not[LessEqual[t$95$1, 1e+235]], $MachinePrecision]], N[(9.0 * N[(N[(y / z), $MachinePrecision] * N[(x / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b - N[(N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
\begin{array}{l}
t_1 := \left(x \cdot 9\right) \cdot y\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+296} \lor \neg \left(t\_1 \leq 10^{+235}\right):\\
\;\;\;\;9 \cdot \left(\frac{y}{z} \cdot \frac{x}{c\_m}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{b - \left(\left(\left(z \cdot 4\right) \cdot t\right) \cdot a - t\_1\right)}{z \cdot c\_m}\\
\end{array}
\end{array}
\end{array}
if (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -9.99999999999999981e295 or 1.0000000000000001e235 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) Initial program 51.1%
Simplified59.1%
Taylor expanded in x around inf 57.1%
+-commutative57.1%
fma-define57.1%
*-commutative57.1%
associate-/l*57.2%
associate-*l*57.2%
*-commutative57.2%
associate-/l*63.3%
Simplified63.3%
Taylor expanded in x around inf 57.3%
times-frac88.2%
*-commutative88.2%
Simplified88.2%
if -9.99999999999999981e295 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < 1.0000000000000001e235Initial program 85.7%
Final simplification86.2%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= y -1.32e-11)
(* 9.0 (* x (/ y (* z c_m))))
(if (<= y -1.25e-206)
(/ 1.0 (/ (/ (* c_m -0.25) t) a))
(if (<= y 1.05e-267)
(/ 1.0 (* c_m (/ z b)))
(if (<= y 5.5e+63)
(* -4.0 (/ (* t a) c_m))
(* 9.0 (* (/ y c_m) (/ x z)))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (y <= -1.32e-11) {
tmp = 9.0 * (x * (y / (z * c_m)));
} else if (y <= -1.25e-206) {
tmp = 1.0 / (((c_m * -0.25) / t) / a);
} else if (y <= 1.05e-267) {
tmp = 1.0 / (c_m * (z / b));
} else if (y <= 5.5e+63) {
tmp = -4.0 * ((t * a) / c_m);
} else {
tmp = 9.0 * ((y / c_m) * (x / z));
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (y <= (-1.32d-11)) then
tmp = 9.0d0 * (x * (y / (z * c_m)))
else if (y <= (-1.25d-206)) then
tmp = 1.0d0 / (((c_m * (-0.25d0)) / t) / a)
else if (y <= 1.05d-267) then
tmp = 1.0d0 / (c_m * (z / b))
else if (y <= 5.5d+63) then
tmp = (-4.0d0) * ((t * a) / c_m)
else
tmp = 9.0d0 * ((y / c_m) * (x / z))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (y <= -1.32e-11) {
tmp = 9.0 * (x * (y / (z * c_m)));
} else if (y <= -1.25e-206) {
tmp = 1.0 / (((c_m * -0.25) / t) / a);
} else if (y <= 1.05e-267) {
tmp = 1.0 / (c_m * (z / b));
} else if (y <= 5.5e+63) {
tmp = -4.0 * ((t * a) / c_m);
} else {
tmp = 9.0 * ((y / c_m) * (x / z));
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if y <= -1.32e-11: tmp = 9.0 * (x * (y / (z * c_m))) elif y <= -1.25e-206: tmp = 1.0 / (((c_m * -0.25) / t) / a) elif y <= 1.05e-267: tmp = 1.0 / (c_m * (z / b)) elif y <= 5.5e+63: tmp = -4.0 * ((t * a) / c_m) else: tmp = 9.0 * ((y / c_m) * (x / z)) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (y <= -1.32e-11) tmp = Float64(9.0 * Float64(x * Float64(y / Float64(z * c_m)))); elseif (y <= -1.25e-206) tmp = Float64(1.0 / Float64(Float64(Float64(c_m * -0.25) / t) / a)); elseif (y <= 1.05e-267) tmp = Float64(1.0 / Float64(c_m * Float64(z / b))); elseif (y <= 5.5e+63) tmp = Float64(-4.0 * Float64(Float64(t * a) / c_m)); else tmp = Float64(9.0 * Float64(Float64(y / c_m) * Float64(x / z))); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
tmp = 0.0;
if (y <= -1.32e-11)
tmp = 9.0 * (x * (y / (z * c_m)));
elseif (y <= -1.25e-206)
tmp = 1.0 / (((c_m * -0.25) / t) / a);
elseif (y <= 1.05e-267)
tmp = 1.0 / (c_m * (z / b));
elseif (y <= 5.5e+63)
tmp = -4.0 * ((t * a) / c_m);
else
tmp = 9.0 * ((y / c_m) * (x / z));
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[y, -1.32e-11], N[(9.0 * N[(x * N[(y / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.25e-206], N[(1.0 / N[(N[(N[(c$95$m * -0.25), $MachinePrecision] / t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.05e-267], N[(1.0 / N[(c$95$m * N[(z / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e+63], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], N[(9.0 * N[(N[(y / c$95$m), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;y \leq -1.32 \cdot 10^{-11}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c\_m}\right)\\
\mathbf{elif}\;y \leq -1.25 \cdot 10^{-206}:\\
\;\;\;\;\frac{1}{\frac{\frac{c\_m \cdot -0.25}{t}}{a}}\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{-267}:\\
\;\;\;\;\frac{1}{c\_m \cdot \frac{z}{b}}\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{+63}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;9 \cdot \left(\frac{y}{c\_m} \cdot \frac{x}{z}\right)\\
\end{array}
\end{array}
if y < -1.32e-11Initial program 72.3%
Simplified70.7%
Taylor expanded in x around inf 44.6%
associate-/l*51.2%
*-commutative51.2%
Simplified51.2%
if -1.32e-11 < y < -1.25e-206Initial program 93.1%
Simplified89.9%
Taylor expanded in z around 0 82.5%
clear-num82.5%
inv-pow82.5%
fma-define82.5%
associate-/l*79.0%
*-commutative79.0%
fma-define79.0%
associate-/l*77.4%
Applied egg-rr77.4%
unpow-177.4%
associate-*r/80.2%
*-commutative80.2%
associate-*r*80.2%
Simplified80.2%
Taylor expanded in z around inf 52.4%
associate-*r/52.4%
Simplified52.4%
Taylor expanded in c around 0 52.4%
associate-*r/52.4%
times-frac57.2%
associate-*l/57.3%
associate-*r/57.3%
*-commutative57.3%
Simplified57.3%
if -1.25e-206 < y < 1.0500000000000001e-267Initial program 83.7%
Simplified83.7%
Taylor expanded in b around inf 68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in b around 0 68.0%
associate-/r*54.2%
Simplified54.2%
clear-num54.2%
inv-pow54.2%
Applied egg-rr54.2%
unpow-154.2%
associate-/r/63.9%
Simplified63.9%
if 1.0500000000000001e-267 < y < 5.50000000000000004e63Initial program 85.9%
Simplified86.8%
Taylor expanded in t around inf 51.9%
if 5.50000000000000004e63 < y Initial program 65.0%
Simplified71.8%
Taylor expanded in x around inf 50.0%
*-commutative50.0%
*-commutative50.0%
*-commutative50.0%
times-frac63.5%
Simplified63.5%
Final simplification56.3%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= y -1.9e-15)
(* 9.0 (* x (/ y (* z c_m))))
(if (<= y -3.2e-208)
(* a (* t (/ -4.0 c_m)))
(if (<= y 3.1e-268)
(/ 1.0 (* c_m (/ z b)))
(if (<= y 8.2e+63)
(* -4.0 (/ (* t a) c_m))
(* 9.0 (* (/ y c_m) (/ x z)))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (y <= -1.9e-15) {
tmp = 9.0 * (x * (y / (z * c_m)));
} else if (y <= -3.2e-208) {
tmp = a * (t * (-4.0 / c_m));
} else if (y <= 3.1e-268) {
tmp = 1.0 / (c_m * (z / b));
} else if (y <= 8.2e+63) {
tmp = -4.0 * ((t * a) / c_m);
} else {
tmp = 9.0 * ((y / c_m) * (x / z));
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (y <= (-1.9d-15)) then
tmp = 9.0d0 * (x * (y / (z * c_m)))
else if (y <= (-3.2d-208)) then
tmp = a * (t * ((-4.0d0) / c_m))
else if (y <= 3.1d-268) then
tmp = 1.0d0 / (c_m * (z / b))
else if (y <= 8.2d+63) then
tmp = (-4.0d0) * ((t * a) / c_m)
else
tmp = 9.0d0 * ((y / c_m) * (x / z))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (y <= -1.9e-15) {
tmp = 9.0 * (x * (y / (z * c_m)));
} else if (y <= -3.2e-208) {
tmp = a * (t * (-4.0 / c_m));
} else if (y <= 3.1e-268) {
tmp = 1.0 / (c_m * (z / b));
} else if (y <= 8.2e+63) {
tmp = -4.0 * ((t * a) / c_m);
} else {
tmp = 9.0 * ((y / c_m) * (x / z));
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if y <= -1.9e-15: tmp = 9.0 * (x * (y / (z * c_m))) elif y <= -3.2e-208: tmp = a * (t * (-4.0 / c_m)) elif y <= 3.1e-268: tmp = 1.0 / (c_m * (z / b)) elif y <= 8.2e+63: tmp = -4.0 * ((t * a) / c_m) else: tmp = 9.0 * ((y / c_m) * (x / z)) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (y <= -1.9e-15) tmp = Float64(9.0 * Float64(x * Float64(y / Float64(z * c_m)))); elseif (y <= -3.2e-208) tmp = Float64(a * Float64(t * Float64(-4.0 / c_m))); elseif (y <= 3.1e-268) tmp = Float64(1.0 / Float64(c_m * Float64(z / b))); elseif (y <= 8.2e+63) tmp = Float64(-4.0 * Float64(Float64(t * a) / c_m)); else tmp = Float64(9.0 * Float64(Float64(y / c_m) * Float64(x / z))); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
tmp = 0.0;
if (y <= -1.9e-15)
tmp = 9.0 * (x * (y / (z * c_m)));
elseif (y <= -3.2e-208)
tmp = a * (t * (-4.0 / c_m));
elseif (y <= 3.1e-268)
tmp = 1.0 / (c_m * (z / b));
elseif (y <= 8.2e+63)
tmp = -4.0 * ((t * a) / c_m);
else
tmp = 9.0 * ((y / c_m) * (x / z));
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[y, -1.9e-15], N[(9.0 * N[(x * N[(y / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.2e-208], N[(a * N[(t * N[(-4.0 / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.1e-268], N[(1.0 / N[(c$95$m * N[(z / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.2e+63], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], N[(9.0 * N[(N[(y / c$95$m), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;y \leq -1.9 \cdot 10^{-15}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c\_m}\right)\\
\mathbf{elif}\;y \leq -3.2 \cdot 10^{-208}:\\
\;\;\;\;a \cdot \left(t \cdot \frac{-4}{c\_m}\right)\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{-268}:\\
\;\;\;\;\frac{1}{c\_m \cdot \frac{z}{b}}\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{+63}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;9 \cdot \left(\frac{y}{c\_m} \cdot \frac{x}{z}\right)\\
\end{array}
\end{array}
if y < -1.9000000000000001e-15Initial program 72.7%
Simplified71.2%
Taylor expanded in x around inf 43.9%
associate-/l*50.4%
*-commutative50.4%
Simplified50.4%
if -1.9000000000000001e-15 < y < -3.2000000000000001e-208Initial program 93.0%
Simplified89.7%
Taylor expanded in t around inf 51.2%
*-commutative51.2%
associate-/l*56.2%
associate-*r*56.2%
*-commutative56.2%
*-commutative56.2%
associate-*l/56.2%
Simplified56.2%
associate-/l*56.2%
Applied egg-rr56.2%
if -3.2000000000000001e-208 < y < 3.0999999999999998e-268Initial program 83.7%
Simplified83.7%
Taylor expanded in b around inf 68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in b around 0 68.0%
associate-/r*54.2%
Simplified54.2%
clear-num54.2%
inv-pow54.2%
Applied egg-rr54.2%
unpow-154.2%
associate-/r/63.9%
Simplified63.9%
if 3.0999999999999998e-268 < y < 8.19999999999999985e63Initial program 85.9%
Simplified86.8%
Taylor expanded in t around inf 51.9%
if 8.19999999999999985e63 < y Initial program 65.0%
Simplified71.8%
Taylor expanded in x around inf 50.0%
*-commutative50.0%
*-commutative50.0%
*-commutative50.0%
times-frac63.5%
Simplified63.5%
Final simplification55.9%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= y -3.1e-9)
(* 9.0 (* x (/ y (* z c_m))))
(if (<= y 2e+68)
(/ (+ b (* z (* a (* t -4.0)))) (* z c_m))
(if (<= y 2.2e+196)
(/ (+ (* (* x 9.0) y) b) (* z c_m))
(* 9.0 (* (/ y c_m) (/ x z))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (y <= -3.1e-9) {
tmp = 9.0 * (x * (y / (z * c_m)));
} else if (y <= 2e+68) {
tmp = (b + (z * (a * (t * -4.0)))) / (z * c_m);
} else if (y <= 2.2e+196) {
tmp = (((x * 9.0) * y) + b) / (z * c_m);
} else {
tmp = 9.0 * ((y / c_m) * (x / z));
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (y <= (-3.1d-9)) then
tmp = 9.0d0 * (x * (y / (z * c_m)))
else if (y <= 2d+68) then
tmp = (b + (z * (a * (t * (-4.0d0))))) / (z * c_m)
else if (y <= 2.2d+196) then
tmp = (((x * 9.0d0) * y) + b) / (z * c_m)
else
tmp = 9.0d0 * ((y / c_m) * (x / z))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (y <= -3.1e-9) {
tmp = 9.0 * (x * (y / (z * c_m)));
} else if (y <= 2e+68) {
tmp = (b + (z * (a * (t * -4.0)))) / (z * c_m);
} else if (y <= 2.2e+196) {
tmp = (((x * 9.0) * y) + b) / (z * c_m);
} else {
tmp = 9.0 * ((y / c_m) * (x / z));
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if y <= -3.1e-9: tmp = 9.0 * (x * (y / (z * c_m))) elif y <= 2e+68: tmp = (b + (z * (a * (t * -4.0)))) / (z * c_m) elif y <= 2.2e+196: tmp = (((x * 9.0) * y) + b) / (z * c_m) else: tmp = 9.0 * ((y / c_m) * (x / z)) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (y <= -3.1e-9) tmp = Float64(9.0 * Float64(x * Float64(y / Float64(z * c_m)))); elseif (y <= 2e+68) tmp = Float64(Float64(b + Float64(z * Float64(a * Float64(t * -4.0)))) / Float64(z * c_m)); elseif (y <= 2.2e+196) tmp = Float64(Float64(Float64(Float64(x * 9.0) * y) + b) / Float64(z * c_m)); else tmp = Float64(9.0 * Float64(Float64(y / c_m) * Float64(x / z))); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
tmp = 0.0;
if (y <= -3.1e-9)
tmp = 9.0 * (x * (y / (z * c_m)));
elseif (y <= 2e+68)
tmp = (b + (z * (a * (t * -4.0)))) / (z * c_m);
elseif (y <= 2.2e+196)
tmp = (((x * 9.0) * y) + b) / (z * c_m);
else
tmp = 9.0 * ((y / c_m) * (x / z));
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[y, -3.1e-9], N[(9.0 * N[(x * N[(y / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+68], N[(N[(b + N[(z * N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e+196], N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], N[(9.0 * N[(N[(y / c$95$m), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;y \leq -3.1 \cdot 10^{-9}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c\_m}\right)\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+68}:\\
\;\;\;\;\frac{b + z \cdot \left(a \cdot \left(t \cdot -4\right)\right)}{z \cdot c\_m}\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+196}:\\
\;\;\;\;\frac{\left(x \cdot 9\right) \cdot y + b}{z \cdot c\_m}\\
\mathbf{else}:\\
\;\;\;\;9 \cdot \left(\frac{y}{c\_m} \cdot \frac{x}{z}\right)\\
\end{array}
\end{array}
if y < -3.10000000000000005e-9Initial program 72.3%
Simplified70.7%
Taylor expanded in x around inf 44.6%
associate-/l*51.2%
*-commutative51.2%
Simplified51.2%
if -3.10000000000000005e-9 < y < 1.99999999999999991e68Initial program 87.6%
Simplified87.2%
Taylor expanded in x around inf 83.4%
+-commutative83.4%
fma-define83.4%
*-commutative83.4%
associate-/l*79.0%
associate-*l*79.0%
*-commutative79.0%
associate-/l*77.3%
Simplified77.3%
Taylor expanded in x around 0 77.7%
*-commutative77.7%
*-commutative77.7%
associate-*r*78.3%
*-commutative78.3%
associate-*l*78.8%
associate-*r*78.8%
*-commutative78.8%
associate-*r*78.8%
*-commutative78.8%
associate-*l*78.8%
Simplified78.8%
if 1.99999999999999991e68 < y < 2.19999999999999998e196Initial program 77.8%
Simplified81.2%
Taylor expanded in x around inf 74.7%
+-commutative74.7%
fma-define74.7%
*-commutative74.7%
associate-/l*73.7%
associate-*l*73.7%
*-commutative73.7%
associate-/l*77.1%
Simplified77.1%
Taylor expanded in x around inf 68.3%
*-commutative68.3%
associate-*r*68.4%
*-commutative68.4%
associate-*r*68.3%
Simplified68.3%
if 2.19999999999999998e196 < y Initial program 51.3%
Simplified61.8%
Taylor expanded in x around inf 48.0%
*-commutative48.0%
*-commutative48.0%
*-commutative48.0%
times-frac72.1%
Simplified72.1%
Final simplification70.4%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= b -2.3e-92)
(/ (+ b (* 9.0 (* x y))) (* z c_m))
(if (<= b 1.75e+68)
(/ (- (* 9.0 (/ (* x y) z)) (* 4.0 (* t a))) c_m)
(/ (- b (* 4.0 (* a (* z t)))) (* z c_m))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -2.3e-92) {
tmp = (b + (9.0 * (x * y))) / (z * c_m);
} else if (b <= 1.75e+68) {
tmp = ((9.0 * ((x * y) / z)) - (4.0 * (t * a))) / c_m;
} else {
tmp = (b - (4.0 * (a * (z * t)))) / (z * c_m);
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (b <= (-2.3d-92)) then
tmp = (b + (9.0d0 * (x * y))) / (z * c_m)
else if (b <= 1.75d+68) then
tmp = ((9.0d0 * ((x * y) / z)) - (4.0d0 * (t * a))) / c_m
else
tmp = (b - (4.0d0 * (a * (z * t)))) / (z * c_m)
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -2.3e-92) {
tmp = (b + (9.0 * (x * y))) / (z * c_m);
} else if (b <= 1.75e+68) {
tmp = ((9.0 * ((x * y) / z)) - (4.0 * (t * a))) / c_m;
} else {
tmp = (b - (4.0 * (a * (z * t)))) / (z * c_m);
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if b <= -2.3e-92: tmp = (b + (9.0 * (x * y))) / (z * c_m) elif b <= 1.75e+68: tmp = ((9.0 * ((x * y) / z)) - (4.0 * (t * a))) / c_m else: tmp = (b - (4.0 * (a * (z * t)))) / (z * c_m) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (b <= -2.3e-92) tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c_m)); elseif (b <= 1.75e+68) tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) - Float64(4.0 * Float64(t * a))) / c_m); else tmp = Float64(Float64(b - Float64(4.0 * Float64(a * Float64(z * t)))) / Float64(z * c_m)); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
tmp = 0.0;
if (b <= -2.3e-92)
tmp = (b + (9.0 * (x * y))) / (z * c_m);
elseif (b <= 1.75e+68)
tmp = ((9.0 * ((x * y) / z)) - (4.0 * (t * a))) / c_m;
else
tmp = (b - (4.0 * (a * (z * t)))) / (z * c_m);
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[b, -2.3e-92], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e+68], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision], N[(N[(b - N[(4.0 * N[(a * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -2.3 \cdot 10^{-92}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c\_m}\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{+68}:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{z} - 4 \cdot \left(t \cdot a\right)}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{b - 4 \cdot \left(a \cdot \left(z \cdot t\right)\right)}{z \cdot c\_m}\\
\end{array}
\end{array}
if b < -2.30000000000000016e-92Initial program 73.3%
Simplified74.6%
Taylor expanded in t around 0 67.5%
+-commutative67.5%
*-commutative67.5%
Simplified67.5%
if -2.30000000000000016e-92 < b < 1.74999999999999989e68Initial program 80.1%
associate-+l-80.1%
*-commutative80.1%
associate-*r*79.0%
*-commutative79.0%
associate-+l-79.0%
associate-*l*79.1%
associate-*l*80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in z around inf 79.9%
Taylor expanded in b around 0 78.8%
if 1.74999999999999989e68 < b Initial program 83.6%
associate-+l-83.6%
*-commutative83.6%
associate-*r*85.3%
*-commutative85.3%
associate-+l-85.3%
associate-*l*85.3%
associate-*l*83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in x around 0 79.3%
Final simplification75.7%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= x -1.34e+73)
(* 9.0 (* x (/ y (* z c_m))))
(if (<= x -7e-94)
(* -4.0 (/ (* t a) c_m))
(if (<= x 4.2e-83)
(* b (/ 1.0 (* z c_m)))
(* 9.0 (* y (/ (/ x c_m) z))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (x <= -1.34e+73) {
tmp = 9.0 * (x * (y / (z * c_m)));
} else if (x <= -7e-94) {
tmp = -4.0 * ((t * a) / c_m);
} else if (x <= 4.2e-83) {
tmp = b * (1.0 / (z * c_m));
} else {
tmp = 9.0 * (y * ((x / c_m) / z));
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (x <= (-1.34d+73)) then
tmp = 9.0d0 * (x * (y / (z * c_m)))
else if (x <= (-7d-94)) then
tmp = (-4.0d0) * ((t * a) / c_m)
else if (x <= 4.2d-83) then
tmp = b * (1.0d0 / (z * c_m))
else
tmp = 9.0d0 * (y * ((x / c_m) / z))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (x <= -1.34e+73) {
tmp = 9.0 * (x * (y / (z * c_m)));
} else if (x <= -7e-94) {
tmp = -4.0 * ((t * a) / c_m);
} else if (x <= 4.2e-83) {
tmp = b * (1.0 / (z * c_m));
} else {
tmp = 9.0 * (y * ((x / c_m) / z));
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if x <= -1.34e+73: tmp = 9.0 * (x * (y / (z * c_m))) elif x <= -7e-94: tmp = -4.0 * ((t * a) / c_m) elif x <= 4.2e-83: tmp = b * (1.0 / (z * c_m)) else: tmp = 9.0 * (y * ((x / c_m) / z)) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (x <= -1.34e+73) tmp = Float64(9.0 * Float64(x * Float64(y / Float64(z * c_m)))); elseif (x <= -7e-94) tmp = Float64(-4.0 * Float64(Float64(t * a) / c_m)); elseif (x <= 4.2e-83) tmp = Float64(b * Float64(1.0 / Float64(z * c_m))); else tmp = Float64(9.0 * Float64(y * Float64(Float64(x / c_m) / z))); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
tmp = 0.0;
if (x <= -1.34e+73)
tmp = 9.0 * (x * (y / (z * c_m)));
elseif (x <= -7e-94)
tmp = -4.0 * ((t * a) / c_m);
elseif (x <= 4.2e-83)
tmp = b * (1.0 / (z * c_m));
else
tmp = 9.0 * (y * ((x / c_m) / z));
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[x, -1.34e+73], N[(9.0 * N[(x * N[(y / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7e-94], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.2e-83], N[(b * N[(1.0 / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(9.0 * N[(y * N[(N[(x / c$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;x \leq -1.34 \cdot 10^{+73}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c\_m}\right)\\
\mathbf{elif}\;x \leq -7 \cdot 10^{-94}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c\_m}\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{-83}:\\
\;\;\;\;b \cdot \frac{1}{z \cdot c\_m}\\
\mathbf{else}:\\
\;\;\;\;9 \cdot \left(y \cdot \frac{\frac{x}{c\_m}}{z}\right)\\
\end{array}
\end{array}
if x < -1.34e73Initial program 78.4%
Simplified78.5%
Taylor expanded in x around inf 54.2%
associate-/l*58.9%
*-commutative58.9%
Simplified58.9%
if -1.34e73 < x < -6.99999999999999996e-94Initial program 75.4%
Simplified77.3%
Taylor expanded in t around inf 47.2%
if -6.99999999999999996e-94 < x < 4.1999999999999998e-83Initial program 83.4%
Simplified84.1%
Taylor expanded in b around inf 54.7%
*-commutative54.7%
Simplified54.7%
div-inv54.7%
Applied egg-rr54.7%
if 4.1999999999999998e-83 < x Initial program 75.5%
Simplified76.9%
Taylor expanded in z around 0 67.6%
clear-num67.6%
inv-pow67.6%
fma-define67.6%
associate-/l*68.8%
*-commutative68.8%
fma-define68.8%
associate-/l*78.1%
Applied egg-rr78.1%
unpow-178.1%
associate-*r/76.8%
*-commutative76.8%
associate-*r*75.5%
Simplified75.5%
Taylor expanded in x around inf 42.9%
*-commutative42.9%
*-commutative42.9%
associate-/l*50.9%
*-commutative50.9%
associate-/r*52.3%
Simplified52.3%
Final simplification53.8%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= y 3.2e+198)
(/ (+ b (- (* x (* 9.0 y)) (* (* z 4.0) (* t a)))) (* z c_m))
(* 9.0 (* (/ y z) (/ x c_m))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (y <= 3.2e+198) {
tmp = (b + ((x * (9.0 * y)) - ((z * 4.0) * (t * a)))) / (z * c_m);
} else {
tmp = 9.0 * ((y / z) * (x / c_m));
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (y <= 3.2d+198) then
tmp = (b + ((x * (9.0d0 * y)) - ((z * 4.0d0) * (t * a)))) / (z * c_m)
else
tmp = 9.0d0 * ((y / z) * (x / c_m))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (y <= 3.2e+198) {
tmp = (b + ((x * (9.0 * y)) - ((z * 4.0) * (t * a)))) / (z * c_m);
} else {
tmp = 9.0 * ((y / z) * (x / c_m));
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if y <= 3.2e+198: tmp = (b + ((x * (9.0 * y)) - ((z * 4.0) * (t * a)))) / (z * c_m) else: tmp = 9.0 * ((y / z) * (x / c_m)) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (y <= 3.2e+198) tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(z * 4.0) * Float64(t * a)))) / Float64(z * c_m)); else tmp = Float64(9.0 * Float64(Float64(y / z) * Float64(x / c_m))); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
tmp = 0.0;
if (y <= 3.2e+198)
tmp = (b + ((x * (9.0 * y)) - ((z * 4.0) * (t * a)))) / (z * c_m);
else
tmp = 9.0 * ((y / z) * (x / c_m));
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[y, 3.2e+198], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], N[(9.0 * N[(N[(y / z), $MachinePrecision] * N[(x / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;y \leq 3.2 \cdot 10^{+198}:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right)}{z \cdot c\_m}\\
\mathbf{else}:\\
\;\;\;\;9 \cdot \left(\frac{y}{z} \cdot \frac{x}{c\_m}\right)\\
\end{array}
\end{array}
if y < 3.1999999999999998e198Initial program 82.0%
associate-+l-82.0%
*-commutative82.0%
associate-*r*81.7%
*-commutative81.7%
associate-+l-81.7%
associate-*l*81.7%
associate-*l*81.4%
*-commutative81.4%
Simplified81.4%
if 3.1999999999999998e198 < y Initial program 53.0%
Simplified63.9%
Taylor expanded in x around inf 60.6%
+-commutative60.6%
fma-define60.6%
*-commutative60.6%
associate-/l*57.1%
associate-*l*57.1%
*-commutative57.1%
associate-/l*60.8%
Simplified60.8%
Taylor expanded in x around inf 49.6%
times-frac67.5%
*-commutative67.5%
Simplified67.5%
Final simplification79.9%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= b -2.9e-77)
(* b (/ 1.0 (* z c_m)))
(if (<= b -2.25e-187)
(* 9.0 (* x (/ y (* z c_m))))
(if (<= b 1.65e+81) (* -4.0 (/ (* t a) c_m)) (/ (/ b c_m) z))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -2.9e-77) {
tmp = b * (1.0 / (z * c_m));
} else if (b <= -2.25e-187) {
tmp = 9.0 * (x * (y / (z * c_m)));
} else if (b <= 1.65e+81) {
tmp = -4.0 * ((t * a) / c_m);
} else {
tmp = (b / c_m) / z;
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (b <= (-2.9d-77)) then
tmp = b * (1.0d0 / (z * c_m))
else if (b <= (-2.25d-187)) then
tmp = 9.0d0 * (x * (y / (z * c_m)))
else if (b <= 1.65d+81) then
tmp = (-4.0d0) * ((t * a) / c_m)
else
tmp = (b / c_m) / z
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -2.9e-77) {
tmp = b * (1.0 / (z * c_m));
} else if (b <= -2.25e-187) {
tmp = 9.0 * (x * (y / (z * c_m)));
} else if (b <= 1.65e+81) {
tmp = -4.0 * ((t * a) / c_m);
} else {
tmp = (b / c_m) / z;
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if b <= -2.9e-77: tmp = b * (1.0 / (z * c_m)) elif b <= -2.25e-187: tmp = 9.0 * (x * (y / (z * c_m))) elif b <= 1.65e+81: tmp = -4.0 * ((t * a) / c_m) else: tmp = (b / c_m) / z return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (b <= -2.9e-77) tmp = Float64(b * Float64(1.0 / Float64(z * c_m))); elseif (b <= -2.25e-187) tmp = Float64(9.0 * Float64(x * Float64(y / Float64(z * c_m)))); elseif (b <= 1.65e+81) tmp = Float64(-4.0 * Float64(Float64(t * a) / c_m)); else tmp = Float64(Float64(b / c_m) / z); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
tmp = 0.0;
if (b <= -2.9e-77)
tmp = b * (1.0 / (z * c_m));
elseif (b <= -2.25e-187)
tmp = 9.0 * (x * (y / (z * c_m)));
elseif (b <= 1.65e+81)
tmp = -4.0 * ((t * a) / c_m);
else
tmp = (b / c_m) / z;
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[b, -2.9e-77], N[(b * N[(1.0 / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.25e-187], N[(9.0 * N[(x * N[(y / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.65e+81], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(b / c$95$m), $MachinePrecision] / z), $MachinePrecision]]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -2.9 \cdot 10^{-77}:\\
\;\;\;\;b \cdot \frac{1}{z \cdot c\_m}\\
\mathbf{elif}\;b \leq -2.25 \cdot 10^{-187}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c\_m}\right)\\
\mathbf{elif}\;b \leq 1.65 \cdot 10^{+81}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{c\_m}}{z}\\
\end{array}
\end{array}
if b < -2.8999999999999999e-77Initial program 71.7%
Simplified73.1%
Taylor expanded in b around inf 47.2%
*-commutative47.2%
Simplified47.2%
div-inv47.2%
Applied egg-rr47.2%
if -2.8999999999999999e-77 < b < -2.2499999999999999e-187Initial program 84.1%
Simplified80.9%
Taylor expanded in x around inf 59.6%
associate-/l*60.1%
*-commutative60.1%
Simplified60.1%
if -2.2499999999999999e-187 < b < 1.65e81Initial program 79.9%
Simplified81.4%
Taylor expanded in t around inf 55.7%
if 1.65e81 < b Initial program 83.3%
Simplified85.0%
Taylor expanded in b around inf 71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in b around 0 71.4%
associate-/r*74.2%
Simplified74.2%
Final simplification57.7%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= t -3.4e+185)
(* a (/ (* t -4.0) c_m))
(if (<= t 1e-64)
(/ (+ (* (* x 9.0) y) b) (* z c_m))
(* a (* t (/ -4.0 c_m)))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (t <= -3.4e+185) {
tmp = a * ((t * -4.0) / c_m);
} else if (t <= 1e-64) {
tmp = (((x * 9.0) * y) + b) / (z * c_m);
} else {
tmp = a * (t * (-4.0 / c_m));
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (t <= (-3.4d+185)) then
tmp = a * ((t * (-4.0d0)) / c_m)
else if (t <= 1d-64) then
tmp = (((x * 9.0d0) * y) + b) / (z * c_m)
else
tmp = a * (t * ((-4.0d0) / c_m))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (t <= -3.4e+185) {
tmp = a * ((t * -4.0) / c_m);
} else if (t <= 1e-64) {
tmp = (((x * 9.0) * y) + b) / (z * c_m);
} else {
tmp = a * (t * (-4.0 / c_m));
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if t <= -3.4e+185: tmp = a * ((t * -4.0) / c_m) elif t <= 1e-64: tmp = (((x * 9.0) * y) + b) / (z * c_m) else: tmp = a * (t * (-4.0 / c_m)) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (t <= -3.4e+185) tmp = Float64(a * Float64(Float64(t * -4.0) / c_m)); elseif (t <= 1e-64) tmp = Float64(Float64(Float64(Float64(x * 9.0) * y) + b) / Float64(z * c_m)); else tmp = Float64(a * Float64(t * Float64(-4.0 / c_m))); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
tmp = 0.0;
if (t <= -3.4e+185)
tmp = a * ((t * -4.0) / c_m);
elseif (t <= 1e-64)
tmp = (((x * 9.0) * y) + b) / (z * c_m);
else
tmp = a * (t * (-4.0 / c_m));
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[t, -3.4e+185], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-64], N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(-4.0 / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;t \leq -3.4 \cdot 10^{+185}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c\_m}\\
\mathbf{elif}\;t \leq 10^{-64}:\\
\;\;\;\;\frac{\left(x \cdot 9\right) \cdot y + b}{z \cdot c\_m}\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \frac{-4}{c\_m}\right)\\
\end{array}
\end{array}
if t < -3.40000000000000017e185Initial program 73.6%
Simplified81.3%
Taylor expanded in t around inf 70.0%
*-commutative70.0%
associate-/l*66.6%
associate-*r*66.6%
*-commutative66.6%
*-commutative66.6%
associate-*l/66.6%
Simplified66.6%
if -3.40000000000000017e185 < t < 9.99999999999999965e-65Initial program 82.5%
Simplified80.1%
Taylor expanded in x around inf 77.2%
+-commutative77.2%
fma-define77.2%
*-commutative77.2%
associate-/l*73.6%
associate-*l*73.6%
*-commutative73.6%
associate-/l*73.3%
Simplified73.3%
Taylor expanded in x around inf 67.1%
*-commutative67.1%
associate-*r*67.1%
*-commutative67.1%
associate-*r*67.1%
Simplified67.1%
if 9.99999999999999965e-65 < t Initial program 74.5%
Simplified79.0%
Taylor expanded in t around inf 41.5%
*-commutative41.5%
associate-/l*46.9%
associate-*r*46.9%
*-commutative46.9%
*-commutative46.9%
associate-*l/46.9%
Simplified46.9%
associate-/l*46.9%
Applied egg-rr46.9%
Final simplification60.3%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= t -2.8e+185)
(* a (/ (* t -4.0) c_m))
(if (<= t 1e-64)
(/ (+ b (* 9.0 (* x y))) (* z c_m))
(* a (* t (/ -4.0 c_m)))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (t <= -2.8e+185) {
tmp = a * ((t * -4.0) / c_m);
} else if (t <= 1e-64) {
tmp = (b + (9.0 * (x * y))) / (z * c_m);
} else {
tmp = a * (t * (-4.0 / c_m));
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (t <= (-2.8d+185)) then
tmp = a * ((t * (-4.0d0)) / c_m)
else if (t <= 1d-64) then
tmp = (b + (9.0d0 * (x * y))) / (z * c_m)
else
tmp = a * (t * ((-4.0d0) / c_m))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (t <= -2.8e+185) {
tmp = a * ((t * -4.0) / c_m);
} else if (t <= 1e-64) {
tmp = (b + (9.0 * (x * y))) / (z * c_m);
} else {
tmp = a * (t * (-4.0 / c_m));
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if t <= -2.8e+185: tmp = a * ((t * -4.0) / c_m) elif t <= 1e-64: tmp = (b + (9.0 * (x * y))) / (z * c_m) else: tmp = a * (t * (-4.0 / c_m)) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (t <= -2.8e+185) tmp = Float64(a * Float64(Float64(t * -4.0) / c_m)); elseif (t <= 1e-64) tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c_m)); else tmp = Float64(a * Float64(t * Float64(-4.0 / c_m))); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
tmp = 0.0;
if (t <= -2.8e+185)
tmp = a * ((t * -4.0) / c_m);
elseif (t <= 1e-64)
tmp = (b + (9.0 * (x * y))) / (z * c_m);
else
tmp = a * (t * (-4.0 / c_m));
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[t, -2.8e+185], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-64], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(-4.0 / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;t \leq -2.8 \cdot 10^{+185}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c\_m}\\
\mathbf{elif}\;t \leq 10^{-64}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c\_m}\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \frac{-4}{c\_m}\right)\\
\end{array}
\end{array}
if t < -2.79999999999999982e185Initial program 73.6%
Simplified81.3%
Taylor expanded in t around inf 70.0%
*-commutative70.0%
associate-/l*66.6%
associate-*r*66.6%
*-commutative66.6%
*-commutative66.6%
associate-*l/66.6%
Simplified66.6%
if -2.79999999999999982e185 < t < 9.99999999999999965e-65Initial program 82.5%
Simplified80.1%
Taylor expanded in t around 0 67.1%
+-commutative67.1%
*-commutative67.1%
Simplified67.1%
if 9.99999999999999965e-65 < t Initial program 74.5%
Simplified79.0%
Taylor expanded in t around inf 41.5%
*-commutative41.5%
associate-/l*46.9%
associate-*r*46.9%
*-commutative46.9%
*-commutative46.9%
associate-*l/46.9%
Simplified46.9%
associate-/l*46.9%
Applied egg-rr46.9%
Final simplification60.3%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= b -9e+123)
(/ b (* z c_m))
(if (<= b 1.2e+81) (* a (/ (* t -4.0) c_m)) (/ (/ b c_m) z)))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -9e+123) {
tmp = b / (z * c_m);
} else if (b <= 1.2e+81) {
tmp = a * ((t * -4.0) / c_m);
} else {
tmp = (b / c_m) / z;
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (b <= (-9d+123)) then
tmp = b / (z * c_m)
else if (b <= 1.2d+81) then
tmp = a * ((t * (-4.0d0)) / c_m)
else
tmp = (b / c_m) / z
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -9e+123) {
tmp = b / (z * c_m);
} else if (b <= 1.2e+81) {
tmp = a * ((t * -4.0) / c_m);
} else {
tmp = (b / c_m) / z;
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if b <= -9e+123: tmp = b / (z * c_m) elif b <= 1.2e+81: tmp = a * ((t * -4.0) / c_m) else: tmp = (b / c_m) / z return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (b <= -9e+123) tmp = Float64(b / Float64(z * c_m)); elseif (b <= 1.2e+81) tmp = Float64(a * Float64(Float64(t * -4.0) / c_m)); else tmp = Float64(Float64(b / c_m) / z); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
tmp = 0.0;
if (b <= -9e+123)
tmp = b / (z * c_m);
elseif (b <= 1.2e+81)
tmp = a * ((t * -4.0) / c_m);
else
tmp = (b / c_m) / z;
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[b, -9e+123], N[(b / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e+81], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(b / c$95$m), $MachinePrecision] / z), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -9 \cdot 10^{+123}:\\
\;\;\;\;\frac{b}{z \cdot c\_m}\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{+81}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{c\_m}}{z}\\
\end{array}
\end{array}
if b < -8.99999999999999965e123Initial program 78.4%
Simplified78.4%
Taylor expanded in b around inf 65.5%
*-commutative65.5%
Simplified65.5%
if -8.99999999999999965e123 < b < 1.19999999999999995e81Initial program 77.7%
Simplified78.6%
Taylor expanded in t around inf 49.1%
*-commutative49.1%
associate-/l*48.0%
associate-*r*48.0%
*-commutative48.0%
*-commutative48.0%
associate-*l/48.0%
Simplified48.0%
if 1.19999999999999995e81 < b Initial program 83.3%
Simplified85.0%
Taylor expanded in b around inf 71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in b around 0 71.4%
associate-/r*74.2%
Simplified74.2%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= b -9.2e+123)
(/ b (* z c_m))
(if (<= b 3.7e+81) (* a (* t (/ -4.0 c_m))) (/ (/ b c_m) z)))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -9.2e+123) {
tmp = b / (z * c_m);
} else if (b <= 3.7e+81) {
tmp = a * (t * (-4.0 / c_m));
} else {
tmp = (b / c_m) / z;
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (b <= (-9.2d+123)) then
tmp = b / (z * c_m)
else if (b <= 3.7d+81) then
tmp = a * (t * ((-4.0d0) / c_m))
else
tmp = (b / c_m) / z
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -9.2e+123) {
tmp = b / (z * c_m);
} else if (b <= 3.7e+81) {
tmp = a * (t * (-4.0 / c_m));
} else {
tmp = (b / c_m) / z;
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if b <= -9.2e+123: tmp = b / (z * c_m) elif b <= 3.7e+81: tmp = a * (t * (-4.0 / c_m)) else: tmp = (b / c_m) / z return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (b <= -9.2e+123) tmp = Float64(b / Float64(z * c_m)); elseif (b <= 3.7e+81) tmp = Float64(a * Float64(t * Float64(-4.0 / c_m))); else tmp = Float64(Float64(b / c_m) / z); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
tmp = 0.0;
if (b <= -9.2e+123)
tmp = b / (z * c_m);
elseif (b <= 3.7e+81)
tmp = a * (t * (-4.0 / c_m));
else
tmp = (b / c_m) / z;
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[b, -9.2e+123], N[(b / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e+81], N[(a * N[(t * N[(-4.0 / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b / c$95$m), $MachinePrecision] / z), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -9.2 \cdot 10^{+123}:\\
\;\;\;\;\frac{b}{z \cdot c\_m}\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{+81}:\\
\;\;\;\;a \cdot \left(t \cdot \frac{-4}{c\_m}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{c\_m}}{z}\\
\end{array}
\end{array}
if b < -9.19999999999999962e123Initial program 78.4%
Simplified78.4%
Taylor expanded in b around inf 65.5%
*-commutative65.5%
Simplified65.5%
if -9.19999999999999962e123 < b < 3.7000000000000001e81Initial program 77.7%
Simplified78.6%
Taylor expanded in t around inf 49.1%
*-commutative49.1%
associate-/l*48.0%
associate-*r*48.0%
*-commutative48.0%
*-commutative48.0%
associate-*l/48.0%
Simplified48.0%
associate-/l*48.0%
Applied egg-rr48.0%
if 3.7000000000000001e81 < b Initial program 83.3%
Simplified85.0%
Taylor expanded in b around inf 71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in b around 0 71.4%
associate-/r*74.2%
Simplified74.2%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= b -9e+123)
(/ b (* z c_m))
(if (<= b 1.7e+83) (* -4.0 (/ (* t a) c_m)) (/ (/ b c_m) z)))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -9e+123) {
tmp = b / (z * c_m);
} else if (b <= 1.7e+83) {
tmp = -4.0 * ((t * a) / c_m);
} else {
tmp = (b / c_m) / z;
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (b <= (-9d+123)) then
tmp = b / (z * c_m)
else if (b <= 1.7d+83) then
tmp = (-4.0d0) * ((t * a) / c_m)
else
tmp = (b / c_m) / z
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -9e+123) {
tmp = b / (z * c_m);
} else if (b <= 1.7e+83) {
tmp = -4.0 * ((t * a) / c_m);
} else {
tmp = (b / c_m) / z;
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if b <= -9e+123: tmp = b / (z * c_m) elif b <= 1.7e+83: tmp = -4.0 * ((t * a) / c_m) else: tmp = (b / c_m) / z return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (b <= -9e+123) tmp = Float64(b / Float64(z * c_m)); elseif (b <= 1.7e+83) tmp = Float64(-4.0 * Float64(Float64(t * a) / c_m)); else tmp = Float64(Float64(b / c_m) / z); end return Float64(c_s * tmp) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp_2 = code(c_s, x, y, z, t, a, b, c_m)
tmp = 0.0;
if (b <= -9e+123)
tmp = b / (z * c_m);
elseif (b <= 1.7e+83)
tmp = -4.0 * ((t * a) / c_m);
else
tmp = (b / c_m) / z;
end
tmp_2 = c_s * tmp;
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[b, -9e+123], N[(b / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e+83], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(b / c$95$m), $MachinePrecision] / z), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -9 \cdot 10^{+123}:\\
\;\;\;\;\frac{b}{z \cdot c\_m}\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+83}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{c\_m}}{z}\\
\end{array}
\end{array}
if b < -8.99999999999999965e123Initial program 78.4%
Simplified78.4%
Taylor expanded in b around inf 65.5%
*-commutative65.5%
Simplified65.5%
if -8.99999999999999965e123 < b < 1.6999999999999999e83Initial program 77.7%
Simplified78.6%
Taylor expanded in t around inf 49.1%
if 1.6999999999999999e83 < b Initial program 83.3%
Simplified85.0%
Taylor expanded in b around inf 71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in b around 0 71.4%
associate-/r*74.2%
Simplified74.2%
Final simplification56.2%
c\_m = (fabs.f64 c) c\_s = (copysign.f64 #s(literal 1 binary64) c) NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function. (FPCore (c_s x y z t a b c_m) :precision binary64 (* c_s (/ b (* z c_m))))
c\_m = fabs(c);
c\_s = copysign(1.0, c);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
assert(x < y && y < z && z < t && t < a && a < b && b < c_m);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
return c_s * (b / (z * c_m));
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c_m
code = c_s * (b / (z * c_m))
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
assert x < y && y < z && z < t && t < a && a < b && b < c_m;
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
return c_s * (b / (z * c_m));
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) [x, y, z, t, a, b, c_m] = sort([x, y, z, t, a, b, c_m]) def code(c_s, x, y, z, t, a, b, c_m): return c_s * (b / (z * c_m))
c\_m = abs(c) c\_s = copysign(1.0, c) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) x, y, z, t, a, b, c_m = sort([x, y, z, t, a, b, c_m]) function code(c_s, x, y, z, t, a, b, c_m) return Float64(c_s * Float64(b / Float64(z * c_m))) end
c\_m = abs(c);
c\_s = sign(c) * abs(1.0);
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
x, y, z, t, a, b, c_m = num2cell(sort([x, y, z, t, a, b, c_m])){:}
function tmp = code(c_s, x, y, z, t, a, b, c_m)
tmp = c_s * (b / (z * c_m));
end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c_m should be sorted in increasing order before calling this function.
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * N[(b / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\\\
[x, y, z, t, a, b, c_m] = \mathsf{sort}([x, y, z, t, a, b, c_m])\\
\\
c\_s \cdot \frac{b}{z \cdot c\_m}
\end{array}
Initial program 78.9%
Simplified79.8%
Taylor expanded in b around inf 38.5%
*-commutative38.5%
Simplified38.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 2024137
(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)))