
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY)
t_1
(*
t
(-
(* z (/ (fma y x (- (/ (* i (- (* a b) (* y j))) z) (* b c))) t))
(* x a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * ((z * (fma(y, x, (((i * ((a * b) - (y * j))) / z) - (b * c))) / t)) - (x * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(Float64(z * Float64(fma(y, x, Float64(Float64(Float64(i * Float64(Float64(a * b) - Float64(y * j))) / z) - Float64(b * c))) / t)) - Float64(x * a))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(N[(z * N[(N[(y * x + N[(N[(N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(z \cdot \frac{\mathsf{fma}\left(y, x, \frac{i \cdot \left(a \cdot b - y \cdot j\right)}{z} - b \cdot c\right)}{t} - x \cdot a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in c around 0 28.1%
Simplified36.9%
Taylor expanded in t around 0 36.9%
associate-*r*36.9%
neg-mul-136.9%
*-commutative36.9%
Simplified36.9%
Taylor expanded in z around -inf 45.6%
Simplified51.5%
Taylor expanded in t around -inf 45.7%
Simplified57.5%
Final simplification82.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in z around inf 52.0%
*-commutative52.0%
Simplified52.0%
Final simplification81.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(*
z
(-
(* x y)
(- (* b c) (/ (- (* a (- (* b i) (* x t))) (* j (* y i))) z)))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -6.4e+81)
(+ t_3 t_2)
(if (<= y -6.5e-157)
t_1
(if (<= y 7.1e-118)
(+ (* t (- (* c j) (* x a))) t_2)
(if (<= y 7.6e+126) t_1 t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - ((b * c) - (((a * ((b * i) - (x * t))) - (j * (y * i))) / z)));
double t_2 = b * ((a * i) - (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -6.4e+81) {
tmp = t_3 + t_2;
} else if (y <= -6.5e-157) {
tmp = t_1;
} else if (y <= 7.1e-118) {
tmp = (t * ((c * j) - (x * a))) + t_2;
} else if (y <= 7.6e+126) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * ((x * y) - ((b * c) - (((a * ((b * i) - (x * t))) - (j * (y * i))) / z)))
t_2 = b * ((a * i) - (z * c))
t_3 = y * ((x * z) - (i * j))
if (y <= (-6.4d+81)) then
tmp = t_3 + t_2
else if (y <= (-6.5d-157)) then
tmp = t_1
else if (y <= 7.1d-118) then
tmp = (t * ((c * j) - (x * a))) + t_2
else if (y <= 7.6d+126) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - ((b * c) - (((a * ((b * i) - (x * t))) - (j * (y * i))) / z)));
double t_2 = b * ((a * i) - (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -6.4e+81) {
tmp = t_3 + t_2;
} else if (y <= -6.5e-157) {
tmp = t_1;
} else if (y <= 7.1e-118) {
tmp = (t * ((c * j) - (x * a))) + t_2;
} else if (y <= 7.6e+126) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - ((b * c) - (((a * ((b * i) - (x * t))) - (j * (y * i))) / z))) t_2 = b * ((a * i) - (z * c)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -6.4e+81: tmp = t_3 + t_2 elif y <= -6.5e-157: tmp = t_1 elif y <= 7.1e-118: tmp = (t * ((c * j) - (x * a))) + t_2 elif y <= 7.6e+126: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(Float64(b * c) - Float64(Float64(Float64(a * Float64(Float64(b * i) - Float64(x * t))) - Float64(j * Float64(y * i))) / z)))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -6.4e+81) tmp = Float64(t_3 + t_2); elseif (y <= -6.5e-157) tmp = t_1; elseif (y <= 7.1e-118) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + t_2); elseif (y <= 7.6e+126) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - ((b * c) - (((a * ((b * i) - (x * t))) - (j * (y * i))) / z))); t_2 = b * ((a * i) - (z * c)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -6.4e+81) tmp = t_3 + t_2; elseif (y <= -6.5e-157) tmp = t_1; elseif (y <= 7.1e-118) tmp = (t * ((c * j) - (x * a))) + t_2; elseif (y <= 7.6e+126) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(N[(b * c), $MachinePrecision] - N[(N[(N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.4e+81], N[(t$95$3 + t$95$2), $MachinePrecision], If[LessEqual[y, -6.5e-157], t$95$1, If[LessEqual[y, 7.1e-118], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[y, 7.6e+126], t$95$1, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - \left(b \cdot c - \frac{a \cdot \left(b \cdot i - x \cdot t\right) - j \cdot \left(y \cdot i\right)}{z}\right)\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -6.4 \cdot 10^{+81}:\\
\;\;\;\;t\_3 + t\_2\\
\mathbf{elif}\;y \leq -6.5 \cdot 10^{-157}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.1 \cdot 10^{-118}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + t\_2\\
\mathbf{elif}\;y \leq 7.6 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -6.4e81Initial program 56.0%
Taylor expanded in t around 0 69.4%
mul-1-neg69.4%
*-commutative69.4%
distribute-rgt-neg-in69.4%
associate-*r*60.2%
*-commutative60.2%
associate-*l*66.4%
neg-mul-166.4%
associate-*r*66.4%
*-commutative66.4%
associate-*l*74.0%
*-commutative74.0%
distribute-lft-in79.7%
+-commutative79.7%
mul-1-neg79.7%
unsub-neg79.7%
*-commutative79.7%
Simplified79.7%
if -6.4e81 < y < -6.5000000000000002e-157 or 7.10000000000000005e-118 < y < 7.60000000000000033e126Initial program 71.5%
Taylor expanded in c around 0 71.6%
Simplified73.6%
Taylor expanded in t around 0 65.7%
associate-*r*65.7%
neg-mul-165.7%
*-commutative65.7%
Simplified65.7%
Taylor expanded in z around -inf 73.7%
Simplified77.8%
if -6.5000000000000002e-157 < y < 7.10000000000000005e-118Initial program 84.8%
Taylor expanded in y around 0 80.7%
+-commutative80.7%
mul-1-neg80.7%
*-commutative80.7%
associate-*r*82.1%
*-commutative82.1%
associate-*l*80.8%
associate-*r*77.9%
*-commutative77.9%
associate-*l*78.1%
distribute-rgt-neg-in78.1%
mul-1-neg78.1%
distribute-lft-in79.5%
mul-1-neg79.5%
unsub-neg79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
if 7.60000000000000033e126 < y Initial program 39.6%
Taylor expanded in y around inf 79.0%
+-commutative79.0%
mul-1-neg79.0%
unsub-neg79.0%
Simplified79.0%
Final simplification78.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= y -6e+234)
(* x (* y z))
(if (<= y -7.2e+60)
(* i (* y (- j)))
(if (<= y -1.4e-174)
t_1
(if (<= y 1.15e-221)
(* (* t a) (- x))
(if (<= y 4.4e-46)
t_1
(if (<= y 2.7e+82) (* (* z b) (- c)) (* j (- (* 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 = b * (a * i);
double tmp;
if (y <= -6e+234) {
tmp = x * (y * z);
} else if (y <= -7.2e+60) {
tmp = i * (y * -j);
} else if (y <= -1.4e-174) {
tmp = t_1;
} else if (y <= 1.15e-221) {
tmp = (t * a) * -x;
} else if (y <= 4.4e-46) {
tmp = t_1;
} else if (y <= 2.7e+82) {
tmp = (z * b) * -c;
} else {
tmp = j * -(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 = b * (a * i)
if (y <= (-6d+234)) then
tmp = x * (y * z)
else if (y <= (-7.2d+60)) then
tmp = i * (y * -j)
else if (y <= (-1.4d-174)) then
tmp = t_1
else if (y <= 1.15d-221) then
tmp = (t * a) * -x
else if (y <= 4.4d-46) then
tmp = t_1
else if (y <= 2.7d+82) then
tmp = (z * b) * -c
else
tmp = j * -(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 = b * (a * i);
double tmp;
if (y <= -6e+234) {
tmp = x * (y * z);
} else if (y <= -7.2e+60) {
tmp = i * (y * -j);
} else if (y <= -1.4e-174) {
tmp = t_1;
} else if (y <= 1.15e-221) {
tmp = (t * a) * -x;
} else if (y <= 4.4e-46) {
tmp = t_1;
} else if (y <= 2.7e+82) {
tmp = (z * b) * -c;
} else {
tmp = j * -(y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) tmp = 0 if y <= -6e+234: tmp = x * (y * z) elif y <= -7.2e+60: tmp = i * (y * -j) elif y <= -1.4e-174: tmp = t_1 elif y <= 1.15e-221: tmp = (t * a) * -x elif y <= 4.4e-46: tmp = t_1 elif y <= 2.7e+82: tmp = (z * b) * -c else: tmp = j * -(y * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) tmp = 0.0 if (y <= -6e+234) tmp = Float64(x * Float64(y * z)); elseif (y <= -7.2e+60) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= -1.4e-174) tmp = t_1; elseif (y <= 1.15e-221) tmp = Float64(Float64(t * a) * Float64(-x)); elseif (y <= 4.4e-46) tmp = t_1; elseif (y <= 2.7e+82) tmp = Float64(Float64(z * b) * Float64(-c)); else tmp = Float64(j * Float64(-Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (y <= -6e+234) tmp = x * (y * z); elseif (y <= -7.2e+60) tmp = i * (y * -j); elseif (y <= -1.4e-174) tmp = t_1; elseif (y <= 1.15e-221) tmp = (t * a) * -x; elseif (y <= 4.4e-46) tmp = t_1; elseif (y <= 2.7e+82) tmp = (z * b) * -c; else tmp = j * -(y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6e+234], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.2e+60], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.4e-174], t$95$1, If[LessEqual[y, 1.15e-221], N[(N[(t * a), $MachinePrecision] * (-x)), $MachinePrecision], If[LessEqual[y, 4.4e-46], t$95$1, If[LessEqual[y, 2.7e+82], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], N[(j * (-N[(y * i), $MachinePrecision])), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;y \leq -6 \cdot 10^{+234}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -7.2 \cdot 10^{+60}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq -1.4 \cdot 10^{-174}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-221}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(-x\right)\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{-46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+82}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(-y \cdot i\right)\\
\end{array}
\end{array}
if y < -5.9999999999999998e234Initial program 55.4%
Taylor expanded in c around 0 55.6%
Simplified66.7%
Taylor expanded in x around inf 61.6%
Taylor expanded in y around inf 61.7%
if -5.9999999999999998e234 < y < -7.19999999999999935e60Initial program 56.8%
Taylor expanded in c around 0 59.4%
Simplified62.5%
Taylor expanded in t around 0 57.7%
associate-*r*57.7%
neg-mul-157.7%
*-commutative57.7%
Simplified57.7%
Taylor expanded in j around inf 52.5%
neg-mul-152.5%
associate-*r*45.9%
distribute-lft-neg-out45.9%
*-commutative45.9%
distribute-lft-neg-in45.9%
Simplified45.9%
Taylor expanded in y around 0 52.5%
mul-1-neg52.5%
*-commutative52.5%
distribute-rgt-neg-in52.5%
distribute-lft-neg-in52.5%
*-commutative52.5%
Simplified52.5%
if -7.19999999999999935e60 < y < -1.39999999999999999e-174 or 1.15e-221 < y < 4.4000000000000002e-46Initial program 77.5%
Taylor expanded in b around inf 59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in a around inf 44.5%
if -1.39999999999999999e-174 < y < 1.15e-221Initial program 81.6%
Taylor expanded in c around 0 82.7%
Simplified82.8%
Taylor expanded in x around inf 42.5%
Taylor expanded in y around 0 40.5%
neg-mul-140.5%
distribute-rgt-neg-in40.5%
Simplified40.5%
if 4.4000000000000002e-46 < y < 2.6999999999999999e82Initial program 79.0%
Taylor expanded in c around 0 78.7%
Simplified78.7%
Taylor expanded in t around 0 73.5%
associate-*r*73.5%
neg-mul-173.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in c around inf 42.5%
mul-1-neg42.5%
*-commutative42.5%
associate-*r*47.2%
distribute-rgt-neg-in47.2%
*-commutative47.2%
distribute-rgt-neg-in47.2%
Simplified47.2%
if 2.6999999999999999e82 < y Initial program 41.6%
Taylor expanded in c around 0 55.0%
Simplified63.5%
Taylor expanded in t around 0 65.6%
associate-*r*65.6%
neg-mul-165.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in j around inf 43.2%
neg-mul-143.2%
associate-*r*45.2%
distribute-lft-neg-out45.2%
*-commutative45.2%
distribute-lft-neg-in45.2%
Simplified45.2%
Taylor expanded in y around 0 43.2%
mul-1-neg43.2%
associate-*r*45.2%
*-commutative45.2%
associate-*r*51.2%
distribute-rgt-neg-in51.2%
Simplified51.2%
Final simplification47.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -9.6e+60)
(* y (- (* x z) (* i j)))
(if (<= y -9e-177)
(* z (- (/ (* i (- (* a b) (* y j))) z) (* b c)))
(if (<= y 1.7e-165)
(* t (- (* c j) (* x a)))
(if (<= y 6.8e-46)
(* b (- (* a i) (* z c)))
(- (* z (- (* x y) (* b c))) (* j (* y i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -9.6e+60) {
tmp = y * ((x * z) - (i * j));
} else if (y <= -9e-177) {
tmp = z * (((i * ((a * b) - (y * j))) / z) - (b * c));
} else if (y <= 1.7e-165) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 6.8e-46) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * ((x * y) - (b * c))) - (j * (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-9.6d+60)) then
tmp = y * ((x * z) - (i * j))
else if (y <= (-9d-177)) then
tmp = z * (((i * ((a * b) - (y * j))) / z) - (b * c))
else if (y <= 1.7d-165) then
tmp = t * ((c * j) - (x * a))
else if (y <= 6.8d-46) then
tmp = b * ((a * i) - (z * c))
else
tmp = (z * ((x * y) - (b * c))) - (j * (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -9.6e+60) {
tmp = y * ((x * z) - (i * j));
} else if (y <= -9e-177) {
tmp = z * (((i * ((a * b) - (y * j))) / z) - (b * c));
} else if (y <= 1.7e-165) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 6.8e-46) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * ((x * y) - (b * c))) - (j * (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -9.6e+60: tmp = y * ((x * z) - (i * j)) elif y <= -9e-177: tmp = z * (((i * ((a * b) - (y * j))) / z) - (b * c)) elif y <= 1.7e-165: tmp = t * ((c * j) - (x * a)) elif y <= 6.8e-46: tmp = b * ((a * i) - (z * c)) else: tmp = (z * ((x * y) - (b * c))) - (j * (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -9.6e+60) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (y <= -9e-177) tmp = Float64(z * Float64(Float64(Float64(i * Float64(Float64(a * b) - Float64(y * j))) / z) - Float64(b * c))); elseif (y <= 1.7e-165) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= 6.8e-46) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - Float64(j * Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -9.6e+60) tmp = y * ((x * z) - (i * j)); elseif (y <= -9e-177) tmp = z * (((i * ((a * b) - (y * j))) / z) - (b * c)); elseif (y <= 1.7e-165) tmp = t * ((c * j) - (x * a)); elseif (y <= 6.8e-46) tmp = b * ((a * i) - (z * c)); else tmp = (z * ((x * y) - (b * c))) - (j * (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -9.6e+60], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -9e-177], N[(z * N[(N[(N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e-165], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.8e-46], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.6 \cdot 10^{+60}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;y \leq -9 \cdot 10^{-177}:\\
\;\;\;\;z \cdot \left(\frac{i \cdot \left(a \cdot b - y \cdot j\right)}{z} - b \cdot c\right)\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-165}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{-46}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) - j \cdot \left(y \cdot i\right)\\
\end{array}
\end{array}
if y < -9.6000000000000001e60Initial program 56.4%
Taylor expanded in y around inf 75.2%
+-commutative75.2%
mul-1-neg75.2%
unsub-neg75.2%
Simplified75.2%
if -9.6000000000000001e60 < y < -9.0000000000000007e-177Initial program 72.9%
Taylor expanded in c around 0 67.7%
Simplified65.8%
Taylor expanded in t around 0 58.9%
associate-*r*58.9%
neg-mul-158.9%
*-commutative58.9%
Simplified58.9%
Taylor expanded in z around -inf 66.0%
Simplified75.0%
Taylor expanded in x around 0 53.6%
+-commutative53.6%
associate--r+53.6%
div-sub57.3%
*-commutative57.3%
*-commutative57.3%
cancel-sign-sub-inv57.3%
associate-*r*58.9%
*-commutative58.9%
distribute-rgt-in62.5%
sub-neg62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -9.0000000000000007e-177 < y < 1.7e-165Initial program 83.4%
Taylor expanded in t around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
Simplified62.6%
if 1.7e-165 < y < 6.79999999999999992e-46Initial program 82.3%
Taylor expanded in b around inf 68.7%
*-commutative68.7%
Simplified68.7%
if 6.79999999999999992e-46 < y Initial program 52.5%
Taylor expanded in c around 0 61.9%
Simplified67.9%
Taylor expanded in t around 0 67.9%
associate-*r*67.9%
neg-mul-167.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in a around 0 57.2%
mul-1-neg57.2%
associate-*r*59.0%
distribute-lft-neg-in59.0%
mul-1-neg59.0%
associate-*r*63.5%
distribute-rgt-in69.7%
*-commutative69.7%
associate-*l*72.6%
*-commutative72.6%
+-commutative72.6%
mul-1-neg72.6%
unsub-neg72.6%
Simplified72.6%
Final simplification68.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= y -7.5e+60)
(* y (- (* x z) (* i j)))
(if (<= y -2.6e-176)
t_1
(if (<= y 1.08e-166)
(* t (- (* c j) (* x a)))
(if (<= y 1.95e-45)
t_1
(- (* z (- (* x y) (* b c))) (* j (* 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 = b * ((a * i) - (z * c));
double tmp;
if (y <= -7.5e+60) {
tmp = y * ((x * z) - (i * j));
} else if (y <= -2.6e-176) {
tmp = t_1;
} else if (y <= 1.08e-166) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 1.95e-45) {
tmp = t_1;
} else {
tmp = (z * ((x * y) - (b * c))) - (j * (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 = b * ((a * i) - (z * c))
if (y <= (-7.5d+60)) then
tmp = y * ((x * z) - (i * j))
else if (y <= (-2.6d-176)) then
tmp = t_1
else if (y <= 1.08d-166) then
tmp = t * ((c * j) - (x * a))
else if (y <= 1.95d-45) then
tmp = t_1
else
tmp = (z * ((x * y) - (b * c))) - (j * (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 = b * ((a * i) - (z * c));
double tmp;
if (y <= -7.5e+60) {
tmp = y * ((x * z) - (i * j));
} else if (y <= -2.6e-176) {
tmp = t_1;
} else if (y <= 1.08e-166) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 1.95e-45) {
tmp = t_1;
} else {
tmp = (z * ((x * y) - (b * c))) - (j * (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if y <= -7.5e+60: tmp = y * ((x * z) - (i * j)) elif y <= -2.6e-176: tmp = t_1 elif y <= 1.08e-166: tmp = t * ((c * j) - (x * a)) elif y <= 1.95e-45: tmp = t_1 else: tmp = (z * ((x * y) - (b * c))) - (j * (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (y <= -7.5e+60) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (y <= -2.6e-176) tmp = t_1; elseif (y <= 1.08e-166) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= 1.95e-45) tmp = t_1; else tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - Float64(j * Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (y <= -7.5e+60) tmp = y * ((x * z) - (i * j)); elseif (y <= -2.6e-176) tmp = t_1; elseif (y <= 1.08e-166) tmp = t * ((c * j) - (x * a)); elseif (y <= 1.95e-45) tmp = t_1; else tmp = (z * ((x * y) - (b * c))) - (j * (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.5e+60], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.6e-176], t$95$1, If[LessEqual[y, 1.08e-166], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.95e-45], t$95$1, N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;y \leq -7.5 \cdot 10^{+60}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-176}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.08 \cdot 10^{-166}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq 1.95 \cdot 10^{-45}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) - j \cdot \left(y \cdot i\right)\\
\end{array}
\end{array}
if y < -7.5e60Initial program 56.4%
Taylor expanded in y around inf 75.2%
+-commutative75.2%
mul-1-neg75.2%
unsub-neg75.2%
Simplified75.2%
if -7.5e60 < y < -2.59999999999999992e-176 or 1.08e-166 < y < 1.95e-45Initial program 75.6%
Taylor expanded in b around inf 60.5%
*-commutative60.5%
Simplified60.5%
if -2.59999999999999992e-176 < y < 1.08e-166Initial program 83.4%
Taylor expanded in t around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
Simplified62.6%
if 1.95e-45 < y Initial program 52.5%
Taylor expanded in c around 0 61.9%
Simplified67.9%
Taylor expanded in t around 0 67.9%
associate-*r*67.9%
neg-mul-167.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in a around 0 57.2%
mul-1-neg57.2%
associate-*r*59.0%
distribute-lft-neg-in59.0%
mul-1-neg59.0%
associate-*r*63.5%
distribute-rgt-in69.7%
*-commutative69.7%
associate-*l*72.6%
*-commutative72.6%
+-commutative72.6%
mul-1-neg72.6%
unsub-neg72.6%
Simplified72.6%
Final simplification67.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (+ t_2 t_1)))
(if (<= y -1.46e-44)
t_3
(if (<= y 2.9e-117)
(+ (* t (- (* c j) (* x a))) t_1)
(if (<= y 5e+127) 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 = b * ((a * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double t_3 = t_2 + t_1;
double tmp;
if (y <= -1.46e-44) {
tmp = t_3;
} else if (y <= 2.9e-117) {
tmp = (t * ((c * j) - (x * a))) + t_1;
} else if (y <= 5e+127) {
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 = b * ((a * i) - (z * c))
t_2 = y * ((x * z) - (i * j))
t_3 = t_2 + t_1
if (y <= (-1.46d-44)) then
tmp = t_3
else if (y <= 2.9d-117) then
tmp = (t * ((c * j) - (x * a))) + t_1
else if (y <= 5d+127) 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 = b * ((a * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double t_3 = t_2 + t_1;
double tmp;
if (y <= -1.46e-44) {
tmp = t_3;
} else if (y <= 2.9e-117) {
tmp = (t * ((c * j) - (x * a))) + t_1;
} else if (y <= 5e+127) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = y * ((x * z) - (i * j)) t_3 = t_2 + t_1 tmp = 0 if y <= -1.46e-44: tmp = t_3 elif y <= 2.9e-117: tmp = (t * ((c * j) - (x * a))) + t_1 elif y <= 5e+127: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(t_2 + t_1) tmp = 0.0 if (y <= -1.46e-44) tmp = t_3; elseif (y <= 2.9e-117) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + t_1); elseif (y <= 5e+127) 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 = b * ((a * i) - (z * c)); t_2 = y * ((x * z) - (i * j)); t_3 = t_2 + t_1; tmp = 0.0; if (y <= -1.46e-44) tmp = t_3; elseif (y <= 2.9e-117) tmp = (t * ((c * j) - (x * a))) + t_1; elseif (y <= 5e+127) 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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + t$95$1), $MachinePrecision]}, If[LessEqual[y, -1.46e-44], t$95$3, If[LessEqual[y, 2.9e-117], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[y, 5e+127], t$95$3, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := t\_2 + t\_1\\
\mathbf{if}\;y \leq -1.46 \cdot 10^{-44}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{-117}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + t\_1\\
\mathbf{elif}\;y \leq 5 \cdot 10^{+127}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.46000000000000012e-44 or 2.9000000000000001e-117 < y < 5.0000000000000004e127Initial program 63.6%
Taylor expanded in t around 0 68.3%
mul-1-neg68.3%
*-commutative68.3%
distribute-rgt-neg-in68.3%
associate-*r*63.8%
*-commutative63.8%
associate-*l*67.1%
neg-mul-167.1%
associate-*r*67.1%
*-commutative67.1%
associate-*l*71.0%
*-commutative71.0%
distribute-lft-in73.4%
+-commutative73.4%
mul-1-neg73.4%
unsub-neg73.4%
*-commutative73.4%
Simplified73.4%
if -1.46000000000000012e-44 < y < 2.9000000000000001e-117Initial program 83.4%
Taylor expanded in y around 0 78.4%
+-commutative78.4%
mul-1-neg78.4%
*-commutative78.4%
associate-*r*79.4%
*-commutative79.4%
associate-*l*78.4%
associate-*r*76.3%
*-commutative76.3%
associate-*l*76.4%
distribute-rgt-neg-in76.4%
mul-1-neg76.4%
distribute-lft-in77.5%
mul-1-neg77.5%
unsub-neg77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
if 5.0000000000000004e127 < y Initial program 39.6%
Taylor expanded in y around inf 79.0%
+-commutative79.0%
mul-1-neg79.0%
unsub-neg79.0%
Simplified79.0%
Final simplification75.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -1.06e+61)
t_2
(if (<= y -1.08e-174)
t_1
(if (<= y 2.4e-168)
(* t (- (* c j) (* x a)))
(if (<= y 3.2e+81) 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 = b * ((a * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.06e+61) {
tmp = t_2;
} else if (y <= -1.08e-174) {
tmp = t_1;
} else if (y <= 2.4e-168) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 3.2e+81) {
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 = b * ((a * i) - (z * c))
t_2 = y * ((x * z) - (i * j))
if (y <= (-1.06d+61)) then
tmp = t_2
else if (y <= (-1.08d-174)) then
tmp = t_1
else if (y <= 2.4d-168) then
tmp = t * ((c * j) - (x * a))
else if (y <= 3.2d+81) 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 = b * ((a * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.06e+61) {
tmp = t_2;
} else if (y <= -1.08e-174) {
tmp = t_1;
} else if (y <= 2.4e-168) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 3.2e+81) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.06e+61: tmp = t_2 elif y <= -1.08e-174: tmp = t_1 elif y <= 2.4e-168: tmp = t * ((c * j) - (x * a)) elif y <= 3.2e+81: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.06e+61) tmp = t_2; elseif (y <= -1.08e-174) tmp = t_1; elseif (y <= 2.4e-168) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= 3.2e+81) 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 = b * ((a * i) - (z * c)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.06e+61) tmp = t_2; elseif (y <= -1.08e-174) tmp = t_1; elseif (y <= 2.4e-168) tmp = t * ((c * j) - (x * a)); elseif (y <= 3.2e+81) 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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.06e+61], t$95$2, If[LessEqual[y, -1.08e-174], t$95$1, If[LessEqual[y, 2.4e-168], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.2e+81], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.06 \cdot 10^{+61}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.08 \cdot 10^{-174}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-168}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{+81}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.0599999999999999e61 or 3.2e81 < y Initial program 49.8%
Taylor expanded in y around inf 75.8%
+-commutative75.8%
mul-1-neg75.8%
unsub-neg75.8%
Simplified75.8%
if -1.0599999999999999e61 < y < -1.08e-174 or 2.3999999999999999e-168 < y < 3.2e81Initial program 76.3%
Taylor expanded in b around inf 58.0%
*-commutative58.0%
Simplified58.0%
if -1.08e-174 < y < 2.3999999999999999e-168Initial program 83.4%
Taylor expanded in t around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
Simplified62.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.6e+61)
(* y (- (* x z) (* i j)))
(if (<= y 9e-44)
(+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c))))
(- (* z (- (* x y) (* b c))) (* j (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.6e+61) {
tmp = y * ((x * z) - (i * j));
} else if (y <= 9e-44) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = (z * ((x * y) - (b * c))) - (j * (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-1.6d+61)) then
tmp = y * ((x * z) - (i * j))
else if (y <= 9d-44) then
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
else
tmp = (z * ((x * y) - (b * c))) - (j * (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.6e+61) {
tmp = y * ((x * z) - (i * j));
} else if (y <= 9e-44) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = (z * ((x * y) - (b * c))) - (j * (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.6e+61: tmp = y * ((x * z) - (i * j)) elif y <= 9e-44: tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) else: tmp = (z * ((x * y) - (b * c))) - (j * (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.6e+61) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (y <= 9e-44) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - Float64(j * Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.6e+61) tmp = y * ((x * z) - (i * j)); elseif (y <= 9e-44) tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); else tmp = (z * ((x * y) - (b * c))) - (j * (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.6e+61], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e-44], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.6 \cdot 10^{+61}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-44}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) - j \cdot \left(y \cdot i\right)\\
\end{array}
\end{array}
if y < -1.5999999999999999e61Initial program 56.4%
Taylor expanded in y around inf 75.2%
+-commutative75.2%
mul-1-neg75.2%
unsub-neg75.2%
Simplified75.2%
if -1.5999999999999999e61 < y < 8.9999999999999997e-44Initial program 78.9%
Taylor expanded in y around 0 73.2%
+-commutative73.2%
mul-1-neg73.2%
*-commutative73.2%
associate-*r*73.1%
*-commutative73.1%
associate-*l*73.3%
associate-*r*70.4%
*-commutative70.4%
associate-*l*71.2%
distribute-rgt-neg-in71.2%
mul-1-neg71.2%
distribute-lft-in71.9%
mul-1-neg71.9%
unsub-neg71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
if 8.9999999999999997e-44 < y Initial program 52.5%
Taylor expanded in c around 0 61.9%
Simplified67.9%
Taylor expanded in t around 0 67.9%
associate-*r*67.9%
neg-mul-167.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in a around 0 57.2%
mul-1-neg57.2%
associate-*r*59.0%
distribute-lft-neg-in59.0%
mul-1-neg59.0%
associate-*r*63.5%
distribute-rgt-in69.7%
*-commutative69.7%
associate-*l*72.6%
*-commutative72.6%
+-commutative72.6%
mul-1-neg72.6%
unsub-neg72.6%
Simplified72.6%
Final simplification72.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -3.15e+237)
(* x (* y z))
(if (<= y -1.15e+61)
(* i (* y (- j)))
(if (<= y 3.9e-46)
(* b (* a i))
(if (<= y 1.85e+83) (* (* z b) (- c)) (* j (- (* y i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.15e+237) {
tmp = x * (y * z);
} else if (y <= -1.15e+61) {
tmp = i * (y * -j);
} else if (y <= 3.9e-46) {
tmp = b * (a * i);
} else if (y <= 1.85e+83) {
tmp = (z * b) * -c;
} else {
tmp = j * -(y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-3.15d+237)) then
tmp = x * (y * z)
else if (y <= (-1.15d+61)) then
tmp = i * (y * -j)
else if (y <= 3.9d-46) then
tmp = b * (a * i)
else if (y <= 1.85d+83) then
tmp = (z * b) * -c
else
tmp = j * -(y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.15e+237) {
tmp = x * (y * z);
} else if (y <= -1.15e+61) {
tmp = i * (y * -j);
} else if (y <= 3.9e-46) {
tmp = b * (a * i);
} else if (y <= 1.85e+83) {
tmp = (z * b) * -c;
} else {
tmp = j * -(y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -3.15e+237: tmp = x * (y * z) elif y <= -1.15e+61: tmp = i * (y * -j) elif y <= 3.9e-46: tmp = b * (a * i) elif y <= 1.85e+83: tmp = (z * b) * -c else: tmp = j * -(y * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -3.15e+237) tmp = Float64(x * Float64(y * z)); elseif (y <= -1.15e+61) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= 3.9e-46) tmp = Float64(b * Float64(a * i)); elseif (y <= 1.85e+83) tmp = Float64(Float64(z * b) * Float64(-c)); else tmp = Float64(j * Float64(-Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -3.15e+237) tmp = x * (y * z); elseif (y <= -1.15e+61) tmp = i * (y * -j); elseif (y <= 3.9e-46) tmp = b * (a * i); elseif (y <= 1.85e+83) tmp = (z * b) * -c; else tmp = j * -(y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -3.15e+237], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.15e+61], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.9e-46], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.85e+83], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], N[(j * (-N[(y * i), $MachinePrecision])), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.15 \cdot 10^{+237}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -1.15 \cdot 10^{+61}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{-46}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{+83}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(-y \cdot i\right)\\
\end{array}
\end{array}
if y < -3.15000000000000004e237Initial program 55.4%
Taylor expanded in c around 0 55.6%
Simplified66.7%
Taylor expanded in x around inf 61.6%
Taylor expanded in y around inf 61.7%
if -3.15000000000000004e237 < y < -1.15e61Initial program 56.8%
Taylor expanded in c around 0 59.4%
Simplified62.5%
Taylor expanded in t around 0 57.7%
associate-*r*57.7%
neg-mul-157.7%
*-commutative57.7%
Simplified57.7%
Taylor expanded in j around inf 52.5%
neg-mul-152.5%
associate-*r*45.9%
distribute-lft-neg-out45.9%
*-commutative45.9%
distribute-lft-neg-in45.9%
Simplified45.9%
Taylor expanded in y around 0 52.5%
mul-1-neg52.5%
*-commutative52.5%
distribute-rgt-neg-in52.5%
distribute-lft-neg-in52.5%
*-commutative52.5%
Simplified52.5%
if -1.15e61 < y < 3.9000000000000003e-46Initial program 78.9%
Taylor expanded in b around inf 52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in a around inf 35.9%
if 3.9000000000000003e-46 < y < 1.8500000000000001e83Initial program 79.0%
Taylor expanded in c around 0 78.7%
Simplified78.7%
Taylor expanded in t around 0 73.5%
associate-*r*73.5%
neg-mul-173.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in c around inf 42.5%
mul-1-neg42.5%
*-commutative42.5%
associate-*r*47.2%
distribute-rgt-neg-in47.2%
*-commutative47.2%
distribute-rgt-neg-in47.2%
Simplified47.2%
if 1.8500000000000001e83 < y Initial program 41.6%
Taylor expanded in c around 0 55.0%
Simplified63.5%
Taylor expanded in t around 0 65.6%
associate-*r*65.6%
neg-mul-165.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in j around inf 43.2%
neg-mul-143.2%
associate-*r*45.2%
distribute-lft-neg-out45.2%
*-commutative45.2%
distribute-lft-neg-in45.2%
Simplified45.2%
Taylor expanded in y around 0 43.2%
mul-1-neg43.2%
associate-*r*45.2%
*-commutative45.2%
associate-*r*51.2%
distribute-rgt-neg-in51.2%
Simplified51.2%
Final simplification43.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -4.5e+44)
t_1
(if (<= b -1e-261)
(* x (- (* y z) (* t a)))
(if (<= b 134000000000.0) (* j (- (* t c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -4.5e+44) {
tmp = t_1;
} else if (b <= -1e-261) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 134000000000.0) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-4.5d+44)) then
tmp = t_1
else if (b <= (-1d-261)) then
tmp = x * ((y * z) - (t * a))
else if (b <= 134000000000.0d0) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -4.5e+44) {
tmp = t_1;
} else if (b <= -1e-261) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 134000000000.0) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -4.5e+44: tmp = t_1 elif b <= -1e-261: tmp = x * ((y * z) - (t * a)) elif b <= 134000000000.0: tmp = j * ((t * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.5e+44) tmp = t_1; elseif (b <= -1e-261) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 134000000000.0) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -4.5e+44) tmp = t_1; elseif (b <= -1e-261) tmp = x * ((y * z) - (t * a)); elseif (b <= 134000000000.0) tmp = j * ((t * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.5e+44], t$95$1, If[LessEqual[b, -1e-261], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 134000000000.0], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.5 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-261}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 134000000000:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4.5e44 or 1.34e11 < b Initial program 68.6%
Taylor expanded in b around inf 64.3%
*-commutative64.3%
Simplified64.3%
if -4.5e44 < b < -9.99999999999999984e-262Initial program 69.1%
Taylor expanded in c around 0 84.5%
Simplified86.3%
Taylor expanded in x around inf 57.2%
if -9.99999999999999984e-262 < b < 1.34e11Initial program 61.4%
Taylor expanded in j around inf 60.1%
Final simplification61.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -14000.0)
t_1
(if (<= a -3.1e-137)
(* b (- (* a i) (* z c)))
(if (<= a 9.5e+52) (* c (- (* t j) (* z b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -14000.0) {
tmp = t_1;
} else if (a <= -3.1e-137) {
tmp = b * ((a * i) - (z * c));
} else if (a <= 9.5e+52) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-14000.0d0)) then
tmp = t_1
else if (a <= (-3.1d-137)) then
tmp = b * ((a * i) - (z * c))
else if (a <= 9.5d+52) then
tmp = c * ((t * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -14000.0) {
tmp = t_1;
} else if (a <= -3.1e-137) {
tmp = b * ((a * i) - (z * c));
} else if (a <= 9.5e+52) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -14000.0: tmp = t_1 elif a <= -3.1e-137: tmp = b * ((a * i) - (z * c)) elif a <= 9.5e+52: tmp = c * ((t * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -14000.0) tmp = t_1; elseif (a <= -3.1e-137) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (a <= 9.5e+52) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -14000.0) tmp = t_1; elseif (a <= -3.1e-137) tmp = b * ((a * i) - (z * c)); elseif (a <= 9.5e+52) tmp = c * ((t * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -14000.0], t$95$1, If[LessEqual[a, -3.1e-137], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+52], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -14000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.1 \cdot 10^{-137}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+52}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -14000 or 9.49999999999999994e52 < a Initial program 62.6%
Taylor expanded in c around 0 68.5%
Simplified69.4%
Taylor expanded in a around inf 62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
*-commutative62.5%
Simplified62.5%
if -14000 < a < -3.09999999999999978e-137Initial program 84.5%
Taylor expanded in b around inf 52.1%
*-commutative52.1%
Simplified52.1%
if -3.09999999999999978e-137 < a < 9.49999999999999994e52Initial program 66.3%
Taylor expanded in c around inf 49.7%
*-commutative49.7%
*-commutative49.7%
Simplified49.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -2.1e+240)
(* x (* y z))
(if (<= y -1.5e+61)
(* i (* y (- j)))
(if (<= y 1.15e+57) (* a (- (* b i) (* x t))) (* j (- (* y i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.1e+240) {
tmp = x * (y * z);
} else if (y <= -1.5e+61) {
tmp = i * (y * -j);
} else if (y <= 1.15e+57) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = j * -(y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-2.1d+240)) then
tmp = x * (y * z)
else if (y <= (-1.5d+61)) then
tmp = i * (y * -j)
else if (y <= 1.15d+57) then
tmp = a * ((b * i) - (x * t))
else
tmp = j * -(y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.1e+240) {
tmp = x * (y * z);
} else if (y <= -1.5e+61) {
tmp = i * (y * -j);
} else if (y <= 1.15e+57) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = j * -(y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -2.1e+240: tmp = x * (y * z) elif y <= -1.5e+61: tmp = i * (y * -j) elif y <= 1.15e+57: tmp = a * ((b * i) - (x * t)) else: tmp = j * -(y * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2.1e+240) tmp = Float64(x * Float64(y * z)); elseif (y <= -1.5e+61) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= 1.15e+57) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(j * Float64(-Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -2.1e+240) tmp = x * (y * z); elseif (y <= -1.5e+61) tmp = i * (y * -j); elseif (y <= 1.15e+57) tmp = a * ((b * i) - (x * t)); else tmp = j * -(y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2.1e+240], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.5e+61], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.15e+57], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * (-N[(y * i), $MachinePrecision])), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.1 \cdot 10^{+240}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -1.5 \cdot 10^{+61}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{+57}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(-y \cdot i\right)\\
\end{array}
\end{array}
if y < -2.0999999999999999e240Initial program 55.4%
Taylor expanded in c around 0 55.6%
Simplified66.7%
Taylor expanded in x around inf 61.6%
Taylor expanded in y around inf 61.7%
if -2.0999999999999999e240 < y < -1.5e61Initial program 56.8%
Taylor expanded in c around 0 59.4%
Simplified62.5%
Taylor expanded in t around 0 57.7%
associate-*r*57.7%
neg-mul-157.7%
*-commutative57.7%
Simplified57.7%
Taylor expanded in j around inf 52.5%
neg-mul-152.5%
associate-*r*45.9%
distribute-lft-neg-out45.9%
*-commutative45.9%
distribute-lft-neg-in45.9%
Simplified45.9%
Taylor expanded in y around 0 52.5%
mul-1-neg52.5%
*-commutative52.5%
distribute-rgt-neg-in52.5%
distribute-lft-neg-in52.5%
*-commutative52.5%
Simplified52.5%
if -1.5e61 < y < 1.1499999999999999e57Initial program 79.8%
Taylor expanded in c around 0 76.9%
Simplified76.3%
Taylor expanded in a around inf 49.7%
+-commutative49.7%
mul-1-neg49.7%
unsub-neg49.7%
*-commutative49.7%
Simplified49.7%
if 1.1499999999999999e57 < y Initial program 41.1%
Taylor expanded in c around 0 53.6%
Simplified61.6%
Taylor expanded in t around 0 63.7%
associate-*r*63.7%
neg-mul-163.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in j around inf 44.7%
neg-mul-144.7%
associate-*r*44.6%
distribute-lft-neg-out44.6%
*-commutative44.6%
distribute-lft-neg-in44.6%
Simplified44.6%
Taylor expanded in y around 0 44.7%
mul-1-neg44.7%
associate-*r*44.6%
*-commutative44.6%
associate-*r*50.2%
distribute-rgt-neg-in50.2%
Simplified50.2%
Final simplification51.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.25e+17)
(* x (* y z))
(if (<= z -6.8e-142)
(* i (* y (- j)))
(if (<= z 7.8e+108) (* a (* b i)) (* (* z b) (- c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.25e+17) {
tmp = x * (y * z);
} else if (z <= -6.8e-142) {
tmp = i * (y * -j);
} else if (z <= 7.8e+108) {
tmp = a * (b * i);
} else {
tmp = (z * b) * -c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-1.25d+17)) then
tmp = x * (y * z)
else if (z <= (-6.8d-142)) then
tmp = i * (y * -j)
else if (z <= 7.8d+108) then
tmp = a * (b * i)
else
tmp = (z * b) * -c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.25e+17) {
tmp = x * (y * z);
} else if (z <= -6.8e-142) {
tmp = i * (y * -j);
} else if (z <= 7.8e+108) {
tmp = a * (b * i);
} else {
tmp = (z * b) * -c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.25e+17: tmp = x * (y * z) elif z <= -6.8e-142: tmp = i * (y * -j) elif z <= 7.8e+108: tmp = a * (b * i) else: tmp = (z * b) * -c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.25e+17) tmp = Float64(x * Float64(y * z)); elseif (z <= -6.8e-142) tmp = Float64(i * Float64(y * Float64(-j))); elseif (z <= 7.8e+108) tmp = Float64(a * Float64(b * i)); else tmp = Float64(Float64(z * b) * Float64(-c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.25e+17) tmp = x * (y * z); elseif (z <= -6.8e-142) tmp = i * (y * -j); elseif (z <= 7.8e+108) tmp = a * (b * i); else tmp = (z * b) * -c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.25e+17], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6.8e-142], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.8e+108], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+17}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{-142}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{+108}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\end{array}
\end{array}
if z < -1.25e17Initial program 66.2%
Taylor expanded in c around 0 60.0%
Simplified66.5%
Taylor expanded in x around inf 56.9%
Taylor expanded in y around inf 50.7%
if -1.25e17 < z < -6.80000000000000057e-142Initial program 76.0%
Taylor expanded in c around 0 72.0%
Simplified75.8%
Taylor expanded in t around 0 64.3%
associate-*r*64.3%
neg-mul-164.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in j around inf 35.1%
neg-mul-135.1%
associate-*r*38.7%
distribute-lft-neg-out38.7%
*-commutative38.7%
distribute-lft-neg-in38.7%
Simplified38.7%
Taylor expanded in y around 0 35.1%
mul-1-neg35.1%
*-commutative35.1%
distribute-rgt-neg-in35.1%
distribute-lft-neg-in35.1%
*-commutative35.1%
Simplified35.1%
if -6.80000000000000057e-142 < z < 7.79999999999999969e108Initial program 74.4%
Taylor expanded in b around inf 43.5%
*-commutative43.5%
Simplified43.5%
Taylor expanded in a around inf 35.8%
if 7.79999999999999969e108 < z Initial program 42.5%
Taylor expanded in c around 0 54.1%
Simplified56.5%
Taylor expanded in t around 0 54.1%
associate-*r*54.1%
neg-mul-154.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in c around inf 45.4%
mul-1-neg45.4%
*-commutative45.4%
associate-*r*51.7%
distribute-rgt-neg-in51.7%
*-commutative51.7%
distribute-rgt-neg-in51.7%
Simplified51.7%
Final simplification42.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -3.65e+105) (not (<= c 2.7e+67))) (* c (- (* t j) (* z b))) (* i (- (* a b) (* y j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.65e+105) || !(c <= 2.7e+67)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-3.65d+105)) .or. (.not. (c <= 2.7d+67))) then
tmp = c * ((t * j) - (z * b))
else
tmp = i * ((a * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.65e+105) || !(c <= 2.7e+67)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -3.65e+105) or not (c <= 2.7e+67): tmp = c * ((t * j) - (z * b)) else: tmp = i * ((a * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -3.65e+105) || !(c <= 2.7e+67)) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -3.65e+105) || ~((c <= 2.7e+67))) tmp = c * ((t * j) - (z * b)); else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -3.65e+105], N[Not[LessEqual[c, 2.7e+67]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.65 \cdot 10^{+105} \lor \neg \left(c \leq 2.7 \cdot 10^{+67}\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if c < -3.65000000000000012e105 or 2.6999999999999999e67 < c Initial program 49.6%
Taylor expanded in c around inf 66.2%
*-commutative66.2%
*-commutative66.2%
Simplified66.2%
if -3.65000000000000012e105 < c < 2.6999999999999999e67Initial program 78.6%
Taylor expanded in c around 0 68.9%
Simplified69.1%
Taylor expanded in i around inf 52.5%
*-commutative52.5%
Simplified52.5%
Final simplification57.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= x 2.85e-12) (* b (- (* a i) (* z c))) (if (<= x 1.65e+102) (* x (* y z)) (* a (- (* b i) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= 2.85e-12) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 1.65e+102) {
tmp = x * (y * z);
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= 2.85d-12) then
tmp = b * ((a * i) - (z * c))
else if (x <= 1.65d+102) then
tmp = x * (y * z)
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= 2.85e-12) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 1.65e+102) {
tmp = x * (y * z);
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= 2.85e-12: tmp = b * ((a * i) - (z * c)) elif x <= 1.65e+102: tmp = x * (y * z) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= 2.85e-12) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 1.65e+102) tmp = Float64(x * Float64(y * z)); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= 2.85e-12) tmp = b * ((a * i) - (z * c)); elseif (x <= 1.65e+102) tmp = x * (y * z); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, 2.85e-12], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.65e+102], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.85 \cdot 10^{-12}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{+102}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if x < 2.8500000000000002e-12Initial program 66.5%
Taylor expanded in b around inf 48.1%
*-commutative48.1%
Simplified48.1%
if 2.8500000000000002e-12 < x < 1.64999999999999999e102Initial program 64.8%
Taylor expanded in c around 0 70.1%
Simplified75.2%
Taylor expanded in x around inf 70.9%
Taylor expanded in y around inf 65.9%
if 1.64999999999999999e102 < x Initial program 70.6%
Taylor expanded in c around 0 68.7%
Simplified74.7%
Taylor expanded in a around inf 59.5%
+-commutative59.5%
mul-1-neg59.5%
unsub-neg59.5%
*-commutative59.5%
Simplified59.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -1.4e+17) (* x (* y z)) (if (<= z 2.55e+110) (* a (* b i)) (* (* z b) (- c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.4e+17) {
tmp = x * (y * z);
} else if (z <= 2.55e+110) {
tmp = a * (b * i);
} else {
tmp = (z * b) * -c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-1.4d+17)) then
tmp = x * (y * z)
else if (z <= 2.55d+110) then
tmp = a * (b * i)
else
tmp = (z * b) * -c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.4e+17) {
tmp = x * (y * z);
} else if (z <= 2.55e+110) {
tmp = a * (b * i);
} else {
tmp = (z * b) * -c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.4e+17: tmp = x * (y * z) elif z <= 2.55e+110: tmp = a * (b * i) else: tmp = (z * b) * -c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.4e+17) tmp = Float64(x * Float64(y * z)); elseif (z <= 2.55e+110) tmp = Float64(a * Float64(b * i)); else tmp = Float64(Float64(z * b) * Float64(-c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.4e+17) tmp = x * (y * z); elseif (z <= 2.55e+110) tmp = a * (b * i); else tmp = (z * b) * -c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.4e+17], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.55e+110], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+17}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{+110}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\end{array}
\end{array}
if z < -1.4e17Initial program 66.2%
Taylor expanded in c around 0 60.0%
Simplified66.5%
Taylor expanded in x around inf 56.9%
Taylor expanded in y around inf 50.7%
if -1.4e17 < z < 2.5500000000000001e110Initial program 74.6%
Taylor expanded in b around inf 40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in a around inf 32.8%
if 2.5500000000000001e110 < z Initial program 42.5%
Taylor expanded in c around 0 54.1%
Simplified56.5%
Taylor expanded in t around 0 54.1%
associate-*r*54.1%
neg-mul-154.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in c around inf 45.4%
mul-1-neg45.4%
*-commutative45.4%
associate-*r*51.7%
distribute-rgt-neg-in51.7%
*-commutative51.7%
distribute-rgt-neg-in51.7%
Simplified51.7%
Final simplification40.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -1.02e+17) (* x (* y z)) (if (<= z 4.05e+108) (* a (* b i)) (* b (* z (- c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.02e+17) {
tmp = x * (y * z);
} else if (z <= 4.05e+108) {
tmp = a * (b * i);
} else {
tmp = b * (z * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-1.02d+17)) then
tmp = x * (y * z)
else if (z <= 4.05d+108) then
tmp = a * (b * i)
else
tmp = b * (z * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.02e+17) {
tmp = x * (y * z);
} else if (z <= 4.05e+108) {
tmp = a * (b * i);
} else {
tmp = b * (z * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.02e+17: tmp = x * (y * z) elif z <= 4.05e+108: tmp = a * (b * i) else: tmp = b * (z * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.02e+17) tmp = Float64(x * Float64(y * z)); elseif (z <= 4.05e+108) tmp = Float64(a * Float64(b * i)); else tmp = Float64(b * Float64(z * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.02e+17) tmp = x * (y * z); elseif (z <= 4.05e+108) tmp = a * (b * i); else tmp = b * (z * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.02e+17], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.05e+108], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.02 \cdot 10^{+17}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 4.05 \cdot 10^{+108}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if z < -1.02e17Initial program 66.2%
Taylor expanded in c around 0 60.0%
Simplified66.5%
Taylor expanded in x around inf 56.9%
Taylor expanded in y around inf 50.7%
if -1.02e17 < z < 4.05e108Initial program 74.6%
Taylor expanded in b around inf 40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in a around inf 32.8%
if 4.05e108 < z Initial program 42.5%
Taylor expanded in b around inf 49.8%
*-commutative49.8%
Simplified49.8%
Taylor expanded in a around 0 45.4%
neg-mul-145.4%
distribute-rgt-neg-in45.4%
Simplified45.4%
Final simplification39.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -1.45e+17) (not (<= z 2.1e+80))) (* x (* y z)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -1.45e+17) || !(z <= 2.1e+80)) {
tmp = x * (y * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-1.45d+17)) .or. (.not. (z <= 2.1d+80))) then
tmp = x * (y * z)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -1.45e+17) || !(z <= 2.1e+80)) {
tmp = x * (y * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -1.45e+17) or not (z <= 2.1e+80): tmp = x * (y * z) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -1.45e+17) || !(z <= 2.1e+80)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -1.45e+17) || ~((z <= 2.1e+80))) tmp = x * (y * z); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -1.45e+17], N[Not[LessEqual[z, 2.1e+80]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+17} \lor \neg \left(z \leq 2.1 \cdot 10^{+80}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if z < -1.45e17 or 2.10000000000000001e80 < z Initial program 57.1%
Taylor expanded in c around 0 58.2%
Simplified62.0%
Taylor expanded in x around inf 46.8%
Taylor expanded in y around inf 41.4%
if -1.45e17 < z < 2.10000000000000001e80Initial program 74.6%
Taylor expanded in b around inf 41.6%
*-commutative41.6%
Simplified41.6%
Taylor expanded in a around inf 33.7%
Final simplification37.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -6.5e+16) (* x (* y z)) (if (<= z 1.1e+80) (* a (* b i)) (* y (* x z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.5e+16) {
tmp = x * (y * z);
} else if (z <= 1.1e+80) {
tmp = a * (b * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-6.5d+16)) then
tmp = x * (y * z)
else if (z <= 1.1d+80) then
tmp = a * (b * i)
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.5e+16) {
tmp = x * (y * z);
} else if (z <= 1.1e+80) {
tmp = a * (b * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -6.5e+16: tmp = x * (y * z) elif z <= 1.1e+80: tmp = a * (b * i) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -6.5e+16) tmp = Float64(x * Float64(y * z)); elseif (z <= 1.1e+80) tmp = Float64(a * Float64(b * i)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -6.5e+16) tmp = x * (y * z); elseif (z <= 1.1e+80) tmp = a * (b * i); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -6.5e+16], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.1e+80], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.5 \cdot 10^{+16}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{+80}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -6.5e16Initial program 66.2%
Taylor expanded in c around 0 60.0%
Simplified66.5%
Taylor expanded in x around inf 56.9%
Taylor expanded in y around inf 50.7%
if -6.5e16 < z < 1.10000000000000001e80Initial program 74.6%
Taylor expanded in b around inf 41.6%
*-commutative41.6%
Simplified41.6%
Taylor expanded in a around inf 33.7%
if 1.10000000000000001e80 < z Initial program 45.2%
Taylor expanded in y around inf 50.3%
+-commutative50.3%
mul-1-neg50.3%
unsub-neg50.3%
Simplified50.3%
Taylor expanded in x around inf 33.5%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = b * (a * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 67.2%
Taylor expanded in b around inf 43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in a around inf 26.3%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 67.2%
Taylor expanded in b around inf 43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in a around inf 24.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024185
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))