
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* t c) (* y i)))
(+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
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 * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in y around inf 52.0%
+-commutative52.0%
mul-1-neg52.0%
unsub-neg52.0%
Simplified52.0%
Final simplification84.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c))))
(t_2 (* a (- (* b i) (* x t))))
(t_3 (* j (- (* t c) (* y i)))))
(if (<= j -1.26e+57)
t_3
(if (<= j -1.55e-45)
t_2
(if (<= j -4.3e-97)
t_1
(if (<= j -1.12e-152)
t_2
(if (<= j -6.7e-195)
t_1
(if (<= j -5.5e-277)
(* b (- (* a i) (* z c)))
(if (<= j 3.25e-283)
t_1
(if (<= j 3.5e-189)
t_2
(if (<= j 1e-131)
(* y (- (* x z) (* i j)))
(if (<= j 1.4e-32)
t_2
(if (<= j 2.3e+91) 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 = z * ((x * y) - (b * c));
double t_2 = a * ((b * i) - (x * t));
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.26e+57) {
tmp = t_3;
} else if (j <= -1.55e-45) {
tmp = t_2;
} else if (j <= -4.3e-97) {
tmp = t_1;
} else if (j <= -1.12e-152) {
tmp = t_2;
} else if (j <= -6.7e-195) {
tmp = t_1;
} else if (j <= -5.5e-277) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 3.25e-283) {
tmp = t_1;
} else if (j <= 3.5e-189) {
tmp = t_2;
} else if (j <= 1e-131) {
tmp = y * ((x * z) - (i * j));
} else if (j <= 1.4e-32) {
tmp = t_2;
} else if (j <= 2.3e+91) {
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 = z * ((x * y) - (b * c))
t_2 = a * ((b * i) - (x * t))
t_3 = j * ((t * c) - (y * i))
if (j <= (-1.26d+57)) then
tmp = t_3
else if (j <= (-1.55d-45)) then
tmp = t_2
else if (j <= (-4.3d-97)) then
tmp = t_1
else if (j <= (-1.12d-152)) then
tmp = t_2
else if (j <= (-6.7d-195)) then
tmp = t_1
else if (j <= (-5.5d-277)) then
tmp = b * ((a * i) - (z * c))
else if (j <= 3.25d-283) then
tmp = t_1
else if (j <= 3.5d-189) then
tmp = t_2
else if (j <= 1d-131) then
tmp = y * ((x * z) - (i * j))
else if (j <= 1.4d-32) then
tmp = t_2
else if (j <= 2.3d+91) 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 = z * ((x * y) - (b * c));
double t_2 = a * ((b * i) - (x * t));
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.26e+57) {
tmp = t_3;
} else if (j <= -1.55e-45) {
tmp = t_2;
} else if (j <= -4.3e-97) {
tmp = t_1;
} else if (j <= -1.12e-152) {
tmp = t_2;
} else if (j <= -6.7e-195) {
tmp = t_1;
} else if (j <= -5.5e-277) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 3.25e-283) {
tmp = t_1;
} else if (j <= 3.5e-189) {
tmp = t_2;
} else if (j <= 1e-131) {
tmp = y * ((x * z) - (i * j));
} else if (j <= 1.4e-32) {
tmp = t_2;
} else if (j <= 2.3e+91) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = a * ((b * i) - (x * t)) t_3 = j * ((t * c) - (y * i)) tmp = 0 if j <= -1.26e+57: tmp = t_3 elif j <= -1.55e-45: tmp = t_2 elif j <= -4.3e-97: tmp = t_1 elif j <= -1.12e-152: tmp = t_2 elif j <= -6.7e-195: tmp = t_1 elif j <= -5.5e-277: tmp = b * ((a * i) - (z * c)) elif j <= 3.25e-283: tmp = t_1 elif j <= 3.5e-189: tmp = t_2 elif j <= 1e-131: tmp = y * ((x * z) - (i * j)) elif j <= 1.4e-32: tmp = t_2 elif j <= 2.3e+91: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_3 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.26e+57) tmp = t_3; elseif (j <= -1.55e-45) tmp = t_2; elseif (j <= -4.3e-97) tmp = t_1; elseif (j <= -1.12e-152) tmp = t_2; elseif (j <= -6.7e-195) tmp = t_1; elseif (j <= -5.5e-277) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (j <= 3.25e-283) tmp = t_1; elseif (j <= 3.5e-189) tmp = t_2; elseif (j <= 1e-131) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (j <= 1.4e-32) tmp = t_2; elseif (j <= 2.3e+91) 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 = z * ((x * y) - (b * c)); t_2 = a * ((b * i) - (x * t)); t_3 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -1.26e+57) tmp = t_3; elseif (j <= -1.55e-45) tmp = t_2; elseif (j <= -4.3e-97) tmp = t_1; elseif (j <= -1.12e-152) tmp = t_2; elseif (j <= -6.7e-195) tmp = t_1; elseif (j <= -5.5e-277) tmp = b * ((a * i) - (z * c)); elseif (j <= 3.25e-283) tmp = t_1; elseif (j <= 3.5e-189) tmp = t_2; elseif (j <= 1e-131) tmp = y * ((x * z) - (i * j)); elseif (j <= 1.4e-32) tmp = t_2; elseif (j <= 2.3e+91) 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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.26e+57], t$95$3, If[LessEqual[j, -1.55e-45], t$95$2, If[LessEqual[j, -4.3e-97], t$95$1, If[LessEqual[j, -1.12e-152], t$95$2, If[LessEqual[j, -6.7e-195], t$95$1, If[LessEqual[j, -5.5e-277], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.25e-283], t$95$1, If[LessEqual[j, 3.5e-189], t$95$2, If[LessEqual[j, 1e-131], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.4e-32], t$95$2, If[LessEqual[j, 2.3e+91], t$95$1, t$95$3]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.26 \cdot 10^{+57}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -1.55 \cdot 10^{-45}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -4.3 \cdot 10^{-97}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -1.12 \cdot 10^{-152}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -6.7 \cdot 10^{-195}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -5.5 \cdot 10^{-277}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 3.25 \cdot 10^{-283}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 3.5 \cdot 10^{-189}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 10^{-131}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{-32}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{+91}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -1.26e57 or 2.29999999999999991e91 < j Initial program 73.0%
sub-neg73.0%
associate-+l+73.0%
fma-def75.2%
+-commutative75.2%
fma-def78.6%
*-commutative78.6%
*-commutative78.6%
distribute-rgt-neg-in78.6%
sub-neg78.6%
+-commutative78.6%
distribute-neg-in78.6%
unsub-neg78.6%
remove-double-neg78.6%
*-commutative78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in j around inf 75.9%
if -1.26e57 < j < -1.55e-45 or -4.3e-97 < j < -1.12e-152 or 3.25000000000000016e-283 < j < 3.5000000000000001e-189 or 9.9999999999999999e-132 < j < 1.3999999999999999e-32Initial program 68.3%
cancel-sign-sub68.3%
cancel-sign-sub-inv68.3%
*-commutative68.3%
*-commutative68.3%
remove-double-neg68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in a around inf 67.0%
associate-*r*67.0%
neg-mul-167.0%
cancel-sign-sub67.0%
+-commutative67.0%
mul-1-neg67.0%
unsub-neg67.0%
*-commutative67.0%
Simplified67.0%
if -1.55e-45 < j < -4.3e-97 or -1.12e-152 < j < -6.7000000000000003e-195 or -5.49999999999999952e-277 < j < 3.25000000000000016e-283 or 1.3999999999999999e-32 < j < 2.29999999999999991e91Initial program 83.9%
cancel-sign-sub83.9%
cancel-sign-sub-inv83.9%
*-commutative83.9%
*-commutative83.9%
remove-double-neg83.9%
*-commutative83.9%
*-commutative83.9%
Simplified83.9%
Taylor expanded in z around inf 69.7%
if -6.7000000000000003e-195 < j < -5.49999999999999952e-277Initial program 74.7%
cancel-sign-sub74.7%
cancel-sign-sub-inv74.7%
*-commutative74.7%
*-commutative74.7%
remove-double-neg74.7%
*-commutative74.7%
*-commutative74.7%
Simplified74.7%
Taylor expanded in b around inf 67.6%
if 3.5000000000000001e-189 < j < 9.9999999999999999e-132Initial program 90.8%
cancel-sign-sub90.8%
cancel-sign-sub-inv90.8%
*-commutative90.8%
*-commutative90.8%
remove-double-neg90.8%
*-commutative90.8%
*-commutative90.8%
Simplified90.8%
Taylor expanded in y around inf 73.1%
+-commutative73.1%
mul-1-neg73.1%
unsub-neg73.1%
Simplified73.1%
Final simplification71.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= j -1.45e+57)
t_2
(if (<= j -2.55e-166)
t_1
(if (<= j -3.25e-187)
(* c (- (* t j) (* z b)))
(if (<= j 7e-198)
(* b (- (* a i) (* z c)))
(if (<= j 8.4e-132)
(* y (- (* x z) (* i j)))
(if (<= j 1300000000.0)
t_1
(if (<= j 6.5e+35) (* t (- (* c j) (* x a))) 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 = a * ((b * i) - (x * t));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.45e+57) {
tmp = t_2;
} else if (j <= -2.55e-166) {
tmp = t_1;
} else if (j <= -3.25e-187) {
tmp = c * ((t * j) - (z * b));
} else if (j <= 7e-198) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 8.4e-132) {
tmp = y * ((x * z) - (i * j));
} else if (j <= 1300000000.0) {
tmp = t_1;
} else if (j <= 6.5e+35) {
tmp = t * ((c * j) - (x * a));
} 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 = a * ((b * i) - (x * t))
t_2 = j * ((t * c) - (y * i))
if (j <= (-1.45d+57)) then
tmp = t_2
else if (j <= (-2.55d-166)) then
tmp = t_1
else if (j <= (-3.25d-187)) then
tmp = c * ((t * j) - (z * b))
else if (j <= 7d-198) then
tmp = b * ((a * i) - (z * c))
else if (j <= 8.4d-132) then
tmp = y * ((x * z) - (i * j))
else if (j <= 1300000000.0d0) then
tmp = t_1
else if (j <= 6.5d+35) then
tmp = t * ((c * j) - (x * a))
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 = a * ((b * i) - (x * t));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.45e+57) {
tmp = t_2;
} else if (j <= -2.55e-166) {
tmp = t_1;
} else if (j <= -3.25e-187) {
tmp = c * ((t * j) - (z * b));
} else if (j <= 7e-198) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 8.4e-132) {
tmp = y * ((x * z) - (i * j));
} else if (j <= 1300000000.0) {
tmp = t_1;
} else if (j <= 6.5e+35) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if j <= -1.45e+57: tmp = t_2 elif j <= -2.55e-166: tmp = t_1 elif j <= -3.25e-187: tmp = c * ((t * j) - (z * b)) elif j <= 7e-198: tmp = b * ((a * i) - (z * c)) elif j <= 8.4e-132: tmp = y * ((x * z) - (i * j)) elif j <= 1300000000.0: tmp = t_1 elif j <= 6.5e+35: tmp = t * ((c * j) - (x * a)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.45e+57) tmp = t_2; elseif (j <= -2.55e-166) tmp = t_1; elseif (j <= -3.25e-187) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (j <= 7e-198) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (j <= 8.4e-132) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (j <= 1300000000.0) tmp = t_1; elseif (j <= 6.5e+35) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -1.45e+57) tmp = t_2; elseif (j <= -2.55e-166) tmp = t_1; elseif (j <= -3.25e-187) tmp = c * ((t * j) - (z * b)); elseif (j <= 7e-198) tmp = b * ((a * i) - (z * c)); elseif (j <= 8.4e-132) tmp = y * ((x * z) - (i * j)); elseif (j <= 1300000000.0) tmp = t_1; elseif (j <= 6.5e+35) tmp = t * ((c * j) - (x * a)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.45e+57], t$95$2, If[LessEqual[j, -2.55e-166], t$95$1, If[LessEqual[j, -3.25e-187], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7e-198], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.4e-132], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1300000000.0], t$95$1, If[LessEqual[j, 6.5e+35], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.45 \cdot 10^{+57}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -2.55 \cdot 10^{-166}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -3.25 \cdot 10^{-187}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;j \leq 7 \cdot 10^{-198}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 8.4 \cdot 10^{-132}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;j \leq 1300000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{+35}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -1.4500000000000001e57 or 6.5000000000000003e35 < j Initial program 74.4%
sub-neg74.4%
associate-+l+74.4%
fma-def77.5%
+-commutative77.5%
fma-def80.6%
*-commutative80.6%
*-commutative80.6%
distribute-rgt-neg-in80.6%
sub-neg80.6%
+-commutative80.6%
distribute-neg-in80.6%
unsub-neg80.6%
remove-double-neg80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in j around inf 73.2%
if -1.4500000000000001e57 < j < -2.5500000000000001e-166 or 8.4000000000000004e-132 < j < 1.3e9Initial program 67.3%
cancel-sign-sub67.3%
cancel-sign-sub-inv67.3%
*-commutative67.3%
*-commutative67.3%
remove-double-neg67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in a around inf 56.5%
associate-*r*56.5%
neg-mul-156.5%
cancel-sign-sub56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
*-commutative56.5%
Simplified56.5%
if -2.5500000000000001e-166 < j < -3.24999999999999991e-187Initial program 91.6%
cancel-sign-sub91.6%
cancel-sign-sub-inv91.6%
*-commutative91.6%
*-commutative91.6%
remove-double-neg91.6%
*-commutative91.6%
*-commutative91.6%
Simplified91.6%
Taylor expanded in c around inf 58.5%
if -3.24999999999999991e-187 < j < 7.0000000000000005e-198Initial program 80.3%
cancel-sign-sub80.3%
cancel-sign-sub-inv80.3%
*-commutative80.3%
*-commutative80.3%
remove-double-neg80.3%
*-commutative80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in b around inf 56.8%
if 7.0000000000000005e-198 < j < 8.4000000000000004e-132Initial program 77.3%
cancel-sign-sub77.3%
cancel-sign-sub-inv77.3%
*-commutative77.3%
*-commutative77.3%
remove-double-neg77.3%
*-commutative77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in y around inf 62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
Simplified62.5%
if 1.3e9 < j < 6.5000000000000003e35Initial program 99.7%
cancel-sign-sub99.7%
cancel-sign-sub-inv99.7%
*-commutative99.7%
*-commutative99.7%
remove-double-neg99.7%
*-commutative99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in t around inf 100.0%
*-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
Final simplification64.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* b (* a i)) (* j (- (* t c) (* y i)))))
(t_2 (* x (- (* y z) (* t a)))))
(if (<= x -5.6e+54)
t_2
(if (<= x 2.7e-306)
t_1
(if (<= x 8.4e-246)
(* c (- (* t j) (* z b)))
(if (<= x 1.5e-7)
t_1
(if (or (<= x 7.6e+58) (not (<= x 1.1e+107)))
t_2
(* i (- (* a b) (* 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 = (b * (a * i)) + (j * ((t * c) - (y * i)));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -5.6e+54) {
tmp = t_2;
} else if (x <= 2.7e-306) {
tmp = t_1;
} else if (x <= 8.4e-246) {
tmp = c * ((t * j) - (z * b));
} else if (x <= 1.5e-7) {
tmp = t_1;
} else if ((x <= 7.6e+58) || !(x <= 1.1e+107)) {
tmp = t_2;
} else {
tmp = i * ((a * b) - (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 = (b * (a * i)) + (j * ((t * c) - (y * i)))
t_2 = x * ((y * z) - (t * a))
if (x <= (-5.6d+54)) then
tmp = t_2
else if (x <= 2.7d-306) then
tmp = t_1
else if (x <= 8.4d-246) then
tmp = c * ((t * j) - (z * b))
else if (x <= 1.5d-7) then
tmp = t_1
else if ((x <= 7.6d+58) .or. (.not. (x <= 1.1d+107))) then
tmp = t_2
else
tmp = i * ((a * b) - (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 = (b * (a * i)) + (j * ((t * c) - (y * i)));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -5.6e+54) {
tmp = t_2;
} else if (x <= 2.7e-306) {
tmp = t_1;
} else if (x <= 8.4e-246) {
tmp = c * ((t * j) - (z * b));
} else if (x <= 1.5e-7) {
tmp = t_1;
} else if ((x <= 7.6e+58) || !(x <= 1.1e+107)) {
tmp = t_2;
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * (a * i)) + (j * ((t * c) - (y * i))) t_2 = x * ((y * z) - (t * a)) tmp = 0 if x <= -5.6e+54: tmp = t_2 elif x <= 2.7e-306: tmp = t_1 elif x <= 8.4e-246: tmp = c * ((t * j) - (z * b)) elif x <= 1.5e-7: tmp = t_1 elif (x <= 7.6e+58) or not (x <= 1.1e+107): tmp = t_2 else: tmp = i * ((a * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * Float64(a * i)) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -5.6e+54) tmp = t_2; elseif (x <= 2.7e-306) tmp = t_1; elseif (x <= 8.4e-246) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (x <= 1.5e-7) tmp = t_1; elseif ((x <= 7.6e+58) || !(x <= 1.1e+107)) tmp = t_2; else tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (b * (a * i)) + (j * ((t * c) - (y * i))); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -5.6e+54) tmp = t_2; elseif (x <= 2.7e-306) tmp = t_1; elseif (x <= 8.4e-246) tmp = c * ((t * j) - (z * b)); elseif (x <= 1.5e-7) tmp = t_1; elseif ((x <= 7.6e+58) || ~((x <= 1.1e+107))) tmp = t_2; else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.6e+54], t$95$2, If[LessEqual[x, 2.7e-306], t$95$1, If[LessEqual[x, 8.4e-246], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.5e-7], t$95$1, If[Or[LessEqual[x, 7.6e+58], N[Not[LessEqual[x, 1.1e+107]], $MachinePrecision]], t$95$2, N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -5.6 \cdot 10^{+54}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-306}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 8.4 \cdot 10^{-246}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 7.6 \cdot 10^{+58} \lor \neg \left(x \leq 1.1 \cdot 10^{+107}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if x < -5.6000000000000003e54 or 1.4999999999999999e-7 < x < 7.5999999999999997e58 or 1.1e107 < x Initial program 75.1%
cancel-sign-sub75.1%
cancel-sign-sub-inv75.1%
*-commutative75.1%
*-commutative75.1%
remove-double-neg75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
add-cbrt-cube59.6%
*-commutative59.6%
*-commutative59.6%
*-commutative59.6%
*-commutative59.6%
*-commutative59.6%
*-commutative59.6%
Applied egg-rr59.6%
associate-*l*59.6%
Simplified59.6%
Taylor expanded in x around inf 70.5%
if -5.6000000000000003e54 < x < 2.70000000000000009e-306 or 8.39999999999999978e-246 < x < 1.4999999999999999e-7Initial program 75.7%
cancel-sign-sub75.7%
cancel-sign-sub-inv75.7%
*-commutative75.7%
*-commutative75.7%
remove-double-neg75.7%
*-commutative75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in i around inf 62.8%
associate-*r*62.6%
*-commutative62.6%
Simplified62.6%
if 2.70000000000000009e-306 < x < 8.39999999999999978e-246Initial program 67.9%
cancel-sign-sub67.9%
cancel-sign-sub-inv67.9%
*-commutative67.9%
*-commutative67.9%
remove-double-neg67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in c around inf 81.1%
if 7.5999999999999997e58 < x < 1.1e107Initial program 87.5%
cancel-sign-sub87.5%
cancel-sign-sub-inv87.5%
*-commutative87.5%
*-commutative87.5%
remove-double-neg87.5%
*-commutative87.5%
*-commutative87.5%
Simplified87.5%
Taylor expanded in i around inf 100.0%
*-commutative100.0%
associate-*r*100.0%
neg-mul-1100.0%
cancel-sign-sub100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
Final simplification68.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -2.5e+57)
(+ (* b (* a i)) t_1)
(if (<= j 3.4e+89)
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z 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 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.5e+57) {
tmp = (b * (a * i)) + t_1;
} else if (j <= 3.4e+89) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * 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 = j * ((t * c) - (y * i))
if (j <= (-2.5d+57)) then
tmp = (b * (a * i)) + t_1
else if (j <= 3.4d+89) then
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * 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 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.5e+57) {
tmp = (b * (a * i)) + t_1;
} else if (j <= 3.4e+89) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if j <= -2.5e+57: tmp = (b * (a * i)) + t_1 elif j <= 3.4e+89: tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.5e+57) tmp = Float64(Float64(b * Float64(a * i)) + t_1); elseif (j <= 3.4e+89) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -2.5e+57) tmp = (b * (a * i)) + t_1; elseif (j <= 3.4e+89) tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.5e+57], N[(N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[j, 3.4e+89], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.5 \cdot 10^{+57}:\\
\;\;\;\;b \cdot \left(a \cdot i\right) + t_1\\
\mathbf{elif}\;j \leq 3.4 \cdot 10^{+89}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -2.49999999999999986e57Initial program 69.4%
cancel-sign-sub69.4%
cancel-sign-sub-inv69.4%
*-commutative69.4%
*-commutative69.4%
remove-double-neg69.4%
*-commutative69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in i around inf 74.0%
associate-*r*76.3%
*-commutative76.3%
Simplified76.3%
if -2.49999999999999986e57 < j < 3.4000000000000002e89Initial program 76.4%
+-commutative76.4%
fma-def77.0%
*-commutative77.0%
*-commutative77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in j around 0 71.7%
if 3.4000000000000002e89 < j Initial program 77.4%
sub-neg77.4%
associate-+l+77.4%
fma-def77.4%
+-commutative77.4%
fma-def82.4%
*-commutative82.4%
*-commutative82.4%
distribute-rgt-neg-in82.4%
sub-neg82.4%
+-commutative82.4%
distribute-neg-in82.4%
unsub-neg82.4%
remove-double-neg82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in j around inf 78.0%
Final simplification73.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* c (- (* t j) (* z b))))
(t_3 (* a (- (* b i) (* x t)))))
(if (<= a -7.5e+84)
t_3
(if (<= a -2.9e-47)
(* t (- (* c j) (* x a)))
(if (<= a -6.4e-84)
t_1
(if (<= a 6.2e-150)
t_2
(if (<= a 5.3e-64) t_1 (if (<= a 1.8e+95) 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 = y * ((x * z) - (i * j));
double t_2 = c * ((t * j) - (z * b));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.5e+84) {
tmp = t_3;
} else if (a <= -2.9e-47) {
tmp = t * ((c * j) - (x * a));
} else if (a <= -6.4e-84) {
tmp = t_1;
} else if (a <= 6.2e-150) {
tmp = t_2;
} else if (a <= 5.3e-64) {
tmp = t_1;
} else if (a <= 1.8e+95) {
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 = y * ((x * z) - (i * j))
t_2 = c * ((t * j) - (z * b))
t_3 = a * ((b * i) - (x * t))
if (a <= (-7.5d+84)) then
tmp = t_3
else if (a <= (-2.9d-47)) then
tmp = t * ((c * j) - (x * a))
else if (a <= (-6.4d-84)) then
tmp = t_1
else if (a <= 6.2d-150) then
tmp = t_2
else if (a <= 5.3d-64) then
tmp = t_1
else if (a <= 1.8d+95) 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 = y * ((x * z) - (i * j));
double t_2 = c * ((t * j) - (z * b));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.5e+84) {
tmp = t_3;
} else if (a <= -2.9e-47) {
tmp = t * ((c * j) - (x * a));
} else if (a <= -6.4e-84) {
tmp = t_1;
} else if (a <= 6.2e-150) {
tmp = t_2;
} else if (a <= 5.3e-64) {
tmp = t_1;
} else if (a <= 1.8e+95) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = c * ((t * j) - (z * b)) t_3 = a * ((b * i) - (x * t)) tmp = 0 if a <= -7.5e+84: tmp = t_3 elif a <= -2.9e-47: tmp = t * ((c * j) - (x * a)) elif a <= -6.4e-84: tmp = t_1 elif a <= 6.2e-150: tmp = t_2 elif a <= 5.3e-64: tmp = t_1 elif a <= 1.8e+95: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -7.5e+84) tmp = t_3; elseif (a <= -2.9e-47) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (a <= -6.4e-84) tmp = t_1; elseif (a <= 6.2e-150) tmp = t_2; elseif (a <= 5.3e-64) tmp = t_1; elseif (a <= 1.8e+95) 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 = y * ((x * z) - (i * j)); t_2 = c * ((t * j) - (z * b)); t_3 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -7.5e+84) tmp = t_3; elseif (a <= -2.9e-47) tmp = t * ((c * j) - (x * a)); elseif (a <= -6.4e-84) tmp = t_1; elseif (a <= 6.2e-150) tmp = t_2; elseif (a <= 5.3e-64) tmp = t_1; elseif (a <= 1.8e+95) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.5e+84], t$95$3, If[LessEqual[a, -2.9e-47], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.4e-84], t$95$1, If[LessEqual[a, 6.2e-150], t$95$2, If[LessEqual[a, 5.3e-64], t$95$1, If[LessEqual[a, 1.8e+95], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -7.5 \cdot 10^{+84}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -2.9 \cdot 10^{-47}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;a \leq -6.4 \cdot 10^{-84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{-150}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 5.3 \cdot 10^{-64}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{+95}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if a < -7.5000000000000001e84 or 1.79999999999999989e95 < a Initial program 65.8%
cancel-sign-sub65.8%
cancel-sign-sub-inv65.8%
*-commutative65.8%
*-commutative65.8%
remove-double-neg65.8%
*-commutative65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in a around inf 69.1%
associate-*r*69.1%
neg-mul-169.1%
cancel-sign-sub69.1%
+-commutative69.1%
mul-1-neg69.1%
unsub-neg69.1%
*-commutative69.1%
Simplified69.1%
if -7.5000000000000001e84 < a < -2.9e-47Initial program 66.6%
cancel-sign-sub66.6%
cancel-sign-sub-inv66.6%
*-commutative66.6%
*-commutative66.6%
remove-double-neg66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in t around inf 62.1%
*-commutative62.1%
mul-1-neg62.1%
unsub-neg62.1%
Simplified62.1%
if -2.9e-47 < a < -6.3999999999999999e-84 or 6.19999999999999996e-150 < a < 5.3000000000000002e-64Initial program 88.0%
cancel-sign-sub88.0%
cancel-sign-sub-inv88.0%
*-commutative88.0%
*-commutative88.0%
remove-double-neg88.0%
*-commutative88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in y around inf 58.7%
+-commutative58.7%
mul-1-neg58.7%
unsub-neg58.7%
Simplified58.7%
if -6.3999999999999999e-84 < a < 6.19999999999999996e-150 or 5.3000000000000002e-64 < a < 1.79999999999999989e95Initial program 82.1%
cancel-sign-sub82.1%
cancel-sign-sub-inv82.1%
*-commutative82.1%
*-commutative82.1%
remove-double-neg82.1%
*-commutative82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in c around inf 59.5%
Final simplification63.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -6.6e+84)
t_2
(if (<= a -4e-46)
(* t (- (* c j) (* x a)))
(if (<= a -7.3e-84)
t_1
(if (<= a 7.5e-153)
(* c (- (* t j) (* z b)))
(if (<= a 6.2e-65)
t_1
(if (<= a 5.8e+88) (* b (- (* a i) (* z c))) 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) - (i * j));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -6.6e+84) {
tmp = t_2;
} else if (a <= -4e-46) {
tmp = t * ((c * j) - (x * a));
} else if (a <= -7.3e-84) {
tmp = t_1;
} else if (a <= 7.5e-153) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 6.2e-65) {
tmp = t_1;
} else if (a <= 5.8e+88) {
tmp = b * ((a * i) - (z * c));
} 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) - (i * j))
t_2 = a * ((b * i) - (x * t))
if (a <= (-6.6d+84)) then
tmp = t_2
else if (a <= (-4d-46)) then
tmp = t * ((c * j) - (x * a))
else if (a <= (-7.3d-84)) then
tmp = t_1
else if (a <= 7.5d-153) then
tmp = c * ((t * j) - (z * b))
else if (a <= 6.2d-65) then
tmp = t_1
else if (a <= 5.8d+88) then
tmp = b * ((a * i) - (z * c))
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) - (i * j));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -6.6e+84) {
tmp = t_2;
} else if (a <= -4e-46) {
tmp = t * ((c * j) - (x * a));
} else if (a <= -7.3e-84) {
tmp = t_1;
} else if (a <= 7.5e-153) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 6.2e-65) {
tmp = t_1;
} else if (a <= 5.8e+88) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -6.6e+84: tmp = t_2 elif a <= -4e-46: tmp = t * ((c * j) - (x * a)) elif a <= -7.3e-84: tmp = t_1 elif a <= 7.5e-153: tmp = c * ((t * j) - (z * b)) elif a <= 6.2e-65: tmp = t_1 elif a <= 5.8e+88: tmp = b * ((a * i) - (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -6.6e+84) tmp = t_2; elseif (a <= -4e-46) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (a <= -7.3e-84) tmp = t_1; elseif (a <= 7.5e-153) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (a <= 6.2e-65) tmp = t_1; elseif (a <= 5.8e+88) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); 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) - (i * j)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -6.6e+84) tmp = t_2; elseif (a <= -4e-46) tmp = t * ((c * j) - (x * a)); elseif (a <= -7.3e-84) tmp = t_1; elseif (a <= 7.5e-153) tmp = c * ((t * j) - (z * b)); elseif (a <= 6.2e-65) tmp = t_1; elseif (a <= 5.8e+88) tmp = b * ((a * i) - (z * c)); 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[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.6e+84], t$95$2, If[LessEqual[a, -4e-46], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.3e-84], t$95$1, If[LessEqual[a, 7.5e-153], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.2e-65], t$95$1, If[LessEqual[a, 5.8e+88], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -6.6 \cdot 10^{+84}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -4 \cdot 10^{-46}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;a \leq -7.3 \cdot 10^{-84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-153}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{-65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 5.8 \cdot 10^{+88}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -6.60000000000000034e84 or 5.7999999999999999e88 < a Initial program 65.2%
cancel-sign-sub65.2%
cancel-sign-sub-inv65.2%
*-commutative65.2%
*-commutative65.2%
remove-double-neg65.2%
*-commutative65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in a around inf 68.4%
associate-*r*68.4%
neg-mul-168.4%
cancel-sign-sub68.4%
+-commutative68.4%
mul-1-neg68.4%
unsub-neg68.4%
*-commutative68.4%
Simplified68.4%
if -6.60000000000000034e84 < a < -4.00000000000000009e-46Initial program 66.6%
cancel-sign-sub66.6%
cancel-sign-sub-inv66.6%
*-commutative66.6%
*-commutative66.6%
remove-double-neg66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in t around inf 62.1%
*-commutative62.1%
mul-1-neg62.1%
unsub-neg62.1%
Simplified62.1%
if -4.00000000000000009e-46 < a < -7.3000000000000004e-84 or 7.5e-153 < a < 6.20000000000000032e-65Initial program 88.0%
cancel-sign-sub88.0%
cancel-sign-sub-inv88.0%
*-commutative88.0%
*-commutative88.0%
remove-double-neg88.0%
*-commutative88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in y around inf 58.7%
+-commutative58.7%
mul-1-neg58.7%
unsub-neg58.7%
Simplified58.7%
if -7.3000000000000004e-84 < a < 7.5e-153Initial program 81.3%
cancel-sign-sub81.3%
cancel-sign-sub-inv81.3%
*-commutative81.3%
*-commutative81.3%
remove-double-neg81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in c around inf 63.0%
if 6.20000000000000032e-65 < a < 5.7999999999999999e88Initial program 86.7%
cancel-sign-sub86.7%
cancel-sign-sub-inv86.7%
*-commutative86.7%
*-commutative86.7%
remove-double-neg86.7%
*-commutative86.7%
*-commutative86.7%
Simplified86.7%
Taylor expanded in b around inf 56.2%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= i -2.1e+116)
t_1
(if (<= i -5.2e-6)
(* i (* a b))
(if (<= i 2.9e-204)
(* t (* c j))
(if (<= i 2e-118)
(* t (- (* x a)))
(if (<= i 2.15e+122)
(* b (* z (- c)))
(if (<= i 3e+265) t_1 (* a (* b i))))))))))
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 (i <= -2.1e+116) {
tmp = t_1;
} else if (i <= -5.2e-6) {
tmp = i * (a * b);
} else if (i <= 2.9e-204) {
tmp = t * (c * j);
} else if (i <= 2e-118) {
tmp = t * -(x * a);
} else if (i <= 2.15e+122) {
tmp = b * (z * -c);
} else if (i <= 3e+265) {
tmp = t_1;
} else {
tmp = a * (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) :: t_1
real(8) :: tmp
t_1 = i * (y * -j)
if (i <= (-2.1d+116)) then
tmp = t_1
else if (i <= (-5.2d-6)) then
tmp = i * (a * b)
else if (i <= 2.9d-204) then
tmp = t * (c * j)
else if (i <= 2d-118) then
tmp = t * -(x * a)
else if (i <= 2.15d+122) then
tmp = b * (z * -c)
else if (i <= 3d+265) then
tmp = t_1
else
tmp = a * (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 t_1 = i * (y * -j);
double tmp;
if (i <= -2.1e+116) {
tmp = t_1;
} else if (i <= -5.2e-6) {
tmp = i * (a * b);
} else if (i <= 2.9e-204) {
tmp = t * (c * j);
} else if (i <= 2e-118) {
tmp = t * -(x * a);
} else if (i <= 2.15e+122) {
tmp = b * (z * -c);
} else if (i <= 3e+265) {
tmp = t_1;
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if i <= -2.1e+116: tmp = t_1 elif i <= -5.2e-6: tmp = i * (a * b) elif i <= 2.9e-204: tmp = t * (c * j) elif i <= 2e-118: tmp = t * -(x * a) elif i <= 2.15e+122: tmp = b * (z * -c) elif i <= 3e+265: tmp = t_1 else: tmp = a * (b * i) 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 (i <= -2.1e+116) tmp = t_1; elseif (i <= -5.2e-6) tmp = Float64(i * Float64(a * b)); elseif (i <= 2.9e-204) tmp = Float64(t * Float64(c * j)); elseif (i <= 2e-118) tmp = Float64(t * Float64(-Float64(x * a))); elseif (i <= 2.15e+122) tmp = Float64(b * Float64(z * Float64(-c))); elseif (i <= 3e+265) tmp = t_1; else tmp = Float64(a * Float64(b * i)); 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 (i <= -2.1e+116) tmp = t_1; elseif (i <= -5.2e-6) tmp = i * (a * b); elseif (i <= 2.9e-204) tmp = t * (c * j); elseif (i <= 2e-118) tmp = t * -(x * a); elseif (i <= 2.15e+122) tmp = b * (z * -c); elseif (i <= 3e+265) tmp = t_1; else tmp = a * (b * i); 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[i, -2.1e+116], t$95$1, If[LessEqual[i, -5.2e-6], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.9e-204], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2e-118], N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, 2.15e+122], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3e+265], t$95$1, N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;i \leq -2.1 \cdot 10^{+116}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -5.2 \cdot 10^{-6}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;i \leq 2.9 \cdot 10^{-204}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 2 \cdot 10^{-118}:\\
\;\;\;\;t \cdot \left(-x \cdot a\right)\\
\mathbf{elif}\;i \leq 2.15 \cdot 10^{+122}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;i \leq 3 \cdot 10^{+265}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -2.1000000000000001e116 or 2.14999999999999986e122 < i < 3.00000000000000002e265Initial program 68.6%
sub-neg68.6%
associate-+l+68.6%
fma-def73.6%
+-commutative73.6%
fma-def75.3%
*-commutative75.3%
*-commutative75.3%
distribute-rgt-neg-in75.3%
sub-neg75.3%
+-commutative75.3%
distribute-neg-in75.3%
unsub-neg75.3%
remove-double-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in j around inf 56.8%
Taylor expanded in c around 0 50.4%
associate-*r*50.4%
neg-mul-150.4%
Simplified50.4%
if -2.1000000000000001e116 < i < -5.20000000000000019e-6Initial program 70.8%
cancel-sign-sub70.8%
cancel-sign-sub-inv70.8%
*-commutative70.8%
*-commutative70.8%
remove-double-neg70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in a around inf 63.6%
associate-*r*63.6%
neg-mul-163.6%
cancel-sign-sub63.6%
+-commutative63.6%
mul-1-neg63.6%
unsub-neg63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in b around inf 45.4%
*-commutative45.4%
Simplified45.4%
if -5.20000000000000019e-6 < i < 2.90000000000000009e-204Initial program 79.8%
cancel-sign-sub79.8%
cancel-sign-sub-inv79.8%
*-commutative79.8%
*-commutative79.8%
remove-double-neg79.8%
*-commutative79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in t around inf 49.3%
*-commutative49.3%
mul-1-neg49.3%
unsub-neg49.3%
Simplified49.3%
Taylor expanded in c around inf 34.8%
if 2.90000000000000009e-204 < i < 1.99999999999999997e-118Initial program 84.9%
cancel-sign-sub84.9%
cancel-sign-sub-inv84.9%
*-commutative84.9%
*-commutative84.9%
remove-double-neg84.9%
*-commutative84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in t around inf 66.0%
*-commutative66.0%
mul-1-neg66.0%
unsub-neg66.0%
Simplified66.0%
Taylor expanded in c around 0 54.4%
mul-1-neg54.4%
distribute-lft-neg-out54.4%
*-commutative54.4%
Simplified54.4%
if 1.99999999999999997e-118 < i < 2.14999999999999986e122Initial program 76.6%
+-commutative76.6%
fma-def80.9%
*-commutative80.9%
*-commutative80.9%
*-commutative80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in j around 0 62.1%
Taylor expanded in c around inf 32.4%
mul-1-neg32.4%
associate-*r*34.6%
Simplified34.6%
if 3.00000000000000002e265 < i Initial program 55.4%
cancel-sign-sub55.4%
cancel-sign-sub-inv55.4%
*-commutative55.4%
*-commutative55.4%
remove-double-neg55.4%
*-commutative55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in a around inf 99.8%
associate-*r*99.8%
neg-mul-199.8%
cancel-sign-sub99.8%
+-commutative99.8%
mul-1-neg99.8%
unsub-neg99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around -inf 79.2%
Final simplification42.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= i -7.5e+116)
t_1
(if (<= i -3.8e-5)
(* i (* a b))
(if (<= i -1.7e-263)
(* t (* c j))
(if (<= i 3e-117)
(* a (* t (- x)))
(if (<= i 2.6e+122)
(* b (* z (- c)))
(if (<= i 2e+265) t_1 (* a (* b i))))))))))
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 (i <= -7.5e+116) {
tmp = t_1;
} else if (i <= -3.8e-5) {
tmp = i * (a * b);
} else if (i <= -1.7e-263) {
tmp = t * (c * j);
} else if (i <= 3e-117) {
tmp = a * (t * -x);
} else if (i <= 2.6e+122) {
tmp = b * (z * -c);
} else if (i <= 2e+265) {
tmp = t_1;
} else {
tmp = a * (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) :: t_1
real(8) :: tmp
t_1 = i * (y * -j)
if (i <= (-7.5d+116)) then
tmp = t_1
else if (i <= (-3.8d-5)) then
tmp = i * (a * b)
else if (i <= (-1.7d-263)) then
tmp = t * (c * j)
else if (i <= 3d-117) then
tmp = a * (t * -x)
else if (i <= 2.6d+122) then
tmp = b * (z * -c)
else if (i <= 2d+265) then
tmp = t_1
else
tmp = a * (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 t_1 = i * (y * -j);
double tmp;
if (i <= -7.5e+116) {
tmp = t_1;
} else if (i <= -3.8e-5) {
tmp = i * (a * b);
} else if (i <= -1.7e-263) {
tmp = t * (c * j);
} else if (i <= 3e-117) {
tmp = a * (t * -x);
} else if (i <= 2.6e+122) {
tmp = b * (z * -c);
} else if (i <= 2e+265) {
tmp = t_1;
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if i <= -7.5e+116: tmp = t_1 elif i <= -3.8e-5: tmp = i * (a * b) elif i <= -1.7e-263: tmp = t * (c * j) elif i <= 3e-117: tmp = a * (t * -x) elif i <= 2.6e+122: tmp = b * (z * -c) elif i <= 2e+265: tmp = t_1 else: tmp = a * (b * i) 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 (i <= -7.5e+116) tmp = t_1; elseif (i <= -3.8e-5) tmp = Float64(i * Float64(a * b)); elseif (i <= -1.7e-263) tmp = Float64(t * Float64(c * j)); elseif (i <= 3e-117) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 2.6e+122) tmp = Float64(b * Float64(z * Float64(-c))); elseif (i <= 2e+265) tmp = t_1; else tmp = Float64(a * Float64(b * i)); 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 (i <= -7.5e+116) tmp = t_1; elseif (i <= -3.8e-5) tmp = i * (a * b); elseif (i <= -1.7e-263) tmp = t * (c * j); elseif (i <= 3e-117) tmp = a * (t * -x); elseif (i <= 2.6e+122) tmp = b * (z * -c); elseif (i <= 2e+265) tmp = t_1; else tmp = a * (b * i); 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[i, -7.5e+116], t$95$1, If[LessEqual[i, -3.8e-5], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.7e-263], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3e-117], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.6e+122], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2e+265], t$95$1, N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;i \leq -7.5 \cdot 10^{+116}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -3.8 \cdot 10^{-5}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;i \leq -1.7 \cdot 10^{-263}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 3 \cdot 10^{-117}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 2.6 \cdot 10^{+122}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;i \leq 2 \cdot 10^{+265}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -7.5e116 or 2.60000000000000007e122 < i < 2.00000000000000013e265Initial program 68.6%
sub-neg68.6%
associate-+l+68.6%
fma-def73.6%
+-commutative73.6%
fma-def75.3%
*-commutative75.3%
*-commutative75.3%
distribute-rgt-neg-in75.3%
sub-neg75.3%
+-commutative75.3%
distribute-neg-in75.3%
unsub-neg75.3%
remove-double-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in j around inf 56.8%
Taylor expanded in c around 0 50.4%
associate-*r*50.4%
neg-mul-150.4%
Simplified50.4%
if -7.5e116 < i < -3.8000000000000002e-5Initial program 70.8%
cancel-sign-sub70.8%
cancel-sign-sub-inv70.8%
*-commutative70.8%
*-commutative70.8%
remove-double-neg70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in a around inf 63.6%
associate-*r*63.6%
neg-mul-163.6%
cancel-sign-sub63.6%
+-commutative63.6%
mul-1-neg63.6%
unsub-neg63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in b around inf 45.4%
*-commutative45.4%
Simplified45.4%
if -3.8000000000000002e-5 < i < -1.70000000000000002e-263Initial program 76.3%
cancel-sign-sub76.3%
cancel-sign-sub-inv76.3%
*-commutative76.3%
*-commutative76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in t around inf 47.7%
*-commutative47.7%
mul-1-neg47.7%
unsub-neg47.7%
Simplified47.7%
Taylor expanded in c around inf 34.7%
if -1.70000000000000002e-263 < i < 2.99999999999999991e-117Initial program 87.0%
cancel-sign-sub87.0%
cancel-sign-sub-inv87.0%
*-commutative87.0%
*-commutative87.0%
remove-double-neg87.0%
*-commutative87.0%
*-commutative87.0%
Simplified87.0%
Taylor expanded in a around inf 47.2%
associate-*r*47.2%
neg-mul-147.2%
cancel-sign-sub47.2%
+-commutative47.2%
mul-1-neg47.2%
unsub-neg47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in b around 0 45.2%
mul-1-neg45.2%
*-commutative45.2%
distribute-rgt-neg-in45.2%
Simplified45.2%
if 2.99999999999999991e-117 < i < 2.60000000000000007e122Initial program 76.6%
+-commutative76.6%
fma-def80.9%
*-commutative80.9%
*-commutative80.9%
*-commutative80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in j around 0 62.1%
Taylor expanded in c around inf 32.4%
mul-1-neg32.4%
associate-*r*34.6%
Simplified34.6%
if 2.00000000000000013e265 < i Initial program 55.4%
cancel-sign-sub55.4%
cancel-sign-sub-inv55.4%
*-commutative55.4%
*-commutative55.4%
remove-double-neg55.4%
*-commutative55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in a around inf 99.8%
associate-*r*99.8%
neg-mul-199.8%
cancel-sign-sub99.8%
+-commutative99.8%
mul-1-neg99.8%
unsub-neg99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around -inf 79.2%
Final simplification43.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* y (- i)))))
(if (<= i -2.6e+116)
t_1
(if (<= i -3e-6)
(* i (* a b))
(if (<= i -1.52e-266)
(* t (* c j))
(if (<= i 1.3e-115)
(* a (* t (- x)))
(if (<= i 2.15e+122)
(* b (* z (- c)))
(if (<= i 1.65e+265) t_1 (* a (* b i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (y * -i);
double tmp;
if (i <= -2.6e+116) {
tmp = t_1;
} else if (i <= -3e-6) {
tmp = i * (a * b);
} else if (i <= -1.52e-266) {
tmp = t * (c * j);
} else if (i <= 1.3e-115) {
tmp = a * (t * -x);
} else if (i <= 2.15e+122) {
tmp = b * (z * -c);
} else if (i <= 1.65e+265) {
tmp = t_1;
} else {
tmp = a * (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) :: t_1
real(8) :: tmp
t_1 = j * (y * -i)
if (i <= (-2.6d+116)) then
tmp = t_1
else if (i <= (-3d-6)) then
tmp = i * (a * b)
else if (i <= (-1.52d-266)) then
tmp = t * (c * j)
else if (i <= 1.3d-115) then
tmp = a * (t * -x)
else if (i <= 2.15d+122) then
tmp = b * (z * -c)
else if (i <= 1.65d+265) then
tmp = t_1
else
tmp = a * (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 t_1 = j * (y * -i);
double tmp;
if (i <= -2.6e+116) {
tmp = t_1;
} else if (i <= -3e-6) {
tmp = i * (a * b);
} else if (i <= -1.52e-266) {
tmp = t * (c * j);
} else if (i <= 1.3e-115) {
tmp = a * (t * -x);
} else if (i <= 2.15e+122) {
tmp = b * (z * -c);
} else if (i <= 1.65e+265) {
tmp = t_1;
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (y * -i) tmp = 0 if i <= -2.6e+116: tmp = t_1 elif i <= -3e-6: tmp = i * (a * b) elif i <= -1.52e-266: tmp = t * (c * j) elif i <= 1.3e-115: tmp = a * (t * -x) elif i <= 2.15e+122: tmp = b * (z * -c) elif i <= 1.65e+265: tmp = t_1 else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(y * Float64(-i))) tmp = 0.0 if (i <= -2.6e+116) tmp = t_1; elseif (i <= -3e-6) tmp = Float64(i * Float64(a * b)); elseif (i <= -1.52e-266) tmp = Float64(t * Float64(c * j)); elseif (i <= 1.3e-115) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 2.15e+122) tmp = Float64(b * Float64(z * Float64(-c))); elseif (i <= 1.65e+265) tmp = t_1; else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (y * -i); tmp = 0.0; if (i <= -2.6e+116) tmp = t_1; elseif (i <= -3e-6) tmp = i * (a * b); elseif (i <= -1.52e-266) tmp = t * (c * j); elseif (i <= 1.3e-115) tmp = a * (t * -x); elseif (i <= 2.15e+122) tmp = b * (z * -c); elseif (i <= 1.65e+265) tmp = t_1; else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.6e+116], t$95$1, If[LessEqual[i, -3e-6], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.52e-266], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.3e-115], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.15e+122], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.65e+265], t$95$1, N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{if}\;i \leq -2.6 \cdot 10^{+116}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -3 \cdot 10^{-6}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;i \leq -1.52 \cdot 10^{-266}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 1.3 \cdot 10^{-115}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 2.15 \cdot 10^{+122}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;i \leq 1.65 \cdot 10^{+265}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -2.59999999999999987e116 or 2.14999999999999986e122 < i < 1.6499999999999999e265Initial program 68.6%
sub-neg68.6%
associate-+l+68.6%
fma-def73.6%
+-commutative73.6%
fma-def75.3%
*-commutative75.3%
*-commutative75.3%
distribute-rgt-neg-in75.3%
sub-neg75.3%
+-commutative75.3%
distribute-neg-in75.3%
unsub-neg75.3%
remove-double-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in j around inf 56.8%
Taylor expanded in c around 0 50.4%
mul-1-neg50.4%
associate-*r*55.1%
distribute-rgt-neg-in55.1%
*-commutative55.1%
Simplified55.1%
if -2.59999999999999987e116 < i < -3.0000000000000001e-6Initial program 70.8%
cancel-sign-sub70.8%
cancel-sign-sub-inv70.8%
*-commutative70.8%
*-commutative70.8%
remove-double-neg70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in a around inf 63.6%
associate-*r*63.6%
neg-mul-163.6%
cancel-sign-sub63.6%
+-commutative63.6%
mul-1-neg63.6%
unsub-neg63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in b around inf 45.4%
*-commutative45.4%
Simplified45.4%
if -3.0000000000000001e-6 < i < -1.52000000000000001e-266Initial program 76.3%
cancel-sign-sub76.3%
cancel-sign-sub-inv76.3%
*-commutative76.3%
*-commutative76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in t around inf 47.7%
*-commutative47.7%
mul-1-neg47.7%
unsub-neg47.7%
Simplified47.7%
Taylor expanded in c around inf 34.7%
if -1.52000000000000001e-266 < i < 1.30000000000000002e-115Initial program 87.0%
cancel-sign-sub87.0%
cancel-sign-sub-inv87.0%
*-commutative87.0%
*-commutative87.0%
remove-double-neg87.0%
*-commutative87.0%
*-commutative87.0%
Simplified87.0%
Taylor expanded in a around inf 47.2%
associate-*r*47.2%
neg-mul-147.2%
cancel-sign-sub47.2%
+-commutative47.2%
mul-1-neg47.2%
unsub-neg47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in b around 0 45.2%
mul-1-neg45.2%
*-commutative45.2%
distribute-rgt-neg-in45.2%
Simplified45.2%
if 1.30000000000000002e-115 < i < 2.14999999999999986e122Initial program 76.6%
+-commutative76.6%
fma-def80.9%
*-commutative80.9%
*-commutative80.9%
*-commutative80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in j around 0 62.1%
Taylor expanded in c around inf 32.4%
mul-1-neg32.4%
associate-*r*34.6%
Simplified34.6%
if 1.6499999999999999e265 < i Initial program 55.4%
cancel-sign-sub55.4%
cancel-sign-sub-inv55.4%
*-commutative55.4%
*-commutative55.4%
remove-double-neg55.4%
*-commutative55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in a around inf 99.8%
associate-*r*99.8%
neg-mul-199.8%
cancel-sign-sub99.8%
+-commutative99.8%
mul-1-neg99.8%
unsub-neg99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around -inf 79.2%
Final simplification44.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -7.5e+78)
t_2
(if (<= a 5.9e-173)
t_1
(if (<= a 1.72e-65)
(* t (- (* c j) (* x a)))
(if (<= a 6.2e+95) 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 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.5e+78) {
tmp = t_2;
} else if (a <= 5.9e-173) {
tmp = t_1;
} else if (a <= 1.72e-65) {
tmp = t * ((c * j) - (x * a));
} else if (a <= 6.2e+95) {
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 = c * ((t * j) - (z * b))
t_2 = a * ((b * i) - (x * t))
if (a <= (-7.5d+78)) then
tmp = t_2
else if (a <= 5.9d-173) then
tmp = t_1
else if (a <= 1.72d-65) then
tmp = t * ((c * j) - (x * a))
else if (a <= 6.2d+95) 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 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.5e+78) {
tmp = t_2;
} else if (a <= 5.9e-173) {
tmp = t_1;
} else if (a <= 1.72e-65) {
tmp = t * ((c * j) - (x * a));
} else if (a <= 6.2e+95) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -7.5e+78: tmp = t_2 elif a <= 5.9e-173: tmp = t_1 elif a <= 1.72e-65: tmp = t * ((c * j) - (x * a)) elif a <= 6.2e+95: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -7.5e+78) tmp = t_2; elseif (a <= 5.9e-173) tmp = t_1; elseif (a <= 1.72e-65) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (a <= 6.2e+95) 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 = c * ((t * j) - (z * b)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -7.5e+78) tmp = t_2; elseif (a <= 5.9e-173) tmp = t_1; elseif (a <= 1.72e-65) tmp = t * ((c * j) - (x * a)); elseif (a <= 6.2e+95) 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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.5e+78], t$95$2, If[LessEqual[a, 5.9e-173], t$95$1, If[LessEqual[a, 1.72e-65], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.2e+95], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -7.5 \cdot 10^{+78}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 5.9 \cdot 10^{-173}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.72 \cdot 10^{-65}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{+95}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -7.49999999999999934e78 or 6.2000000000000006e95 < a Initial program 65.5%
cancel-sign-sub65.5%
cancel-sign-sub-inv65.5%
*-commutative65.5%
*-commutative65.5%
remove-double-neg65.5%
*-commutative65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in a around inf 68.7%
associate-*r*68.7%
neg-mul-168.7%
cancel-sign-sub68.7%
+-commutative68.7%
mul-1-neg68.7%
unsub-neg68.7%
*-commutative68.7%
Simplified68.7%
if -7.49999999999999934e78 < a < 5.89999999999999995e-173 or 1.72000000000000005e-65 < a < 6.2000000000000006e95Initial program 80.6%
cancel-sign-sub80.6%
cancel-sign-sub-inv80.6%
*-commutative80.6%
*-commutative80.6%
remove-double-neg80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in c around inf 56.4%
if 5.89999999999999995e-173 < a < 1.72000000000000005e-65Initial program 87.6%
cancel-sign-sub87.6%
cancel-sign-sub-inv87.6%
*-commutative87.6%
*-commutative87.6%
remove-double-neg87.6%
*-commutative87.6%
*-commutative87.6%
Simplified87.6%
Taylor expanded in t around inf 45.8%
*-commutative45.8%
mul-1-neg45.8%
unsub-neg45.8%
Simplified45.8%
Final simplification60.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.16e-45)
(* t (- (* x a)))
(if (<= a -8.6e-193)
(* y (* x z))
(if (<= a 4.2e-237)
(* z (- (* b c)))
(if (<= a 9.5e-88)
(* c (* t j))
(if (<= a 1.65e+83) (* b (* z (- c))) (* a (* 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 (a <= -1.16e-45) {
tmp = t * -(x * a);
} else if (a <= -8.6e-193) {
tmp = y * (x * z);
} else if (a <= 4.2e-237) {
tmp = z * -(b * c);
} else if (a <= 9.5e-88) {
tmp = c * (t * j);
} else if (a <= 1.65e+83) {
tmp = b * (z * -c);
} else {
tmp = a * (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 (a <= (-1.16d-45)) then
tmp = t * -(x * a)
else if (a <= (-8.6d-193)) then
tmp = y * (x * z)
else if (a <= 4.2d-237) then
tmp = z * -(b * c)
else if (a <= 9.5d-88) then
tmp = c * (t * j)
else if (a <= 1.65d+83) then
tmp = b * (z * -c)
else
tmp = a * (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 (a <= -1.16e-45) {
tmp = t * -(x * a);
} else if (a <= -8.6e-193) {
tmp = y * (x * z);
} else if (a <= 4.2e-237) {
tmp = z * -(b * c);
} else if (a <= 9.5e-88) {
tmp = c * (t * j);
} else if (a <= 1.65e+83) {
tmp = b * (z * -c);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.16e-45: tmp = t * -(x * a) elif a <= -8.6e-193: tmp = y * (x * z) elif a <= 4.2e-237: tmp = z * -(b * c) elif a <= 9.5e-88: tmp = c * (t * j) elif a <= 1.65e+83: tmp = b * (z * -c) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.16e-45) tmp = Float64(t * Float64(-Float64(x * a))); elseif (a <= -8.6e-193) tmp = Float64(y * Float64(x * z)); elseif (a <= 4.2e-237) tmp = Float64(z * Float64(-Float64(b * c))); elseif (a <= 9.5e-88) tmp = Float64(c * Float64(t * j)); elseif (a <= 1.65e+83) tmp = Float64(b * Float64(z * Float64(-c))); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.16e-45) tmp = t * -(x * a); elseif (a <= -8.6e-193) tmp = y * (x * z); elseif (a <= 4.2e-237) tmp = z * -(b * c); elseif (a <= 9.5e-88) tmp = c * (t * j); elseif (a <= 1.65e+83) tmp = b * (z * -c); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.16e-45], N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision], If[LessEqual[a, -8.6e-193], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.2e-237], N[(z * (-N[(b * c), $MachinePrecision])), $MachinePrecision], If[LessEqual[a, 9.5e-88], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.65e+83], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.16 \cdot 10^{-45}:\\
\;\;\;\;t \cdot \left(-x \cdot a\right)\\
\mathbf{elif}\;a \leq -8.6 \cdot 10^{-193}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{-237}:\\
\;\;\;\;z \cdot \left(-b \cdot c\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-88}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{+83}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if a < -1.16000000000000002e-45Initial program 66.9%
cancel-sign-sub66.9%
cancel-sign-sub-inv66.9%
*-commutative66.9%
*-commutative66.9%
remove-double-neg66.9%
*-commutative66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in t around inf 50.8%
*-commutative50.8%
mul-1-neg50.8%
unsub-neg50.8%
Simplified50.8%
Taylor expanded in c around 0 35.6%
mul-1-neg35.6%
distribute-lft-neg-out35.6%
*-commutative35.6%
Simplified35.6%
if -1.16000000000000002e-45 < a < -8.6000000000000004e-193Initial program 77.6%
cancel-sign-sub77.6%
cancel-sign-sub-inv77.6%
*-commutative77.6%
*-commutative77.6%
remove-double-neg77.6%
*-commutative77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in y around inf 52.7%
+-commutative52.7%
mul-1-neg52.7%
unsub-neg52.7%
Simplified52.7%
Taylor expanded in z around inf 39.7%
if -8.6000000000000004e-193 < a < 4.2000000000000002e-237Initial program 82.3%
+-commutative82.3%
fma-def84.9%
*-commutative84.9%
*-commutative84.9%
*-commutative84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in j around 0 50.5%
*-commutative50.5%
add-cbrt-cube49.9%
Applied egg-rr49.9%
Taylor expanded in c around inf 49.9%
mul-1-neg49.9%
associate-*r*40.4%
*-commutative40.4%
associate-*l*47.4%
distribute-rgt-neg-in47.4%
distribute-rgt-neg-in47.4%
Simplified47.4%
if 4.2000000000000002e-237 < a < 9.5e-88Initial program 92.8%
cancel-sign-sub92.8%
cancel-sign-sub-inv92.8%
*-commutative92.8%
*-commutative92.8%
remove-double-neg92.8%
*-commutative92.8%
*-commutative92.8%
Simplified92.8%
Taylor expanded in t around inf 55.4%
*-commutative55.4%
mul-1-neg55.4%
unsub-neg55.4%
Simplified55.4%
Taylor expanded in c around inf 41.2%
if 9.5e-88 < a < 1.64999999999999992e83Initial program 83.8%
+-commutative83.8%
fma-def86.5%
*-commutative86.5%
*-commutative86.5%
*-commutative86.5%
*-commutative86.5%
Simplified86.5%
Taylor expanded in j around 0 77.0%
Taylor expanded in c around inf 29.6%
mul-1-neg29.6%
associate-*r*39.4%
Simplified39.4%
if 1.64999999999999992e83 < a Initial program 63.4%
cancel-sign-sub63.4%
cancel-sign-sub-inv63.4%
*-commutative63.4%
*-commutative63.4%
remove-double-neg63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in a around inf 69.5%
associate-*r*69.5%
neg-mul-169.5%
cancel-sign-sub69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in b around -inf 40.8%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))))
(if (<= a -9.5e+117)
t_1
(if (<= a -1.15e-241)
(* y (* x z))
(if (<= a 4.5e-88)
(* c (* t j))
(if (<= a 3.8e+88) (* b (* z (- 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 = a * (b * i);
double tmp;
if (a <= -9.5e+117) {
tmp = t_1;
} else if (a <= -1.15e-241) {
tmp = y * (x * z);
} else if (a <= 4.5e-88) {
tmp = c * (t * j);
} else if (a <= 3.8e+88) {
tmp = b * (z * -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 = a * (b * i)
if (a <= (-9.5d+117)) then
tmp = t_1
else if (a <= (-1.15d-241)) then
tmp = y * (x * z)
else if (a <= 4.5d-88) then
tmp = c * (t * j)
else if (a <= 3.8d+88) then
tmp = b * (z * -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 = a * (b * i);
double tmp;
if (a <= -9.5e+117) {
tmp = t_1;
} else if (a <= -1.15e-241) {
tmp = y * (x * z);
} else if (a <= 4.5e-88) {
tmp = c * (t * j);
} else if (a <= 3.8e+88) {
tmp = b * (z * -c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if a <= -9.5e+117: tmp = t_1 elif a <= -1.15e-241: tmp = y * (x * z) elif a <= 4.5e-88: tmp = c * (t * j) elif a <= 3.8e+88: tmp = b * (z * -c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) tmp = 0.0 if (a <= -9.5e+117) tmp = t_1; elseif (a <= -1.15e-241) tmp = Float64(y * Float64(x * z)); elseif (a <= 4.5e-88) tmp = Float64(c * Float64(t * j)); elseif (a <= 3.8e+88) tmp = Float64(b * Float64(z * Float64(-c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); tmp = 0.0; if (a <= -9.5e+117) tmp = t_1; elseif (a <= -1.15e-241) tmp = y * (x * z); elseif (a <= 4.5e-88) tmp = c * (t * j); elseif (a <= 3.8e+88) tmp = b * (z * -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[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.5e+117], t$95$1, If[LessEqual[a, -1.15e-241], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.5e-88], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.8e+88], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;a \leq -9.5 \cdot 10^{+117}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{-241}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-88}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{+88}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -9.50000000000000041e117 or 3.7999999999999997e88 < a Initial program 64.7%
cancel-sign-sub64.7%
cancel-sign-sub-inv64.7%
*-commutative64.7%
*-commutative64.7%
remove-double-neg64.7%
*-commutative64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in a around inf 70.2%
associate-*r*70.2%
neg-mul-170.2%
cancel-sign-sub70.2%
+-commutative70.2%
mul-1-neg70.2%
unsub-neg70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in b around -inf 41.5%
if -9.50000000000000041e117 < a < -1.15e-241Initial program 74.3%
cancel-sign-sub74.3%
cancel-sign-sub-inv74.3%
*-commutative74.3%
*-commutative74.3%
remove-double-neg74.3%
*-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in y around inf 47.8%
+-commutative47.8%
mul-1-neg47.8%
unsub-neg47.8%
Simplified47.8%
Taylor expanded in z around inf 30.2%
if -1.15e-241 < a < 4.49999999999999991e-88Initial program 88.9%
cancel-sign-sub88.9%
cancel-sign-sub-inv88.9%
*-commutative88.9%
*-commutative88.9%
remove-double-neg88.9%
*-commutative88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in t around inf 46.8%
*-commutative46.8%
mul-1-neg46.8%
unsub-neg46.8%
Simplified46.8%
Taylor expanded in c around inf 39.4%
if 4.49999999999999991e-88 < a < 3.7999999999999997e88Initial program 83.8%
+-commutative83.8%
fma-def86.5%
*-commutative86.5%
*-commutative86.5%
*-commutative86.5%
*-commutative86.5%
Simplified86.5%
Taylor expanded in j around 0 77.0%
Taylor expanded in c around inf 29.6%
mul-1-neg29.6%
associate-*r*39.4%
Simplified39.4%
Final simplification37.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -3.7e+77) (not (<= a 3.2e+95))) (* a (- (* b i) (* x t))) (* c (- (* t j) (* z b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -3.7e+77) || !(a <= 3.2e+95)) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((t * j) - (z * b));
}
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 ((a <= (-3.7d+77)) .or. (.not. (a <= 3.2d+95))) then
tmp = a * ((b * i) - (x * t))
else
tmp = c * ((t * j) - (z * b))
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 ((a <= -3.7e+77) || !(a <= 3.2e+95)) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -3.7e+77) or not (a <= 3.2e+95): tmp = a * ((b * i) - (x * t)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -3.7e+77) || !(a <= 3.2e+95)) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -3.7e+77) || ~((a <= 3.2e+95))) tmp = a * ((b * i) - (x * t)); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -3.7e+77], N[Not[LessEqual[a, 3.2e+95]], $MachinePrecision]], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.7 \cdot 10^{+77} \lor \neg \left(a \leq 3.2 \cdot 10^{+95}\right):\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if a < -3.69999999999999995e77 or 3.2000000000000001e95 < a Initial program 65.5%
cancel-sign-sub65.5%
cancel-sign-sub-inv65.5%
*-commutative65.5%
*-commutative65.5%
remove-double-neg65.5%
*-commutative65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in a around inf 68.7%
associate-*r*68.7%
neg-mul-168.7%
cancel-sign-sub68.7%
+-commutative68.7%
mul-1-neg68.7%
unsub-neg68.7%
*-commutative68.7%
Simplified68.7%
if -3.69999999999999995e77 < a < 3.2000000000000001e95Initial program 81.7%
cancel-sign-sub81.7%
cancel-sign-sub-inv81.7%
*-commutative81.7%
*-commutative81.7%
remove-double-neg81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
Taylor expanded in c around inf 51.7%
Final simplification58.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -4000000000000.0) (* j (* t c)) (if (<= c 6.4e+83) (* a (- (* b i) (* x t))) (* z (- (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -4000000000000.0) {
tmp = j * (t * c);
} else if (c <= 6.4e+83) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = z * -(b * 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 (c <= (-4000000000000.0d0)) then
tmp = j * (t * c)
else if (c <= 6.4d+83) then
tmp = a * ((b * i) - (x * t))
else
tmp = z * -(b * 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 (c <= -4000000000000.0) {
tmp = j * (t * c);
} else if (c <= 6.4e+83) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = z * -(b * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -4000000000000.0: tmp = j * (t * c) elif c <= 6.4e+83: tmp = a * ((b * i) - (x * t)) else: tmp = z * -(b * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -4000000000000.0) tmp = Float64(j * Float64(t * c)); elseif (c <= 6.4e+83) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(z * Float64(-Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -4000000000000.0) tmp = j * (t * c); elseif (c <= 6.4e+83) tmp = a * ((b * i) - (x * t)); else tmp = z * -(b * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -4000000000000.0], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.4e+83], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * (-N[(b * c), $MachinePrecision])), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4000000000000:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;c \leq 6.4 \cdot 10^{+83}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(-b \cdot c\right)\\
\end{array}
\end{array}
if c < -4e12Initial program 58.2%
cancel-sign-sub58.2%
cancel-sign-sub-inv58.2%
*-commutative58.2%
*-commutative58.2%
remove-double-neg58.2%
*-commutative58.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in t around inf 48.8%
*-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
Simplified48.8%
Taylor expanded in c around inf 36.8%
associate-*r*38.5%
Simplified38.5%
if -4e12 < c < 6.3999999999999998e83Initial program 81.8%
cancel-sign-sub81.8%
cancel-sign-sub-inv81.8%
*-commutative81.8%
*-commutative81.8%
remove-double-neg81.8%
*-commutative81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in a around inf 51.1%
associate-*r*51.1%
neg-mul-151.1%
cancel-sign-sub51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
*-commutative51.1%
Simplified51.1%
if 6.3999999999999998e83 < c Initial program 74.2%
+-commutative74.2%
fma-def76.4%
*-commutative76.4%
*-commutative76.4%
*-commutative76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in j around 0 67.8%
*-commutative67.8%
add-cbrt-cube57.3%
Applied egg-rr57.3%
Taylor expanded in c around inf 46.9%
mul-1-neg46.9%
associate-*r*47.0%
*-commutative47.0%
associate-*l*53.1%
distribute-rgt-neg-in53.1%
distribute-rgt-neg-in53.1%
Simplified53.1%
Final simplification48.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.2e-46)
(* t (- (* x a)))
(if (<= a -2.65e-192)
(* y (* x z))
(if (<= a 7.6e+85) (* b (* z (- c))) (* a (* 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 (a <= -1.2e-46) {
tmp = t * -(x * a);
} else if (a <= -2.65e-192) {
tmp = y * (x * z);
} else if (a <= 7.6e+85) {
tmp = b * (z * -c);
} else {
tmp = a * (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 (a <= (-1.2d-46)) then
tmp = t * -(x * a)
else if (a <= (-2.65d-192)) then
tmp = y * (x * z)
else if (a <= 7.6d+85) then
tmp = b * (z * -c)
else
tmp = a * (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 (a <= -1.2e-46) {
tmp = t * -(x * a);
} else if (a <= -2.65e-192) {
tmp = y * (x * z);
} else if (a <= 7.6e+85) {
tmp = b * (z * -c);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.2e-46: tmp = t * -(x * a) elif a <= -2.65e-192: tmp = y * (x * z) elif a <= 7.6e+85: tmp = b * (z * -c) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.2e-46) tmp = Float64(t * Float64(-Float64(x * a))); elseif (a <= -2.65e-192) tmp = Float64(y * Float64(x * z)); elseif (a <= 7.6e+85) tmp = Float64(b * Float64(z * Float64(-c))); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.2e-46) tmp = t * -(x * a); elseif (a <= -2.65e-192) tmp = y * (x * z); elseif (a <= 7.6e+85) tmp = b * (z * -c); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.2e-46], N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision], If[LessEqual[a, -2.65e-192], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.6e+85], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{-46}:\\
\;\;\;\;t \cdot \left(-x \cdot a\right)\\
\mathbf{elif}\;a \leq -2.65 \cdot 10^{-192}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 7.6 \cdot 10^{+85}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if a < -1.20000000000000007e-46Initial program 66.9%
cancel-sign-sub66.9%
cancel-sign-sub-inv66.9%
*-commutative66.9%
*-commutative66.9%
remove-double-neg66.9%
*-commutative66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in t around inf 50.8%
*-commutative50.8%
mul-1-neg50.8%
unsub-neg50.8%
Simplified50.8%
Taylor expanded in c around 0 35.6%
mul-1-neg35.6%
distribute-lft-neg-out35.6%
*-commutative35.6%
Simplified35.6%
if -1.20000000000000007e-46 < a < -2.64999999999999985e-192Initial program 77.6%
cancel-sign-sub77.6%
cancel-sign-sub-inv77.6%
*-commutative77.6%
*-commutative77.6%
remove-double-neg77.6%
*-commutative77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in y around inf 52.7%
+-commutative52.7%
mul-1-neg52.7%
unsub-neg52.7%
Simplified52.7%
Taylor expanded in z around inf 39.7%
if -2.64999999999999985e-192 < a < 7.59999999999999984e85Initial program 85.7%
+-commutative85.7%
fma-def87.6%
*-commutative87.6%
*-commutative87.6%
*-commutative87.6%
*-commutative87.6%
Simplified87.6%
Taylor expanded in j around 0 60.4%
Taylor expanded in c around inf 33.6%
mul-1-neg33.6%
associate-*r*34.5%
Simplified34.5%
if 7.59999999999999984e85 < a Initial program 63.4%
cancel-sign-sub63.4%
cancel-sign-sub-inv63.4%
*-commutative63.4%
*-commutative63.4%
remove-double-neg63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in a around inf 69.5%
associate-*r*69.5%
neg-mul-169.5%
cancel-sign-sub69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in b around -inf 40.8%
Final simplification36.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))))
(if (<= a -3.55e+118)
t_1
(if (<= a -2.6e-244)
(* y (* x z))
(if (<= a 8.5e+55) (* c (* t 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 = a * (b * i);
double tmp;
if (a <= -3.55e+118) {
tmp = t_1;
} else if (a <= -2.6e-244) {
tmp = y * (x * z);
} else if (a <= 8.5e+55) {
tmp = c * (t * 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 = a * (b * i)
if (a <= (-3.55d+118)) then
tmp = t_1
else if (a <= (-2.6d-244)) then
tmp = y * (x * z)
else if (a <= 8.5d+55) then
tmp = c * (t * 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 = a * (b * i);
double tmp;
if (a <= -3.55e+118) {
tmp = t_1;
} else if (a <= -2.6e-244) {
tmp = y * (x * z);
} else if (a <= 8.5e+55) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if a <= -3.55e+118: tmp = t_1 elif a <= -2.6e-244: tmp = y * (x * z) elif a <= 8.5e+55: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) tmp = 0.0 if (a <= -3.55e+118) tmp = t_1; elseif (a <= -2.6e-244) tmp = Float64(y * Float64(x * z)); elseif (a <= 8.5e+55) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); tmp = 0.0; if (a <= -3.55e+118) tmp = t_1; elseif (a <= -2.6e-244) tmp = y * (x * z); elseif (a <= 8.5e+55) tmp = c * (t * 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[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.55e+118], t$95$1, If[LessEqual[a, -2.6e-244], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e+55], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;a \leq -3.55 \cdot 10^{+118}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{-244}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{+55}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -3.5499999999999999e118 or 8.50000000000000002e55 < a Initial program 66.5%
cancel-sign-sub66.5%
cancel-sign-sub-inv66.5%
*-commutative66.5%
*-commutative66.5%
remove-double-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in a around inf 67.1%
associate-*r*67.1%
neg-mul-167.1%
cancel-sign-sub67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in b around -inf 39.6%
if -3.5499999999999999e118 < a < -2.6000000000000001e-244Initial program 74.3%
cancel-sign-sub74.3%
cancel-sign-sub-inv74.3%
*-commutative74.3%
*-commutative74.3%
remove-double-neg74.3%
*-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in y around inf 47.8%
+-commutative47.8%
mul-1-neg47.8%
unsub-neg47.8%
Simplified47.8%
Taylor expanded in z around inf 30.2%
if -2.6000000000000001e-244 < a < 8.50000000000000002e55Initial program 86.7%
cancel-sign-sub86.7%
cancel-sign-sub-inv86.7%
*-commutative86.7%
*-commutative86.7%
remove-double-neg86.7%
*-commutative86.7%
*-commutative86.7%
Simplified86.7%
Taylor expanded in t around inf 40.3%
*-commutative40.3%
mul-1-neg40.3%
unsub-neg40.3%
Simplified40.3%
Taylor expanded in c around inf 32.0%
Final simplification34.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -8.5e+84) (not (<= a 2.9e+59))) (* a (* b i)) (* c (* t j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -8.5e+84) || !(a <= 2.9e+59)) {
tmp = a * (b * i);
} else {
tmp = c * (t * 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 ((a <= (-8.5d+84)) .or. (.not. (a <= 2.9d+59))) then
tmp = a * (b * i)
else
tmp = c * (t * 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 ((a <= -8.5e+84) || !(a <= 2.9e+59)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -8.5e+84) or not (a <= 2.9e+59): tmp = a * (b * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -8.5e+84) || !(a <= 2.9e+59)) tmp = Float64(a * Float64(b * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -8.5e+84) || ~((a <= 2.9e+59))) tmp = a * (b * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -8.5e+84], N[Not[LessEqual[a, 2.9e+59]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.5 \cdot 10^{+84} \lor \neg \left(a \leq 2.9 \cdot 10^{+59}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if a < -8.5000000000000008e84 or 2.89999999999999991e59 < a Initial program 66.8%
cancel-sign-sub66.8%
cancel-sign-sub-inv66.8%
*-commutative66.8%
*-commutative66.8%
remove-double-neg66.8%
*-commutative66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in a around inf 65.6%
associate-*r*65.6%
neg-mul-165.6%
cancel-sign-sub65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in b around -inf 38.2%
if -8.5000000000000008e84 < a < 2.89999999999999991e59Initial program 81.5%
cancel-sign-sub81.5%
cancel-sign-sub-inv81.5%
*-commutative81.5%
*-commutative81.5%
remove-double-neg81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in t around inf 37.1%
*-commutative37.1%
mul-1-neg37.1%
unsub-neg37.1%
Simplified37.1%
Taylor expanded in c around inf 29.1%
Final simplification33.0%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * 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 = a * (b * 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 a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 75.2%
cancel-sign-sub75.2%
cancel-sign-sub-inv75.2%
*-commutative75.2%
*-commutative75.2%
remove-double-neg75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in a around inf 41.0%
associate-*r*41.0%
neg-mul-141.0%
cancel-sign-sub41.0%
+-commutative41.0%
mul-1-neg41.0%
unsub-neg41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in b around -inf 22.6%
Final simplification22.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) 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))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
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))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) 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))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
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))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 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(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) 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))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) 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[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023199
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))