
(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 16 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
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(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 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
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 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
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 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) 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(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) 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 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); 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[(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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $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 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\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 93.7%
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 57.2%
Final simplification86.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -8.8e-132)
t_1
(if (<= i 9.2e-151)
(* x (- (* y z) (* t a)))
(if (<= i 1.45e+61)
(+ (* a (* c j)) (* i (* b (- t (* c (/ z i))))))
(if (<= i 3.6e+137) (* z (- (* x y) (* b c))) 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -8.8e-132) {
tmp = t_1;
} else if (i <= 9.2e-151) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 1.45e+61) {
tmp = (a * (c * j)) + (i * (b * (t - (c * (z / i)))));
} else if (i <= 3.6e+137) {
tmp = z * ((x * y) - (b * c));
} 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 = i * ((t * b) - (y * j))
if (i <= (-8.8d-132)) then
tmp = t_1
else if (i <= 9.2d-151) then
tmp = x * ((y * z) - (t * a))
else if (i <= 1.45d+61) then
tmp = (a * (c * j)) + (i * (b * (t - (c * (z / i)))))
else if (i <= 3.6d+137) then
tmp = z * ((x * y) - (b * c))
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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -8.8e-132) {
tmp = t_1;
} else if (i <= 9.2e-151) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 1.45e+61) {
tmp = (a * (c * j)) + (i * (b * (t - (c * (z / i)))));
} else if (i <= 3.6e+137) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -8.8e-132: tmp = t_1 elif i <= 9.2e-151: tmp = x * ((y * z) - (t * a)) elif i <= 1.45e+61: tmp = (a * (c * j)) + (i * (b * (t - (c * (z / i))))) elif i <= 3.6e+137: tmp = z * ((x * y) - (b * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -8.8e-132) tmp = t_1; elseif (i <= 9.2e-151) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (i <= 1.45e+61) tmp = Float64(Float64(a * Float64(c * j)) + Float64(i * Float64(b * Float64(t - Float64(c * Float64(z / i)))))); elseif (i <= 3.6e+137) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -8.8e-132) tmp = t_1; elseif (i <= 9.2e-151) tmp = x * ((y * z) - (t * a)); elseif (i <= 1.45e+61) tmp = (a * (c * j)) + (i * (b * (t - (c * (z / i))))); elseif (i <= 3.6e+137) tmp = z * ((x * y) - (b * c)); else tmp = t_1; 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]}, If[LessEqual[i, -8.8e-132], t$95$1, If[LessEqual[i, 9.2e-151], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.45e+61], N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(i * N[(b * N[(t - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.6e+137], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -8.8 \cdot 10^{-132}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 9.2 \cdot 10^{-151}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;i \leq 1.45 \cdot 10^{+61}:\\
\;\;\;\;a \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot \left(t - c \cdot \frac{z}{i}\right)\right)\\
\mathbf{elif}\;i \leq 3.6 \cdot 10^{+137}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -8.79999999999999963e-132 or 3.6e137 < i Initial program 69.6%
prod-diff56.3%
*-commutative56.3%
fmm-def56.3%
distribute-rgt-in53.1%
*-commutative53.1%
*-commutative53.1%
*-commutative53.1%
Applied egg-rr53.1%
Taylor expanded in i around inf 70.2%
Simplified70.2%
if -8.79999999999999963e-132 < i < 9.19999999999999984e-151Initial program 85.8%
Taylor expanded in x around inf 62.8%
*-commutative62.8%
Simplified62.8%
if 9.19999999999999984e-151 < i < 1.45e61Initial program 72.1%
Taylor expanded in i around inf 72.1%
mul-1-neg72.1%
+-commutative72.1%
unsub-neg72.1%
associate-/l*72.1%
associate-/l*72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in y around 0 71.6%
Simplified78.1%
Taylor expanded in c around inf 65.6%
if 1.45e61 < i < 3.6e137Initial program 64.1%
Taylor expanded in z around inf 69.9%
*-commutative69.9%
Simplified69.9%
Final simplification67.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -3.2e+20)
t_2
(if (<= b -6.4e-152)
t_1
(if (<= b 9.2e-202)
(* j (- (* a c) (* y i)))
(if (<= b 2.25e-15) 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 = x * ((y * z) - (t * a));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.2e+20) {
tmp = t_2;
} else if (b <= -6.4e-152) {
tmp = t_1;
} else if (b <= 9.2e-202) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 2.25e-15) {
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 = x * ((y * z) - (t * a))
t_2 = b * ((t * i) - (z * c))
if (b <= (-3.2d+20)) then
tmp = t_2
else if (b <= (-6.4d-152)) then
tmp = t_1
else if (b <= 9.2d-202) then
tmp = j * ((a * c) - (y * i))
else if (b <= 2.25d-15) 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 = x * ((y * z) - (t * a));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.2e+20) {
tmp = t_2;
} else if (b <= -6.4e-152) {
tmp = t_1;
} else if (b <= 9.2e-202) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 2.25e-15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.2e+20: tmp = t_2 elif b <= -6.4e-152: tmp = t_1 elif b <= 9.2e-202: tmp = j * ((a * c) - (y * i)) elif b <= 2.25e-15: tmp = t_1 else: tmp = t_2 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(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.2e+20) tmp = t_2; elseif (b <= -6.4e-152) tmp = t_1; elseif (b <= 9.2e-202) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 2.25e-15) 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 = x * ((y * z) - (t * a)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.2e+20) tmp = t_2; elseif (b <= -6.4e-152) tmp = t_1; elseif (b <= 9.2e-202) tmp = j * ((a * c) - (y * i)); elseif (b <= 2.25e-15) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.2e+20], t$95$2, If[LessEqual[b, -6.4e-152], t$95$1, If[LessEqual[b, 9.2e-202], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.25e-15], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.2 \cdot 10^{+20}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -6.4 \cdot 10^{-152}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{-202}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 2.25 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -3.2e20 or 2.2499999999999999e-15 < b Initial program 72.5%
Taylor expanded in b around inf 65.9%
*-commutative65.9%
Simplified65.9%
if -3.2e20 < b < -6.40000000000000025e-152 or 9.1999999999999994e-202 < b < 2.2499999999999999e-15Initial program 84.7%
Taylor expanded in x around inf 58.1%
*-commutative58.1%
Simplified58.1%
if -6.40000000000000025e-152 < b < 9.1999999999999994e-202Initial program 64.8%
Taylor expanded in z around inf 55.7%
mul-1-neg55.7%
unsub-neg55.7%
associate-/l*53.9%
Simplified53.9%
Taylor expanded in j around inf 58.1%
*-commutative58.1%
Simplified58.1%
Final simplification62.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -6.2e+101) (not (<= x 3.2e+226))) (* x (- (* y z) (* t a))) (- (* b (- (* t i) (* z c))) (* j (- (* y i) (* a c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -6.2e+101) || !(x <= 3.2e+226)) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = (b * ((t * i) - (z * c))) - (j * ((y * i) - (a * 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) :: tmp
if ((x <= (-6.2d+101)) .or. (.not. (x <= 3.2d+226))) then
tmp = x * ((y * z) - (t * a))
else
tmp = (b * ((t * i) - (z * c))) - (j * ((y * i) - (a * 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 tmp;
if ((x <= -6.2e+101) || !(x <= 3.2e+226)) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = (b * ((t * i) - (z * c))) - (j * ((y * i) - (a * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -6.2e+101) or not (x <= 3.2e+226): tmp = x * ((y * z) - (t * a)) else: tmp = (b * ((t * i) - (z * c))) - (j * ((y * i) - (a * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -6.2e+101) || !(x <= 3.2e+226)) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -6.2e+101) || ~((x <= 3.2e+226))) tmp = x * ((y * z) - (t * a)); else tmp = (b * ((t * i) - (z * c))) - (j * ((y * i) - (a * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -6.2e+101], N[Not[LessEqual[x, 3.2e+226]], $MachinePrecision]], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.2 \cdot 10^{+101} \lor \neg \left(x \leq 3.2 \cdot 10^{+226}\right):\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\end{array}
\end{array}
if x < -6.19999999999999998e101 or 3.19999999999999977e226 < x Initial program 75.8%
Taylor expanded in x around inf 74.9%
*-commutative74.9%
Simplified74.9%
if -6.19999999999999998e101 < x < 3.19999999999999977e226Initial program 73.8%
Taylor expanded in x around 0 70.4%
Final simplification71.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= j -1.1e+185)
(* c (* a j))
(if (<= j -2150000000000.0)
t_1
(if (<= j 1.5e-280)
(* (* x t) (- a))
(if (<= j 7.6e+67) (* b (* t 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 = i * (y * -j);
double tmp;
if (j <= -1.1e+185) {
tmp = c * (a * j);
} else if (j <= -2150000000000.0) {
tmp = t_1;
} else if (j <= 1.5e-280) {
tmp = (x * t) * -a;
} else if (j <= 7.6e+67) {
tmp = b * (t * 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 = i * (y * -j)
if (j <= (-1.1d+185)) then
tmp = c * (a * j)
else if (j <= (-2150000000000.0d0)) then
tmp = t_1
else if (j <= 1.5d-280) then
tmp = (x * t) * -a
else if (j <= 7.6d+67) then
tmp = b * (t * 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 = i * (y * -j);
double tmp;
if (j <= -1.1e+185) {
tmp = c * (a * j);
} else if (j <= -2150000000000.0) {
tmp = t_1;
} else if (j <= 1.5e-280) {
tmp = (x * t) * -a;
} else if (j <= 7.6e+67) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if j <= -1.1e+185: tmp = c * (a * j) elif j <= -2150000000000.0: tmp = t_1 elif j <= 1.5e-280: tmp = (x * t) * -a elif j <= 7.6e+67: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (j <= -1.1e+185) tmp = Float64(c * Float64(a * j)); elseif (j <= -2150000000000.0) tmp = t_1; elseif (j <= 1.5e-280) tmp = Float64(Float64(x * t) * Float64(-a)); elseif (j <= 7.6e+67) tmp = Float64(b * Float64(t * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (j <= -1.1e+185) tmp = c * (a * j); elseif (j <= -2150000000000.0) tmp = t_1; elseif (j <= 1.5e-280) tmp = (x * t) * -a; elseif (j <= 7.6e+67) tmp = b * (t * 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[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.1e+185], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2150000000000.0], t$95$1, If[LessEqual[j, 1.5e-280], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], If[LessEqual[j, 7.6e+67], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;j \leq -1.1 \cdot 10^{+185}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -2150000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{-280}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{elif}\;j \leq 7.6 \cdot 10^{+67}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.1e185Initial program 69.2%
Taylor expanded in z around inf 69.2%
mul-1-neg69.2%
unsub-neg69.2%
associate-/l*65.7%
Simplified65.7%
Taylor expanded in j around inf 69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in c around inf 62.0%
*-commutative62.0%
associate-*r*62.0%
Simplified62.0%
if -1.1e185 < j < -2.15e12 or 7.60000000000000041e67 < j Initial program 76.2%
Taylor expanded in y around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
*-commutative55.6%
Simplified55.6%
Taylor expanded in z around 0 50.1%
associate-*r*50.1%
neg-mul-150.1%
*-commutative50.1%
Simplified50.1%
if -2.15e12 < j < 1.49999999999999994e-280Initial program 76.9%
Taylor expanded in a around inf 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
Simplified45.0%
Taylor expanded in c around 0 36.9%
mul-1-neg36.9%
*-commutative36.9%
distribute-rgt-neg-in36.9%
Simplified36.9%
if 1.49999999999999994e-280 < j < 7.60000000000000041e67Initial program 71.2%
Taylor expanded in t around -inf 51.5%
Taylor expanded in a around 0 37.1%
Final simplification44.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -8.8e-132)
t_1
(if (<= i 9.8e-151)
(* x (- (* y z) (* t a)))
(if (<= i 1.6e+123) (* z (- (* x y) (* b c))) 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -8.8e-132) {
tmp = t_1;
} else if (i <= 9.8e-151) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 1.6e+123) {
tmp = z * ((x * y) - (b * c));
} 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 = i * ((t * b) - (y * j))
if (i <= (-8.8d-132)) then
tmp = t_1
else if (i <= 9.8d-151) then
tmp = x * ((y * z) - (t * a))
else if (i <= 1.6d+123) then
tmp = z * ((x * y) - (b * c))
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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -8.8e-132) {
tmp = t_1;
} else if (i <= 9.8e-151) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 1.6e+123) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -8.8e-132: tmp = t_1 elif i <= 9.8e-151: tmp = x * ((y * z) - (t * a)) elif i <= 1.6e+123: tmp = z * ((x * y) - (b * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -8.8e-132) tmp = t_1; elseif (i <= 9.8e-151) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (i <= 1.6e+123) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -8.8e-132) tmp = t_1; elseif (i <= 9.8e-151) tmp = x * ((y * z) - (t * a)); elseif (i <= 1.6e+123) tmp = z * ((x * y) - (b * c)); else tmp = t_1; 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]}, If[LessEqual[i, -8.8e-132], t$95$1, If[LessEqual[i, 9.8e-151], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.6e+123], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -8.8 \cdot 10^{-132}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 9.8 \cdot 10^{-151}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;i \leq 1.6 \cdot 10^{+123}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -8.79999999999999963e-132 or 1.60000000000000002e123 < i Initial program 69.6%
prod-diff56.3%
*-commutative56.3%
fmm-def56.3%
distribute-rgt-in53.1%
*-commutative53.1%
*-commutative53.1%
*-commutative53.1%
Applied egg-rr53.1%
Taylor expanded in i around inf 70.2%
Simplified70.2%
if -8.79999999999999963e-132 < i < 9.79999999999999933e-151Initial program 85.8%
Taylor expanded in x around inf 62.8%
*-commutative62.8%
Simplified62.8%
if 9.79999999999999933e-151 < i < 1.60000000000000002e123Initial program 70.6%
Taylor expanded in z around inf 55.3%
*-commutative55.3%
Simplified55.3%
Final simplification64.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -4.1e+180)
(* c (* a j))
(if (or (<= j -2100000000000.0) (not (<= j 3.3e+67)))
(* i (* y (- j)))
(* 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 (j <= -4.1e+180) {
tmp = c * (a * j);
} else if ((j <= -2100000000000.0) || !(j <= 3.3e+67)) {
tmp = i * (y * -j);
} 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 (j <= (-4.1d+180)) then
tmp = c * (a * j)
else if ((j <= (-2100000000000.0d0)) .or. (.not. (j <= 3.3d+67))) then
tmp = i * (y * -j)
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 (j <= -4.1e+180) {
tmp = c * (a * j);
} else if ((j <= -2100000000000.0) || !(j <= 3.3e+67)) {
tmp = i * (y * -j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -4.1e+180: tmp = c * (a * j) elif (j <= -2100000000000.0) or not (j <= 3.3e+67): tmp = i * (y * -j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -4.1e+180) tmp = Float64(c * Float64(a * j)); elseif ((j <= -2100000000000.0) || !(j <= 3.3e+67)) tmp = Float64(i * Float64(y * Float64(-j))); 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 (j <= -4.1e+180) tmp = c * (a * j); elseif ((j <= -2100000000000.0) || ~((j <= 3.3e+67))) tmp = i * (y * -j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -4.1e+180], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[j, -2100000000000.0], N[Not[LessEqual[j, 3.3e+67]], $MachinePrecision]], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.1 \cdot 10^{+180}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -2100000000000 \lor \neg \left(j \leq 3.3 \cdot 10^{+67}\right):\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if j < -4.1e180Initial program 69.2%
Taylor expanded in z around inf 69.2%
mul-1-neg69.2%
unsub-neg69.2%
associate-/l*65.7%
Simplified65.7%
Taylor expanded in j around inf 69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in c around inf 62.0%
*-commutative62.0%
associate-*r*62.0%
Simplified62.0%
if -4.1e180 < j < -2.1e12 or 3.3000000000000003e67 < j Initial program 76.2%
Taylor expanded in y around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
*-commutative55.6%
Simplified55.6%
Taylor expanded in z around 0 50.1%
associate-*r*50.1%
neg-mul-150.1%
*-commutative50.1%
Simplified50.1%
if -2.1e12 < j < 3.3000000000000003e67Initial program 74.1%
Taylor expanded in t around -inf 53.6%
Taylor expanded in a around 0 33.1%
associate-*r*33.1%
Simplified33.1%
Final simplification41.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= y -1.05e+81)
t_1
(if (<= y 3.1e+56)
(* a (- (* c j) (* x t)))
(if (<= y 3.3e+213) t_1 (* x (* 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 = i * (y * -j);
double tmp;
if (y <= -1.05e+81) {
tmp = t_1;
} else if (y <= 3.1e+56) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 3.3e+213) {
tmp = t_1;
} else {
tmp = x * (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 = i * (y * -j)
if (y <= (-1.05d+81)) then
tmp = t_1
else if (y <= 3.1d+56) then
tmp = a * ((c * j) - (x * t))
else if (y <= 3.3d+213) then
tmp = t_1
else
tmp = x * (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 = i * (y * -j);
double tmp;
if (y <= -1.05e+81) {
tmp = t_1;
} else if (y <= 3.1e+56) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 3.3e+213) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if y <= -1.05e+81: tmp = t_1 elif y <= 3.1e+56: tmp = a * ((c * j) - (x * t)) elif y <= 3.3e+213: tmp = t_1 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (y <= -1.05e+81) tmp = t_1; elseif (y <= 3.1e+56) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (y <= 3.3e+213) tmp = t_1; else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (y <= -1.05e+81) tmp = t_1; elseif (y <= 3.1e+56) tmp = a * ((c * j) - (x * t)); elseif (y <= 3.3e+213) tmp = t_1; else tmp = x * (y * z); 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]}, If[LessEqual[y, -1.05e+81], t$95$1, If[LessEqual[y, 3.1e+56], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e+213], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;y \leq -1.05 \cdot 10^{+81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{+56}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+213}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -1.0499999999999999e81 or 3.10000000000000005e56 < y < 3.3000000000000001e213Initial program 68.5%
Taylor expanded in y around inf 67.9%
+-commutative67.9%
mul-1-neg67.9%
unsub-neg67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in z around 0 47.0%
associate-*r*47.0%
neg-mul-147.0%
*-commutative47.0%
Simplified47.0%
if -1.0499999999999999e81 < y < 3.10000000000000005e56Initial program 79.2%
Taylor expanded in a around inf 47.4%
+-commutative47.4%
mul-1-neg47.4%
unsub-neg47.4%
Simplified47.4%
if 3.3000000000000001e213 < y Initial program 61.1%
Taylor expanded in x around inf 78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in z around inf 70.6%
*-commutative70.6%
Simplified70.6%
Final simplification49.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -7.8e+177)
(* c (* a j))
(if (<= j -2100000000000.0)
(* y (* j (- i)))
(if (<= j 2.3e+70) (* t (* b i)) (* a (* c j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -7.8e+177) {
tmp = c * (a * j);
} else if (j <= -2100000000000.0) {
tmp = y * (j * -i);
} else if (j <= 2.3e+70) {
tmp = t * (b * i);
} else {
tmp = a * (c * 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) :: tmp
if (j <= (-7.8d+177)) then
tmp = c * (a * j)
else if (j <= (-2100000000000.0d0)) then
tmp = y * (j * -i)
else if (j <= 2.3d+70) then
tmp = t * (b * i)
else
tmp = a * (c * 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 tmp;
if (j <= -7.8e+177) {
tmp = c * (a * j);
} else if (j <= -2100000000000.0) {
tmp = y * (j * -i);
} else if (j <= 2.3e+70) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -7.8e+177: tmp = c * (a * j) elif j <= -2100000000000.0: tmp = y * (j * -i) elif j <= 2.3e+70: tmp = t * (b * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -7.8e+177) tmp = Float64(c * Float64(a * j)); elseif (j <= -2100000000000.0) tmp = Float64(y * Float64(j * Float64(-i))); elseif (j <= 2.3e+70) tmp = Float64(t * Float64(b * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -7.8e+177) tmp = c * (a * j); elseif (j <= -2100000000000.0) tmp = y * (j * -i); elseif (j <= 2.3e+70) tmp = t * (b * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -7.8e+177], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2100000000000.0], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e+70], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -7.8 \cdot 10^{+177}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -2100000000000:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{+70}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -7.7999999999999998e177Initial program 69.2%
Taylor expanded in z around inf 69.2%
mul-1-neg69.2%
unsub-neg69.2%
associate-/l*65.7%
Simplified65.7%
Taylor expanded in j around inf 69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in c around inf 62.0%
*-commutative62.0%
associate-*r*62.0%
Simplified62.0%
if -7.7999999999999998e177 < j < -2.1e12Initial program 86.2%
Taylor expanded in y around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in z around 0 46.4%
neg-mul-146.4%
distribute-rgt-neg-in46.4%
Simplified46.4%
if -2.1e12 < j < 2.29999999999999994e70Initial program 74.3%
Taylor expanded in t around -inf 53.3%
Taylor expanded in a around 0 32.9%
associate-*r*32.9%
Simplified32.9%
if 2.29999999999999994e70 < j Initial program 70.8%
Taylor expanded in a around inf 46.3%
+-commutative46.3%
mul-1-neg46.3%
unsub-neg46.3%
Simplified46.3%
Taylor expanded in c around inf 44.6%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= z -1.6e+20)
t_1
(if (<= z 6.6e-106) (* t (* b i)) (if (<= z 3e+42) (* c (* a j)) 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 = x * (y * z);
double tmp;
if (z <= -1.6e+20) {
tmp = t_1;
} else if (z <= 6.6e-106) {
tmp = t * (b * i);
} else if (z <= 3e+42) {
tmp = c * (a * j);
} 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 = x * (y * z)
if (z <= (-1.6d+20)) then
tmp = t_1
else if (z <= 6.6d-106) then
tmp = t * (b * i)
else if (z <= 3d+42) then
tmp = c * (a * j)
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 = x * (y * z);
double tmp;
if (z <= -1.6e+20) {
tmp = t_1;
} else if (z <= 6.6e-106) {
tmp = t * (b * i);
} else if (z <= 3e+42) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if z <= -1.6e+20: tmp = t_1 elif z <= 6.6e-106: tmp = t * (b * i) elif z <= 3e+42: tmp = c * (a * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -1.6e+20) tmp = t_1; elseif (z <= 6.6e-106) tmp = Float64(t * Float64(b * i)); elseif (z <= 3e+42) tmp = Float64(c * Float64(a * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (z <= -1.6e+20) tmp = t_1; elseif (z <= 6.6e-106) tmp = t * (b * i); elseif (z <= 3e+42) tmp = c * (a * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.6e+20], t$95$1, If[LessEqual[z, 6.6e-106], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e+42], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -1.6 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-106}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+42}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.6e20 or 3.00000000000000029e42 < z Initial program 72.5%
Taylor expanded in x around inf 54.0%
*-commutative54.0%
Simplified54.0%
Taylor expanded in z around inf 41.3%
*-commutative41.3%
Simplified41.3%
if -1.6e20 < z < 6.60000000000000031e-106Initial program 76.8%
Taylor expanded in t around -inf 54.5%
Taylor expanded in a around 0 35.6%
associate-*r*36.6%
Simplified36.6%
if 6.60000000000000031e-106 < z < 3.00000000000000029e42Initial program 72.4%
Taylor expanded in z around inf 69.0%
mul-1-neg69.0%
unsub-neg69.0%
associate-/l*69.0%
Simplified69.0%
Taylor expanded in j around inf 62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in c around inf 42.3%
*-commutative42.3%
associate-*r*42.4%
Simplified42.4%
Final simplification39.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -3.5e+62) (not (<= b 7e-63))) (* b (- (* t i) (* z c))) (* j (- (* a c) (* y 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.5e+62) || !(b <= 7e-63)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = j * ((a * c) - (y * 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.5d+62)) .or. (.not. (b <= 7d-63))) then
tmp = b * ((t * i) - (z * c))
else
tmp = j * ((a * c) - (y * 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.5e+62) || !(b <= 7e-63)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = j * ((a * c) - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -3.5e+62) or not (b <= 7e-63): tmp = b * ((t * i) - (z * c)) else: tmp = j * ((a * c) - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -3.5e+62) || !(b <= 7e-63)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -3.5e+62) || ~((b <= 7e-63))) tmp = b * ((t * i) - (z * c)); else tmp = j * ((a * c) - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -3.5e+62], N[Not[LessEqual[b, 7e-63]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.5 \cdot 10^{+62} \lor \neg \left(b \leq 7 \cdot 10^{-63}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -3.49999999999999984e62 or 7.00000000000000006e-63 < b Initial program 70.5%
Taylor expanded in b around inf 64.7%
*-commutative64.7%
Simplified64.7%
if -3.49999999999999984e62 < b < 7.00000000000000006e-63Initial program 78.4%
Taylor expanded in z around inf 72.9%
mul-1-neg72.9%
unsub-neg72.9%
associate-/l*72.2%
Simplified72.2%
Taylor expanded in j around inf 50.0%
*-commutative50.0%
Simplified50.0%
Final simplification57.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.7e+20) (not (<= b 2.55e-17))) (* 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 <= -2.7e+20) || !(b <= 2.55e-17)) {
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 <= (-2.7d+20)) .or. (.not. (b <= 2.55d-17))) 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 <= -2.7e+20) || !(b <= 2.55e-17)) {
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 <= -2.7e+20) or not (b <= 2.55e-17): 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 <= -2.7e+20) || !(b <= 2.55e-17)) 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 <= -2.7e+20) || ~((b <= 2.55e-17))) 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, -2.7e+20], N[Not[LessEqual[b, 2.55e-17]], $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 -2.7 \cdot 10^{+20} \lor \neg \left(b \leq 2.55 \cdot 10^{-17}\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 < -2.7e20 or 2.5500000000000001e-17 < b Initial program 72.9%
Taylor expanded in b around inf 65.7%
*-commutative65.7%
Simplified65.7%
if -2.7e20 < b < 2.5500000000000001e-17Initial program 75.8%
Taylor expanded in a around inf 48.5%
+-commutative48.5%
mul-1-neg48.5%
unsub-neg48.5%
Simplified48.5%
Final simplification57.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -3.25e-78) (not (<= i 9.2e+113))) (* b (* t i)) (* x (* y z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -3.25e-78) || !(i <= 9.2e+113)) {
tmp = b * (t * i);
} else {
tmp = x * (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) :: tmp
if ((i <= (-3.25d-78)) .or. (.not. (i <= 9.2d+113))) then
tmp = b * (t * i)
else
tmp = x * (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 tmp;
if ((i <= -3.25e-78) || !(i <= 9.2e+113)) {
tmp = b * (t * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -3.25e-78) or not (i <= 9.2e+113): tmp = b * (t * i) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -3.25e-78) || !(i <= 9.2e+113)) tmp = Float64(b * Float64(t * i)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -3.25e-78) || ~((i <= 9.2e+113))) tmp = b * (t * i); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -3.25e-78], N[Not[LessEqual[i, 9.2e+113]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.25 \cdot 10^{-78} \lor \neg \left(i \leq 9.2 \cdot 10^{+113}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if i < -3.2500000000000001e-78 or 9.19999999999999987e113 < i Initial program 67.1%
Taylor expanded in t around -inf 50.1%
Taylor expanded in a around 0 42.7%
if -3.2500000000000001e-78 < i < 9.19999999999999987e113Initial program 80.5%
Taylor expanded in x around inf 52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in z around inf 33.0%
*-commutative33.0%
Simplified33.0%
Final simplification37.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -2.1e+164) (not (<= j 4.4e+68))) (* 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 ((j <= -2.1e+164) || !(j <= 4.4e+68)) {
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 ((j <= (-2.1d+164)) .or. (.not. (j <= 4.4d+68))) 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 ((j <= -2.1e+164) || !(j <= 4.4e+68)) {
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 (j <= -2.1e+164) or not (j <= 4.4e+68): 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 ((j <= -2.1e+164) || !(j <= 4.4e+68)) 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 ((j <= -2.1e+164) || ~((j <= 4.4e+68))) 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[j, -2.1e+164], N[Not[LessEqual[j, 4.4e+68]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.1 \cdot 10^{+164} \lor \neg \left(j \leq 4.4 \cdot 10^{+68}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if j < -2.0999999999999999e164 or 4.39999999999999974e68 < j Initial program 71.6%
Taylor expanded in a around inf 48.9%
+-commutative48.9%
mul-1-neg48.9%
unsub-neg48.9%
Simplified48.9%
Taylor expanded in c around inf 47.9%
if -2.0999999999999999e164 < j < 4.39999999999999974e68Initial program 75.7%
Taylor expanded in t around -inf 52.1%
Taylor expanded in a around 0 31.8%
Final simplification37.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -8.2e+163) (* c (* a j)) (if (<= j 2.8e+69) (* b (* t i)) (* a (* c j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -8.2e+163) {
tmp = c * (a * j);
} else if (j <= 2.8e+69) {
tmp = b * (t * i);
} else {
tmp = a * (c * 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) :: tmp
if (j <= (-8.2d+163)) then
tmp = c * (a * j)
else if (j <= 2.8d+69) then
tmp = b * (t * i)
else
tmp = a * (c * 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 tmp;
if (j <= -8.2e+163) {
tmp = c * (a * j);
} else if (j <= 2.8e+69) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -8.2e+163: tmp = c * (a * j) elif j <= 2.8e+69: tmp = b * (t * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -8.2e+163) tmp = Float64(c * Float64(a * j)); elseif (j <= 2.8e+69) tmp = Float64(b * Float64(t * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -8.2e+163) tmp = c * (a * j); elseif (j <= 2.8e+69) tmp = b * (t * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -8.2e+163], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e+69], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -8.2 \cdot 10^{+163}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{+69}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -8.1999999999999998e163Initial program 73.3%
Taylor expanded in z around inf 73.3%
mul-1-neg73.3%
unsub-neg73.3%
associate-/l*70.3%
Simplified70.3%
Taylor expanded in j around inf 70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in c around inf 54.1%
*-commutative54.1%
associate-*r*54.1%
Simplified54.1%
if -8.1999999999999998e163 < j < 2.79999999999999982e69Initial program 75.7%
Taylor expanded in t around -inf 52.1%
Taylor expanded in a around 0 31.8%
if 2.79999999999999982e69 < j Initial program 70.8%
Taylor expanded in a around inf 46.3%
+-commutative46.3%
mul-1-neg46.3%
unsub-neg46.3%
Simplified46.3%
Taylor expanded in c around inf 44.6%
Final simplification37.3%
(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 74.3%
Taylor expanded in a around inf 40.1%
+-commutative40.1%
mul-1-neg40.1%
unsub-neg40.1%
Simplified40.1%
Taylor expanded in c around inf 23.4%
(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 2024180
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))