
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(* j (- (* a c) (* y i)))
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))))))
(if (<= t_1 INFINITY) t_1 (* c (- (* a j) (* z b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = c * ((a * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = c * ((a * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.0%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in c around inf 65.6%
*-commutative65.6%
Simplified65.6%
Final simplification86.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ t_1 (* b (* t i))))
(t_3 (+ (* j (- (* a c) (* y i))) (* x (* y z))))
(t_4 (* z (- (* x y) (* b c)))))
(if (<= z -1.85e+174)
t_4
(if (<= z -3e-122)
t_3
(if (<= z -2.8e-198)
t_2
(if (<= z -1.65e-264)
t_3
(if (<= z -2.7e-296)
(- t_1 (* i (* y j)))
(if (<= z 1.5e+46)
(* y (- (/ (* a (- (* c j) (* x t))) y) (* i j)))
(if (<= z 1.95e+132)
(* b (- (* t i) (* z c)))
(if (<= z 1.15e+181)
t_3
(if (<= z 3.9e+196) t_2 t_4)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = t_1 + (b * (t * i));
double t_3 = (j * ((a * c) - (y * i))) + (x * (y * z));
double t_4 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.85e+174) {
tmp = t_4;
} else if (z <= -3e-122) {
tmp = t_3;
} else if (z <= -2.8e-198) {
tmp = t_2;
} else if (z <= -1.65e-264) {
tmp = t_3;
} else if (z <= -2.7e-296) {
tmp = t_1 - (i * (y * j));
} else if (z <= 1.5e+46) {
tmp = y * (((a * ((c * j) - (x * t))) / y) - (i * j));
} else if (z <= 1.95e+132) {
tmp = b * ((t * i) - (z * c));
} else if (z <= 1.15e+181) {
tmp = t_3;
} else if (z <= 3.9e+196) {
tmp = t_2;
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = t_1 + (b * (t * i))
t_3 = (j * ((a * c) - (y * i))) + (x * (y * z))
t_4 = z * ((x * y) - (b * c))
if (z <= (-1.85d+174)) then
tmp = t_4
else if (z <= (-3d-122)) then
tmp = t_3
else if (z <= (-2.8d-198)) then
tmp = t_2
else if (z <= (-1.65d-264)) then
tmp = t_3
else if (z <= (-2.7d-296)) then
tmp = t_1 - (i * (y * j))
else if (z <= 1.5d+46) then
tmp = y * (((a * ((c * j) - (x * t))) / y) - (i * j))
else if (z <= 1.95d+132) then
tmp = b * ((t * i) - (z * c))
else if (z <= 1.15d+181) then
tmp = t_3
else if (z <= 3.9d+196) then
tmp = t_2
else
tmp = t_4
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 i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = t_1 + (b * (t * i));
double t_3 = (j * ((a * c) - (y * i))) + (x * (y * z));
double t_4 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.85e+174) {
tmp = t_4;
} else if (z <= -3e-122) {
tmp = t_3;
} else if (z <= -2.8e-198) {
tmp = t_2;
} else if (z <= -1.65e-264) {
tmp = t_3;
} else if (z <= -2.7e-296) {
tmp = t_1 - (i * (y * j));
} else if (z <= 1.5e+46) {
tmp = y * (((a * ((c * j) - (x * t))) / y) - (i * j));
} else if (z <= 1.95e+132) {
tmp = b * ((t * i) - (z * c));
} else if (z <= 1.15e+181) {
tmp = t_3;
} else if (z <= 3.9e+196) {
tmp = t_2;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = t_1 + (b * (t * i)) t_3 = (j * ((a * c) - (y * i))) + (x * (y * z)) t_4 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.85e+174: tmp = t_4 elif z <= -3e-122: tmp = t_3 elif z <= -2.8e-198: tmp = t_2 elif z <= -1.65e-264: tmp = t_3 elif z <= -2.7e-296: tmp = t_1 - (i * (y * j)) elif z <= 1.5e+46: tmp = y * (((a * ((c * j) - (x * t))) / y) - (i * j)) elif z <= 1.95e+132: tmp = b * ((t * i) - (z * c)) elif z <= 1.15e+181: tmp = t_3 elif z <= 3.9e+196: tmp = t_2 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(t_1 + Float64(b * Float64(t * i))) t_3 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(y * z))) t_4 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.85e+174) tmp = t_4; elseif (z <= -3e-122) tmp = t_3; elseif (z <= -2.8e-198) tmp = t_2; elseif (z <= -1.65e-264) tmp = t_3; elseif (z <= -2.7e-296) tmp = Float64(t_1 - Float64(i * Float64(y * j))); elseif (z <= 1.5e+46) tmp = Float64(y * Float64(Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) / y) - Float64(i * j))); elseif (z <= 1.95e+132) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (z <= 1.15e+181) tmp = t_3; elseif (z <= 3.9e+196) tmp = t_2; else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = t_1 + (b * (t * i)); t_3 = (j * ((a * c) - (y * i))) + (x * (y * z)); t_4 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1.85e+174) tmp = t_4; elseif (z <= -3e-122) tmp = t_3; elseif (z <= -2.8e-198) tmp = t_2; elseif (z <= -1.65e-264) tmp = t_3; elseif (z <= -2.7e-296) tmp = t_1 - (i * (y * j)); elseif (z <= 1.5e+46) tmp = y * (((a * ((c * j) - (x * t))) / y) - (i * j)); elseif (z <= 1.95e+132) tmp = b * ((t * i) - (z * c)); elseif (z <= 1.15e+181) tmp = t_3; elseif (z <= 3.9e+196) tmp = t_2; else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.85e+174], t$95$4, If[LessEqual[z, -3e-122], t$95$3, If[LessEqual[z, -2.8e-198], t$95$2, If[LessEqual[z, -1.65e-264], t$95$3, If[LessEqual[z, -2.7e-296], N[(t$95$1 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e+46], N[(y * N[(N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.95e+132], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.15e+181], t$95$3, If[LessEqual[z, 3.9e+196], t$95$2, t$95$4]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := t\_1 + b \cdot \left(t \cdot i\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
t_4 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.85 \cdot 10^{+174}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-122}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-198}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.65 \cdot 10^{-264}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{-296}:\\
\;\;\;\;t\_1 - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+46}:\\
\;\;\;\;y \cdot \left(\frac{a \cdot \left(c \cdot j - x \cdot t\right)}{y} - i \cdot j\right)\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{+132}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{+181}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{+196}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if z < -1.8500000000000001e174 or 3.9e196 < z Initial program 67.9%
Taylor expanded in z around inf 84.6%
*-commutative84.6%
Simplified84.6%
if -1.8500000000000001e174 < z < -3.00000000000000004e-122 or -2.7999999999999999e-198 < z < -1.65000000000000006e-264 or 1.95000000000000001e132 < z < 1.1499999999999999e181Initial program 77.4%
Taylor expanded in b around 0 73.4%
Taylor expanded in t around 0 70.2%
if -3.00000000000000004e-122 < z < -2.7999999999999999e-198 or 1.1499999999999999e181 < z < 3.9e196Initial program 89.6%
Taylor expanded in c around 0 84.3%
Taylor expanded in i around 0 84.2%
if -1.65000000000000006e-264 < z < -2.69999999999999999e-296Initial program 57.2%
Taylor expanded in b around 0 71.4%
Taylor expanded in a around 0 85.7%
associate-*r*85.7%
neg-mul-185.7%
Simplified85.7%
if -2.69999999999999999e-296 < z < 1.50000000000000012e46Initial program 78.2%
Taylor expanded in b around 0 67.0%
Taylor expanded in y around -inf 71.0%
mul-1-neg71.0%
*-commutative71.0%
distribute-rgt-neg-in71.0%
Simplified73.7%
Taylor expanded in z around 0 69.9%
if 1.50000000000000012e46 < z < 1.95000000000000001e132Initial program 72.5%
Taylor expanded in b around inf 67.2%
Final simplification74.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -3.1e+224)
t_1
(if (<= b -7.4e+178)
(+ (* x (- (* y z) (* t a))) (* b (* t i)))
(if (<= b -5.2e+146)
(* c (- (* a j) (* z b)))
(if (or (<= b -5.5e+29)
(and (not (<= b -170000000.0)) (<= b 1.8e+141)))
(- (* j (- (* a c) (* y i))) (* x (- (* t a) (* y z))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.1e+224) {
tmp = t_1;
} else if (b <= -7.4e+178) {
tmp = (x * ((y * z) - (t * a))) + (b * (t * i));
} else if (b <= -5.2e+146) {
tmp = c * ((a * j) - (z * b));
} else if ((b <= -5.5e+29) || (!(b <= -170000000.0) && (b <= 1.8e+141))) {
tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-3.1d+224)) then
tmp = t_1
else if (b <= (-7.4d+178)) then
tmp = (x * ((y * z) - (t * a))) + (b * (t * i))
else if (b <= (-5.2d+146)) then
tmp = c * ((a * j) - (z * b))
else if ((b <= (-5.5d+29)) .or. (.not. (b <= (-170000000.0d0))) .and. (b <= 1.8d+141)) then
tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.1e+224) {
tmp = t_1;
} else if (b <= -7.4e+178) {
tmp = (x * ((y * z) - (t * a))) + (b * (t * i));
} else if (b <= -5.2e+146) {
tmp = c * ((a * j) - (z * b));
} else if ((b <= -5.5e+29) || (!(b <= -170000000.0) && (b <= 1.8e+141))) {
tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.1e+224: tmp = t_1 elif b <= -7.4e+178: tmp = (x * ((y * z) - (t * a))) + (b * (t * i)) elif b <= -5.2e+146: tmp = c * ((a * j) - (z * b)) elif (b <= -5.5e+29) or (not (b <= -170000000.0) and (b <= 1.8e+141)): tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.1e+224) tmp = t_1; elseif (b <= -7.4e+178) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(t * i))); elseif (b <= -5.2e+146) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif ((b <= -5.5e+29) || (!(b <= -170000000.0) && (b <= 1.8e+141))) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.1e+224) tmp = t_1; elseif (b <= -7.4e+178) tmp = (x * ((y * z) - (t * a))) + (b * (t * i)); elseif (b <= -5.2e+146) tmp = c * ((a * j) - (z * b)); elseif ((b <= -5.5e+29) || (~((b <= -170000000.0)) && (b <= 1.8e+141))) tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.1e+224], t$95$1, If[LessEqual[b, -7.4e+178], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.2e+146], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, -5.5e+29], And[N[Not[LessEqual[b, -170000000.0]], $MachinePrecision], LessEqual[b, 1.8e+141]]], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.1 \cdot 10^{+224}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.4 \cdot 10^{+178}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{+146}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq -5.5 \cdot 10^{+29} \lor \neg \left(b \leq -170000000\right) \land b \leq 1.8 \cdot 10^{+141}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.0999999999999999e224 or -5.5e29 < b < -1.7e8 or 1.8000000000000001e141 < b Initial program 67.9%
Taylor expanded in b around inf 84.9%
if -3.0999999999999999e224 < b < -7.4000000000000005e178Initial program 90.6%
Taylor expanded in c around 0 99.7%
Taylor expanded in i around 0 99.7%
if -7.4000000000000005e178 < b < -5.20000000000000028e146Initial program 66.7%
Taylor expanded in c around inf 79.2%
*-commutative79.2%
Simplified79.2%
if -5.20000000000000028e146 < b < -5.5e29 or -1.7e8 < b < 1.8000000000000001e141Initial program 77.8%
Taylor expanded in b around 0 72.9%
Final simplification77.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -3.7e+223)
t_1
(if (<= b -7.5e+196)
(* x (- (* y z) (* t a)))
(if (<= b -1.3e+113)
t_1
(if (<= b -2.7e+42)
(* a (- (* c j) (* x t)))
(if (<= b -3.4e-59)
(* i (- (* t b) (* y j)))
(if (<= b 1.8e+105)
(+ (* j (- (* a c) (* y i))) (* x (* y z)))
t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.7e+223) {
tmp = t_1;
} else if (b <= -7.5e+196) {
tmp = x * ((y * z) - (t * a));
} else if (b <= -1.3e+113) {
tmp = t_1;
} else if (b <= -2.7e+42) {
tmp = a * ((c * j) - (x * t));
} else if (b <= -3.4e-59) {
tmp = i * ((t * b) - (y * j));
} else if (b <= 1.8e+105) {
tmp = (j * ((a * c) - (y * i))) + (x * (y * z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-3.7d+223)) then
tmp = t_1
else if (b <= (-7.5d+196)) then
tmp = x * ((y * z) - (t * a))
else if (b <= (-1.3d+113)) then
tmp = t_1
else if (b <= (-2.7d+42)) then
tmp = a * ((c * j) - (x * t))
else if (b <= (-3.4d-59)) then
tmp = i * ((t * b) - (y * j))
else if (b <= 1.8d+105) then
tmp = (j * ((a * c) - (y * i))) + (x * (y * z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.7e+223) {
tmp = t_1;
} else if (b <= -7.5e+196) {
tmp = x * ((y * z) - (t * a));
} else if (b <= -1.3e+113) {
tmp = t_1;
} else if (b <= -2.7e+42) {
tmp = a * ((c * j) - (x * t));
} else if (b <= -3.4e-59) {
tmp = i * ((t * b) - (y * j));
} else if (b <= 1.8e+105) {
tmp = (j * ((a * c) - (y * i))) + (x * (y * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.7e+223: tmp = t_1 elif b <= -7.5e+196: tmp = x * ((y * z) - (t * a)) elif b <= -1.3e+113: tmp = t_1 elif b <= -2.7e+42: tmp = a * ((c * j) - (x * t)) elif b <= -3.4e-59: tmp = i * ((t * b) - (y * j)) elif b <= 1.8e+105: tmp = (j * ((a * c) - (y * i))) + (x * (y * z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.7e+223) tmp = t_1; elseif (b <= -7.5e+196) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= -1.3e+113) tmp = t_1; elseif (b <= -2.7e+42) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= -3.4e-59) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= 1.8e+105) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(y * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.7e+223) tmp = t_1; elseif (b <= -7.5e+196) tmp = x * ((y * z) - (t * a)); elseif (b <= -1.3e+113) tmp = t_1; elseif (b <= -2.7e+42) tmp = a * ((c * j) - (x * t)); elseif (b <= -3.4e-59) tmp = i * ((t * b) - (y * j)); elseif (b <= 1.8e+105) tmp = (j * ((a * c) - (y * i))) + (x * (y * z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.7e+223], t$95$1, If[LessEqual[b, -7.5e+196], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.3e+113], t$95$1, If[LessEqual[b, -2.7e+42], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.4e-59], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.8e+105], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.7 \cdot 10^{+223}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{+196}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{+113}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{+42}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq -3.4 \cdot 10^{-59}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{+105}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.7000000000000002e223 or -7.5000000000000005e196 < b < -1.3e113 or 1.7999999999999999e105 < b Initial program 69.8%
Taylor expanded in b around inf 76.2%
if -3.7000000000000002e223 < b < -7.5000000000000005e196Initial program 87.3%
Taylor expanded in b around 0 87.3%
Taylor expanded in j around 0 99.8%
if -1.3e113 < b < -2.7000000000000001e42Initial program 76.0%
Taylor expanded in a around inf 64.1%
+-commutative64.1%
mul-1-neg64.1%
unsub-neg64.1%
Simplified64.1%
if -2.7000000000000001e42 < b < -3.40000000000000018e-59Initial program 90.3%
Taylor expanded in i around inf 71.8%
distribute-lft-out--71.8%
Simplified71.8%
Taylor expanded in i around 0 71.8%
mul-1-neg71.8%
*-commutative71.8%
sub-neg71.8%
+-commutative71.8%
+-commutative71.8%
sub-neg71.8%
distribute-rgt-neg-in71.8%
neg-sub071.8%
sub-neg71.8%
+-commutative71.8%
associate--r+71.8%
neg-sub071.8%
remove-double-neg71.8%
Simplified71.8%
if -3.40000000000000018e-59 < b < 1.7999999999999999e105Initial program 76.0%
Taylor expanded in b around 0 74.0%
Taylor expanded in t around 0 63.8%
Final simplification69.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j))))
(t_2 (* a (- (* c j) (* x t))))
(t_3 (* z (- (* x y) (* b c)))))
(if (<= z -1.75e+75)
t_3
(if (<= z -2.35e-64)
(* c (- (* a j) (* z b)))
(if (<= z -2.1e-111)
t_1
(if (<= z -2.6e-140)
t_2
(if (<= z 1.1e-242)
t_1
(if (<= z 3.6e+44) t_2 (if (<= z 2.1e+181) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = a * ((c * j) - (x * t));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.75e+75) {
tmp = t_3;
} else if (z <= -2.35e-64) {
tmp = c * ((a * j) - (z * b));
} else if (z <= -2.1e-111) {
tmp = t_1;
} else if (z <= -2.6e-140) {
tmp = t_2;
} else if (z <= 1.1e-242) {
tmp = t_1;
} else if (z <= 3.6e+44) {
tmp = t_2;
} else if (z <= 2.1e+181) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = a * ((c * j) - (x * t))
t_3 = z * ((x * y) - (b * c))
if (z <= (-1.75d+75)) then
tmp = t_3
else if (z <= (-2.35d-64)) then
tmp = c * ((a * j) - (z * b))
else if (z <= (-2.1d-111)) then
tmp = t_1
else if (z <= (-2.6d-140)) then
tmp = t_2
else if (z <= 1.1d-242) then
tmp = t_1
else if (z <= 3.6d+44) then
tmp = t_2
else if (z <= 2.1d+181) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = a * ((c * j) - (x * t));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.75e+75) {
tmp = t_3;
} else if (z <= -2.35e-64) {
tmp = c * ((a * j) - (z * b));
} else if (z <= -2.1e-111) {
tmp = t_1;
} else if (z <= -2.6e-140) {
tmp = t_2;
} else if (z <= 1.1e-242) {
tmp = t_1;
} else if (z <= 3.6e+44) {
tmp = t_2;
} else if (z <= 2.1e+181) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = a * ((c * j) - (x * t)) t_3 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.75e+75: tmp = t_3 elif z <= -2.35e-64: tmp = c * ((a * j) - (z * b)) elif z <= -2.1e-111: tmp = t_1 elif z <= -2.6e-140: tmp = t_2 elif z <= 1.1e-242: tmp = t_1 elif z <= 3.6e+44: tmp = t_2 elif z <= 2.1e+181: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.75e+75) tmp = t_3; elseif (z <= -2.35e-64) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (z <= -2.1e-111) tmp = t_1; elseif (z <= -2.6e-140) tmp = t_2; elseif (z <= 1.1e-242) tmp = t_1; elseif (z <= 3.6e+44) tmp = t_2; elseif (z <= 2.1e+181) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = a * ((c * j) - (x * t)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1.75e+75) tmp = t_3; elseif (z <= -2.35e-64) tmp = c * ((a * j) - (z * b)); elseif (z <= -2.1e-111) tmp = t_1; elseif (z <= -2.6e-140) tmp = t_2; elseif (z <= 1.1e-242) tmp = t_1; elseif (z <= 3.6e+44) tmp = t_2; elseif (z <= 2.1e+181) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.75e+75], t$95$3, If[LessEqual[z, -2.35e-64], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.1e-111], t$95$1, If[LessEqual[z, -2.6e-140], t$95$2, If[LessEqual[z, 1.1e-242], t$95$1, If[LessEqual[z, 3.6e+44], t$95$2, If[LessEqual[z, 2.1e+181], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.75 \cdot 10^{+75}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -2.35 \cdot 10^{-64}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{-111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-140}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{-242}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+44}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+181}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -1.7499999999999999e75 or 2.09999999999999997e181 < z Initial program 69.2%
Taylor expanded in z around inf 75.4%
*-commutative75.4%
Simplified75.4%
if -1.7499999999999999e75 < z < -2.3499999999999999e-64Initial program 91.6%
Taylor expanded in c around inf 57.3%
*-commutative57.3%
Simplified57.3%
if -2.3499999999999999e-64 < z < -2.0999999999999999e-111 or -2.5999999999999998e-140 < z < 1.10000000000000001e-242 or 3.6e44 < z < 2.09999999999999997e181Initial program 78.6%
Taylor expanded in i around inf 61.1%
distribute-lft-out--61.1%
Simplified61.1%
Taylor expanded in i around 0 61.1%
mul-1-neg61.1%
*-commutative61.1%
sub-neg61.1%
+-commutative61.1%
+-commutative61.1%
sub-neg61.1%
distribute-rgt-neg-in61.1%
neg-sub061.1%
sub-neg61.1%
+-commutative61.1%
associate--r+61.1%
neg-sub061.1%
remove-double-neg61.1%
Simplified61.1%
if -2.0999999999999999e-111 < z < -2.5999999999999998e-140 or 1.10000000000000001e-242 < z < 3.6e44Initial program 73.5%
Taylor expanded in a around inf 60.7%
+-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
Simplified60.7%
Final simplification65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -2.4e-50)
(+ t_1 (* x (* y z)))
(if (<= j 7.9e-86)
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(if (<= j 5.6e+42)
(* y (+ (* x z) (- (/ (* a (- (* c j) (* x t))) y) (* i j))))
(if (<= j 6.2e+174)
(- (* b (* t i)) (+ (* i (* y j)) (* a (* x t))))
(if (<= j 8.8e+209)
(* a (* c j))
(- t_1 (* x (- (* t a) (* y z)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.4e-50) {
tmp = t_1 + (x * (y * z));
} else if (j <= 7.9e-86) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else if (j <= 5.6e+42) {
tmp = y * ((x * z) + (((a * ((c * j) - (x * t))) / y) - (i * j)));
} else if (j <= 6.2e+174) {
tmp = (b * (t * i)) - ((i * (y * j)) + (a * (x * t)));
} else if (j <= 8.8e+209) {
tmp = a * (c * j);
} else {
tmp = t_1 - (x * ((t * a) - (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
if (j <= (-2.4d-50)) then
tmp = t_1 + (x * (y * z))
else if (j <= 7.9d-86) then
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))
else if (j <= 5.6d+42) then
tmp = y * ((x * z) + (((a * ((c * j) - (x * t))) / y) - (i * j)))
else if (j <= 6.2d+174) then
tmp = (b * (t * i)) - ((i * (y * j)) + (a * (x * t)))
else if (j <= 8.8d+209) then
tmp = a * (c * j)
else
tmp = t_1 - (x * ((t * a) - (y * z)))
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 i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.4e-50) {
tmp = t_1 + (x * (y * z));
} else if (j <= 7.9e-86) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else if (j <= 5.6e+42) {
tmp = y * ((x * z) + (((a * ((c * j) - (x * t))) / y) - (i * j)));
} else if (j <= 6.2e+174) {
tmp = (b * (t * i)) - ((i * (y * j)) + (a * (x * t)));
} else if (j <= 8.8e+209) {
tmp = a * (c * j);
} else {
tmp = t_1 - (x * ((t * a) - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -2.4e-50: tmp = t_1 + (x * (y * z)) elif j <= 7.9e-86: tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))) elif j <= 5.6e+42: tmp = y * ((x * z) + (((a * ((c * j) - (x * t))) / y) - (i * j))) elif j <= 6.2e+174: tmp = (b * (t * i)) - ((i * (y * j)) + (a * (x * t))) elif j <= 8.8e+209: tmp = a * (c * j) else: tmp = t_1 - (x * ((t * a) - (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.4e-50) tmp = Float64(t_1 + Float64(x * Float64(y * z))); elseif (j <= 7.9e-86) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (j <= 5.6e+42) tmp = Float64(y * Float64(Float64(x * z) + Float64(Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) / y) - Float64(i * j)))); elseif (j <= 6.2e+174) tmp = Float64(Float64(b * Float64(t * i)) - Float64(Float64(i * Float64(y * j)) + Float64(a * Float64(x * t)))); elseif (j <= 8.8e+209) tmp = Float64(a * Float64(c * j)); else tmp = Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -2.4e-50) tmp = t_1 + (x * (y * z)); elseif (j <= 7.9e-86) tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))); elseif (j <= 5.6e+42) tmp = y * ((x * z) + (((a * ((c * j) - (x * t))) / y) - (i * j))); elseif (j <= 6.2e+174) tmp = (b * (t * i)) - ((i * (y * j)) + (a * (x * t))); elseif (j <= 8.8e+209) tmp = a * (c * j); else tmp = t_1 - (x * ((t * a) - (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.4e-50], N[(t$95$1 + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7.9e-86], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.6e+42], N[(y * N[(N[(x * z), $MachinePrecision] + N[(N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.2e+174], N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - N[(N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision] + N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.8e+209], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.4 \cdot 10^{-50}:\\
\;\;\;\;t\_1 + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 7.9 \cdot 10^{-86}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 5.6 \cdot 10^{+42}:\\
\;\;\;\;y \cdot \left(x \cdot z + \left(\frac{a \cdot \left(c \cdot j - x \cdot t\right)}{y} - i \cdot j\right)\right)\\
\mathbf{elif}\;j \leq 6.2 \cdot 10^{+174}:\\
\;\;\;\;b \cdot \left(t \cdot i\right) - \left(i \cdot \left(y \cdot j\right) + a \cdot \left(x \cdot t\right)\right)\\
\mathbf{elif}\;j \leq 8.8 \cdot 10^{+209}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\end{array}
\end{array}
if j < -2.40000000000000002e-50Initial program 70.8%
Taylor expanded in b around 0 68.3%
Taylor expanded in t around 0 68.3%
if -2.40000000000000002e-50 < j < 7.8999999999999998e-86Initial program 78.7%
Taylor expanded in j around 0 80.8%
if 7.8999999999999998e-86 < j < 5.5999999999999999e42Initial program 69.9%
Taylor expanded in b around 0 62.2%
Taylor expanded in y around -inf 66.7%
mul-1-neg66.7%
*-commutative66.7%
distribute-rgt-neg-in66.7%
Simplified74.4%
if 5.5999999999999999e42 < j < 6.2e174Initial program 73.6%
Taylor expanded in c around 0 69.9%
Taylor expanded in z around 0 85.0%
neg-mul-185.0%
unsub-neg85.0%
mul-1-neg85.0%
distribute-rgt-neg-in85.0%
distribute-rgt-neg-in85.0%
Simplified85.0%
if 6.2e174 < j < 8.7999999999999995e209Initial program 70.2%
Taylor expanded in a around inf 70.3%
+-commutative70.3%
mul-1-neg70.3%
unsub-neg70.3%
Simplified70.3%
Taylor expanded in c around inf 70.7%
if 8.7999999999999995e209 < j Initial program 87.0%
Taylor expanded in b around 0 82.9%
Final simplification77.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= z -2.2e+174)
(* z (- (* x y) (* b c)))
(if (<= z -3.7e-122)
(- (* j (- (* a c) (* y i))) (* x (- (* t a) (* y z))))
(if (<= z -8.6e-251)
(+ (* b (* t i)) (- t_1 (* i (* y j))))
(if (<= z 4.7e+45)
(* y (+ (* x z) (- (/ (* a (- (* c j) (* x t))) y) (* i j))))
(+ t_1 (* b (- (* t i) (* z c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (z <= -2.2e+174) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -3.7e-122) {
tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)));
} else if (z <= -8.6e-251) {
tmp = (b * (t * i)) + (t_1 - (i * (y * j)));
} else if (z <= 4.7e+45) {
tmp = y * ((x * z) + (((a * ((c * j) - (x * t))) / y) - (i * j)));
} else {
tmp = t_1 + (b * ((t * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (z <= (-2.2d+174)) then
tmp = z * ((x * y) - (b * c))
else if (z <= (-3.7d-122)) then
tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)))
else if (z <= (-8.6d-251)) then
tmp = (b * (t * i)) + (t_1 - (i * (y * j)))
else if (z <= 4.7d+45) then
tmp = y * ((x * z) + (((a * ((c * j) - (x * t))) / y) - (i * j)))
else
tmp = t_1 + (b * ((t * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (z <= -2.2e+174) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -3.7e-122) {
tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)));
} else if (z <= -8.6e-251) {
tmp = (b * (t * i)) + (t_1 - (i * (y * j)));
} else if (z <= 4.7e+45) {
tmp = y * ((x * z) + (((a * ((c * j) - (x * t))) / y) - (i * j)));
} else {
tmp = t_1 + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if z <= -2.2e+174: tmp = z * ((x * y) - (b * c)) elif z <= -3.7e-122: tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z))) elif z <= -8.6e-251: tmp = (b * (t * i)) + (t_1 - (i * (y * j))) elif z <= 4.7e+45: tmp = y * ((x * z) + (((a * ((c * j) - (x * t))) / y) - (i * j))) else: tmp = t_1 + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (z <= -2.2e+174) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (z <= -3.7e-122) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); elseif (z <= -8.6e-251) tmp = Float64(Float64(b * Float64(t * i)) + Float64(t_1 - Float64(i * Float64(y * j)))); elseif (z <= 4.7e+45) tmp = Float64(y * Float64(Float64(x * z) + Float64(Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) / y) - Float64(i * j)))); else tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (z <= -2.2e+174) tmp = z * ((x * y) - (b * c)); elseif (z <= -3.7e-122) tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z))); elseif (z <= -8.6e-251) tmp = (b * (t * i)) + (t_1 - (i * (y * j))); elseif (z <= 4.7e+45) tmp = y * ((x * z) + (((a * ((c * j) - (x * t))) / y) - (i * j))); else tmp = t_1 + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+174], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.7e-122], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8.6e-251], N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.7e+45], N[(y * N[(N[(x * z), $MachinePrecision] + N[(N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+174}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq -3.7 \cdot 10^{-122}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{elif}\;z \leq -8.6 \cdot 10^{-251}:\\
\;\;\;\;b \cdot \left(t \cdot i\right) + \left(t\_1 - i \cdot \left(y \cdot j\right)\right)\\
\mathbf{elif}\;z \leq 4.7 \cdot 10^{+45}:\\
\;\;\;\;y \cdot \left(x \cdot z + \left(\frac{a \cdot \left(c \cdot j - x \cdot t\right)}{y} - i \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if z < -2.2000000000000002e174Initial program 59.9%
Taylor expanded in z around inf 85.1%
*-commutative85.1%
Simplified85.1%
if -2.2000000000000002e174 < z < -3.6999999999999997e-122Initial program 77.7%
Taylor expanded in b around 0 72.1%
if -3.6999999999999997e-122 < z < -8.6000000000000004e-251Initial program 84.6%
Taylor expanded in c around 0 76.8%
if -8.6000000000000004e-251 < z < 4.70000000000000002e45Initial program 76.1%
Taylor expanded in b around 0 68.5%
Taylor expanded in y around -inf 73.2%
mul-1-neg73.2%
*-commutative73.2%
distribute-rgt-neg-in73.2%
Simplified75.5%
if 4.70000000000000002e45 < z Initial program 76.3%
Taylor expanded in j around 0 74.8%
Final simplification75.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* y (* x z))) (t_3 (* a (* c j))))
(if (<= c -5.1e-61)
t_3
(if (<= c -6.5e-265)
t_1
(if (<= c -4.25e-306)
t_2
(if (<= c 4.3e-160)
t_1
(if (<= c 3e-59)
(* b (* t i))
(if (or (<= c 9.4e+50) (not (<= c 1.15e+246))) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = y * (x * z);
double t_3 = a * (c * j);
double tmp;
if (c <= -5.1e-61) {
tmp = t_3;
} else if (c <= -6.5e-265) {
tmp = t_1;
} else if (c <= -4.25e-306) {
tmp = t_2;
} else if (c <= 4.3e-160) {
tmp = t_1;
} else if (c <= 3e-59) {
tmp = b * (t * i);
} else if ((c <= 9.4e+50) || !(c <= 1.15e+246)) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = i * (y * -j)
t_2 = y * (x * z)
t_3 = a * (c * j)
if (c <= (-5.1d-61)) then
tmp = t_3
else if (c <= (-6.5d-265)) then
tmp = t_1
else if (c <= (-4.25d-306)) then
tmp = t_2
else if (c <= 4.3d-160) then
tmp = t_1
else if (c <= 3d-59) then
tmp = b * (t * i)
else if ((c <= 9.4d+50) .or. (.not. (c <= 1.15d+246))) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = y * (x * z);
double t_3 = a * (c * j);
double tmp;
if (c <= -5.1e-61) {
tmp = t_3;
} else if (c <= -6.5e-265) {
tmp = t_1;
} else if (c <= -4.25e-306) {
tmp = t_2;
} else if (c <= 4.3e-160) {
tmp = t_1;
} else if (c <= 3e-59) {
tmp = b * (t * i);
} else if ((c <= 9.4e+50) || !(c <= 1.15e+246)) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = y * (x * z) t_3 = a * (c * j) tmp = 0 if c <= -5.1e-61: tmp = t_3 elif c <= -6.5e-265: tmp = t_1 elif c <= -4.25e-306: tmp = t_2 elif c <= 4.3e-160: tmp = t_1 elif c <= 3e-59: tmp = b * (t * i) elif (c <= 9.4e+50) or not (c <= 1.15e+246): tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(y * Float64(x * z)) t_3 = Float64(a * Float64(c * j)) tmp = 0.0 if (c <= -5.1e-61) tmp = t_3; elseif (c <= -6.5e-265) tmp = t_1; elseif (c <= -4.25e-306) tmp = t_2; elseif (c <= 4.3e-160) tmp = t_1; elseif (c <= 3e-59) tmp = Float64(b * Float64(t * i)); elseif ((c <= 9.4e+50) || !(c <= 1.15e+246)) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = y * (x * z); t_3 = a * (c * j); tmp = 0.0; if (c <= -5.1e-61) tmp = t_3; elseif (c <= -6.5e-265) tmp = t_1; elseif (c <= -4.25e-306) tmp = t_2; elseif (c <= 4.3e-160) tmp = t_1; elseif (c <= 3e-59) tmp = b * (t * i); elseif ((c <= 9.4e+50) || ~((c <= 1.15e+246))) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5.1e-61], t$95$3, If[LessEqual[c, -6.5e-265], t$95$1, If[LessEqual[c, -4.25e-306], t$95$2, If[LessEqual[c, 4.3e-160], t$95$1, If[LessEqual[c, 3e-59], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 9.4e+50], N[Not[LessEqual[c, 1.15e+246]], $MachinePrecision]], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := y \cdot \left(x \cdot z\right)\\
t_3 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -5.1 \cdot 10^{-61}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq -6.5 \cdot 10^{-265}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -4.25 \cdot 10^{-306}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 4.3 \cdot 10^{-160}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3 \cdot 10^{-59}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;c \leq 9.4 \cdot 10^{+50} \lor \neg \left(c \leq 1.15 \cdot 10^{+246}\right):\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if c < -5.09999999999999968e-61 or 9.39999999999999947e50 < c < 1.15000000000000007e246Initial program 67.2%
Taylor expanded in a around inf 51.9%
+-commutative51.9%
mul-1-neg51.9%
unsub-neg51.9%
Simplified51.9%
Taylor expanded in c around inf 42.3%
if -5.09999999999999968e-61 < c < -6.5000000000000005e-265 or -4.2500000000000001e-306 < c < 4.30000000000000014e-160Initial program 87.5%
Taylor expanded in y around inf 44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
*-commutative44.8%
Simplified44.8%
Taylor expanded in z around 0 43.1%
neg-mul-143.1%
distribute-rgt-neg-in43.1%
distribute-lft-neg-in43.1%
Simplified43.1%
if -6.5000000000000005e-265 < c < -4.2500000000000001e-306 or 3.0000000000000001e-59 < c < 9.39999999999999947e50 or 1.15000000000000007e246 < c Initial program 73.6%
Taylor expanded in y around inf 53.8%
+-commutative53.8%
mul-1-neg53.8%
unsub-neg53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in z around inf 45.3%
*-commutative45.3%
Simplified45.3%
if 4.30000000000000014e-160 < c < 3.0000000000000001e-59Initial program 89.3%
Taylor expanded in t around inf 69.2%
distribute-lft-out--69.2%
Simplified69.2%
Taylor expanded in a around 0 53.8%
Final simplification44.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* a (* c j))))
(if (<= c -6.1e-62)
t_2
(if (<= c -1.75e-274)
(* b (* t i))
(if (<= c -4.1e-306)
t_1
(if (<= c 2.5e-58)
(* t (* b i))
(if (or (<= c 2.3e+49) (not (<= c 1.15e+246))) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = a * (c * j);
double tmp;
if (c <= -6.1e-62) {
tmp = t_2;
} else if (c <= -1.75e-274) {
tmp = b * (t * i);
} else if (c <= -4.1e-306) {
tmp = t_1;
} else if (c <= 2.5e-58) {
tmp = t * (b * i);
} else if ((c <= 2.3e+49) || !(c <= 1.15e+246)) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (x * z)
t_2 = a * (c * j)
if (c <= (-6.1d-62)) then
tmp = t_2
else if (c <= (-1.75d-274)) then
tmp = b * (t * i)
else if (c <= (-4.1d-306)) then
tmp = t_1
else if (c <= 2.5d-58) then
tmp = t * (b * i)
else if ((c <= 2.3d+49) .or. (.not. (c <= 1.15d+246))) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = a * (c * j);
double tmp;
if (c <= -6.1e-62) {
tmp = t_2;
} else if (c <= -1.75e-274) {
tmp = b * (t * i);
} else if (c <= -4.1e-306) {
tmp = t_1;
} else if (c <= 2.5e-58) {
tmp = t * (b * i);
} else if ((c <= 2.3e+49) || !(c <= 1.15e+246)) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = a * (c * j) tmp = 0 if c <= -6.1e-62: tmp = t_2 elif c <= -1.75e-274: tmp = b * (t * i) elif c <= -4.1e-306: tmp = t_1 elif c <= 2.5e-58: tmp = t * (b * i) elif (c <= 2.3e+49) or not (c <= 1.15e+246): tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(a * Float64(c * j)) tmp = 0.0 if (c <= -6.1e-62) tmp = t_2; elseif (c <= -1.75e-274) tmp = Float64(b * Float64(t * i)); elseif (c <= -4.1e-306) tmp = t_1; elseif (c <= 2.5e-58) tmp = Float64(t * Float64(b * i)); elseif ((c <= 2.3e+49) || !(c <= 1.15e+246)) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = a * (c * j); tmp = 0.0; if (c <= -6.1e-62) tmp = t_2; elseif (c <= -1.75e-274) tmp = b * (t * i); elseif (c <= -4.1e-306) tmp = t_1; elseif (c <= 2.5e-58) tmp = t * (b * i); elseif ((c <= 2.3e+49) || ~((c <= 1.15e+246))) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6.1e-62], t$95$2, If[LessEqual[c, -1.75e-274], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -4.1e-306], t$95$1, If[LessEqual[c, 2.5e-58], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 2.3e+49], N[Not[LessEqual[c, 1.15e+246]], $MachinePrecision]], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -6.1 \cdot 10^{-62}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -1.75 \cdot 10^{-274}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;c \leq -4.1 \cdot 10^{-306}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{-58}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;c \leq 2.3 \cdot 10^{+49} \lor \neg \left(c \leq 1.15 \cdot 10^{+246}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -6.1e-62 or 2.30000000000000002e49 < c < 1.15000000000000007e246Initial program 67.2%
Taylor expanded in a around inf 51.9%
+-commutative51.9%
mul-1-neg51.9%
unsub-neg51.9%
Simplified51.9%
Taylor expanded in c around inf 42.3%
if -6.1e-62 < c < -1.74999999999999991e-274Initial program 87.3%
Taylor expanded in t around inf 40.0%
distribute-lft-out--40.0%
Simplified40.0%
Taylor expanded in a around 0 39.7%
if -1.74999999999999991e-274 < c < -4.09999999999999985e-306 or 2.49999999999999989e-58 < c < 2.30000000000000002e49 or 1.15000000000000007e246 < c Initial program 71.4%
Taylor expanded in y around inf 55.9%
+-commutative55.9%
mul-1-neg55.9%
unsub-neg55.9%
*-commutative55.9%
Simplified55.9%
Taylor expanded in z around inf 46.9%
*-commutative46.9%
Simplified46.9%
if -4.09999999999999985e-306 < c < 2.49999999999999989e-58Initial program 89.2%
Taylor expanded in t around inf 61.0%
distribute-lft-out--61.0%
Simplified61.0%
Taylor expanded in a around 0 36.1%
associate-*r*38.4%
*-commutative38.4%
Simplified38.4%
Final simplification41.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -1.45e-12)
t_2
(if (<= c 102000000000.0)
(+ t_1 (* b (* t i)))
(if (or (<= c 2.5e+138) (not (<= c 6.5e+164)))
t_2
(- t_1 (* i (* y j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.45e-12) {
tmp = t_2;
} else if (c <= 102000000000.0) {
tmp = t_1 + (b * (t * i));
} else if ((c <= 2.5e+138) || !(c <= 6.5e+164)) {
tmp = t_2;
} else {
tmp = t_1 - (i * (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = c * ((a * j) - (z * b))
if (c <= (-1.45d-12)) then
tmp = t_2
else if (c <= 102000000000.0d0) then
tmp = t_1 + (b * (t * i))
else if ((c <= 2.5d+138) .or. (.not. (c <= 6.5d+164))) then
tmp = t_2
else
tmp = t_1 - (i * (y * j))
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 i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.45e-12) {
tmp = t_2;
} else if (c <= 102000000000.0) {
tmp = t_1 + (b * (t * i));
} else if ((c <= 2.5e+138) || !(c <= 6.5e+164)) {
tmp = t_2;
} else {
tmp = t_1 - (i * (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.45e-12: tmp = t_2 elif c <= 102000000000.0: tmp = t_1 + (b * (t * i)) elif (c <= 2.5e+138) or not (c <= 6.5e+164): tmp = t_2 else: tmp = t_1 - (i * (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.45e-12) tmp = t_2; elseif (c <= 102000000000.0) tmp = Float64(t_1 + Float64(b * Float64(t * i))); elseif ((c <= 2.5e+138) || !(c <= 6.5e+164)) tmp = t_2; else tmp = Float64(t_1 - Float64(i * Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.45e-12) tmp = t_2; elseif (c <= 102000000000.0) tmp = t_1 + (b * (t * i)); elseif ((c <= 2.5e+138) || ~((c <= 6.5e+164))) tmp = t_2; else tmp = t_1 - (i * (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.45e-12], t$95$2, If[LessEqual[c, 102000000000.0], N[(t$95$1 + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 2.5e+138], N[Not[LessEqual[c, 6.5e+164]], $MachinePrecision]], t$95$2, N[(t$95$1 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.45 \cdot 10^{-12}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 102000000000:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{+138} \lor \neg \left(c \leq 6.5 \cdot 10^{+164}\right):\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1 - i \cdot \left(y \cdot j\right)\\
\end{array}
\end{array}
if c < -1.4500000000000001e-12 or 1.02e11 < c < 2.50000000000000008e138 or 6.5000000000000003e164 < c Initial program 65.0%
Taylor expanded in c around inf 65.6%
*-commutative65.6%
Simplified65.6%
if -1.4500000000000001e-12 < c < 1.02e11Initial program 86.6%
Taylor expanded in c around 0 80.4%
Taylor expanded in i around 0 66.0%
if 2.50000000000000008e138 < c < 6.5000000000000003e164Initial program 72.3%
Taylor expanded in b around 0 70.9%
Taylor expanded in a around 0 85.2%
associate-*r*85.2%
neg-mul-185.2%
Simplified85.2%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -2.9e+17)
t_1
(if (<= c 1.8e-154)
(- (* x (- (* y z) (* t a))) (* i (* y j)))
(if (<= c 2.2e-59)
(* t (- (* b i) (* x a)))
(if (<= c 3.45e+25)
(+ (* j (- (* a c) (* y i))) (* x (* y z)))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.9e+17) {
tmp = t_1;
} else if (c <= 1.8e-154) {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
} else if (c <= 2.2e-59) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 3.45e+25) {
tmp = (j * ((a * c) - (y * i))) + (x * (y * z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
if (c <= (-2.9d+17)) then
tmp = t_1
else if (c <= 1.8d-154) then
tmp = (x * ((y * z) - (t * a))) - (i * (y * j))
else if (c <= 2.2d-59) then
tmp = t * ((b * i) - (x * a))
else if (c <= 3.45d+25) then
tmp = (j * ((a * c) - (y * i))) + (x * (y * z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.9e+17) {
tmp = t_1;
} else if (c <= 1.8e-154) {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
} else if (c <= 2.2e-59) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 3.45e+25) {
tmp = (j * ((a * c) - (y * i))) + (x * (y * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) tmp = 0 if c <= -2.9e+17: tmp = t_1 elif c <= 1.8e-154: tmp = (x * ((y * z) - (t * a))) - (i * (y * j)) elif c <= 2.2e-59: tmp = t * ((b * i) - (x * a)) elif c <= 3.45e+25: tmp = (j * ((a * c) - (y * i))) + (x * (y * z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.9e+17) tmp = t_1; elseif (c <= 1.8e-154) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(i * Float64(y * j))); elseif (c <= 2.2e-59) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 3.45e+25) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(y * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -2.9e+17) tmp = t_1; elseif (c <= 1.8e-154) tmp = (x * ((y * z) - (t * a))) - (i * (y * j)); elseif (c <= 2.2e-59) tmp = t * ((b * i) - (x * a)); elseif (c <= 3.45e+25) tmp = (j * ((a * c) - (y * i))) + (x * (y * z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.9e+17], t$95$1, If[LessEqual[c, 1.8e-154], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.2e-59], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.45e+25], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.9 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{-154}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;c \leq 2.2 \cdot 10^{-59}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 3.45 \cdot 10^{+25}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -2.9e17 or 3.4499999999999999e25 < c Initial program 65.1%
Taylor expanded in c around inf 63.5%
*-commutative63.5%
Simplified63.5%
if -2.9e17 < c < 1.8000000000000001e-154Initial program 87.6%
Taylor expanded in b around 0 69.1%
Taylor expanded in a around 0 66.1%
associate-*r*66.1%
neg-mul-166.1%
Simplified66.1%
if 1.8000000000000001e-154 < c < 2.1999999999999999e-59Initial program 88.1%
Taylor expanded in t around inf 71.4%
distribute-lft-out--71.4%
Simplified71.4%
if 2.1999999999999999e-59 < c < 3.4499999999999999e25Initial program 76.6%
Taylor expanded in b around 0 66.1%
Taylor expanded in t around 0 66.1%
Final simplification65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* i (- (* t b) (* y j))))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= c -0.042)
t_3
(if (<= c -5.2e-263)
t_2
(if (<= c 1.9e-282)
t_1
(if (<= c 3.6e-38) t_2 (if (<= c 7.5e+29) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -0.042) {
tmp = t_3;
} else if (c <= -5.2e-263) {
tmp = t_2;
} else if (c <= 1.9e-282) {
tmp = t_1;
} else if (c <= 3.6e-38) {
tmp = t_2;
} else if (c <= 7.5e+29) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = i * ((t * b) - (y * j))
t_3 = c * ((a * j) - (z * b))
if (c <= (-0.042d0)) then
tmp = t_3
else if (c <= (-5.2d-263)) then
tmp = t_2
else if (c <= 1.9d-282) then
tmp = t_1
else if (c <= 3.6d-38) then
tmp = t_2
else if (c <= 7.5d+29) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -0.042) {
tmp = t_3;
} else if (c <= -5.2e-263) {
tmp = t_2;
} else if (c <= 1.9e-282) {
tmp = t_1;
} else if (c <= 3.6e-38) {
tmp = t_2;
} else if (c <= 7.5e+29) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = i * ((t * b) - (y * j)) t_3 = c * ((a * j) - (z * b)) tmp = 0 if c <= -0.042: tmp = t_3 elif c <= -5.2e-263: tmp = t_2 elif c <= 1.9e-282: tmp = t_1 elif c <= 3.6e-38: tmp = t_2 elif c <= 7.5e+29: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -0.042) tmp = t_3; elseif (c <= -5.2e-263) tmp = t_2; elseif (c <= 1.9e-282) tmp = t_1; elseif (c <= 3.6e-38) tmp = t_2; elseif (c <= 7.5e+29) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = i * ((t * b) - (y * j)); t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -0.042) tmp = t_3; elseif (c <= -5.2e-263) tmp = t_2; elseif (c <= 1.9e-282) tmp = t_1; elseif (c <= 3.6e-38) tmp = t_2; elseif (c <= 7.5e+29) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -0.042], t$95$3, If[LessEqual[c, -5.2e-263], t$95$2, If[LessEqual[c, 1.9e-282], t$95$1, If[LessEqual[c, 3.6e-38], t$95$2, If[LessEqual[c, 7.5e+29], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -0.042:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq -5.2 \cdot 10^{-263}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 1.9 \cdot 10^{-282}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3.6 \cdot 10^{-38}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 7.5 \cdot 10^{+29}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if c < -0.0420000000000000026 or 7.49999999999999945e29 < c Initial program 65.4%
Taylor expanded in c around inf 63.7%
*-commutative63.7%
Simplified63.7%
if -0.0420000000000000026 < c < -5.2000000000000001e-263 or 1.89999999999999996e-282 < c < 3.6000000000000001e-38Initial program 86.7%
Taylor expanded in i around inf 61.6%
distribute-lft-out--61.6%
Simplified61.6%
Taylor expanded in i around 0 61.6%
mul-1-neg61.6%
*-commutative61.6%
sub-neg61.6%
+-commutative61.6%
+-commutative61.6%
sub-neg61.6%
distribute-rgt-neg-in61.6%
neg-sub061.6%
sub-neg61.6%
+-commutative61.6%
associate--r+61.6%
neg-sub061.6%
remove-double-neg61.6%
Simplified61.6%
if -5.2000000000000001e-263 < c < 1.89999999999999996e-282 or 3.6000000000000001e-38 < c < 7.49999999999999945e29Initial program 84.9%
Taylor expanded in b around 0 74.9%
Taylor expanded in j around 0 61.8%
Final simplification62.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= b -1.56e+116)
(and (not (<= b -6.2e+65)) (or (<= b -2.4e-95) (not (<= b 3.6e+29)))))
(* b (- (* t i) (* z c)))
(* a (- (* c j) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.56e+116) || (!(b <= -6.2e+65) && ((b <= -2.4e-95) || !(b <= 3.6e+29)))) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-1.56d+116)) .or. (.not. (b <= (-6.2d+65))) .and. (b <= (-2.4d-95)) .or. (.not. (b <= 3.6d+29))) then
tmp = b * ((t * i) - (z * c))
else
tmp = a * ((c * j) - (x * t))
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 i, double j) {
double tmp;
if ((b <= -1.56e+116) || (!(b <= -6.2e+65) && ((b <= -2.4e-95) || !(b <= 3.6e+29)))) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.56e+116) or (not (b <= -6.2e+65) and ((b <= -2.4e-95) or not (b <= 3.6e+29))): tmp = b * ((t * i) - (z * c)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.56e+116) || (!(b <= -6.2e+65) && ((b <= -2.4e-95) || !(b <= 3.6e+29)))) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.56e+116) || (~((b <= -6.2e+65)) && ((b <= -2.4e-95) || ~((b <= 3.6e+29))))) tmp = b * ((t * i) - (z * c)); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.56e+116], And[N[Not[LessEqual[b, -6.2e+65]], $MachinePrecision], Or[LessEqual[b, -2.4e-95], N[Not[LessEqual[b, 3.6e+29]], $MachinePrecision]]]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.56 \cdot 10^{+116} \lor \neg \left(b \leq -6.2 \cdot 10^{+65}\right) \land \left(b \leq -2.4 \cdot 10^{-95} \lor \neg \left(b \leq 3.6 \cdot 10^{+29}\right)\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if b < -1.56000000000000002e116 or -6.19999999999999981e65 < b < -2.4e-95 or 3.59999999999999976e29 < b Initial program 76.8%
Taylor expanded in b around inf 66.3%
if -1.56000000000000002e116 < b < -6.19999999999999981e65 or -2.4e-95 < b < 3.59999999999999976e29Initial program 74.6%
Taylor expanded in a around inf 49.8%
+-commutative49.8%
mul-1-neg49.8%
unsub-neg49.8%
Simplified49.8%
Final simplification57.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -0.44)
t_2
(if (<= c -6.6e-276)
t_1
(if (<= c -4.25e-306) (* y (* x z)) (if (<= c 6.5e-43) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -0.44) {
tmp = t_2;
} else if (c <= -6.6e-276) {
tmp = t_1;
} else if (c <= -4.25e-306) {
tmp = y * (x * z);
} else if (c <= 6.5e-43) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = c * ((a * j) - (z * b))
if (c <= (-0.44d0)) then
tmp = t_2
else if (c <= (-6.6d-276)) then
tmp = t_1
else if (c <= (-4.25d-306)) then
tmp = y * (x * z)
else if (c <= 6.5d-43) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -0.44) {
tmp = t_2;
} else if (c <= -6.6e-276) {
tmp = t_1;
} else if (c <= -4.25e-306) {
tmp = y * (x * z);
} else if (c <= 6.5e-43) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -0.44: tmp = t_2 elif c <= -6.6e-276: tmp = t_1 elif c <= -4.25e-306: tmp = y * (x * z) elif c <= 6.5e-43: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -0.44) tmp = t_2; elseif (c <= -6.6e-276) tmp = t_1; elseif (c <= -4.25e-306) tmp = Float64(y * Float64(x * z)); elseif (c <= 6.5e-43) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -0.44) tmp = t_2; elseif (c <= -6.6e-276) tmp = t_1; elseif (c <= -4.25e-306) tmp = y * (x * z); elseif (c <= 6.5e-43) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -0.44], t$95$2, If[LessEqual[c, -6.6e-276], t$95$1, If[LessEqual[c, -4.25e-306], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.5e-43], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -0.44:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -6.6 \cdot 10^{-276}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -4.25 \cdot 10^{-306}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 6.5 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -0.440000000000000002 or 6.50000000000000001e-43 < c Initial program 67.6%
Taylor expanded in c around inf 60.9%
*-commutative60.9%
Simplified60.9%
if -0.440000000000000002 < c < -6.59999999999999982e-276 or -4.2500000000000001e-306 < c < 6.50000000000000001e-43Initial program 86.5%
Taylor expanded in i around inf 59.4%
distribute-lft-out--59.4%
Simplified59.4%
Taylor expanded in i around 0 59.4%
mul-1-neg59.4%
*-commutative59.4%
sub-neg59.4%
+-commutative59.4%
+-commutative59.4%
sub-neg59.4%
distribute-rgt-neg-in59.4%
neg-sub059.4%
sub-neg59.4%
+-commutative59.4%
associate--r+59.4%
neg-sub059.4%
remove-double-neg59.4%
Simplified59.4%
if -6.59999999999999982e-276 < c < -4.2500000000000001e-306Initial program 82.3%
Taylor expanded in y around inf 73.4%
+-commutative73.4%
mul-1-neg73.4%
unsub-neg73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in z around inf 64.6%
*-commutative64.6%
Simplified64.6%
Final simplification60.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -3.1e+224)
(* b (* t i))
(if (<= b -7.5e+196)
(* x (* y z))
(if (<= b -9.2e+178)
(* i (* t b))
(if (<= b 8.6e+143) (* a (- (* c j) (* x t))) (* t (* b i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3.1e+224) {
tmp = b * (t * i);
} else if (b <= -7.5e+196) {
tmp = x * (y * z);
} else if (b <= -9.2e+178) {
tmp = i * (t * b);
} else if (b <= 8.6e+143) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-3.1d+224)) then
tmp = b * (t * i)
else if (b <= (-7.5d+196)) then
tmp = x * (y * z)
else if (b <= (-9.2d+178)) then
tmp = i * (t * b)
else if (b <= 8.6d+143) then
tmp = a * ((c * j) - (x * t))
else
tmp = t * (b * i)
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 i, double j) {
double tmp;
if (b <= -3.1e+224) {
tmp = b * (t * i);
} else if (b <= -7.5e+196) {
tmp = x * (y * z);
} else if (b <= -9.2e+178) {
tmp = i * (t * b);
} else if (b <= 8.6e+143) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -3.1e+224: tmp = b * (t * i) elif b <= -7.5e+196: tmp = x * (y * z) elif b <= -9.2e+178: tmp = i * (t * b) elif b <= 8.6e+143: tmp = a * ((c * j) - (x * t)) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -3.1e+224) tmp = Float64(b * Float64(t * i)); elseif (b <= -7.5e+196) tmp = Float64(x * Float64(y * z)); elseif (b <= -9.2e+178) tmp = Float64(i * Float64(t * b)); elseif (b <= 8.6e+143) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -3.1e+224) tmp = b * (t * i); elseif (b <= -7.5e+196) tmp = x * (y * z); elseif (b <= -9.2e+178) tmp = i * (t * b); elseif (b <= 8.6e+143) tmp = a * ((c * j) - (x * t)); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -3.1e+224], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7.5e+196], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.2e+178], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.6e+143], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.1 \cdot 10^{+224}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{+196}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -9.2 \cdot 10^{+178}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;b \leq 8.6 \cdot 10^{+143}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -3.0999999999999999e224Initial program 64.1%
Taylor expanded in t around inf 55.7%
distribute-lft-out--55.7%
Simplified55.7%
Taylor expanded in a around 0 60.1%
if -3.0999999999999999e224 < b < -7.5000000000000005e196Initial program 87.3%
Taylor expanded in y around inf 75.6%
+-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in z around inf 75.7%
*-commutative75.7%
Simplified75.7%
if -7.5000000000000005e196 < b < -9.2000000000000003e178Initial program 99.5%
Taylor expanded in i around inf 100.0%
distribute-lft-out--100.0%
Simplified100.0%
Taylor expanded in j around 0 99.5%
remove-double-neg99.5%
mul-1-neg99.5%
associate-*r*99.5%
*-commutative99.5%
associate-*l*100.0%
neg-mul-1100.0%
distribute-rgt-neg-in100.0%
distribute-rgt-neg-in100.0%
remove-double-neg100.0%
Simplified100.0%
if -9.2000000000000003e178 < b < 8.60000000000000003e143Initial program 77.8%
Taylor expanded in a around inf 44.2%
+-commutative44.2%
mul-1-neg44.2%
unsub-neg44.2%
Simplified44.2%
if 8.60000000000000003e143 < b Initial program 64.3%
Taylor expanded in t around inf 58.3%
distribute-lft-out--58.3%
Simplified58.3%
Taylor expanded in a around 0 51.3%
associate-*r*58.3%
*-commutative58.3%
Simplified58.3%
Final simplification48.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -2.4e-52)
(+ t_1 (* x (* y z)))
(if (<= j 4.8e-19)
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(- t_1 (* x (- (* t a) (* y z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.4e-52) {
tmp = t_1 + (x * (y * z));
} else if (j <= 4.8e-19) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 - (x * ((t * a) - (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
if (j <= (-2.4d-52)) then
tmp = t_1 + (x * (y * z))
else if (j <= 4.8d-19) then
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))
else
tmp = t_1 - (x * ((t * a) - (y * z)))
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 i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.4e-52) {
tmp = t_1 + (x * (y * z));
} else if (j <= 4.8e-19) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 - (x * ((t * a) - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -2.4e-52: tmp = t_1 + (x * (y * z)) elif j <= 4.8e-19: tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))) else: tmp = t_1 - (x * ((t * a) - (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.4e-52) tmp = Float64(t_1 + Float64(x * Float64(y * z))); elseif (j <= 4.8e-19) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -2.4e-52) tmp = t_1 + (x * (y * z)); elseif (j <= 4.8e-19) tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))); else tmp = t_1 - (x * ((t * a) - (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.4e-52], N[(t$95$1 + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.8e-19], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.4 \cdot 10^{-52}:\\
\;\;\;\;t\_1 + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 4.8 \cdot 10^{-19}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\end{array}
\end{array}
if j < -2.4000000000000002e-52Initial program 70.8%
Taylor expanded in b around 0 68.3%
Taylor expanded in t around 0 68.3%
if -2.4000000000000002e-52 < j < 4.80000000000000046e-19Initial program 76.7%
Taylor expanded in j around 0 77.7%
if 4.80000000000000046e-19 < j Initial program 78.5%
Taylor expanded in b around 0 71.5%
Final simplification73.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= c -1.1e-56)
t_1
(if (<= c -2.95e-276)
(* b (* t i))
(if (<= c -5.5e-306)
(* x (* y z))
(if (<= c 6.1e-59) (* t (* b i)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (c <= -1.1e-56) {
tmp = t_1;
} else if (c <= -2.95e-276) {
tmp = b * (t * i);
} else if (c <= -5.5e-306) {
tmp = x * (y * z);
} else if (c <= 6.1e-59) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (c <= (-1.1d-56)) then
tmp = t_1
else if (c <= (-2.95d-276)) then
tmp = b * (t * i)
else if (c <= (-5.5d-306)) then
tmp = x * (y * z)
else if (c <= 6.1d-59) then
tmp = t * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (c <= -1.1e-56) {
tmp = t_1;
} else if (c <= -2.95e-276) {
tmp = b * (t * i);
} else if (c <= -5.5e-306) {
tmp = x * (y * z);
} else if (c <= 6.1e-59) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if c <= -1.1e-56: tmp = t_1 elif c <= -2.95e-276: tmp = b * (t * i) elif c <= -5.5e-306: tmp = x * (y * z) elif c <= 6.1e-59: tmp = t * (b * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (c <= -1.1e-56) tmp = t_1; elseif (c <= -2.95e-276) tmp = Float64(b * Float64(t * i)); elseif (c <= -5.5e-306) tmp = Float64(x * Float64(y * z)); elseif (c <= 6.1e-59) tmp = Float64(t * Float64(b * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (c <= -1.1e-56) tmp = t_1; elseif (c <= -2.95e-276) tmp = b * (t * i); elseif (c <= -5.5e-306) tmp = x * (y * z); elseif (c <= 6.1e-59) tmp = t * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.1e-56], t$95$1, If[LessEqual[c, -2.95e-276], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -5.5e-306], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.1e-59], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -1.1 \cdot 10^{-56}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -2.95 \cdot 10^{-276}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{-306}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 6.1 \cdot 10^{-59}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.10000000000000002e-56 or 6.0999999999999996e-59 < c Initial program 67.4%
Taylor expanded in a around inf 47.0%
+-commutative47.0%
mul-1-neg47.0%
unsub-neg47.0%
Simplified47.0%
Taylor expanded in c around inf 35.8%
if -1.10000000000000002e-56 < c < -2.94999999999999988e-276Initial program 87.3%
Taylor expanded in t around inf 40.0%
distribute-lft-out--40.0%
Simplified40.0%
Taylor expanded in a around 0 39.7%
if -2.94999999999999988e-276 < c < -5.49999999999999992e-306Initial program 90.2%
Taylor expanded in y around inf 70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in z around inf 60.9%
*-commutative60.9%
Simplified60.9%
if -5.49999999999999992e-306 < c < 6.0999999999999996e-59Initial program 87.6%
Taylor expanded in t around inf 60.0%
distribute-lft-out--60.0%
Simplified60.0%
Taylor expanded in a around 0 35.5%
associate-*r*37.7%
*-commutative37.7%
Simplified37.7%
Final simplification37.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -8.2e-58) (not (<= c 1.7e-59))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -8.2e-58) || !(c <= 1.7e-59)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-8.2d-58)) .or. (.not. (c <= 1.7d-59))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
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 i, double j) {
double tmp;
if ((c <= -8.2e-58) || !(c <= 1.7e-59)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -8.2e-58) or not (c <= 1.7e-59): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -8.2e-58) || !(c <= 1.7e-59)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -8.2e-58) || ~((c <= 1.7e-59))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -8.2e-58], N[Not[LessEqual[c, 1.7e-59]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -8.2 \cdot 10^{-58} \lor \neg \left(c \leq 1.7 \cdot 10^{-59}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -8.20000000000000056e-58 or 1.70000000000000009e-59 < c Initial program 67.4%
Taylor expanded in a around inf 47.0%
+-commutative47.0%
mul-1-neg47.0%
unsub-neg47.0%
Simplified47.0%
Taylor expanded in c around inf 35.8%
if -8.20000000000000056e-58 < c < 1.70000000000000009e-59Initial program 87.7%
Taylor expanded in t around inf 50.7%
distribute-lft-out--50.7%
Simplified50.7%
Taylor expanded in a around 0 34.8%
Final simplification35.4%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 75.7%
Taylor expanded in a around inf 38.8%
+-commutative38.8%
mul-1-neg38.8%
unsub-neg38.8%
Simplified38.8%
Taylor expanded in c around inf 24.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024085
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))