
(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 24 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
(+
(- (* b (- (* a i) (* z c))) (* x (- (* t a) (* y z))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* c (* z (- (/ (* 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 t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = c * (z * (((t * j) / z) - b));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = c * (z * (((t * j) / z) - b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = c * (z * (((t * j) / z) - b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(c * Float64(z * Float64(Float64(Float64(t * j) / z) - b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = c * (z * (((t * j) / z) - b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(c * N[(z * N[(N[(N[(t * j), $MachinePrecision] / z), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot \left(a \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(\frac{t \cdot j}{z} - b\right)\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.1%
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%
+-commutative0.0%
fma-define9.5%
*-commutative9.5%
*-commutative9.5%
cancel-sign-sub-inv9.5%
cancel-sign-sub9.5%
fma-neg11.1%
distribute-rgt-neg-out11.1%
remove-double-neg11.1%
*-commutative11.1%
*-commutative11.1%
Simplified11.1%
Taylor expanded in c around inf 51.8%
*-commutative51.8%
*-commutative51.8%
Simplified51.8%
Taylor expanded in z around inf 58.1%
Final simplification83.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* z (- (* x y) (* b c))))
(t_3 (- t_1 (* x (- (* t a) (* y z)))))
(t_4 (+ t_1 (* a (* b i)))))
(if (<= z -1.8e+70)
t_2
(if (<= z -3.4e-153)
t_3
(if (<= z 7e-216)
t_4
(if (<= z 4.8e-42) t_3 (if (<= z 4.2e+48) t_4 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t_1 - (x * ((t * a) - (y * z)));
double t_4 = t_1 + (a * (b * i));
double tmp;
if (z <= -1.8e+70) {
tmp = t_2;
} else if (z <= -3.4e-153) {
tmp = t_3;
} else if (z <= 7e-216) {
tmp = t_4;
} else if (z <= 4.8e-42) {
tmp = t_3;
} else if (z <= 4.2e+48) {
tmp = t_4;
} 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) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = z * ((x * y) - (b * c))
t_3 = t_1 - (x * ((t * a) - (y * z)))
t_4 = t_1 + (a * (b * i))
if (z <= (-1.8d+70)) then
tmp = t_2
else if (z <= (-3.4d-153)) then
tmp = t_3
else if (z <= 7d-216) then
tmp = t_4
else if (z <= 4.8d-42) then
tmp = t_3
else if (z <= 4.2d+48) then
tmp = t_4
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t_1 - (x * ((t * a) - (y * z)));
double t_4 = t_1 + (a * (b * i));
double tmp;
if (z <= -1.8e+70) {
tmp = t_2;
} else if (z <= -3.4e-153) {
tmp = t_3;
} else if (z <= 7e-216) {
tmp = t_4;
} else if (z <= 4.8e-42) {
tmp = t_3;
} else if (z <= 4.2e+48) {
tmp = t_4;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = z * ((x * y) - (b * c)) t_3 = t_1 - (x * ((t * a) - (y * z))) t_4 = t_1 + (a * (b * i)) tmp = 0 if z <= -1.8e+70: tmp = t_2 elif z <= -3.4e-153: tmp = t_3 elif z <= 7e-216: tmp = t_4 elif z <= 4.8e-42: tmp = t_3 elif z <= 4.2e+48: tmp = t_4 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_3 = Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) t_4 = Float64(t_1 + Float64(a * Float64(b * i))) tmp = 0.0 if (z <= -1.8e+70) tmp = t_2; elseif (z <= -3.4e-153) tmp = t_3; elseif (z <= 7e-216) tmp = t_4; elseif (z <= 4.8e-42) tmp = t_3; elseif (z <= 4.2e+48) tmp = t_4; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = z * ((x * y) - (b * c)); t_3 = t_1 - (x * ((t * a) - (y * z))); t_4 = t_1 + (a * (b * i)); tmp = 0.0; if (z <= -1.8e+70) tmp = t_2; elseif (z <= -3.4e-153) tmp = t_3; elseif (z <= 7e-216) tmp = t_4; elseif (z <= 4.8e-42) tmp = t_3; elseif (z <= 4.2e+48) tmp = t_4; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.8e+70], t$95$2, If[LessEqual[z, -3.4e-153], t$95$3, If[LessEqual[z, 7e-216], t$95$4, If[LessEqual[z, 4.8e-42], t$95$3, If[LessEqual[z, 4.2e+48], t$95$4, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := t\_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
t_4 := t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;z \leq -1.8 \cdot 10^{+70}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -3.4 \cdot 10^{-153}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 7 \cdot 10^{-216}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-42}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{+48}:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.8e70 or 4.1999999999999997e48 < z Initial program 56.9%
Taylor expanded in a around inf 52.2%
+-commutative52.2%
mul-1-neg52.2%
unsub-neg52.2%
associate-/l*49.6%
associate-/l*51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in z around inf 75.5%
*-commutative75.5%
Simplified75.5%
if -1.8e70 < z < -3.3999999999999998e-153 or 6.99999999999999965e-216 < z < 4.80000000000000005e-42Initial program 76.2%
Taylor expanded in b around 0 69.6%
if -3.3999999999999998e-153 < z < 6.99999999999999965e-216 or 4.80000000000000005e-42 < z < 4.1999999999999997e48Initial program 78.6%
cancel-sign-sub-inv78.6%
cancel-sign-sub78.6%
*-commutative78.6%
fma-neg78.6%
distribute-rgt-neg-in78.6%
remove-double-neg78.6%
*-commutative78.6%
*-commutative78.6%
sub-neg78.6%
sub-neg78.6%
*-commutative78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in i around inf 76.5%
Final simplification73.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* y (- (* x z) (* i j))) (* b (- (* a i) (* z c)))))
(t_2 (* z (- (* x y) (* b c)))))
(if (<= z -5.8e+158)
t_2
(if (<= z -1.15e-71)
t_1
(if (<= z 6.6e-80)
(+ (* j (- (* t c) (* y i))) (* a (- (* b i) (* x t))))
(if (<= z 2.35e+156) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c)));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -5.8e+158) {
tmp = t_2;
} else if (z <= -1.15e-71) {
tmp = t_1;
} else if (z <= 6.6e-80) {
tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t)));
} else if (z <= 2.35e+156) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c)))
t_2 = z * ((x * y) - (b * c))
if (z <= (-5.8d+158)) then
tmp = t_2
else if (z <= (-1.15d-71)) then
tmp = t_1
else if (z <= 6.6d-80) then
tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t)))
else if (z <= 2.35d+156) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c)));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -5.8e+158) {
tmp = t_2;
} else if (z <= -1.15e-71) {
tmp = t_1;
} else if (z <= 6.6e-80) {
tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t)));
} else if (z <= 2.35e+156) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c))) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -5.8e+158: tmp = t_2 elif z <= -1.15e-71: tmp = t_1 elif z <= 6.6e-80: tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t))) elif z <= 2.35e+156: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -5.8e+158) tmp = t_2; elseif (z <= -1.15e-71) tmp = t_1; elseif (z <= 6.6e-80) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(Float64(b * i) - Float64(x * t)))); elseif (z <= 2.35e+156) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c))); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -5.8e+158) tmp = t_2; elseif (z <= -1.15e-71) tmp = t_1; elseif (z <= 6.6e-80) tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t))); elseif (z <= 2.35e+156) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.8e+158], t$95$2, If[LessEqual[z, -1.15e-71], t$95$1, If[LessEqual[z, 6.6e-80], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.35e+156], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -5.8 \cdot 10^{+158}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-80}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 2.35 \cdot 10^{+156}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -5.80000000000000048e158 or 2.35e156 < z Initial program 54.1%
Taylor expanded in a around inf 46.7%
+-commutative46.7%
mul-1-neg46.7%
unsub-neg46.7%
associate-/l*42.7%
associate-/l*44.2%
*-commutative44.2%
Simplified44.2%
Taylor expanded in z around inf 80.1%
*-commutative80.1%
Simplified80.1%
if -5.80000000000000048e158 < z < -1.1499999999999999e-71 or 6.5999999999999999e-80 < z < 2.35e156Initial program 65.4%
+-commutative65.4%
fma-define65.4%
*-commutative65.4%
*-commutative65.4%
cancel-sign-sub-inv65.4%
cancel-sign-sub65.4%
fma-neg65.4%
distribute-rgt-neg-out65.4%
remove-double-neg65.4%
*-commutative65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in t around 0 59.4%
associate-*r*61.5%
associate-*r*61.5%
*-commutative61.5%
associate-*r*72.6%
distribute-rgt-in73.7%
+-commutative73.7%
mul-1-neg73.7%
unsub-neg73.7%
*-commutative73.7%
Simplified73.7%
if -1.1499999999999999e-71 < z < 6.5999999999999999e-80Initial program 81.9%
cancel-sign-sub-inv81.9%
cancel-sign-sub81.9%
*-commutative81.9%
fma-neg81.9%
distribute-rgt-neg-in81.9%
remove-double-neg81.9%
*-commutative81.9%
*-commutative81.9%
sub-neg81.9%
sub-neg81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in a around -inf 79.1%
Final simplification77.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -9e-75)
t_2
(if (<= z -8.6e-211)
(* i (- (* a b) (* y j)))
(if (<= z 5.6e-272)
t_1
(if (<= z 3e-68)
(* j (- (* t c) (* y i)))
(if (<= z 4.5e+49) 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 = a * ((b * i) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -9e-75) {
tmp = t_2;
} else if (z <= -8.6e-211) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 5.6e-272) {
tmp = t_1;
} else if (z <= 3e-68) {
tmp = j * ((t * c) - (y * i));
} else if (z <= 4.5e+49) {
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 = a * ((b * i) - (x * t))
t_2 = z * ((x * y) - (b * c))
if (z <= (-9d-75)) then
tmp = t_2
else if (z <= (-8.6d-211)) then
tmp = i * ((a * b) - (y * j))
else if (z <= 5.6d-272) then
tmp = t_1
else if (z <= 3d-68) then
tmp = j * ((t * c) - (y * i))
else if (z <= 4.5d+49) 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 = a * ((b * i) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -9e-75) {
tmp = t_2;
} else if (z <= -8.6e-211) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 5.6e-272) {
tmp = t_1;
} else if (z <= 3e-68) {
tmp = j * ((t * c) - (y * i));
} else if (z <= 4.5e+49) {
tmp = t_1;
} 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 = z * ((x * y) - (b * c)) tmp = 0 if z <= -9e-75: tmp = t_2 elif z <= -8.6e-211: tmp = i * ((a * b) - (y * j)) elif z <= 5.6e-272: tmp = t_1 elif z <= 3e-68: tmp = j * ((t * c) - (y * i)) elif z <= 4.5e+49: tmp = t_1 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(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -9e-75) tmp = t_2; elseif (z <= -8.6e-211) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 5.6e-272) tmp = t_1; elseif (z <= 3e-68) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (z <= 4.5e+49) 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 = a * ((b * i) - (x * t)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -9e-75) tmp = t_2; elseif (z <= -8.6e-211) tmp = i * ((a * b) - (y * j)); elseif (z <= 5.6e-272) tmp = t_1; elseif (z <= 3e-68) tmp = j * ((t * c) - (y * i)); elseif (z <= 4.5e+49) 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[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9e-75], t$95$2, If[LessEqual[z, -8.6e-211], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e-272], t$95$1, If[LessEqual[z, 3e-68], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e+49], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -9 \cdot 10^{-75}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -8.6 \cdot 10^{-211}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{-272}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-68}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -9.0000000000000006e-75 or 4.49999999999999982e49 < z Initial program 58.4%
Taylor expanded in a around inf 53.9%
+-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
associate-/l*51.9%
associate-/l*53.3%
*-commutative53.3%
Simplified53.3%
Taylor expanded in z around inf 69.1%
*-commutative69.1%
Simplified69.1%
if -9.0000000000000006e-75 < z < -8.6000000000000001e-211Initial program 76.2%
+-commutative76.2%
fma-define81.0%
*-commutative81.0%
*-commutative81.0%
cancel-sign-sub-inv81.0%
cancel-sign-sub81.0%
fma-neg81.0%
distribute-rgt-neg-out81.0%
remove-double-neg81.0%
*-commutative81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in i around inf 76.5%
distribute-lft-out--76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in i around 0 76.5%
mul-1-neg76.5%
distribute-rgt-neg-out76.5%
neg-mul-176.5%
distribute-lft-out--76.5%
neg-mul-176.5%
sub-neg76.5%
remove-double-neg76.5%
+-commutative76.5%
mul-1-neg76.5%
unsub-neg76.5%
Simplified76.5%
if -8.6000000000000001e-211 < z < 5.59999999999999987e-272 or 3e-68 < z < 4.49999999999999982e49Initial program 79.4%
Taylor expanded in a around inf 74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
associate-/l*75.8%
associate-/l*75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in a around inf 66.5%
associate-*r*66.5%
neg-mul-166.5%
+-commutative66.5%
mul-1-neg66.5%
sub-neg66.5%
Simplified66.5%
if 5.59999999999999987e-272 < z < 3e-68Initial program 83.2%
+-commutative83.2%
fma-define83.2%
*-commutative83.2%
*-commutative83.2%
cancel-sign-sub-inv83.2%
cancel-sign-sub83.2%
fma-neg83.2%
distribute-rgt-neg-out83.2%
remove-double-neg83.2%
*-commutative83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in j around inf 66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Final simplification68.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -7.8e-74)
t_1
(if (<= z -1.2e-211)
(* i (- (* a b) (* y j)))
(if (<= z 2.8e-270)
(* a (- (* b i) (* x t)))
(if (<= z 1.7e+45) (* j (* y (- (/ (* t c) y) i))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -7.8e-74) {
tmp = t_1;
} else if (z <= -1.2e-211) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 2.8e-270) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.7e+45) {
tmp = j * (y * (((t * c) / y) - i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-7.8d-74)) then
tmp = t_1
else if (z <= (-1.2d-211)) then
tmp = i * ((a * b) - (y * j))
else if (z <= 2.8d-270) then
tmp = a * ((b * i) - (x * t))
else if (z <= 1.7d+45) then
tmp = j * (y * (((t * c) / y) - i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -7.8e-74) {
tmp = t_1;
} else if (z <= -1.2e-211) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 2.8e-270) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.7e+45) {
tmp = j * (y * (((t * c) / y) - i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -7.8e-74: tmp = t_1 elif z <= -1.2e-211: tmp = i * ((a * b) - (y * j)) elif z <= 2.8e-270: tmp = a * ((b * i) - (x * t)) elif z <= 1.7e+45: tmp = j * (y * (((t * c) / y) - i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -7.8e-74) tmp = t_1; elseif (z <= -1.2e-211) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 2.8e-270) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= 1.7e+45) tmp = Float64(j * Float64(y * Float64(Float64(Float64(t * c) / y) - i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -7.8e-74) tmp = t_1; elseif (z <= -1.2e-211) tmp = i * ((a * b) - (y * j)); elseif (z <= 2.8e-270) tmp = a * ((b * i) - (x * t)); elseif (z <= 1.7e+45) tmp = j * (y * (((t * c) / y) - i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.8e-74], t$95$1, If[LessEqual[z, -1.2e-211], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e-270], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+45], N[(j * N[(y * N[(N[(N[(t * c), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{-74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{-211}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-270}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+45}:\\
\;\;\;\;j \cdot \left(y \cdot \left(\frac{t \cdot c}{y} - i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.8000000000000003e-74 or 1.7e45 < z Initial program 58.0%
Taylor expanded in a around inf 53.6%
+-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
associate-/l*51.6%
associate-/l*53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in z around inf 68.6%
*-commutative68.6%
Simplified68.6%
if -7.8000000000000003e-74 < z < -1.2000000000000001e-211Initial program 76.2%
+-commutative76.2%
fma-define81.0%
*-commutative81.0%
*-commutative81.0%
cancel-sign-sub-inv81.0%
cancel-sign-sub81.0%
fma-neg81.0%
distribute-rgt-neg-out81.0%
remove-double-neg81.0%
*-commutative81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in i around inf 76.5%
distribute-lft-out--76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in i around 0 76.5%
mul-1-neg76.5%
distribute-rgt-neg-out76.5%
neg-mul-176.5%
distribute-lft-out--76.5%
neg-mul-176.5%
sub-neg76.5%
remove-double-neg76.5%
+-commutative76.5%
mul-1-neg76.5%
unsub-neg76.5%
Simplified76.5%
if -1.2000000000000001e-211 < z < 2.7999999999999999e-270Initial program 84.3%
Taylor expanded in a around inf 84.4%
+-commutative84.4%
mul-1-neg84.4%
unsub-neg84.4%
associate-/l*84.4%
associate-/l*84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in a around inf 75.1%
associate-*r*75.1%
neg-mul-175.1%
+-commutative75.1%
mul-1-neg75.1%
sub-neg75.1%
Simplified75.1%
if 2.7999999999999999e-270 < z < 1.7e45Initial program 80.8%
+-commutative80.8%
fma-define80.8%
*-commutative80.8%
*-commutative80.8%
cancel-sign-sub-inv80.8%
cancel-sign-sub80.8%
fma-neg80.8%
distribute-rgt-neg-out80.8%
remove-double-neg80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in y around -inf 73.7%
Simplified79.7%
Taylor expanded in j around inf 59.6%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -3.7e+70)
t_1
(if (<= z -2.2e-130)
(- (* x (- (* y z) (* t a))) (* y (* i j)))
(if (<= z 2.6e+50) (+ (* j (- (* t c) (* y i))) (* a (* b i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -3.7e+70) {
tmp = t_1;
} else if (z <= -2.2e-130) {
tmp = (x * ((y * z) - (t * a))) - (y * (i * j));
} else if (z <= 2.6e+50) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-3.7d+70)) then
tmp = t_1
else if (z <= (-2.2d-130)) then
tmp = (x * ((y * z) - (t * a))) - (y * (i * j))
else if (z <= 2.6d+50) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -3.7e+70) {
tmp = t_1;
} else if (z <= -2.2e-130) {
tmp = (x * ((y * z) - (t * a))) - (y * (i * j));
} else if (z <= 2.6e+50) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -3.7e+70: tmp = t_1 elif z <= -2.2e-130: tmp = (x * ((y * z) - (t * a))) - (y * (i * j)) elif z <= 2.6e+50: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -3.7e+70) tmp = t_1; elseif (z <= -2.2e-130) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(y * Float64(i * j))); elseif (z <= 2.6e+50) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -3.7e+70) tmp = t_1; elseif (z <= -2.2e-130) tmp = (x * ((y * z) - (t * a))) - (y * (i * j)); elseif (z <= 2.6e+50) tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.7e+70], t$95$1, If[LessEqual[z, -2.2e-130], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e+50], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -3.7 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{-130}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+50}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.69999999999999989e70 or 2.6000000000000002e50 < z Initial program 56.9%
Taylor expanded in a around inf 52.2%
+-commutative52.2%
mul-1-neg52.2%
unsub-neg52.2%
associate-/l*49.6%
associate-/l*51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in z around inf 75.5%
*-commutative75.5%
Simplified75.5%
if -3.69999999999999989e70 < z < -2.1999999999999999e-130Initial program 68.5%
Taylor expanded in b around 0 59.0%
Taylor expanded in c around 0 53.8%
+-commutative53.8%
*-commutative53.8%
*-commutative53.8%
mul-1-neg53.8%
unsub-neg53.8%
associate-*r*56.4%
*-commutative56.4%
Simplified56.4%
if -2.1999999999999999e-130 < z < 2.6000000000000002e50Initial program 80.3%
cancel-sign-sub-inv80.3%
cancel-sign-sub80.3%
*-commutative80.3%
fma-neg80.3%
distribute-rgt-neg-in80.3%
remove-double-neg80.3%
*-commutative80.3%
*-commutative80.3%
sub-neg80.3%
sub-neg80.3%
*-commutative80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in i around inf 69.5%
Final simplification70.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -6.8e+41)
t_2
(if (<= b -8.2e-64)
t_1
(if (<= b 1.7e-46)
(* c (- (* t j) (* z b)))
(if (<= b 220000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -6.8e+41) {
tmp = t_2;
} else if (b <= -8.2e-64) {
tmp = t_1;
} else if (b <= 1.7e-46) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 220000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (x * z)
t_2 = b * ((a * i) - (z * c))
if (b <= (-6.8d+41)) then
tmp = t_2
else if (b <= (-8.2d-64)) then
tmp = t_1
else if (b <= 1.7d-46) then
tmp = c * ((t * j) - (z * b))
else if (b <= 220000000000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -6.8e+41) {
tmp = t_2;
} else if (b <= -8.2e-64) {
tmp = t_1;
} else if (b <= 1.7e-46) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 220000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -6.8e+41: tmp = t_2 elif b <= -8.2e-64: tmp = t_1 elif b <= 1.7e-46: tmp = c * ((t * j) - (z * b)) elif b <= 220000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -6.8e+41) tmp = t_2; elseif (b <= -8.2e-64) tmp = t_1; elseif (b <= 1.7e-46) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (b <= 220000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -6.8e+41) tmp = t_2; elseif (b <= -8.2e-64) tmp = t_1; elseif (b <= 1.7e-46) tmp = c * ((t * j) - (z * b)); elseif (b <= 220000000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.8e+41], t$95$2, If[LessEqual[b, -8.2e-64], t$95$1, If[LessEqual[b, 1.7e-46], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 220000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -6.8 \cdot 10^{+41}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -8.2 \cdot 10^{-64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-46}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq 220000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -6.79999999999999996e41 or 2.2e11 < b Initial program 67.4%
Taylor expanded in a around inf 63.6%
+-commutative63.6%
mul-1-neg63.6%
unsub-neg63.6%
associate-/l*61.5%
associate-/l*60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in b around inf 65.7%
if -6.79999999999999996e41 < b < -8.2000000000000001e-64 or 1.69999999999999998e-46 < b < 2.2e11Initial program 82.8%
+-commutative82.8%
fma-define82.8%
*-commutative82.8%
*-commutative82.8%
cancel-sign-sub-inv82.8%
cancel-sign-sub82.8%
fma-neg82.8%
distribute-rgt-neg-out82.8%
remove-double-neg82.8%
*-commutative82.8%
*-commutative82.8%
Simplified82.8%
Taylor expanded in y around -inf 78.9%
Simplified86.0%
Taylor expanded in y around inf 81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in x around inf 61.4%
*-commutative61.4%
Simplified61.4%
if -8.2000000000000001e-64 < b < 1.69999999999999998e-46Initial program 66.3%
+-commutative66.3%
fma-define67.3%
*-commutative67.3%
*-commutative67.3%
cancel-sign-sub-inv67.3%
cancel-sign-sub67.3%
fma-neg68.4%
distribute-rgt-neg-out68.4%
remove-double-neg68.4%
*-commutative68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in c around inf 39.3%
*-commutative39.3%
*-commutative39.3%
Simplified39.3%
Final simplification55.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -4.1e+43)
t_2
(if (<= b -4.5e-16)
t_1
(if (<= b 1.8e-140) (* i (* y (- j))) (if (<= b 3.6e+19) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -4.1e+43) {
tmp = t_2;
} else if (b <= -4.5e-16) {
tmp = t_1;
} else if (b <= 1.8e-140) {
tmp = i * (y * -j);
} else if (b <= 3.6e+19) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (x * z)
t_2 = b * ((a * i) - (z * c))
if (b <= (-4.1d+43)) then
tmp = t_2
else if (b <= (-4.5d-16)) then
tmp = t_1
else if (b <= 1.8d-140) then
tmp = i * (y * -j)
else if (b <= 3.6d+19) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -4.1e+43) {
tmp = t_2;
} else if (b <= -4.5e-16) {
tmp = t_1;
} else if (b <= 1.8e-140) {
tmp = i * (y * -j);
} else if (b <= 3.6e+19) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -4.1e+43: tmp = t_2 elif b <= -4.5e-16: tmp = t_1 elif b <= 1.8e-140: tmp = i * (y * -j) elif b <= 3.6e+19: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.1e+43) tmp = t_2; elseif (b <= -4.5e-16) tmp = t_1; elseif (b <= 1.8e-140) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= 3.6e+19) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -4.1e+43) tmp = t_2; elseif (b <= -4.5e-16) tmp = t_1; elseif (b <= 1.8e-140) tmp = i * (y * -j); elseif (b <= 3.6e+19) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.1e+43], t$95$2, If[LessEqual[b, -4.5e-16], t$95$1, If[LessEqual[b, 1.8e-140], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.6e+19], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.1 \cdot 10^{+43}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -4.5 \cdot 10^{-16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-140}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -4.1e43 or 3.6e19 < b Initial program 67.4%
Taylor expanded in a around inf 63.6%
+-commutative63.6%
mul-1-neg63.6%
unsub-neg63.6%
associate-/l*61.5%
associate-/l*60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in b around inf 65.7%
if -4.1e43 < b < -4.5000000000000002e-16 or 1.8e-140 < b < 3.6e19Initial program 65.5%
+-commutative65.5%
fma-define68.5%
*-commutative68.5%
*-commutative68.5%
cancel-sign-sub-inv68.5%
cancel-sign-sub68.5%
fma-neg68.5%
distribute-rgt-neg-out68.5%
remove-double-neg68.5%
*-commutative68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in y around -inf 74.0%
Simplified79.8%
Taylor expanded in y around inf 67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in x around inf 53.8%
*-commutative53.8%
Simplified53.8%
if -4.5000000000000002e-16 < b < 1.8e-140Initial program 71.7%
+-commutative71.7%
fma-define71.7%
*-commutative71.7%
*-commutative71.7%
cancel-sign-sub-inv71.7%
cancel-sign-sub71.7%
fma-neg72.8%
distribute-rgt-neg-out72.8%
remove-double-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in i around inf 40.1%
distribute-lft-out--40.1%
*-commutative40.1%
Simplified40.1%
Taylor expanded in y around inf 38.9%
associate-*r*38.9%
mul-1-neg38.9%
Simplified38.9%
Final simplification54.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -3.9e-55) (not (<= b 3.6e-142))) (+ (* y (- (* x z) (* i j))) (* b (- (* a i) (* z c)))) (- (* j (- (* t c) (* y i))) (* x (- (* t a) (* y z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3.9e-55) || !(b <= 3.6e-142)) {
tmp = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-3.9d-55)) .or. (.not. (b <= 3.6d-142))) then
tmp = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c)))
else
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3.9e-55) || !(b <= 3.6e-142)) {
tmp = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -3.9e-55) or not (b <= 3.6e-142): tmp = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c))) else: tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -3.9e-55) || !(b <= 3.6e-142)) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -3.9e-55) || ~((b <= 3.6e-142))) tmp = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c))); else tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -3.9e-55], N[Not[LessEqual[b, 3.6e-142]], $MachinePrecision]], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.9 \cdot 10^{-55} \lor \neg \left(b \leq 3.6 \cdot 10^{-142}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\end{array}
\end{array}
if b < -3.9e-55 or 3.6e-142 < b Initial program 67.8%
+-commutative67.8%
fma-define71.2%
*-commutative71.2%
*-commutative71.2%
cancel-sign-sub-inv71.2%
cancel-sign-sub71.2%
fma-neg71.2%
distribute-rgt-neg-out71.2%
remove-double-neg71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in t around 0 67.5%
associate-*r*67.9%
associate-*r*67.9%
*-commutative67.9%
associate-*r*73.0%
distribute-rgt-in73.6%
+-commutative73.6%
mul-1-neg73.6%
unsub-neg73.6%
*-commutative73.6%
Simplified73.6%
if -3.9e-55 < b < 3.6e-142Initial program 70.6%
Taylor expanded in b around 0 74.0%
Final simplification73.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -8e+73)
(+ t_1 (* a (* b i)))
(if (<= j 2.8e+75)
(- (* b (- (* a i) (* z c))) (* x (- (* t a) (* y z))))
(- t_1 (* b (* z c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (j <= -8e+73) {
tmp = t_1 + (a * (b * i));
} else if (j <= 2.8e+75) {
tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)));
} else {
tmp = t_1 - (b * (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (j <= (-8d+73)) then
tmp = t_1 + (a * (b * i))
else if (j <= 2.8d+75) then
tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))
else
tmp = t_1 - (b * (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (j <= -8e+73) {
tmp = t_1 + (a * (b * i));
} else if (j <= 2.8e+75) {
tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)));
} else {
tmp = t_1 - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if j <= -8e+73: tmp = t_1 + (a * (b * i)) elif j <= 2.8e+75: tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z))) else: tmp = t_1 - (b * (z * c)) 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 <= -8e+73) tmp = Float64(t_1 + Float64(a * Float64(b * i))); elseif (j <= 2.8e+75) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); else tmp = Float64(t_1 - Float64(b * Float64(z * c))); 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 <= -8e+73) tmp = t_1 + (a * (b * i)); elseif (j <= 2.8e+75) tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z))); else tmp = t_1 - (b * (z * c)); 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, -8e+73], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e+75], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -8 \cdot 10^{+73}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{+75}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if j < -7.99999999999999986e73Initial program 63.9%
cancel-sign-sub-inv63.9%
cancel-sign-sub63.9%
*-commutative63.9%
fma-neg65.9%
distribute-rgt-neg-in65.9%
remove-double-neg65.9%
*-commutative65.9%
*-commutative65.9%
sub-neg65.9%
sub-neg65.9%
*-commutative65.9%
*-commutative65.9%
Simplified65.9%
Taylor expanded in i around inf 74.1%
if -7.99999999999999986e73 < j < 2.80000000000000012e75Initial program 71.9%
Taylor expanded in j around 0 68.6%
if 2.80000000000000012e75 < j Initial program 62.3%
cancel-sign-sub-inv62.3%
cancel-sign-sub62.3%
*-commutative62.3%
fma-neg62.3%
distribute-rgt-neg-in62.3%
remove-double-neg62.3%
*-commutative62.3%
*-commutative62.3%
sub-neg62.3%
sub-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in c around inf 77.8%
associate-*r*77.8%
neg-mul-177.8%
*-commutative77.8%
Simplified77.8%
Final simplification71.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -7e-74) (not (<= z 4.2e+49))) (* z (- (* x y) (* b c))) (+ (* j (- (* t c) (* y i))) (* 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 ((z <= -7e-74) || !(z <= 4.2e+49)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = (j * ((t * c) - (y * i))) + (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 ((z <= (-7d-74)) .or. (.not. (z <= 4.2d+49))) then
tmp = z * ((x * y) - (b * c))
else
tmp = (j * ((t * c) - (y * i))) + (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 ((z <= -7e-74) || !(z <= 4.2e+49)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -7e-74) or not (z <= 4.2e+49): tmp = z * ((x * y) - (b * c)) else: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -7e-74) || !(z <= 4.2e+49)) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + 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 ((z <= -7e-74) || ~((z <= 4.2e+49))) tmp = z * ((x * y) - (b * c)); else tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -7e-74], N[Not[LessEqual[z, 4.2e+49]], $MachinePrecision]], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{-74} \lor \neg \left(z \leq 4.2 \cdot 10^{+49}\right):\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if z < -7.00000000000000029e-74 or 4.20000000000000022e49 < z Initial program 58.4%
Taylor expanded in a around inf 53.9%
+-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
associate-/l*51.9%
associate-/l*53.3%
*-commutative53.3%
Simplified53.3%
Taylor expanded in z around inf 69.1%
*-commutative69.1%
Simplified69.1%
if -7.00000000000000029e-74 < z < 4.20000000000000022e49Initial program 80.3%
cancel-sign-sub-inv80.3%
cancel-sign-sub80.3%
*-commutative80.3%
fma-neg80.3%
distribute-rgt-neg-in80.3%
remove-double-neg80.3%
*-commutative80.3%
*-commutative80.3%
sub-neg80.3%
sub-neg80.3%
*-commutative80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in i around inf 67.1%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -8e-74)
t_1
(if (<= z 1.95e-218)
(* i (- (* a b) (* y j)))
(if (<= z 3.7e+46) (* j (- (* t c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -8e-74) {
tmp = t_1;
} else if (z <= 1.95e-218) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 3.7e+46) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-8d-74)) then
tmp = t_1
else if (z <= 1.95d-218) then
tmp = i * ((a * b) - (y * j))
else if (z <= 3.7d+46) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -8e-74) {
tmp = t_1;
} else if (z <= 1.95e-218) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 3.7e+46) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -8e-74: tmp = t_1 elif z <= 1.95e-218: tmp = i * ((a * b) - (y * j)) elif z <= 3.7e+46: tmp = j * ((t * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -8e-74) tmp = t_1; elseif (z <= 1.95e-218) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 3.7e+46) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -8e-74) tmp = t_1; elseif (z <= 1.95e-218) tmp = i * ((a * b) - (y * j)); elseif (z <= 3.7e+46) tmp = j * ((t * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8e-74], t$95$1, If[LessEqual[z, 1.95e-218], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.7e+46], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -8 \cdot 10^{-74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{-218}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 3.7 \cdot 10^{+46}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.99999999999999966e-74 or 3.6999999999999999e46 < z Initial program 58.0%
Taylor expanded in a around inf 53.6%
+-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
associate-/l*51.6%
associate-/l*53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in z around inf 68.6%
*-commutative68.6%
Simplified68.6%
if -7.99999999999999966e-74 < z < 1.95e-218Initial program 80.6%
+-commutative80.6%
fma-define82.1%
*-commutative82.1%
*-commutative82.1%
cancel-sign-sub-inv82.1%
cancel-sign-sub82.1%
fma-neg82.1%
distribute-rgt-neg-out82.1%
remove-double-neg82.1%
*-commutative82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in i around inf 66.6%
distribute-lft-out--66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in i around 0 66.6%
mul-1-neg66.6%
distribute-rgt-neg-out66.6%
neg-mul-166.6%
distribute-lft-out--66.6%
neg-mul-166.6%
sub-neg66.6%
remove-double-neg66.6%
+-commutative66.6%
mul-1-neg66.6%
unsub-neg66.6%
Simplified66.6%
if 1.95e-218 < z < 3.6999999999999999e46Initial program 81.3%
+-commutative81.3%
fma-define81.3%
*-commutative81.3%
*-commutative81.3%
cancel-sign-sub-inv81.3%
cancel-sign-sub81.3%
fma-neg81.3%
distribute-rgt-neg-out81.3%
remove-double-neg81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in j around inf 54.4%
*-commutative54.4%
*-commutative54.4%
Simplified54.4%
Final simplification65.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -3.1e+47)
t_1
(if (<= b 8.2e-50)
(* j (- (* t c) (* y i)))
(if (<= b 2.4e+53) (* x (- (* y z) (* t a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.1e+47) {
tmp = t_1;
} else if (b <= 8.2e-50) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 2.4e+53) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-3.1d+47)) then
tmp = t_1
else if (b <= 8.2d-50) then
tmp = j * ((t * c) - (y * i))
else if (b <= 2.4d+53) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.1e+47) {
tmp = t_1;
} else if (b <= 8.2e-50) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 2.4e+53) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -3.1e+47: tmp = t_1 elif b <= 8.2e-50: tmp = j * ((t * c) - (y * i)) elif b <= 2.4e+53: tmp = x * ((y * z) - (t * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.1e+47) tmp = t_1; elseif (b <= 8.2e-50) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 2.4e+53) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -3.1e+47) tmp = t_1; elseif (b <= 8.2e-50) tmp = j * ((t * c) - (y * i)); elseif (b <= 2.4e+53) tmp = x * ((y * z) - (t * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.1e+47], t$95$1, If[LessEqual[b, 8.2e-50], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.4e+53], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.1 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{-50}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{+53}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.1000000000000001e47 or 2.4e53 < b Initial program 67.7%
Taylor expanded in a around inf 65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
associate-/l*63.0%
associate-/l*62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in b around inf 66.7%
if -3.1000000000000001e47 < b < 8.19999999999999971e-50Initial program 68.5%
+-commutative68.5%
fma-define69.4%
*-commutative69.4%
*-commutative69.4%
cancel-sign-sub-inv69.4%
cancel-sign-sub69.4%
fma-neg70.3%
distribute-rgt-neg-out70.3%
remove-double-neg70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in j around inf 52.0%
*-commutative52.0%
*-commutative52.0%
Simplified52.0%
if 8.19999999999999971e-50 < b < 2.4e53Initial program 78.5%
Taylor expanded in b around 0 78.5%
Taylor expanded in j around 0 72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Final simplification60.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.32e+47)
t_1
(if (<= b 1.6e-135)
(* j (- (* t c) (* y i)))
(if (<= b 6e-9) (* t (- (* c j) (* x a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.32e+47) {
tmp = t_1;
} else if (b <= 1.6e-135) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 6e-9) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-1.32d+47)) then
tmp = t_1
else if (b <= 1.6d-135) then
tmp = j * ((t * c) - (y * i))
else if (b <= 6d-9) then
tmp = t * ((c * j) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.32e+47) {
tmp = t_1;
} else if (b <= 1.6e-135) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 6e-9) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.32e+47: tmp = t_1 elif b <= 1.6e-135: tmp = j * ((t * c) - (y * i)) elif b <= 6e-9: tmp = t * ((c * j) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.32e+47) tmp = t_1; elseif (b <= 1.6e-135) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 6e-9) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.32e+47) tmp = t_1; elseif (b <= 1.6e-135) tmp = j * ((t * c) - (y * i)); elseif (b <= 6e-9) tmp = t * ((c * j) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.32e+47], t$95$1, If[LessEqual[b, 1.6e-135], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6e-9], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.32 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-135}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 6 \cdot 10^{-9}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.31999999999999992e47 or 5.99999999999999996e-9 < b Initial program 67.1%
Taylor expanded in a around inf 63.4%
+-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
associate-/l*61.3%
associate-/l*61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in b around inf 65.5%
if -1.31999999999999992e47 < b < 1.6e-135Initial program 72.9%
+-commutative72.9%
fma-define72.9%
*-commutative72.9%
*-commutative72.9%
cancel-sign-sub-inv72.9%
cancel-sign-sub72.9%
fma-neg73.9%
distribute-rgt-neg-out73.9%
remove-double-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in j around inf 54.0%
*-commutative54.0%
*-commutative54.0%
Simplified54.0%
if 1.6e-135 < b < 5.99999999999999996e-9Initial program 58.0%
+-commutative58.0%
fma-define62.7%
*-commutative62.7%
*-commutative62.7%
cancel-sign-sub-inv62.7%
cancel-sign-sub62.7%
fma-neg62.7%
distribute-rgt-neg-out62.7%
remove-double-neg62.7%
*-commutative62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in t around inf 57.8%
+-commutative57.8%
mul-1-neg57.8%
unsub-neg57.8%
*-commutative57.8%
Simplified57.8%
Final simplification60.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= i -2.2e-40)
t_1
(if (<= i 1.35e-70)
(* c (- (* t j) (* z b)))
(if (<= i 4.8e+128) (* 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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.2e-40) {
tmp = t_1;
} else if (i <= 1.35e-70) {
tmp = c * ((t * j) - (z * b));
} else if (i <= 4.8e+128) {
tmp = 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 = i * ((a * b) - (y * j))
if (i <= (-2.2d-40)) then
tmp = t_1
else if (i <= 1.35d-70) then
tmp = c * ((t * j) - (z * b))
else if (i <= 4.8d+128) then
tmp = 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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.2e-40) {
tmp = t_1;
} else if (i <= 1.35e-70) {
tmp = c * ((t * j) - (z * b));
} else if (i <= 4.8e+128) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) tmp = 0 if i <= -2.2e-40: tmp = t_1 elif i <= 1.35e-70: tmp = c * ((t * j) - (z * b)) elif i <= 4.8e+128: tmp = 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(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.2e-40) tmp = t_1; elseif (i <= 1.35e-70) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (i <= 4.8e+128) tmp = 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 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -2.2e-40) tmp = t_1; elseif (i <= 1.35e-70) tmp = c * ((t * j) - (z * b)); elseif (i <= 4.8e+128) tmp = 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[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.2e-40], t$95$1, If[LessEqual[i, 1.35e-70], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.8e+128], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.2 \cdot 10^{-40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.35 \cdot 10^{-70}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{+128}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.20000000000000009e-40 or 4.8000000000000004e128 < i Initial program 66.3%
+-commutative66.3%
fma-define68.1%
*-commutative68.1%
*-commutative68.1%
cancel-sign-sub-inv68.1%
cancel-sign-sub68.1%
fma-neg68.1%
distribute-rgt-neg-out68.1%
remove-double-neg68.1%
*-commutative68.1%
*-commutative68.1%
Simplified68.1%
Taylor expanded in i around inf 65.8%
distribute-lft-out--65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in i around 0 65.8%
mul-1-neg65.8%
distribute-rgt-neg-out65.8%
neg-mul-165.8%
distribute-lft-out--65.8%
neg-mul-165.8%
sub-neg65.8%
remove-double-neg65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
Simplified65.8%
if -2.20000000000000009e-40 < i < 1.3500000000000001e-70Initial program 71.1%
+-commutative71.1%
fma-define73.0%
*-commutative73.0%
*-commutative73.0%
cancel-sign-sub-inv73.0%
cancel-sign-sub73.0%
fma-neg73.9%
distribute-rgt-neg-out73.9%
remove-double-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in c around inf 45.1%
*-commutative45.1%
*-commutative45.1%
Simplified45.1%
if 1.3500000000000001e-70 < i < 4.8000000000000004e128Initial program 68.9%
Taylor expanded in a around inf 66.1%
+-commutative66.1%
mul-1-neg66.1%
unsub-neg66.1%
associate-/l*63.6%
associate-/l*68.8%
*-commutative68.8%
Simplified68.8%
Taylor expanded in b around inf 61.5%
Final simplification56.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.5e-16)
(* i (* y (- j)))
(if (<= i 5.2e-276)
(* y (* x z))
(if (<= i 1.15e+118) (* b (* z (- c))) (* (* i j) (- y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.5e-16) {
tmp = i * (y * -j);
} else if (i <= 5.2e-276) {
tmp = y * (x * z);
} else if (i <= 1.15e+118) {
tmp = b * (z * -c);
} else {
tmp = (i * j) * -y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1.5d-16)) then
tmp = i * (y * -j)
else if (i <= 5.2d-276) then
tmp = y * (x * z)
else if (i <= 1.15d+118) then
tmp = b * (z * -c)
else
tmp = (i * j) * -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.5e-16) {
tmp = i * (y * -j);
} else if (i <= 5.2e-276) {
tmp = y * (x * z);
} else if (i <= 1.15e+118) {
tmp = b * (z * -c);
} else {
tmp = (i * j) * -y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.5e-16: tmp = i * (y * -j) elif i <= 5.2e-276: tmp = y * (x * z) elif i <= 1.15e+118: tmp = b * (z * -c) else: tmp = (i * j) * -y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.5e-16) tmp = Float64(i * Float64(y * Float64(-j))); elseif (i <= 5.2e-276) tmp = Float64(y * Float64(x * z)); elseif (i <= 1.15e+118) tmp = Float64(b * Float64(z * Float64(-c))); else tmp = Float64(Float64(i * j) * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.5e-16) tmp = i * (y * -j); elseif (i <= 5.2e-276) tmp = y * (x * z); elseif (i <= 1.15e+118) tmp = b * (z * -c); else tmp = (i * j) * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.5e-16], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.2e-276], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.15e+118], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.5 \cdot 10^{-16}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{-276}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 1.15 \cdot 10^{+118}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\end{array}
\end{array}
if i < -1.49999999999999997e-16Initial program 67.2%
+-commutative67.2%
fma-define70.1%
*-commutative70.1%
*-commutative70.1%
cancel-sign-sub-inv70.1%
cancel-sign-sub70.1%
fma-neg70.1%
distribute-rgt-neg-out70.1%
remove-double-neg70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in i around inf 62.1%
distribute-lft-out--62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in y around inf 46.5%
associate-*r*46.5%
mul-1-neg46.5%
Simplified46.5%
if -1.49999999999999997e-16 < i < 5.19999999999999969e-276Initial program 70.6%
+-commutative70.6%
fma-define73.2%
*-commutative73.2%
*-commutative73.2%
cancel-sign-sub-inv73.2%
cancel-sign-sub73.2%
fma-neg74.5%
distribute-rgt-neg-out74.5%
remove-double-neg74.5%
*-commutative74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in y around -inf 70.8%
Simplified74.7%
Taylor expanded in y around inf 46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in x around inf 40.3%
*-commutative40.3%
Simplified40.3%
if 5.19999999999999969e-276 < i < 1.15000000000000008e118Initial program 69.4%
+-commutative69.4%
fma-define72.2%
*-commutative72.2%
*-commutative72.2%
cancel-sign-sub-inv72.2%
cancel-sign-sub72.2%
fma-neg72.2%
distribute-rgt-neg-out72.2%
remove-double-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in c around inf 52.3%
*-commutative52.3%
*-commutative52.3%
Simplified52.3%
Taylor expanded in t around 0 35.3%
associate-*r*35.3%
neg-mul-135.3%
Simplified35.3%
if 1.15000000000000008e118 < i Initial program 66.0%
+-commutative66.0%
fma-define66.0%
*-commutative66.0%
*-commutative66.0%
cancel-sign-sub-inv66.0%
cancel-sign-sub66.0%
fma-neg66.0%
distribute-rgt-neg-out66.0%
remove-double-neg66.0%
*-commutative66.0%
*-commutative66.0%
Simplified66.0%
Taylor expanded in y around -inf 61.3%
Simplified63.7%
Taylor expanded in y around inf 61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in x around 0 51.3%
mul-1-neg51.3%
*-commutative51.3%
distribute-rgt-neg-in51.3%
Simplified51.3%
Final simplification42.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* i j) (- y))))
(if (<= i -3.6e-16)
t_1
(if (<= i 6.8e-273)
(* y (* x z))
(if (<= i 1.35e+118) (* 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 = (i * j) * -y;
double tmp;
if (i <= -3.6e-16) {
tmp = t_1;
} else if (i <= 6.8e-273) {
tmp = y * (x * z);
} else if (i <= 1.35e+118) {
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 = (i * j) * -y
if (i <= (-3.6d-16)) then
tmp = t_1
else if (i <= 6.8d-273) then
tmp = y * (x * z)
else if (i <= 1.35d+118) 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 = (i * j) * -y;
double tmp;
if (i <= -3.6e-16) {
tmp = t_1;
} else if (i <= 6.8e-273) {
tmp = y * (x * z);
} else if (i <= 1.35e+118) {
tmp = b * (z * -c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * j) * -y tmp = 0 if i <= -3.6e-16: tmp = t_1 elif i <= 6.8e-273: tmp = y * (x * z) elif i <= 1.35e+118: tmp = b * (z * -c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * j) * Float64(-y)) tmp = 0.0 if (i <= -3.6e-16) tmp = t_1; elseif (i <= 6.8e-273) tmp = Float64(y * Float64(x * z)); elseif (i <= 1.35e+118) 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 = (i * j) * -y; tmp = 0.0; if (i <= -3.6e-16) tmp = t_1; elseif (i <= 6.8e-273) tmp = y * (x * z); elseif (i <= 1.35e+118) 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[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]}, If[LessEqual[i, -3.6e-16], t$95$1, If[LessEqual[i, 6.8e-273], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.35e+118], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{if}\;i \leq -3.6 \cdot 10^{-16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 6.8 \cdot 10^{-273}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 1.35 \cdot 10^{+118}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.59999999999999983e-16 or 1.35e118 < i Initial program 66.8%
+-commutative66.8%
fma-define68.7%
*-commutative68.7%
*-commutative68.7%
cancel-sign-sub-inv68.7%
cancel-sign-sub68.7%
fma-neg68.7%
distribute-rgt-neg-out68.7%
remove-double-neg68.7%
*-commutative68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in y around -inf 61.0%
Simplified62.9%
Taylor expanded in y around inf 59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in x around 0 47.4%
mul-1-neg47.4%
*-commutative47.4%
distribute-rgt-neg-in47.4%
Simplified47.4%
if -3.59999999999999983e-16 < i < 6.79999999999999982e-273Initial program 70.6%
+-commutative70.6%
fma-define73.2%
*-commutative73.2%
*-commutative73.2%
cancel-sign-sub-inv73.2%
cancel-sign-sub73.2%
fma-neg74.5%
distribute-rgt-neg-out74.5%
remove-double-neg74.5%
*-commutative74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in y around -inf 70.8%
Simplified74.7%
Taylor expanded in y around inf 46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in x around inf 40.3%
*-commutative40.3%
Simplified40.3%
if 6.79999999999999982e-273 < i < 1.35e118Initial program 69.4%
+-commutative69.4%
fma-define72.2%
*-commutative72.2%
*-commutative72.2%
cancel-sign-sub-inv72.2%
cancel-sign-sub72.2%
fma-neg72.2%
distribute-rgt-neg-out72.2%
remove-double-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in c around inf 52.3%
*-commutative52.3%
*-commutative52.3%
Simplified52.3%
Taylor expanded in t around 0 35.3%
associate-*r*35.3%
neg-mul-135.3%
Simplified35.3%
Final simplification41.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= j -2.4e+96)
t_1
(if (<= j 7e+16) (* y (* x z)) (if (<= j 3.7e+119) (* a (* b i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (j <= -2.4e+96) {
tmp = t_1;
} else if (j <= 7e+16) {
tmp = y * (x * z);
} else if (j <= 3.7e+119) {
tmp = a * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (j <= (-2.4d+96)) then
tmp = t_1
else if (j <= 7d+16) then
tmp = y * (x * z)
else if (j <= 3.7d+119) then
tmp = a * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (j <= -2.4e+96) {
tmp = t_1;
} else if (j <= 7e+16) {
tmp = y * (x * z);
} else if (j <= 3.7e+119) {
tmp = a * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if j <= -2.4e+96: tmp = t_1 elif j <= 7e+16: tmp = y * (x * z) elif j <= 3.7e+119: tmp = a * (b * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (j <= -2.4e+96) tmp = t_1; elseif (j <= 7e+16) tmp = Float64(y * Float64(x * z)); elseif (j <= 3.7e+119) tmp = Float64(a * Float64(b * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (j <= -2.4e+96) tmp = t_1; elseif (j <= 7e+16) tmp = y * (x * z); elseif (j <= 3.7e+119) tmp = a * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.4e+96], t$95$1, If[LessEqual[j, 7e+16], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.7e+119], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;j \leq -2.4 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 7 \cdot 10^{+16}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 3.7 \cdot 10^{+119}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2.39999999999999993e96 or 3.7e119 < j Initial program 61.6%
Taylor expanded in b around 0 57.0%
Taylor expanded in i around inf 51.0%
+-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
associate-/l*49.8%
*-commutative49.8%
associate-/l*54.7%
*-commutative54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in c around inf 47.0%
if -2.39999999999999993e96 < j < 7e16Initial program 71.3%
+-commutative71.3%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
cancel-sign-sub-inv72.0%
cancel-sign-sub72.0%
fma-neg72.0%
distribute-rgt-neg-out72.0%
remove-double-neg72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in y around -inf 72.4%
Simplified73.1%
Taylor expanded in y around inf 46.0%
*-commutative46.0%
Simplified46.0%
Taylor expanded in x around inf 35.9%
*-commutative35.9%
Simplified35.9%
if 7e16 < j < 3.7e119Initial program 76.2%
+-commutative76.2%
fma-define76.2%
*-commutative76.2%
*-commutative76.2%
cancel-sign-sub-inv76.2%
cancel-sign-sub76.2%
fma-neg76.2%
distribute-rgt-neg-out76.2%
remove-double-neg76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in i around inf 61.2%
distribute-lft-out--61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in y around 0 39.6%
Final simplification39.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= j -3.8e+99)
t_1
(if (<= j 3.7e+19)
(* x (* y z))
(if (<= j 1.3e+118) (* a (* b i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (j <= -3.8e+99) {
tmp = t_1;
} else if (j <= 3.7e+19) {
tmp = x * (y * z);
} else if (j <= 1.3e+118) {
tmp = a * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (j <= (-3.8d+99)) then
tmp = t_1
else if (j <= 3.7d+19) then
tmp = x * (y * z)
else if (j <= 1.3d+118) then
tmp = a * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (j <= -3.8e+99) {
tmp = t_1;
} else if (j <= 3.7e+19) {
tmp = x * (y * z);
} else if (j <= 1.3e+118) {
tmp = a * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if j <= -3.8e+99: tmp = t_1 elif j <= 3.7e+19: tmp = x * (y * z) elif j <= 1.3e+118: tmp = a * (b * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (j <= -3.8e+99) tmp = t_1; elseif (j <= 3.7e+19) tmp = Float64(x * Float64(y * z)); elseif (j <= 1.3e+118) tmp = Float64(a * Float64(b * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (j <= -3.8e+99) tmp = t_1; elseif (j <= 3.7e+19) tmp = x * (y * z); elseif (j <= 1.3e+118) tmp = a * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.8e+99], t$95$1, If[LessEqual[j, 3.7e+19], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.3e+118], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;j \leq -3.8 \cdot 10^{+99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 3.7 \cdot 10^{+19}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{+118}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -3.8e99 or 1.30000000000000008e118 < j Initial program 61.6%
Taylor expanded in b around 0 57.0%
Taylor expanded in i around inf 51.0%
+-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
associate-/l*49.8%
*-commutative49.8%
associate-/l*54.7%
*-commutative54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in c around inf 47.0%
if -3.8e99 < j < 3.7e19Initial program 71.3%
+-commutative71.3%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
cancel-sign-sub-inv72.0%
cancel-sign-sub72.0%
fma-neg72.0%
distribute-rgt-neg-out72.0%
remove-double-neg72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in y around -inf 72.4%
Simplified73.1%
Taylor expanded in y around inf 46.0%
*-commutative46.0%
Simplified46.0%
Taylor expanded in x around inf 34.7%
if 3.7e19 < j < 1.30000000000000008e118Initial program 76.2%
+-commutative76.2%
fma-define76.2%
*-commutative76.2%
*-commutative76.2%
cancel-sign-sub-inv76.2%
cancel-sign-sub76.2%
fma-neg76.2%
distribute-rgt-neg-out76.2%
remove-double-neg76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in i around inf 61.2%
distribute-lft-out--61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in y around 0 39.6%
Final simplification39.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -5.5e+22) (not (<= y 6e+27))) (* y (- (* x z) (* i j))) (* b (- (* a i) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -5.5e+22) || !(y <= 6e+27)) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((y <= (-5.5d+22)) .or. (.not. (y <= 6d+27))) then
tmp = y * ((x * z) - (i * j))
else
tmp = b * ((a * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -5.5e+22) || !(y <= 6e+27)) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -5.5e+22) or not (y <= 6e+27): tmp = y * ((x * z) - (i * j)) else: tmp = b * ((a * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -5.5e+22) || !(y <= 6e+27)) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((y <= -5.5e+22) || ~((y <= 6e+27))) tmp = y * ((x * z) - (i * j)); else tmp = b * ((a * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -5.5e+22], N[Not[LessEqual[y, 6e+27]], $MachinePrecision]], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.5 \cdot 10^{+22} \lor \neg \left(y \leq 6 \cdot 10^{+27}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if y < -5.50000000000000021e22 or 5.99999999999999953e27 < y Initial program 58.0%
+-commutative58.0%
fma-define59.5%
*-commutative59.5%
*-commutative59.5%
cancel-sign-sub-inv59.5%
cancel-sign-sub59.5%
fma-neg60.3%
distribute-rgt-neg-out60.3%
remove-double-neg60.3%
*-commutative60.3%
*-commutative60.3%
Simplified60.3%
Taylor expanded in y around inf 69.3%
+-commutative69.3%
mul-1-neg69.3%
unsub-neg69.3%
Simplified69.3%
if -5.50000000000000021e22 < y < 5.99999999999999953e27Initial program 80.0%
Taylor expanded in a around inf 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
associate-/l*76.1%
associate-/l*74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in b around inf 56.7%
Final simplification63.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.8e+47) (not (<= b 3.5e-83))) (* b (- (* a i) (* z c))) (* j (- (* t c) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.8e+47) || !(b <= 3.5e-83)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = j * ((t * c) - (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-2.8d+47)) .or. (.not. (b <= 3.5d-83))) then
tmp = b * ((a * i) - (z * c))
else
tmp = j * ((t * c) - (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.8e+47) || !(b <= 3.5e-83)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = j * ((t * c) - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -2.8e+47) or not (b <= 3.5e-83): tmp = b * ((a * i) - (z * c)) else: tmp = j * ((t * c) - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -2.8e+47) || !(b <= 3.5e-83)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -2.8e+47) || ~((b <= 3.5e-83))) tmp = b * ((a * i) - (z * c)); else tmp = j * ((t * c) - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -2.8e+47], N[Not[LessEqual[b, 3.5e-83]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{+47} \lor \neg \left(b \leq 3.5 \cdot 10^{-83}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -2.79999999999999988e47 or 3.5000000000000003e-83 < b Initial program 67.8%
Taylor expanded in a around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
associate-/l*61.7%
associate-/l*62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in b around inf 63.0%
if -2.79999999999999988e47 < b < 3.5000000000000003e-83Initial program 69.8%
+-commutative69.8%
fma-define69.8%
*-commutative69.8%
*-commutative69.8%
cancel-sign-sub-inv69.8%
cancel-sign-sub69.8%
fma-neg70.8%
distribute-rgt-neg-out70.8%
remove-double-neg70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in j around inf 52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Final simplification58.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -2.05e+96) (* c (* t j)) (if (<= j 1100.0) (* y (* x z)) (* (* i j) (- y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.05e+96) {
tmp = c * (t * j);
} else if (j <= 1100.0) {
tmp = y * (x * z);
} else {
tmp = (i * j) * -y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-2.05d+96)) then
tmp = c * (t * j)
else if (j <= 1100.0d0) then
tmp = y * (x * z)
else
tmp = (i * j) * -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.05e+96) {
tmp = c * (t * j);
} else if (j <= 1100.0) {
tmp = y * (x * z);
} else {
tmp = (i * j) * -y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -2.05e+96: tmp = c * (t * j) elif j <= 1100.0: tmp = y * (x * z) else: tmp = (i * j) * -y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.05e+96) tmp = Float64(c * Float64(t * j)); elseif (j <= 1100.0) tmp = Float64(y * Float64(x * z)); else tmp = Float64(Float64(i * j) * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -2.05e+96) tmp = c * (t * j); elseif (j <= 1100.0) tmp = y * (x * z); else tmp = (i * j) * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.05e+96], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1100.0], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.05 \cdot 10^{+96}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;j \leq 1100:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\end{array}
\end{array}
if j < -2.04999999999999999e96Initial program 62.6%
Taylor expanded in b around 0 53.9%
Taylor expanded in i around inf 53.8%
+-commutative53.8%
mul-1-neg53.8%
unsub-neg53.8%
associate-/l*53.8%
*-commutative53.8%
associate-/l*60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in c around inf 50.3%
if -2.04999999999999999e96 < j < 1100Initial program 71.0%
+-commutative71.0%
fma-define71.6%
*-commutative71.6%
*-commutative71.6%
cancel-sign-sub-inv71.6%
cancel-sign-sub71.6%
fma-neg71.6%
distribute-rgt-neg-out71.6%
remove-double-neg71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in y around -inf 73.4%
Simplified74.1%
Taylor expanded in y around inf 46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in x around inf 37.0%
*-commutative37.0%
Simplified37.0%
if 1100 < j Initial program 67.3%
+-commutative67.3%
fma-define73.6%
*-commutative73.6%
*-commutative73.6%
cancel-sign-sub-inv73.6%
cancel-sign-sub73.6%
fma-neg73.6%
distribute-rgt-neg-out73.6%
remove-double-neg73.6%
*-commutative73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in y around -inf 58.5%
Simplified64.8%
Taylor expanded in y around inf 46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in x around 0 41.0%
mul-1-neg41.0%
*-commutative41.0%
distribute-rgt-neg-in41.0%
Simplified41.0%
Final simplification40.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.85e+38) (not (<= t 1.9e+47))) (* c (* t j)) (* 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 ((t <= -1.85e+38) || !(t <= 1.9e+47)) {
tmp = c * (t * j);
} 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 ((t <= (-1.85d+38)) .or. (.not. (t <= 1.9d+47))) then
tmp = c * (t * j)
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 ((t <= -1.85e+38) || !(t <= 1.9e+47)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.85e+38) or not (t <= 1.9e+47): tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.85e+38) || !(t <= 1.9e+47)) tmp = Float64(c * Float64(t * j)); 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 ((t <= -1.85e+38) || ~((t <= 1.9e+47))) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.85e+38], N[Not[LessEqual[t, 1.9e+47]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.85 \cdot 10^{+38} \lor \neg \left(t \leq 1.9 \cdot 10^{+47}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if t < -1.8500000000000001e38 or 1.9000000000000002e47 < t Initial program 58.4%
Taylor expanded in b around 0 54.8%
Taylor expanded in i around inf 54.1%
+-commutative54.1%
mul-1-neg54.1%
unsub-neg54.1%
associate-/l*54.9%
*-commutative54.9%
associate-/l*54.9%
*-commutative54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in c around inf 37.9%
if -1.8500000000000001e38 < t < 1.9000000000000002e47Initial program 77.0%
+-commutative77.0%
fma-define79.8%
*-commutative79.8%
*-commutative79.8%
cancel-sign-sub-inv79.8%
cancel-sign-sub79.8%
fma-neg79.8%
distribute-rgt-neg-out79.8%
remove-double-neg79.8%
*-commutative79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in i around inf 51.1%
distribute-lft-out--51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in y around 0 28.2%
Final simplification32.5%
(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 68.7%
+-commutative68.7%
fma-define71.0%
*-commutative71.0%
*-commutative71.0%
cancel-sign-sub-inv71.0%
cancel-sign-sub71.0%
fma-neg71.4%
distribute-rgt-neg-out71.4%
remove-double-neg71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in i around inf 42.8%
distribute-lft-out--42.8%
*-commutative42.8%
Simplified42.8%
Taylor expanded in y around 0 21.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 2024145
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* 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)))))