
(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 26 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 (- (* t c) (* y i))))
(if (<= (+ (+ (* x (- (* y z) (* t a))) t_1) (* j t_2)) INFINITY)
(fma j t_2 (+ (* x (fma y z (* t (- a)))) t_1))
(* t (- (* c j) (* x a))))))
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 = (t * c) - (y * i);
double tmp;
if ((((x * ((y * z) - (t * a))) + t_1) + (j * t_2)) <= ((double) INFINITY)) {
tmp = fma(j, t_2, ((x * fma(y, z, (t * -a))) + t_1));
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) + Float64(j * t_2)) <= Inf) tmp = fma(j, t_2, Float64(Float64(x * fma(y, z, Float64(t * Float64(-a)))) + t_1)); else tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$2 + N[(N[(x * N[(y * z + N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot c - y \cdot i\\
\mathbf{if}\;\left(x \cdot \left(y \cdot z - t \cdot a\right) + t_1\right) + j \cdot t_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t_2, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) + t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\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 90.5%
+-commutative90.5%
fma-def90.5%
*-commutative90.5%
*-commutative90.5%
cancel-sign-sub-inv90.5%
cancel-sign-sub90.5%
fma-neg90.5%
distribute-rgt-neg-out90.5%
remove-double-neg90.5%
*-commutative90.5%
*-commutative90.5%
Simplified90.5%
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%
Taylor expanded in i around -inf 16.1%
Taylor expanded in t around inf 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
*-commutative50.6%
Simplified50.6%
Final simplification80.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* t (- (* c j) (* x a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = t * ((c * j) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = t * ((c * j) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\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 90.5%
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%
Taylor expanded in i around -inf 16.1%
Taylor expanded in t around inf 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
*-commutative50.6%
Simplified50.6%
Final simplification80.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c))))
(t_2 (+ (* j (- (* t c) (* y i))) (* i (* a b)))))
(if (<= t -1.8e+191)
(* a (- (* b i) (* x t)))
(if (<= t -6.6e-24)
t_2
(if (<= t -3.7e-196)
t_1
(if (<= t -1.9e-239)
(* y (- (* x z) (* i j)))
(if (<= t 4.2e-190)
t_1
(if (<= t 3e-104)
(* i (- (* a b) (* y j)))
(if (<= t 3.55e-31)
(* x (- (* y z) (* t a)))
(if (<= t 4e+64) t_2 (* t (- (* c j) (* x a)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = (j * ((t * c) - (y * i))) + (i * (a * b));
double tmp;
if (t <= -1.8e+191) {
tmp = a * ((b * i) - (x * t));
} else if (t <= -6.6e-24) {
tmp = t_2;
} else if (t <= -3.7e-196) {
tmp = t_1;
} else if (t <= -1.9e-239) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 4.2e-190) {
tmp = t_1;
} else if (t <= 3e-104) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 3.55e-31) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 4e+64) {
tmp = t_2;
} else {
tmp = t * ((c * j) - (x * a));
}
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 * ((x * y) - (b * c))
t_2 = (j * ((t * c) - (y * i))) + (i * (a * b))
if (t <= (-1.8d+191)) then
tmp = a * ((b * i) - (x * t))
else if (t <= (-6.6d-24)) then
tmp = t_2
else if (t <= (-3.7d-196)) then
tmp = t_1
else if (t <= (-1.9d-239)) then
tmp = y * ((x * z) - (i * j))
else if (t <= 4.2d-190) then
tmp = t_1
else if (t <= 3d-104) then
tmp = i * ((a * b) - (y * j))
else if (t <= 3.55d-31) then
tmp = x * ((y * z) - (t * a))
else if (t <= 4d+64) then
tmp = t_2
else
tmp = t * ((c * j) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = (j * ((t * c) - (y * i))) + (i * (a * b));
double tmp;
if (t <= -1.8e+191) {
tmp = a * ((b * i) - (x * t));
} else if (t <= -6.6e-24) {
tmp = t_2;
} else if (t <= -3.7e-196) {
tmp = t_1;
} else if (t <= -1.9e-239) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 4.2e-190) {
tmp = t_1;
} else if (t <= 3e-104) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 3.55e-31) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 4e+64) {
tmp = t_2;
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = (j * ((t * c) - (y * i))) + (i * (a * b)) tmp = 0 if t <= -1.8e+191: tmp = a * ((b * i) - (x * t)) elif t <= -6.6e-24: tmp = t_2 elif t <= -3.7e-196: tmp = t_1 elif t <= -1.9e-239: tmp = y * ((x * z) - (i * j)) elif t <= 4.2e-190: tmp = t_1 elif t <= 3e-104: tmp = i * ((a * b) - (y * j)) elif t <= 3.55e-31: tmp = x * ((y * z) - (t * a)) elif t <= 4e+64: tmp = t_2 else: tmp = t * ((c * j) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))) tmp = 0.0 if (t <= -1.8e+191) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (t <= -6.6e-24) tmp = t_2; elseif (t <= -3.7e-196) tmp = t_1; elseif (t <= -1.9e-239) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 4.2e-190) tmp = t_1; elseif (t <= 3e-104) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (t <= 3.55e-31) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (t <= 4e+64) tmp = t_2; else tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = (j * ((t * c) - (y * i))) + (i * (a * b)); tmp = 0.0; if (t <= -1.8e+191) tmp = a * ((b * i) - (x * t)); elseif (t <= -6.6e-24) tmp = t_2; elseif (t <= -3.7e-196) tmp = t_1; elseif (t <= -1.9e-239) tmp = y * ((x * z) - (i * j)); elseif (t <= 4.2e-190) tmp = t_1; elseif (t <= 3e-104) tmp = i * ((a * b) - (y * j)); elseif (t <= 3.55e-31) tmp = x * ((y * z) - (t * a)); elseif (t <= 4e+64) tmp = t_2; else tmp = t * ((c * j) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.8e+191], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.6e-24], t$95$2, If[LessEqual[t, -3.7e-196], t$95$1, If[LessEqual[t, -1.9e-239], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e-190], t$95$1, If[LessEqual[t, 3e-104], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.55e-31], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e+64], t$95$2, N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;t \leq -1.8 \cdot 10^{+191}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;t \leq -6.6 \cdot 10^{-24}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -3.7 \cdot 10^{-196}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{-239}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-190}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3 \cdot 10^{-104}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;t \leq 3.55 \cdot 10^{-31}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+64}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\end{array}
\end{array}
if t < -1.8e191Initial program 59.1%
Taylor expanded in i around -inf 62.1%
Taylor expanded in a around inf 83.5%
+-commutative83.5%
mul-1-neg83.5%
unsub-neg83.5%
Simplified83.5%
if -1.8e191 < t < -6.59999999999999968e-24 or 3.5499999999999999e-31 < t < 4.00000000000000009e64Initial program 72.6%
Taylor expanded in i around inf 57.6%
associate-*r*65.8%
*-commutative65.8%
Simplified65.8%
if -6.59999999999999968e-24 < t < -3.7000000000000001e-196 or -1.9000000000000001e-239 < t < 4.19999999999999983e-190Initial program 77.6%
Taylor expanded in z around inf 63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
if -3.7000000000000001e-196 < t < -1.9000000000000001e-239Initial program 70.2%
Taylor expanded in i around -inf 89.7%
Taylor expanded in y around inf 99.8%
+-commutative99.8%
mul-1-neg99.8%
unsub-neg99.8%
*-commutative99.8%
Simplified99.8%
if 4.19999999999999983e-190 < t < 3.0000000000000002e-104Initial program 77.8%
Taylor expanded in i around -inf 77.8%
Taylor expanded in i around inf 78.4%
neg-mul-178.4%
*-commutative78.4%
distribute-rgt-neg-in78.4%
Simplified78.4%
if 3.0000000000000002e-104 < t < 3.5499999999999999e-31Initial program 77.2%
Taylor expanded in i around -inf 92.4%
Taylor expanded in x around inf 70.2%
*-commutative70.2%
Simplified70.2%
if 4.00000000000000009e64 < t Initial program 55.2%
Taylor expanded in i around -inf 51.9%
Taylor expanded in t around inf 72.7%
+-commutative72.7%
mul-1-neg72.7%
unsub-neg72.7%
*-commutative72.7%
Simplified72.7%
Final simplification70.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* z (* c (- b)))) (t_3 (* y (* i (- j)))))
(if (<= t -1.2e+207)
(* x (* t (- a)))
(if (<= t -2.6e+109)
t_1
(if (<= t -6.5e+50)
t_3
(if (<= t -3.9e-38)
(* i (* a b))
(if (<= t -1e-159)
t_2
(if (<= t -2.06e-193)
(* x (* y z))
(if (<= t -1.06e-196)
t_2
(if (<= t -3.1e-239)
t_3
(if (<= t 2.4e-150)
(* (* z c) (- b))
(if (<= t 2.9)
(* j (* i (- y)))
(if (<= t 4.8e+94) t_1 (* (- 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 = c * (t * j);
double t_2 = z * (c * -b);
double t_3 = y * (i * -j);
double tmp;
if (t <= -1.2e+207) {
tmp = x * (t * -a);
} else if (t <= -2.6e+109) {
tmp = t_1;
} else if (t <= -6.5e+50) {
tmp = t_3;
} else if (t <= -3.9e-38) {
tmp = i * (a * b);
} else if (t <= -1e-159) {
tmp = t_2;
} else if (t <= -2.06e-193) {
tmp = x * (y * z);
} else if (t <= -1.06e-196) {
tmp = t_2;
} else if (t <= -3.1e-239) {
tmp = t_3;
} else if (t <= 2.4e-150) {
tmp = (z * c) * -b;
} else if (t <= 2.9) {
tmp = j * (i * -y);
} else if (t <= 4.8e+94) {
tmp = t_1;
} else {
tmp = -a * (x * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * (t * j)
t_2 = z * (c * -b)
t_3 = y * (i * -j)
if (t <= (-1.2d+207)) then
tmp = x * (t * -a)
else if (t <= (-2.6d+109)) then
tmp = t_1
else if (t <= (-6.5d+50)) then
tmp = t_3
else if (t <= (-3.9d-38)) then
tmp = i * (a * b)
else if (t <= (-1d-159)) then
tmp = t_2
else if (t <= (-2.06d-193)) then
tmp = x * (y * z)
else if (t <= (-1.06d-196)) then
tmp = t_2
else if (t <= (-3.1d-239)) then
tmp = t_3
else if (t <= 2.4d-150) then
tmp = (z * c) * -b
else if (t <= 2.9d0) then
tmp = j * (i * -y)
else if (t <= 4.8d+94) then
tmp = t_1
else
tmp = -a * (x * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = z * (c * -b);
double t_3 = y * (i * -j);
double tmp;
if (t <= -1.2e+207) {
tmp = x * (t * -a);
} else if (t <= -2.6e+109) {
tmp = t_1;
} else if (t <= -6.5e+50) {
tmp = t_3;
} else if (t <= -3.9e-38) {
tmp = i * (a * b);
} else if (t <= -1e-159) {
tmp = t_2;
} else if (t <= -2.06e-193) {
tmp = x * (y * z);
} else if (t <= -1.06e-196) {
tmp = t_2;
} else if (t <= -3.1e-239) {
tmp = t_3;
} else if (t <= 2.4e-150) {
tmp = (z * c) * -b;
} else if (t <= 2.9) {
tmp = j * (i * -y);
} else if (t <= 4.8e+94) {
tmp = t_1;
} else {
tmp = -a * (x * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = z * (c * -b) t_3 = y * (i * -j) tmp = 0 if t <= -1.2e+207: tmp = x * (t * -a) elif t <= -2.6e+109: tmp = t_1 elif t <= -6.5e+50: tmp = t_3 elif t <= -3.9e-38: tmp = i * (a * b) elif t <= -1e-159: tmp = t_2 elif t <= -2.06e-193: tmp = x * (y * z) elif t <= -1.06e-196: tmp = t_2 elif t <= -3.1e-239: tmp = t_3 elif t <= 2.4e-150: tmp = (z * c) * -b elif t <= 2.9: tmp = j * (i * -y) elif t <= 4.8e+94: tmp = t_1 else: tmp = -a * (x * t) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(z * Float64(c * Float64(-b))) t_3 = Float64(y * Float64(i * Float64(-j))) tmp = 0.0 if (t <= -1.2e+207) tmp = Float64(x * Float64(t * Float64(-a))); elseif (t <= -2.6e+109) tmp = t_1; elseif (t <= -6.5e+50) tmp = t_3; elseif (t <= -3.9e-38) tmp = Float64(i * Float64(a * b)); elseif (t <= -1e-159) tmp = t_2; elseif (t <= -2.06e-193) tmp = Float64(x * Float64(y * z)); elseif (t <= -1.06e-196) tmp = t_2; elseif (t <= -3.1e-239) tmp = t_3; elseif (t <= 2.4e-150) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (t <= 2.9) tmp = Float64(j * Float64(i * Float64(-y))); elseif (t <= 4.8e+94) tmp = t_1; else tmp = Float64(Float64(-a) * Float64(x * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = z * (c * -b); t_3 = y * (i * -j); tmp = 0.0; if (t <= -1.2e+207) tmp = x * (t * -a); elseif (t <= -2.6e+109) tmp = t_1; elseif (t <= -6.5e+50) tmp = t_3; elseif (t <= -3.9e-38) tmp = i * (a * b); elseif (t <= -1e-159) tmp = t_2; elseif (t <= -2.06e-193) tmp = x * (y * z); elseif (t <= -1.06e-196) tmp = t_2; elseif (t <= -3.1e-239) tmp = t_3; elseif (t <= 2.4e-150) tmp = (z * c) * -b; elseif (t <= 2.9) tmp = j * (i * -y); elseif (t <= 4.8e+94) tmp = t_1; else tmp = -a * (x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.2e+207], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.6e+109], t$95$1, If[LessEqual[t, -6.5e+50], t$95$3, If[LessEqual[t, -3.9e-38], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1e-159], t$95$2, If[LessEqual[t, -2.06e-193], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.06e-196], t$95$2, If[LessEqual[t, -3.1e-239], t$95$3, If[LessEqual[t, 2.4e-150], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[t, 2.9], N[(j * N[(i * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e+94], t$95$1, N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := z \cdot \left(c \cdot \left(-b\right)\right)\\
t_3 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;t \leq -1.2 \cdot 10^{+207}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;t \leq -2.6 \cdot 10^{+109}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -6.5 \cdot 10^{+50}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -3.9 \cdot 10^{-38}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-159}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -2.06 \cdot 10^{-193}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq -1.06 \cdot 10^{-196}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -3.1 \cdot 10^{-239}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-150}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;t \leq 2.9:\\
\;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{+94}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if t < -1.2e207Initial program 59.8%
Taylor expanded in i around -inf 63.0%
Taylor expanded in x around inf 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in y around 0 71.8%
mul-1-neg71.8%
associate-*r*74.1%
distribute-lft-neg-in74.1%
*-commutative74.1%
*-commutative74.1%
distribute-rgt-neg-in74.1%
Simplified74.1%
if -1.2e207 < t < -2.5999999999999998e109 or 2.89999999999999991 < t < 4.79999999999999965e94Initial program 67.2%
Taylor expanded in b around 0 60.3%
Taylor expanded in c around inf 56.7%
if -2.5999999999999998e109 < t < -6.5000000000000003e50 or -1.05999999999999994e-196 < t < -3.09999999999999985e-239Initial program 80.8%
Taylor expanded in i around inf 59.9%
distribute-lft-out--59.9%
Simplified59.9%
Taylor expanded in j around inf 48.8%
mul-1-neg48.8%
associate-*r*62.2%
*-commutative62.2%
Simplified62.2%
if -6.5000000000000003e50 < t < -3.8999999999999999e-38Initial program 77.6%
Taylor expanded in i around -inf 77.6%
Taylor expanded in z around 0 68.9%
+-commutative68.9%
associate-+l+68.9%
neg-mul-168.9%
*-commutative68.9%
distribute-rgt-neg-in68.9%
associate-*r*68.9%
*-commutative68.9%
associate-*r*69.0%
associate-*l*69.0%
distribute-rgt-in69.0%
mul-1-neg69.0%
unsub-neg69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in b around inf 40.4%
associate-*r*45.3%
Simplified45.3%
if -3.8999999999999999e-38 < t < -9.99999999999999989e-160 or -2.0600000000000001e-193 < t < -1.05999999999999994e-196Initial program 77.6%
Taylor expanded in z around inf 66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in y around 0 53.1%
neg-mul-153.1%
*-commutative53.1%
distribute-rgt-neg-in53.1%
Simplified53.1%
if -9.99999999999999989e-160 < t < -2.0600000000000001e-193Initial program 68.2%
Taylor expanded in i around -inf 77.4%
Taylor expanded in x around inf 67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in y around inf 67.3%
if -3.09999999999999985e-239 < t < 2.4e-150Initial program 75.4%
Taylor expanded in b around inf 51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in i around 0 41.4%
mul-1-neg41.4%
distribute-lft-neg-out41.4%
*-commutative41.4%
Simplified41.4%
if 2.4e-150 < t < 2.89999999999999991Initial program 83.3%
Taylor expanded in i around inf 53.4%
distribute-lft-out--53.4%
Simplified53.4%
Taylor expanded in j around inf 33.4%
mul-1-neg33.4%
*-commutative33.4%
associate-*r*40.8%
*-commutative40.8%
distribute-rgt-neg-out40.8%
distribute-rgt-neg-in40.8%
Simplified40.8%
if 4.79999999999999965e94 < t Initial program 51.2%
Taylor expanded in i around -inf 47.6%
Taylor expanded in x around inf 50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in y around 0 53.8%
mul-1-neg53.8%
Simplified53.8%
Final simplification53.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (* j (- (* t c) (* y i))) (* i (* a b))))
(t_3 (* c (- (* t j) (* z b)))))
(if (<= c -4.4e+60)
t_3
(if (<= c -0.00065)
t_2
(if (<= c -1.75e-30)
t_3
(if (<= c 3.9e-277)
(* a (- (* b i) (* x t)))
(if (<= c 3.0)
(- t_1 (* j (* y i)))
(if (<= c 5e+69) t_2 (if (<= c 1.15e+134) 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 = x * ((y * z) - (t * a));
double t_2 = (j * ((t * c) - (y * i))) + (i * (a * b));
double t_3 = c * ((t * j) - (z * b));
double tmp;
if (c <= -4.4e+60) {
tmp = t_3;
} else if (c <= -0.00065) {
tmp = t_2;
} else if (c <= -1.75e-30) {
tmp = t_3;
} else if (c <= 3.9e-277) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 3.0) {
tmp = t_1 - (j * (y * i));
} else if (c <= 5e+69) {
tmp = t_2;
} else if (c <= 1.15e+134) {
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 = x * ((y * z) - (t * a))
t_2 = (j * ((t * c) - (y * i))) + (i * (a * b))
t_3 = c * ((t * j) - (z * b))
if (c <= (-4.4d+60)) then
tmp = t_3
else if (c <= (-0.00065d0)) then
tmp = t_2
else if (c <= (-1.75d-30)) then
tmp = t_3
else if (c <= 3.9d-277) then
tmp = a * ((b * i) - (x * t))
else if (c <= 3.0d0) then
tmp = t_1 - (j * (y * i))
else if (c <= 5d+69) then
tmp = t_2
else if (c <= 1.15d+134) 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 = x * ((y * z) - (t * a));
double t_2 = (j * ((t * c) - (y * i))) + (i * (a * b));
double t_3 = c * ((t * j) - (z * b));
double tmp;
if (c <= -4.4e+60) {
tmp = t_3;
} else if (c <= -0.00065) {
tmp = t_2;
} else if (c <= -1.75e-30) {
tmp = t_3;
} else if (c <= 3.9e-277) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 3.0) {
tmp = t_1 - (j * (y * i));
} else if (c <= 5e+69) {
tmp = t_2;
} else if (c <= 1.15e+134) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (j * ((t * c) - (y * i))) + (i * (a * b)) t_3 = c * ((t * j) - (z * b)) tmp = 0 if c <= -4.4e+60: tmp = t_3 elif c <= -0.00065: tmp = t_2 elif c <= -1.75e-30: tmp = t_3 elif c <= 3.9e-277: tmp = a * ((b * i) - (x * t)) elif c <= 3.0: tmp = t_1 - (j * (y * i)) elif c <= 5e+69: tmp = t_2 elif c <= 1.15e+134: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))) t_3 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -4.4e+60) tmp = t_3; elseif (c <= -0.00065) tmp = t_2; elseif (c <= -1.75e-30) tmp = t_3; elseif (c <= 3.9e-277) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (c <= 3.0) tmp = Float64(t_1 - Float64(j * Float64(y * i))); elseif (c <= 5e+69) tmp = t_2; elseif (c <= 1.15e+134) 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 = x * ((y * z) - (t * a)); t_2 = (j * ((t * c) - (y * i))) + (i * (a * b)); t_3 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -4.4e+60) tmp = t_3; elseif (c <= -0.00065) tmp = t_2; elseif (c <= -1.75e-30) tmp = t_3; elseif (c <= 3.9e-277) tmp = a * ((b * i) - (x * t)); elseif (c <= 3.0) tmp = t_1 - (j * (y * i)); elseif (c <= 5e+69) tmp = t_2; elseif (c <= 1.15e+134) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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$3 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.4e+60], t$95$3, If[LessEqual[c, -0.00065], t$95$2, If[LessEqual[c, -1.75e-30], t$95$3, If[LessEqual[c, 3.9e-277], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.0], N[(t$95$1 - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5e+69], t$95$2, If[LessEqual[c, 1.15e+134], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
t_3 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -4.4 \cdot 10^{+60}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -0.00065:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.75 \cdot 10^{-30}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq 3.9 \cdot 10^{-277}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq 3:\\
\;\;\;\;t_1 - j \cdot \left(y \cdot i\right)\\
\mathbf{elif}\;c \leq 5 \cdot 10^{+69}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{+134}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -4.39999999999999992e60 or -6.4999999999999997e-4 < c < -1.7500000000000001e-30 or 1.1499999999999999e134 < c Initial program 57.5%
Taylor expanded in c around inf 71.8%
*-commutative71.8%
Simplified71.8%
if -4.39999999999999992e60 < c < -6.4999999999999997e-4 or 3 < c < 5.00000000000000036e69Initial program 72.7%
Taylor expanded in i around inf 64.7%
associate-*r*71.1%
*-commutative71.1%
Simplified71.1%
if -1.7500000000000001e-30 < c < 3.89999999999999987e-277Initial program 69.2%
Taylor expanded in i around -inf 75.6%
Taylor expanded in a around inf 66.7%
+-commutative66.7%
mul-1-neg66.7%
unsub-neg66.7%
Simplified66.7%
if 3.89999999999999987e-277 < c < 3Initial program 82.8%
Taylor expanded in b around 0 67.2%
Taylor expanded in c around 0 65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
*-commutative65.8%
*-commutative65.8%
associate-*r*67.3%
Simplified67.3%
if 5.00000000000000036e69 < c < 1.1499999999999999e134Initial program 59.8%
Taylor expanded in i around -inf 59.8%
Taylor expanded in x around inf 80.0%
*-commutative80.0%
Simplified80.0%
Final simplification69.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* i (- (* a b) (* y j))) (* z (* b c))))
(t_2 (* t (- (* c j) (* x a)))))
(if (<= t -2e+45)
(- t_2 (* i (* y j)))
(if (<= t -1.55e-273)
t_1
(if (<= t 4.8e-250)
(* z (- (* x y) (* b c)))
(if (<= t 1.32e-99)
t_1
(if (<= t 2.8e-22)
(- (* x (- (* y z) (* t a))) (* j (* y i)))
(if (<= t 1.5e+64)
(+ (* j (- (* t c) (* y i))) (* i (* a b)))
t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (i * ((a * b) - (y * j))) - (z * (b * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2e+45) {
tmp = t_2 - (i * (y * j));
} else if (t <= -1.55e-273) {
tmp = t_1;
} else if (t <= 4.8e-250) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.32e-99) {
tmp = t_1;
} else if (t <= 2.8e-22) {
tmp = (x * ((y * z) - (t * a))) - (j * (y * i));
} else if (t <= 1.5e+64) {
tmp = (j * ((t * c) - (y * i))) + (i * (a * b));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (i * ((a * b) - (y * j))) - (z * (b * c))
t_2 = t * ((c * j) - (x * a))
if (t <= (-2d+45)) then
tmp = t_2 - (i * (y * j))
else if (t <= (-1.55d-273)) then
tmp = t_1
else if (t <= 4.8d-250) then
tmp = z * ((x * y) - (b * c))
else if (t <= 1.32d-99) then
tmp = t_1
else if (t <= 2.8d-22) then
tmp = (x * ((y * z) - (t * a))) - (j * (y * i))
else if (t <= 1.5d+64) then
tmp = (j * ((t * c) - (y * i))) + (i * (a * b))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (i * ((a * b) - (y * j))) - (z * (b * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2e+45) {
tmp = t_2 - (i * (y * j));
} else if (t <= -1.55e-273) {
tmp = t_1;
} else if (t <= 4.8e-250) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.32e-99) {
tmp = t_1;
} else if (t <= 2.8e-22) {
tmp = (x * ((y * z) - (t * a))) - (j * (y * i));
} else if (t <= 1.5e+64) {
tmp = (j * ((t * c) - (y * i))) + (i * (a * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * ((a * b) - (y * j))) - (z * (b * c)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -2e+45: tmp = t_2 - (i * (y * j)) elif t <= -1.55e-273: tmp = t_1 elif t <= 4.8e-250: tmp = z * ((x * y) - (b * c)) elif t <= 1.32e-99: tmp = t_1 elif t <= 2.8e-22: tmp = (x * ((y * z) - (t * a))) - (j * (y * i)) elif t <= 1.5e+64: tmp = (j * ((t * c) - (y * i))) + (i * (a * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * Float64(Float64(a * b) - Float64(y * j))) - Float64(z * Float64(b * c))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -2e+45) tmp = Float64(t_2 - Float64(i * Float64(y * j))); elseif (t <= -1.55e-273) tmp = t_1; elseif (t <= 4.8e-250) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 1.32e-99) tmp = t_1; elseif (t <= 2.8e-22) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(j * Float64(y * i))); elseif (t <= 1.5e+64) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (i * ((a * b) - (y * j))) - (z * (b * c)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -2e+45) tmp = t_2 - (i * (y * j)); elseif (t <= -1.55e-273) tmp = t_1; elseif (t <= 4.8e-250) tmp = z * ((x * y) - (b * c)); elseif (t <= 1.32e-99) tmp = t_1; elseif (t <= 2.8e-22) tmp = (x * ((y * z) - (t * a))) - (j * (y * i)); elseif (t <= 1.5e+64) tmp = (j * ((t * c) - (y * i))) + (i * (a * b)); 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[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e+45], N[(t$95$2 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.55e-273], t$95$1, If[LessEqual[t, 4.8e-250], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.32e-99], t$95$1, If[LessEqual[t, 2.8e-22], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+64], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right) - z \cdot \left(b \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -2 \cdot 10^{+45}:\\
\;\;\;\;t_2 - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{-273}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-250}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 1.32 \cdot 10^{-99}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-22}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - j \cdot \left(y \cdot i\right)\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+64}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -1.9999999999999999e45Initial program 65.8%
Taylor expanded in i around -inf 67.2%
Taylor expanded in z around 0 64.7%
+-commutative64.7%
associate-+l+64.7%
neg-mul-164.7%
*-commutative64.7%
distribute-rgt-neg-in64.7%
associate-*r*69.6%
*-commutative69.6%
associate-*r*68.8%
associate-*l*68.8%
distribute-rgt-in72.4%
mul-1-neg72.4%
unsub-neg72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in j around inf 70.0%
mul-1-neg70.0%
*-commutative70.0%
distribute-rgt-neg-in70.0%
Simplified70.0%
if -1.9999999999999999e45 < t < -1.54999999999999994e-273 or 4.7999999999999998e-250 < t < 1.31999999999999999e-99Initial program 76.9%
Taylor expanded in i around -inf 81.1%
Taylor expanded in t around 0 77.0%
cancel-sign-sub-inv77.0%
associate-+l+77.0%
neg-mul-177.0%
*-commutative77.0%
distribute-rgt-neg-in77.0%
associate-*r*78.9%
*-commutative78.9%
associate-*r*79.0%
distribute-lft-neg-in79.0%
distribute-rgt-in81.2%
sub-neg81.2%
*-commutative81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in x around 0 68.7%
mul-1-neg68.7%
associate-*r*68.7%
distribute-rgt-neg-in68.7%
Simplified68.7%
if -1.54999999999999994e-273 < t < 4.7999999999999998e-250Initial program 66.5%
Taylor expanded in z around inf 80.3%
*-commutative80.3%
*-commutative80.3%
Simplified80.3%
if 1.31999999999999999e-99 < t < 2.79999999999999995e-22Initial program 85.4%
Taylor expanded in b around 0 85.8%
Taylor expanded in c around 0 79.9%
+-commutative79.9%
mul-1-neg79.9%
unsub-neg79.9%
*-commutative79.9%
*-commutative79.9%
associate-*r*85.8%
Simplified85.8%
if 2.79999999999999995e-22 < t < 1.5000000000000001e64Initial program 70.1%
Taylor expanded in i around inf 67.3%
associate-*r*72.3%
*-commutative72.3%
Simplified72.3%
if 1.5000000000000001e64 < t Initial program 55.2%
Taylor expanded in i around -inf 51.9%
Taylor expanded in t around inf 72.7%
+-commutative72.7%
mul-1-neg72.7%
unsub-neg72.7%
*-commutative72.7%
Simplified72.7%
Final simplification71.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i)))))
(t_2 (* z (- (* x y) (* b c)))))
(if (<= z -2.7e+174)
t_2
(if (<= z -3.5e+113)
t_1
(if (<= z -3.6e+32)
(* b (- (* a i) (* z c)))
(if (<= z 1.15e+171) 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))) + (j * ((t * c) - (y * i)));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -2.7e+174) {
tmp = t_2;
} else if (z <= -3.5e+113) {
tmp = t_1;
} else if (z <= -3.6e+32) {
tmp = b * ((a * i) - (z * c));
} else if (z <= 1.15e+171) {
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))) + (j * ((t * c) - (y * i)))
t_2 = z * ((x * y) - (b * c))
if (z <= (-2.7d+174)) then
tmp = t_2
else if (z <= (-3.5d+113)) then
tmp = t_1
else if (z <= (-3.6d+32)) then
tmp = b * ((a * i) - (z * c))
else if (z <= 1.15d+171) 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))) + (j * ((t * c) - (y * i)));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -2.7e+174) {
tmp = t_2;
} else if (z <= -3.5e+113) {
tmp = t_1;
} else if (z <= -3.6e+32) {
tmp = b * ((a * i) - (z * c));
} else if (z <= 1.15e+171) {
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))) + (j * ((t * c) - (y * i))) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -2.7e+174: tmp = t_2 elif z <= -3.5e+113: tmp = t_1 elif z <= -3.6e+32: tmp = b * ((a * i) - (z * c)) elif z <= 1.15e+171: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -2.7e+174) tmp = t_2; elseif (z <= -3.5e+113) tmp = t_1; elseif (z <= -3.6e+32) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (z <= 1.15e+171) 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))) + (j * ((t * c) - (y * i))); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -2.7e+174) tmp = t_2; elseif (z <= -3.5e+113) tmp = t_1; elseif (z <= -3.6e+32) tmp = b * ((a * i) - (z * c)); elseif (z <= 1.15e+171) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.7e+174], t$95$2, If[LessEqual[z, -3.5e+113], t$95$1, If[LessEqual[z, -3.6e+32], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.15e+171], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -2.7 \cdot 10^{+174}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{+113}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.6 \cdot 10^{+32}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{+171}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -2.6999999999999999e174 or 1.15000000000000009e171 < z Initial program 47.8%
Taylor expanded in z around inf 78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
if -2.6999999999999999e174 < z < -3.5000000000000001e113 or -3.5999999999999997e32 < z < 1.15000000000000009e171Initial program 76.5%
Taylor expanded in b around 0 66.4%
if -3.5000000000000001e113 < z < -3.5999999999999997e32Initial program 66.7%
Taylor expanded in b around inf 72.7%
*-commutative72.7%
Simplified72.7%
Final simplification69.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -8e+17)
t_2
(if (<= x -1.14e-69)
(* i (- (* a b) (* y j)))
(if (<= x -1.15e-128)
(* c (- (* t j) (* z b)))
(if (<= x 1.15e-80)
(+ t_1 (* b (- (* a i) (* z c))))
(+ t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -8e+17) {
tmp = t_2;
} else if (x <= -1.14e-69) {
tmp = i * ((a * b) - (y * j));
} else if (x <= -1.15e-128) {
tmp = c * ((t * j) - (z * b));
} else if (x <= 1.15e-80) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = t_2 + 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 = j * ((t * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
if (x <= (-8d+17)) then
tmp = t_2
else if (x <= (-1.14d-69)) then
tmp = i * ((a * b) - (y * j))
else if (x <= (-1.15d-128)) then
tmp = c * ((t * j) - (z * b))
else if (x <= 1.15d-80) then
tmp = t_1 + (b * ((a * i) - (z * c)))
else
tmp = t_2 + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -8e+17) {
tmp = t_2;
} else if (x <= -1.14e-69) {
tmp = i * ((a * b) - (y * j));
} else if (x <= -1.15e-128) {
tmp = c * ((t * j) - (z * b));
} else if (x <= 1.15e-80) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = t_2 + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if x <= -8e+17: tmp = t_2 elif x <= -1.14e-69: tmp = i * ((a * b) - (y * j)) elif x <= -1.15e-128: tmp = c * ((t * j) - (z * b)) elif x <= 1.15e-80: tmp = t_1 + (b * ((a * i) - (z * c))) else: tmp = t_2 + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -8e+17) tmp = t_2; elseif (x <= -1.14e-69) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (x <= -1.15e-128) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (x <= 1.15e-80) tmp = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(t_2 + 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)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -8e+17) tmp = t_2; elseif (x <= -1.14e-69) tmp = i * ((a * b) - (y * j)); elseif (x <= -1.15e-128) tmp = c * ((t * j) - (z * b)); elseif (x <= 1.15e-80) tmp = t_1 + (b * ((a * i) - (z * c))); else tmp = t_2 + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8e+17], t$95$2, If[LessEqual[x, -1.14e-69], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.15e-128], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e-80], N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 + t$95$1), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -8 \cdot 10^{+17}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.14 \cdot 10^{-69}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq -1.15 \cdot 10^{-128}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-80}:\\
\;\;\;\;t_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_2 + t_1\\
\end{array}
\end{array}
if x < -8e17Initial program 67.1%
Taylor expanded in i around -inf 69.0%
Taylor expanded in x around inf 80.9%
*-commutative80.9%
Simplified80.9%
if -8e17 < x < -1.14000000000000006e-69Initial program 60.3%
Taylor expanded in i around -inf 66.7%
Taylor expanded in i around inf 61.2%
neg-mul-161.2%
*-commutative61.2%
distribute-rgt-neg-in61.2%
Simplified61.2%
if -1.14000000000000006e-69 < x < -1.15e-128Initial program 54.1%
Taylor expanded in c around inf 74.7%
*-commutative74.7%
Simplified74.7%
if -1.15e-128 < x < 1.1499999999999999e-80Initial program 69.7%
Taylor expanded in x around 0 73.0%
*-commutative73.0%
Simplified73.0%
if 1.1499999999999999e-80 < x Initial program 73.2%
Taylor expanded in b around 0 68.8%
Final simplification72.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* z (* c (- b)))) (t_3 (* y (* i (- j)))))
(if (<= t -1.3e+207)
(* x (* t (- a)))
(if (<= t -1.35e+110)
t_1
(if (<= t -2.2e+51)
t_3
(if (<= t -4e-37)
(* i (* a b))
(if (<= t -8.5e-159)
t_2
(if (<= t -3.5e-192)
(* x (* y z))
(if (<= t -5.6e-197)
t_2
(if (<= t -1.15e-239)
t_3
(if (<= t 3.4e-28)
(* y (* x z))
(if (<= t 4.3e+103) t_1 (* (- 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 = c * (t * j);
double t_2 = z * (c * -b);
double t_3 = y * (i * -j);
double tmp;
if (t <= -1.3e+207) {
tmp = x * (t * -a);
} else if (t <= -1.35e+110) {
tmp = t_1;
} else if (t <= -2.2e+51) {
tmp = t_3;
} else if (t <= -4e-37) {
tmp = i * (a * b);
} else if (t <= -8.5e-159) {
tmp = t_2;
} else if (t <= -3.5e-192) {
tmp = x * (y * z);
} else if (t <= -5.6e-197) {
tmp = t_2;
} else if (t <= -1.15e-239) {
tmp = t_3;
} else if (t <= 3.4e-28) {
tmp = y * (x * z);
} else if (t <= 4.3e+103) {
tmp = t_1;
} else {
tmp = -a * (x * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * (t * j)
t_2 = z * (c * -b)
t_3 = y * (i * -j)
if (t <= (-1.3d+207)) then
tmp = x * (t * -a)
else if (t <= (-1.35d+110)) then
tmp = t_1
else if (t <= (-2.2d+51)) then
tmp = t_3
else if (t <= (-4d-37)) then
tmp = i * (a * b)
else if (t <= (-8.5d-159)) then
tmp = t_2
else if (t <= (-3.5d-192)) then
tmp = x * (y * z)
else if (t <= (-5.6d-197)) then
tmp = t_2
else if (t <= (-1.15d-239)) then
tmp = t_3
else if (t <= 3.4d-28) then
tmp = y * (x * z)
else if (t <= 4.3d+103) then
tmp = t_1
else
tmp = -a * (x * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = z * (c * -b);
double t_3 = y * (i * -j);
double tmp;
if (t <= -1.3e+207) {
tmp = x * (t * -a);
} else if (t <= -1.35e+110) {
tmp = t_1;
} else if (t <= -2.2e+51) {
tmp = t_3;
} else if (t <= -4e-37) {
tmp = i * (a * b);
} else if (t <= -8.5e-159) {
tmp = t_2;
} else if (t <= -3.5e-192) {
tmp = x * (y * z);
} else if (t <= -5.6e-197) {
tmp = t_2;
} else if (t <= -1.15e-239) {
tmp = t_3;
} else if (t <= 3.4e-28) {
tmp = y * (x * z);
} else if (t <= 4.3e+103) {
tmp = t_1;
} else {
tmp = -a * (x * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = z * (c * -b) t_3 = y * (i * -j) tmp = 0 if t <= -1.3e+207: tmp = x * (t * -a) elif t <= -1.35e+110: tmp = t_1 elif t <= -2.2e+51: tmp = t_3 elif t <= -4e-37: tmp = i * (a * b) elif t <= -8.5e-159: tmp = t_2 elif t <= -3.5e-192: tmp = x * (y * z) elif t <= -5.6e-197: tmp = t_2 elif t <= -1.15e-239: tmp = t_3 elif t <= 3.4e-28: tmp = y * (x * z) elif t <= 4.3e+103: tmp = t_1 else: tmp = -a * (x * t) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(z * Float64(c * Float64(-b))) t_3 = Float64(y * Float64(i * Float64(-j))) tmp = 0.0 if (t <= -1.3e+207) tmp = Float64(x * Float64(t * Float64(-a))); elseif (t <= -1.35e+110) tmp = t_1; elseif (t <= -2.2e+51) tmp = t_3; elseif (t <= -4e-37) tmp = Float64(i * Float64(a * b)); elseif (t <= -8.5e-159) tmp = t_2; elseif (t <= -3.5e-192) tmp = Float64(x * Float64(y * z)); elseif (t <= -5.6e-197) tmp = t_2; elseif (t <= -1.15e-239) tmp = t_3; elseif (t <= 3.4e-28) tmp = Float64(y * Float64(x * z)); elseif (t <= 4.3e+103) tmp = t_1; else tmp = Float64(Float64(-a) * Float64(x * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = z * (c * -b); t_3 = y * (i * -j); tmp = 0.0; if (t <= -1.3e+207) tmp = x * (t * -a); elseif (t <= -1.35e+110) tmp = t_1; elseif (t <= -2.2e+51) tmp = t_3; elseif (t <= -4e-37) tmp = i * (a * b); elseif (t <= -8.5e-159) tmp = t_2; elseif (t <= -3.5e-192) tmp = x * (y * z); elseif (t <= -5.6e-197) tmp = t_2; elseif (t <= -1.15e-239) tmp = t_3; elseif (t <= 3.4e-28) tmp = y * (x * z); elseif (t <= 4.3e+103) tmp = t_1; else tmp = -a * (x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.3e+207], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.35e+110], t$95$1, If[LessEqual[t, -2.2e+51], t$95$3, If[LessEqual[t, -4e-37], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.5e-159], t$95$2, If[LessEqual[t, -3.5e-192], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.6e-197], t$95$2, If[LessEqual[t, -1.15e-239], t$95$3, If[LessEqual[t, 3.4e-28], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.3e+103], t$95$1, N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := z \cdot \left(c \cdot \left(-b\right)\right)\\
t_3 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+207}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;t \leq -1.35 \cdot 10^{+110}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.2 \cdot 10^{+51}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -4 \cdot 10^{-37}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;t \leq -8.5 \cdot 10^{-159}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{-192}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq -5.6 \cdot 10^{-197}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.15 \cdot 10^{-239}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-28}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{+103}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if t < -1.2999999999999999e207Initial program 59.8%
Taylor expanded in i around -inf 63.0%
Taylor expanded in x around inf 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in y around 0 71.8%
mul-1-neg71.8%
associate-*r*74.1%
distribute-lft-neg-in74.1%
*-commutative74.1%
*-commutative74.1%
distribute-rgt-neg-in74.1%
Simplified74.1%
if -1.2999999999999999e207 < t < -1.35000000000000005e110 or 3.4000000000000001e-28 < t < 4.29999999999999969e103Initial program 68.6%
Taylor expanded in b around 0 57.9%
Taylor expanded in c around inf 50.6%
if -1.35000000000000005e110 < t < -2.19999999999999992e51 or -5.6000000000000004e-197 < t < -1.1499999999999999e-239Initial program 80.8%
Taylor expanded in i around inf 59.9%
distribute-lft-out--59.9%
Simplified59.9%
Taylor expanded in j around inf 48.8%
mul-1-neg48.8%
associate-*r*62.2%
*-commutative62.2%
Simplified62.2%
if -2.19999999999999992e51 < t < -4.00000000000000027e-37Initial program 77.6%
Taylor expanded in i around -inf 77.6%
Taylor expanded in z around 0 68.9%
+-commutative68.9%
associate-+l+68.9%
neg-mul-168.9%
*-commutative68.9%
distribute-rgt-neg-in68.9%
associate-*r*68.9%
*-commutative68.9%
associate-*r*69.0%
associate-*l*69.0%
distribute-rgt-in69.0%
mul-1-neg69.0%
unsub-neg69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in b around inf 40.4%
associate-*r*45.3%
Simplified45.3%
if -4.00000000000000027e-37 < t < -8.4999999999999998e-159 or -3.50000000000000014e-192 < t < -5.6000000000000004e-197Initial program 77.6%
Taylor expanded in z around inf 66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in y around 0 53.1%
neg-mul-153.1%
*-commutative53.1%
distribute-rgt-neg-in53.1%
Simplified53.1%
if -8.4999999999999998e-159 < t < -3.50000000000000014e-192Initial program 68.2%
Taylor expanded in i around -inf 77.4%
Taylor expanded in x around inf 67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in y around inf 67.3%
if -1.1499999999999999e-239 < t < 3.4000000000000001e-28Initial program 78.2%
Taylor expanded in i around -inf 81.7%
Taylor expanded in x around inf 41.6%
*-commutative41.6%
Simplified41.6%
Taylor expanded in y around inf 35.1%
associate-*r*32.8%
*-commutative32.8%
associate-*r*37.3%
Simplified37.3%
if 4.29999999999999969e103 < t Initial program 51.2%
Taylor expanded in i around -inf 47.6%
Taylor expanded in x around inf 50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in y around 0 53.8%
mul-1-neg53.8%
Simplified53.8%
Final simplification52.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -1.15e+25)
t_2
(if (<= x -2.3e-238)
(+ (* t (- (* c j) (* x a))) (* i (- (* a b) (* y j))))
(if (<= x 7.2e-77) (+ t_1 (* b (- (* a i) (* z c)))) (+ t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.15e+25) {
tmp = t_2;
} else if (x <= -2.3e-238) {
tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j)));
} else if (x <= 7.2e-77) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = t_2 + 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 = j * ((t * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
if (x <= (-1.15d+25)) then
tmp = t_2
else if (x <= (-2.3d-238)) then
tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j)))
else if (x <= 7.2d-77) then
tmp = t_1 + (b * ((a * i) - (z * c)))
else
tmp = t_2 + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.15e+25) {
tmp = t_2;
} else if (x <= -2.3e-238) {
tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j)));
} else if (x <= 7.2e-77) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = t_2 + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.15e+25: tmp = t_2 elif x <= -2.3e-238: tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j))) elif x <= 7.2e-77: tmp = t_1 + (b * ((a * i) - (z * c))) else: tmp = t_2 + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.15e+25) tmp = t_2; elseif (x <= -2.3e-238) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(i * Float64(Float64(a * b) - Float64(y * j)))); elseif (x <= 7.2e-77) tmp = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(t_2 + 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)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -1.15e+25) tmp = t_2; elseif (x <= -2.3e-238) tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j))); elseif (x <= 7.2e-77) tmp = t_1 + (b * ((a * i) - (z * c))); else tmp = t_2 + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.15e+25], t$95$2, If[LessEqual[x, -2.3e-238], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.2e-77], N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 + t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.15 \cdot 10^{+25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{-238}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{-77}:\\
\;\;\;\;t_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_2 + t_1\\
\end{array}
\end{array}
if x < -1.1499999999999999e25Initial program 65.8%
Taylor expanded in i around -inf 67.8%
Taylor expanded in x around inf 82.2%
*-commutative82.2%
Simplified82.2%
if -1.1499999999999999e25 < x < -2.30000000000000005e-238Initial program 61.6%
Taylor expanded in i around -inf 72.4%
Taylor expanded in z around 0 68.8%
+-commutative68.8%
associate-+l+68.8%
neg-mul-168.8%
*-commutative68.8%
distribute-rgt-neg-in68.8%
associate-*r*70.3%
*-commutative70.3%
associate-*r*70.3%
associate-*l*70.3%
distribute-rgt-in70.3%
mul-1-neg70.3%
unsub-neg70.3%
*-commutative70.3%
Simplified70.3%
if -2.30000000000000005e-238 < x < 7.2e-77Initial program 71.6%
Taylor expanded in x around 0 77.8%
*-commutative77.8%
Simplified77.8%
if 7.2e-77 < x Initial program 73.2%
Taylor expanded in b around 0 68.8%
Final simplification74.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))) (t_2 (* t (- (* c j) (* x a)))))
(if (<= t -5.7e+47)
(+ t_2 t_1)
(if (<= t 1.5e+49) (+ t_1 (* z (- (* x y) (* b c)))) t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -5.7e+47) {
tmp = t_2 + t_1;
} else if (t <= 1.5e+49) {
tmp = t_1 + (z * ((x * y) - (b * c)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
t_2 = t * ((c * j) - (x * a))
if (t <= (-5.7d+47)) then
tmp = t_2 + t_1
else if (t <= 1.5d+49) then
tmp = t_1 + (z * ((x * y) - (b * c)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -5.7e+47) {
tmp = t_2 + t_1;
} else if (t <= 1.5e+49) {
tmp = t_1 + (z * ((x * y) - (b * c)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -5.7e+47: tmp = t_2 + t_1 elif t <= 1.5e+49: tmp = t_1 + (z * ((x * y) - (b * c))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -5.7e+47) tmp = Float64(t_2 + t_1); elseif (t <= 1.5e+49) tmp = Float64(t_1 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -5.7e+47) tmp = t_2 + t_1; elseif (t <= 1.5e+49) tmp = t_1 + (z * ((x * y) - (b * c))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.7e+47], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[t, 1.5e+49], N[(t$95$1 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -5.7 \cdot 10^{+47}:\\
\;\;\;\;t_2 + t_1\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+49}:\\
\;\;\;\;t_1 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -5.6999999999999997e47Initial program 65.8%
Taylor expanded in i around -inf 67.2%
Taylor expanded in z around 0 64.7%
+-commutative64.7%
associate-+l+64.7%
neg-mul-164.7%
*-commutative64.7%
distribute-rgt-neg-in64.7%
associate-*r*69.6%
*-commutative69.6%
associate-*r*68.8%
associate-*l*68.8%
distribute-rgt-in72.4%
mul-1-neg72.4%
unsub-neg72.4%
*-commutative72.4%
Simplified72.4%
if -5.6999999999999997e47 < t < 1.5000000000000001e49Initial program 76.1%
Taylor expanded in i around -inf 79.0%
Taylor expanded in t around 0 71.8%
cancel-sign-sub-inv71.8%
associate-+l+71.8%
neg-mul-171.8%
*-commutative71.8%
distribute-rgt-neg-in71.8%
associate-*r*73.9%
*-commutative73.9%
associate-*r*74.0%
distribute-lft-neg-in74.0%
distribute-rgt-in77.7%
sub-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
if 1.5000000000000001e49 < t Initial program 56.2%
Taylor expanded in i around -inf 54.6%
Taylor expanded in t around inf 72.3%
+-commutative72.3%
mul-1-neg72.3%
unsub-neg72.3%
*-commutative72.3%
Simplified72.3%
Final simplification75.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* y (* x z))) (t_3 (* (- a) (* x t))))
(if (<= t -6.2e+207)
t_3
(if (<= t -6.5e+110)
t_1
(if (<= t -6.7e+105)
t_2
(if (<= t -5e+52)
(* y (* i (- j)))
(if (<= t -2.8e-60)
(* i (* a b))
(if (<= t 3.5e-28) t_2 (if (<= t 1.9e+105) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = y * (x * z);
double t_3 = -a * (x * t);
double tmp;
if (t <= -6.2e+207) {
tmp = t_3;
} else if (t <= -6.5e+110) {
tmp = t_1;
} else if (t <= -6.7e+105) {
tmp = t_2;
} else if (t <= -5e+52) {
tmp = y * (i * -j);
} else if (t <= -2.8e-60) {
tmp = i * (a * b);
} else if (t <= 3.5e-28) {
tmp = t_2;
} else if (t <= 1.9e+105) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * (t * j)
t_2 = y * (x * z)
t_3 = -a * (x * t)
if (t <= (-6.2d+207)) then
tmp = t_3
else if (t <= (-6.5d+110)) then
tmp = t_1
else if (t <= (-6.7d+105)) then
tmp = t_2
else if (t <= (-5d+52)) then
tmp = y * (i * -j)
else if (t <= (-2.8d-60)) then
tmp = i * (a * b)
else if (t <= 3.5d-28) then
tmp = t_2
else if (t <= 1.9d+105) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = y * (x * z);
double t_3 = -a * (x * t);
double tmp;
if (t <= -6.2e+207) {
tmp = t_3;
} else if (t <= -6.5e+110) {
tmp = t_1;
} else if (t <= -6.7e+105) {
tmp = t_2;
} else if (t <= -5e+52) {
tmp = y * (i * -j);
} else if (t <= -2.8e-60) {
tmp = i * (a * b);
} else if (t <= 3.5e-28) {
tmp = t_2;
} else if (t <= 1.9e+105) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = y * (x * z) t_3 = -a * (x * t) tmp = 0 if t <= -6.2e+207: tmp = t_3 elif t <= -6.5e+110: tmp = t_1 elif t <= -6.7e+105: tmp = t_2 elif t <= -5e+52: tmp = y * (i * -j) elif t <= -2.8e-60: tmp = i * (a * b) elif t <= 3.5e-28: tmp = t_2 elif t <= 1.9e+105: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(y * Float64(x * z)) t_3 = Float64(Float64(-a) * Float64(x * t)) tmp = 0.0 if (t <= -6.2e+207) tmp = t_3; elseif (t <= -6.5e+110) tmp = t_1; elseif (t <= -6.7e+105) tmp = t_2; elseif (t <= -5e+52) tmp = Float64(y * Float64(i * Float64(-j))); elseif (t <= -2.8e-60) tmp = Float64(i * Float64(a * b)); elseif (t <= 3.5e-28) tmp = t_2; elseif (t <= 1.9e+105) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = y * (x * z); t_3 = -a * (x * t); tmp = 0.0; if (t <= -6.2e+207) tmp = t_3; elseif (t <= -6.5e+110) tmp = t_1; elseif (t <= -6.7e+105) tmp = t_2; elseif (t <= -5e+52) tmp = y * (i * -j); elseif (t <= -2.8e-60) tmp = i * (a * b); elseif (t <= 3.5e-28) tmp = t_2; elseif (t <= 1.9e+105) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.2e+207], t$95$3, If[LessEqual[t, -6.5e+110], t$95$1, If[LessEqual[t, -6.7e+105], t$95$2, If[LessEqual[t, -5e+52], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.8e-60], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e-28], t$95$2, If[LessEqual[t, 1.9e+105], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := y \cdot \left(x \cdot z\right)\\
t_3 := \left(-a\right) \cdot \left(x \cdot t\right)\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{+207}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -6.5 \cdot 10^{+110}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -6.7 \cdot 10^{+105}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -5 \cdot 10^{+52}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{-60}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-28}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{+105}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -6.2000000000000005e207 or 1.9e105 < t Initial program 54.1%
Taylor expanded in i around -inf 52.7%
Taylor expanded in x around inf 59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in y around 0 59.7%
mul-1-neg59.7%
Simplified59.7%
if -6.2000000000000005e207 < t < -6.4999999999999997e110 or 3.5e-28 < t < 1.9e105Initial program 68.6%
Taylor expanded in b around 0 57.9%
Taylor expanded in c around inf 50.6%
if -6.4999999999999997e110 < t < -6.7000000000000004e105 or -2.8000000000000002e-60 < t < 3.5e-28Initial program 77.4%
Taylor expanded in i around -inf 83.2%
Taylor expanded in x around inf 39.2%
*-commutative39.2%
Simplified39.2%
Taylor expanded in y around inf 33.4%
associate-*r*31.1%
*-commutative31.1%
associate-*r*35.6%
Simplified35.6%
if -6.7000000000000004e105 < t < -5e52Initial program 87.3%
Taylor expanded in i around inf 61.4%
distribute-lft-out--61.4%
Simplified61.4%
Taylor expanded in j around inf 50.1%
mul-1-neg50.1%
associate-*r*61.9%
*-commutative61.9%
Simplified61.9%
if -5e52 < t < -2.8000000000000002e-60Initial program 76.0%
Taylor expanded in i around -inf 76.0%
Taylor expanded in z around 0 68.9%
+-commutative68.9%
associate-+l+68.9%
neg-mul-168.9%
*-commutative68.9%
distribute-rgt-neg-in68.9%
associate-*r*68.9%
*-commutative68.9%
associate-*r*69.0%
associate-*l*69.0%
distribute-rgt-in69.0%
mul-1-neg69.0%
unsub-neg69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in b around inf 39.4%
associate-*r*43.7%
Simplified43.7%
Final simplification47.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -1.9e-33)
t_2
(if (<= c 2.7e-278)
(* a (- (* b i) (* x t)))
(if (<= c 2.2e-20)
t_1
(if (<= c 3.4e+70)
(* b (- (* a i) (* z c)))
(if (<= c 6.5e+133) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.9e-33) {
tmp = t_2;
} else if (c <= 2.7e-278) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 2.2e-20) {
tmp = t_1;
} else if (c <= 3.4e+70) {
tmp = b * ((a * i) - (z * c));
} else if (c <= 6.5e+133) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = c * ((t * j) - (z * b))
if (c <= (-1.9d-33)) then
tmp = t_2
else if (c <= 2.7d-278) then
tmp = a * ((b * i) - (x * t))
else if (c <= 2.2d-20) then
tmp = t_1
else if (c <= 3.4d+70) then
tmp = b * ((a * i) - (z * c))
else if (c <= 6.5d+133) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.9e-33) {
tmp = t_2;
} else if (c <= 2.7e-278) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 2.2e-20) {
tmp = t_1;
} else if (c <= 3.4e+70) {
tmp = b * ((a * i) - (z * c));
} else if (c <= 6.5e+133) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -1.9e-33: tmp = t_2 elif c <= 2.7e-278: tmp = a * ((b * i) - (x * t)) elif c <= 2.2e-20: tmp = t_1 elif c <= 3.4e+70: tmp = b * ((a * i) - (z * c)) elif c <= 6.5e+133: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.9e-33) tmp = t_2; elseif (c <= 2.7e-278) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (c <= 2.2e-20) tmp = t_1; elseif (c <= 3.4e+70) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (c <= 6.5e+133) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -1.9e-33) tmp = t_2; elseif (c <= 2.7e-278) tmp = a * ((b * i) - (x * t)); elseif (c <= 2.2e-20) tmp = t_1; elseif (c <= 3.4e+70) tmp = b * ((a * i) - (z * c)); elseif (c <= 6.5e+133) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.9e-33], t$95$2, If[LessEqual[c, 2.7e-278], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.2e-20], t$95$1, If[LessEqual[c, 3.4e+70], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.5e+133], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.9 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{-278}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq 2.2 \cdot 10^{-20}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 3.4 \cdot 10^{+70}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;c \leq 6.5 \cdot 10^{+133}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -1.89999999999999997e-33 or 6.5000000000000004e133 < c Initial program 59.5%
Taylor expanded in c around inf 67.8%
*-commutative67.8%
Simplified67.8%
if -1.89999999999999997e-33 < c < 2.7000000000000001e-278Initial program 69.2%
Taylor expanded in i around -inf 75.6%
Taylor expanded in a around inf 66.7%
+-commutative66.7%
mul-1-neg66.7%
unsub-neg66.7%
Simplified66.7%
if 2.7000000000000001e-278 < c < 2.19999999999999991e-20 or 3.4000000000000001e70 < c < 6.5000000000000004e133Initial program 77.4%
Taylor expanded in i around -inf 73.6%
Taylor expanded in x around inf 59.0%
*-commutative59.0%
Simplified59.0%
if 2.19999999999999991e-20 < c < 3.4000000000000001e70Initial program 79.5%
Taylor expanded in b around inf 49.6%
*-commutative49.6%
Simplified49.6%
Final simplification63.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= t -1.65e+208)
(* x (* t (- a)))
(if (<= t -2.3e+109)
t_1
(if (<= t -3.5e+51)
(* y (* i (- j)))
(if (<= t -2.7e-56)
(* i (* a b))
(if (<= t 3.4e-28)
(* y (* x z))
(if (<= t 9.5e+96) t_1 (* (- 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 = c * (t * j);
double tmp;
if (t <= -1.65e+208) {
tmp = x * (t * -a);
} else if (t <= -2.3e+109) {
tmp = t_1;
} else if (t <= -3.5e+51) {
tmp = y * (i * -j);
} else if (t <= -2.7e-56) {
tmp = i * (a * b);
} else if (t <= 3.4e-28) {
tmp = y * (x * z);
} else if (t <= 9.5e+96) {
tmp = t_1;
} else {
tmp = -a * (x * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (t <= (-1.65d+208)) then
tmp = x * (t * -a)
else if (t <= (-2.3d+109)) then
tmp = t_1
else if (t <= (-3.5d+51)) then
tmp = y * (i * -j)
else if (t <= (-2.7d-56)) then
tmp = i * (a * b)
else if (t <= 3.4d-28) then
tmp = y * (x * z)
else if (t <= 9.5d+96) then
tmp = t_1
else
tmp = -a * (x * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -1.65e+208) {
tmp = x * (t * -a);
} else if (t <= -2.3e+109) {
tmp = t_1;
} else if (t <= -3.5e+51) {
tmp = y * (i * -j);
} else if (t <= -2.7e-56) {
tmp = i * (a * b);
} else if (t <= 3.4e-28) {
tmp = y * (x * z);
} else if (t <= 9.5e+96) {
tmp = t_1;
} else {
tmp = -a * (x * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if t <= -1.65e+208: tmp = x * (t * -a) elif t <= -2.3e+109: tmp = t_1 elif t <= -3.5e+51: tmp = y * (i * -j) elif t <= -2.7e-56: tmp = i * (a * b) elif t <= 3.4e-28: tmp = y * (x * z) elif t <= 9.5e+96: tmp = t_1 else: tmp = -a * (x * t) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (t <= -1.65e+208) tmp = Float64(x * Float64(t * Float64(-a))); elseif (t <= -2.3e+109) tmp = t_1; elseif (t <= -3.5e+51) tmp = Float64(y * Float64(i * Float64(-j))); elseif (t <= -2.7e-56) tmp = Float64(i * Float64(a * b)); elseif (t <= 3.4e-28) tmp = Float64(y * Float64(x * z)); elseif (t <= 9.5e+96) tmp = t_1; else tmp = Float64(Float64(-a) * Float64(x * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (t <= -1.65e+208) tmp = x * (t * -a); elseif (t <= -2.3e+109) tmp = t_1; elseif (t <= -3.5e+51) tmp = y * (i * -j); elseif (t <= -2.7e-56) tmp = i * (a * b); elseif (t <= 3.4e-28) tmp = y * (x * z); elseif (t <= 9.5e+96) tmp = t_1; else tmp = -a * (x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.65e+208], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.3e+109], t$95$1, If[LessEqual[t, -3.5e+51], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.7e-56], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e-28], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e+96], t$95$1, N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;t \leq -1.65 \cdot 10^{+208}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;t \leq -2.3 \cdot 10^{+109}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{+51}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;t \leq -2.7 \cdot 10^{-56}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-28}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{+96}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if t < -1.65e208Initial program 59.8%
Taylor expanded in i around -inf 63.0%
Taylor expanded in x around inf 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in y around 0 71.8%
mul-1-neg71.8%
associate-*r*74.1%
distribute-lft-neg-in74.1%
*-commutative74.1%
*-commutative74.1%
distribute-rgt-neg-in74.1%
Simplified74.1%
if -1.65e208 < t < -2.3000000000000001e109 or 3.4000000000000001e-28 < t < 9.50000000000000089e96Initial program 68.6%
Taylor expanded in b around 0 57.9%
Taylor expanded in c around inf 50.6%
if -2.3000000000000001e109 < t < -3.5e51Initial program 90.5%
Taylor expanded in i around inf 59.2%
distribute-lft-out--59.2%
Simplified59.2%
Taylor expanded in j around inf 37.2%
mul-1-neg37.2%
associate-*r*45.8%
*-commutative45.8%
Simplified45.8%
if -3.5e51 < t < -2.69999999999999995e-56Initial program 76.0%
Taylor expanded in i around -inf 76.0%
Taylor expanded in z around 0 68.9%
+-commutative68.9%
associate-+l+68.9%
neg-mul-168.9%
*-commutative68.9%
distribute-rgt-neg-in68.9%
associate-*r*68.9%
*-commutative68.9%
associate-*r*69.0%
associate-*l*69.0%
distribute-rgt-in69.0%
mul-1-neg69.0%
unsub-neg69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in b around inf 39.4%
associate-*r*43.7%
Simplified43.7%
if -2.69999999999999995e-56 < t < 3.4000000000000001e-28Initial program 76.7%
Taylor expanded in i around -inf 82.7%
Taylor expanded in x around inf 38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in y around inf 33.3%
associate-*r*31.9%
*-commutative31.9%
associate-*r*34.7%
Simplified34.7%
if 9.50000000000000089e96 < t Initial program 51.2%
Taylor expanded in i around -inf 47.6%
Taylor expanded in x around inf 50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in y around 0 53.8%
mul-1-neg53.8%
Simplified53.8%
Final simplification46.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= c -2.5e+109)
(* z (* c (- b)))
(if (<= c 7.5e-35)
t_1
(if (<= c 5.5e+35)
(* y (* i (- j)))
(if (<= c 6.4e+142) t_1 (* (* z c) (- b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (c <= -2.5e+109) {
tmp = z * (c * -b);
} else if (c <= 7.5e-35) {
tmp = t_1;
} else if (c <= 5.5e+35) {
tmp = y * (i * -j);
} else if (c <= 6.4e+142) {
tmp = t_1;
} else {
tmp = (z * c) * -b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (c <= (-2.5d+109)) then
tmp = z * (c * -b)
else if (c <= 7.5d-35) then
tmp = t_1
else if (c <= 5.5d+35) then
tmp = y * (i * -j)
else if (c <= 6.4d+142) then
tmp = t_1
else
tmp = (z * c) * -b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (c <= -2.5e+109) {
tmp = z * (c * -b);
} else if (c <= 7.5e-35) {
tmp = t_1;
} else if (c <= 5.5e+35) {
tmp = y * (i * -j);
} else if (c <= 6.4e+142) {
tmp = t_1;
} else {
tmp = (z * c) * -b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if c <= -2.5e+109: tmp = z * (c * -b) elif c <= 7.5e-35: tmp = t_1 elif c <= 5.5e+35: tmp = y * (i * -j) elif c <= 6.4e+142: tmp = t_1 else: tmp = (z * c) * -b return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (c <= -2.5e+109) tmp = Float64(z * Float64(c * Float64(-b))); elseif (c <= 7.5e-35) tmp = t_1; elseif (c <= 5.5e+35) tmp = Float64(y * Float64(i * Float64(-j))); elseif (c <= 6.4e+142) tmp = t_1; else tmp = Float64(Float64(z * c) * Float64(-b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (c <= -2.5e+109) tmp = z * (c * -b); elseif (c <= 7.5e-35) tmp = t_1; elseif (c <= 5.5e+35) tmp = y * (i * -j); elseif (c <= 6.4e+142) tmp = t_1; else tmp = (z * c) * -b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.5e+109], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.5e-35], t$95$1, If[LessEqual[c, 5.5e+35], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.4e+142], t$95$1, N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;c \leq -2.5 \cdot 10^{+109}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq 7.5 \cdot 10^{-35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 5.5 \cdot 10^{+35}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;c \leq 6.4 \cdot 10^{+142}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\end{array}
\end{array}
if c < -2.5000000000000001e109Initial program 61.4%
Taylor expanded in z around inf 64.3%
*-commutative64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in y around 0 51.0%
neg-mul-151.0%
*-commutative51.0%
distribute-rgt-neg-in51.0%
Simplified51.0%
if -2.5000000000000001e109 < c < 7.5e-35 or 5.50000000000000001e35 < c < 6.40000000000000011e142Initial program 73.7%
Taylor expanded in i around -inf 73.1%
Taylor expanded in a around inf 52.4%
+-commutative52.4%
mul-1-neg52.4%
unsub-neg52.4%
Simplified52.4%
if 7.5e-35 < c < 5.50000000000000001e35Initial program 71.2%
Taylor expanded in i around inf 43.8%
distribute-lft-out--43.8%
Simplified43.8%
Taylor expanded in j around inf 38.0%
mul-1-neg38.0%
associate-*r*38.1%
*-commutative38.1%
Simplified38.1%
if 6.40000000000000011e142 < c Initial program 46.5%
Taylor expanded in b around inf 48.5%
*-commutative48.5%
Simplified48.5%
Taylor expanded in i around 0 47.3%
mul-1-neg47.3%
distribute-lft-neg-out47.3%
*-commutative47.3%
Simplified47.3%
Final simplification50.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -3.5e+55)
t_2
(if (<= b -2.7e-154)
t_1
(if (<= b 9.5e-180) (* i (* y (- j))) (if (<= b 1.06e+96) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.5e+55) {
tmp = t_2;
} else if (b <= -2.7e-154) {
tmp = t_1;
} else if (b <= 9.5e-180) {
tmp = i * (y * -j);
} else if (b <= 1.06e+96) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = b * ((a * i) - (z * c))
if (b <= (-3.5d+55)) then
tmp = t_2
else if (b <= (-2.7d-154)) then
tmp = t_1
else if (b <= 9.5d-180) then
tmp = i * (y * -j)
else if (b <= 1.06d+96) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.5e+55) {
tmp = t_2;
} else if (b <= -2.7e-154) {
tmp = t_1;
} else if (b <= 9.5e-180) {
tmp = i * (y * -j);
} else if (b <= 1.06e+96) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -3.5e+55: tmp = t_2 elif b <= -2.7e-154: tmp = t_1 elif b <= 9.5e-180: tmp = i * (y * -j) elif b <= 1.06e+96: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.5e+55) tmp = t_2; elseif (b <= -2.7e-154) tmp = t_1; elseif (b <= 9.5e-180) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= 1.06e+96) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -3.5e+55) tmp = t_2; elseif (b <= -2.7e-154) tmp = t_1; elseif (b <= 9.5e-180) tmp = i * (y * -j); elseif (b <= 1.06e+96) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.5e+55], t$95$2, If[LessEqual[b, -2.7e-154], t$95$1, If[LessEqual[b, 9.5e-180], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.06e+96], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.5 \cdot 10^{+55}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-154}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{-180}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 1.06 \cdot 10^{+96}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -3.5000000000000001e55 or 1.06e96 < b Initial program 59.4%
Taylor expanded in b around inf 63.9%
*-commutative63.9%
Simplified63.9%
if -3.5000000000000001e55 < b < -2.69999999999999989e-154 or 9.49999999999999934e-180 < b < 1.06e96Initial program 79.3%
Taylor expanded in i around -inf 80.2%
Taylor expanded in a around inf 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
Simplified45.0%
if -2.69999999999999989e-154 < b < 9.49999999999999934e-180Initial program 66.0%
Taylor expanded in i around inf 43.6%
distribute-lft-out--43.6%
Simplified43.6%
Taylor expanded in j around inf 43.6%
mul-1-neg43.6%
associate-*r*40.4%
*-commutative40.4%
Simplified40.4%
Taylor expanded in j around 0 43.6%
Final simplification52.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -4e-30)
t_2
(if (<= c 6.6e-54)
t_1
(if (<= c 8e+69)
(* b (- (* a i) (* z c)))
(if (<= c 1.55e+134) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -4e-30) {
tmp = t_2;
} else if (c <= 6.6e-54) {
tmp = t_1;
} else if (c <= 8e+69) {
tmp = b * ((a * i) - (z * c));
} else if (c <= 1.55e+134) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = c * ((t * j) - (z * b))
if (c <= (-4d-30)) then
tmp = t_2
else if (c <= 6.6d-54) then
tmp = t_1
else if (c <= 8d+69) then
tmp = b * ((a * i) - (z * c))
else if (c <= 1.55d+134) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -4e-30) {
tmp = t_2;
} else if (c <= 6.6e-54) {
tmp = t_1;
} else if (c <= 8e+69) {
tmp = b * ((a * i) - (z * c));
} else if (c <= 1.55e+134) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -4e-30: tmp = t_2 elif c <= 6.6e-54: tmp = t_1 elif c <= 8e+69: tmp = b * ((a * i) - (z * c)) elif c <= 1.55e+134: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -4e-30) tmp = t_2; elseif (c <= 6.6e-54) tmp = t_1; elseif (c <= 8e+69) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (c <= 1.55e+134) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -4e-30) tmp = t_2; elseif (c <= 6.6e-54) tmp = t_1; elseif (c <= 8e+69) tmp = b * ((a * i) - (z * c)); elseif (c <= 1.55e+134) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4e-30], t$95$2, If[LessEqual[c, 6.6e-54], t$95$1, If[LessEqual[c, 8e+69], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.55e+134], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -4 \cdot 10^{-30}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 6.6 \cdot 10^{-54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 8 \cdot 10^{+69}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;c \leq 1.55 \cdot 10^{+134}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -4e-30 or 1.54999999999999991e134 < c Initial program 59.5%
Taylor expanded in c around inf 67.8%
*-commutative67.8%
Simplified67.8%
if -4e-30 < c < 6.59999999999999986e-54 or 8.0000000000000006e69 < c < 1.54999999999999991e134Initial program 73.5%
Taylor expanded in i around -inf 74.3%
Taylor expanded in a around inf 57.0%
+-commutative57.0%
mul-1-neg57.0%
unsub-neg57.0%
Simplified57.0%
if 6.59999999999999986e-54 < c < 8.0000000000000006e69Initial program 78.9%
Taylor expanded in b around inf 44.7%
*-commutative44.7%
Simplified44.7%
Final simplification59.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -1.4e-33)
t_2
(if (<= c 1.35e-36)
t_1
(if (<= c 7.2e+61)
(* j (- (* t c) (* y i)))
(if (<= c 6.5e+133) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.4e-33) {
tmp = t_2;
} else if (c <= 1.35e-36) {
tmp = t_1;
} else if (c <= 7.2e+61) {
tmp = j * ((t * c) - (y * i));
} else if (c <= 6.5e+133) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = c * ((t * j) - (z * b))
if (c <= (-1.4d-33)) then
tmp = t_2
else if (c <= 1.35d-36) then
tmp = t_1
else if (c <= 7.2d+61) then
tmp = j * ((t * c) - (y * i))
else if (c <= 6.5d+133) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.4e-33) {
tmp = t_2;
} else if (c <= 1.35e-36) {
tmp = t_1;
} else if (c <= 7.2e+61) {
tmp = j * ((t * c) - (y * i));
} else if (c <= 6.5e+133) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -1.4e-33: tmp = t_2 elif c <= 1.35e-36: tmp = t_1 elif c <= 7.2e+61: tmp = j * ((t * c) - (y * i)) elif c <= 6.5e+133: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.4e-33) tmp = t_2; elseif (c <= 1.35e-36) tmp = t_1; elseif (c <= 7.2e+61) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (c <= 6.5e+133) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -1.4e-33) tmp = t_2; elseif (c <= 1.35e-36) tmp = t_1; elseif (c <= 7.2e+61) tmp = j * ((t * c) - (y * i)); elseif (c <= 6.5e+133) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.4e-33], t$95$2, If[LessEqual[c, 1.35e-36], t$95$1, If[LessEqual[c, 7.2e+61], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.5e+133], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.4 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 1.35 \cdot 10^{-36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{+61}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;c \leq 6.5 \cdot 10^{+133}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -1.4e-33 or 6.5000000000000004e133 < c Initial program 59.5%
Taylor expanded in c around inf 67.8%
*-commutative67.8%
Simplified67.8%
if -1.4e-33 < c < 1.35000000000000004e-36 or 7.20000000000000021e61 < c < 6.5000000000000004e133Initial program 74.5%
Taylor expanded in i around -inf 75.2%
Taylor expanded in a around inf 56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
Simplified56.5%
if 1.35000000000000004e-36 < c < 7.20000000000000021e61Initial program 74.3%
Taylor expanded in j around inf 45.3%
Final simplification59.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))))
(if (<= c -1.8e-31)
t_1
(if (<= c 8.5e-282)
(* a (- (* b i) (* x t)))
(if (<= c 9e+36)
(* y (- (* x z) (* i j)))
(if (<= c 6.5e+133) (* x (- (* y z) (* t a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.8e-31) {
tmp = t_1;
} else if (c <= 8.5e-282) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 9e+36) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 6.5e+133) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
if (c <= (-1.8d-31)) then
tmp = t_1
else if (c <= 8.5d-282) then
tmp = a * ((b * i) - (x * t))
else if (c <= 9d+36) then
tmp = y * ((x * z) - (i * j))
else if (c <= 6.5d+133) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.8e-31) {
tmp = t_1;
} else if (c <= 8.5e-282) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 9e+36) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 6.5e+133) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) tmp = 0 if c <= -1.8e-31: tmp = t_1 elif c <= 8.5e-282: tmp = a * ((b * i) - (x * t)) elif c <= 9e+36: tmp = y * ((x * z) - (i * j)) elif c <= 6.5e+133: tmp = x * ((y * z) - (t * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.8e-31) tmp = t_1; elseif (c <= 8.5e-282) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (c <= 9e+36) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 6.5e+133) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -1.8e-31) tmp = t_1; elseif (c <= 8.5e-282) tmp = a * ((b * i) - (x * t)); elseif (c <= 9e+36) tmp = y * ((x * z) - (i * j)); elseif (c <= 6.5e+133) tmp = x * ((y * z) - (t * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.8e-31], t$95$1, If[LessEqual[c, 8.5e-282], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9e+36], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.5e+133], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.8 \cdot 10^{-31}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{-282}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq 9 \cdot 10^{+36}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 6.5 \cdot 10^{+133}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -1.80000000000000002e-31 or 6.5000000000000004e133 < c Initial program 59.5%
Taylor expanded in c around inf 67.8%
*-commutative67.8%
Simplified67.8%
if -1.80000000000000002e-31 < c < 8.499999999999999e-282Initial program 69.2%
Taylor expanded in i around -inf 75.6%
Taylor expanded in a around inf 66.7%
+-commutative66.7%
mul-1-neg66.7%
unsub-neg66.7%
Simplified66.7%
if 8.499999999999999e-282 < c < 8.99999999999999994e36Initial program 80.5%
Taylor expanded in i around -inf 77.7%
Taylor expanded in y around inf 54.4%
+-commutative54.4%
mul-1-neg54.4%
unsub-neg54.4%
*-commutative54.4%
Simplified54.4%
if 8.99999999999999994e36 < c < 6.5000000000000004e133Initial program 69.4%
Taylor expanded in i around -inf 64.9%
Taylor expanded in x around inf 65.7%
*-commutative65.7%
Simplified65.7%
Final simplification63.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= t -6e+262)
t_1
(if (<= t -2.4e+208)
(* a (* b i))
(if (<= t -1.15e+111)
t_1
(if (<= t -3.8e-57)
(* i (* a b))
(if (<= t 2.7e-28) (* y (* x z)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -6e+262) {
tmp = t_1;
} else if (t <= -2.4e+208) {
tmp = a * (b * i);
} else if (t <= -1.15e+111) {
tmp = t_1;
} else if (t <= -3.8e-57) {
tmp = i * (a * b);
} else if (t <= 2.7e-28) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (t <= (-6d+262)) then
tmp = t_1
else if (t <= (-2.4d+208)) then
tmp = a * (b * i)
else if (t <= (-1.15d+111)) then
tmp = t_1
else if (t <= (-3.8d-57)) then
tmp = i * (a * b)
else if (t <= 2.7d-28) then
tmp = y * (x * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -6e+262) {
tmp = t_1;
} else if (t <= -2.4e+208) {
tmp = a * (b * i);
} else if (t <= -1.15e+111) {
tmp = t_1;
} else if (t <= -3.8e-57) {
tmp = i * (a * b);
} else if (t <= 2.7e-28) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if t <= -6e+262: tmp = t_1 elif t <= -2.4e+208: tmp = a * (b * i) elif t <= -1.15e+111: tmp = t_1 elif t <= -3.8e-57: tmp = i * (a * b) elif t <= 2.7e-28: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (t <= -6e+262) tmp = t_1; elseif (t <= -2.4e+208) tmp = Float64(a * Float64(b * i)); elseif (t <= -1.15e+111) tmp = t_1; elseif (t <= -3.8e-57) tmp = Float64(i * Float64(a * b)); elseif (t <= 2.7e-28) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (t <= -6e+262) tmp = t_1; elseif (t <= -2.4e+208) tmp = a * (b * i); elseif (t <= -1.15e+111) tmp = t_1; elseif (t <= -3.8e-57) tmp = i * (a * b); elseif (t <= 2.7e-28) tmp = y * (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6e+262], t$95$1, If[LessEqual[t, -2.4e+208], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.15e+111], t$95$1, If[LessEqual[t, -3.8e-57], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e-28], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;t \leq -6 \cdot 10^{+262}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.4 \cdot 10^{+208}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq -1.15 \cdot 10^{+111}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{-57}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-28}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -6.0000000000000001e262 or -2.39999999999999987e208 < t < -1.15000000000000001e111 or 2.6999999999999999e-28 < t Initial program 59.8%
Taylor expanded in b around 0 57.6%
Taylor expanded in c around inf 42.7%
if -6.0000000000000001e262 < t < -2.39999999999999987e208Initial program 53.9%
Taylor expanded in b around inf 21.2%
*-commutative21.2%
Simplified21.2%
Taylor expanded in i around inf 34.6%
if -1.15000000000000001e111 < t < -3.7999999999999997e-57Initial program 81.0%
Taylor expanded in i around -inf 77.9%
Taylor expanded in z around 0 68.7%
+-commutative68.7%
associate-+l+68.7%
neg-mul-168.7%
*-commutative68.7%
distribute-rgt-neg-in68.7%
associate-*r*71.8%
*-commutative71.8%
associate-*r*71.9%
associate-*l*71.9%
distribute-rgt-in71.9%
mul-1-neg71.9%
unsub-neg71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in b around inf 32.9%
associate-*r*40.2%
Simplified40.2%
if -3.7999999999999997e-57 < t < 2.6999999999999999e-28Initial program 76.7%
Taylor expanded in i around -inf 82.7%
Taylor expanded in x around inf 38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in y around inf 33.3%
associate-*r*31.9%
*-commutative31.9%
associate-*r*34.7%
Simplified34.7%
Final simplification38.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- a) (* x t))))
(if (<= t -5.4e+218)
t_1
(if (<= t -1.02e-59)
(* i (* a b))
(if (<= t 3.6e-28)
(* y (* x z))
(if (<= t 2.05e+97) (* c (* t j)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -a * (x * t);
double tmp;
if (t <= -5.4e+218) {
tmp = t_1;
} else if (t <= -1.02e-59) {
tmp = i * (a * b);
} else if (t <= 3.6e-28) {
tmp = y * (x * z);
} else if (t <= 2.05e+97) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = -a * (x * t)
if (t <= (-5.4d+218)) then
tmp = t_1
else if (t <= (-1.02d-59)) then
tmp = i * (a * b)
else if (t <= 3.6d-28) then
tmp = y * (x * z)
else if (t <= 2.05d+97) then
tmp = c * (t * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -a * (x * t);
double tmp;
if (t <= -5.4e+218) {
tmp = t_1;
} else if (t <= -1.02e-59) {
tmp = i * (a * b);
} else if (t <= 3.6e-28) {
tmp = y * (x * z);
} else if (t <= 2.05e+97) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -a * (x * t) tmp = 0 if t <= -5.4e+218: tmp = t_1 elif t <= -1.02e-59: tmp = i * (a * b) elif t <= 3.6e-28: tmp = y * (x * z) elif t <= 2.05e+97: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(-a) * Float64(x * t)) tmp = 0.0 if (t <= -5.4e+218) tmp = t_1; elseif (t <= -1.02e-59) tmp = Float64(i * Float64(a * b)); elseif (t <= 3.6e-28) tmp = Float64(y * Float64(x * z)); elseif (t <= 2.05e+97) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -a * (x * t); tmp = 0.0; if (t <= -5.4e+218) tmp = t_1; elseif (t <= -1.02e-59) tmp = i * (a * b); elseif (t <= 3.6e-28) tmp = y * (x * z); elseif (t <= 2.05e+97) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.4e+218], t$95$1, If[LessEqual[t, -1.02e-59], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e-28], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.05e+97], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-a\right) \cdot \left(x \cdot t\right)\\
\mathbf{if}\;t \leq -5.4 \cdot 10^{+218}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.02 \cdot 10^{-59}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-28}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 2.05 \cdot 10^{+97}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -5.40000000000000025e218 or 2.04999999999999994e97 < t Initial program 53.6%
Taylor expanded in i around -inf 52.1%
Taylor expanded in x around inf 60.0%
*-commutative60.0%
Simplified60.0%
Taylor expanded in y around 0 61.7%
mul-1-neg61.7%
Simplified61.7%
if -5.40000000000000025e218 < t < -1.01999999999999996e-59Initial program 72.5%
Taylor expanded in i around -inf 72.4%
Taylor expanded in z around 0 66.7%
+-commutative66.7%
associate-+l+66.7%
neg-mul-166.7%
*-commutative66.7%
distribute-rgt-neg-in66.7%
associate-*r*68.6%
*-commutative68.6%
associate-*r*68.7%
associate-*l*68.7%
distribute-rgt-in68.7%
mul-1-neg68.7%
unsub-neg68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in b around inf 32.9%
associate-*r*39.4%
Simplified39.4%
if -1.01999999999999996e-59 < t < 3.5999999999999999e-28Initial program 76.7%
Taylor expanded in i around -inf 82.7%
Taylor expanded in x around inf 38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in y around inf 33.3%
associate-*r*31.9%
*-commutative31.9%
associate-*r*34.7%
Simplified34.7%
if 3.5999999999999999e-28 < t < 2.04999999999999994e97Initial program 75.2%
Taylor expanded in b around 0 65.1%
Taylor expanded in c around inf 46.6%
Final simplification45.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* c (* t j))))
(if (<= j -13500000000.0)
t_2
(if (<= j -5.1e-275)
t_1
(if (<= j 2.6e-99) (* a (* b i)) (if (<= j 2.7e+75) 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);
double t_2 = c * (t * j);
double tmp;
if (j <= -13500000000.0) {
tmp = t_2;
} else if (j <= -5.1e-275) {
tmp = t_1;
} else if (j <= 2.6e-99) {
tmp = a * (b * i);
} else if (j <= 2.7e+75) {
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_2 = c * (t * j)
if (j <= (-13500000000.0d0)) then
tmp = t_2
else if (j <= (-5.1d-275)) then
tmp = t_1
else if (j <= 2.6d-99) then
tmp = a * (b * i)
else if (j <= 2.7d+75) 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);
double t_2 = c * (t * j);
double tmp;
if (j <= -13500000000.0) {
tmp = t_2;
} else if (j <= -5.1e-275) {
tmp = t_1;
} else if (j <= 2.6e-99) {
tmp = a * (b * i);
} else if (j <= 2.7e+75) {
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_2 = c * (t * j) tmp = 0 if j <= -13500000000.0: tmp = t_2 elif j <= -5.1e-275: tmp = t_1 elif j <= 2.6e-99: tmp = a * (b * i) elif j <= 2.7e+75: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(c * Float64(t * j)) tmp = 0.0 if (j <= -13500000000.0) tmp = t_2; elseif (j <= -5.1e-275) tmp = t_1; elseif (j <= 2.6e-99) tmp = Float64(a * Float64(b * i)); elseif (j <= 2.7e+75) 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_2 = c * (t * j); tmp = 0.0; if (j <= -13500000000.0) tmp = t_2; elseif (j <= -5.1e-275) tmp = t_1; elseif (j <= 2.6e-99) tmp = a * (b * i); elseif (j <= 2.7e+75) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -13500000000.0], t$95$2, If[LessEqual[j, -5.1e-275], t$95$1, If[LessEqual[j, 2.6e-99], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.7e+75], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;j \leq -13500000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -5.1 \cdot 10^{-275}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 2.6 \cdot 10^{-99}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq 2.7 \cdot 10^{+75}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -1.35e10 or 2.69999999999999998e75 < j Initial program 63.7%
Taylor expanded in b around 0 61.5%
Taylor expanded in c around inf 44.9%
if -1.35e10 < j < -5.09999999999999984e-275 or 2.60000000000000005e-99 < j < 2.69999999999999998e75Initial program 73.3%
Taylor expanded in i around -inf 78.7%
Taylor expanded in x around inf 49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in y around inf 29.8%
if -5.09999999999999984e-275 < j < 2.60000000000000005e-99Initial program 68.5%
Taylor expanded in b around inf 46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in i around inf 33.6%
Final simplification36.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* c (* t j))))
(if (<= j -1500000000.0)
t_2
(if (<= j -1.65e-248)
t_1
(if (<= j 1.8e-211) (* b (* a i)) (if (<= j 2.6e+74) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = c * (t * j);
double tmp;
if (j <= -1500000000.0) {
tmp = t_2;
} else if (j <= -1.65e-248) {
tmp = t_1;
} else if (j <= 1.8e-211) {
tmp = b * (a * i);
} else if (j <= 2.6e+74) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (x * z)
t_2 = c * (t * j)
if (j <= (-1500000000.0d0)) then
tmp = t_2
else if (j <= (-1.65d-248)) then
tmp = t_1
else if (j <= 1.8d-211) then
tmp = b * (a * i)
else if (j <= 2.6d+74) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = c * (t * j);
double tmp;
if (j <= -1500000000.0) {
tmp = t_2;
} else if (j <= -1.65e-248) {
tmp = t_1;
} else if (j <= 1.8e-211) {
tmp = b * (a * i);
} else if (j <= 2.6e+74) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = c * (t * j) tmp = 0 if j <= -1500000000.0: tmp = t_2 elif j <= -1.65e-248: tmp = t_1 elif j <= 1.8e-211: tmp = b * (a * i) elif j <= 2.6e+74: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(c * Float64(t * j)) tmp = 0.0 if (j <= -1500000000.0) tmp = t_2; elseif (j <= -1.65e-248) tmp = t_1; elseif (j <= 1.8e-211) tmp = Float64(b * Float64(a * i)); elseif (j <= 2.6e+74) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = c * (t * j); tmp = 0.0; if (j <= -1500000000.0) tmp = t_2; elseif (j <= -1.65e-248) tmp = t_1; elseif (j <= 1.8e-211) tmp = b * (a * i); elseif (j <= 2.6e+74) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1500000000.0], t$95$2, If[LessEqual[j, -1.65e-248], t$95$1, If[LessEqual[j, 1.8e-211], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.6e+74], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;j \leq -1500000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -1.65 \cdot 10^{-248}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.8 \cdot 10^{-211}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;j \leq 2.6 \cdot 10^{+74}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -1.5e9 or 2.6000000000000001e74 < j Initial program 63.7%
Taylor expanded in b around 0 61.5%
Taylor expanded in c around inf 44.9%
if -1.5e9 < j < -1.6500000000000001e-248 or 1.7999999999999999e-211 < j < 2.6000000000000001e74Initial program 70.8%
Taylor expanded in i around -inf 77.8%
Taylor expanded in x around inf 46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in y around inf 29.4%
associate-*r*27.5%
*-commutative27.5%
associate-*r*31.4%
Simplified31.4%
if -1.6500000000000001e-248 < j < 1.7999999999999999e-211Initial program 74.7%
Taylor expanded in b around inf 47.5%
*-commutative47.5%
Simplified47.5%
Taylor expanded in i around inf 30.2%
associate-*r*34.1%
*-commutative34.1%
associate-*l*34.1%
Simplified34.1%
Final simplification37.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -1.9e+24) (* a (* b i)) (if (<= i 4e+105) (* 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 (i <= -1.9e+24) {
tmp = a * (b * i);
} else if (i <= 4e+105) {
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 (i <= (-1.9d+24)) then
tmp = a * (b * i)
else if (i <= 4d+105) 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 (i <= -1.9e+24) {
tmp = a * (b * i);
} else if (i <= 4e+105) {
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 i <= -1.9e+24: tmp = a * (b * i) elif i <= 4e+105: 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 (i <= -1.9e+24) tmp = Float64(a * Float64(b * i)); elseif (i <= 4e+105) 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 (i <= -1.9e+24) tmp = a * (b * i); elseif (i <= 4e+105) 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[LessEqual[i, -1.9e+24], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4e+105], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.9 \cdot 10^{+24}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq 4 \cdot 10^{+105}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if i < -1.90000000000000008e24Initial program 55.4%
Taylor expanded in b around inf 52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in i around inf 46.0%
if -1.90000000000000008e24 < i < 3.9999999999999998e105Initial program 75.8%
Taylor expanded in b around 0 59.1%
Taylor expanded in c around inf 23.9%
if 3.9999999999999998e105 < i Initial program 58.6%
Taylor expanded in b around inf 46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in i around inf 39.6%
associate-*r*41.7%
*-commutative41.7%
associate-*l*46.0%
Simplified46.0%
Final simplification32.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z 1.12e+216) (* b (* a i)) (* b (* z c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= 1.12e+216) {
tmp = b * (a * i);
} else {
tmp = b * (z * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= 1.12d+216) then
tmp = b * (a * i)
else
tmp = b * (z * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= 1.12e+216) {
tmp = b * (a * i);
} else {
tmp = b * (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= 1.12e+216: tmp = b * (a * i) else: tmp = b * (z * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= 1.12e+216) tmp = Float64(b * Float64(a * i)); else tmp = Float64(b * Float64(z * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= 1.12e+216) tmp = b * (a * i); else tmp = b * (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, 1.12e+216], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.12 \cdot 10^{+216}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if z < 1.12e216Initial program 70.8%
Taylor expanded in b around inf 39.2%
*-commutative39.2%
Simplified39.2%
Taylor expanded in i around inf 21.7%
associate-*r*22.7%
*-commutative22.7%
associate-*l*21.8%
Simplified21.8%
if 1.12e216 < z Initial program 47.9%
Taylor expanded in b around inf 40.4%
*-commutative40.4%
Simplified40.4%
Taylor expanded in i around 0 40.5%
mul-1-neg40.5%
distribute-lft-neg-out40.5%
*-commutative40.5%
Simplified40.5%
expm1-log1p-u23.9%
expm1-udef24.0%
*-commutative24.0%
add-sqr-sqrt12.2%
sqrt-unprod20.6%
sqr-neg20.6%
sqrt-unprod8.4%
add-sqr-sqrt12.9%
*-commutative12.9%
Applied egg-rr12.9%
expm1-def13.0%
expm1-log1p33.3%
Simplified33.3%
Final simplification22.9%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 68.6%
Taylor expanded in b around inf 39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in i around inf 21.3%
Final simplification21.3%
(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 2023321
(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)))))