
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* t (- (* b i) (* 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 * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (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 * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = t * ((b * i) - (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(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(Float64(b * i) - 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 * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = t * ((b * i) - (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[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(N[(b * i), $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(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - 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 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 93.7%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in t around inf 52.7%
distribute-lft-out--52.7%
*-commutative52.7%
*-commutative52.7%
Simplified52.7%
Final simplification85.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -4.6e+126)
t_1
(if (<= a -1.05e-148)
(* b (* i (- t (* j (/ y b)))))
(if (<= a 3.2e-118)
(* y (- (* x z) (* i j)))
(if (<= a 6.2e-86)
(* b (- (* t i) (* z c)))
(if (<= a 3.65e-50)
(* i (- (* t b) (* y j)))
(if (or (<= a 7e+61) (not (<= a 2e+169)))
t_1
(* b (* x (/ (- (* y z) (* t a)) 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 * ((c * j) - (x * t));
double tmp;
if (a <= -4.6e+126) {
tmp = t_1;
} else if (a <= -1.05e-148) {
tmp = b * (i * (t - (j * (y / b))));
} else if (a <= 3.2e-118) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 6.2e-86) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 3.65e-50) {
tmp = i * ((t * b) - (y * j));
} else if ((a <= 7e+61) || !(a <= 2e+169)) {
tmp = t_1;
} else {
tmp = b * (x * (((y * z) - (t * a)) / b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-4.6d+126)) then
tmp = t_1
else if (a <= (-1.05d-148)) then
tmp = b * (i * (t - (j * (y / b))))
else if (a <= 3.2d-118) then
tmp = y * ((x * z) - (i * j))
else if (a <= 6.2d-86) then
tmp = b * ((t * i) - (z * c))
else if (a <= 3.65d-50) then
tmp = i * ((t * b) - (y * j))
else if ((a <= 7d+61) .or. (.not. (a <= 2d+169))) then
tmp = t_1
else
tmp = b * (x * (((y * z) - (t * a)) / b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4.6e+126) {
tmp = t_1;
} else if (a <= -1.05e-148) {
tmp = b * (i * (t - (j * (y / b))));
} else if (a <= 3.2e-118) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 6.2e-86) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 3.65e-50) {
tmp = i * ((t * b) - (y * j));
} else if ((a <= 7e+61) || !(a <= 2e+169)) {
tmp = t_1;
} else {
tmp = b * (x * (((y * z) - (t * a)) / b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -4.6e+126: tmp = t_1 elif a <= -1.05e-148: tmp = b * (i * (t - (j * (y / b)))) elif a <= 3.2e-118: tmp = y * ((x * z) - (i * j)) elif a <= 6.2e-86: tmp = b * ((t * i) - (z * c)) elif a <= 3.65e-50: tmp = i * ((t * b) - (y * j)) elif (a <= 7e+61) or not (a <= 2e+169): tmp = t_1 else: tmp = b * (x * (((y * z) - (t * a)) / b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -4.6e+126) tmp = t_1; elseif (a <= -1.05e-148) tmp = Float64(b * Float64(i * Float64(t - Float64(j * Float64(y / b))))); elseif (a <= 3.2e-118) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (a <= 6.2e-86) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (a <= 3.65e-50) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif ((a <= 7e+61) || !(a <= 2e+169)) tmp = t_1; else tmp = Float64(b * Float64(x * Float64(Float64(Float64(y * z) - Float64(t * a)) / b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -4.6e+126) tmp = t_1; elseif (a <= -1.05e-148) tmp = b * (i * (t - (j * (y / b)))); elseif (a <= 3.2e-118) tmp = y * ((x * z) - (i * j)); elseif (a <= 6.2e-86) tmp = b * ((t * i) - (z * c)); elseif (a <= 3.65e-50) tmp = i * ((t * b) - (y * j)); elseif ((a <= 7e+61) || ~((a <= 2e+169))) tmp = t_1; else tmp = b * (x * (((y * z) - (t * a)) / b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.6e+126], t$95$1, If[LessEqual[a, -1.05e-148], N[(b * N[(i * N[(t - N[(j * N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e-118], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.2e-86], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.65e-50], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 7e+61], N[Not[LessEqual[a, 2e+169]], $MachinePrecision]], t$95$1, N[(b * N[(x * N[(N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -4.6 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{-148}:\\
\;\;\;\;b \cdot \left(i \cdot \left(t - j \cdot \frac{y}{b}\right)\right)\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-118}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{-86}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 3.65 \cdot 10^{-50}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 7 \cdot 10^{+61} \lor \neg \left(a \leq 2 \cdot 10^{+169}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(x \cdot \frac{y \cdot z - t \cdot a}{b}\right)\\
\end{array}
\end{array}
if a < -4.6000000000000001e126 or 3.65000000000000018e-50 < a < 7.00000000000000036e61 or 1.99999999999999987e169 < a Initial program 58.4%
Taylor expanded in a around inf 72.9%
+-commutative72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
if -4.6000000000000001e126 < a < -1.05e-148Initial program 82.4%
Taylor expanded in b around inf 69.2%
fma-define72.7%
associate-/l*72.8%
*-commutative72.8%
associate-/l*74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in i around -inf 53.0%
mul-1-neg53.0%
*-commutative53.0%
distribute-rgt-neg-in53.0%
neg-mul-153.0%
+-commutative53.0%
unsub-neg53.0%
associate-/l*54.7%
Simplified54.7%
if -1.05e-148 < a < 3.20000000000000004e-118Initial program 81.5%
Taylor expanded in y around inf 60.6%
+-commutative60.6%
mul-1-neg60.6%
unsub-neg60.6%
*-commutative60.6%
Simplified60.6%
if 3.20000000000000004e-118 < a < 6.19999999999999977e-86Initial program 100.0%
Taylor expanded in b around inf 81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
if 6.19999999999999977e-86 < a < 3.65000000000000018e-50Initial program 84.3%
Taylor expanded in i around inf 68.7%
distribute-lft-out--68.7%
*-commutative68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in i around 0 68.7%
mul-1-neg68.7%
*-commutative68.7%
*-commutative68.7%
*-commutative68.7%
distribute-rgt-neg-in68.7%
*-commutative68.7%
Simplified68.7%
if 7.00000000000000036e61 < a < 1.99999999999999987e169Initial program 82.5%
Taylor expanded in b around inf 82.4%
fma-define82.4%
associate-/l*82.4%
*-commutative82.4%
associate-/l*82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in x around inf 69.9%
div-sub74.4%
Simplified74.4%
Final simplification65.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -3.8e+124)
t_1
(if (<= a -1.5e-148)
(* b (* i (- t (* j (/ y b)))))
(if (<= a 9.5e-117)
(* y (- (* x z) (* i j)))
(if (<= a 6.8e-85)
(* b (- (* t i) (* z c)))
(if (<= a 4.5e-48)
(* y (- (/ (* t (* b i)) y) (* i j)))
(if (or (<= a 1.25e+56) (not (<= a 7.2e+169)))
t_1
(* b (* x (/ (- (* y z) (* t a)) 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 * ((c * j) - (x * t));
double tmp;
if (a <= -3.8e+124) {
tmp = t_1;
} else if (a <= -1.5e-148) {
tmp = b * (i * (t - (j * (y / b))));
} else if (a <= 9.5e-117) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 6.8e-85) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 4.5e-48) {
tmp = y * (((t * (b * i)) / y) - (i * j));
} else if ((a <= 1.25e+56) || !(a <= 7.2e+169)) {
tmp = t_1;
} else {
tmp = b * (x * (((y * z) - (t * a)) / b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-3.8d+124)) then
tmp = t_1
else if (a <= (-1.5d-148)) then
tmp = b * (i * (t - (j * (y / b))))
else if (a <= 9.5d-117) then
tmp = y * ((x * z) - (i * j))
else if (a <= 6.8d-85) then
tmp = b * ((t * i) - (z * c))
else if (a <= 4.5d-48) then
tmp = y * (((t * (b * i)) / y) - (i * j))
else if ((a <= 1.25d+56) .or. (.not. (a <= 7.2d+169))) then
tmp = t_1
else
tmp = b * (x * (((y * z) - (t * a)) / b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -3.8e+124) {
tmp = t_1;
} else if (a <= -1.5e-148) {
tmp = b * (i * (t - (j * (y / b))));
} else if (a <= 9.5e-117) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 6.8e-85) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 4.5e-48) {
tmp = y * (((t * (b * i)) / y) - (i * j));
} else if ((a <= 1.25e+56) || !(a <= 7.2e+169)) {
tmp = t_1;
} else {
tmp = b * (x * (((y * z) - (t * a)) / b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -3.8e+124: tmp = t_1 elif a <= -1.5e-148: tmp = b * (i * (t - (j * (y / b)))) elif a <= 9.5e-117: tmp = y * ((x * z) - (i * j)) elif a <= 6.8e-85: tmp = b * ((t * i) - (z * c)) elif a <= 4.5e-48: tmp = y * (((t * (b * i)) / y) - (i * j)) elif (a <= 1.25e+56) or not (a <= 7.2e+169): tmp = t_1 else: tmp = b * (x * (((y * z) - (t * a)) / b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -3.8e+124) tmp = t_1; elseif (a <= -1.5e-148) tmp = Float64(b * Float64(i * Float64(t - Float64(j * Float64(y / b))))); elseif (a <= 9.5e-117) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (a <= 6.8e-85) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (a <= 4.5e-48) tmp = Float64(y * Float64(Float64(Float64(t * Float64(b * i)) / y) - Float64(i * j))); elseif ((a <= 1.25e+56) || !(a <= 7.2e+169)) tmp = t_1; else tmp = Float64(b * Float64(x * Float64(Float64(Float64(y * z) - Float64(t * a)) / b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -3.8e+124) tmp = t_1; elseif (a <= -1.5e-148) tmp = b * (i * (t - (j * (y / b)))); elseif (a <= 9.5e-117) tmp = y * ((x * z) - (i * j)); elseif (a <= 6.8e-85) tmp = b * ((t * i) - (z * c)); elseif (a <= 4.5e-48) tmp = y * (((t * (b * i)) / y) - (i * j)); elseif ((a <= 1.25e+56) || ~((a <= 7.2e+169))) tmp = t_1; else tmp = b * (x * (((y * z) - (t * a)) / b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.8e+124], t$95$1, If[LessEqual[a, -1.5e-148], N[(b * N[(i * N[(t - N[(j * N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e-117], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e-85], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.5e-48], N[(y * N[(N[(N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 1.25e+56], N[Not[LessEqual[a, 7.2e+169]], $MachinePrecision]], t$95$1, N[(b * N[(x * N[(N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -3.8 \cdot 10^{+124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.5 \cdot 10^{-148}:\\
\;\;\;\;b \cdot \left(i \cdot \left(t - j \cdot \frac{y}{b}\right)\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-117}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-85}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-48}:\\
\;\;\;\;y \cdot \left(\frac{t \cdot \left(b \cdot i\right)}{y} - i \cdot j\right)\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{+56} \lor \neg \left(a \leq 7.2 \cdot 10^{+169}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(x \cdot \frac{y \cdot z - t \cdot a}{b}\right)\\
\end{array}
\end{array}
if a < -3.7999999999999998e124 or 4.49999999999999988e-48 < a < 1.25000000000000006e56 or 7.20000000000000019e169 < a Initial program 58.4%
Taylor expanded in a around inf 72.9%
+-commutative72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
if -3.7999999999999998e124 < a < -1.49999999999999999e-148Initial program 82.4%
Taylor expanded in b around inf 69.2%
fma-define72.7%
associate-/l*72.8%
*-commutative72.8%
associate-/l*74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in i around -inf 53.0%
mul-1-neg53.0%
*-commutative53.0%
distribute-rgt-neg-in53.0%
neg-mul-153.0%
+-commutative53.0%
unsub-neg53.0%
associate-/l*54.7%
Simplified54.7%
if -1.49999999999999999e-148 < a < 9.5000000000000004e-117Initial program 81.5%
Taylor expanded in y around inf 60.6%
+-commutative60.6%
mul-1-neg60.6%
unsub-neg60.6%
*-commutative60.6%
Simplified60.6%
if 9.5000000000000004e-117 < a < 6.8e-85Initial program 100.0%
Taylor expanded in b around inf 81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
if 6.8e-85 < a < 4.49999999999999988e-48Initial program 84.3%
Taylor expanded in i around inf 68.7%
distribute-lft-out--68.7%
*-commutative68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in y around inf 83.8%
+-commutative83.8%
mul-1-neg83.8%
unsub-neg83.8%
associate-*r*83.8%
*-commutative83.8%
*-commutative83.8%
Simplified83.8%
if 1.25000000000000006e56 < a < 7.20000000000000019e169Initial program 82.5%
Taylor expanded in b around inf 82.4%
fma-define82.4%
associate-/l*82.4%
*-commutative82.4%
associate-/l*82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in x around inf 69.9%
div-sub74.4%
Simplified74.4%
Final simplification66.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -1.25e+96)
t_1
(if (<= i -9.5e+18)
(* t (- (* a (* c (/ j t))) (* x a)))
(if (<= i -3.5e-75)
(- (* i (* t b)) (* x (- (* t a) (* y z))))
(if (<= i -7.5e-192)
(* a (- (* c j) (* x t)))
(if (<= i -3.65e-218)
(+ (* x (* y z)) (* b (- (* t i) (* z c))))
(if (<= i 2.3e-43)
(- (* x (- (* y z) (* t a))) (* c (* z b)))
t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.25e+96) {
tmp = t_1;
} else if (i <= -9.5e+18) {
tmp = t * ((a * (c * (j / t))) - (x * a));
} else if (i <= -3.5e-75) {
tmp = (i * (t * b)) - (x * ((t * a) - (y * z)));
} else if (i <= -7.5e-192) {
tmp = a * ((c * j) - (x * t));
} else if (i <= -3.65e-218) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else if (i <= 2.3e-43) {
tmp = (x * ((y * z) - (t * a))) - (c * (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-1.25d+96)) then
tmp = t_1
else if (i <= (-9.5d+18)) then
tmp = t * ((a * (c * (j / t))) - (x * a))
else if (i <= (-3.5d-75)) then
tmp = (i * (t * b)) - (x * ((t * a) - (y * z)))
else if (i <= (-7.5d-192)) then
tmp = a * ((c * j) - (x * t))
else if (i <= (-3.65d-218)) then
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)))
else if (i <= 2.3d-43) then
tmp = (x * ((y * z) - (t * a))) - (c * (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.25e+96) {
tmp = t_1;
} else if (i <= -9.5e+18) {
tmp = t * ((a * (c * (j / t))) - (x * a));
} else if (i <= -3.5e-75) {
tmp = (i * (t * b)) - (x * ((t * a) - (y * z)));
} else if (i <= -7.5e-192) {
tmp = a * ((c * j) - (x * t));
} else if (i <= -3.65e-218) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else if (i <= 2.3e-43) {
tmp = (x * ((y * z) - (t * a))) - (c * (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1.25e+96: tmp = t_1 elif i <= -9.5e+18: tmp = t * ((a * (c * (j / t))) - (x * a)) elif i <= -3.5e-75: tmp = (i * (t * b)) - (x * ((t * a) - (y * z))) elif i <= -7.5e-192: tmp = a * ((c * j) - (x * t)) elif i <= -3.65e-218: tmp = (x * (y * z)) + (b * ((t * i) - (z * c))) elif i <= 2.3e-43: tmp = (x * ((y * z) - (t * a))) - (c * (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.25e+96) tmp = t_1; elseif (i <= -9.5e+18) tmp = Float64(t * Float64(Float64(a * Float64(c * Float64(j / t))) - Float64(x * a))); elseif (i <= -3.5e-75) tmp = Float64(Float64(i * Float64(t * b)) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); elseif (i <= -7.5e-192) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= -3.65e-218) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (i <= 2.3e-43) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(c * Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1.25e+96) tmp = t_1; elseif (i <= -9.5e+18) tmp = t * ((a * (c * (j / t))) - (x * a)); elseif (i <= -3.5e-75) tmp = (i * (t * b)) - (x * ((t * a) - (y * z))); elseif (i <= -7.5e-192) tmp = a * ((c * j) - (x * t)); elseif (i <= -3.65e-218) tmp = (x * (y * z)) + (b * ((t * i) - (z * c))); elseif (i <= 2.3e-43) tmp = (x * ((y * z) - (t * a))) - (c * (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.25e+96], t$95$1, If[LessEqual[i, -9.5e+18], N[(t * N[(N[(a * N[(c * N[(j / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.5e-75], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7.5e-192], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.65e-218], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.3e-43], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.25 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -9.5 \cdot 10^{+18}:\\
\;\;\;\;t \cdot \left(a \cdot \left(c \cdot \frac{j}{t}\right) - x \cdot a\right)\\
\mathbf{elif}\;i \leq -3.5 \cdot 10^{-75}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{elif}\;i \leq -7.5 \cdot 10^{-192}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq -3.65 \cdot 10^{-218}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{-43}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.2500000000000001e96 or 2.2999999999999999e-43 < i Initial program 64.1%
Taylor expanded in i around inf 69.0%
distribute-lft-out--69.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in i around 0 69.0%
mul-1-neg69.0%
*-commutative69.0%
*-commutative69.0%
*-commutative69.0%
distribute-rgt-neg-in69.0%
*-commutative69.0%
Simplified69.0%
if -1.2500000000000001e96 < i < -9.5e18Initial program 73.6%
Taylor expanded in a around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in t around inf 67.6%
+-commutative67.6%
mul-1-neg67.6%
unsub-neg67.6%
associate-/l*67.6%
associate-/l*74.0%
Simplified74.0%
if -9.5e18 < i < -3.49999999999999985e-75Initial program 85.7%
Taylor expanded in j around 0 67.1%
Taylor expanded in c around inf 62.7%
associate-*r/62.7%
mul-1-neg62.7%
distribute-lft-neg-out62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in c around 0 67.5%
associate-*r*67.5%
*-commutative67.5%
associate-*r*63.1%
associate-*r*63.1%
*-commutative63.1%
mul-1-neg63.1%
*-commutative63.1%
distribute-rgt-neg-in63.1%
Simplified63.1%
if -3.49999999999999985e-75 < i < -7.5000000000000001e-192Initial program 87.9%
Taylor expanded in a around inf 70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
if -7.5000000000000001e-192 < i < -3.6499999999999999e-218Initial program 87.9%
Taylor expanded in j around 0 99.1%
Taylor expanded in a around 0 78.3%
*-commutative78.3%
cancel-sign-sub-inv78.3%
+-commutative78.3%
+-commutative78.3%
cancel-sign-sub-inv78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
if -3.6499999999999999e-218 < i < 2.2999999999999999e-43Initial program 82.1%
Taylor expanded in j around 0 65.9%
Taylor expanded in c around inf 64.7%
associate-*r/64.7%
mul-1-neg64.7%
distribute-lft-neg-out64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in c around inf 63.1%
associate-*r*63.7%
*-commutative63.7%
associate-*r*63.2%
Simplified63.2%
Final simplification67.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* i (- (* t b) (* y j)))))
(if (<= i -1.25e+96)
t_2
(if (<= i -1.5e+18)
(* t (- (* a (* c (/ j t))) (* x a)))
(if (<= i -1.7e-50)
(+ t_1 (* t (* b i)))
(if (<= i -1.22e-105)
(* c (* z (- (/ (* a j) z) b)))
(if (<= i -8e-204)
(* a (- (* c j) (* x t)))
(if (<= i 1.75e-43) (- t_1 (* b (* z c))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.25e+96) {
tmp = t_2;
} else if (i <= -1.5e+18) {
tmp = t * ((a * (c * (j / t))) - (x * a));
} else if (i <= -1.7e-50) {
tmp = t_1 + (t * (b * i));
} else if (i <= -1.22e-105) {
tmp = c * (z * (((a * j) / z) - b));
} else if (i <= -8e-204) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.75e-43) {
tmp = t_1 - (b * (z * c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = i * ((t * b) - (y * j))
if (i <= (-1.25d+96)) then
tmp = t_2
else if (i <= (-1.5d+18)) then
tmp = t * ((a * (c * (j / t))) - (x * a))
else if (i <= (-1.7d-50)) then
tmp = t_1 + (t * (b * i))
else if (i <= (-1.22d-105)) then
tmp = c * (z * (((a * j) / z) - b))
else if (i <= (-8d-204)) then
tmp = a * ((c * j) - (x * t))
else if (i <= 1.75d-43) then
tmp = t_1 - (b * (z * c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.25e+96) {
tmp = t_2;
} else if (i <= -1.5e+18) {
tmp = t * ((a * (c * (j / t))) - (x * a));
} else if (i <= -1.7e-50) {
tmp = t_1 + (t * (b * i));
} else if (i <= -1.22e-105) {
tmp = c * (z * (((a * j) / z) - b));
} else if (i <= -8e-204) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.75e-43) {
tmp = t_1 - (b * (z * c));
} 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 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1.25e+96: tmp = t_2 elif i <= -1.5e+18: tmp = t * ((a * (c * (j / t))) - (x * a)) elif i <= -1.7e-50: tmp = t_1 + (t * (b * i)) elif i <= -1.22e-105: tmp = c * (z * (((a * j) / z) - b)) elif i <= -8e-204: tmp = a * ((c * j) - (x * t)) elif i <= 1.75e-43: tmp = t_1 - (b * (z * c)) 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(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.25e+96) tmp = t_2; elseif (i <= -1.5e+18) tmp = Float64(t * Float64(Float64(a * Float64(c * Float64(j / t))) - Float64(x * a))); elseif (i <= -1.7e-50) tmp = Float64(t_1 + Float64(t * Float64(b * i))); elseif (i <= -1.22e-105) tmp = Float64(c * Float64(z * Float64(Float64(Float64(a * j) / z) - b))); elseif (i <= -8e-204) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 1.75e-43) tmp = Float64(t_1 - Float64(b * Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1.25e+96) tmp = t_2; elseif (i <= -1.5e+18) tmp = t * ((a * (c * (j / t))) - (x * a)); elseif (i <= -1.7e-50) tmp = t_1 + (t * (b * i)); elseif (i <= -1.22e-105) tmp = c * (z * (((a * j) / z) - b)); elseif (i <= -8e-204) tmp = a * ((c * j) - (x * t)); elseif (i <= 1.75e-43) tmp = t_1 - (b * (z * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.25e+96], t$95$2, If[LessEqual[i, -1.5e+18], N[(t * N[(N[(a * N[(c * N[(j / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.7e-50], N[(t$95$1 + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.22e-105], N[(c * N[(z * N[(N[(N[(a * j), $MachinePrecision] / z), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -8e-204], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.75e-43], N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.25 \cdot 10^{+96}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.5 \cdot 10^{+18}:\\
\;\;\;\;t \cdot \left(a \cdot \left(c \cdot \frac{j}{t}\right) - x \cdot a\right)\\
\mathbf{elif}\;i \leq -1.7 \cdot 10^{-50}:\\
\;\;\;\;t\_1 + t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq -1.22 \cdot 10^{-105}:\\
\;\;\;\;c \cdot \left(z \cdot \left(\frac{a \cdot j}{z} - b\right)\right)\\
\mathbf{elif}\;i \leq -8 \cdot 10^{-204}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 1.75 \cdot 10^{-43}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -1.2500000000000001e96 or 1.74999999999999999e-43 < i Initial program 64.1%
Taylor expanded in i around inf 69.0%
distribute-lft-out--69.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in i around 0 69.0%
mul-1-neg69.0%
*-commutative69.0%
*-commutative69.0%
*-commutative69.0%
distribute-rgt-neg-in69.0%
*-commutative69.0%
Simplified69.0%
if -1.2500000000000001e96 < i < -1.5e18Initial program 73.6%
Taylor expanded in a around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in t around inf 67.6%
+-commutative67.6%
mul-1-neg67.6%
unsub-neg67.6%
associate-/l*67.6%
associate-/l*74.0%
Simplified74.0%
if -1.5e18 < i < -1.70000000000000007e-50Initial program 89.4%
Taylor expanded in j around 0 68.9%
Taylor expanded in c around 0 69.3%
mul-1-neg69.3%
associate-*r*69.3%
distribute-lft-neg-in69.3%
distribute-rgt-neg-in69.3%
Simplified69.3%
if -1.70000000000000007e-50 < i < -1.22000000000000001e-105Initial program 79.7%
Taylor expanded in z around inf 60.0%
Taylor expanded in c around inf 80.4%
if -1.22000000000000001e-105 < i < -8.00000000000000001e-204Initial program 89.4%
Taylor expanded in a around inf 73.5%
+-commutative73.5%
mul-1-neg73.5%
unsub-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
if -8.00000000000000001e-204 < i < 1.74999999999999999e-43Initial program 81.5%
Taylor expanded in j around 0 67.2%
Taylor expanded in c around inf 64.6%
*-commutative64.6%
Simplified64.6%
Final simplification68.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -2.6e+82)
t_2
(if (<= a -1.05e+15)
(* x (- (* y z) (* t a)))
(if (<= a -2.3e-159)
t_1
(if (<= a 1.8e-120)
(* y (- (* x z) (* i j)))
(if (<= a 3.2e-58) t_1 (if (<= a 1.42e-56) (* z (* x y)) 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 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.6e+82) {
tmp = t_2;
} else if (a <= -1.05e+15) {
tmp = x * ((y * z) - (t * a));
} else if (a <= -2.3e-159) {
tmp = t_1;
} else if (a <= 1.8e-120) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 3.2e-58) {
tmp = t_1;
} else if (a <= 1.42e-56) {
tmp = z * (x * y);
} 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 = b * ((t * i) - (z * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-2.6d+82)) then
tmp = t_2
else if (a <= (-1.05d+15)) then
tmp = x * ((y * z) - (t * a))
else if (a <= (-2.3d-159)) then
tmp = t_1
else if (a <= 1.8d-120) then
tmp = y * ((x * z) - (i * j))
else if (a <= 3.2d-58) then
tmp = t_1
else if (a <= 1.42d-56) then
tmp = z * (x * y)
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 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.6e+82) {
tmp = t_2;
} else if (a <= -1.05e+15) {
tmp = x * ((y * z) - (t * a));
} else if (a <= -2.3e-159) {
tmp = t_1;
} else if (a <= 1.8e-120) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 3.2e-58) {
tmp = t_1;
} else if (a <= 1.42e-56) {
tmp = z * (x * y);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -2.6e+82: tmp = t_2 elif a <= -1.05e+15: tmp = x * ((y * z) - (t * a)) elif a <= -2.3e-159: tmp = t_1 elif a <= 1.8e-120: tmp = y * ((x * z) - (i * j)) elif a <= 3.2e-58: tmp = t_1 elif a <= 1.42e-56: tmp = z * (x * y) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -2.6e+82) tmp = t_2; elseif (a <= -1.05e+15) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (a <= -2.3e-159) tmp = t_1; elseif (a <= 1.8e-120) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (a <= 3.2e-58) tmp = t_1; elseif (a <= 1.42e-56) tmp = Float64(z * Float64(x * y)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -2.6e+82) tmp = t_2; elseif (a <= -1.05e+15) tmp = x * ((y * z) - (t * a)); elseif (a <= -2.3e-159) tmp = t_1; elseif (a <= 1.8e-120) tmp = y * ((x * z) - (i * j)); elseif (a <= 3.2e-58) tmp = t_1; elseif (a <= 1.42e-56) tmp = z * (x * y); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.6e+82], t$95$2, If[LessEqual[a, -1.05e+15], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.3e-159], t$95$1, If[LessEqual[a, 1.8e-120], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e-58], t$95$1, If[LessEqual[a, 1.42e-56], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.6 \cdot 10^{+82}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{+15}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;a \leq -2.3 \cdot 10^{-159}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-120}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.42 \cdot 10^{-56}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.5999999999999998e82 or 1.42e-56 < a Initial program 65.3%
Taylor expanded in a around inf 65.0%
+-commutative65.0%
mul-1-neg65.0%
unsub-neg65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
if -2.5999999999999998e82 < a < -1.05e15Initial program 87.4%
Taylor expanded in b around inf 75.4%
fma-define81.7%
associate-/l*81.6%
*-commutative81.6%
associate-/l*81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in x around -inf 63.4%
if -1.05e15 < a < -2.29999999999999978e-159 or 1.8000000000000001e-120 < a < 3.2000000000000001e-58Initial program 83.9%
Taylor expanded in b around inf 57.3%
*-commutative57.3%
*-commutative57.3%
Simplified57.3%
if -2.29999999999999978e-159 < a < 1.8000000000000001e-120Initial program 80.6%
Taylor expanded in y around inf 60.3%
+-commutative60.3%
mul-1-neg60.3%
unsub-neg60.3%
*-commutative60.3%
Simplified60.3%
if 3.2000000000000001e-58 < a < 1.42e-56Initial program 100.0%
Taylor expanded in z around inf 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
*-commutative100.0%
Simplified100.0%
Final simplification62.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ t_1 (* j (- (* a c) (* y i)))))
(t_3 (* i (- (* t b) (* y j)))))
(if (<= i -9.5e+95)
t_3
(if (<= i -2.25e-191)
t_2
(if (<= i -6.2e-278)
(- t_1 (* b (* z c)))
(if (<= i 7.6e+84) t_2 t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = t_1 + (j * ((a * c) - (y * i)));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -9.5e+95) {
tmp = t_3;
} else if (i <= -2.25e-191) {
tmp = t_2;
} else if (i <= -6.2e-278) {
tmp = t_1 - (b * (z * c));
} else if (i <= 7.6e+84) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = t_1 + (j * ((a * c) - (y * i)))
t_3 = i * ((t * b) - (y * j))
if (i <= (-9.5d+95)) then
tmp = t_3
else if (i <= (-2.25d-191)) then
tmp = t_2
else if (i <= (-6.2d-278)) then
tmp = t_1 - (b * (z * c))
else if (i <= 7.6d+84) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = t_1 + (j * ((a * c) - (y * i)));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -9.5e+95) {
tmp = t_3;
} else if (i <= -2.25e-191) {
tmp = t_2;
} else if (i <= -6.2e-278) {
tmp = t_1 - (b * (z * c));
} else if (i <= 7.6e+84) {
tmp = t_2;
} 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 = t_1 + (j * ((a * c) - (y * i))) t_3 = i * ((t * b) - (y * j)) tmp = 0 if i <= -9.5e+95: tmp = t_3 elif i <= -2.25e-191: tmp = t_2 elif i <= -6.2e-278: tmp = t_1 - (b * (z * c)) elif i <= 7.6e+84: tmp = t_2 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(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) t_3 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -9.5e+95) tmp = t_3; elseif (i <= -2.25e-191) tmp = t_2; elseif (i <= -6.2e-278) tmp = Float64(t_1 - Float64(b * Float64(z * c))); elseif (i <= 7.6e+84) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = t_1 + (j * ((a * c) - (y * i))); t_3 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -9.5e+95) tmp = t_3; elseif (i <= -2.25e-191) tmp = t_2; elseif (i <= -6.2e-278) tmp = t_1 - (b * (z * c)); elseif (i <= 7.6e+84) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -9.5e+95], t$95$3, If[LessEqual[i, -2.25e-191], t$95$2, If[LessEqual[i, -6.2e-278], N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.6e+84], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -9.5 \cdot 10^{+95}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq -2.25 \cdot 10^{-191}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -6.2 \cdot 10^{-278}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;i \leq 7.6 \cdot 10^{+84}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if i < -9.5000000000000004e95 or 7.6000000000000002e84 < i Initial program 60.2%
Taylor expanded in i around inf 75.8%
distribute-lft-out--75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in i around 0 75.8%
mul-1-neg75.8%
*-commutative75.8%
*-commutative75.8%
*-commutative75.8%
distribute-rgt-neg-in75.8%
*-commutative75.8%
Simplified75.8%
if -9.5000000000000004e95 < i < -2.25000000000000004e-191 or -6.19999999999999983e-278 < i < 7.6000000000000002e84Initial program 80.9%
Taylor expanded in b around 0 69.0%
if -2.25000000000000004e-191 < i < -6.19999999999999983e-278Initial program 89.7%
Taylor expanded in j around 0 94.7%
Taylor expanded in c around inf 80.9%
*-commutative80.9%
Simplified80.9%
Final simplification72.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -6.6e+124)
t_2
(if (<= a -1.08e-187)
t_1
(if (<= a 5.3e-120)
(* y (- (* x z) (* i j)))
(if (<= a 1.95e-84)
(* b (- (* t i) (* z c)))
(if (<= a 1.26e-55) 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 = i * ((t * b) - (y * j));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -6.6e+124) {
tmp = t_2;
} else if (a <= -1.08e-187) {
tmp = t_1;
} else if (a <= 5.3e-120) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 1.95e-84) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 1.26e-55) {
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 = i * ((t * b) - (y * j))
t_2 = a * ((c * j) - (x * t))
if (a <= (-6.6d+124)) then
tmp = t_2
else if (a <= (-1.08d-187)) then
tmp = t_1
else if (a <= 5.3d-120) then
tmp = y * ((x * z) - (i * j))
else if (a <= 1.95d-84) then
tmp = b * ((t * i) - (z * c))
else if (a <= 1.26d-55) 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 = i * ((t * b) - (y * j));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -6.6e+124) {
tmp = t_2;
} else if (a <= -1.08e-187) {
tmp = t_1;
} else if (a <= 5.3e-120) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 1.95e-84) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 1.26e-55) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -6.6e+124: tmp = t_2 elif a <= -1.08e-187: tmp = t_1 elif a <= 5.3e-120: tmp = y * ((x * z) - (i * j)) elif a <= 1.95e-84: tmp = b * ((t * i) - (z * c)) elif a <= 1.26e-55: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -6.6e+124) tmp = t_2; elseif (a <= -1.08e-187) tmp = t_1; elseif (a <= 5.3e-120) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (a <= 1.95e-84) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (a <= 1.26e-55) 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 = i * ((t * b) - (y * j)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -6.6e+124) tmp = t_2; elseif (a <= -1.08e-187) tmp = t_1; elseif (a <= 5.3e-120) tmp = y * ((x * z) - (i * j)); elseif (a <= 1.95e-84) tmp = b * ((t * i) - (z * c)); elseif (a <= 1.26e-55) 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.6e+124], t$95$2, If[LessEqual[a, -1.08e-187], t$95$1, If[LessEqual[a, 5.3e-120], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.95e-84], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.26e-55], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -6.6 \cdot 10^{+124}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.08 \cdot 10^{-187}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5.3 \cdot 10^{-120}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;a \leq 1.95 \cdot 10^{-84}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 1.26 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -6.60000000000000029e124 or 1.2599999999999999e-55 < a Initial program 63.2%
Taylor expanded in a around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
if -6.60000000000000029e124 < a < -1.08e-187 or 1.95000000000000011e-84 < a < 1.2599999999999999e-55Initial program 82.0%
Taylor expanded in i around inf 54.8%
distribute-lft-out--54.8%
*-commutative54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in i around 0 54.8%
mul-1-neg54.8%
*-commutative54.8%
*-commutative54.8%
*-commutative54.8%
distribute-rgt-neg-in54.8%
*-commutative54.8%
Simplified54.8%
if -1.08e-187 < a < 5.29999999999999997e-120Initial program 82.0%
Taylor expanded in y around inf 61.2%
+-commutative61.2%
mul-1-neg61.2%
unsub-neg61.2%
*-commutative61.2%
Simplified61.2%
if 5.29999999999999997e-120 < a < 1.95000000000000011e-84Initial program 100.0%
Taylor expanded in b around inf 81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
Final simplification62.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -3.6e+124)
t_1
(if (<= a -1.05e-148)
(* b (* i (- t (* j (/ y b)))))
(if (<= a 1.7e-120)
(* y (- (* x z) (* i j)))
(if (<= a 9e-85)
(* b (- (* t i) (* z c)))
(if (<= a 1.35e-49) (* i (- (* t b) (* y 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 * ((c * j) - (x * t));
double tmp;
if (a <= -3.6e+124) {
tmp = t_1;
} else if (a <= -1.05e-148) {
tmp = b * (i * (t - (j * (y / b))));
} else if (a <= 1.7e-120) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 9e-85) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 1.35e-49) {
tmp = i * ((t * b) - (y * 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 * ((c * j) - (x * t))
if (a <= (-3.6d+124)) then
tmp = t_1
else if (a <= (-1.05d-148)) then
tmp = b * (i * (t - (j * (y / b))))
else if (a <= 1.7d-120) then
tmp = y * ((x * z) - (i * j))
else if (a <= 9d-85) then
tmp = b * ((t * i) - (z * c))
else if (a <= 1.35d-49) then
tmp = i * ((t * b) - (y * 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 * ((c * j) - (x * t));
double tmp;
if (a <= -3.6e+124) {
tmp = t_1;
} else if (a <= -1.05e-148) {
tmp = b * (i * (t - (j * (y / b))));
} else if (a <= 1.7e-120) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 9e-85) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 1.35e-49) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -3.6e+124: tmp = t_1 elif a <= -1.05e-148: tmp = b * (i * (t - (j * (y / b)))) elif a <= 1.7e-120: tmp = y * ((x * z) - (i * j)) elif a <= 9e-85: tmp = b * ((t * i) - (z * c)) elif a <= 1.35e-49: tmp = i * ((t * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -3.6e+124) tmp = t_1; elseif (a <= -1.05e-148) tmp = Float64(b * Float64(i * Float64(t - Float64(j * Float64(y / b))))); elseif (a <= 1.7e-120) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (a <= 9e-85) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (a <= 1.35e-49) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * 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 * ((c * j) - (x * t)); tmp = 0.0; if (a <= -3.6e+124) tmp = t_1; elseif (a <= -1.05e-148) tmp = b * (i * (t - (j * (y / b)))); elseif (a <= 1.7e-120) tmp = y * ((x * z) - (i * j)); elseif (a <= 9e-85) tmp = b * ((t * i) - (z * c)); elseif (a <= 1.35e-49) tmp = i * ((t * b) - (y * 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[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.6e+124], t$95$1, If[LessEqual[a, -1.05e-148], N[(b * N[(i * N[(t - N[(j * N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.7e-120], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9e-85], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e-49], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -3.6 \cdot 10^{+124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{-148}:\\
\;\;\;\;b \cdot \left(i \cdot \left(t - j \cdot \frac{y}{b}\right)\right)\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-120}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;a \leq 9 \cdot 10^{-85}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{-49}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.59999999999999986e124 or 1.35e-49 < a Initial program 63.2%
Taylor expanded in a around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
if -3.59999999999999986e124 < a < -1.05e-148Initial program 82.4%
Taylor expanded in b around inf 69.2%
fma-define72.7%
associate-/l*72.8%
*-commutative72.8%
associate-/l*74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in i around -inf 53.0%
mul-1-neg53.0%
*-commutative53.0%
distribute-rgt-neg-in53.0%
neg-mul-153.0%
+-commutative53.0%
unsub-neg53.0%
associate-/l*54.7%
Simplified54.7%
if -1.05e-148 < a < 1.70000000000000005e-120Initial program 81.5%
Taylor expanded in y around inf 60.6%
+-commutative60.6%
mul-1-neg60.6%
unsub-neg60.6%
*-commutative60.6%
Simplified60.6%
if 1.70000000000000005e-120 < a < 9.00000000000000008e-85Initial program 100.0%
Taylor expanded in b around inf 81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
if 9.00000000000000008e-85 < a < 1.35e-49Initial program 84.3%
Taylor expanded in i around inf 68.7%
distribute-lft-out--68.7%
*-commutative68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in i around 0 68.7%
mul-1-neg68.7%
*-commutative68.7%
*-commutative68.7%
*-commutative68.7%
distribute-rgt-neg-in68.7%
*-commutative68.7%
Simplified68.7%
Final simplification63.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -5.2e+95)
t_1
(if (<= i 4.3e-41)
(- (* x (- (* y z) (* t a))) (* b (* z c)))
(if (<= i 1.15e+32)
(+ (* x (* y z)) (* b (- (* t i) (* z c))))
(if (<= i 1.4e+73)
(* t (- (* b i) (* x a)))
(if (<= i 7e+98) (* j (- (* a c) (* y i))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -5.2e+95) {
tmp = t_1;
} else if (i <= 4.3e-41) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (i <= 1.15e+32) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else if (i <= 1.4e+73) {
tmp = t * ((b * i) - (x * a));
} else if (i <= 7e+98) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-5.2d+95)) then
tmp = t_1
else if (i <= 4.3d-41) then
tmp = (x * ((y * z) - (t * a))) - (b * (z * c))
else if (i <= 1.15d+32) then
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)))
else if (i <= 1.4d+73) then
tmp = t * ((b * i) - (x * a))
else if (i <= 7d+98) then
tmp = j * ((a * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -5.2e+95) {
tmp = t_1;
} else if (i <= 4.3e-41) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (i <= 1.15e+32) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else if (i <= 1.4e+73) {
tmp = t * ((b * i) - (x * a));
} else if (i <= 7e+98) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -5.2e+95: tmp = t_1 elif i <= 4.3e-41: tmp = (x * ((y * z) - (t * a))) - (b * (z * c)) elif i <= 1.15e+32: tmp = (x * (y * z)) + (b * ((t * i) - (z * c))) elif i <= 1.4e+73: tmp = t * ((b * i) - (x * a)) elif i <= 7e+98: tmp = j * ((a * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -5.2e+95) tmp = t_1; elseif (i <= 4.3e-41) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))); elseif (i <= 1.15e+32) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (i <= 1.4e+73) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (i <= 7e+98) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -5.2e+95) tmp = t_1; elseif (i <= 4.3e-41) tmp = (x * ((y * z) - (t * a))) - (b * (z * c)); elseif (i <= 1.15e+32) tmp = (x * (y * z)) + (b * ((t * i) - (z * c))); elseif (i <= 1.4e+73) tmp = t * ((b * i) - (x * a)); elseif (i <= 7e+98) tmp = j * ((a * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5.2e+95], t$95$1, If[LessEqual[i, 4.3e-41], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.15e+32], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.4e+73], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7e+98], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -5.2 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.3 \cdot 10^{-41}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;i \leq 1.15 \cdot 10^{+32}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;i \leq 1.4 \cdot 10^{+73}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;i \leq 7 \cdot 10^{+98}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -5.19999999999999981e95 or 7e98 < i Initial program 59.3%
Taylor expanded in i around inf 75.2%
distribute-lft-out--75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in i around 0 75.2%
mul-1-neg75.2%
*-commutative75.2%
*-commutative75.2%
*-commutative75.2%
distribute-rgt-neg-in75.2%
*-commutative75.2%
Simplified75.2%
if -5.19999999999999981e95 < i < 4.2999999999999999e-41Initial program 83.0%
Taylor expanded in j around 0 64.2%
Taylor expanded in c around inf 60.0%
*-commutative60.0%
Simplified60.0%
if 4.2999999999999999e-41 < i < 1.15e32Initial program 74.7%
Taylor expanded in j around 0 56.9%
Taylor expanded in a around 0 63.2%
*-commutative63.2%
cancel-sign-sub-inv63.2%
+-commutative63.2%
+-commutative63.2%
cancel-sign-sub-inv63.2%
*-commutative63.2%
*-commutative63.2%
Simplified63.2%
if 1.15e32 < i < 1.40000000000000004e73Initial program 71.4%
Taylor expanded in t around inf 71.4%
distribute-lft-out--71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
if 1.40000000000000004e73 < i < 7e98Initial program 100.0%
Taylor expanded in b around inf 100.0%
fma-define100.0%
associate-/l*100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in j around -inf 80.3%
sub-neg80.3%
*-commutative80.3%
sub-neg80.3%
Simplified80.3%
Final simplification66.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* t (* x (- a)))) (t_3 (* b (* t i))))
(if (<= x -1e-48)
t_2
(if (<= x -1.8e-255)
t_1
(if (<= x 3.7e-175)
t_3
(if (<= x 2.1e-123) t_1 (if (<= x 5.8e+14) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = t * (x * -a);
double t_3 = b * (t * i);
double tmp;
if (x <= -1e-48) {
tmp = t_2;
} else if (x <= -1.8e-255) {
tmp = t_1;
} else if (x <= 3.7e-175) {
tmp = t_3;
} else if (x <= 2.1e-123) {
tmp = t_1;
} else if (x <= 5.8e+14) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = i * (y * -j)
t_2 = t * (x * -a)
t_3 = b * (t * i)
if (x <= (-1d-48)) then
tmp = t_2
else if (x <= (-1.8d-255)) then
tmp = t_1
else if (x <= 3.7d-175) then
tmp = t_3
else if (x <= 2.1d-123) then
tmp = t_1
else if (x <= 5.8d+14) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = t * (x * -a);
double t_3 = b * (t * i);
double tmp;
if (x <= -1e-48) {
tmp = t_2;
} else if (x <= -1.8e-255) {
tmp = t_1;
} else if (x <= 3.7e-175) {
tmp = t_3;
} else if (x <= 2.1e-123) {
tmp = t_1;
} else if (x <= 5.8e+14) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = t * (x * -a) t_3 = b * (t * i) tmp = 0 if x <= -1e-48: tmp = t_2 elif x <= -1.8e-255: tmp = t_1 elif x <= 3.7e-175: tmp = t_3 elif x <= 2.1e-123: tmp = t_1 elif x <= 5.8e+14: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(t * Float64(x * Float64(-a))) t_3 = Float64(b * Float64(t * i)) tmp = 0.0 if (x <= -1e-48) tmp = t_2; elseif (x <= -1.8e-255) tmp = t_1; elseif (x <= 3.7e-175) tmp = t_3; elseif (x <= 2.1e-123) tmp = t_1; elseif (x <= 5.8e+14) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = t * (x * -a); t_3 = b * (t * i); tmp = 0.0; if (x <= -1e-48) tmp = t_2; elseif (x <= -1.8e-255) tmp = t_1; elseif (x <= 3.7e-175) tmp = t_3; elseif (x <= 2.1e-123) tmp = t_1; elseif (x <= 5.8e+14) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1e-48], t$95$2, If[LessEqual[x, -1.8e-255], t$95$1, If[LessEqual[x, 3.7e-175], t$95$3, If[LessEqual[x, 2.1e-123], t$95$1, If[LessEqual[x, 5.8e+14], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := t \cdot \left(x \cdot \left(-a\right)\right)\\
t_3 := b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;x \leq -1 \cdot 10^{-48}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -1.8 \cdot 10^{-255}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{-175}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{-123}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{+14}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -9.9999999999999997e-49 or 5.8e14 < x Initial program 72.6%
Taylor expanded in a around inf 53.6%
+-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
*-commutative53.6%
*-commutative53.6%
Simplified53.6%
Taylor expanded in t around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
associate-/l*48.6%
associate-/l*50.0%
Simplified50.0%
Taylor expanded in c around 0 43.0%
neg-mul-143.0%
distribute-lft-neg-in43.0%
*-commutative43.0%
Simplified43.0%
if -9.9999999999999997e-49 < x < -1.8000000000000001e-255 or 3.69999999999999998e-175 < x < 2.0999999999999999e-123Initial program 74.7%
Taylor expanded in i around inf 49.6%
distribute-lft-out--49.6%
*-commutative49.6%
*-commutative49.6%
Simplified49.6%
Taylor expanded in y around inf 41.9%
mul-1-neg41.9%
*-commutative41.9%
distribute-rgt-neg-in41.9%
distribute-rgt-neg-out41.9%
Simplified41.9%
if -1.8000000000000001e-255 < x < 3.69999999999999998e-175 or 2.0999999999999999e-123 < x < 5.8e14Initial program 76.4%
Taylor expanded in j around 0 63.7%
Taylor expanded in i around inf 39.5%
*-commutative39.5%
Simplified39.5%
Final simplification41.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -1e+198)
(* b (* t i))
(if (<= b -3.9e+39)
(* z (* c (- b)))
(if (<= b -3.3e-88)
(* (* x t) (- a))
(if (<= b 1.05e-224)
(* a (* c j))
(if (<= b 1.66e+103) (* i (* y (- j))) (* t (* b i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -1e+198) {
tmp = b * (t * i);
} else if (b <= -3.9e+39) {
tmp = z * (c * -b);
} else if (b <= -3.3e-88) {
tmp = (x * t) * -a;
} else if (b <= 1.05e-224) {
tmp = a * (c * j);
} else if (b <= 1.66e+103) {
tmp = i * (y * -j);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-1d+198)) then
tmp = b * (t * i)
else if (b <= (-3.9d+39)) then
tmp = z * (c * -b)
else if (b <= (-3.3d-88)) then
tmp = (x * t) * -a
else if (b <= 1.05d-224) then
tmp = a * (c * j)
else if (b <= 1.66d+103) then
tmp = i * (y * -j)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -1e+198) {
tmp = b * (t * i);
} else if (b <= -3.9e+39) {
tmp = z * (c * -b);
} else if (b <= -3.3e-88) {
tmp = (x * t) * -a;
} else if (b <= 1.05e-224) {
tmp = a * (c * j);
} else if (b <= 1.66e+103) {
tmp = i * (y * -j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -1e+198: tmp = b * (t * i) elif b <= -3.9e+39: tmp = z * (c * -b) elif b <= -3.3e-88: tmp = (x * t) * -a elif b <= 1.05e-224: tmp = a * (c * j) elif b <= 1.66e+103: tmp = i * (y * -j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -1e+198) tmp = Float64(b * Float64(t * i)); elseif (b <= -3.9e+39) tmp = Float64(z * Float64(c * Float64(-b))); elseif (b <= -3.3e-88) tmp = Float64(Float64(x * t) * Float64(-a)); elseif (b <= 1.05e-224) tmp = Float64(a * Float64(c * j)); elseif (b <= 1.66e+103) tmp = Float64(i * Float64(y * Float64(-j))); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -1e+198) tmp = b * (t * i); elseif (b <= -3.9e+39) tmp = z * (c * -b); elseif (b <= -3.3e-88) tmp = (x * t) * -a; elseif (b <= 1.05e-224) tmp = a * (c * j); elseif (b <= 1.66e+103) tmp = i * (y * -j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1e+198], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.9e+39], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.3e-88], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], If[LessEqual[b, 1.05e-224], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.66e+103], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1 \cdot 10^{+198}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;b \leq -3.9 \cdot 10^{+39}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;b \leq -3.3 \cdot 10^{-88}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-224}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 1.66 \cdot 10^{+103}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -1.00000000000000002e198Initial program 60.1%
Taylor expanded in j around 0 73.4%
Taylor expanded in i around inf 53.8%
*-commutative53.8%
Simplified53.8%
if -1.00000000000000002e198 < b < -3.9000000000000001e39Initial program 73.4%
Taylor expanded in z around inf 50.6%
*-commutative50.6%
Simplified50.6%
Taylor expanded in x around 0 44.1%
neg-mul-144.1%
distribute-rgt-neg-in44.1%
Simplified44.1%
if -3.9000000000000001e39 < b < -3.29999999999999994e-88Initial program 75.6%
Taylor expanded in a around inf 42.1%
+-commutative42.1%
mul-1-neg42.1%
unsub-neg42.1%
*-commutative42.1%
*-commutative42.1%
Simplified42.1%
Taylor expanded in j around 0 36.7%
mul-1-neg36.7%
*-commutative36.7%
distribute-rgt-neg-in36.7%
Simplified36.7%
if -3.29999999999999994e-88 < b < 1.05000000000000003e-224Initial program 80.4%
Taylor expanded in a around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
*-commutative51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in j around inf 39.4%
*-commutative39.4%
Simplified39.4%
if 1.05000000000000003e-224 < b < 1.6600000000000001e103Initial program 71.1%
Taylor expanded in i around inf 49.1%
distribute-lft-out--49.1%
*-commutative49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in y around inf 38.5%
mul-1-neg38.5%
*-commutative38.5%
distribute-rgt-neg-in38.5%
distribute-rgt-neg-out38.5%
Simplified38.5%
if 1.6600000000000001e103 < b Initial program 80.9%
Taylor expanded in j around 0 78.5%
Taylor expanded in i around inf 41.2%
associate-*r*46.1%
Simplified46.1%
Final simplification41.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* t (* x (- a)))) (t_3 (* i (* t b))))
(if (<= x -7.5e-52)
t_2
(if (<= x -4.8e-260)
t_1
(if (<= x 2.3e-174)
t_3
(if (<= x 2.3e-110) t_1 (if (<= x 1.85e+14) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = t * (x * -a);
double t_3 = i * (t * b);
double tmp;
if (x <= -7.5e-52) {
tmp = t_2;
} else if (x <= -4.8e-260) {
tmp = t_1;
} else if (x <= 2.3e-174) {
tmp = t_3;
} else if (x <= 2.3e-110) {
tmp = t_1;
} else if (x <= 1.85e+14) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = i * (y * -j)
t_2 = t * (x * -a)
t_3 = i * (t * b)
if (x <= (-7.5d-52)) then
tmp = t_2
else if (x <= (-4.8d-260)) then
tmp = t_1
else if (x <= 2.3d-174) then
tmp = t_3
else if (x <= 2.3d-110) then
tmp = t_1
else if (x <= 1.85d+14) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = t * (x * -a);
double t_3 = i * (t * b);
double tmp;
if (x <= -7.5e-52) {
tmp = t_2;
} else if (x <= -4.8e-260) {
tmp = t_1;
} else if (x <= 2.3e-174) {
tmp = t_3;
} else if (x <= 2.3e-110) {
tmp = t_1;
} else if (x <= 1.85e+14) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = t * (x * -a) t_3 = i * (t * b) tmp = 0 if x <= -7.5e-52: tmp = t_2 elif x <= -4.8e-260: tmp = t_1 elif x <= 2.3e-174: tmp = t_3 elif x <= 2.3e-110: tmp = t_1 elif x <= 1.85e+14: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(t * Float64(x * Float64(-a))) t_3 = Float64(i * Float64(t * b)) tmp = 0.0 if (x <= -7.5e-52) tmp = t_2; elseif (x <= -4.8e-260) tmp = t_1; elseif (x <= 2.3e-174) tmp = t_3; elseif (x <= 2.3e-110) tmp = t_1; elseif (x <= 1.85e+14) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = t * (x * -a); t_3 = i * (t * b); tmp = 0.0; if (x <= -7.5e-52) tmp = t_2; elseif (x <= -4.8e-260) tmp = t_1; elseif (x <= 2.3e-174) tmp = t_3; elseif (x <= 2.3e-110) tmp = t_1; elseif (x <= 1.85e+14) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7.5e-52], t$95$2, If[LessEqual[x, -4.8e-260], t$95$1, If[LessEqual[x, 2.3e-174], t$95$3, If[LessEqual[x, 2.3e-110], t$95$1, If[LessEqual[x, 1.85e+14], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := t \cdot \left(x \cdot \left(-a\right)\right)\\
t_3 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;x \leq -7.5 \cdot 10^{-52}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{-260}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-174}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{+14}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -7.50000000000000006e-52 or 1.85e14 < x Initial program 72.6%
Taylor expanded in a around inf 53.6%
+-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
*-commutative53.6%
*-commutative53.6%
Simplified53.6%
Taylor expanded in t around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
associate-/l*48.6%
associate-/l*50.0%
Simplified50.0%
Taylor expanded in c around 0 43.0%
neg-mul-143.0%
distribute-lft-neg-in43.0%
*-commutative43.0%
Simplified43.0%
if -7.50000000000000006e-52 < x < -4.8000000000000001e-260 or 2.2999999999999999e-174 < x < 2.3000000000000001e-110Initial program 76.0%
Taylor expanded in i around inf 47.5%
distribute-lft-out--47.5%
*-commutative47.5%
*-commutative47.5%
Simplified47.5%
Taylor expanded in y around inf 40.1%
mul-1-neg40.1%
*-commutative40.1%
distribute-rgt-neg-in40.1%
distribute-rgt-neg-out40.1%
Simplified40.1%
if -4.8000000000000001e-260 < x < 2.2999999999999999e-174 or 2.3000000000000001e-110 < x < 1.85e14Initial program 75.3%
Taylor expanded in i around inf 54.1%
distribute-lft-out--54.1%
*-commutative54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in y around 0 41.5%
mul-1-neg41.5%
*-commutative41.5%
distribute-rgt-neg-in41.5%
Simplified41.5%
Final simplification42.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= b -1e-39)
(+ t_1 (* b (* c (- (/ (* t i) c) z))))
(+ (+ t_1 (* t (* b i))) (* j (- (* a c) (* y i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (b <= -1e-39) {
tmp = t_1 + (b * (c * (((t * i) / c) - z)));
} else {
tmp = (t_1 + (t * (b * i))) + (j * ((a * c) - (y * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (b <= (-1d-39)) then
tmp = t_1 + (b * (c * (((t * i) / c) - z)))
else
tmp = (t_1 + (t * (b * i))) + (j * ((a * c) - (y * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (b <= -1e-39) {
tmp = t_1 + (b * (c * (((t * i) / c) - z)));
} else {
tmp = (t_1 + (t * (b * i))) + (j * ((a * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if b <= -1e-39: tmp = t_1 + (b * (c * (((t * i) / c) - z))) else: tmp = (t_1 + (t * (b * i))) + (j * ((a * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (b <= -1e-39) tmp = Float64(t_1 + Float64(b * Float64(c * Float64(Float64(Float64(t * i) / c) - z)))); else tmp = Float64(Float64(t_1 + Float64(t * Float64(b * i))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (b <= -1e-39) tmp = t_1 + (b * (c * (((t * i) / c) - z))); else tmp = (t_1 + (t * (b * i))) + (j * ((a * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1e-39], N[(t$95$1 + N[(b * N[(c * N[(N[(N[(t * i), $MachinePrecision] / c), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t$95$1 + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;b \leq -1 \cdot 10^{-39}:\\
\;\;\;\;t\_1 + b \cdot \left(c \cdot \left(\frac{t \cdot i}{c} - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t\_1 + t \cdot \left(b \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -9.99999999999999929e-40Initial program 69.1%
Taylor expanded in j around 0 70.2%
Taylor expanded in c around inf 70.5%
associate-*r/70.5%
mul-1-neg70.5%
distribute-lft-neg-out70.5%
*-commutative70.5%
Simplified70.5%
if -9.99999999999999929e-40 < b Initial program 76.3%
Taylor expanded in c around 0 73.8%
mul-1-neg73.8%
*-commutative73.8%
associate-*r*76.2%
distribute-rgt-neg-out76.2%
*-commutative76.2%
associate-*l*76.7%
Simplified76.7%
Final simplification74.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (or (<= b -1.2e-76) (not (<= b 4.4e+103)))
(+ t_1 (* b (- (* t i) (* z c))))
(+ t_1 (* j (- (* a c) (* y i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if ((b <= -1.2e-76) || !(b <= 4.4e+103)) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 + (j * ((a * c) - (y * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if ((b <= (-1.2d-76)) .or. (.not. (b <= 4.4d+103))) then
tmp = t_1 + (b * ((t * i) - (z * c)))
else
tmp = t_1 + (j * ((a * c) - (y * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if ((b <= -1.2e-76) || !(b <= 4.4e+103)) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 + (j * ((a * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if (b <= -1.2e-76) or not (b <= 4.4e+103): tmp = t_1 + (b * ((t * i) - (z * c))) else: tmp = t_1 + (j * ((a * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if ((b <= -1.2e-76) || !(b <= 4.4e+103)) tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if ((b <= -1.2e-76) || ~((b <= 4.4e+103))) tmp = t_1 + (b * ((t * i) - (z * c))); else tmp = t_1 + (j * ((a * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[b, -1.2e-76], N[Not[LessEqual[b, 4.4e+103]], $MachinePrecision]], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;b \leq -1.2 \cdot 10^{-76} \lor \neg \left(b \leq 4.4 \cdot 10^{+103}\right):\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -1.20000000000000007e-76 or 4.39999999999999985e103 < b Initial program 73.8%
Taylor expanded in j around 0 73.1%
if -1.20000000000000007e-76 < b < 4.39999999999999985e103Initial program 74.1%
Taylor expanded in b around 0 74.6%
Final simplification73.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= b -3.15e-84)
(+ t_1 (* b (* c (- (/ (* t i) c) z))))
(if (<= b 2.1e+103)
(+ t_1 (* j (- (* a c) (* y i))))
(+ t_1 (* b (- (* t i) (* z c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (b <= -3.15e-84) {
tmp = t_1 + (b * (c * (((t * i) / c) - z)));
} else if (b <= 2.1e+103) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else {
tmp = t_1 + (b * ((t * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (b <= (-3.15d-84)) then
tmp = t_1 + (b * (c * (((t * i) / c) - z)))
else if (b <= 2.1d+103) then
tmp = t_1 + (j * ((a * c) - (y * i)))
else
tmp = t_1 + (b * ((t * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (b <= -3.15e-84) {
tmp = t_1 + (b * (c * (((t * i) / c) - z)));
} else if (b <= 2.1e+103) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else {
tmp = t_1 + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if b <= -3.15e-84: tmp = t_1 + (b * (c * (((t * i) / c) - z))) elif b <= 2.1e+103: tmp = t_1 + (j * ((a * c) - (y * i))) else: tmp = t_1 + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (b <= -3.15e-84) tmp = Float64(t_1 + Float64(b * Float64(c * Float64(Float64(Float64(t * i) / c) - z)))); elseif (b <= 2.1e+103) tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (b <= -3.15e-84) tmp = t_1 + (b * (c * (((t * i) / c) - z))); elseif (b <= 2.1e+103) tmp = t_1 + (j * ((a * c) - (y * i))); else tmp = t_1 + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.15e-84], N[(t$95$1 + N[(b * N[(c * N[(N[(N[(t * i), $MachinePrecision] / c), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e+103], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;b \leq -3.15 \cdot 10^{-84}:\\
\;\;\;\;t\_1 + b \cdot \left(c \cdot \left(\frac{t \cdot i}{c} - z\right)\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{+103}:\\
\;\;\;\;t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if b < -3.1500000000000002e-84Initial program 70.9%
Taylor expanded in j around 0 69.8%
Taylor expanded in c around inf 71.1%
associate-*r/71.1%
mul-1-neg71.1%
distribute-lft-neg-out71.1%
*-commutative71.1%
Simplified71.1%
if -3.1500000000000002e-84 < b < 2.1000000000000002e103Initial program 74.3%
Taylor expanded in b around 0 74.8%
if 2.1000000000000002e103 < b Initial program 80.9%
Taylor expanded in j around 0 78.5%
Final simplification73.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= y 78000.0)
t_2
(if (<= y 2.7e+52)
t_1
(if (<= y 7.5e+171) t_2 (if (<= y 1.65e+238) t_1 (* x (* y z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (y <= 78000.0) {
tmp = t_2;
} else if (y <= 2.7e+52) {
tmp = t_1;
} else if (y <= 7.5e+171) {
tmp = t_2;
} else if (y <= 1.65e+238) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * (y * -j)
t_2 = a * ((c * j) - (x * t))
if (y <= 78000.0d0) then
tmp = t_2
else if (y <= 2.7d+52) then
tmp = t_1
else if (y <= 7.5d+171) then
tmp = t_2
else if (y <= 1.65d+238) then
tmp = t_1
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (y <= 78000.0) {
tmp = t_2;
} else if (y <= 2.7e+52) {
tmp = t_1;
} else if (y <= 7.5e+171) {
tmp = t_2;
} else if (y <= 1.65e+238) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = a * ((c * j) - (x * t)) tmp = 0 if y <= 78000.0: tmp = t_2 elif y <= 2.7e+52: tmp = t_1 elif y <= 7.5e+171: tmp = t_2 elif y <= 1.65e+238: tmp = t_1 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (y <= 78000.0) tmp = t_2; elseif (y <= 2.7e+52) tmp = t_1; elseif (y <= 7.5e+171) tmp = t_2; elseif (y <= 1.65e+238) tmp = t_1; else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (y <= 78000.0) tmp = t_2; elseif (y <= 2.7e+52) tmp = t_1; elseif (y <= 7.5e+171) tmp = t_2; elseif (y <= 1.65e+238) tmp = t_1; else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 78000.0], t$95$2, If[LessEqual[y, 2.7e+52], t$95$1, If[LessEqual[y, 7.5e+171], t$95$2, If[LessEqual[y, 1.65e+238], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;y \leq 78000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+171}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < 78000 or 2.7e52 < y < 7.4999999999999998e171Initial program 75.5%
Taylor expanded in a around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
*-commutative48.6%
*-commutative48.6%
Simplified48.6%
if 78000 < y < 2.7e52 or 7.4999999999999998e171 < y < 1.65e238Initial program 61.5%
Taylor expanded in i around inf 72.6%
distribute-lft-out--72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in y around inf 61.3%
mul-1-neg61.3%
*-commutative61.3%
distribute-rgt-neg-in61.3%
distribute-rgt-neg-out61.3%
Simplified61.3%
if 1.65e238 < y Initial program 73.6%
Taylor expanded in z around inf 48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in x around inf 63.3%
*-commutative63.3%
Simplified63.3%
Final simplification51.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -7.5e+125)
(* c (* a j))
(if (<= a -1.05e-82)
(* b (* t i))
(if (<= a -4.8e-261)
(* z (* x y))
(if (<= a 6.5e-48) (* t (* b i)) (* a (* c j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -7.5e+125) {
tmp = c * (a * j);
} else if (a <= -1.05e-82) {
tmp = b * (t * i);
} else if (a <= -4.8e-261) {
tmp = z * (x * y);
} else if (a <= 6.5e-48) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-7.5d+125)) then
tmp = c * (a * j)
else if (a <= (-1.05d-82)) then
tmp = b * (t * i)
else if (a <= (-4.8d-261)) then
tmp = z * (x * y)
else if (a <= 6.5d-48) then
tmp = t * (b * i)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -7.5e+125) {
tmp = c * (a * j);
} else if (a <= -1.05e-82) {
tmp = b * (t * i);
} else if (a <= -4.8e-261) {
tmp = z * (x * y);
} else if (a <= 6.5e-48) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -7.5e+125: tmp = c * (a * j) elif a <= -1.05e-82: tmp = b * (t * i) elif a <= -4.8e-261: tmp = z * (x * y) elif a <= 6.5e-48: tmp = t * (b * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -7.5e+125) tmp = Float64(c * Float64(a * j)); elseif (a <= -1.05e-82) tmp = Float64(b * Float64(t * i)); elseif (a <= -4.8e-261) tmp = Float64(z * Float64(x * y)); elseif (a <= 6.5e-48) tmp = Float64(t * Float64(b * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -7.5e+125) tmp = c * (a * j); elseif (a <= -1.05e-82) tmp = b * (t * i); elseif (a <= -4.8e-261) tmp = z * (x * y); elseif (a <= 6.5e-48) tmp = t * (b * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -7.5e+125], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.05e-82], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.8e-261], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.5e-48], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.5 \cdot 10^{+125}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{-82}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-261}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-48}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if a < -7.5000000000000006e125Initial program 57.8%
Taylor expanded in z around inf 63.3%
Taylor expanded in c around inf 65.4%
Taylor expanded in z around 0 48.7%
*-commutative48.7%
associate-*l*51.0%
*-commutative51.0%
Simplified51.0%
if -7.5000000000000006e125 < a < -1.05e-82Initial program 82.6%
Taylor expanded in j around 0 67.7%
Taylor expanded in i around inf 33.5%
*-commutative33.5%
Simplified33.5%
if -1.05e-82 < a < -4.80000000000000028e-261Initial program 77.9%
Taylor expanded in z around inf 51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in x around inf 37.8%
*-commutative37.8%
Simplified37.8%
if -4.80000000000000028e-261 < a < 6.5e-48Initial program 86.3%
Taylor expanded in j around 0 70.2%
Taylor expanded in i around inf 28.7%
associate-*r*36.0%
Simplified36.0%
if 6.5e-48 < a Initial program 66.0%
Taylor expanded in a around inf 64.9%
+-commutative64.9%
mul-1-neg64.9%
unsub-neg64.9%
*-commutative64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in j around inf 34.2%
*-commutative34.2%
Simplified34.2%
Final simplification37.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -1.25e+96) (not (<= i 9.5e-50))) (* i (- (* t b) (* y j))) (- (* x (- (* y z) (* t a))) (* 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 ((i <= -1.25e+96) || !(i <= 9.5e-50)) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (x * ((y * z) - (t * a))) - (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 ((i <= (-1.25d+96)) .or. (.not. (i <= 9.5d-50))) then
tmp = i * ((t * b) - (y * j))
else
tmp = (x * ((y * z) - (t * a))) - (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 ((i <= -1.25e+96) || !(i <= 9.5e-50)) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -1.25e+96) or not (i <= 9.5e-50): tmp = i * ((t * b) - (y * j)) else: tmp = (x * ((y * z) - (t * a))) - (b * (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -1.25e+96) || !(i <= 9.5e-50)) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - 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 ((i <= -1.25e+96) || ~((i <= 9.5e-50))) tmp = i * ((t * b) - (y * j)); else tmp = (x * ((y * z) - (t * a))) - (b * (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -1.25e+96], N[Not[LessEqual[i, 9.5e-50]], $MachinePrecision]], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.25 \cdot 10^{+96} \lor \neg \left(i \leq 9.5 \cdot 10^{-50}\right):\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if i < -1.2500000000000001e96 or 9.4999999999999993e-50 < i Initial program 64.1%
Taylor expanded in i around inf 69.0%
distribute-lft-out--69.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in i around 0 69.0%
mul-1-neg69.0%
*-commutative69.0%
*-commutative69.0%
*-commutative69.0%
distribute-rgt-neg-in69.0%
*-commutative69.0%
Simplified69.0%
if -1.2500000000000001e96 < i < 9.4999999999999993e-50Initial program 82.8%
Taylor expanded in j around 0 64.6%
Taylor expanded in c around inf 60.4%
*-commutative60.4%
Simplified60.4%
Final simplification64.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= j -2.5e-40)
t_1
(if (<= j 4.4e-105)
(* b (- (* t i) (* z c)))
(if (<= j 6e+88) t_1 (* j (- (* a c) (* y i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (j <= -2.5e-40) {
tmp = t_1;
} else if (j <= 4.4e-105) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 6e+88) {
tmp = t_1;
} else {
tmp = j * ((a * c) - (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (j <= (-2.5d-40)) then
tmp = t_1
else if (j <= 4.4d-105) then
tmp = b * ((t * i) - (z * c))
else if (j <= 6d+88) then
tmp = t_1
else
tmp = j * ((a * c) - (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (j <= -2.5e-40) {
tmp = t_1;
} else if (j <= 4.4e-105) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 6e+88) {
tmp = t_1;
} else {
tmp = j * ((a * c) - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if j <= -2.5e-40: tmp = t_1 elif j <= 4.4e-105: tmp = b * ((t * i) - (z * c)) elif j <= 6e+88: tmp = t_1 else: tmp = j * ((a * c) - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (j <= -2.5e-40) tmp = t_1; elseif (j <= 4.4e-105) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (j <= 6e+88) tmp = t_1; else tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (j <= -2.5e-40) tmp = t_1; elseif (j <= 4.4e-105) tmp = b * ((t * i) - (z * c)); elseif (j <= 6e+88) tmp = t_1; else tmp = j * ((a * c) - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.5e-40], t$95$1, If[LessEqual[j, 4.4e-105], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6e+88], t$95$1, N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;j \leq -2.5 \cdot 10^{-40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{-105}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 6 \cdot 10^{+88}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if j < -2.49999999999999982e-40 or 4.40000000000000008e-105 < j < 6.00000000000000011e88Initial program 72.5%
Taylor expanded in a around inf 54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
*-commutative54.2%
*-commutative54.2%
Simplified54.2%
if -2.49999999999999982e-40 < j < 4.40000000000000008e-105Initial program 75.7%
Taylor expanded in b around inf 48.9%
*-commutative48.9%
*-commutative48.9%
Simplified48.9%
if 6.00000000000000011e88 < j Initial program 74.3%
Taylor expanded in b around inf 67.2%
fma-define72.4%
associate-/l*72.3%
*-commutative72.3%
associate-/l*74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in j around -inf 77.7%
sub-neg77.7%
*-commutative77.7%
sub-neg77.7%
Simplified77.7%
Final simplification55.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -2.4e-60)
(* b (* t i))
(if (<= b 1.5e-226)
(* a (* c j))
(if (<= b 2.1e+103) (* i (* y (- j))) (* t (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.4e-60) {
tmp = b * (t * i);
} else if (b <= 1.5e-226) {
tmp = a * (c * j);
} else if (b <= 2.1e+103) {
tmp = i * (y * -j);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-2.4d-60)) then
tmp = b * (t * i)
else if (b <= 1.5d-226) then
tmp = a * (c * j)
else if (b <= 2.1d+103) then
tmp = i * (y * -j)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.4e-60) {
tmp = b * (t * i);
} else if (b <= 1.5e-226) {
tmp = a * (c * j);
} else if (b <= 2.1e+103) {
tmp = i * (y * -j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -2.4e-60: tmp = b * (t * i) elif b <= 1.5e-226: tmp = a * (c * j) elif b <= 2.1e+103: tmp = i * (y * -j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -2.4e-60) tmp = Float64(b * Float64(t * i)); elseif (b <= 1.5e-226) tmp = Float64(a * Float64(c * j)); elseif (b <= 2.1e+103) tmp = Float64(i * Float64(y * Float64(-j))); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -2.4e-60) tmp = b * (t * i); elseif (b <= 1.5e-226) tmp = a * (c * j); elseif (b <= 2.1e+103) tmp = i * (y * -j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2.4e-60], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e-226], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e+103], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.4 \cdot 10^{-60}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-226}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{+103}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -2.40000000000000009e-60Initial program 70.5%
Taylor expanded in j around 0 70.4%
Taylor expanded in i around inf 36.6%
*-commutative36.6%
Simplified36.6%
if -2.40000000000000009e-60 < b < 1.49999999999999998e-226Initial program 78.3%
Taylor expanded in a around inf 55.5%
+-commutative55.5%
mul-1-neg55.5%
unsub-neg55.5%
*-commutative55.5%
*-commutative55.5%
Simplified55.5%
Taylor expanded in j around inf 38.7%
*-commutative38.7%
Simplified38.7%
if 1.49999999999999998e-226 < b < 2.1000000000000002e103Initial program 71.1%
Taylor expanded in i around inf 49.1%
distribute-lft-out--49.1%
*-commutative49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in y around inf 38.5%
mul-1-neg38.5%
*-commutative38.5%
distribute-rgt-neg-in38.5%
distribute-rgt-neg-out38.5%
Simplified38.5%
if 2.1000000000000002e103 < b Initial program 80.9%
Taylor expanded in j around 0 78.5%
Taylor expanded in i around inf 41.2%
associate-*r*46.1%
Simplified46.1%
Final simplification39.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -56000000000000.0)
(* a (* c j))
(if (<= j 2.65e-99)
(* b (* t i))
(if (<= j 1.15e+168) (* z (* x y)) (* c (* a j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -56000000000000.0) {
tmp = a * (c * j);
} else if (j <= 2.65e-99) {
tmp = b * (t * i);
} else if (j <= 1.15e+168) {
tmp = z * (x * y);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-56000000000000.0d0)) then
tmp = a * (c * j)
else if (j <= 2.65d-99) then
tmp = b * (t * i)
else if (j <= 1.15d+168) then
tmp = z * (x * y)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -56000000000000.0) {
tmp = a * (c * j);
} else if (j <= 2.65e-99) {
tmp = b * (t * i);
} else if (j <= 1.15e+168) {
tmp = z * (x * y);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -56000000000000.0: tmp = a * (c * j) elif j <= 2.65e-99: tmp = b * (t * i) elif j <= 1.15e+168: tmp = z * (x * y) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -56000000000000.0) tmp = Float64(a * Float64(c * j)); elseif (j <= 2.65e-99) tmp = Float64(b * Float64(t * i)); elseif (j <= 1.15e+168) tmp = Float64(z * Float64(x * y)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -56000000000000.0) tmp = a * (c * j); elseif (j <= 2.65e-99) tmp = b * (t * i); elseif (j <= 1.15e+168) tmp = z * (x * y); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -56000000000000.0], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.65e-99], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e+168], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -56000000000000:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 2.65 \cdot 10^{-99}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{+168}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if j < -5.6e13Initial program 74.2%
Taylor expanded in a around inf 55.7%
+-commutative55.7%
mul-1-neg55.7%
unsub-neg55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in j around inf 43.2%
*-commutative43.2%
Simplified43.2%
if -5.6e13 < j < 2.6500000000000002e-99Initial program 76.9%
Taylor expanded in j around 0 72.5%
Taylor expanded in i around inf 32.6%
*-commutative32.6%
Simplified32.6%
if 2.6500000000000002e-99 < j < 1.15e168Initial program 69.2%
Taylor expanded in z around inf 36.4%
*-commutative36.4%
Simplified36.4%
Taylor expanded in x around inf 23.5%
*-commutative23.5%
Simplified23.5%
if 1.15e168 < j Initial program 71.3%
Taylor expanded in z around inf 57.8%
Taylor expanded in c around inf 58.1%
Taylor expanded in z around 0 47.8%
*-commutative47.8%
associate-*l*51.0%
*-commutative51.0%
Simplified51.0%
Final simplification35.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.8e+26) (not (<= a 6.5e-53))) (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.8e+26) || !(a <= 6.5e-53)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-1.8d+26)) .or. (.not. (a <= 6.5d-53))) then
tmp = a * ((c * j) - (x * t))
else
tmp = b * ((t * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.8e+26) || !(a <= 6.5e-53)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.8e+26) or not (a <= 6.5e-53): tmp = a * ((c * j) - (x * t)) else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.8e+26) || !(a <= 6.5e-53)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1.8e+26) || ~((a <= 6.5e-53))) tmp = a * ((c * j) - (x * t)); else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.8e+26], N[Not[LessEqual[a, 6.5e-53]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.8 \cdot 10^{+26} \lor \neg \left(a \leq 6.5 \cdot 10^{-53}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if a < -1.80000000000000012e26 or 6.4999999999999997e-53 < a Initial program 67.3%
Taylor expanded in a around inf 62.3%
+-commutative62.3%
mul-1-neg62.3%
unsub-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
if -1.80000000000000012e26 < a < 6.4999999999999997e-53Initial program 82.4%
Taylor expanded in b around inf 44.2%
*-commutative44.2%
*-commutative44.2%
Simplified44.2%
Final simplification54.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.4e+69) (not (<= j 2.4e+103))) (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.4e+69) || !(j <= 2.4e+103)) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = x * ((y * z) - (t * 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) :: tmp
if ((j <= (-1.4d+69)) .or. (.not. (j <= 2.4d+103))) then
tmp = j * ((a * c) - (y * i))
else
tmp = x * ((y * z) - (t * 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 tmp;
if ((j <= -1.4e+69) || !(j <= 2.4e+103)) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.4e+69) or not (j <= 2.4e+103): tmp = j * ((a * c) - (y * i)) else: tmp = x * ((y * z) - (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.4e+69) || !(j <= 2.4e+103)) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.4e+69) || ~((j <= 2.4e+103))) tmp = j * ((a * c) - (y * i)); else tmp = x * ((y * z) - (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.4e+69], N[Not[LessEqual[j, 2.4e+103]], $MachinePrecision]], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.4 \cdot 10^{+69} \lor \neg \left(j \leq 2.4 \cdot 10^{+103}\right):\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if j < -1.39999999999999991e69 or 2.3999999999999998e103 < j Initial program 76.1%
Taylor expanded in b around inf 70.6%
fma-define74.1%
associate-/l*75.2%
*-commutative75.2%
associate-/l*77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in j around -inf 72.1%
sub-neg72.1%
*-commutative72.1%
sub-neg72.1%
Simplified72.1%
if -1.39999999999999991e69 < j < 2.3999999999999998e103Initial program 72.9%
Taylor expanded in b around inf 68.4%
fma-define70.7%
associate-/l*67.4%
*-commutative67.4%
associate-/l*67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in x around -inf 47.2%
Final simplification55.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -4.6e+63) (not (<= c 8.5e+40))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -4.6e+63) || !(c <= 8.5e+40)) {
tmp = a * (c * j);
} else {
tmp = b * (t * 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 ((c <= (-4.6d+63)) .or. (.not. (c <= 8.5d+40))) then
tmp = a * (c * j)
else
tmp = b * (t * 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 ((c <= -4.6e+63) || !(c <= 8.5e+40)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -4.6e+63) or not (c <= 8.5e+40): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -4.6e+63) || !(c <= 8.5e+40)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -4.6e+63) || ~((c <= 8.5e+40))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -4.6e+63], N[Not[LessEqual[c, 8.5e+40]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.6 \cdot 10^{+63} \lor \neg \left(c \leq 8.5 \cdot 10^{+40}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -4.59999999999999986e63 or 8.49999999999999996e40 < c Initial program 61.7%
Taylor expanded in a around inf 56.0%
+-commutative56.0%
mul-1-neg56.0%
unsub-neg56.0%
*-commutative56.0%
*-commutative56.0%
Simplified56.0%
Taylor expanded in j around inf 45.4%
*-commutative45.4%
Simplified45.4%
if -4.59999999999999986e63 < c < 8.49999999999999996e40Initial program 81.0%
Taylor expanded in j around 0 65.1%
Taylor expanded in i around inf 27.2%
*-commutative27.2%
Simplified27.2%
Final simplification33.8%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
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 * (c * j)
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 * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 74.0%
Taylor expanded in a around inf 42.3%
+-commutative42.3%
mul-1-neg42.3%
unsub-neg42.3%
*-commutative42.3%
*-commutative42.3%
Simplified42.3%
Taylor expanded in j around inf 22.9%
*-commutative22.9%
Simplified22.9%
Final simplification22.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - 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 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024077
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))