
(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 23 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))))
(t_2 (- (* y z) (* t a)))
(t_3 (- (* t c) (* y i))))
(if (<= (+ (+ (* x t_2) t_1) (* j t_3)) INFINITY)
(fma x t_2 (fma j t_3 t_1))
(* z (- (* x y) (* b c))))))
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 t_2 = (y * z) - (t * a);
double t_3 = (t * c) - (y * i);
double tmp;
if ((((x * t_2) + t_1) + (j * t_3)) <= ((double) INFINITY)) {
tmp = fma(x, t_2, fma(j, t_3, t_1));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(Float64(y * z) - Float64(t * a)) t_3 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(Float64(x * t_2) + t_1) + Float64(j * t_3)) <= Inf) tmp = fma(x, t_2, fma(j, t_3, t_1)); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return 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]}, Block[{t$95$2 = N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x * t$95$2), $MachinePrecision] + t$95$1), $MachinePrecision] + N[(j * t$95$3), $MachinePrecision]), $MachinePrecision], Infinity], N[(x * t$95$2 + N[(j * t$95$3 + t$95$1), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := y \cdot z - t \cdot a\\
t_3 := t \cdot c - y \cdot i\\
\mathbf{if}\;\left(x \cdot t_2 + t_1\right) + j \cdot t_3 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(x, t_2, \mathsf{fma}\left(j, t_3, t_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\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 93.7%
sub-neg93.7%
associate-+l+93.7%
fma-def93.7%
+-commutative93.7%
fma-def93.7%
*-commutative93.7%
*-commutative93.7%
distribute-rgt-neg-in93.7%
sub-neg93.7%
+-commutative93.7%
distribute-neg-in93.7%
unsub-neg93.7%
remove-double-neg93.7%
*-commutative93.7%
*-commutative93.7%
Simplified93.7%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around inf 49.8%
Final simplification85.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * ((x * y) - (b * c)) 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(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * ((x * y) - (b * c)); 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[(a * i), $MachinePrecision] - N[(z * c), $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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\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 93.7%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around inf 49.8%
Final simplification85.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* t (- (* c j) (* x a)))))
(if (<= t -5.4e+91)
t_3
(if (<= t -2.4e+41)
(* i (- (* a b) (* y j)))
(if (<= t -1.55e-79)
(* c (- (* t j) (* z b)))
(if (<= t -4e-153)
t_2
(if (<= t -2.05e-296)
t_1
(if (<= t 5e-230) t_2 (if (<= t 3.2e+65) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -5.4e+91) {
tmp = t_3;
} else if (t <= -2.4e+41) {
tmp = i * ((a * b) - (y * j));
} else if (t <= -1.55e-79) {
tmp = c * ((t * j) - (z * b));
} else if (t <= -4e-153) {
tmp = t_2;
} else if (t <= -2.05e-296) {
tmp = t_1;
} else if (t <= 5e-230) {
tmp = t_2;
} else if (t <= 3.2e+65) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = y * ((x * z) - (i * j))
t_3 = t * ((c * j) - (x * a))
if (t <= (-5.4d+91)) then
tmp = t_3
else if (t <= (-2.4d+41)) then
tmp = i * ((a * b) - (y * j))
else if (t <= (-1.55d-79)) then
tmp = c * ((t * j) - (z * b))
else if (t <= (-4d-153)) then
tmp = t_2
else if (t <= (-2.05d-296)) then
tmp = t_1
else if (t <= 5d-230) then
tmp = t_2
else if (t <= 3.2d+65) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -5.4e+91) {
tmp = t_3;
} else if (t <= -2.4e+41) {
tmp = i * ((a * b) - (y * j));
} else if (t <= -1.55e-79) {
tmp = c * ((t * j) - (z * b));
} else if (t <= -4e-153) {
tmp = t_2;
} else if (t <= -2.05e-296) {
tmp = t_1;
} else if (t <= 5e-230) {
tmp = t_2;
} else if (t <= 3.2e+65) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = y * ((x * z) - (i * j)) t_3 = t * ((c * j) - (x * a)) tmp = 0 if t <= -5.4e+91: tmp = t_3 elif t <= -2.4e+41: tmp = i * ((a * b) - (y * j)) elif t <= -1.55e-79: tmp = c * ((t * j) - (z * b)) elif t <= -4e-153: tmp = t_2 elif t <= -2.05e-296: tmp = t_1 elif t <= 5e-230: tmp = t_2 elif t <= 3.2e+65: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -5.4e+91) tmp = t_3; elseif (t <= -2.4e+41) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (t <= -1.55e-79) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (t <= -4e-153) tmp = t_2; elseif (t <= -2.05e-296) tmp = t_1; elseif (t <= 5e-230) tmp = t_2; elseif (t <= 3.2e+65) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = y * ((x * z) - (i * j)); t_3 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -5.4e+91) tmp = t_3; elseif (t <= -2.4e+41) tmp = i * ((a * b) - (y * j)); elseif (t <= -1.55e-79) tmp = c * ((t * j) - (z * b)); elseif (t <= -4e-153) tmp = t_2; elseif (t <= -2.05e-296) tmp = t_1; elseif (t <= 5e-230) tmp = t_2; elseif (t <= 3.2e+65) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.4e+91], t$95$3, If[LessEqual[t, -2.4e+41], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.55e-79], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4e-153], t$95$2, If[LessEqual[t, -2.05e-296], t$95$1, If[LessEqual[t, 5e-230], t$95$2, If[LessEqual[t, 3.2e+65], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -5.4 \cdot 10^{+91}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -2.4 \cdot 10^{+41}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{-79}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;t \leq -4 \cdot 10^{-153}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -2.05 \cdot 10^{-296}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-230}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+65}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -5.4e91 or 3.20000000000000007e65 < t Initial program 70.2%
cancel-sign-sub70.2%
cancel-sign-sub-inv70.2%
*-commutative70.2%
*-commutative70.2%
remove-double-neg70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in t around inf 69.5%
*-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
Simplified69.5%
if -5.4e91 < t < -2.4000000000000002e41Initial program 70.5%
cancel-sign-sub70.5%
cancel-sign-sub-inv70.5%
*-commutative70.5%
*-commutative70.5%
remove-double-neg70.5%
*-commutative70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in i around inf 70.9%
*-commutative70.9%
sub-neg70.9%
mul-1-neg70.9%
remove-double-neg70.9%
+-commutative70.9%
mul-1-neg70.9%
unsub-neg70.9%
*-commutative70.9%
Simplified70.9%
if -2.4000000000000002e41 < t < -1.55e-79Initial program 76.5%
cancel-sign-sub76.5%
cancel-sign-sub-inv76.5%
*-commutative76.5%
*-commutative76.5%
remove-double-neg76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in c around inf 62.6%
if -1.55e-79 < t < -4.00000000000000016e-153 or -2.04999999999999997e-296 < t < 5.00000000000000035e-230Initial program 85.9%
cancel-sign-sub85.9%
cancel-sign-sub-inv85.9%
*-commutative85.9%
*-commutative85.9%
remove-double-neg85.9%
*-commutative85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in y around inf 65.4%
+-commutative65.4%
mul-1-neg65.4%
unsub-neg65.4%
Simplified65.4%
if -4.00000000000000016e-153 < t < -2.04999999999999997e-296 or 5.00000000000000035e-230 < t < 3.20000000000000007e65Initial program 79.9%
cancel-sign-sub79.9%
cancel-sign-sub-inv79.9%
*-commutative79.9%
*-commutative79.9%
remove-double-neg79.9%
*-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in b around inf 60.7%
Final simplification65.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -7.4e+158)
(* i (- (* a b) (* y j)))
(if (<= j 9e+77)
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* c (- (* t j) (* z b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -7.4e+158) {
tmp = i * ((a * b) - (y * j));
} else if (j <= 9e+77) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-7.4d+158)) then
tmp = i * ((a * b) - (y * j))
else if (j <= 9d+77) then
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))
else
tmp = c * ((t * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -7.4e+158) {
tmp = i * ((a * b) - (y * j));
} else if (j <= 9e+77) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -7.4e+158: tmp = i * ((a * b) - (y * j)) elif j <= 9e+77: tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -7.4e+158) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (j <= 9e+77) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -7.4e+158) tmp = i * ((a * b) - (y * j)); elseif (j <= 9e+77) tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -7.4e+158], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9e+77], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -7.4 \cdot 10^{+158}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;j \leq 9 \cdot 10^{+77}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if j < -7.40000000000000021e158Initial program 84.0%
cancel-sign-sub84.0%
cancel-sign-sub-inv84.0%
*-commutative84.0%
*-commutative84.0%
remove-double-neg84.0%
*-commutative84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in i around inf 65.9%
*-commutative65.9%
sub-neg65.9%
mul-1-neg65.9%
remove-double-neg65.9%
+-commutative65.9%
mul-1-neg65.9%
unsub-neg65.9%
*-commutative65.9%
Simplified65.9%
if -7.40000000000000021e158 < j < 9.00000000000000049e77Initial program 77.7%
cancel-sign-sub77.7%
cancel-sign-sub-inv77.7%
*-commutative77.7%
*-commutative77.7%
remove-double-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in j around 0 71.5%
*-commutative71.5%
Simplified71.5%
if 9.00000000000000049e77 < j Initial program 68.5%
cancel-sign-sub68.5%
cancel-sign-sub-inv68.5%
*-commutative68.5%
*-commutative68.5%
remove-double-neg68.5%
*-commutative68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in c around inf 60.4%
Final simplification68.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= a -8.2e+169)
(and (not (<= a -1e+129))
(or (<= a -600000000.0)
(not
(or (<= a 2.6e-23)
(and (not (<= a 2.3e+114)) (<= a 5.2e+142)))))))
(* a (- (* b i) (* x t)))
(* c (- (* t j) (* z b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -8.2e+169) || (!(a <= -1e+129) && ((a <= -600000000.0) || !((a <= 2.6e-23) || (!(a <= 2.3e+114) && (a <= 5.2e+142)))))) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-8.2d+169)) .or. (.not. (a <= (-1d+129))) .and. (a <= (-600000000.0d0)) .or. (.not. (a <= 2.6d-23) .or. (.not. (a <= 2.3d+114)) .and. (a <= 5.2d+142))) then
tmp = a * ((b * i) - (x * t))
else
tmp = c * ((t * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -8.2e+169) || (!(a <= -1e+129) && ((a <= -600000000.0) || !((a <= 2.6e-23) || (!(a <= 2.3e+114) && (a <= 5.2e+142)))))) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -8.2e+169) or (not (a <= -1e+129) and ((a <= -600000000.0) or not ((a <= 2.6e-23) or (not (a <= 2.3e+114) and (a <= 5.2e+142))))): tmp = a * ((b * i) - (x * t)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -8.2e+169) || (!(a <= -1e+129) && ((a <= -600000000.0) || !((a <= 2.6e-23) || (!(a <= 2.3e+114) && (a <= 5.2e+142)))))) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -8.2e+169) || (~((a <= -1e+129)) && ((a <= -600000000.0) || ~(((a <= 2.6e-23) || (~((a <= 2.3e+114)) && (a <= 5.2e+142))))))) tmp = a * ((b * i) - (x * t)); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -8.2e+169], And[N[Not[LessEqual[a, -1e+129]], $MachinePrecision], Or[LessEqual[a, -600000000.0], N[Not[Or[LessEqual[a, 2.6e-23], And[N[Not[LessEqual[a, 2.3e+114]], $MachinePrecision], LessEqual[a, 5.2e+142]]]], $MachinePrecision]]]], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.2 \cdot 10^{+169} \lor \neg \left(a \leq -1 \cdot 10^{+129}\right) \land \left(a \leq -600000000 \lor \neg \left(a \leq 2.6 \cdot 10^{-23} \lor \neg \left(a \leq 2.3 \cdot 10^{+114}\right) \land a \leq 5.2 \cdot 10^{+142}\right)\right):\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if a < -8.2000000000000006e169 or -1e129 < a < -6e8 or 2.6e-23 < a < 2.3e114 or 5.20000000000000043e142 < a Initial program 68.4%
cancel-sign-sub68.4%
cancel-sign-sub-inv68.4%
*-commutative68.4%
*-commutative68.4%
remove-double-neg68.4%
*-commutative68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in a around inf 65.9%
associate-*r*65.9%
neg-mul-165.9%
cancel-sign-sub65.9%
+-commutative65.9%
mul-1-neg65.9%
unsub-neg65.9%
*-commutative65.9%
Simplified65.9%
if -8.2000000000000006e169 < a < -1e129 or -6e8 < a < 2.6e-23 or 2.3e114 < a < 5.20000000000000043e142Initial program 82.6%
cancel-sign-sub82.6%
cancel-sign-sub-inv82.6%
*-commutative82.6%
*-commutative82.6%
remove-double-neg82.6%
*-commutative82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in c around inf 56.1%
Final simplification60.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b))))
(t_2 (* i (- (* a b) (* y j))))
(t_3 (* t (- (* c j) (* x a)))))
(if (<= t -5.7e+91)
t_3
(if (<= t -1.2e+40)
t_2
(if (<= t -2.9e-77)
t_1
(if (<= t -8.6e-148)
(* y (- (* x z) (* i j)))
(if (<= t 1.9e-143) t_2 (if (<= t 1.3e+46) t_1 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = i * ((a * b) - (y * j));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -5.7e+91) {
tmp = t_3;
} else if (t <= -1.2e+40) {
tmp = t_2;
} else if (t <= -2.9e-77) {
tmp = t_1;
} else if (t <= -8.6e-148) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 1.9e-143) {
tmp = t_2;
} else if (t <= 1.3e+46) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = i * ((a * b) - (y * j))
t_3 = t * ((c * j) - (x * a))
if (t <= (-5.7d+91)) then
tmp = t_3
else if (t <= (-1.2d+40)) then
tmp = t_2
else if (t <= (-2.9d-77)) then
tmp = t_1
else if (t <= (-8.6d-148)) then
tmp = y * ((x * z) - (i * j))
else if (t <= 1.9d-143) then
tmp = t_2
else if (t <= 1.3d+46) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = i * ((a * b) - (y * j));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -5.7e+91) {
tmp = t_3;
} else if (t <= -1.2e+40) {
tmp = t_2;
} else if (t <= -2.9e-77) {
tmp = t_1;
} else if (t <= -8.6e-148) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 1.9e-143) {
tmp = t_2;
} else if (t <= 1.3e+46) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = i * ((a * b) - (y * j)) t_3 = t * ((c * j) - (x * a)) tmp = 0 if t <= -5.7e+91: tmp = t_3 elif t <= -1.2e+40: tmp = t_2 elif t <= -2.9e-77: tmp = t_1 elif t <= -8.6e-148: tmp = y * ((x * z) - (i * j)) elif t <= 1.9e-143: tmp = t_2 elif t <= 1.3e+46: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_3 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -5.7e+91) tmp = t_3; elseif (t <= -1.2e+40) tmp = t_2; elseif (t <= -2.9e-77) tmp = t_1; elseif (t <= -8.6e-148) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 1.9e-143) tmp = t_2; elseif (t <= 1.3e+46) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = i * ((a * b) - (y * j)); t_3 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -5.7e+91) tmp = t_3; elseif (t <= -1.2e+40) tmp = t_2; elseif (t <= -2.9e-77) tmp = t_1; elseif (t <= -8.6e-148) tmp = y * ((x * z) - (i * j)); elseif (t <= 1.9e-143) tmp = t_2; elseif (t <= 1.3e+46) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.7e+91], t$95$3, If[LessEqual[t, -1.2e+40], t$95$2, If[LessEqual[t, -2.9e-77], t$95$1, If[LessEqual[t, -8.6e-148], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e-143], t$95$2, If[LessEqual[t, 1.3e+46], t$95$1, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_3 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -5.7 \cdot 10^{+91}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -1.2 \cdot 10^{+40}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -2.9 \cdot 10^{-77}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -8.6 \cdot 10^{-148}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-143}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+46}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -5.69999999999999964e91 or 1.30000000000000007e46 < t Initial program 69.1%
cancel-sign-sub69.1%
cancel-sign-sub-inv69.1%
*-commutative69.1%
*-commutative69.1%
remove-double-neg69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in t around inf 68.5%
*-commutative68.5%
mul-1-neg68.5%
unsub-neg68.5%
Simplified68.5%
if -5.69999999999999964e91 < t < -1.2e40 or -8.5999999999999997e-148 < t < 1.89999999999999991e-143Initial program 80.1%
cancel-sign-sub80.1%
cancel-sign-sub-inv80.1%
*-commutative80.1%
*-commutative80.1%
remove-double-neg80.1%
*-commutative80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in i around inf 59.1%
*-commutative59.1%
sub-neg59.1%
mul-1-neg59.1%
remove-double-neg59.1%
+-commutative59.1%
mul-1-neg59.1%
unsub-neg59.1%
*-commutative59.1%
Simplified59.1%
if -1.2e40 < t < -2.8999999999999999e-77 or 1.89999999999999991e-143 < t < 1.30000000000000007e46Initial program 80.8%
cancel-sign-sub80.8%
cancel-sign-sub-inv80.8%
*-commutative80.8%
*-commutative80.8%
remove-double-neg80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in c around inf 57.8%
if -2.8999999999999999e-77 < t < -8.5999999999999997e-148Initial program 83.8%
cancel-sign-sub83.8%
cancel-sign-sub-inv83.8%
*-commutative83.8%
*-commutative83.8%
remove-double-neg83.8%
*-commutative83.8%
*-commutative83.8%
Simplified83.8%
Taylor expanded in y around inf 61.7%
+-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
Simplified61.7%
Final simplification62.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))) (t_2 (* y (* i (- j)))))
(if (<= j -1e+158)
t_2
(if (<= j -1e+27)
t_1
(if (<= j -2.75e-43)
(* b (* a i))
(if (<= j -2.25e-231)
t_1
(if (<= j 7.8e-302)
(* a (* t (- x)))
(if (<= j 3.5e-149)
t_1
(if (<= j 1.3e+29) (* a (* b i)) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double t_2 = y * (i * -j);
double tmp;
if (j <= -1e+158) {
tmp = t_2;
} else if (j <= -1e+27) {
tmp = t_1;
} else if (j <= -2.75e-43) {
tmp = b * (a * i);
} else if (j <= -2.25e-231) {
tmp = t_1;
} else if (j <= 7.8e-302) {
tmp = a * (t * -x);
} else if (j <= 3.5e-149) {
tmp = t_1;
} else if (j <= 1.3e+29) {
tmp = a * (b * i);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (z * -b)
t_2 = y * (i * -j)
if (j <= (-1d+158)) then
tmp = t_2
else if (j <= (-1d+27)) then
tmp = t_1
else if (j <= (-2.75d-43)) then
tmp = b * (a * i)
else if (j <= (-2.25d-231)) then
tmp = t_1
else if (j <= 7.8d-302) then
tmp = a * (t * -x)
else if (j <= 3.5d-149) then
tmp = t_1
else if (j <= 1.3d+29) then
tmp = a * (b * i)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double t_2 = y * (i * -j);
double tmp;
if (j <= -1e+158) {
tmp = t_2;
} else if (j <= -1e+27) {
tmp = t_1;
} else if (j <= -2.75e-43) {
tmp = b * (a * i);
} else if (j <= -2.25e-231) {
tmp = t_1;
} else if (j <= 7.8e-302) {
tmp = a * (t * -x);
} else if (j <= 3.5e-149) {
tmp = t_1;
} else if (j <= 1.3e+29) {
tmp = a * (b * i);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) t_2 = y * (i * -j) tmp = 0 if j <= -1e+158: tmp = t_2 elif j <= -1e+27: tmp = t_1 elif j <= -2.75e-43: tmp = b * (a * i) elif j <= -2.25e-231: tmp = t_1 elif j <= 7.8e-302: tmp = a * (t * -x) elif j <= 3.5e-149: tmp = t_1 elif j <= 1.3e+29: tmp = a * (b * i) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) t_2 = Float64(y * Float64(i * Float64(-j))) tmp = 0.0 if (j <= -1e+158) tmp = t_2; elseif (j <= -1e+27) tmp = t_1; elseif (j <= -2.75e-43) tmp = Float64(b * Float64(a * i)); elseif (j <= -2.25e-231) tmp = t_1; elseif (j <= 7.8e-302) tmp = Float64(a * Float64(t * Float64(-x))); elseif (j <= 3.5e-149) tmp = t_1; elseif (j <= 1.3e+29) tmp = Float64(a * Float64(b * i)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); t_2 = y * (i * -j); tmp = 0.0; if (j <= -1e+158) tmp = t_2; elseif (j <= -1e+27) tmp = t_1; elseif (j <= -2.75e-43) tmp = b * (a * i); elseif (j <= -2.25e-231) tmp = t_1; elseif (j <= 7.8e-302) tmp = a * (t * -x); elseif (j <= 3.5e-149) tmp = t_1; elseif (j <= 1.3e+29) tmp = a * (b * i); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1e+158], t$95$2, If[LessEqual[j, -1e+27], t$95$1, If[LessEqual[j, -2.75e-43], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.25e-231], t$95$1, If[LessEqual[j, 7.8e-302], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.5e-149], t$95$1, If[LessEqual[j, 1.3e+29], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
t_2 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;j \leq -1 \cdot 10^{+158}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -1 \cdot 10^{+27}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -2.75 \cdot 10^{-43}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;j \leq -2.25 \cdot 10^{-231}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 7.8 \cdot 10^{-302}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;j \leq 3.5 \cdot 10^{-149}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{+29}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -9.99999999999999953e157 or 1.3e29 < j Initial program 73.9%
cancel-sign-sub73.9%
cancel-sign-sub-inv73.9%
*-commutative73.9%
*-commutative73.9%
remove-double-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in i around inf 47.1%
*-commutative47.1%
sub-neg47.1%
mul-1-neg47.1%
remove-double-neg47.1%
+-commutative47.1%
mul-1-neg47.1%
unsub-neg47.1%
*-commutative47.1%
Simplified47.1%
Taylor expanded in b around 0 46.9%
mul-1-neg46.9%
associate-*r*41.7%
*-commutative41.7%
associate-*r*44.8%
distribute-rgt-neg-in44.8%
distribute-lft-neg-in44.8%
*-commutative44.8%
Simplified44.8%
if -9.99999999999999953e157 < j < -1e27 or -2.75000000000000006e-43 < j < -2.2499999999999999e-231 or 7.7999999999999998e-302 < j < 3.5e-149Initial program 76.3%
cancel-sign-sub76.3%
cancel-sign-sub-inv76.3%
*-commutative76.3%
*-commutative76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in z around inf 57.2%
Taylor expanded in y around 0 39.4%
mul-1-neg39.4%
distribute-lft-neg-in39.4%
Simplified39.4%
if -1e27 < j < -2.75000000000000006e-43Initial program 92.5%
cancel-sign-sub92.5%
cancel-sign-sub-inv92.5%
*-commutative92.5%
*-commutative92.5%
remove-double-neg92.5%
*-commutative92.5%
*-commutative92.5%
Simplified92.5%
Taylor expanded in a around inf 52.0%
associate-*r*52.0%
neg-mul-152.0%
cancel-sign-sub52.0%
+-commutative52.0%
mul-1-neg52.0%
unsub-neg52.0%
*-commutative52.0%
Simplified52.0%
Taylor expanded in b around inf 37.4%
associate-*r*44.2%
*-commutative44.2%
Simplified44.2%
if -2.2499999999999999e-231 < j < 7.7999999999999998e-302Initial program 72.3%
cancel-sign-sub72.3%
cancel-sign-sub-inv72.3%
*-commutative72.3%
*-commutative72.3%
remove-double-neg72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in a around inf 70.0%
associate-*r*70.0%
neg-mul-170.0%
cancel-sign-sub70.0%
+-commutative70.0%
mul-1-neg70.0%
unsub-neg70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in b around 0 58.5%
mul-1-neg58.5%
distribute-lft-neg-out58.5%
*-commutative58.5%
Simplified58.5%
if 3.5e-149 < j < 1.3e29Initial program 80.5%
cancel-sign-sub80.5%
cancel-sign-sub-inv80.5%
*-commutative80.5%
*-commutative80.5%
remove-double-neg80.5%
*-commutative80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in a around inf 63.7%
associate-*r*63.7%
neg-mul-163.7%
cancel-sign-sub63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in b around -inf 51.4%
Final simplification44.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))) (t_2 (* i (* y (- j)))))
(if (<= j -8.2e+156)
t_2
(if (<= j -1.1e+27)
t_1
(if (<= j -1.5e-43)
(* b (* a i))
(if (<= j -3e-233)
t_1
(if (<= j 1.75e-303)
(* a (* t (- x)))
(if (<= j 1.3e-149)
t_1
(if (<= j 7.2e+29) (* a (* b i)) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double t_2 = i * (y * -j);
double tmp;
if (j <= -8.2e+156) {
tmp = t_2;
} else if (j <= -1.1e+27) {
tmp = t_1;
} else if (j <= -1.5e-43) {
tmp = b * (a * i);
} else if (j <= -3e-233) {
tmp = t_1;
} else if (j <= 1.75e-303) {
tmp = a * (t * -x);
} else if (j <= 1.3e-149) {
tmp = t_1;
} else if (j <= 7.2e+29) {
tmp = a * (b * i);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (z * -b)
t_2 = i * (y * -j)
if (j <= (-8.2d+156)) then
tmp = t_2
else if (j <= (-1.1d+27)) then
tmp = t_1
else if (j <= (-1.5d-43)) then
tmp = b * (a * i)
else if (j <= (-3d-233)) then
tmp = t_1
else if (j <= 1.75d-303) then
tmp = a * (t * -x)
else if (j <= 1.3d-149) then
tmp = t_1
else if (j <= 7.2d+29) then
tmp = a * (b * i)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double t_2 = i * (y * -j);
double tmp;
if (j <= -8.2e+156) {
tmp = t_2;
} else if (j <= -1.1e+27) {
tmp = t_1;
} else if (j <= -1.5e-43) {
tmp = b * (a * i);
} else if (j <= -3e-233) {
tmp = t_1;
} else if (j <= 1.75e-303) {
tmp = a * (t * -x);
} else if (j <= 1.3e-149) {
tmp = t_1;
} else if (j <= 7.2e+29) {
tmp = a * (b * i);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) t_2 = i * (y * -j) tmp = 0 if j <= -8.2e+156: tmp = t_2 elif j <= -1.1e+27: tmp = t_1 elif j <= -1.5e-43: tmp = b * (a * i) elif j <= -3e-233: tmp = t_1 elif j <= 1.75e-303: tmp = a * (t * -x) elif j <= 1.3e-149: tmp = t_1 elif j <= 7.2e+29: tmp = a * (b * i) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) t_2 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (j <= -8.2e+156) tmp = t_2; elseif (j <= -1.1e+27) tmp = t_1; elseif (j <= -1.5e-43) tmp = Float64(b * Float64(a * i)); elseif (j <= -3e-233) tmp = t_1; elseif (j <= 1.75e-303) tmp = Float64(a * Float64(t * Float64(-x))); elseif (j <= 1.3e-149) tmp = t_1; elseif (j <= 7.2e+29) tmp = Float64(a * Float64(b * i)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); t_2 = i * (y * -j); tmp = 0.0; if (j <= -8.2e+156) tmp = t_2; elseif (j <= -1.1e+27) tmp = t_1; elseif (j <= -1.5e-43) tmp = b * (a * i); elseif (j <= -3e-233) tmp = t_1; elseif (j <= 1.75e-303) tmp = a * (t * -x); elseif (j <= 1.3e-149) tmp = t_1; elseif (j <= 7.2e+29) tmp = a * (b * i); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -8.2e+156], t$95$2, If[LessEqual[j, -1.1e+27], t$95$1, If[LessEqual[j, -1.5e-43], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3e-233], t$95$1, If[LessEqual[j, 1.75e-303], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.3e-149], t$95$1, If[LessEqual[j, 7.2e+29], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
t_2 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;j \leq -8.2 \cdot 10^{+156}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -1.1 \cdot 10^{+27}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -1.5 \cdot 10^{-43}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;j \leq -3 \cdot 10^{-233}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.75 \cdot 10^{-303}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{-149}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 7.2 \cdot 10^{+29}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -8.2000000000000003e156 or 7.19999999999999952e29 < j Initial program 73.9%
cancel-sign-sub73.9%
cancel-sign-sub-inv73.9%
*-commutative73.9%
*-commutative73.9%
remove-double-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in i around inf 47.1%
*-commutative47.1%
sub-neg47.1%
mul-1-neg47.1%
remove-double-neg47.1%
+-commutative47.1%
mul-1-neg47.1%
unsub-neg47.1%
*-commutative47.1%
Simplified47.1%
Taylor expanded in b around 0 46.9%
associate-*r*46.9%
neg-mul-146.9%
Simplified46.9%
if -8.2000000000000003e156 < j < -1.0999999999999999e27 or -1.50000000000000002e-43 < j < -2.99999999999999999e-233 or 1.75e-303 < j < 1.29999999999999999e-149Initial program 76.3%
cancel-sign-sub76.3%
cancel-sign-sub-inv76.3%
*-commutative76.3%
*-commutative76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in z around inf 57.2%
Taylor expanded in y around 0 39.4%
mul-1-neg39.4%
distribute-lft-neg-in39.4%
Simplified39.4%
if -1.0999999999999999e27 < j < -1.50000000000000002e-43Initial program 92.5%
cancel-sign-sub92.5%
cancel-sign-sub-inv92.5%
*-commutative92.5%
*-commutative92.5%
remove-double-neg92.5%
*-commutative92.5%
*-commutative92.5%
Simplified92.5%
Taylor expanded in a around inf 52.0%
associate-*r*52.0%
neg-mul-152.0%
cancel-sign-sub52.0%
+-commutative52.0%
mul-1-neg52.0%
unsub-neg52.0%
*-commutative52.0%
Simplified52.0%
Taylor expanded in b around inf 37.4%
associate-*r*44.2%
*-commutative44.2%
Simplified44.2%
if -2.99999999999999999e-233 < j < 1.75e-303Initial program 72.3%
cancel-sign-sub72.3%
cancel-sign-sub-inv72.3%
*-commutative72.3%
*-commutative72.3%
remove-double-neg72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in a around inf 70.0%
associate-*r*70.0%
neg-mul-170.0%
cancel-sign-sub70.0%
+-commutative70.0%
mul-1-neg70.0%
unsub-neg70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in b around 0 58.5%
mul-1-neg58.5%
distribute-lft-neg-out58.5%
*-commutative58.5%
Simplified58.5%
if 1.29999999999999999e-149 < j < 7.19999999999999952e29Initial program 80.5%
cancel-sign-sub80.5%
cancel-sign-sub-inv80.5%
*-commutative80.5%
*-commutative80.5%
remove-double-neg80.5%
*-commutative80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in a around inf 63.7%
associate-*r*63.7%
neg-mul-163.7%
cancel-sign-sub63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in b around -inf 51.4%
Final simplification44.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b))))
(t_2 (* i (- (* a b) (* y j))))
(t_3 (* t (- (* c j) (* x a)))))
(if (<= t -4.8e+91)
t_3
(if (<= t -1.35e+41)
t_2
(if (<= t -1.55e-79)
t_1
(if (<= t 2e-147) t_2 (if (<= t 3.2e+45) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = i * ((a * b) - (y * j));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -4.8e+91) {
tmp = t_3;
} else if (t <= -1.35e+41) {
tmp = t_2;
} else if (t <= -1.55e-79) {
tmp = t_1;
} else if (t <= 2e-147) {
tmp = t_2;
} else if (t <= 3.2e+45) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = i * ((a * b) - (y * j))
t_3 = t * ((c * j) - (x * a))
if (t <= (-4.8d+91)) then
tmp = t_3
else if (t <= (-1.35d+41)) then
tmp = t_2
else if (t <= (-1.55d-79)) then
tmp = t_1
else if (t <= 2d-147) then
tmp = t_2
else if (t <= 3.2d+45) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = i * ((a * b) - (y * j));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -4.8e+91) {
tmp = t_3;
} else if (t <= -1.35e+41) {
tmp = t_2;
} else if (t <= -1.55e-79) {
tmp = t_1;
} else if (t <= 2e-147) {
tmp = t_2;
} else if (t <= 3.2e+45) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = i * ((a * b) - (y * j)) t_3 = t * ((c * j) - (x * a)) tmp = 0 if t <= -4.8e+91: tmp = t_3 elif t <= -1.35e+41: tmp = t_2 elif t <= -1.55e-79: tmp = t_1 elif t <= 2e-147: tmp = t_2 elif t <= 3.2e+45: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_3 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -4.8e+91) tmp = t_3; elseif (t <= -1.35e+41) tmp = t_2; elseif (t <= -1.55e-79) tmp = t_1; elseif (t <= 2e-147) tmp = t_2; elseif (t <= 3.2e+45) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = i * ((a * b) - (y * j)); t_3 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -4.8e+91) tmp = t_3; elseif (t <= -1.35e+41) tmp = t_2; elseif (t <= -1.55e-79) tmp = t_1; elseif (t <= 2e-147) tmp = t_2; elseif (t <= 3.2e+45) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.8e+91], t$95$3, If[LessEqual[t, -1.35e+41], t$95$2, If[LessEqual[t, -1.55e-79], t$95$1, If[LessEqual[t, 2e-147], t$95$2, If[LessEqual[t, 3.2e+45], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_3 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -4.8 \cdot 10^{+91}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -1.35 \cdot 10^{+41}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{-79}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-147}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+45}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -4.79999999999999966e91 or 3.2000000000000003e45 < t Initial program 69.1%
cancel-sign-sub69.1%
cancel-sign-sub-inv69.1%
*-commutative69.1%
*-commutative69.1%
remove-double-neg69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in t around inf 68.5%
*-commutative68.5%
mul-1-neg68.5%
unsub-neg68.5%
Simplified68.5%
if -4.79999999999999966e91 < t < -1.35e41 or -1.55e-79 < t < 1.9999999999999999e-147Initial program 80.7%
cancel-sign-sub80.7%
cancel-sign-sub-inv80.7%
*-commutative80.7%
*-commutative80.7%
remove-double-neg80.7%
*-commutative80.7%
*-commutative80.7%
Simplified80.7%
Taylor expanded in i around inf 55.6%
*-commutative55.6%
sub-neg55.6%
mul-1-neg55.6%
remove-double-neg55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
*-commutative55.6%
Simplified55.6%
if -1.35e41 < t < -1.55e-79 or 1.9999999999999999e-147 < t < 3.2000000000000003e45Initial program 80.8%
cancel-sign-sub80.8%
cancel-sign-sub-inv80.8%
*-commutative80.8%
*-commutative80.8%
remove-double-neg80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in c around inf 57.8%
Final simplification60.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -2.0)
t_1
(if (<= z 2.5e-159)
(* i (- (* a b) (* y j)))
(if (<= z 9.8e-107)
(* c (- (* t j) (* z b)))
(if (<= z 0.0073)
(* a (- (* b i) (* x t)))
(if (<= z 1.55e+44) (* 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 = z * ((x * y) - (b * c));
double tmp;
if (z <= -2.0) {
tmp = t_1;
} else if (z <= 2.5e-159) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 9.8e-107) {
tmp = c * ((t * j) - (z * b));
} else if (z <= 0.0073) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.55e+44) {
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 = z * ((x * y) - (b * c))
if (z <= (-2.0d0)) then
tmp = t_1
else if (z <= 2.5d-159) then
tmp = i * ((a * b) - (y * j))
else if (z <= 9.8d-107) then
tmp = c * ((t * j) - (z * b))
else if (z <= 0.0073d0) then
tmp = a * ((b * i) - (x * t))
else if (z <= 1.55d+44) 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 = z * ((x * y) - (b * c));
double tmp;
if (z <= -2.0) {
tmp = t_1;
} else if (z <= 2.5e-159) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 9.8e-107) {
tmp = c * ((t * j) - (z * b));
} else if (z <= 0.0073) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.55e+44) {
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 = z * ((x * y) - (b * c)) tmp = 0 if z <= -2.0: tmp = t_1 elif z <= 2.5e-159: tmp = i * ((a * b) - (y * j)) elif z <= 9.8e-107: tmp = c * ((t * j) - (z * b)) elif z <= 0.0073: tmp = a * ((b * i) - (x * t)) elif z <= 1.55e+44: 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(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -2.0) tmp = t_1; elseif (z <= 2.5e-159) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 9.8e-107) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (z <= 0.0073) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= 1.55e+44) 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 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -2.0) tmp = t_1; elseif (z <= 2.5e-159) tmp = i * ((a * b) - (y * j)); elseif (z <= 9.8e-107) tmp = c * ((t * j) - (z * b)); elseif (z <= 0.0073) tmp = a * ((b * i) - (x * t)); elseif (z <= 1.55e+44) 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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.0], t$95$1, If[LessEqual[z, 2.5e-159], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.8e-107], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.0073], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.55e+44], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $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 -2:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-159}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 9.8 \cdot 10^{-107}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;z \leq 0.0073:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+44}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -2 or 1.54999999999999998e44 < z Initial program 67.7%
cancel-sign-sub67.7%
cancel-sign-sub-inv67.7%
*-commutative67.7%
*-commutative67.7%
remove-double-neg67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in z around inf 65.5%
if -2 < z < 2.50000000000000016e-159Initial program 85.9%
cancel-sign-sub85.9%
cancel-sign-sub-inv85.9%
*-commutative85.9%
*-commutative85.9%
remove-double-neg85.9%
*-commutative85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in i around inf 55.2%
*-commutative55.2%
sub-neg55.2%
mul-1-neg55.2%
remove-double-neg55.2%
+-commutative55.2%
mul-1-neg55.2%
unsub-neg55.2%
*-commutative55.2%
Simplified55.2%
if 2.50000000000000016e-159 < z < 9.79999999999999959e-107Initial program 75.0%
cancel-sign-sub75.0%
cancel-sign-sub-inv75.0%
*-commutative75.0%
*-commutative75.0%
remove-double-neg75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in c around inf 74.9%
if 9.79999999999999959e-107 < z < 0.00730000000000000007Initial program 88.1%
cancel-sign-sub88.1%
cancel-sign-sub-inv88.1%
*-commutative88.1%
*-commutative88.1%
remove-double-neg88.1%
*-commutative88.1%
*-commutative88.1%
Simplified88.1%
Taylor expanded in a around inf 65.7%
associate-*r*65.7%
neg-mul-165.7%
cancel-sign-sub65.7%
+-commutative65.7%
mul-1-neg65.7%
unsub-neg65.7%
*-commutative65.7%
Simplified65.7%
if 0.00730000000000000007 < z < 1.54999999999999998e44Initial program 66.5%
cancel-sign-sub66.5%
cancel-sign-sub-inv66.5%
*-commutative66.5%
*-commutative66.5%
remove-double-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in t around inf 88.8%
*-commutative88.8%
mul-1-neg88.8%
unsub-neg88.8%
Simplified88.8%
Final simplification62.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= j -2.4e+158)
t_1
(if (<= j 1.75e-146)
(- (* x (- (* y z) (* t a))) (* c (* z b)))
(if (<= j 4.2e+79) t_1 (* c (- (* t j) (* z b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (j <= -2.4e+158) {
tmp = t_1;
} else if (j <= 1.75e-146) {
tmp = (x * ((y * z) - (t * a))) - (c * (z * b));
} else if (j <= 4.2e+79) {
tmp = t_1;
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
if (j <= (-2.4d+158)) then
tmp = t_1
else if (j <= 1.75d-146) then
tmp = (x * ((y * z) - (t * a))) - (c * (z * b))
else if (j <= 4.2d+79) then
tmp = t_1
else
tmp = c * ((t * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (j <= -2.4e+158) {
tmp = t_1;
} else if (j <= 1.75e-146) {
tmp = (x * ((y * z) - (t * a))) - (c * (z * b));
} else if (j <= 4.2e+79) {
tmp = t_1;
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) tmp = 0 if j <= -2.4e+158: tmp = t_1 elif j <= 1.75e-146: tmp = (x * ((y * z) - (t * a))) - (c * (z * b)) elif j <= 4.2e+79: tmp = t_1 else: tmp = c * ((t * j) - (z * b)) 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 (j <= -2.4e+158) tmp = t_1; elseif (j <= 1.75e-146) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(c * Float64(z * b))); elseif (j <= 4.2e+79) tmp = t_1; else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); tmp = 0.0; if (j <= -2.4e+158) tmp = t_1; elseif (j <= 1.75e-146) tmp = (x * ((y * z) - (t * a))) - (c * (z * b)); elseif (j <= 4.2e+79) tmp = t_1; else tmp = c * ((t * j) - (z * b)); 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[j, -2.4e+158], t$95$1, If[LessEqual[j, 1.75e-146], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.2e+79], t$95$1, N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;j \leq -2.4 \cdot 10^{+158}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.75 \cdot 10^{-146}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;j \leq 4.2 \cdot 10^{+79}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if j < -2.40000000000000008e158 or 1.7500000000000001e-146 < j < 4.20000000000000016e79Initial program 80.6%
cancel-sign-sub80.6%
cancel-sign-sub-inv80.6%
*-commutative80.6%
*-commutative80.6%
remove-double-neg80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in i around inf 63.2%
*-commutative63.2%
sub-neg63.2%
mul-1-neg63.2%
remove-double-neg63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
*-commutative63.2%
Simplified63.2%
if -2.40000000000000008e158 < j < 1.7500000000000001e-146Initial program 77.8%
cancel-sign-sub77.8%
cancel-sign-sub-inv77.8%
*-commutative77.8%
*-commutative77.8%
remove-double-neg77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in j around 0 74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in c around inf 64.4%
if 4.20000000000000016e79 < j Initial program 68.5%
cancel-sign-sub68.5%
cancel-sign-sub-inv68.5%
*-commutative68.5%
*-commutative68.5%
remove-double-neg68.5%
*-commutative68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in c around inf 60.4%
Final simplification63.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= c -4.8e-12)
(* z (* b (- c)))
(if (<= c -8.6e-171)
t_1
(if (<= c -5.6e-292)
(* i (* y (- j)))
(if (<= c 3e+110) t_1 (* (* z c) (- b))))))))
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 tmp;
if (c <= -4.8e-12) {
tmp = z * (b * -c);
} else if (c <= -8.6e-171) {
tmp = t_1;
} else if (c <= -5.6e-292) {
tmp = i * (y * -j);
} else if (c <= 3e+110) {
tmp = t_1;
} else {
tmp = (z * c) * -b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (c <= (-4.8d-12)) then
tmp = z * (b * -c)
else if (c <= (-8.6d-171)) then
tmp = t_1
else if (c <= (-5.6d-292)) then
tmp = i * (y * -j)
else if (c <= 3d+110) then
tmp = t_1
else
tmp = (z * c) * -b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (c <= -4.8e-12) {
tmp = z * (b * -c);
} else if (c <= -8.6e-171) {
tmp = t_1;
} else if (c <= -5.6e-292) {
tmp = i * (y * -j);
} else if (c <= 3e+110) {
tmp = t_1;
} else {
tmp = (z * c) * -b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if c <= -4.8e-12: tmp = z * (b * -c) elif c <= -8.6e-171: tmp = t_1 elif c <= -5.6e-292: tmp = i * (y * -j) elif c <= 3e+110: tmp = t_1 else: tmp = (z * c) * -b return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (c <= -4.8e-12) tmp = Float64(z * Float64(b * Float64(-c))); elseif (c <= -8.6e-171) tmp = t_1; elseif (c <= -5.6e-292) tmp = Float64(i * Float64(y * Float64(-j))); elseif (c <= 3e+110) tmp = t_1; else tmp = Float64(Float64(z * c) * Float64(-b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (c <= -4.8e-12) tmp = z * (b * -c); elseif (c <= -8.6e-171) tmp = t_1; elseif (c <= -5.6e-292) tmp = i * (y * -j); elseif (c <= 3e+110) tmp = t_1; else tmp = (z * c) * -b; 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]}, If[LessEqual[c, -4.8e-12], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.6e-171], t$95$1, If[LessEqual[c, -5.6e-292], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3e+110], t$95$1, N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;c \leq -4.8 \cdot 10^{-12}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;c \leq -8.6 \cdot 10^{-171}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -5.6 \cdot 10^{-292}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;c \leq 3 \cdot 10^{+110}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\end{array}
\end{array}
if c < -4.79999999999999974e-12Initial program 68.0%
cancel-sign-sub68.0%
cancel-sign-sub-inv68.0%
*-commutative68.0%
*-commutative68.0%
remove-double-neg68.0%
*-commutative68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in z around inf 56.7%
Taylor expanded in y around 0 48.1%
mul-1-neg48.1%
distribute-rgt-neg-in48.1%
Simplified48.1%
if -4.79999999999999974e-12 < c < -8.6000000000000004e-171 or -5.6000000000000003e-292 < c < 3.00000000000000007e110Initial program 82.0%
cancel-sign-sub82.0%
cancel-sign-sub-inv82.0%
*-commutative82.0%
*-commutative82.0%
remove-double-neg82.0%
*-commutative82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in a around inf 44.2%
associate-*r*44.2%
neg-mul-144.2%
cancel-sign-sub44.2%
+-commutative44.2%
mul-1-neg44.2%
unsub-neg44.2%
*-commutative44.2%
Simplified44.2%
if -8.6000000000000004e-171 < c < -5.6000000000000003e-292Initial program 90.9%
cancel-sign-sub90.9%
cancel-sign-sub-inv90.9%
*-commutative90.9%
*-commutative90.9%
remove-double-neg90.9%
*-commutative90.9%
*-commutative90.9%
Simplified90.9%
Taylor expanded in i around inf 54.2%
*-commutative54.2%
sub-neg54.2%
mul-1-neg54.2%
remove-double-neg54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in b around 0 48.5%
associate-*r*48.5%
neg-mul-148.5%
Simplified48.5%
if 3.00000000000000007e110 < c Initial program 64.2%
cancel-sign-sub64.2%
cancel-sign-sub-inv64.2%
*-commutative64.2%
*-commutative64.2%
remove-double-neg64.2%
*-commutative64.2%
*-commutative64.2%
Simplified64.2%
Taylor expanded in b around inf 50.4%
Taylor expanded in a around 0 45.8%
neg-mul-145.8%
distribute-lft-neg-in45.8%
*-commutative45.8%
Simplified45.8%
Final simplification46.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* z (* b (- c)))))
(if (<= c -5e-16)
t_2
(if (<= c -3.7e-199)
t_1
(if (<= c -6.1e-277)
(* x (* y z))
(if (<= c -6.6e-295) t_1 (if (<= c 3.4e+103) (* b (* a i)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = z * (b * -c);
double tmp;
if (c <= -5e-16) {
tmp = t_2;
} else if (c <= -3.7e-199) {
tmp = t_1;
} else if (c <= -6.1e-277) {
tmp = x * (y * z);
} else if (c <= -6.6e-295) {
tmp = t_1;
} else if (c <= 3.4e+103) {
tmp = b * (a * i);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * (y * -j)
t_2 = z * (b * -c)
if (c <= (-5d-16)) then
tmp = t_2
else if (c <= (-3.7d-199)) then
tmp = t_1
else if (c <= (-6.1d-277)) then
tmp = x * (y * z)
else if (c <= (-6.6d-295)) then
tmp = t_1
else if (c <= 3.4d+103) then
tmp = b * (a * i)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = z * (b * -c);
double tmp;
if (c <= -5e-16) {
tmp = t_2;
} else if (c <= -3.7e-199) {
tmp = t_1;
} else if (c <= -6.1e-277) {
tmp = x * (y * z);
} else if (c <= -6.6e-295) {
tmp = t_1;
} else if (c <= 3.4e+103) {
tmp = b * (a * i);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = z * (b * -c) tmp = 0 if c <= -5e-16: tmp = t_2 elif c <= -3.7e-199: tmp = t_1 elif c <= -6.1e-277: tmp = x * (y * z) elif c <= -6.6e-295: tmp = t_1 elif c <= 3.4e+103: tmp = b * (a * i) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(z * Float64(b * Float64(-c))) tmp = 0.0 if (c <= -5e-16) tmp = t_2; elseif (c <= -3.7e-199) tmp = t_1; elseif (c <= -6.1e-277) tmp = Float64(x * Float64(y * z)); elseif (c <= -6.6e-295) tmp = t_1; elseif (c <= 3.4e+103) tmp = Float64(b * Float64(a * i)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = z * (b * -c); tmp = 0.0; if (c <= -5e-16) tmp = t_2; elseif (c <= -3.7e-199) tmp = t_1; elseif (c <= -6.1e-277) tmp = x * (y * z); elseif (c <= -6.6e-295) tmp = t_1; elseif (c <= 3.4e+103) tmp = b * (a * i); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5e-16], t$95$2, If[LessEqual[c, -3.7e-199], t$95$1, If[LessEqual[c, -6.1e-277], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -6.6e-295], t$95$1, If[LessEqual[c, 3.4e+103], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{if}\;c \leq -5 \cdot 10^{-16}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -3.7 \cdot 10^{-199}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -6.1 \cdot 10^{-277}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq -6.6 \cdot 10^{-295}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 3.4 \cdot 10^{+103}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -5.0000000000000004e-16 or 3.3999999999999998e103 < c Initial program 66.5%
cancel-sign-sub66.5%
cancel-sign-sub-inv66.5%
*-commutative66.5%
*-commutative66.5%
remove-double-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in z around inf 55.2%
Taylor expanded in y around 0 45.4%
mul-1-neg45.4%
distribute-rgt-neg-in45.4%
Simplified45.4%
if -5.0000000000000004e-16 < c < -3.69999999999999999e-199 or -6.09999999999999957e-277 < c < -6.5999999999999997e-295Initial program 84.5%
cancel-sign-sub84.5%
cancel-sign-sub-inv84.5%
*-commutative84.5%
*-commutative84.5%
remove-double-neg84.5%
*-commutative84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in i around inf 60.7%
*-commutative60.7%
sub-neg60.7%
mul-1-neg60.7%
remove-double-neg60.7%
+-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in b around 0 47.4%
associate-*r*47.4%
neg-mul-147.4%
Simplified47.4%
if -3.69999999999999999e-199 < c < -6.09999999999999957e-277Initial program 94.2%
cancel-sign-sub94.2%
cancel-sign-sub-inv94.2%
*-commutative94.2%
*-commutative94.2%
remove-double-neg94.2%
*-commutative94.2%
*-commutative94.2%
Simplified94.2%
Taylor expanded in j around 0 81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in c around inf 67.6%
Taylor expanded in y around inf 40.0%
associate-*r*40.2%
*-commutative40.2%
*-commutative40.2%
*-commutative40.2%
Simplified40.2%
if -6.5999999999999997e-295 < c < 3.3999999999999998e103Initial program 81.4%
cancel-sign-sub81.4%
cancel-sign-sub-inv81.4%
*-commutative81.4%
*-commutative81.4%
remove-double-neg81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in a around inf 45.5%
associate-*r*45.5%
neg-mul-145.5%
cancel-sign-sub45.5%
+-commutative45.5%
mul-1-neg45.5%
unsub-neg45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in b around inf 27.4%
associate-*r*33.7%
*-commutative33.7%
Simplified33.7%
Final simplification42.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= c -4.5e-14)
(* z (* b (- c)))
(if (<= c -3.3e-199)
t_1
(if (<= c -5.2e-276)
(* x (* y z))
(if (<= c -5.2e-295)
t_1
(if (<= c 5.6e+101) (* b (* a i)) (* (* z c) (- b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (c <= -4.5e-14) {
tmp = z * (b * -c);
} else if (c <= -3.3e-199) {
tmp = t_1;
} else if (c <= -5.2e-276) {
tmp = x * (y * z);
} else if (c <= -5.2e-295) {
tmp = t_1;
} else if (c <= 5.6e+101) {
tmp = b * (a * i);
} else {
tmp = (z * c) * -b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y * -j)
if (c <= (-4.5d-14)) then
tmp = z * (b * -c)
else if (c <= (-3.3d-199)) then
tmp = t_1
else if (c <= (-5.2d-276)) then
tmp = x * (y * z)
else if (c <= (-5.2d-295)) then
tmp = t_1
else if (c <= 5.6d+101) then
tmp = b * (a * i)
else
tmp = (z * c) * -b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (c <= -4.5e-14) {
tmp = z * (b * -c);
} else if (c <= -3.3e-199) {
tmp = t_1;
} else if (c <= -5.2e-276) {
tmp = x * (y * z);
} else if (c <= -5.2e-295) {
tmp = t_1;
} else if (c <= 5.6e+101) {
tmp = b * (a * i);
} else {
tmp = (z * c) * -b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if c <= -4.5e-14: tmp = z * (b * -c) elif c <= -3.3e-199: tmp = t_1 elif c <= -5.2e-276: tmp = x * (y * z) elif c <= -5.2e-295: tmp = t_1 elif c <= 5.6e+101: tmp = b * (a * i) else: tmp = (z * c) * -b return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (c <= -4.5e-14) tmp = Float64(z * Float64(b * Float64(-c))); elseif (c <= -3.3e-199) tmp = t_1; elseif (c <= -5.2e-276) tmp = Float64(x * Float64(y * z)); elseif (c <= -5.2e-295) tmp = t_1; elseif (c <= 5.6e+101) tmp = Float64(b * Float64(a * i)); else tmp = Float64(Float64(z * c) * Float64(-b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (c <= -4.5e-14) tmp = z * (b * -c); elseif (c <= -3.3e-199) tmp = t_1; elseif (c <= -5.2e-276) tmp = x * (y * z); elseif (c <= -5.2e-295) tmp = t_1; elseif (c <= 5.6e+101) tmp = b * (a * i); else tmp = (z * c) * -b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.5e-14], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.3e-199], t$95$1, If[LessEqual[c, -5.2e-276], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -5.2e-295], t$95$1, If[LessEqual[c, 5.6e+101], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;c \leq -4.5 \cdot 10^{-14}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;c \leq -3.3 \cdot 10^{-199}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -5.2 \cdot 10^{-276}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq -5.2 \cdot 10^{-295}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 5.6 \cdot 10^{+101}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\end{array}
\end{array}
if c < -4.4999999999999998e-14Initial program 68.0%
cancel-sign-sub68.0%
cancel-sign-sub-inv68.0%
*-commutative68.0%
*-commutative68.0%
remove-double-neg68.0%
*-commutative68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in z around inf 56.7%
Taylor expanded in y around 0 48.1%
mul-1-neg48.1%
distribute-rgt-neg-in48.1%
Simplified48.1%
if -4.4999999999999998e-14 < c < -3.3000000000000002e-199 or -5.19999999999999969e-276 < c < -5.1999999999999997e-295Initial program 84.5%
cancel-sign-sub84.5%
cancel-sign-sub-inv84.5%
*-commutative84.5%
*-commutative84.5%
remove-double-neg84.5%
*-commutative84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in i around inf 60.7%
*-commutative60.7%
sub-neg60.7%
mul-1-neg60.7%
remove-double-neg60.7%
+-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in b around 0 47.4%
associate-*r*47.4%
neg-mul-147.4%
Simplified47.4%
if -3.3000000000000002e-199 < c < -5.19999999999999969e-276Initial program 94.2%
cancel-sign-sub94.2%
cancel-sign-sub-inv94.2%
*-commutative94.2%
*-commutative94.2%
remove-double-neg94.2%
*-commutative94.2%
*-commutative94.2%
Simplified94.2%
Taylor expanded in j around 0 81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in c around inf 67.6%
Taylor expanded in y around inf 40.0%
associate-*r*40.2%
*-commutative40.2%
*-commutative40.2%
*-commutative40.2%
Simplified40.2%
if -5.1999999999999997e-295 < c < 5.59999999999999962e101Initial program 81.4%
cancel-sign-sub81.4%
cancel-sign-sub-inv81.4%
*-commutative81.4%
*-commutative81.4%
remove-double-neg81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in a around inf 45.5%
associate-*r*45.5%
neg-mul-145.5%
cancel-sign-sub45.5%
+-commutative45.5%
mul-1-neg45.5%
unsub-neg45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in b around inf 27.4%
associate-*r*33.7%
*-commutative33.7%
Simplified33.7%
if 5.59999999999999962e101 < c Initial program 64.2%
cancel-sign-sub64.2%
cancel-sign-sub-inv64.2%
*-commutative64.2%
*-commutative64.2%
remove-double-neg64.2%
*-commutative64.2%
*-commutative64.2%
Simplified64.2%
Taylor expanded in b around inf 50.4%
Taylor expanded in a around 0 45.8%
neg-mul-145.8%
distribute-lft-neg-in45.8%
*-commutative45.8%
Simplified45.8%
Final simplification42.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))))
(if (<= c -3.1e-13)
t_1
(if (<= c 7.6e-233)
(* i (- (* a b) (* y j)))
(if (<= c 9.2e+20) (* a (- (* b i) (* x t))) 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) - (z * b));
double tmp;
if (c <= -3.1e-13) {
tmp = t_1;
} else if (c <= 7.6e-233) {
tmp = i * ((a * b) - (y * j));
} else if (c <= 9.2e+20) {
tmp = a * ((b * i) - (x * t));
} 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) - (z * b))
if (c <= (-3.1d-13)) then
tmp = t_1
else if (c <= 7.6d-233) then
tmp = i * ((a * b) - (y * j))
else if (c <= 9.2d+20) then
tmp = a * ((b * i) - (x * t))
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) - (z * b));
double tmp;
if (c <= -3.1e-13) {
tmp = t_1;
} else if (c <= 7.6e-233) {
tmp = i * ((a * b) - (y * j));
} else if (c <= 9.2e+20) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) tmp = 0 if c <= -3.1e-13: tmp = t_1 elif c <= 7.6e-233: tmp = i * ((a * b) - (y * j)) elif c <= 9.2e+20: tmp = a * ((b * i) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -3.1e-13) tmp = t_1; elseif (c <= 7.6e-233) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (c <= 9.2e+20) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); 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) - (z * b)); tmp = 0.0; if (c <= -3.1e-13) tmp = t_1; elseif (c <= 7.6e-233) tmp = i * ((a * b) - (y * j)); elseif (c <= 9.2e+20) tmp = a * ((b * i) - (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.1e-13], t$95$1, If[LessEqual[c, 7.6e-233], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.2e+20], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -3.1 \cdot 10^{-13}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 7.6 \cdot 10^{-233}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 9.2 \cdot 10^{+20}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -3.0999999999999999e-13 or 9.2e20 < c Initial program 68.2%
cancel-sign-sub68.2%
cancel-sign-sub-inv68.2%
*-commutative68.2%
*-commutative68.2%
remove-double-neg68.2%
*-commutative68.2%
*-commutative68.2%
Simplified68.2%
Taylor expanded in c around inf 64.3%
if -3.0999999999999999e-13 < c < 7.5999999999999999e-233Initial program 84.3%
cancel-sign-sub84.3%
cancel-sign-sub-inv84.3%
*-commutative84.3%
*-commutative84.3%
remove-double-neg84.3%
*-commutative84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in i around inf 53.2%
*-commutative53.2%
sub-neg53.2%
mul-1-neg53.2%
remove-double-neg53.2%
+-commutative53.2%
mul-1-neg53.2%
unsub-neg53.2%
*-commutative53.2%
Simplified53.2%
if 7.5999999999999999e-233 < c < 9.2e20Initial program 85.1%
cancel-sign-sub85.1%
cancel-sign-sub-inv85.1%
*-commutative85.1%
*-commutative85.1%
remove-double-neg85.1%
*-commutative85.1%
*-commutative85.1%
Simplified85.1%
Taylor expanded in a around inf 50.3%
associate-*r*50.3%
neg-mul-150.3%
cancel-sign-sub50.3%
+-commutative50.3%
mul-1-neg50.3%
unsub-neg50.3%
*-commutative50.3%
Simplified50.3%
Final simplification58.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j)))))
(if (<= j -1.02e+42)
t_1
(if (<= j 4e-190)
(* a (* t (- x)))
(if (<= j 8.5e+31) (* 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 = y * (i * -j);
double tmp;
if (j <= -1.02e+42) {
tmp = t_1;
} else if (j <= 4e-190) {
tmp = a * (t * -x);
} else if (j <= 8.5e+31) {
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 = y * (i * -j)
if (j <= (-1.02d+42)) then
tmp = t_1
else if (j <= 4d-190) then
tmp = a * (t * -x)
else if (j <= 8.5d+31) 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 = y * (i * -j);
double tmp;
if (j <= -1.02e+42) {
tmp = t_1;
} else if (j <= 4e-190) {
tmp = a * (t * -x);
} else if (j <= 8.5e+31) {
tmp = a * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (i * -j) tmp = 0 if j <= -1.02e+42: tmp = t_1 elif j <= 4e-190: tmp = a * (t * -x) elif j <= 8.5e+31: tmp = a * (b * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(i * Float64(-j))) tmp = 0.0 if (j <= -1.02e+42) tmp = t_1; elseif (j <= 4e-190) tmp = Float64(a * Float64(t * Float64(-x))); elseif (j <= 8.5e+31) 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 = y * (i * -j); tmp = 0.0; if (j <= -1.02e+42) tmp = t_1; elseif (j <= 4e-190) tmp = a * (t * -x); elseif (j <= 8.5e+31) 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[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.02e+42], t$95$1, If[LessEqual[j, 4e-190], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+31], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;j \leq -1.02 \cdot 10^{+42}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 4 \cdot 10^{-190}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+31}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -1.01999999999999996e42 or 8.49999999999999947e31 < j Initial program 75.5%
cancel-sign-sub75.5%
cancel-sign-sub-inv75.5%
*-commutative75.5%
*-commutative75.5%
remove-double-neg75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in i around inf 44.1%
*-commutative44.1%
sub-neg44.1%
mul-1-neg44.1%
remove-double-neg44.1%
+-commutative44.1%
mul-1-neg44.1%
unsub-neg44.1%
*-commutative44.1%
Simplified44.1%
Taylor expanded in b around 0 40.8%
mul-1-neg40.8%
associate-*r*36.9%
*-commutative36.9%
associate-*r*39.2%
distribute-rgt-neg-in39.2%
distribute-lft-neg-in39.2%
*-commutative39.2%
Simplified39.2%
if -1.01999999999999996e42 < j < 4.0000000000000001e-190Initial program 77.8%
cancel-sign-sub77.8%
cancel-sign-sub-inv77.8%
*-commutative77.8%
*-commutative77.8%
remove-double-neg77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in a around inf 43.3%
associate-*r*43.3%
neg-mul-143.3%
cancel-sign-sub43.3%
+-commutative43.3%
mul-1-neg43.3%
unsub-neg43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in b around 0 28.6%
mul-1-neg28.6%
distribute-lft-neg-out28.6%
*-commutative28.6%
Simplified28.6%
if 4.0000000000000001e-190 < j < 8.49999999999999947e31Initial program 76.2%
cancel-sign-sub76.2%
cancel-sign-sub-inv76.2%
*-commutative76.2%
*-commutative76.2%
remove-double-neg76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in a around inf 57.7%
associate-*r*57.7%
neg-mul-157.7%
cancel-sign-sub57.7%
+-commutative57.7%
mul-1-neg57.7%
unsub-neg57.7%
*-commutative57.7%
Simplified57.7%
Taylor expanded in b around -inf 48.4%
Final simplification36.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -7e+76) (not (<= z 6.8e+66))) (* x (* y z)) (* i (* a b))))
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+76) || !(z <= 6.8e+66)) {
tmp = x * (y * z);
} else {
tmp = i * (a * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-7d+76)) .or. (.not. (z <= 6.8d+66))) then
tmp = x * (y * z)
else
tmp = i * (a * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -7e+76) || !(z <= 6.8e+66)) {
tmp = x * (y * z);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -7e+76) or not (z <= 6.8e+66): tmp = x * (y * z) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -7e+76) || !(z <= 6.8e+66)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -7e+76) || ~((z <= 6.8e+66))) tmp = x * (y * z); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -7e+76], N[Not[LessEqual[z, 6.8e+66]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+76} \lor \neg \left(z \leq 6.8 \cdot 10^{+66}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if z < -7.00000000000000001e76 or 6.8000000000000006e66 < z Initial program 67.3%
cancel-sign-sub67.3%
cancel-sign-sub-inv67.3%
*-commutative67.3%
*-commutative67.3%
remove-double-neg67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in j around 0 67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in c around inf 69.8%
Taylor expanded in y around inf 37.7%
associate-*r*37.7%
*-commutative37.7%
*-commutative37.7%
*-commutative37.7%
Simplified37.7%
if -7.00000000000000001e76 < z < 6.8000000000000006e66Initial program 82.1%
cancel-sign-sub82.1%
cancel-sign-sub-inv82.1%
*-commutative82.1%
*-commutative82.1%
remove-double-neg82.1%
*-commutative82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in a around inf 41.0%
associate-*r*41.0%
neg-mul-141.0%
cancel-sign-sub41.0%
+-commutative41.0%
mul-1-neg41.0%
unsub-neg41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in b around inf 26.0%
Final simplification30.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -8e+76) (* x (* y z)) (if (<= z 4.2e+63) (* i (* a b)) (* y (* x z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -8e+76) {
tmp = x * (y * z);
} else if (z <= 4.2e+63) {
tmp = i * (a * b);
} else {
tmp = y * (x * 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 (z <= (-8d+76)) then
tmp = x * (y * z)
else if (z <= 4.2d+63) then
tmp = i * (a * b)
else
tmp = y * (x * 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 (z <= -8e+76) {
tmp = x * (y * z);
} else if (z <= 4.2e+63) {
tmp = i * (a * b);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -8e+76: tmp = x * (y * z) elif z <= 4.2e+63: tmp = i * (a * b) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -8e+76) tmp = Float64(x * Float64(y * z)); elseif (z <= 4.2e+63) tmp = Float64(i * Float64(a * b)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -8e+76) tmp = x * (y * z); elseif (z <= 4.2e+63) tmp = i * (a * b); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -8e+76], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e+63], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{+76}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{+63}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -8.0000000000000004e76Initial program 75.8%
cancel-sign-sub75.8%
cancel-sign-sub-inv75.8%
*-commutative75.8%
*-commutative75.8%
remove-double-neg75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in j around 0 73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in c around inf 71.7%
Taylor expanded in y around inf 35.0%
associate-*r*37.0%
*-commutative37.0%
*-commutative37.0%
*-commutative37.0%
Simplified37.0%
if -8.0000000000000004e76 < z < 4.2000000000000004e63Initial program 82.1%
cancel-sign-sub82.1%
cancel-sign-sub-inv82.1%
*-commutative82.1%
*-commutative82.1%
remove-double-neg82.1%
*-commutative82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in a around inf 41.0%
associate-*r*41.0%
neg-mul-141.0%
cancel-sign-sub41.0%
+-commutative41.0%
mul-1-neg41.0%
unsub-neg41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in b around inf 26.0%
if 4.2000000000000004e63 < z Initial program 59.9%
cancel-sign-sub59.9%
cancel-sign-sub-inv59.9%
*-commutative59.9%
*-commutative59.9%
remove-double-neg59.9%
*-commutative59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in y around inf 49.4%
+-commutative49.4%
mul-1-neg49.4%
unsub-neg49.4%
Simplified49.4%
Taylor expanded in z around inf 40.1%
Final simplification30.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -8e+76) (* x (* y z)) (if (<= z 1.15e+66) (* b (* a i)) (* y (* x z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -8e+76) {
tmp = x * (y * z);
} else if (z <= 1.15e+66) {
tmp = b * (a * i);
} else {
tmp = y * (x * 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 (z <= (-8d+76)) then
tmp = x * (y * z)
else if (z <= 1.15d+66) then
tmp = b * (a * i)
else
tmp = y * (x * 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 (z <= -8e+76) {
tmp = x * (y * z);
} else if (z <= 1.15e+66) {
tmp = b * (a * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -8e+76: tmp = x * (y * z) elif z <= 1.15e+66: tmp = b * (a * i) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -8e+76) tmp = Float64(x * Float64(y * z)); elseif (z <= 1.15e+66) tmp = Float64(b * Float64(a * i)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -8e+76) tmp = x * (y * z); elseif (z <= 1.15e+66) tmp = b * (a * i); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -8e+76], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.15e+66], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{+76}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{+66}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -8.0000000000000004e76Initial program 75.8%
cancel-sign-sub75.8%
cancel-sign-sub-inv75.8%
*-commutative75.8%
*-commutative75.8%
remove-double-neg75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in j around 0 73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in c around inf 71.7%
Taylor expanded in y around inf 35.0%
associate-*r*37.0%
*-commutative37.0%
*-commutative37.0%
*-commutative37.0%
Simplified37.0%
if -8.0000000000000004e76 < z < 1.15e66Initial program 82.1%
cancel-sign-sub82.1%
cancel-sign-sub-inv82.1%
*-commutative82.1%
*-commutative82.1%
remove-double-neg82.1%
*-commutative82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in a around inf 41.0%
associate-*r*41.0%
neg-mul-141.0%
cancel-sign-sub41.0%
+-commutative41.0%
mul-1-neg41.0%
unsub-neg41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in b around inf 26.0%
associate-*r*26.1%
*-commutative26.1%
Simplified26.1%
if 1.15e66 < z Initial program 59.9%
cancel-sign-sub59.9%
cancel-sign-sub-inv59.9%
*-commutative59.9%
*-commutative59.9%
remove-double-neg59.9%
*-commutative59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in y around inf 49.4%
+-commutative49.4%
mul-1-neg49.4%
unsub-neg49.4%
Simplified49.4%
Taylor expanded in z around inf 40.1%
Final simplification30.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -9e+15) (* a (* t (- x))) (if (<= a 4.7e+157) (* x (* y z)) (* i (* a b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -9e+15) {
tmp = a * (t * -x);
} else if (a <= 4.7e+157) {
tmp = x * (y * z);
} else {
tmp = i * (a * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-9d+15)) then
tmp = a * (t * -x)
else if (a <= 4.7d+157) then
tmp = x * (y * z)
else
tmp = i * (a * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -9e+15) {
tmp = a * (t * -x);
} else if (a <= 4.7e+157) {
tmp = x * (y * z);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -9e+15: tmp = a * (t * -x) elif a <= 4.7e+157: tmp = x * (y * z) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -9e+15) tmp = Float64(a * Float64(t * Float64(-x))); elseif (a <= 4.7e+157) tmp = Float64(x * Float64(y * z)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -9e+15) tmp = a * (t * -x); elseif (a <= 4.7e+157) tmp = x * (y * z); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -9e+15], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.7e+157], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9 \cdot 10^{+15}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;a \leq 4.7 \cdot 10^{+157}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if a < -9e15Initial program 73.5%
cancel-sign-sub73.5%
cancel-sign-sub-inv73.5%
*-commutative73.5%
*-commutative73.5%
remove-double-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in a around inf 67.3%
associate-*r*67.3%
neg-mul-167.3%
cancel-sign-sub67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in b around 0 44.2%
mul-1-neg44.2%
distribute-lft-neg-out44.2%
*-commutative44.2%
Simplified44.2%
if -9e15 < a < 4.7000000000000003e157Initial program 81.5%
cancel-sign-sub81.5%
cancel-sign-sub-inv81.5%
*-commutative81.5%
*-commutative81.5%
remove-double-neg81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in j around 0 54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in c around inf 46.5%
Taylor expanded in y around inf 24.4%
associate-*r*24.9%
*-commutative24.9%
*-commutative24.9%
*-commutative24.9%
Simplified24.9%
if 4.7000000000000003e157 < a Initial program 53.4%
cancel-sign-sub53.4%
cancel-sign-sub-inv53.4%
*-commutative53.4%
*-commutative53.4%
remove-double-neg53.4%
*-commutative53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in a around inf 70.6%
associate-*r*70.6%
neg-mul-170.6%
cancel-sign-sub70.6%
+-commutative70.6%
mul-1-neg70.6%
unsub-neg70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in b around inf 51.4%
Final simplification32.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t 7.8e+105) (* a (* b i)) (* a (* x t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= 7.8e+105) {
tmp = a * (b * i);
} else {
tmp = a * (x * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= 7.8d+105) then
tmp = a * (b * i)
else
tmp = a * (x * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= 7.8e+105) {
tmp = a * (b * i);
} else {
tmp = a * (x * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= 7.8e+105: tmp = a * (b * i) else: tmp = a * (x * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= 7.8e+105) tmp = Float64(a * Float64(b * i)); else tmp = Float64(a * Float64(x * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= 7.8e+105) tmp = a * (b * i); else tmp = a * (x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, 7.8e+105], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 7.8 \cdot 10^{+105}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if t < 7.79999999999999957e105Initial program 77.7%
cancel-sign-sub77.7%
cancel-sign-sub-inv77.7%
*-commutative77.7%
*-commutative77.7%
remove-double-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in a around inf 35.8%
associate-*r*35.8%
neg-mul-135.8%
cancel-sign-sub35.8%
+-commutative35.8%
mul-1-neg35.8%
unsub-neg35.8%
*-commutative35.8%
Simplified35.8%
Taylor expanded in b around -inf 21.8%
if 7.79999999999999957e105 < t Initial program 69.3%
cancel-sign-sub69.3%
cancel-sign-sub-inv69.3%
*-commutative69.3%
*-commutative69.3%
remove-double-neg69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in a around inf 27.8%
associate-*r*27.8%
neg-mul-127.8%
cancel-sign-sub27.8%
+-commutative27.8%
mul-1-neg27.8%
unsub-neg27.8%
*-commutative27.8%
Simplified27.8%
Taylor expanded in b around 0 20.3%
mul-1-neg20.3%
distribute-lft-neg-out20.3%
*-commutative20.3%
Simplified20.3%
expm1-log1p-u8.7%
expm1-udef8.3%
*-commutative8.3%
add-sqr-sqrt0.0%
sqrt-unprod12.1%
sqr-neg12.1%
sqrt-unprod6.9%
add-sqr-sqrt6.9%
Applied egg-rr6.9%
expm1-def7.0%
expm1-log1p26.9%
Simplified26.9%
Final simplification22.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t 3.6e+106) (* i (* a b)) (* a (* x t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= 3.6e+106) {
tmp = i * (a * b);
} else {
tmp = a * (x * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= 3.6d+106) then
tmp = i * (a * b)
else
tmp = a * (x * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= 3.6e+106) {
tmp = i * (a * b);
} else {
tmp = a * (x * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= 3.6e+106: tmp = i * (a * b) else: tmp = a * (x * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= 3.6e+106) tmp = Float64(i * Float64(a * b)); else tmp = Float64(a * Float64(x * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= 3.6e+106) tmp = i * (a * b); else tmp = a * (x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, 3.6e+106], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.6 \cdot 10^{+106}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if t < 3.6000000000000001e106Initial program 77.7%
cancel-sign-sub77.7%
cancel-sign-sub-inv77.7%
*-commutative77.7%
*-commutative77.7%
remove-double-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in a around inf 35.8%
associate-*r*35.8%
neg-mul-135.8%
cancel-sign-sub35.8%
+-commutative35.8%
mul-1-neg35.8%
unsub-neg35.8%
*-commutative35.8%
Simplified35.8%
Taylor expanded in b around inf 22.2%
if 3.6000000000000001e106 < t Initial program 69.3%
cancel-sign-sub69.3%
cancel-sign-sub-inv69.3%
*-commutative69.3%
*-commutative69.3%
remove-double-neg69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in a around inf 27.8%
associate-*r*27.8%
neg-mul-127.8%
cancel-sign-sub27.8%
+-commutative27.8%
mul-1-neg27.8%
unsub-neg27.8%
*-commutative27.8%
Simplified27.8%
Taylor expanded in b around 0 20.3%
mul-1-neg20.3%
distribute-lft-neg-out20.3%
*-commutative20.3%
Simplified20.3%
expm1-log1p-u8.7%
expm1-udef8.3%
*-commutative8.3%
add-sqr-sqrt0.0%
sqrt-unprod12.1%
sqr-neg12.1%
sqrt-unprod6.9%
add-sqr-sqrt6.9%
Applied egg-rr6.9%
expm1-def7.0%
expm1-log1p26.9%
Simplified26.9%
Final simplification22.9%
(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 76.5%
cancel-sign-sub76.5%
cancel-sign-sub-inv76.5%
*-commutative76.5%
*-commutative76.5%
remove-double-neg76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in a around inf 34.7%
associate-*r*34.7%
neg-mul-134.7%
cancel-sign-sub34.7%
+-commutative34.7%
mul-1-neg34.7%
unsub-neg34.7%
*-commutative34.7%
Simplified34.7%
Taylor expanded in b around -inf 20.2%
Final simplification20.2%
(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 2023174
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))