
(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 29 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 (* j (- (* t c) (* y i)))))
(if (<= (+ (- t_1 (* x (- (* t a) (* y z)))) t_2) INFINITY)
(+ t_2 (+ (- (* x (* y z)) (* x (* t a))) t_1))
(* i (- (* a b) (* y j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (((t_1 - (x * ((t * a) - (y * z)))) + t_2) <= ((double) INFINITY)) {
tmp = t_2 + (((x * (y * z)) - (x * (t * a))) + t_1);
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (((t_1 - (x * ((t * a) - (y * z)))) + t_2) <= Double.POSITIVE_INFINITY) {
tmp = t_2 + (((x * (y * z)) - (x * (t * a))) + t_1);
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if ((t_1 - (x * ((t * a) - (y * z)))) + t_2) <= math.inf: tmp = t_2 + (((x * (y * z)) - (x * (t * a))) + t_1) else: tmp = i * ((a * b) - (y * j)) 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(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (Float64(Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) + t_2) <= Inf) tmp = Float64(t_2 + Float64(Float64(Float64(x * Float64(y * z)) - Float64(x * Float64(t * a))) + t_1)); else tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (((t_1 - (x * ((t * a) - (y * z)))) + t_2) <= Inf) tmp = t_2 + (((x * (y * z)) - (x * (t * a))) + t_1); else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], Infinity], N[(t$95$2 + N[(N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;\left(t_1 - x \cdot \left(t \cdot a - y \cdot z\right)\right) + t_2 \leq \infty:\\
\;\;\;\;t_2 + \left(\left(x \cdot \left(y \cdot z\right) - x \cdot \left(t \cdot a\right)\right) + t_1\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.7%
*-commutative91.7%
*-commutative91.7%
*-commutative91.7%
*-commutative91.7%
Simplified91.7%
cancel-sign-sub-inv91.7%
distribute-rgt-in91.7%
*-commutative91.7%
Applied egg-rr91.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%
*-commutative0.0%
*-commutative0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in i around inf 57.9%
distribute-lft-out--57.9%
*-commutative57.9%
Simplified57.9%
Taylor expanded in i around 0 57.9%
associate-*r*57.9%
*-commutative57.9%
*-commutative57.9%
*-commutative57.9%
associate-*r*57.9%
mul-1-neg57.9%
sub-neg57.9%
distribute-rgt-neg-out57.9%
+-commutative57.9%
distribute-neg-in57.9%
distribute-rgt-neg-out57.9%
remove-double-neg57.9%
unsub-neg57.9%
*-commutative57.9%
Simplified57.9%
Final simplification86.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* b (- (* a i) (* z c))) (* x (- (* t a) (* y z))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* i (- (* a b) (* y j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = i * ((a * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot \left(a \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.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%
*-commutative0.0%
*-commutative0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in i around inf 57.9%
distribute-lft-out--57.9%
*-commutative57.9%
Simplified57.9%
Taylor expanded in i around 0 57.9%
associate-*r*57.9%
*-commutative57.9%
*-commutative57.9%
*-commutative57.9%
associate-*r*57.9%
mul-1-neg57.9%
sub-neg57.9%
distribute-rgt-neg-out57.9%
+-commutative57.9%
distribute-neg-in57.9%
distribute-rgt-neg-out57.9%
remove-double-neg57.9%
unsub-neg57.9%
*-commutative57.9%
Simplified57.9%
Final simplification86.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* i (* a b))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (- t_2 (* i (* y j)))))
(if (<= x -4.6e+160)
t_2
(if (<= x -1.18e-30)
t_3
(if (<= x 1.3e-169)
t_1
(if (<= x 6.2e-140)
(* z (- (* x y) (* b c)))
(if (<= x 2.6e+96) 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 = (j * ((t * c) - (y * i))) + (i * (a * b));
double t_2 = x * ((y * z) - (t * a));
double t_3 = t_2 - (i * (y * j));
double tmp;
if (x <= -4.6e+160) {
tmp = t_2;
} else if (x <= -1.18e-30) {
tmp = t_3;
} else if (x <= 1.3e-169) {
tmp = t_1;
} else if (x <= 6.2e-140) {
tmp = z * ((x * y) - (b * c));
} else if (x <= 2.6e+96) {
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 = (j * ((t * c) - (y * i))) + (i * (a * b))
t_2 = x * ((y * z) - (t * a))
t_3 = t_2 - (i * (y * j))
if (x <= (-4.6d+160)) then
tmp = t_2
else if (x <= (-1.18d-30)) then
tmp = t_3
else if (x <= 1.3d-169) then
tmp = t_1
else if (x <= 6.2d-140) then
tmp = z * ((x * y) - (b * c))
else if (x <= 2.6d+96) 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 = (j * ((t * c) - (y * i))) + (i * (a * b));
double t_2 = x * ((y * z) - (t * a));
double t_3 = t_2 - (i * (y * j));
double tmp;
if (x <= -4.6e+160) {
tmp = t_2;
} else if (x <= -1.18e-30) {
tmp = t_3;
} else if (x <= 1.3e-169) {
tmp = t_1;
} else if (x <= 6.2e-140) {
tmp = z * ((x * y) - (b * c));
} else if (x <= 2.6e+96) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (i * (a * b)) t_2 = x * ((y * z) - (t * a)) t_3 = t_2 - (i * (y * j)) tmp = 0 if x <= -4.6e+160: tmp = t_2 elif x <= -1.18e-30: tmp = t_3 elif x <= 1.3e-169: tmp = t_1 elif x <= 6.2e-140: tmp = z * ((x * y) - (b * c)) elif x <= 2.6e+96: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(t_2 - Float64(i * Float64(y * j))) tmp = 0.0 if (x <= -4.6e+160) tmp = t_2; elseif (x <= -1.18e-30) tmp = t_3; elseif (x <= 1.3e-169) tmp = t_1; elseif (x <= 6.2e-140) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (x <= 2.6e+96) 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 = (j * ((t * c) - (y * i))) + (i * (a * b)); t_2 = x * ((y * z) - (t * a)); t_3 = t_2 - (i * (y * j)); tmp = 0.0; if (x <= -4.6e+160) tmp = t_2; elseif (x <= -1.18e-30) tmp = t_3; elseif (x <= 1.3e-169) tmp = t_1; elseif (x <= 6.2e-140) tmp = z * ((x * y) - (b * c)); elseif (x <= 2.6e+96) 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[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.6e+160], t$95$2, If[LessEqual[x, -1.18e-30], t$95$3, If[LessEqual[x, 1.3e-169], t$95$1, If[LessEqual[x, 6.2e-140], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.6e+96], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := t_2 - i \cdot \left(y \cdot j\right)\\
\mathbf{if}\;x \leq -4.6 \cdot 10^{+160}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.18 \cdot 10^{-30}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{-140}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{+96}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -4.59999999999999975e160Initial program 68.2%
*-commutative68.2%
*-commutative68.2%
*-commutative68.2%
*-commutative68.2%
Simplified68.2%
Taylor expanded in b around 0 68.3%
cancel-sign-sub-inv68.3%
distribute-rgt-in68.3%
*-commutative68.3%
Applied egg-rr68.3%
Taylor expanded in j around 0 71.4%
Simplified76.9%
if -4.59999999999999975e160 < x < -1.18000000000000006e-30 or 2.6e96 < x Initial program 88.6%
*-commutative88.6%
*-commutative88.6%
*-commutative88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in b around 0 77.9%
Taylor expanded in c around 0 72.2%
+-commutative72.2%
cancel-sign-sub-inv72.2%
*-commutative72.2%
distribute-rgt-neg-out72.2%
sub-neg72.2%
mul-1-neg72.2%
unsub-neg72.2%
Simplified72.2%
if -1.18000000000000006e-30 < x < 1.30000000000000007e-169 or 6.1999999999999998e-140 < x < 2.6e96Initial program 73.1%
*-commutative73.1%
*-commutative73.1%
*-commutative73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in i around inf 71.3%
associate-*r*70.7%
*-commutative70.7%
Simplified70.7%
if 1.30000000000000007e-169 < x < 6.1999999999999998e-140Initial program 72.8%
*-commutative72.8%
*-commutative72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in z around inf 67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Final simplification72.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1550000000.0)
(- t_1 (* x (- (* t a) (* y z))))
(if (<= b 9e-130)
(+ (* j (- (* t c) (* y i))) (- (* x (* y z)) (* x (* t a))))
(+ (* t (- (* c j) (* x a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1550000000.0) {
tmp = t_1 - (x * ((t * a) - (y * z)));
} else if (b <= 9e-130) {
tmp = (j * ((t * c) - (y * i))) + ((x * (y * z)) - (x * (t * a)));
} else {
tmp = (t * ((c * j) - (x * a))) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-1550000000.0d0)) then
tmp = t_1 - (x * ((t * a) - (y * z)))
else if (b <= 9d-130) then
tmp = (j * ((t * c) - (y * i))) + ((x * (y * z)) - (x * (t * a)))
else
tmp = (t * ((c * j) - (x * a))) + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1550000000.0) {
tmp = t_1 - (x * ((t * a) - (y * z)));
} else if (b <= 9e-130) {
tmp = (j * ((t * c) - (y * i))) + ((x * (y * z)) - (x * (t * a)));
} else {
tmp = (t * ((c * j) - (x * a))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1550000000.0: tmp = t_1 - (x * ((t * a) - (y * z))) elif b <= 9e-130: tmp = (j * ((t * c) - (y * i))) + ((x * (y * z)) - (x * (t * a))) else: tmp = (t * ((c * j) - (x * a))) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1550000000.0) tmp = Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); elseif (b <= 9e-130) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(Float64(x * Float64(y * z)) - Float64(x * Float64(t * a)))); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1550000000.0) tmp = t_1 - (x * ((t * a) - (y * z))); elseif (b <= 9e-130) tmp = (j * ((t * c) - (y * i))) + ((x * (y * z)) - (x * (t * a))); else tmp = (t * ((c * j) - (x * a))) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1550000000.0], N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e-130], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1550000000:\\
\;\;\;\;t_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-130}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z\right) - x \cdot \left(t \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + t_1\\
\end{array}
\end{array}
if b < -1.55e9Initial program 83.2%
*-commutative83.2%
*-commutative83.2%
*-commutative83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in j around 0 78.6%
if -1.55e9 < b < 9e-130Initial program 71.2%
*-commutative71.2%
*-commutative71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in b around 0 77.3%
cancel-sign-sub-inv77.3%
distribute-rgt-in77.3%
*-commutative77.3%
Applied egg-rr77.3%
if 9e-130 < b Initial program 82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in y around 0 75.8%
*-commutative75.8%
*-commutative75.8%
cancel-sign-sub-inv75.8%
*-commutative75.8%
associate-*r*72.0%
associate-*l*72.0%
associate-*r*71.8%
distribute-rgt-in71.8%
+-commutative71.8%
mul-1-neg71.8%
unsub-neg71.8%
*-commutative71.8%
*-commutative71.8%
neg-sub071.8%
associate--r-71.8%
neg-sub071.8%
+-commutative71.8%
sub-neg71.8%
Simplified71.8%
Final simplification76.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* i (* a b))))
(t_2 (* x (- (* y z) (* t a)))))
(if (<= i -6e-109)
t_1
(if (<= i 1.1e-81)
(- t_2 (* b (* z c)))
(if (or (<= i 8.2e+15) (not (<= i 1.45e+61)))
t_1
(- t_2 (* i (* y j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (i * (a * b));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (i <= -6e-109) {
tmp = t_1;
} else if (i <= 1.1e-81) {
tmp = t_2 - (b * (z * c));
} else if ((i <= 8.2e+15) || !(i <= 1.45e+61)) {
tmp = t_1;
} else {
tmp = t_2 - (i * (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (i * (a * b))
t_2 = x * ((y * z) - (t * a))
if (i <= (-6d-109)) then
tmp = t_1
else if (i <= 1.1d-81) then
tmp = t_2 - (b * (z * c))
else if ((i <= 8.2d+15) .or. (.not. (i <= 1.45d+61))) then
tmp = t_1
else
tmp = t_2 - (i * (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (i * (a * b));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (i <= -6e-109) {
tmp = t_1;
} else if (i <= 1.1e-81) {
tmp = t_2 - (b * (z * c));
} else if ((i <= 8.2e+15) || !(i <= 1.45e+61)) {
tmp = t_1;
} else {
tmp = t_2 - (i * (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (i * (a * b)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if i <= -6e-109: tmp = t_1 elif i <= 1.1e-81: tmp = t_2 - (b * (z * c)) elif (i <= 8.2e+15) or not (i <= 1.45e+61): tmp = t_1 else: tmp = t_2 - (i * (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (i <= -6e-109) tmp = t_1; elseif (i <= 1.1e-81) tmp = Float64(t_2 - Float64(b * Float64(z * c))); elseif ((i <= 8.2e+15) || !(i <= 1.45e+61)) tmp = t_1; else tmp = Float64(t_2 - Float64(i * Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (i * (a * b)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (i <= -6e-109) tmp = t_1; elseif (i <= 1.1e-81) tmp = t_2 - (b * (z * c)); elseif ((i <= 8.2e+15) || ~((i <= 1.45e+61))) tmp = t_1; else tmp = t_2 - (i * (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -6e-109], t$95$1, If[LessEqual[i, 1.1e-81], N[(t$95$2 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[i, 8.2e+15], N[Not[LessEqual[i, 1.45e+61]], $MachinePrecision]], t$95$1, N[(t$95$2 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;i \leq -6 \cdot 10^{-109}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.1 \cdot 10^{-81}:\\
\;\;\;\;t_2 - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;i \leq 8.2 \cdot 10^{+15} \lor \neg \left(i \leq 1.45 \cdot 10^{+61}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2 - i \cdot \left(y \cdot j\right)\\
\end{array}
\end{array}
if i < -6.00000000000000043e-109 or 1.1e-81 < i < 8.2e15 or 1.45e61 < i Initial program 72.7%
*-commutative72.7%
*-commutative72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in i around inf 67.3%
associate-*r*70.0%
*-commutative70.0%
Simplified70.0%
if -6.00000000000000043e-109 < i < 1.1e-81Initial program 83.4%
*-commutative83.4%
*-commutative83.4%
*-commutative83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in j around 0 76.1%
Taylor expanded in i around 0 71.7%
*-commutative71.7%
Simplified71.7%
if 8.2e15 < i < 1.45e61Initial program 78.8%
*-commutative78.8%
*-commutative78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in b around 0 78.8%
Taylor expanded in c around 0 78.8%
+-commutative78.8%
cancel-sign-sub-inv78.8%
*-commutative78.8%
distribute-rgt-neg-out78.8%
sub-neg78.8%
mul-1-neg78.8%
unsub-neg78.8%
Simplified78.8%
Final simplification71.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* i (* a b)))))
(if (<= x -85000.0)
(* x (- (* y z) (* t a)))
(if (<= x 1.6e-169)
t_1
(if (<= x 1.85e-140)
(* z (- (* x y) (* b c)))
(if (<= x 4.2e+115) t_1 (- (* x (* y z)) (* a (* x t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (i * (a * b));
double tmp;
if (x <= -85000.0) {
tmp = x * ((y * z) - (t * a));
} else if (x <= 1.6e-169) {
tmp = t_1;
} else if (x <= 1.85e-140) {
tmp = z * ((x * y) - (b * c));
} else if (x <= 4.2e+115) {
tmp = t_1;
} else {
tmp = (x * (y * z)) - (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) :: t_1
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (i * (a * b))
if (x <= (-85000.0d0)) then
tmp = x * ((y * z) - (t * a))
else if (x <= 1.6d-169) then
tmp = t_1
else if (x <= 1.85d-140) then
tmp = z * ((x * y) - (b * c))
else if (x <= 4.2d+115) then
tmp = t_1
else
tmp = (x * (y * z)) - (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 t_1 = (j * ((t * c) - (y * i))) + (i * (a * b));
double tmp;
if (x <= -85000.0) {
tmp = x * ((y * z) - (t * a));
} else if (x <= 1.6e-169) {
tmp = t_1;
} else if (x <= 1.85e-140) {
tmp = z * ((x * y) - (b * c));
} else if (x <= 4.2e+115) {
tmp = t_1;
} else {
tmp = (x * (y * z)) - (a * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (i * (a * b)) tmp = 0 if x <= -85000.0: tmp = x * ((y * z) - (t * a)) elif x <= 1.6e-169: tmp = t_1 elif x <= 1.85e-140: tmp = z * ((x * y) - (b * c)) elif x <= 4.2e+115: tmp = t_1 else: tmp = (x * (y * z)) - (a * (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))) tmp = 0.0 if (x <= -85000.0) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (x <= 1.6e-169) tmp = t_1; elseif (x <= 1.85e-140) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (x <= 4.2e+115) tmp = t_1; else tmp = Float64(Float64(x * Float64(y * z)) - Float64(a * Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (i * (a * b)); tmp = 0.0; if (x <= -85000.0) tmp = x * ((y * z) - (t * a)); elseif (x <= 1.6e-169) tmp = t_1; elseif (x <= 1.85e-140) tmp = z * ((x * y) - (b * c)); elseif (x <= 4.2e+115) tmp = t_1; else tmp = (x * (y * z)) - (a * (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -85000.0], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.6e-169], t$95$1, If[LessEqual[x, 1.85e-140], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.2e+115], t$95$1, N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;x \leq -85000:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{-140}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{+115}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) - a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if x < -85000Initial program 77.2%
*-commutative77.2%
*-commutative77.2%
*-commutative77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in b around 0 73.8%
cancel-sign-sub-inv73.8%
distribute-rgt-in73.8%
*-commutative73.8%
Applied egg-rr73.8%
Taylor expanded in j around 0 68.9%
Simplified72.0%
if -85000 < x < 1.59999999999999997e-169 or 1.84999999999999989e-140 < x < 4.20000000000000007e115Initial program 74.0%
*-commutative74.0%
*-commutative74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in i around inf 68.3%
associate-*r*68.4%
*-commutative68.4%
Simplified68.4%
if 1.59999999999999997e-169 < x < 1.84999999999999989e-140Initial program 72.8%
*-commutative72.8%
*-commutative72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in z around inf 67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
if 4.20000000000000007e115 < x Initial program 90.1%
*-commutative90.1%
*-commutative90.1%
*-commutative90.1%
*-commutative90.1%
Simplified90.1%
Taylor expanded in b around 0 81.2%
cancel-sign-sub-inv81.2%
distribute-rgt-in81.2%
*-commutative81.2%
Applied egg-rr81.2%
Taylor expanded in j around 0 74.0%
Final simplification70.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -6.7e+44) (not (<= b 1.2e+100))) (* b (- (* a i) (* z c))) (- (* j (- (* t c) (* y i))) (* x (- (* t a) (* y z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -6.7e+44) || !(b <= 1.2e+100)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-6.7d+44)) .or. (.not. (b <= 1.2d+100))) then
tmp = b * ((a * i) - (z * c))
else
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -6.7e+44) || !(b <= 1.2e+100)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -6.7e+44) or not (b <= 1.2e+100): tmp = b * ((a * i) - (z * c)) else: tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -6.7e+44) || !(b <= 1.2e+100)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -6.7e+44) || ~((b <= 1.2e+100))) tmp = b * ((a * i) - (z * c)); else tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -6.7e+44], N[Not[LessEqual[b, 1.2e+100]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.7 \cdot 10^{+44} \lor \neg \left(b \leq 1.2 \cdot 10^{+100}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\end{array}
\end{array}
if b < -6.70000000000000035e44 or 1.20000000000000006e100 < b Initial program 80.6%
*-commutative80.6%
*-commutative80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in b around inf 69.4%
*-commutative69.4%
Simplified69.4%
if -6.70000000000000035e44 < b < 1.20000000000000006e100Initial program 75.5%
*-commutative75.5%
*-commutative75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in b around 0 74.0%
Final simplification72.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -6.5e+44) (not (<= b 3.45e-130))) (+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c)))) (- (* j (- (* t c) (* y i))) (* x (- (* t a) (* y z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -6.5e+44) || !(b <= 3.45e-130)) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-6.5d+44)) .or. (.not. (b <= 3.45d-130))) then
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
else
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -6.5e+44) || !(b <= 3.45e-130)) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -6.5e+44) or not (b <= 3.45e-130): tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) else: tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -6.5e+44) || !(b <= 3.45e-130)) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -6.5e+44) || ~((b <= 3.45e-130))) tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); else tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -6.5e+44], N[Not[LessEqual[b, 3.45e-130]], $MachinePrecision]], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.5 \cdot 10^{+44} \lor \neg \left(b \leq 3.45 \cdot 10^{-130}\right):\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\end{array}
\end{array}
if b < -6.50000000000000018e44 or 3.45000000000000018e-130 < b Initial program 82.2%
*-commutative82.2%
*-commutative82.2%
*-commutative82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in y around 0 75.2%
*-commutative75.2%
*-commutative75.2%
cancel-sign-sub-inv75.2%
*-commutative75.2%
associate-*r*72.8%
associate-*l*72.8%
associate-*r*73.0%
distribute-rgt-in73.8%
+-commutative73.8%
mul-1-neg73.8%
unsub-neg73.8%
*-commutative73.8%
*-commutative73.8%
neg-sub073.8%
associate--r-73.8%
neg-sub073.8%
+-commutative73.8%
sub-neg73.8%
Simplified73.8%
if -6.50000000000000018e44 < b < 3.45000000000000018e-130Initial program 72.6%
*-commutative72.6%
*-commutative72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around 0 75.9%
Final simplification74.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* t a) (* y z)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -14500000000.0)
(- t_2 t_1)
(if (<= b 9.2e-130)
(- (* j (- (* t c) (* y i))) t_1)
(+ (* t (- (* c j) (* x a))) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((t * a) - (y * z));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -14500000000.0) {
tmp = t_2 - t_1;
} else if (b <= 9.2e-130) {
tmp = (j * ((t * c) - (y * i))) - t_1;
} else {
tmp = (t * ((c * j) - (x * a))) + 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 * ((t * a) - (y * z))
t_2 = b * ((a * i) - (z * c))
if (b <= (-14500000000.0d0)) then
tmp = t_2 - t_1
else if (b <= 9.2d-130) then
tmp = (j * ((t * c) - (y * i))) - t_1
else
tmp = (t * ((c * j) - (x * a))) + 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 * ((t * a) - (y * z));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -14500000000.0) {
tmp = t_2 - t_1;
} else if (b <= 9.2e-130) {
tmp = (j * ((t * c) - (y * i))) - t_1;
} else {
tmp = (t * ((c * j) - (x * a))) + t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((t * a) - (y * z)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -14500000000.0: tmp = t_2 - t_1 elif b <= 9.2e-130: tmp = (j * ((t * c) - (y * i))) - t_1 else: tmp = (t * ((c * j) - (x * a))) + t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(t * a) - Float64(y * z))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -14500000000.0) tmp = Float64(t_2 - t_1); elseif (b <= 9.2e-130) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - t_1); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((t * a) - (y * z)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -14500000000.0) tmp = t_2 - t_1; elseif (b <= 9.2e-130) tmp = (j * ((t * c) - (y * i))) - t_1; else tmp = (t * ((c * j) - (x * a))) + t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -14500000000.0], N[(t$95$2 - t$95$1), $MachinePrecision], If[LessEqual[b, 9.2e-130], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -14500000000:\\
\;\;\;\;t_2 - t_1\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{-130}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + t_2\\
\end{array}
\end{array}
if b < -1.45e10Initial program 83.2%
*-commutative83.2%
*-commutative83.2%
*-commutative83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in j around 0 78.6%
if -1.45e10 < b < 9.2000000000000005e-130Initial program 71.2%
*-commutative71.2%
*-commutative71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in b around 0 77.3%
if 9.2000000000000005e-130 < b Initial program 82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in y around 0 75.8%
*-commutative75.8%
*-commutative75.8%
cancel-sign-sub-inv75.8%
*-commutative75.8%
associate-*r*72.0%
associate-*l*72.0%
associate-*r*71.8%
distribute-rgt-in71.8%
+-commutative71.8%
mul-1-neg71.8%
unsub-neg71.8%
*-commutative71.8%
*-commutative71.8%
neg-sub071.8%
associate--r-71.8%
neg-sub071.8%
+-commutative71.8%
sub-neg71.8%
Simplified71.8%
Final simplification76.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* i (* a b)))))
(if (<= i -6e-107)
t_1
(if (<= i 1.6e-162)
(- (* x (- (* y z) (* t a))) (* b (* z c)))
(if (<= i 6.2e+61) (- (* y (- (* x z) (* i j))) (* a (* 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 = (j * ((t * c) - (y * i))) + (i * (a * b));
double tmp;
if (i <= -6e-107) {
tmp = t_1;
} else if (i <= 1.6e-162) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (i <= 6.2e+61) {
tmp = (y * ((x * z) - (i * j))) - (a * (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 = (j * ((t * c) - (y * i))) + (i * (a * b))
if (i <= (-6d-107)) then
tmp = t_1
else if (i <= 1.6d-162) then
tmp = (x * ((y * z) - (t * a))) - (b * (z * c))
else if (i <= 6.2d+61) then
tmp = (y * ((x * z) - (i * j))) - (a * (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 = (j * ((t * c) - (y * i))) + (i * (a * b));
double tmp;
if (i <= -6e-107) {
tmp = t_1;
} else if (i <= 1.6e-162) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (i <= 6.2e+61) {
tmp = (y * ((x * z) - (i * j))) - (a * (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (i * (a * b)) tmp = 0 if i <= -6e-107: tmp = t_1 elif i <= 1.6e-162: tmp = (x * ((y * z) - (t * a))) - (b * (z * c)) elif i <= 6.2e+61: tmp = (y * ((x * z) - (i * j))) - (a * (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))) tmp = 0.0 if (i <= -6e-107) tmp = t_1; elseif (i <= 1.6e-162) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))); elseif (i <= 6.2e+61) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(a * 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 = (j * ((t * c) - (y * i))) + (i * (a * b)); tmp = 0.0; if (i <= -6e-107) tmp = t_1; elseif (i <= 1.6e-162) tmp = (x * ((y * z) - (t * a))) - (b * (z * c)); elseif (i <= 6.2e+61) tmp = (y * ((x * z) - (i * j))) - (a * (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[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -6e-107], t$95$1, If[LessEqual[i, 1.6e-162], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.2e+61], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;i \leq -6 \cdot 10^{-107}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.6 \cdot 10^{-162}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;i \leq 6.2 \cdot 10^{+61}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -5.9999999999999994e-107 or 6.1999999999999998e61 < i Initial program 70.5%
*-commutative70.5%
*-commutative70.5%
*-commutative70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in i around inf 66.7%
associate-*r*69.9%
*-commutative69.9%
Simplified69.9%
if -5.9999999999999994e-107 < i < 1.59999999999999988e-162Initial program 86.4%
*-commutative86.4%
*-commutative86.4%
*-commutative86.4%
*-commutative86.4%
Simplified86.4%
Taylor expanded in j around 0 78.5%
Taylor expanded in i around 0 75.1%
*-commutative75.1%
Simplified75.1%
if 1.59999999999999988e-162 < i < 6.1999999999999998e61Initial program 78.1%
*-commutative78.1%
*-commutative78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in b around 0 66.5%
Taylor expanded in c around 0 54.3%
cancel-sign-sub-inv54.3%
*-commutative54.3%
distribute-lft-out54.3%
*-commutative54.3%
*-commutative54.3%
associate-*r*54.2%
distribute-lft-neg-out54.2%
unsub-neg54.2%
associate-+r-54.2%
Simplified67.5%
Final simplification71.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -5.5e-10)
t_1
(if (<= b -3.2e-130)
(* y (* i (- j)))
(if (<= b -2.2e-235)
(* z (* x y))
(if (<= b 1e-170)
(* i (* y (- j)))
(if (<= b 8000.0) (* t (* x (- a))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.5e-10) {
tmp = t_1;
} else if (b <= -3.2e-130) {
tmp = y * (i * -j);
} else if (b <= -2.2e-235) {
tmp = z * (x * y);
} else if (b <= 1e-170) {
tmp = i * (y * -j);
} else if (b <= 8000.0) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-5.5d-10)) then
tmp = t_1
else if (b <= (-3.2d-130)) then
tmp = y * (i * -j)
else if (b <= (-2.2d-235)) then
tmp = z * (x * y)
else if (b <= 1d-170) then
tmp = i * (y * -j)
else if (b <= 8000.0d0) then
tmp = t * (x * -a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.5e-10) {
tmp = t_1;
} else if (b <= -3.2e-130) {
tmp = y * (i * -j);
} else if (b <= -2.2e-235) {
tmp = z * (x * y);
} else if (b <= 1e-170) {
tmp = i * (y * -j);
} else if (b <= 8000.0) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -5.5e-10: tmp = t_1 elif b <= -3.2e-130: tmp = y * (i * -j) elif b <= -2.2e-235: tmp = z * (x * y) elif b <= 1e-170: tmp = i * (y * -j) elif b <= 8000.0: tmp = t * (x * -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.5e-10) tmp = t_1; elseif (b <= -3.2e-130) tmp = Float64(y * Float64(i * Float64(-j))); elseif (b <= -2.2e-235) tmp = Float64(z * Float64(x * y)); elseif (b <= 1e-170) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= 8000.0) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -5.5e-10) tmp = t_1; elseif (b <= -3.2e-130) tmp = y * (i * -j); elseif (b <= -2.2e-235) tmp = z * (x * y); elseif (b <= 1e-170) tmp = i * (y * -j); elseif (b <= 8000.0) tmp = t * (x * -a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.5e-10], t$95$1, If[LessEqual[b, -3.2e-130], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.2e-235], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e-170], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8000.0], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.5 \cdot 10^{-10}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3.2 \cdot 10^{-130}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{-235}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 10^{-170}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 8000:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -5.4999999999999996e-10 or 8e3 < b Initial program 83.0%
*-commutative83.0%
*-commutative83.0%
*-commutative83.0%
*-commutative83.0%
Simplified83.0%
Taylor expanded in b around inf 59.8%
*-commutative59.8%
Simplified59.8%
if -5.4999999999999996e-10 < b < -3.2e-130Initial program 72.4%
*-commutative72.4%
*-commutative72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in i around inf 55.8%
distribute-lft-out--55.8%
*-commutative55.8%
Simplified55.8%
Taylor expanded in j around inf 45.8%
*-commutative45.8%
associate-*r*45.8%
neg-mul-145.8%
*-commutative45.8%
associate-*l*49.1%
Simplified49.1%
if -3.2e-130 < b < -2.19999999999999984e-235Initial program 83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in j around 0 50.9%
Taylor expanded in y around inf 35.3%
associate-*r*46.1%
*-commutative46.1%
Simplified46.1%
if -2.19999999999999984e-235 < b < 9.99999999999999983e-171Initial program 65.2%
*-commutative65.2%
*-commutative65.2%
*-commutative65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in b around 0 72.8%
cancel-sign-sub-inv72.8%
distribute-rgt-in72.9%
*-commutative72.9%
Applied egg-rr72.9%
Taylor expanded in i around inf 40.2%
Simplified40.2%
if 9.99999999999999983e-171 < b < 8e3Initial program 76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in t around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
Simplified62.6%
Taylor expanded in j around 0 58.8%
Simplified58.8%
Final simplification53.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -2.55e+36)
t_2
(if (<= b -9.2e-292)
t_1
(if (<= b 4.8e-291)
(* t (- (* c j) (* x a)))
(if (<= b 9e-167)
t_1
(if (<= b 1.38e+17) (* a (- (* b i) (* x t))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.55e+36) {
tmp = t_2;
} else if (b <= -9.2e-292) {
tmp = t_1;
} else if (b <= 4.8e-291) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 9e-167) {
tmp = t_1;
} else if (b <= 1.38e+17) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = b * ((a * i) - (z * c))
if (b <= (-2.55d+36)) then
tmp = t_2
else if (b <= (-9.2d-292)) then
tmp = t_1
else if (b <= 4.8d-291) then
tmp = t * ((c * j) - (x * a))
else if (b <= 9d-167) then
tmp = t_1
else if (b <= 1.38d+17) then
tmp = a * ((b * i) - (x * t))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.55e+36) {
tmp = t_2;
} else if (b <= -9.2e-292) {
tmp = t_1;
} else if (b <= 4.8e-291) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 9e-167) {
tmp = t_1;
} else if (b <= 1.38e+17) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -2.55e+36: tmp = t_2 elif b <= -9.2e-292: tmp = t_1 elif b <= 4.8e-291: tmp = t * ((c * j) - (x * a)) elif b <= 9e-167: tmp = t_1 elif b <= 1.38e+17: tmp = a * ((b * i) - (x * t)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.55e+36) tmp = t_2; elseif (b <= -9.2e-292) tmp = t_1; elseif (b <= 4.8e-291) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 9e-167) tmp = t_1; elseif (b <= 1.38e+17) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -2.55e+36) tmp = t_2; elseif (b <= -9.2e-292) tmp = t_1; elseif (b <= 4.8e-291) tmp = t * ((c * j) - (x * a)); elseif (b <= 9e-167) tmp = t_1; elseif (b <= 1.38e+17) tmp = a * ((b * i) - (x * t)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.55e+36], t$95$2, If[LessEqual[b, -9.2e-292], t$95$1, If[LessEqual[b, 4.8e-291], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e-167], t$95$1, If[LessEqual[b, 1.38e+17], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.55 \cdot 10^{+36}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -9.2 \cdot 10^{-292}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-291}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-167}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.38 \cdot 10^{+17}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.54999999999999986e36 or 1.38e17 < b Initial program 81.8%
*-commutative81.8%
*-commutative81.8%
*-commutative81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in b around inf 64.4%
*-commutative64.4%
Simplified64.4%
if -2.54999999999999986e36 < b < -9.1999999999999996e-292 or 4.80000000000000025e-291 < b < 9.0000000000000002e-167Initial program 73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in b around 0 74.6%
Taylor expanded in t around 0 51.5%
associate-*r*51.5%
neg-mul-151.5%
*-commutative51.5%
associate-*r*53.4%
*-commutative53.4%
associate-*l*54.5%
neg-mul-154.5%
associate-*r*54.5%
*-commutative54.5%
associate-*l*57.2%
*-commutative57.2%
distribute-lft-in59.1%
+-commutative59.1%
mul-1-neg59.1%
unsub-neg59.1%
*-commutative59.1%
Simplified59.1%
if -9.1999999999999996e-292 < b < 4.80000000000000025e-291Initial program 75.2%
*-commutative75.2%
*-commutative75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in t around inf 59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
*-commutative59.8%
Simplified59.8%
if 9.0000000000000002e-167 < b < 1.38e17Initial program 76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in a around inf 77.5%
distribute-lft-out--77.5%
*-commutative77.5%
Simplified77.5%
Final simplification63.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.58e+44)
t_1
(if (<= b 7.5e-166)
(+ (* j (- (* t c) (* y i))) (* x (* y z)))
(if (<= b 1.75e+17) (* 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.58e+44) {
tmp = t_1;
} else if (b <= 7.5e-166) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else if (b <= 1.75e+17) {
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 = b * ((a * i) - (z * c))
if (b <= (-1.58d+44)) then
tmp = t_1
else if (b <= 7.5d-166) then
tmp = (j * ((t * c) - (y * i))) + (x * (y * z))
else if (b <= 1.75d+17) 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.58e+44) {
tmp = t_1;
} else if (b <= 7.5e-166) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else if (b <= 1.75e+17) {
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 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.58e+44: tmp = t_1 elif b <= 7.5e-166: tmp = (j * ((t * c) - (y * i))) + (x * (y * z)) elif b <= 1.75e+17: 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(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.58e+44) tmp = t_1; elseif (b <= 7.5e-166) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(y * z))); elseif (b <= 1.75e+17) 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 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.58e+44) tmp = t_1; elseif (b <= 7.5e-166) tmp = (j * ((t * c) - (y * i))) + (x * (y * z)); elseif (b <= 1.75e+17) 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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.58e+44], t$95$1, If[LessEqual[b, 7.5e-166], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e+17], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.58 \cdot 10^{+44}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-166}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{+17}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.57999999999999993e44 or 1.75e17 < b Initial program 81.6%
*-commutative81.6%
*-commutative81.6%
*-commutative81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in b around inf 64.9%
*-commutative64.9%
Simplified64.9%
if -1.57999999999999993e44 < b < 7.49999999999999947e-166Initial program 73.8%
*-commutative73.8%
*-commutative73.8%
*-commutative73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in b around 0 75.7%
Taylor expanded in a around 0 66.4%
if 7.49999999999999947e-166 < b < 1.75e17Initial program 76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in a around inf 77.5%
distribute-lft-out--77.5%
*-commutative77.5%
Simplified77.5%
Final simplification66.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z c) (- b))) (t_2 (* i (* y (- j)))))
(if (<= b -1.5e+93)
(* b (* a i))
(if (<= b -1.32e+29)
t_1
(if (<= b -1.8e-130)
t_2
(if (<= b -1.55e-234)
(* z (* x y))
(if (<= b 6e-154) t_2 (if (<= b 1.95e+17) (* a (* b i)) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * c) * -b;
double t_2 = i * (y * -j);
double tmp;
if (b <= -1.5e+93) {
tmp = b * (a * i);
} else if (b <= -1.32e+29) {
tmp = t_1;
} else if (b <= -1.8e-130) {
tmp = t_2;
} else if (b <= -1.55e-234) {
tmp = z * (x * y);
} else if (b <= 6e-154) {
tmp = t_2;
} else if (b <= 1.95e+17) {
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) :: t_2
real(8) :: tmp
t_1 = (z * c) * -b
t_2 = i * (y * -j)
if (b <= (-1.5d+93)) then
tmp = b * (a * i)
else if (b <= (-1.32d+29)) then
tmp = t_1
else if (b <= (-1.8d-130)) then
tmp = t_2
else if (b <= (-1.55d-234)) then
tmp = z * (x * y)
else if (b <= 6d-154) then
tmp = t_2
else if (b <= 1.95d+17) 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 = (z * c) * -b;
double t_2 = i * (y * -j);
double tmp;
if (b <= -1.5e+93) {
tmp = b * (a * i);
} else if (b <= -1.32e+29) {
tmp = t_1;
} else if (b <= -1.8e-130) {
tmp = t_2;
} else if (b <= -1.55e-234) {
tmp = z * (x * y);
} else if (b <= 6e-154) {
tmp = t_2;
} else if (b <= 1.95e+17) {
tmp = a * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * c) * -b t_2 = i * (y * -j) tmp = 0 if b <= -1.5e+93: tmp = b * (a * i) elif b <= -1.32e+29: tmp = t_1 elif b <= -1.8e-130: tmp = t_2 elif b <= -1.55e-234: tmp = z * (x * y) elif b <= 6e-154: tmp = t_2 elif b <= 1.95e+17: tmp = a * (b * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * c) * Float64(-b)) t_2 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (b <= -1.5e+93) tmp = Float64(b * Float64(a * i)); elseif (b <= -1.32e+29) tmp = t_1; elseif (b <= -1.8e-130) tmp = t_2; elseif (b <= -1.55e-234) tmp = Float64(z * Float64(x * y)); elseif (b <= 6e-154) tmp = t_2; elseif (b <= 1.95e+17) 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 = (z * c) * -b; t_2 = i * (y * -j); tmp = 0.0; if (b <= -1.5e+93) tmp = b * (a * i); elseif (b <= -1.32e+29) tmp = t_1; elseif (b <= -1.8e-130) tmp = t_2; elseif (b <= -1.55e-234) tmp = z * (x * y); elseif (b <= 6e-154) tmp = t_2; elseif (b <= 1.95e+17) 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[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.5e+93], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.32e+29], t$95$1, If[LessEqual[b, -1.8e-130], t$95$2, If[LessEqual[b, -1.55e-234], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6e-154], t$95$2, If[LessEqual[b, 1.95e+17], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot c\right) \cdot \left(-b\right)\\
t_2 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;b \leq -1.5 \cdot 10^{+93}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq -1.32 \cdot 10^{+29}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.8 \cdot 10^{-130}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.55 \cdot 10^{-234}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 6 \cdot 10^{-154}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{+17}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.49999999999999989e93Initial program 81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in b around inf 67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in i around inf 45.5%
*-commutative45.5%
Simplified45.5%
if -1.49999999999999989e93 < b < -1.32e29 or 1.95e17 < b Initial program 83.3%
*-commutative83.3%
*-commutative83.3%
*-commutative83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in b around inf 59.6%
*-commutative59.6%
Simplified59.6%
Taylor expanded in i around 0 44.8%
mul-1-neg44.8%
*-commutative44.8%
distribute-rgt-neg-out44.8%
Simplified44.8%
if -1.32e29 < b < -1.8000000000000001e-130 or -1.5500000000000001e-234 < b < 6.0000000000000005e-154Initial program 69.0%
*-commutative69.0%
*-commutative69.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in b around 0 74.2%
cancel-sign-sub-inv74.2%
distribute-rgt-in74.2%
*-commutative74.2%
Applied egg-rr74.2%
Taylor expanded in i around inf 37.6%
Simplified37.6%
if -1.8000000000000001e-130 < b < -1.5500000000000001e-234Initial program 83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in j around 0 50.9%
Taylor expanded in y around inf 35.3%
associate-*r*46.1%
*-commutative46.1%
Simplified46.1%
if 6.0000000000000005e-154 < b < 1.95e17Initial program 84.2%
*-commutative84.2%
*-commutative84.2%
*-commutative84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in b around inf 30.8%
*-commutative30.8%
Simplified30.8%
Taylor expanded in i around inf 26.0%
*-commutative26.0%
Simplified26.0%
Taylor expanded in b around 0 30.3%
Simplified30.3%
Final simplification41.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z c) (- b))) (t_2 (* i (* y (- j)))))
(if (<= b -6.5e+93)
(* b (* a i))
(if (<= b -1.32e+29)
t_1
(if (<= b -1.3e-129)
t_2
(if (<= b -1.08e-234)
(* z (* x y))
(if (<= b 5.2e-172)
t_2
(if (<= b 820000000.0) (* t (* 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 * c) * -b;
double t_2 = i * (y * -j);
double tmp;
if (b <= -6.5e+93) {
tmp = b * (a * i);
} else if (b <= -1.32e+29) {
tmp = t_1;
} else if (b <= -1.3e-129) {
tmp = t_2;
} else if (b <= -1.08e-234) {
tmp = z * (x * y);
} else if (b <= 5.2e-172) {
tmp = t_2;
} else if (b <= 820000000.0) {
tmp = t * (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) :: t_2
real(8) :: tmp
t_1 = (z * c) * -b
t_2 = i * (y * -j)
if (b <= (-6.5d+93)) then
tmp = b * (a * i)
else if (b <= (-1.32d+29)) then
tmp = t_1
else if (b <= (-1.3d-129)) then
tmp = t_2
else if (b <= (-1.08d-234)) then
tmp = z * (x * y)
else if (b <= 5.2d-172) then
tmp = t_2
else if (b <= 820000000.0d0) then
tmp = t * (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 * c) * -b;
double t_2 = i * (y * -j);
double tmp;
if (b <= -6.5e+93) {
tmp = b * (a * i);
} else if (b <= -1.32e+29) {
tmp = t_1;
} else if (b <= -1.3e-129) {
tmp = t_2;
} else if (b <= -1.08e-234) {
tmp = z * (x * y);
} else if (b <= 5.2e-172) {
tmp = t_2;
} else if (b <= 820000000.0) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * c) * -b t_2 = i * (y * -j) tmp = 0 if b <= -6.5e+93: tmp = b * (a * i) elif b <= -1.32e+29: tmp = t_1 elif b <= -1.3e-129: tmp = t_2 elif b <= -1.08e-234: tmp = z * (x * y) elif b <= 5.2e-172: tmp = t_2 elif b <= 820000000.0: tmp = t * (x * -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * c) * Float64(-b)) t_2 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (b <= -6.5e+93) tmp = Float64(b * Float64(a * i)); elseif (b <= -1.32e+29) tmp = t_1; elseif (b <= -1.3e-129) tmp = t_2; elseif (b <= -1.08e-234) tmp = Float64(z * Float64(x * y)); elseif (b <= 5.2e-172) tmp = t_2; elseif (b <= 820000000.0) tmp = Float64(t * Float64(x * Float64(-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 * c) * -b; t_2 = i * (y * -j); tmp = 0.0; if (b <= -6.5e+93) tmp = b * (a * i); elseif (b <= -1.32e+29) tmp = t_1; elseif (b <= -1.3e-129) tmp = t_2; elseif (b <= -1.08e-234) tmp = z * (x * y); elseif (b <= 5.2e-172) tmp = t_2; elseif (b <= 820000000.0) tmp = t * (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[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.5e+93], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.32e+29], t$95$1, If[LessEqual[b, -1.3e-129], t$95$2, If[LessEqual[b, -1.08e-234], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.2e-172], t$95$2, If[LessEqual[b, 820000000.0], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot c\right) \cdot \left(-b\right)\\
t_2 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;b \leq -6.5 \cdot 10^{+93}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq -1.32 \cdot 10^{+29}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{-129}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.08 \cdot 10^{-234}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{-172}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 820000000:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -6.4999999999999998e93Initial program 81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in b around inf 67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in i around inf 45.5%
*-commutative45.5%
Simplified45.5%
if -6.4999999999999998e93 < b < -1.32e29 or 8.2e8 < b Initial program 83.7%
*-commutative83.7%
*-commutative83.7%
*-commutative83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in b around inf 59.4%
*-commutative59.4%
Simplified59.4%
Taylor expanded in i around 0 43.6%
mul-1-neg43.6%
*-commutative43.6%
distribute-rgt-neg-out43.6%
Simplified43.6%
if -1.32e29 < b < -1.3e-129 or -1.0800000000000001e-234 < b < 5.1999999999999996e-172Initial program 69.8%
*-commutative69.8%
*-commutative69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in b around 0 73.2%
cancel-sign-sub-inv73.2%
distribute-rgt-in73.3%
*-commutative73.3%
Applied egg-rr73.3%
Taylor expanded in i around inf 39.2%
Simplified39.2%
if -1.3e-129 < b < -1.0800000000000001e-234Initial program 83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in j around 0 50.9%
Taylor expanded in y around inf 35.3%
associate-*r*46.1%
*-commutative46.1%
Simplified46.1%
if 5.1999999999999996e-172 < b < 8.2e8Initial program 76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in t around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
Simplified62.6%
Taylor expanded in j around 0 58.8%
Simplified58.8%
Final simplification44.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z c) (- b))))
(if (<= b -1.26e+95)
(* b (* a i))
(if (<= b -2.7e-17)
t_1
(if (<= b -2.2e-129)
(* y (* i (- j)))
(if (<= b -2.1e-235)
(* z (* x y))
(if (<= b 7.2e-174)
(* i (* y (- j)))
(if (<= b 5200000.0) (* t (* 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 * c) * -b;
double tmp;
if (b <= -1.26e+95) {
tmp = b * (a * i);
} else if (b <= -2.7e-17) {
tmp = t_1;
} else if (b <= -2.2e-129) {
tmp = y * (i * -j);
} else if (b <= -2.1e-235) {
tmp = z * (x * y);
} else if (b <= 7.2e-174) {
tmp = i * (y * -j);
} else if (b <= 5200000.0) {
tmp = t * (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 * c) * -b
if (b <= (-1.26d+95)) then
tmp = b * (a * i)
else if (b <= (-2.7d-17)) then
tmp = t_1
else if (b <= (-2.2d-129)) then
tmp = y * (i * -j)
else if (b <= (-2.1d-235)) then
tmp = z * (x * y)
else if (b <= 7.2d-174) then
tmp = i * (y * -j)
else if (b <= 5200000.0d0) then
tmp = t * (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 * c) * -b;
double tmp;
if (b <= -1.26e+95) {
tmp = b * (a * i);
} else if (b <= -2.7e-17) {
tmp = t_1;
} else if (b <= -2.2e-129) {
tmp = y * (i * -j);
} else if (b <= -2.1e-235) {
tmp = z * (x * y);
} else if (b <= 7.2e-174) {
tmp = i * (y * -j);
} else if (b <= 5200000.0) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * c) * -b tmp = 0 if b <= -1.26e+95: tmp = b * (a * i) elif b <= -2.7e-17: tmp = t_1 elif b <= -2.2e-129: tmp = y * (i * -j) elif b <= -2.1e-235: tmp = z * (x * y) elif b <= 7.2e-174: tmp = i * (y * -j) elif b <= 5200000.0: tmp = t * (x * -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * c) * Float64(-b)) tmp = 0.0 if (b <= -1.26e+95) tmp = Float64(b * Float64(a * i)); elseif (b <= -2.7e-17) tmp = t_1; elseif (b <= -2.2e-129) tmp = Float64(y * Float64(i * Float64(-j))); elseif (b <= -2.1e-235) tmp = Float64(z * Float64(x * y)); elseif (b <= 7.2e-174) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= 5200000.0) tmp = Float64(t * Float64(x * Float64(-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 * c) * -b; tmp = 0.0; if (b <= -1.26e+95) tmp = b * (a * i); elseif (b <= -2.7e-17) tmp = t_1; elseif (b <= -2.2e-129) tmp = y * (i * -j); elseif (b <= -2.1e-235) tmp = z * (x * y); elseif (b <= 7.2e-174) tmp = i * (y * -j); elseif (b <= 5200000.0) tmp = t * (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[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]}, If[LessEqual[b, -1.26e+95], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.7e-17], t$95$1, If[LessEqual[b, -2.2e-129], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.1e-235], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.2e-174], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5200000.0], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{if}\;b \leq -1.26 \cdot 10^{+95}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{-129}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{-235}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-174}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 5200000:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.26e95Initial program 81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in b around inf 67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in i around inf 45.5%
*-commutative45.5%
Simplified45.5%
if -1.26e95 < b < -2.7000000000000001e-17 or 5.2e6 < b Initial program 82.9%
*-commutative82.9%
*-commutative82.9%
*-commutative82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in b around inf 55.3%
*-commutative55.3%
Simplified55.3%
Taylor expanded in i around 0 39.7%
mul-1-neg39.7%
*-commutative39.7%
distribute-rgt-neg-out39.7%
Simplified39.7%
if -2.7000000000000001e-17 < b < -2.20000000000000003e-129Initial program 75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in i around inf 57.8%
distribute-lft-out--57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in j around inf 47.5%
*-commutative47.5%
associate-*r*47.5%
neg-mul-147.5%
*-commutative47.5%
associate-*l*50.8%
Simplified50.8%
if -2.20000000000000003e-129 < b < -2.1000000000000001e-235Initial program 83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in j around 0 50.9%
Taylor expanded in y around inf 35.3%
associate-*r*46.1%
*-commutative46.1%
Simplified46.1%
if -2.1000000000000001e-235 < b < 7.19999999999999997e-174Initial program 65.2%
*-commutative65.2%
*-commutative65.2%
*-commutative65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in b around 0 72.8%
cancel-sign-sub-inv72.8%
distribute-rgt-in72.9%
*-commutative72.9%
Applied egg-rr72.9%
Taylor expanded in i around inf 40.2%
Simplified40.2%
if 7.19999999999999997e-174 < b < 5.2e6Initial program 76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in t around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
Simplified62.6%
Taylor expanded in j around 0 58.8%
Simplified58.8%
Final simplification44.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -9.5e+93)
(* b (* a i))
(if (<= b -8.5e-16)
(* (* z c) (- b))
(if (<= b -9.6e-129)
(* y (* i (- j)))
(if (<= b -4.5e-235)
(* z (* x y))
(if (<= b 1.85e-171)
(* i (* y (- j)))
(if (<= b 580000000000.0) (* t (* x (- a))) (* z (* b (- c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -9.5e+93) {
tmp = b * (a * i);
} else if (b <= -8.5e-16) {
tmp = (z * c) * -b;
} else if (b <= -9.6e-129) {
tmp = y * (i * -j);
} else if (b <= -4.5e-235) {
tmp = z * (x * y);
} else if (b <= 1.85e-171) {
tmp = i * (y * -j);
} else if (b <= 580000000000.0) {
tmp = t * (x * -a);
} else {
tmp = z * (b * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-9.5d+93)) then
tmp = b * (a * i)
else if (b <= (-8.5d-16)) then
tmp = (z * c) * -b
else if (b <= (-9.6d-129)) then
tmp = y * (i * -j)
else if (b <= (-4.5d-235)) then
tmp = z * (x * y)
else if (b <= 1.85d-171) then
tmp = i * (y * -j)
else if (b <= 580000000000.0d0) then
tmp = t * (x * -a)
else
tmp = z * (b * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -9.5e+93) {
tmp = b * (a * i);
} else if (b <= -8.5e-16) {
tmp = (z * c) * -b;
} else if (b <= -9.6e-129) {
tmp = y * (i * -j);
} else if (b <= -4.5e-235) {
tmp = z * (x * y);
} else if (b <= 1.85e-171) {
tmp = i * (y * -j);
} else if (b <= 580000000000.0) {
tmp = t * (x * -a);
} else {
tmp = z * (b * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -9.5e+93: tmp = b * (a * i) elif b <= -8.5e-16: tmp = (z * c) * -b elif b <= -9.6e-129: tmp = y * (i * -j) elif b <= -4.5e-235: tmp = z * (x * y) elif b <= 1.85e-171: tmp = i * (y * -j) elif b <= 580000000000.0: tmp = t * (x * -a) else: tmp = z * (b * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -9.5e+93) tmp = Float64(b * Float64(a * i)); elseif (b <= -8.5e-16) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (b <= -9.6e-129) tmp = Float64(y * Float64(i * Float64(-j))); elseif (b <= -4.5e-235) tmp = Float64(z * Float64(x * y)); elseif (b <= 1.85e-171) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= 580000000000.0) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = Float64(z * Float64(b * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -9.5e+93) tmp = b * (a * i); elseif (b <= -8.5e-16) tmp = (z * c) * -b; elseif (b <= -9.6e-129) tmp = y * (i * -j); elseif (b <= -4.5e-235) tmp = z * (x * y); elseif (b <= 1.85e-171) tmp = i * (y * -j); elseif (b <= 580000000000.0) tmp = t * (x * -a); else tmp = z * (b * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -9.5e+93], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.5e-16], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[b, -9.6e-129], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.5e-235], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.85e-171], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 580000000000.0], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9.5 \cdot 10^{+93}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{-16}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;b \leq -9.6 \cdot 10^{-129}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq -4.5 \cdot 10^{-235}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 1.85 \cdot 10^{-171}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 580000000000:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if b < -9.4999999999999991e93Initial program 81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in b around inf 67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in i around inf 45.5%
*-commutative45.5%
Simplified45.5%
if -9.4999999999999991e93 < b < -8.5000000000000001e-16Initial program 86.1%
*-commutative86.1%
*-commutative86.1%
*-commutative86.1%
*-commutative86.1%
Simplified86.1%
Taylor expanded in b around inf 45.2%
*-commutative45.2%
Simplified45.2%
Taylor expanded in i around 0 34.8%
mul-1-neg34.8%
*-commutative34.8%
distribute-rgt-neg-out34.8%
Simplified34.8%
if -8.5000000000000001e-16 < b < -9.59999999999999954e-129Initial program 75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in i around inf 57.8%
distribute-lft-out--57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in j around inf 47.5%
*-commutative47.5%
associate-*r*47.5%
neg-mul-147.5%
*-commutative47.5%
associate-*l*50.8%
Simplified50.8%
if -9.59999999999999954e-129 < b < -4.4999999999999998e-235Initial program 83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in j around 0 50.9%
Taylor expanded in y around inf 35.3%
associate-*r*46.1%
*-commutative46.1%
Simplified46.1%
if -4.4999999999999998e-235 < b < 1.85000000000000006e-171Initial program 65.2%
*-commutative65.2%
*-commutative65.2%
*-commutative65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in b around 0 72.8%
cancel-sign-sub-inv72.8%
distribute-rgt-in72.9%
*-commutative72.9%
Applied egg-rr72.9%
Taylor expanded in i around inf 40.2%
Simplified40.2%
if 1.85000000000000006e-171 < b < 5.8e11Initial program 76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in t around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
Simplified62.6%
Taylor expanded in j around 0 58.8%
Simplified58.8%
if 5.8e11 < b Initial program 81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in j around 0 69.3%
Taylor expanded in c around inf 42.0%
*-commutative42.0%
associate-*r*42.0%
associate-*r*42.0%
associate-*l*37.3%
mul-1-neg37.3%
neg-sub037.3%
metadata-eval37.3%
unsub-neg37.3%
metadata-eval37.3%
metadata-eval37.3%
mul0-lft37.3%
metadata-eval37.3%
distribute-rgt1-in37.3%
mul-1-neg37.3%
+-commutative37.3%
associate-*l*42.0%
*-commutative42.0%
associate-*l*43.6%
Simplified43.6%
Final simplification44.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -1e+95)
(* i (* a b))
(if (<= b -2.9e-18)
(* (* z c) (- b))
(if (<= b -9e-130)
(* y (* i (- j)))
(if (<= b -2.45e-235)
(* z (* x y))
(if (<= b 6.7e-175)
(* i (* y (- j)))
(if (<= b 5300000000000.0)
(* t (* x (- a)))
(* z (* b (- c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -1e+95) {
tmp = i * (a * b);
} else if (b <= -2.9e-18) {
tmp = (z * c) * -b;
} else if (b <= -9e-130) {
tmp = y * (i * -j);
} else if (b <= -2.45e-235) {
tmp = z * (x * y);
} else if (b <= 6.7e-175) {
tmp = i * (y * -j);
} else if (b <= 5300000000000.0) {
tmp = t * (x * -a);
} else {
tmp = z * (b * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-1d+95)) then
tmp = i * (a * b)
else if (b <= (-2.9d-18)) then
tmp = (z * c) * -b
else if (b <= (-9d-130)) then
tmp = y * (i * -j)
else if (b <= (-2.45d-235)) then
tmp = z * (x * y)
else if (b <= 6.7d-175) then
tmp = i * (y * -j)
else if (b <= 5300000000000.0d0) then
tmp = t * (x * -a)
else
tmp = z * (b * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -1e+95) {
tmp = i * (a * b);
} else if (b <= -2.9e-18) {
tmp = (z * c) * -b;
} else if (b <= -9e-130) {
tmp = y * (i * -j);
} else if (b <= -2.45e-235) {
tmp = z * (x * y);
} else if (b <= 6.7e-175) {
tmp = i * (y * -j);
} else if (b <= 5300000000000.0) {
tmp = t * (x * -a);
} else {
tmp = z * (b * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -1e+95: tmp = i * (a * b) elif b <= -2.9e-18: tmp = (z * c) * -b elif b <= -9e-130: tmp = y * (i * -j) elif b <= -2.45e-235: tmp = z * (x * y) elif b <= 6.7e-175: tmp = i * (y * -j) elif b <= 5300000000000.0: tmp = t * (x * -a) else: tmp = z * (b * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -1e+95) tmp = Float64(i * Float64(a * b)); elseif (b <= -2.9e-18) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (b <= -9e-130) tmp = Float64(y * Float64(i * Float64(-j))); elseif (b <= -2.45e-235) tmp = Float64(z * Float64(x * y)); elseif (b <= 6.7e-175) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= 5300000000000.0) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = Float64(z * Float64(b * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -1e+95) tmp = i * (a * b); elseif (b <= -2.9e-18) tmp = (z * c) * -b; elseif (b <= -9e-130) tmp = y * (i * -j); elseif (b <= -2.45e-235) tmp = z * (x * y); elseif (b <= 6.7e-175) tmp = i * (y * -j); elseif (b <= 5300000000000.0) tmp = t * (x * -a); else tmp = z * (b * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1e+95], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.9e-18], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[b, -9e-130], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.45e-235], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.7e-175], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5300000000000.0], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1 \cdot 10^{+95}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{-18}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;b \leq -9 \cdot 10^{-130}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq -2.45 \cdot 10^{-235}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 6.7 \cdot 10^{-175}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 5300000000000:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if b < -1.00000000000000002e95Initial program 81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in i around inf 54.8%
distribute-lft-out--54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in j around 0 50.0%
associate-*r*50.0%
neg-mul-150.0%
*-commutative50.0%
Simplified50.0%
if -1.00000000000000002e95 < b < -2.9e-18Initial program 86.1%
*-commutative86.1%
*-commutative86.1%
*-commutative86.1%
*-commutative86.1%
Simplified86.1%
Taylor expanded in b around inf 45.2%
*-commutative45.2%
Simplified45.2%
Taylor expanded in i around 0 34.8%
mul-1-neg34.8%
*-commutative34.8%
distribute-rgt-neg-out34.8%
Simplified34.8%
if -2.9e-18 < b < -9e-130Initial program 75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in i around inf 57.8%
distribute-lft-out--57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in j around inf 47.5%
*-commutative47.5%
associate-*r*47.5%
neg-mul-147.5%
*-commutative47.5%
associate-*l*50.8%
Simplified50.8%
if -9e-130 < b < -2.44999999999999983e-235Initial program 83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in j around 0 50.9%
Taylor expanded in y around inf 35.3%
associate-*r*46.1%
*-commutative46.1%
Simplified46.1%
if -2.44999999999999983e-235 < b < 6.70000000000000053e-175Initial program 65.2%
*-commutative65.2%
*-commutative65.2%
*-commutative65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in b around 0 72.8%
cancel-sign-sub-inv72.8%
distribute-rgt-in72.9%
*-commutative72.9%
Applied egg-rr72.9%
Taylor expanded in i around inf 40.2%
Simplified40.2%
if 6.70000000000000053e-175 < b < 5.3e12Initial program 76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in t around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
Simplified62.6%
Taylor expanded in j around 0 58.8%
Simplified58.8%
if 5.3e12 < b Initial program 81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in j around 0 69.3%
Taylor expanded in c around inf 42.0%
*-commutative42.0%
associate-*r*42.0%
associate-*r*42.0%
associate-*l*37.3%
mul-1-neg37.3%
neg-sub037.3%
metadata-eval37.3%
unsub-neg37.3%
metadata-eval37.3%
metadata-eval37.3%
mul0-lft37.3%
metadata-eval37.3%
distribute-rgt1-in37.3%
mul-1-neg37.3%
+-commutative37.3%
associate-*l*42.0%
*-commutative42.0%
associate-*l*43.6%
Simplified43.6%
Final simplification45.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= i -1.05e-35)
t_1
(if (<= i -8.2e-212)
(* b (- (* a i) (* z c)))
(if (<= i 8.5e-298)
(* a (* x (- t)))
(if (<= i 1.2e-164) (* c (- (* t j) (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.05e-35) {
tmp = t_1;
} else if (i <= -8.2e-212) {
tmp = b * ((a * i) - (z * c));
} else if (i <= 8.5e-298) {
tmp = a * (x * -t);
} else if (i <= 1.2e-164) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
if (i <= (-1.05d-35)) then
tmp = t_1
else if (i <= (-8.2d-212)) then
tmp = b * ((a * i) - (z * c))
else if (i <= 8.5d-298) then
tmp = a * (x * -t)
else if (i <= 1.2d-164) then
tmp = c * ((t * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.05e-35) {
tmp = t_1;
} else if (i <= -8.2e-212) {
tmp = b * ((a * i) - (z * c));
} else if (i <= 8.5e-298) {
tmp = a * (x * -t);
} else if (i <= 1.2e-164) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) tmp = 0 if i <= -1.05e-35: tmp = t_1 elif i <= -8.2e-212: tmp = b * ((a * i) - (z * c)) elif i <= 8.5e-298: tmp = a * (x * -t) elif i <= 1.2e-164: tmp = c * ((t * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.05e-35) tmp = t_1; elseif (i <= -8.2e-212) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (i <= 8.5e-298) tmp = Float64(a * Float64(x * Float64(-t))); elseif (i <= 1.2e-164) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -1.05e-35) tmp = t_1; elseif (i <= -8.2e-212) tmp = b * ((a * i) - (z * c)); elseif (i <= 8.5e-298) tmp = a * (x * -t); elseif (i <= 1.2e-164) tmp = c * ((t * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.05e-35], t$95$1, If[LessEqual[i, -8.2e-212], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.5e-298], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.2e-164], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.05 \cdot 10^{-35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -8.2 \cdot 10^{-212}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{-298}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;i \leq 1.2 \cdot 10^{-164}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -1.05e-35 or 1.19999999999999992e-164 < i Initial program 72.6%
*-commutative72.6%
*-commutative72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in i around inf 58.7%
distribute-lft-out--58.7%
*-commutative58.7%
Simplified58.7%
Taylor expanded in i around 0 58.7%
associate-*r*58.7%
*-commutative58.7%
*-commutative58.7%
*-commutative58.7%
associate-*r*58.7%
mul-1-neg58.7%
sub-neg58.7%
distribute-rgt-neg-out58.7%
+-commutative58.7%
distribute-neg-in58.7%
distribute-rgt-neg-out58.7%
remove-double-neg58.7%
unsub-neg58.7%
*-commutative58.7%
Simplified58.7%
if -1.05e-35 < i < -8.20000000000000028e-212Initial program 81.5%
*-commutative81.5%
*-commutative81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in b around inf 53.2%
*-commutative53.2%
Simplified53.2%
if -8.20000000000000028e-212 < i < 8.49999999999999957e-298Initial program 80.9%
*-commutative80.9%
*-commutative80.9%
*-commutative80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in j around 0 74.9%
Taylor expanded in t around inf 43.6%
mul-1-neg43.6%
distribute-lft-neg-in43.6%
*-commutative43.6%
*-commutative43.6%
Simplified43.6%
if 8.49999999999999957e-298 < i < 1.19999999999999992e-164Initial program 91.1%
*-commutative91.1%
*-commutative91.1%
*-commutative91.1%
*-commutative91.1%
Simplified91.1%
Taylor expanded in c around inf 54.8%
Final simplification55.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.9e+42)
t_1
(if (<= b 3.4e-170)
(* j (- (* t c) (* y i)))
(if (<= b 2150000000000.0) (* t (* x (- a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.9e+42) {
tmp = t_1;
} else if (b <= 3.4e-170) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 2150000000000.0) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-1.9d+42)) then
tmp = t_1
else if (b <= 3.4d-170) then
tmp = j * ((t * c) - (y * i))
else if (b <= 2150000000000.0d0) then
tmp = t * (x * -a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.9e+42) {
tmp = t_1;
} else if (b <= 3.4e-170) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 2150000000000.0) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.9e+42: tmp = t_1 elif b <= 3.4e-170: tmp = j * ((t * c) - (y * i)) elif b <= 2150000000000.0: tmp = t * (x * -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.9e+42) tmp = t_1; elseif (b <= 3.4e-170) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 2150000000000.0) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.9e+42) tmp = t_1; elseif (b <= 3.4e-170) tmp = j * ((t * c) - (y * i)); elseif (b <= 2150000000000.0) tmp = t * (x * -a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.9e+42], t$95$1, If[LessEqual[b, 3.4e-170], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2150000000000.0], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.9 \cdot 10^{+42}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-170}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 2150000000000:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.8999999999999999e42 or 2.15e12 < b Initial program 81.9%
*-commutative81.9%
*-commutative81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in b around inf 64.7%
*-commutative64.7%
Simplified64.7%
if -1.8999999999999999e42 < b < 3.40000000000000013e-170Initial program 73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in b around 0 75.3%
Taylor expanded in j around inf 52.2%
if 3.40000000000000013e-170 < b < 2.15e12Initial program 76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in t around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
Simplified62.6%
Taylor expanded in j around 0 58.8%
Simplified58.8%
Final simplification58.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.9e+42)
t_1
(if (<= b 1.6e-170)
(* j (- (* t c) (* y i)))
(if (<= b 6.4e+93) (* t (- (* c j) (* x a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.9e+42) {
tmp = t_1;
} else if (b <= 1.6e-170) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 6.4e+93) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-1.9d+42)) then
tmp = t_1
else if (b <= 1.6d-170) then
tmp = j * ((t * c) - (y * i))
else if (b <= 6.4d+93) then
tmp = t * ((c * j) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.9e+42) {
tmp = t_1;
} else if (b <= 1.6e-170) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 6.4e+93) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.9e+42: tmp = t_1 elif b <= 1.6e-170: tmp = j * ((t * c) - (y * i)) elif b <= 6.4e+93: tmp = t * ((c * j) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.9e+42) tmp = t_1; elseif (b <= 1.6e-170) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 6.4e+93) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.9e+42) tmp = t_1; elseif (b <= 1.6e-170) tmp = j * ((t * c) - (y * i)); elseif (b <= 6.4e+93) tmp = t * ((c * j) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.9e+42], t$95$1, If[LessEqual[b, 1.6e-170], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.4e+93], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.9 \cdot 10^{+42}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-170}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{+93}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.8999999999999999e42 or 6.4000000000000003e93 < b Initial program 80.6%
*-commutative80.6%
*-commutative80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in b around inf 69.4%
*-commutative69.4%
Simplified69.4%
if -1.8999999999999999e42 < b < 1.6e-170Initial program 73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in b around 0 75.3%
Taylor expanded in j around inf 52.2%
if 1.6e-170 < b < 6.4000000000000003e93Initial program 81.1%
*-commutative81.1%
*-commutative81.1%
*-commutative81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in t around inf 53.7%
+-commutative53.7%
mul-1-neg53.7%
unsub-neg53.7%
*-commutative53.7%
Simplified53.7%
Final simplification58.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -5.8e-37)
t_1
(if (<= x 4.7e-215)
(* j (- (* t c) (* y i)))
(if (<= x 2.9e+77) (* b (- (* a i) (* z c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -5.8e-37) {
tmp = t_1;
} else if (x <= 4.7e-215) {
tmp = j * ((t * c) - (y * i));
} else if (x <= 2.9e+77) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (x <= (-5.8d-37)) then
tmp = t_1
else if (x <= 4.7d-215) then
tmp = j * ((t * c) - (y * i))
else if (x <= 2.9d+77) then
tmp = b * ((a * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -5.8e-37) {
tmp = t_1;
} else if (x <= 4.7e-215) {
tmp = j * ((t * c) - (y * i));
} else if (x <= 2.9e+77) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -5.8e-37: tmp = t_1 elif x <= 4.7e-215: tmp = j * ((t * c) - (y * i)) elif x <= 2.9e+77: tmp = b * ((a * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -5.8e-37) tmp = t_1; elseif (x <= 4.7e-215) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (x <= 2.9e+77) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -5.8e-37) tmp = t_1; elseif (x <= 4.7e-215) tmp = j * ((t * c) - (y * i)); elseif (x <= 2.9e+77) tmp = b * ((a * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.8e-37], t$95$1, If[LessEqual[x, 4.7e-215], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e+77], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -5.8 \cdot 10^{-37}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 4.7 \cdot 10^{-215}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{+77}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -5.80000000000000009e-37 or 2.9000000000000002e77 < x Initial program 82.7%
*-commutative82.7%
*-commutative82.7%
*-commutative82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in b around 0 74.9%
cancel-sign-sub-inv74.9%
distribute-rgt-in74.9%
*-commutative74.9%
Applied egg-rr74.9%
Taylor expanded in j around 0 66.0%
Simplified66.9%
if -5.80000000000000009e-37 < x < 4.6999999999999995e-215Initial program 69.8%
*-commutative69.8%
*-commutative69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in b around 0 56.5%
Taylor expanded in j around inf 60.5%
if 4.6999999999999995e-215 < x < 2.9000000000000002e77Initial program 75.3%
*-commutative75.3%
*-commutative75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in b around inf 53.8%
*-commutative53.8%
Simplified53.8%
Final simplification62.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= b -5.6e+111)
(* b (* a i))
(if (<= b -1.12e-128)
t_1
(if (<= b -3.1e-234)
(* z (* x y))
(if (<= b 7.2e-154) t_1 (* a (* b i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (b <= -5.6e+111) {
tmp = b * (a * i);
} else if (b <= -1.12e-128) {
tmp = t_1;
} else if (b <= -3.1e-234) {
tmp = z * (x * y);
} else if (b <= 7.2e-154) {
tmp = t_1;
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y * -j)
if (b <= (-5.6d+111)) then
tmp = b * (a * i)
else if (b <= (-1.12d-128)) then
tmp = t_1
else if (b <= (-3.1d-234)) then
tmp = z * (x * y)
else if (b <= 7.2d-154) then
tmp = t_1
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (b <= -5.6e+111) {
tmp = b * (a * i);
} else if (b <= -1.12e-128) {
tmp = t_1;
} else if (b <= -3.1e-234) {
tmp = z * (x * y);
} else if (b <= 7.2e-154) {
tmp = t_1;
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if b <= -5.6e+111: tmp = b * (a * i) elif b <= -1.12e-128: tmp = t_1 elif b <= -3.1e-234: tmp = z * (x * y) elif b <= 7.2e-154: tmp = t_1 else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (b <= -5.6e+111) tmp = Float64(b * Float64(a * i)); elseif (b <= -1.12e-128) tmp = t_1; elseif (b <= -3.1e-234) tmp = Float64(z * Float64(x * y)); elseif (b <= 7.2e-154) tmp = t_1; else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (b <= -5.6e+111) tmp = b * (a * i); elseif (b <= -1.12e-128) tmp = t_1; elseif (b <= -3.1e-234) tmp = z * (x * y); elseif (b <= 7.2e-154) tmp = t_1; else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.6e+111], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.12e-128], t$95$1, If[LessEqual[b, -3.1e-234], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.2e-154], t$95$1, N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;b \leq -5.6 \cdot 10^{+111}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq -1.12 \cdot 10^{-128}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3.1 \cdot 10^{-234}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-154}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -5.5999999999999999e111Initial program 81.9%
*-commutative81.9%
*-commutative81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in b around inf 71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in i around inf 47.5%
*-commutative47.5%
Simplified47.5%
if -5.5999999999999999e111 < b < -1.12e-128 or -3.1000000000000001e-234 < b < 7.2000000000000006e-154Initial program 72.2%
*-commutative72.2%
*-commutative72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in b around 0 70.1%
cancel-sign-sub-inv70.1%
distribute-rgt-in70.2%
*-commutative70.2%
Applied egg-rr70.2%
Taylor expanded in i around inf 34.5%
Simplified34.5%
if -1.12e-128 < b < -3.1000000000000001e-234Initial program 83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in j around 0 50.9%
Taylor expanded in y around inf 35.3%
associate-*r*46.1%
*-commutative46.1%
Simplified46.1%
if 7.2000000000000006e-154 < b Initial program 81.6%
*-commutative81.6%
*-commutative81.6%
*-commutative81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in b around inf 52.4%
*-commutative52.4%
Simplified52.4%
Taylor expanded in i around inf 26.1%
*-commutative26.1%
Simplified26.1%
Taylor expanded in b around 0 27.7%
Simplified27.7%
Final simplification35.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -4.5e+25) (not (<= j 550000000.0))) (* c (* t j)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -4.5e+25) || !(j <= 550000000.0)) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-4.5d+25)) .or. (.not. (j <= 550000000.0d0))) then
tmp = c * (t * j)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -4.5e+25) || !(j <= 550000000.0)) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -4.5e+25) or not (j <= 550000000.0): tmp = c * (t * j) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -4.5e+25) || !(j <= 550000000.0)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -4.5e+25) || ~((j <= 550000000.0))) tmp = c * (t * j); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -4.5e+25], N[Not[LessEqual[j, 550000000.0]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.5 \cdot 10^{+25} \lor \neg \left(j \leq 550000000\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if j < -4.5000000000000003e25 or 5.5e8 < j Initial program 76.2%
*-commutative76.2%
*-commutative76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in b around 0 75.1%
cancel-sign-sub-inv75.1%
distribute-rgt-in75.1%
*-commutative75.1%
Applied egg-rr75.1%
Taylor expanded in c around inf 30.1%
if -4.5000000000000003e25 < j < 5.5e8Initial program 78.3%
*-commutative78.3%
*-commutative78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in b around inf 49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in i around inf 29.3%
*-commutative29.3%
Simplified29.3%
Final simplification29.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -7e-20) (not (<= x 1.4e+93))) (* x (* y z)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -7e-20) || !(x <= 1.4e+93)) {
tmp = x * (y * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((x <= (-7d-20)) .or. (.not. (x <= 1.4d+93))) then
tmp = x * (y * z)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -7e-20) || !(x <= 1.4e+93)) {
tmp = x * (y * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -7e-20) or not (x <= 1.4e+93): tmp = x * (y * z) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -7e-20) || !(x <= 1.4e+93)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -7e-20) || ~((x <= 1.4e+93))) tmp = x * (y * z); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -7e-20], N[Not[LessEqual[x, 1.4e+93]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7 \cdot 10^{-20} \lor \neg \left(x \leq 1.4 \cdot 10^{+93}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if x < -7.00000000000000007e-20 or 1.39999999999999994e93 < x Initial program 82.9%
*-commutative82.9%
*-commutative82.9%
*-commutative82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in j around 0 77.6%
Taylor expanded in y around inf 36.1%
*-commutative36.1%
Simplified36.1%
if -7.00000000000000007e-20 < x < 1.39999999999999994e93Initial program 72.6%
*-commutative72.6%
*-commutative72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around inf 43.5%
*-commutative43.5%
Simplified43.5%
Taylor expanded in i around inf 28.6%
*-commutative28.6%
Simplified28.6%
Taylor expanded in b around 0 28.7%
Simplified28.7%
Final simplification32.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -1.95e+31) (not (<= y 6.5e-73))) (* z (* x y)) (* c (* t j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -1.95e+31) || !(y <= 6.5e-73)) {
tmp = z * (x * y);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((y <= (-1.95d+31)) .or. (.not. (y <= 6.5d-73))) then
tmp = z * (x * y)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -1.95e+31) || !(y <= 6.5e-73)) {
tmp = z * (x * y);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -1.95e+31) or not (y <= 6.5e-73): tmp = z * (x * y) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -1.95e+31) || !(y <= 6.5e-73)) tmp = Float64(z * Float64(x * y)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((y <= -1.95e+31) || ~((y <= 6.5e-73))) tmp = z * (x * y); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -1.95e+31], N[Not[LessEqual[y, 6.5e-73]], $MachinePrecision]], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.95 \cdot 10^{+31} \lor \neg \left(y \leq 6.5 \cdot 10^{-73}\right):\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if y < -1.95e31 or 6.4999999999999999e-73 < y Initial program 72.8%
*-commutative72.8%
*-commutative72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in j around 0 63.3%
Taylor expanded in y around inf 35.8%
associate-*r*38.2%
*-commutative38.2%
Simplified38.2%
if -1.95e31 < y < 6.4999999999999999e-73Initial program 82.2%
*-commutative82.2%
*-commutative82.2%
*-commutative82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in b around 0 63.2%
cancel-sign-sub-inv63.2%
distribute-rgt-in63.2%
*-commutative63.2%
Applied egg-rr63.2%
Taylor expanded in c around inf 25.9%
Final simplification32.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -3.3e+25) (* c (* t j)) (if (<= j 660000000.0) (* b (* a i)) (* t (* c j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -3.3e+25) {
tmp = c * (t * j);
} else if (j <= 660000000.0) {
tmp = b * (a * i);
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-3.3d+25)) then
tmp = c * (t * j)
else if (j <= 660000000.0d0) then
tmp = b * (a * i)
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -3.3e+25) {
tmp = c * (t * j);
} else if (j <= 660000000.0) {
tmp = b * (a * i);
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -3.3e+25: tmp = c * (t * j) elif j <= 660000000.0: tmp = b * (a * i) else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -3.3e+25) tmp = Float64(c * Float64(t * j)); elseif (j <= 660000000.0) tmp = Float64(b * Float64(a * i)); else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -3.3e+25) tmp = c * (t * j); elseif (j <= 660000000.0) tmp = b * (a * i); else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -3.3e+25], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 660000000.0], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -3.3 \cdot 10^{+25}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;j \leq 660000000:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -3.3000000000000001e25Initial program 72.2%
*-commutative72.2%
*-commutative72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in b around 0 69.2%
cancel-sign-sub-inv69.2%
distribute-rgt-in69.2%
*-commutative69.2%
Applied egg-rr69.2%
Taylor expanded in c around inf 27.7%
if -3.3000000000000001e25 < j < 6.6e8Initial program 78.3%
*-commutative78.3%
*-commutative78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in b around inf 49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in i around inf 29.3%
*-commutative29.3%
Simplified29.3%
if 6.6e8 < j Initial program 80.5%
*-commutative80.5%
*-commutative80.5%
*-commutative80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in b around 0 81.3%
cancel-sign-sub-inv81.3%
distribute-rgt-in81.3%
*-commutative81.3%
Applied egg-rr81.3%
Taylor expanded in c around inf 32.7%
Simplified34.6%
Final simplification30.1%
(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 77.4%
*-commutative77.4%
*-commutative77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in b around inf 38.1%
*-commutative38.1%
Simplified38.1%
Taylor expanded in i around inf 21.7%
*-commutative21.7%
Simplified21.7%
Taylor expanded in b around 0 20.7%
Simplified20.7%
Final simplification20.7%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * 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 = b * (a * 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 b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 77.4%
*-commutative77.4%
*-commutative77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in b around inf 38.1%
*-commutative38.1%
Simplified38.1%
Taylor expanded in i around inf 21.7%
*-commutative21.7%
Simplified21.7%
Final simplification21.7%
(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 2023301
(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)))))