
(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 (* i (- (* a b) (* y j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((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 = i * ((a * b) - (y * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((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 = i * ((a * b) - (y * j));
}
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 = i * ((a * b) - (y * j)) 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(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((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 = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(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[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $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}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 87.8%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in i around inf 57.2%
distribute-lft-out--57.2%
*-commutative57.2%
Simplified57.2%
Final simplification82.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a)))))
(t_2 (* c (* t j)))
(t_3 (* b (- (* a i) (* z c))))
(t_4 (- t_3 (* j (- (* y i) (* t c))))))
(if (<= i -2.2e+152)
(+ (* y (- (* x z) (* i j))) t_3)
(if (<= i -1.05e+91)
t_1
(if (<= i -7.7e+15)
(+ t_2 t_3)
(if (<= i -7.6e-91)
t_1
(if (<= i -4.5e-171)
t_4
(if (<= i 1.15e-24)
(- (- t_2 (* x (- (* t a) (* y z)))) (* b (* z c)))
(if (<= i 4.8e+131) t_4 (* i (- (* a b) (* y j))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
double t_2 = c * (t * j);
double t_3 = b * ((a * i) - (z * c));
double t_4 = t_3 - (j * ((y * i) - (t * c)));
double tmp;
if (i <= -2.2e+152) {
tmp = (y * ((x * z) - (i * j))) + t_3;
} else if (i <= -1.05e+91) {
tmp = t_1;
} else if (i <= -7.7e+15) {
tmp = t_2 + t_3;
} else if (i <= -7.6e-91) {
tmp = t_1;
} else if (i <= -4.5e-171) {
tmp = t_4;
} else if (i <= 1.15e-24) {
tmp = (t_2 - (x * ((t * a) - (y * z)))) - (b * (z * c));
} else if (i <= 4.8e+131) {
tmp = t_4;
} 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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
t_2 = c * (t * j)
t_3 = b * ((a * i) - (z * c))
t_4 = t_3 - (j * ((y * i) - (t * c)))
if (i <= (-2.2d+152)) then
tmp = (y * ((x * z) - (i * j))) + t_3
else if (i <= (-1.05d+91)) then
tmp = t_1
else if (i <= (-7.7d+15)) then
tmp = t_2 + t_3
else if (i <= (-7.6d-91)) then
tmp = t_1
else if (i <= (-4.5d-171)) then
tmp = t_4
else if (i <= 1.15d-24) then
tmp = (t_2 - (x * ((t * a) - (y * z)))) - (b * (z * c))
else if (i <= 4.8d+131) then
tmp = t_4
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 t_1 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
double t_2 = c * (t * j);
double t_3 = b * ((a * i) - (z * c));
double t_4 = t_3 - (j * ((y * i) - (t * c)));
double tmp;
if (i <= -2.2e+152) {
tmp = (y * ((x * z) - (i * j))) + t_3;
} else if (i <= -1.05e+91) {
tmp = t_1;
} else if (i <= -7.7e+15) {
tmp = t_2 + t_3;
} else if (i <= -7.6e-91) {
tmp = t_1;
} else if (i <= -4.5e-171) {
tmp = t_4;
} else if (i <= 1.15e-24) {
tmp = (t_2 - (x * ((t * a) - (y * z)))) - (b * (z * c));
} else if (i <= 4.8e+131) {
tmp = t_4;
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) t_2 = c * (t * j) t_3 = b * ((a * i) - (z * c)) t_4 = t_3 - (j * ((y * i) - (t * c))) tmp = 0 if i <= -2.2e+152: tmp = (y * ((x * z) - (i * j))) + t_3 elif i <= -1.05e+91: tmp = t_1 elif i <= -7.7e+15: tmp = t_2 + t_3 elif i <= -7.6e-91: tmp = t_1 elif i <= -4.5e-171: tmp = t_4 elif i <= 1.15e-24: tmp = (t_2 - (x * ((t * a) - (y * z)))) - (b * (z * c)) elif i <= 4.8e+131: tmp = t_4 else: tmp = i * ((a * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) t_2 = Float64(c * Float64(t * j)) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_4 = Float64(t_3 - Float64(j * Float64(Float64(y * i) - Float64(t * c)))) tmp = 0.0 if (i <= -2.2e+152) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_3); elseif (i <= -1.05e+91) tmp = t_1; elseif (i <= -7.7e+15) tmp = Float64(t_2 + t_3); elseif (i <= -7.6e-91) tmp = t_1; elseif (i <= -4.5e-171) tmp = t_4; elseif (i <= 1.15e-24) tmp = Float64(Float64(t_2 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) - Float64(b * Float64(z * c))); elseif (i <= 4.8e+131) tmp = t_4; else tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); t_2 = c * (t * j); t_3 = b * ((a * i) - (z * c)); t_4 = t_3 - (j * ((y * i) - (t * c))); tmp = 0.0; if (i <= -2.2e+152) tmp = (y * ((x * z) - (i * j))) + t_3; elseif (i <= -1.05e+91) tmp = t_1; elseif (i <= -7.7e+15) tmp = t_2 + t_3; elseif (i <= -7.6e-91) tmp = t_1; elseif (i <= -4.5e-171) tmp = t_4; elseif (i <= 1.15e-24) tmp = (t_2 - (x * ((t * a) - (y * z)))) - (b * (z * c)); elseif (i <= 4.8e+131) tmp = t_4; else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 - N[(j * N[(N[(y * i), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.2e+152], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision], If[LessEqual[i, -1.05e+91], t$95$1, If[LessEqual[i, -7.7e+15], N[(t$95$2 + t$95$3), $MachinePrecision], If[LessEqual[i, -7.6e-91], t$95$1, If[LessEqual[i, -4.5e-171], t$95$4, If[LessEqual[i, 1.15e-24], N[(N[(t$95$2 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.8e+131], t$95$4, N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := c \cdot \left(t \cdot j\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_4 := t\_3 - j \cdot \left(y \cdot i - t \cdot c\right)\\
\mathbf{if}\;i \leq -2.2 \cdot 10^{+152}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t\_3\\
\mathbf{elif}\;i \leq -1.05 \cdot 10^{+91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -7.7 \cdot 10^{+15}:\\
\;\;\;\;t\_2 + t\_3\\
\mathbf{elif}\;i \leq -7.6 \cdot 10^{-91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -4.5 \cdot 10^{-171}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;i \leq 1.15 \cdot 10^{-24}:\\
\;\;\;\;\left(t\_2 - x \cdot \left(t \cdot a - y \cdot z\right)\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{+131}:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if i < -2.1999999999999998e152Initial program 74.4%
Taylor expanded in t around 0 81.6%
*-commutative81.6%
associate-*r*84.1%
associate-*r*79.0%
associate-*r*79.0%
distribute-rgt-in81.7%
+-commutative81.7%
mul-1-neg81.7%
unsub-neg81.7%
*-commutative81.7%
Simplified81.7%
if -2.1999999999999998e152 < i < -1.05000000000000004e91 or -7.7e15 < i < -7.59999999999999957e-91Initial program 70.6%
Taylor expanded in b around 0 80.7%
if -1.05000000000000004e91 < i < -7.7e15Initial program 64.9%
Taylor expanded in x around 0 64.9%
*-commutative64.9%
*-commutative64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in y around 0 71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
if -7.59999999999999957e-91 < i < -4.5000000000000004e-171 or 1.1500000000000001e-24 < i < 4.7999999999999999e131Initial program 72.0%
Taylor expanded in x around 0 76.7%
*-commutative76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
if -4.5000000000000004e-171 < i < 1.1500000000000001e-24Initial program 85.6%
Taylor expanded in i around 0 84.3%
if 4.7999999999999999e131 < i Initial program 52.8%
Taylor expanded in i around inf 78.0%
distribute-lft-out--78.0%
*-commutative78.0%
Simplified78.0%
Final simplification80.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -4.5e+42)
(* x (* y z))
(if (<= z 3.4e-225)
(* (* i j) (- y))
(if (<= z 1.15e-179)
(* a (* b i))
(if (<= z 6.6e-90)
(* c (* t j))
(if (<= z 1.6e-43)
(* a (* t (- x)))
(if (or (<= z 2.4e+118) (and (not (<= z 6e+188)) (<= z 2.3e+236)))
(* b (* z (- c)))
(* 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 <= -4.5e+42) {
tmp = x * (y * z);
} else if (z <= 3.4e-225) {
tmp = (i * j) * -y;
} else if (z <= 1.15e-179) {
tmp = a * (b * i);
} else if (z <= 6.6e-90) {
tmp = c * (t * j);
} else if (z <= 1.6e-43) {
tmp = a * (t * -x);
} else if ((z <= 2.4e+118) || (!(z <= 6e+188) && (z <= 2.3e+236))) {
tmp = b * (z * -c);
} 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 <= (-4.5d+42)) then
tmp = x * (y * z)
else if (z <= 3.4d-225) then
tmp = (i * j) * -y
else if (z <= 1.15d-179) then
tmp = a * (b * i)
else if (z <= 6.6d-90) then
tmp = c * (t * j)
else if (z <= 1.6d-43) then
tmp = a * (t * -x)
else if ((z <= 2.4d+118) .or. (.not. (z <= 6d+188)) .and. (z <= 2.3d+236)) then
tmp = b * (z * -c)
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 <= -4.5e+42) {
tmp = x * (y * z);
} else if (z <= 3.4e-225) {
tmp = (i * j) * -y;
} else if (z <= 1.15e-179) {
tmp = a * (b * i);
} else if (z <= 6.6e-90) {
tmp = c * (t * j);
} else if (z <= 1.6e-43) {
tmp = a * (t * -x);
} else if ((z <= 2.4e+118) || (!(z <= 6e+188) && (z <= 2.3e+236))) {
tmp = b * (z * -c);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -4.5e+42: tmp = x * (y * z) elif z <= 3.4e-225: tmp = (i * j) * -y elif z <= 1.15e-179: tmp = a * (b * i) elif z <= 6.6e-90: tmp = c * (t * j) elif z <= 1.6e-43: tmp = a * (t * -x) elif (z <= 2.4e+118) or (not (z <= 6e+188) and (z <= 2.3e+236)): tmp = b * (z * -c) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -4.5e+42) tmp = Float64(x * Float64(y * z)); elseif (z <= 3.4e-225) tmp = Float64(Float64(i * j) * Float64(-y)); elseif (z <= 1.15e-179) tmp = Float64(a * Float64(b * i)); elseif (z <= 6.6e-90) tmp = Float64(c * Float64(t * j)); elseif (z <= 1.6e-43) tmp = Float64(a * Float64(t * Float64(-x))); elseif ((z <= 2.4e+118) || (!(z <= 6e+188) && (z <= 2.3e+236))) tmp = Float64(b * Float64(z * Float64(-c))); 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 <= -4.5e+42) tmp = x * (y * z); elseif (z <= 3.4e-225) tmp = (i * j) * -y; elseif (z <= 1.15e-179) tmp = a * (b * i); elseif (z <= 6.6e-90) tmp = c * (t * j); elseif (z <= 1.6e-43) tmp = a * (t * -x); elseif ((z <= 2.4e+118) || (~((z <= 6e+188)) && (z <= 2.3e+236))) tmp = b * (z * -c); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -4.5e+42], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.4e-225], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[z, 1.15e-179], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e-90], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.6e-43], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 2.4e+118], And[N[Not[LessEqual[z, 6e+188]], $MachinePrecision], LessEqual[z, 2.3e+236]]], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.5 \cdot 10^{+42}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-225}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{-179}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-90}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{-43}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+118} \lor \neg \left(z \leq 6 \cdot 10^{+188}\right) \land z \leq 2.3 \cdot 10^{+236}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -4.50000000000000012e42Initial program 70.1%
Taylor expanded in a around 0 62.2%
associate--l+62.2%
associate-*r*64.1%
associate-*r*64.0%
distribute-rgt-out--66.0%
+-commutative66.0%
cancel-sign-sub-inv66.0%
*-commutative66.0%
fma-udef66.0%
fma-def70.1%
fma-neg70.1%
*-commutative70.1%
distribute-rgt-neg-in70.1%
distribute-lft-neg-out70.1%
distribute-rgt-neg-in70.1%
Simplified70.1%
Taylor expanded in x around inf 44.7%
if -4.50000000000000012e42 < z < 3.3999999999999999e-225Initial program 72.8%
Taylor expanded in j around inf 47.2%
Taylor expanded in c around 0 37.1%
associate-*r*40.9%
associate-*r*40.9%
*-commutative40.9%
mul-1-neg40.9%
*-commutative40.9%
distribute-rgt-neg-in40.9%
Simplified40.9%
if 3.3999999999999999e-225 < z < 1.14999999999999994e-179Initial program 86.4%
Taylor expanded in t around 0 51.8%
*-commutative51.8%
associate-*r*51.8%
associate-*r*51.8%
associate-*r*51.8%
distribute-rgt-in51.8%
+-commutative51.8%
mul-1-neg51.8%
unsub-neg51.8%
*-commutative51.8%
Simplified51.8%
Taylor expanded in a around inf 50.5%
*-commutative50.5%
Simplified50.5%
if 1.14999999999999994e-179 < z < 6.6e-90Initial program 86.0%
Taylor expanded in t around inf 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
*-commutative50.6%
*-commutative50.6%
Simplified50.6%
Taylor expanded in j around inf 43.9%
if 6.6e-90 < z < 1.59999999999999992e-43Initial program 88.7%
Taylor expanded in t around inf 45.9%
+-commutative45.9%
mul-1-neg45.9%
unsub-neg45.9%
*-commutative45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in j around 0 45.8%
associate-*r*45.8%
neg-mul-145.8%
*-commutative45.8%
Simplified45.8%
if 1.59999999999999992e-43 < z < 2.4e118 or 6.0000000000000001e188 < z < 2.3e236Initial program 75.4%
Taylor expanded in t around 0 68.9%
*-commutative68.9%
associate-*r*71.4%
associate-*r*69.2%
associate-*r*69.2%
distribute-rgt-in75.8%
+-commutative75.8%
mul-1-neg75.8%
unsub-neg75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in c around inf 54.8%
associate-*r*54.8%
neg-mul-154.8%
*-commutative54.8%
Simplified54.8%
if 2.4e118 < z < 6.0000000000000001e188 or 2.3e236 < z Initial program 52.9%
Taylor expanded in a around 0 49.3%
associate--l+49.3%
associate-*r*59.6%
associate-*r*70.2%
distribute-rgt-out--70.2%
+-commutative70.2%
cancel-sign-sub-inv70.2%
*-commutative70.2%
fma-udef70.2%
fma-def70.2%
fma-neg70.2%
*-commutative70.2%
distribute-rgt-neg-in70.2%
distribute-lft-neg-out70.2%
distribute-rgt-neg-in70.2%
Simplified70.2%
Taylor expanded in x around inf 50.5%
*-commutative50.5%
associate-*l*67.5%
Simplified67.5%
Final simplification47.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* i j))) (* z (* b c))))
(t_2 (* t (- (* c j) (* x a)))))
(if (<= t -3.35e+137)
t_2
(if (<= t -3.3e+25)
t_1
(if (<= t -3.7e-39)
(- (* x (* y z)) (* j (- (* y i) (* t c))))
(if (<= t 2.6e-72)
t_1
(if (<= t 2.7e-5)
(+ (* c (* t j)) (* b (- (* a i) (* z c))))
(if (<= t 5.3e+104) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (z * (b * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -3.35e+137) {
tmp = t_2;
} else if (t <= -3.3e+25) {
tmp = t_1;
} else if (t <= -3.7e-39) {
tmp = (x * (y * z)) - (j * ((y * i) - (t * c)));
} else if (t <= 2.6e-72) {
tmp = t_1;
} else if (t <= 2.7e-5) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (t <= 5.3e+104) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * ((x * z) - (i * j))) - (z * (b * c))
t_2 = t * ((c * j) - (x * a))
if (t <= (-3.35d+137)) then
tmp = t_2
else if (t <= (-3.3d+25)) then
tmp = t_1
else if (t <= (-3.7d-39)) then
tmp = (x * (y * z)) - (j * ((y * i) - (t * c)))
else if (t <= 2.6d-72) then
tmp = t_1
else if (t <= 2.7d-5) then
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)))
else if (t <= 5.3d+104) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (z * (b * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -3.35e+137) {
tmp = t_2;
} else if (t <= -3.3e+25) {
tmp = t_1;
} else if (t <= -3.7e-39) {
tmp = (x * (y * z)) - (j * ((y * i) - (t * c)));
} else if (t <= 2.6e-72) {
tmp = t_1;
} else if (t <= 2.7e-5) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (t <= 5.3e+104) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) - (z * (b * c)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -3.35e+137: tmp = t_2 elif t <= -3.3e+25: tmp = t_1 elif t <= -3.7e-39: tmp = (x * (y * z)) - (j * ((y * i) - (t * c))) elif t <= 2.6e-72: tmp = t_1 elif t <= 2.7e-5: tmp = (c * (t * j)) + (b * ((a * i) - (z * c))) elif t <= 5.3e+104: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(z * Float64(b * c))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -3.35e+137) tmp = t_2; elseif (t <= -3.3e+25) tmp = t_1; elseif (t <= -3.7e-39) tmp = Float64(Float64(x * Float64(y * z)) - Float64(j * Float64(Float64(y * i) - Float64(t * c)))); elseif (t <= 2.6e-72) tmp = t_1; elseif (t <= 2.7e-5) tmp = Float64(Float64(c * Float64(t * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (t <= 5.3e+104) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) - (z * (b * c)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -3.35e+137) tmp = t_2; elseif (t <= -3.3e+25) tmp = t_1; elseif (t <= -3.7e-39) tmp = (x * (y * z)) - (j * ((y * i) - (t * c))); elseif (t <= 2.6e-72) tmp = t_1; elseif (t <= 2.7e-5) tmp = (c * (t * j)) + (b * ((a * i) - (z * c))); elseif (t <= 5.3e+104) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.35e+137], t$95$2, If[LessEqual[t, -3.3e+25], t$95$1, If[LessEqual[t, -3.7e-39], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.6e-72], t$95$1, If[LessEqual[t, 2.7e-5], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.3e+104], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) - z \cdot \left(b \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -3.35 \cdot 10^{+137}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -3.3 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.7 \cdot 10^{-39}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) - j \cdot \left(y \cdot i - t \cdot c\right)\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-5}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t \leq 5.3 \cdot 10^{+104}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -3.3499999999999999e137 or 5.2999999999999999e104 < t Initial program 59.1%
Taylor expanded in t around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
if -3.3499999999999999e137 < t < -3.3000000000000001e25 or -3.70000000000000015e-39 < t < 2.59999999999999996e-72 or 2.6999999999999999e-5 < t < 5.2999999999999999e104Initial program 77.7%
Taylor expanded in t around 0 72.2%
*-commutative72.2%
associate-*r*72.9%
associate-*r*72.9%
associate-*r*72.9%
distribute-rgt-in75.6%
+-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in z around inf 69.5%
*-commutative69.5%
*-commutative69.5%
associate-*l*70.3%
*-commutative70.3%
Simplified70.3%
if -3.3000000000000001e25 < t < -3.70000000000000015e-39Initial program 86.6%
Taylor expanded in a around 0 75.0%
associate--l+75.0%
associate-*r*75.0%
associate-*r*68.3%
distribute-rgt-out--68.3%
+-commutative68.3%
cancel-sign-sub-inv68.3%
*-commutative68.3%
fma-udef68.3%
fma-def68.3%
fma-neg68.3%
*-commutative68.3%
distribute-rgt-neg-in68.3%
distribute-lft-neg-out68.3%
distribute-rgt-neg-in68.3%
Simplified68.3%
Taylor expanded in b around 0 68.8%
if 2.59999999999999996e-72 < t < 2.6999999999999999e-5Initial program 74.9%
Taylor expanded in x around 0 81.1%
*-commutative81.1%
*-commutative81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in y around 0 75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Final simplification71.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* t (- (* c j) (* x a))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= b -3.35e+41)
t_3
(if (<= b -2.7e-100)
t_1
(if (<= b -1.08e-160)
(* y (* x z))
(if (<= b -3e-174)
t_1
(if (<= b 4.8e-102)
t_2
(if (<= b 1.95e+14)
(* c (- (* t j) (* z b)))
(if (<= b 6.2e+63) t_2 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.35e+41) {
tmp = t_3;
} else if (b <= -2.7e-100) {
tmp = t_1;
} else if (b <= -1.08e-160) {
tmp = y * (x * z);
} else if (b <= -3e-174) {
tmp = t_1;
} else if (b <= 4.8e-102) {
tmp = t_2;
} else if (b <= 1.95e+14) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 6.2e+63) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = t * ((c * j) - (x * a))
t_3 = b * ((a * i) - (z * c))
if (b <= (-3.35d+41)) then
tmp = t_3
else if (b <= (-2.7d-100)) then
tmp = t_1
else if (b <= (-1.08d-160)) then
tmp = y * (x * z)
else if (b <= (-3d-174)) then
tmp = t_1
else if (b <= 4.8d-102) then
tmp = t_2
else if (b <= 1.95d+14) then
tmp = c * ((t * j) - (z * b))
else if (b <= 6.2d+63) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.35e+41) {
tmp = t_3;
} else if (b <= -2.7e-100) {
tmp = t_1;
} else if (b <= -1.08e-160) {
tmp = y * (x * z);
} else if (b <= -3e-174) {
tmp = t_1;
} else if (b <= 4.8e-102) {
tmp = t_2;
} else if (b <= 1.95e+14) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 6.2e+63) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t * ((c * j) - (x * a)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if b <= -3.35e+41: tmp = t_3 elif b <= -2.7e-100: tmp = t_1 elif b <= -1.08e-160: tmp = y * (x * z) elif b <= -3e-174: tmp = t_1 elif b <= 4.8e-102: tmp = t_2 elif b <= 1.95e+14: tmp = c * ((t * j) - (z * b)) elif b <= 6.2e+63: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.35e+41) tmp = t_3; elseif (b <= -2.7e-100) tmp = t_1; elseif (b <= -1.08e-160) tmp = Float64(y * Float64(x * z)); elseif (b <= -3e-174) tmp = t_1; elseif (b <= 4.8e-102) tmp = t_2; elseif (b <= 1.95e+14) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (b <= 6.2e+63) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = t * ((c * j) - (x * a)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -3.35e+41) tmp = t_3; elseif (b <= -2.7e-100) tmp = t_1; elseif (b <= -1.08e-160) tmp = y * (x * z); elseif (b <= -3e-174) tmp = t_1; elseif (b <= 4.8e-102) tmp = t_2; elseif (b <= 1.95e+14) tmp = c * ((t * j) - (z * b)); elseif (b <= 6.2e+63) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.35e+41], t$95$3, If[LessEqual[b, -2.7e-100], t$95$1, If[LessEqual[b, -1.08e-160], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3e-174], t$95$1, If[LessEqual[b, 4.8e-102], t$95$2, If[LessEqual[b, 1.95e+14], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2e+63], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.35 \cdot 10^{+41}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.08 \cdot 10^{-160}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-174}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-102}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{+14}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{+63}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -3.3499999999999998e41 or 6.2000000000000001e63 < b Initial program 74.7%
Taylor expanded in b around inf 67.4%
*-commutative67.4%
Simplified67.4%
if -3.3499999999999998e41 < b < -2.70000000000000016e-100 or -1.08e-160 < b < -3.00000000000000021e-174Initial program 85.6%
Taylor expanded in j around inf 52.0%
if -2.70000000000000016e-100 < b < -1.08e-160Initial program 47.0%
Taylor expanded in a around 0 54.9%
associate--l+54.7%
associate-*r*69.1%
associate-*r*69.1%
distribute-rgt-out--69.1%
+-commutative69.1%
cancel-sign-sub-inv69.1%
*-commutative69.1%
fma-udef69.1%
fma-def69.1%
fma-neg69.1%
*-commutative69.1%
distribute-rgt-neg-in69.1%
distribute-lft-neg-out69.1%
distribute-rgt-neg-in69.1%
Simplified69.1%
Taylor expanded in x around inf 56.3%
*-commutative56.3%
associate-*l*63.4%
Simplified63.4%
if -3.00000000000000021e-174 < b < 4.8e-102 or 1.95e14 < b < 6.2000000000000001e63Initial program 65.6%
Taylor expanded in t around inf 48.3%
+-commutative48.3%
mul-1-neg48.3%
unsub-neg48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
if 4.8e-102 < b < 1.95e14Initial program 82.6%
Taylor expanded in c around inf 53.2%
*-commutative53.2%
*-commutative53.2%
Simplified53.2%
Final simplification58.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* i j))) (* z (* b c)))))
(if (<= c -8e+185)
(- (- (* c (* t j)) (* x (* t a))) (* b (* z c)))
(if (<= c -6.8e+56)
t_1
(if (<= c -3.1e+21)
(* a (- (* b i) (* x t)))
(if (<= c -9e-91)
t_1
(if (<= c 1e-73)
(+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a))))
(- (* b (- (* a i) (* z c))) (* j (- (* y i) (* t c)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (z * (b * c));
double tmp;
if (c <= -8e+185) {
tmp = ((c * (t * j)) - (x * (t * a))) - (b * (z * c));
} else if (c <= -6.8e+56) {
tmp = t_1;
} else if (c <= -3.1e+21) {
tmp = a * ((b * i) - (x * t));
} else if (c <= -9e-91) {
tmp = t_1;
} else if (c <= 1e-73) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (b * ((a * i) - (z * c))) - (j * ((y * i) - (t * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (y * ((x * z) - (i * j))) - (z * (b * c))
if (c <= (-8d+185)) then
tmp = ((c * (t * j)) - (x * (t * a))) - (b * (z * c))
else if (c <= (-6.8d+56)) then
tmp = t_1
else if (c <= (-3.1d+21)) then
tmp = a * ((b * i) - (x * t))
else if (c <= (-9d-91)) then
tmp = t_1
else if (c <= 1d-73) then
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = (b * ((a * i) - (z * c))) - (j * ((y * i) - (t * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (z * (b * c));
double tmp;
if (c <= -8e+185) {
tmp = ((c * (t * j)) - (x * (t * a))) - (b * (z * c));
} else if (c <= -6.8e+56) {
tmp = t_1;
} else if (c <= -3.1e+21) {
tmp = a * ((b * i) - (x * t));
} else if (c <= -9e-91) {
tmp = t_1;
} else if (c <= 1e-73) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (b * ((a * i) - (z * c))) - (j * ((y * i) - (t * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) - (z * (b * c)) tmp = 0 if c <= -8e+185: tmp = ((c * (t * j)) - (x * (t * a))) - (b * (z * c)) elif c <= -6.8e+56: tmp = t_1 elif c <= -3.1e+21: tmp = a * ((b * i) - (x * t)) elif c <= -9e-91: tmp = t_1 elif c <= 1e-73: tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = (b * ((a * i) - (z * c))) - (j * ((y * i) - (t * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(z * Float64(b * c))) tmp = 0.0 if (c <= -8e+185) tmp = Float64(Float64(Float64(c * Float64(t * j)) - Float64(x * Float64(t * a))) - Float64(b * Float64(z * c))); elseif (c <= -6.8e+56) tmp = t_1; elseif (c <= -3.1e+21) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (c <= -9e-91) tmp = t_1; elseif (c <= 1e-73) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(j * Float64(Float64(y * i) - Float64(t * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) - (z * (b * c)); tmp = 0.0; if (c <= -8e+185) tmp = ((c * (t * j)) - (x * (t * a))) - (b * (z * c)); elseif (c <= -6.8e+56) tmp = t_1; elseif (c <= -3.1e+21) tmp = a * ((b * i) - (x * t)); elseif (c <= -9e-91) tmp = t_1; elseif (c <= 1e-73) tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = (b * ((a * i) - (z * c))) - (j * ((y * i) - (t * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8e+185], N[(N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -6.8e+56], t$95$1, If[LessEqual[c, -3.1e+21], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -9e-91], t$95$1, If[LessEqual[c, 1e-73], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{if}\;c \leq -8 \cdot 10^{+185}:\\
\;\;\;\;\left(c \cdot \left(t \cdot j\right) - x \cdot \left(t \cdot a\right)\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;c \leq -6.8 \cdot 10^{+56}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -3.1 \cdot 10^{+21}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq -9 \cdot 10^{-91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 10^{-73}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - j \cdot \left(y \cdot i - t \cdot c\right)\\
\end{array}
\end{array}
if c < -7.9999999999999998e185Initial program 75.9%
Taylor expanded in i around 0 87.4%
Taylor expanded in y around 0 83.5%
mul-1-neg83.5%
associate-*r*87.4%
*-commutative87.4%
Simplified87.4%
if -7.9999999999999998e185 < c < -6.80000000000000002e56 or -3.1e21 < c < -8.99999999999999952e-91Initial program 67.1%
Taylor expanded in t around 0 70.8%
*-commutative70.8%
associate-*r*75.0%
associate-*r*77.2%
associate-*r*77.2%
distribute-rgt-in79.5%
+-commutative79.5%
mul-1-neg79.5%
unsub-neg79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in z around inf 77.4%
*-commutative77.4%
*-commutative77.4%
associate-*l*79.6%
*-commutative79.6%
Simplified79.6%
if -6.80000000000000002e56 < c < -3.1e21Initial program 75.0%
Taylor expanded in a around -inf 75.5%
if -8.99999999999999952e-91 < c < 9.99999999999999997e-74Initial program 73.3%
Taylor expanded in b around 0 68.5%
if 9.99999999999999997e-74 < c Initial program 73.8%
Taylor expanded in x around 0 72.2%
*-commutative72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Final simplification73.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))))
(if (<= y -5e+50)
(* i (* y (- j)))
(if (<= y 1.32e-117)
(* b (- (* a i) (* z c)))
(if (<= y 1.75e-72)
(* a (* t (- x)))
(if (<= y 4.2e+75)
t_1
(if (<= y 1.8e+190)
(* x (* y z))
(if (<= y 4.2e+202) t_1 (* (* i j) (- y))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double tmp;
if (y <= -5e+50) {
tmp = i * (y * -j);
} else if (y <= 1.32e-117) {
tmp = b * ((a * i) - (z * c));
} else if (y <= 1.75e-72) {
tmp = a * (t * -x);
} else if (y <= 4.2e+75) {
tmp = t_1;
} else if (y <= 1.8e+190) {
tmp = x * (y * z);
} else if (y <= 4.2e+202) {
tmp = t_1;
} else {
tmp = (i * j) * -y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
if (y <= (-5d+50)) then
tmp = i * (y * -j)
else if (y <= 1.32d-117) then
tmp = b * ((a * i) - (z * c))
else if (y <= 1.75d-72) then
tmp = a * (t * -x)
else if (y <= 4.2d+75) then
tmp = t_1
else if (y <= 1.8d+190) then
tmp = x * (y * z)
else if (y <= 4.2d+202) then
tmp = t_1
else
tmp = (i * j) * -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double tmp;
if (y <= -5e+50) {
tmp = i * (y * -j);
} else if (y <= 1.32e-117) {
tmp = b * ((a * i) - (z * c));
} else if (y <= 1.75e-72) {
tmp = a * (t * -x);
} else if (y <= 4.2e+75) {
tmp = t_1;
} else if (y <= 1.8e+190) {
tmp = x * (y * z);
} else if (y <= 4.2e+202) {
tmp = t_1;
} else {
tmp = (i * j) * -y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) tmp = 0 if y <= -5e+50: tmp = i * (y * -j) elif y <= 1.32e-117: tmp = b * ((a * i) - (z * c)) elif y <= 1.75e-72: tmp = a * (t * -x) elif y <= 4.2e+75: tmp = t_1 elif y <= 1.8e+190: tmp = x * (y * z) elif y <= 4.2e+202: tmp = t_1 else: tmp = (i * j) * -y return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (y <= -5e+50) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= 1.32e-117) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (y <= 1.75e-72) tmp = Float64(a * Float64(t * Float64(-x))); elseif (y <= 4.2e+75) tmp = t_1; elseif (y <= 1.8e+190) tmp = Float64(x * Float64(y * z)); elseif (y <= 4.2e+202) tmp = t_1; else tmp = Float64(Float64(i * j) * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); tmp = 0.0; if (y <= -5e+50) tmp = i * (y * -j); elseif (y <= 1.32e-117) tmp = b * ((a * i) - (z * c)); elseif (y <= 1.75e-72) tmp = a * (t * -x); elseif (y <= 4.2e+75) tmp = t_1; elseif (y <= 1.8e+190) tmp = x * (y * z); elseif (y <= 4.2e+202) tmp = t_1; else tmp = (i * j) * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5e+50], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.32e-117], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.75e-72], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e+75], t$95$1, If[LessEqual[y, 1.8e+190], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e+202], t$95$1, N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;y \leq -5 \cdot 10^{+50}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq 1.32 \cdot 10^{-117}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 1.75 \cdot 10^{-72}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{+75}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{+190}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{+202}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\end{array}
\end{array}
if y < -5e50Initial program 63.5%
Taylor expanded in j around inf 43.7%
Taylor expanded in c around 0 42.4%
associate-*r*42.4%
neg-mul-142.4%
*-commutative42.4%
Simplified42.4%
if -5e50 < y < 1.32e-117Initial program 79.3%
Taylor expanded in b around inf 52.9%
*-commutative52.9%
Simplified52.9%
if 1.32e-117 < y < 1.75e-72Initial program 74.8%
Taylor expanded in t around inf 75.4%
+-commutative75.4%
mul-1-neg75.4%
unsub-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in j around 0 75.3%
associate-*r*75.3%
neg-mul-175.3%
*-commutative75.3%
Simplified75.3%
if 1.75e-72 < y < 4.19999999999999997e75 or 1.79999999999999989e190 < y < 4.2e202Initial program 82.1%
Taylor expanded in c around inf 57.7%
*-commutative57.7%
*-commutative57.7%
Simplified57.7%
if 4.19999999999999997e75 < y < 1.79999999999999989e190Initial program 65.2%
Taylor expanded in a around 0 63.2%
associate--l+63.2%
associate-*r*65.2%
associate-*r*61.7%
distribute-rgt-out--65.2%
+-commutative65.2%
cancel-sign-sub-inv65.2%
*-commutative65.2%
fma-udef65.2%
fma-def65.2%
fma-neg65.2%
*-commutative65.2%
distribute-rgt-neg-in65.2%
distribute-lft-neg-out65.2%
distribute-rgt-neg-in65.2%
Simplified65.2%
Taylor expanded in x around inf 42.6%
if 4.2e202 < y Initial program 64.4%
Taylor expanded in j around inf 80.5%
Taylor expanded in c around 0 69.2%
associate-*r*76.7%
associate-*r*76.7%
*-commutative76.7%
mul-1-neg76.7%
*-commutative76.7%
distribute-rgt-neg-in76.7%
Simplified76.7%
Final simplification52.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -4.3e+49)
t_2
(if (<= b -4.4e-100)
t_1
(if (<= b -8.6e-159)
(* y (* x z))
(if (<= b -3.5e-176)
t_1
(if (<= b -1.55e-250)
(* t (* x (- a)))
(if (<= b 4e+60) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -4.3e+49) {
tmp = t_2;
} else if (b <= -4.4e-100) {
tmp = t_1;
} else if (b <= -8.6e-159) {
tmp = y * (x * z);
} else if (b <= -3.5e-176) {
tmp = t_1;
} else if (b <= -1.55e-250) {
tmp = t * (x * -a);
} else if (b <= 4e+60) {
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 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
if (b <= (-4.3d+49)) then
tmp = t_2
else if (b <= (-4.4d-100)) then
tmp = t_1
else if (b <= (-8.6d-159)) then
tmp = y * (x * z)
else if (b <= (-3.5d-176)) then
tmp = t_1
else if (b <= (-1.55d-250)) then
tmp = t * (x * -a)
else if (b <= 4d+60) 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 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -4.3e+49) {
tmp = t_2;
} else if (b <= -4.4e-100) {
tmp = t_1;
} else if (b <= -8.6e-159) {
tmp = y * (x * z);
} else if (b <= -3.5e-176) {
tmp = t_1;
} else if (b <= -1.55e-250) {
tmp = t * (x * -a);
} else if (b <= 4e+60) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -4.3e+49: tmp = t_2 elif b <= -4.4e-100: tmp = t_1 elif b <= -8.6e-159: tmp = y * (x * z) elif b <= -3.5e-176: tmp = t_1 elif b <= -1.55e-250: tmp = t * (x * -a) elif b <= 4e+60: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.3e+49) tmp = t_2; elseif (b <= -4.4e-100) tmp = t_1; elseif (b <= -8.6e-159) tmp = Float64(y * Float64(x * z)); elseif (b <= -3.5e-176) tmp = t_1; elseif (b <= -1.55e-250) tmp = Float64(t * Float64(x * Float64(-a))); elseif (b <= 4e+60) 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 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -4.3e+49) tmp = t_2; elseif (b <= -4.4e-100) tmp = t_1; elseif (b <= -8.6e-159) tmp = y * (x * z); elseif (b <= -3.5e-176) tmp = t_1; elseif (b <= -1.55e-250) tmp = t * (x * -a); elseif (b <= 4e+60) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.3e+49], t$95$2, If[LessEqual[b, -4.4e-100], t$95$1, If[LessEqual[b, -8.6e-159], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.5e-176], t$95$1, If[LessEqual[b, -1.55e-250], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4e+60], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.3 \cdot 10^{+49}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{-100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -8.6 \cdot 10^{-159}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{-176}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.55 \cdot 10^{-250}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -4.2999999999999999e49 or 3.9999999999999998e60 < b Initial program 74.9%
Taylor expanded in b around inf 66.8%
*-commutative66.8%
Simplified66.8%
if -4.2999999999999999e49 < b < -4.39999999999999978e-100 or -8.6e-159 < b < -3.5e-176 or -1.5500000000000001e-250 < b < 3.9999999999999998e60Initial program 73.6%
Taylor expanded in j around inf 45.9%
if -4.39999999999999978e-100 < b < -8.6e-159Initial program 47.0%
Taylor expanded in a around 0 54.9%
associate--l+54.7%
associate-*r*69.1%
associate-*r*69.1%
distribute-rgt-out--69.1%
+-commutative69.1%
cancel-sign-sub-inv69.1%
*-commutative69.1%
fma-udef69.1%
fma-def69.1%
fma-neg69.1%
*-commutative69.1%
distribute-rgt-neg-in69.1%
distribute-lft-neg-out69.1%
distribute-rgt-neg-in69.1%
Simplified69.1%
Taylor expanded in x around inf 56.3%
*-commutative56.3%
associate-*l*63.4%
Simplified63.4%
if -3.5e-176 < b < -1.5500000000000001e-250Initial program 71.4%
Taylor expanded in t around inf 58.7%
+-commutative58.7%
mul-1-neg58.7%
unsub-neg58.7%
*-commutative58.7%
*-commutative58.7%
Simplified58.7%
Taylor expanded in j around 0 41.3%
associate-*r*41.3%
neg-mul-141.3%
*-commutative41.3%
associate-*r*45.2%
distribute-lft-neg-in45.2%
*-commutative45.2%
distribute-rgt-neg-in45.2%
Simplified45.2%
Final simplification55.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -1.7e+50)
t_3
(if (<= y -2.1e-24)
t_2
(if (<= y -2.5e-91)
t_1
(if (<= y 7.6e-123)
t_2
(if (<= y 2.15e-68)
t_1
(if (<= y 3.6e+70) (* c (- (* t j) (* z b))) 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 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.7e+50) {
tmp = t_3;
} else if (y <= -2.1e-24) {
tmp = t_2;
} else if (y <= -2.5e-91) {
tmp = t_1;
} else if (y <= 7.6e-123) {
tmp = t_2;
} else if (y <= 2.15e-68) {
tmp = t_1;
} else if (y <= 3.6e+70) {
tmp = c * ((t * j) - (z * b));
} 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 = t * ((c * j) - (x * a))
t_2 = b * ((a * i) - (z * c))
t_3 = y * ((x * z) - (i * j))
if (y <= (-1.7d+50)) then
tmp = t_3
else if (y <= (-2.1d-24)) then
tmp = t_2
else if (y <= (-2.5d-91)) then
tmp = t_1
else if (y <= 7.6d-123) then
tmp = t_2
else if (y <= 2.15d-68) then
tmp = t_1
else if (y <= 3.6d+70) then
tmp = c * ((t * j) - (z * b))
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 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.7e+50) {
tmp = t_3;
} else if (y <= -2.1e-24) {
tmp = t_2;
} else if (y <= -2.5e-91) {
tmp = t_1;
} else if (y <= 7.6e-123) {
tmp = t_2;
} else if (y <= 2.15e-68) {
tmp = t_1;
} else if (y <= 3.6e+70) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = b * ((a * i) - (z * c)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.7e+50: tmp = t_3 elif y <= -2.1e-24: tmp = t_2 elif y <= -2.5e-91: tmp = t_1 elif y <= 7.6e-123: tmp = t_2 elif y <= 2.15e-68: tmp = t_1 elif y <= 3.6e+70: tmp = c * ((t * j) - (z * b)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) 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 <= -1.7e+50) tmp = t_3; elseif (y <= -2.1e-24) tmp = t_2; elseif (y <= -2.5e-91) tmp = t_1; elseif (y <= 7.6e-123) tmp = t_2; elseif (y <= 2.15e-68) tmp = t_1; elseif (y <= 3.6e+70) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = b * ((a * i) - (z * c)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.7e+50) tmp = t_3; elseif (y <= -2.1e-24) tmp = t_2; elseif (y <= -2.5e-91) tmp = t_1; elseif (y <= 7.6e-123) tmp = t_2; elseif (y <= 2.15e-68) tmp = t_1; elseif (y <= 3.6e+70) tmp = c * ((t * j) - (z * b)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $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, -1.7e+50], t$95$3, If[LessEqual[y, -2.1e-24], t$95$2, If[LessEqual[y, -2.5e-91], t$95$1, If[LessEqual[y, 7.6e-123], t$95$2, If[LessEqual[y, 2.15e-68], t$95$1, If[LessEqual[y, 3.6e+70], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\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 -1.7 \cdot 10^{+50}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{-24}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.5 \cdot 10^{-91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.6 \cdot 10^{-123}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{-68}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{+70}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -1.6999999999999999e50 or 3.6e70 < y Initial program 64.8%
Taylor expanded in y around inf 70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
Simplified70.7%
if -1.6999999999999999e50 < y < -2.0999999999999999e-24 or -2.49999999999999999e-91 < y < 7.59999999999999991e-123Initial program 79.9%
Taylor expanded in b around inf 60.5%
*-commutative60.5%
Simplified60.5%
if -2.0999999999999999e-24 < y < -2.49999999999999999e-91 or 7.59999999999999991e-123 < y < 2.15000000000000005e-68Initial program 75.9%
Taylor expanded in t around inf 61.7%
+-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
*-commutative61.7%
*-commutative61.7%
Simplified61.7%
if 2.15000000000000005e-68 < y < 3.6e70Initial program 82.3%
Taylor expanded in c around inf 57.0%
*-commutative57.0%
*-commutative57.0%
Simplified57.0%
Final simplification65.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* t (- (* c j) (* x a)))))
(if (<= t -1.45e+138)
t_2
(if (<= t -3.8e-39)
(- t_1 (* j (- (* y i) (* t c))))
(if (<= t -1.52e-83)
(- (+ (* c (* t j)) (* x (* y z))) (* b (* z c)))
(if (<= t 3.9e+102) (+ (* y (- (* x z) (* i j))) 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 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.45e+138) {
tmp = t_2;
} else if (t <= -3.8e-39) {
tmp = t_1 - (j * ((y * i) - (t * c)));
} else if (t <= -1.52e-83) {
tmp = ((c * (t * j)) + (x * (y * z))) - (b * (z * c));
} else if (t <= 3.9e+102) {
tmp = (y * ((x * z) - (i * j))) + 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 = t * ((c * j) - (x * a))
if (t <= (-1.45d+138)) then
tmp = t_2
else if (t <= (-3.8d-39)) then
tmp = t_1 - (j * ((y * i) - (t * c)))
else if (t <= (-1.52d-83)) then
tmp = ((c * (t * j)) + (x * (y * z))) - (b * (z * c))
else if (t <= 3.9d+102) then
tmp = (y * ((x * z) - (i * j))) + 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 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.45e+138) {
tmp = t_2;
} else if (t <= -3.8e-39) {
tmp = t_1 - (j * ((y * i) - (t * c)));
} else if (t <= -1.52e-83) {
tmp = ((c * (t * j)) + (x * (y * z))) - (b * (z * c));
} else if (t <= 3.9e+102) {
tmp = (y * ((x * z) - (i * j))) + 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 = t * ((c * j) - (x * a)) tmp = 0 if t <= -1.45e+138: tmp = t_2 elif t <= -3.8e-39: tmp = t_1 - (j * ((y * i) - (t * c))) elif t <= -1.52e-83: tmp = ((c * (t * j)) + (x * (y * z))) - (b * (z * c)) elif t <= 3.9e+102: tmp = (y * ((x * z) - (i * j))) + 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(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -1.45e+138) tmp = t_2; elseif (t <= -3.8e-39) tmp = Float64(t_1 - Float64(j * Float64(Float64(y * i) - Float64(t * c)))); elseif (t <= -1.52e-83) tmp = Float64(Float64(Float64(c * Float64(t * j)) + Float64(x * Float64(y * z))) - Float64(b * Float64(z * c))); elseif (t <= 3.9e+102) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + 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 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -1.45e+138) tmp = t_2; elseif (t <= -3.8e-39) tmp = t_1 - (j * ((y * i) - (t * c))); elseif (t <= -1.52e-83) tmp = ((c * (t * j)) + (x * (y * z))) - (b * (z * c)); elseif (t <= 3.9e+102) tmp = (y * ((x * z) - (i * j))) + 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.45e+138], t$95$2, If[LessEqual[t, -3.8e-39], N[(t$95$1 - N[(j * N[(N[(y * i), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.52e-83], N[(N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.9e+102], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.45 \cdot 10^{+138}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{-39}:\\
\;\;\;\;t\_1 - j \cdot \left(y \cdot i - t \cdot c\right)\\
\mathbf{elif}\;t \leq -1.52 \cdot 10^{-83}:\\
\;\;\;\;\left(c \cdot \left(t \cdot j\right) + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{+102}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.45000000000000005e138 or 3.8999999999999998e102 < t Initial program 59.1%
Taylor expanded in t around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
if -1.45000000000000005e138 < t < -3.8000000000000002e-39Initial program 85.4%
Taylor expanded in x around 0 75.4%
*-commutative75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
if -3.8000000000000002e-39 < t < -1.51999999999999994e-83Initial program 83.3%
Taylor expanded in i around 0 83.3%
Taylor expanded in y around inf 83.3%
if -1.51999999999999994e-83 < t < 3.8999999999999998e102Initial program 76.3%
Taylor expanded in t around 0 72.5%
*-commutative72.5%
associate-*r*74.6%
associate-*r*72.5%
associate-*r*72.5%
distribute-rgt-in75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
*-commutative75.3%
Simplified75.3%
Final simplification74.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* b (- c)))))
(if (<= b -6.8e+106)
t_1
(if (<= b -7.2e+56)
(* i (* a b))
(if (<= b -2.5e+19)
(* t (* c j))
(if (<= b -3.8e-308)
(* y (* x z))
(if (<= b 1.5e-29)
(* c (* t j))
(if (<= b 7.6e+194) t_1 (* a (* b i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (b * -c);
double tmp;
if (b <= -6.8e+106) {
tmp = t_1;
} else if (b <= -7.2e+56) {
tmp = i * (a * b);
} else if (b <= -2.5e+19) {
tmp = t * (c * j);
} else if (b <= -3.8e-308) {
tmp = y * (x * z);
} else if (b <= 1.5e-29) {
tmp = c * (t * j);
} else if (b <= 7.6e+194) {
tmp = t_1;
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (b * -c)
if (b <= (-6.8d+106)) then
tmp = t_1
else if (b <= (-7.2d+56)) then
tmp = i * (a * b)
else if (b <= (-2.5d+19)) then
tmp = t * (c * j)
else if (b <= (-3.8d-308)) then
tmp = y * (x * z)
else if (b <= 1.5d-29) then
tmp = c * (t * j)
else if (b <= 7.6d+194) then
tmp = t_1
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (b * -c);
double tmp;
if (b <= -6.8e+106) {
tmp = t_1;
} else if (b <= -7.2e+56) {
tmp = i * (a * b);
} else if (b <= -2.5e+19) {
tmp = t * (c * j);
} else if (b <= -3.8e-308) {
tmp = y * (x * z);
} else if (b <= 1.5e-29) {
tmp = c * (t * j);
} else if (b <= 7.6e+194) {
tmp = t_1;
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (b * -c) tmp = 0 if b <= -6.8e+106: tmp = t_1 elif b <= -7.2e+56: tmp = i * (a * b) elif b <= -2.5e+19: tmp = t * (c * j) elif b <= -3.8e-308: tmp = y * (x * z) elif b <= 1.5e-29: tmp = c * (t * j) elif b <= 7.6e+194: tmp = t_1 else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(b * Float64(-c))) tmp = 0.0 if (b <= -6.8e+106) tmp = t_1; elseif (b <= -7.2e+56) tmp = Float64(i * Float64(a * b)); elseif (b <= -2.5e+19) tmp = Float64(t * Float64(c * j)); elseif (b <= -3.8e-308) tmp = Float64(y * Float64(x * z)); elseif (b <= 1.5e-29) tmp = Float64(c * Float64(t * j)); elseif (b <= 7.6e+194) tmp = t_1; else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (b * -c); tmp = 0.0; if (b <= -6.8e+106) tmp = t_1; elseif (b <= -7.2e+56) tmp = i * (a * b); elseif (b <= -2.5e+19) tmp = t * (c * j); elseif (b <= -3.8e-308) tmp = y * (x * z); elseif (b <= 1.5e-29) tmp = c * (t * j); elseif (b <= 7.6e+194) tmp = t_1; else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.8e+106], t$95$1, If[LessEqual[b, -7.2e+56], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.5e+19], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.8e-308], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e-29], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.6e+194], t$95$1, N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{if}\;b \leq -6.8 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.2 \cdot 10^{+56}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{+19}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{-308}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-29}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 7.6 \cdot 10^{+194}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -6.79999999999999989e106 or 1.5000000000000001e-29 < b < 7.5999999999999998e194Initial program 76.1%
Taylor expanded in a around 0 63.0%
associate--l+63.0%
associate-*r*61.8%
associate-*r*58.9%
distribute-rgt-out--58.9%
+-commutative58.9%
cancel-sign-sub-inv58.9%
*-commutative58.9%
fma-udef58.9%
fma-def60.0%
fma-neg60.0%
*-commutative60.0%
distribute-rgt-neg-in60.0%
distribute-lft-neg-out60.0%
distribute-rgt-neg-in60.0%
Simplified60.0%
Taylor expanded in b around inf 43.5%
mul-1-neg43.5%
*-commutative43.5%
*-commutative43.5%
associate-*l*42.8%
Simplified42.8%
if -6.79999999999999989e106 < b < -7.19999999999999996e56Initial program 81.1%
Taylor expanded in t around 0 81.1%
*-commutative81.1%
associate-*r*81.2%
associate-*r*68.8%
associate-*r*68.8%
distribute-rgt-in68.8%
+-commutative68.8%
mul-1-neg68.8%
unsub-neg68.8%
*-commutative68.8%
Simplified68.8%
Taylor expanded in a around inf 46.2%
*-commutative46.2%
*-commutative46.2%
associate-*l*57.6%
Simplified57.6%
if -7.19999999999999996e56 < b < -2.5e19Initial program 99.8%
Taylor expanded in t around inf 48.0%
+-commutative48.0%
mul-1-neg48.0%
unsub-neg48.0%
*-commutative48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in j around inf 47.8%
*-commutative47.8%
Simplified47.8%
if -2.5e19 < b < -3.79999999999999975e-308Initial program 69.3%
Taylor expanded in a around 0 57.8%
associate--l+57.8%
associate-*r*64.7%
associate-*r*66.2%
distribute-rgt-out--66.2%
+-commutative66.2%
cancel-sign-sub-inv66.2%
*-commutative66.2%
fma-udef66.2%
fma-def69.4%
fma-neg69.4%
*-commutative69.4%
distribute-rgt-neg-in69.4%
distribute-lft-neg-out69.4%
distribute-rgt-neg-in69.4%
Simplified69.4%
Taylor expanded in x around inf 30.8%
*-commutative30.8%
associate-*l*33.8%
Simplified33.8%
if -3.79999999999999975e-308 < b < 1.5000000000000001e-29Initial program 64.5%
Taylor expanded in t around inf 47.3%
+-commutative47.3%
mul-1-neg47.3%
unsub-neg47.3%
*-commutative47.3%
*-commutative47.3%
Simplified47.3%
Taylor expanded in j around inf 28.9%
if 7.5999999999999998e194 < b Initial program 68.8%
Taylor expanded in t around 0 70.5%
*-commutative70.5%
associate-*r*70.7%
associate-*r*75.0%
associate-*r*75.0%
distribute-rgt-in75.0%
+-commutative75.0%
mul-1-neg75.0%
unsub-neg75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in a around inf 52.5%
*-commutative52.5%
Simplified52.5%
Final simplification39.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* c (* t j)) (* b (- (* a i) (* z c)))))
(t_2 (* y (- (* x z) (* i j)))))
(if (<= y -1.1e+50)
t_2
(if (<= y 1.25e-99)
t_1
(if (<= y 1.65e-72) (* t (* x (- a))) (if (<= y 1.16e+72) 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 = (c * (t * j)) + (b * ((a * i) - (z * c)));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.1e+50) {
tmp = t_2;
} else if (y <= 1.25e-99) {
tmp = t_1;
} else if (y <= 1.65e-72) {
tmp = t * (x * -a);
} else if (y <= 1.16e+72) {
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 = (c * (t * j)) + (b * ((a * i) - (z * c)))
t_2 = y * ((x * z) - (i * j))
if (y <= (-1.1d+50)) then
tmp = t_2
else if (y <= 1.25d-99) then
tmp = t_1
else if (y <= 1.65d-72) then
tmp = t * (x * -a)
else if (y <= 1.16d+72) 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 = (c * (t * j)) + (b * ((a * i) - (z * c)));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.1e+50) {
tmp = t_2;
} else if (y <= 1.25e-99) {
tmp = t_1;
} else if (y <= 1.65e-72) {
tmp = t * (x * -a);
} else if (y <= 1.16e+72) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (c * (t * j)) + (b * ((a * i) - (z * c))) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.1e+50: tmp = t_2 elif y <= 1.25e-99: tmp = t_1 elif y <= 1.65e-72: tmp = t * (x * -a) elif y <= 1.16e+72: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(c * Float64(t * j)) + 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.1e+50) tmp = t_2; elseif (y <= 1.25e-99) tmp = t_1; elseif (y <= 1.65e-72) tmp = Float64(t * Float64(x * Float64(-a))); elseif (y <= 1.16e+72) 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 = (c * (t * j)) + (b * ((a * i) - (z * c))); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.1e+50) tmp = t_2; elseif (y <= 1.25e-99) tmp = t_1; elseif (y <= 1.65e-72) tmp = t * (x * -a); elseif (y <= 1.16e+72) 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[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.1e+50], t$95$2, If[LessEqual[y, 1.25e-99], t$95$1, If[LessEqual[y, 1.65e-72], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.16e+72], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right) + 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.1 \cdot 10^{+50}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{-99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{-72}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 1.16 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.10000000000000008e50 or 1.16000000000000003e72 < y Initial program 64.8%
Taylor expanded in y around inf 70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
Simplified70.7%
if -1.10000000000000008e50 < y < 1.24999999999999992e-99 or 1.65e-72 < y < 1.16000000000000003e72Initial program 80.1%
Taylor expanded in x around 0 63.8%
*-commutative63.8%
*-commutative63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in y around 0 64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
if 1.24999999999999992e-99 < y < 1.65e-72Initial program 71.2%
Taylor expanded in t around inf 71.9%
+-commutative71.9%
mul-1-neg71.9%
unsub-neg71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in j around 0 71.8%
associate-*r*71.8%
neg-mul-171.8%
*-commutative71.8%
associate-*r*72.2%
distribute-lft-neg-in72.2%
*-commutative72.2%
distribute-rgt-neg-in72.2%
Simplified72.2%
Final simplification67.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* i j))) (* z (* b c))))
(t_2 (* t (- (* c j) (* x a)))))
(if (<= t -1e+138)
t_2
(if (<= t 1.65e-71)
t_1
(if (<= t 0.00084)
(+ (* c (* t j)) (* b (- (* a i) (* z c))))
(if (<= t 8.2e+105) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (z * (b * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1e+138) {
tmp = t_2;
} else if (t <= 1.65e-71) {
tmp = t_1;
} else if (t <= 0.00084) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (t <= 8.2e+105) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * ((x * z) - (i * j))) - (z * (b * c))
t_2 = t * ((c * j) - (x * a))
if (t <= (-1d+138)) then
tmp = t_2
else if (t <= 1.65d-71) then
tmp = t_1
else if (t <= 0.00084d0) then
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)))
else if (t <= 8.2d+105) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (z * (b * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1e+138) {
tmp = t_2;
} else if (t <= 1.65e-71) {
tmp = t_1;
} else if (t <= 0.00084) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (t <= 8.2e+105) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) - (z * (b * c)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -1e+138: tmp = t_2 elif t <= 1.65e-71: tmp = t_1 elif t <= 0.00084: tmp = (c * (t * j)) + (b * ((a * i) - (z * c))) elif t <= 8.2e+105: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(z * Float64(b * c))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -1e+138) tmp = t_2; elseif (t <= 1.65e-71) tmp = t_1; elseif (t <= 0.00084) tmp = Float64(Float64(c * Float64(t * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (t <= 8.2e+105) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) - (z * (b * c)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -1e+138) tmp = t_2; elseif (t <= 1.65e-71) tmp = t_1; elseif (t <= 0.00084) tmp = (c * (t * j)) + (b * ((a * i) - (z * c))); elseif (t <= 8.2e+105) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1e+138], t$95$2, If[LessEqual[t, 1.65e-71], t$95$1, If[LessEqual[t, 0.00084], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.2e+105], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) - z \cdot \left(b \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -1 \cdot 10^{+138}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{-71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 0.00084:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1e138 or 8.2000000000000005e105 < t Initial program 59.1%
Taylor expanded in t around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
if -1e138 < t < 1.6500000000000001e-71 or 8.4000000000000003e-4 < t < 8.2000000000000005e105Initial program 78.5%
Taylor expanded in t around 0 70.6%
*-commutative70.6%
associate-*r*71.3%
associate-*r*70.6%
associate-*r*70.6%
distribute-rgt-in73.1%
+-commutative73.1%
mul-1-neg73.1%
unsub-neg73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in z around inf 67.5%
*-commutative67.5%
*-commutative67.5%
associate-*l*67.6%
*-commutative67.6%
Simplified67.6%
if 1.6500000000000001e-71 < t < 8.4000000000000003e-4Initial program 74.9%
Taylor expanded in x around 0 81.1%
*-commutative81.1%
*-commutative81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in y around 0 75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Final simplification69.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* i j))) (* z (* b c)))))
(if (<= t -6.8e-103)
(+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a))))
(if (<= t 8.5e-72)
t_1
(if (<= t 0.000195)
(+ (* c (* t j)) (* b (- (* a i) (* z c))))
(if (<= t 1.18e+106) t_1 (* t (- (* c j) (* x a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (z * (b * c));
double tmp;
if (t <= -6.8e-103) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else if (t <= 8.5e-72) {
tmp = t_1;
} else if (t <= 0.000195) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (t <= 1.18e+106) {
tmp = t_1;
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (y * ((x * z) - (i * j))) - (z * (b * c))
if (t <= (-6.8d-103)) then
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
else if (t <= 8.5d-72) then
tmp = t_1
else if (t <= 0.000195d0) then
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)))
else if (t <= 1.18d+106) then
tmp = t_1
else
tmp = t * ((c * j) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (z * (b * c));
double tmp;
if (t <= -6.8e-103) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else if (t <= 8.5e-72) {
tmp = t_1;
} else if (t <= 0.000195) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (t <= 1.18e+106) {
tmp = t_1;
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) - (z * (b * c)) tmp = 0 if t <= -6.8e-103: tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) elif t <= 8.5e-72: tmp = t_1 elif t <= 0.000195: tmp = (c * (t * j)) + (b * ((a * i) - (z * c))) elif t <= 1.18e+106: tmp = t_1 else: tmp = t * ((c * j) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(z * Float64(b * c))) tmp = 0.0 if (t <= -6.8e-103) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); elseif (t <= 8.5e-72) tmp = t_1; elseif (t <= 0.000195) tmp = Float64(Float64(c * Float64(t * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (t <= 1.18e+106) tmp = t_1; else tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) - (z * (b * c)); tmp = 0.0; if (t <= -6.8e-103) tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); elseif (t <= 8.5e-72) tmp = t_1; elseif (t <= 0.000195) tmp = (c * (t * j)) + (b * ((a * i) - (z * c))); elseif (t <= 1.18e+106) tmp = t_1; else tmp = t * ((c * j) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.8e-103], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e-72], t$95$1, If[LessEqual[t, 0.000195], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.18e+106], t$95$1, N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{if}\;t \leq -6.8 \cdot 10^{-103}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 0.000195:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t \leq 1.18 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\end{array}
\end{array}
if t < -6.80000000000000006e-103Initial program 74.3%
Taylor expanded in b around 0 62.2%
if -6.80000000000000006e-103 < t < 8.50000000000000008e-72 or 1.94999999999999996e-4 < t < 1.17999999999999993e106Initial program 76.3%
Taylor expanded in t around 0 72.6%
*-commutative72.6%
associate-*r*74.3%
associate-*r*74.3%
associate-*r*74.3%
distribute-rgt-in77.6%
+-commutative77.6%
mul-1-neg77.6%
unsub-neg77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in z around inf 72.4%
*-commutative72.4%
*-commutative72.4%
associate-*l*73.4%
*-commutative73.4%
Simplified73.4%
if 8.50000000000000008e-72 < t < 1.94999999999999996e-4Initial program 74.9%
Taylor expanded in x around 0 81.1%
*-commutative81.1%
*-commutative81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in y around 0 75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
if 1.17999999999999993e106 < t Initial program 58.7%
Taylor expanded in t around inf 76.9%
+-commutative76.9%
mul-1-neg76.9%
unsub-neg76.9%
*-commutative76.9%
*-commutative76.9%
Simplified76.9%
Final simplification70.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= y -3.6e+50)
(* i (* y (- j)))
(if (<= y 1.32e-117)
t_1
(if (<= y 1.65e-72)
(* a (* t (- x)))
(if (<= y 1.8e+106) t_1 (* (* i j) (- y))))))))
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 <= -3.6e+50) {
tmp = i * (y * -j);
} else if (y <= 1.32e-117) {
tmp = t_1;
} else if (y <= 1.65e-72) {
tmp = a * (t * -x);
} else if (y <= 1.8e+106) {
tmp = t_1;
} else {
tmp = (i * j) * -y;
}
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 <= (-3.6d+50)) then
tmp = i * (y * -j)
else if (y <= 1.32d-117) then
tmp = t_1
else if (y <= 1.65d-72) then
tmp = a * (t * -x)
else if (y <= 1.8d+106) then
tmp = t_1
else
tmp = (i * j) * -y
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 <= -3.6e+50) {
tmp = i * (y * -j);
} else if (y <= 1.32e-117) {
tmp = t_1;
} else if (y <= 1.65e-72) {
tmp = a * (t * -x);
} else if (y <= 1.8e+106) {
tmp = t_1;
} else {
tmp = (i * j) * -y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if y <= -3.6e+50: tmp = i * (y * -j) elif y <= 1.32e-117: tmp = t_1 elif y <= 1.65e-72: tmp = a * (t * -x) elif y <= 1.8e+106: tmp = t_1 else: tmp = (i * j) * -y 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 <= -3.6e+50) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= 1.32e-117) tmp = t_1; elseif (y <= 1.65e-72) tmp = Float64(a * Float64(t * Float64(-x))); elseif (y <= 1.8e+106) tmp = t_1; else tmp = Float64(Float64(i * j) * Float64(-y)); 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 <= -3.6e+50) tmp = i * (y * -j); elseif (y <= 1.32e-117) tmp = t_1; elseif (y <= 1.65e-72) tmp = a * (t * -x); elseif (y <= 1.8e+106) tmp = t_1; else tmp = (i * j) * -y; 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, -3.6e+50], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.32e-117], t$95$1, If[LessEqual[y, 1.65e-72], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.8e+106], t$95$1, N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;y \leq -3.6 \cdot 10^{+50}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq 1.32 \cdot 10^{-117}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{-72}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\end{array}
\end{array}
if y < -3.59999999999999986e50Initial program 63.5%
Taylor expanded in j around inf 43.7%
Taylor expanded in c around 0 42.4%
associate-*r*42.4%
neg-mul-142.4%
*-commutative42.4%
Simplified42.4%
if -3.59999999999999986e50 < y < 1.32e-117 or 1.65e-72 < y < 1.8e106Initial program 80.1%
Taylor expanded in b around inf 51.5%
*-commutative51.5%
Simplified51.5%
if 1.32e-117 < y < 1.65e-72Initial program 74.8%
Taylor expanded in t around inf 75.4%
+-commutative75.4%
mul-1-neg75.4%
unsub-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in j around 0 75.3%
associate-*r*75.3%
neg-mul-175.3%
*-commutative75.3%
Simplified75.3%
if 1.8e106 < y Initial program 64.3%
Taylor expanded in j around inf 66.5%
Taylor expanded in c around 0 53.3%
associate-*r*57.0%
associate-*r*57.0%
*-commutative57.0%
mul-1-neg57.0%
*-commutative57.0%
distribute-rgt-neg-in57.0%
Simplified57.0%
Final simplification51.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* b (- c)))) (t_2 (* (* i j) (- y))))
(if (<= y -1.02e+36)
t_2
(if (<= y -4.1e-193)
t_1
(if (<= y 1.3e-267) (* i (* a b)) (if (<= y 1.8e+52) 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 = z * (b * -c);
double t_2 = (i * j) * -y;
double tmp;
if (y <= -1.02e+36) {
tmp = t_2;
} else if (y <= -4.1e-193) {
tmp = t_1;
} else if (y <= 1.3e-267) {
tmp = i * (a * b);
} else if (y <= 1.8e+52) {
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 = z * (b * -c)
t_2 = (i * j) * -y
if (y <= (-1.02d+36)) then
tmp = t_2
else if (y <= (-4.1d-193)) then
tmp = t_1
else if (y <= 1.3d-267) then
tmp = i * (a * b)
else if (y <= 1.8d+52) 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 = z * (b * -c);
double t_2 = (i * j) * -y;
double tmp;
if (y <= -1.02e+36) {
tmp = t_2;
} else if (y <= -4.1e-193) {
tmp = t_1;
} else if (y <= 1.3e-267) {
tmp = i * (a * b);
} else if (y <= 1.8e+52) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (b * -c) t_2 = (i * j) * -y tmp = 0 if y <= -1.02e+36: tmp = t_2 elif y <= -4.1e-193: tmp = t_1 elif y <= 1.3e-267: tmp = i * (a * b) elif y <= 1.8e+52: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(b * Float64(-c))) t_2 = Float64(Float64(i * j) * Float64(-y)) tmp = 0.0 if (y <= -1.02e+36) tmp = t_2; elseif (y <= -4.1e-193) tmp = t_1; elseif (y <= 1.3e-267) tmp = Float64(i * Float64(a * b)); elseif (y <= 1.8e+52) 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 = z * (b * -c); t_2 = (i * j) * -y; tmp = 0.0; if (y <= -1.02e+36) tmp = t_2; elseif (y <= -4.1e-193) tmp = t_1; elseif (y <= 1.3e-267) tmp = i * (a * b); elseif (y <= 1.8e+52) 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[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]}, If[LessEqual[y, -1.02e+36], t$95$2, If[LessEqual[y, -4.1e-193], t$95$1, If[LessEqual[y, 1.3e-267], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.8e+52], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(b \cdot \left(-c\right)\right)\\
t_2 := \left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{if}\;y \leq -1.02 \cdot 10^{+36}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -4.1 \cdot 10^{-193}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{-267}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.02000000000000003e36 or 1.8e52 < y Initial program 65.6%
Taylor expanded in j around inf 51.9%
Taylor expanded in c around 0 44.8%
associate-*r*46.4%
associate-*r*46.4%
*-commutative46.4%
mul-1-neg46.4%
*-commutative46.4%
distribute-rgt-neg-in46.4%
Simplified46.4%
if -1.02000000000000003e36 < y < -4.10000000000000003e-193 or 1.3000000000000001e-267 < y < 1.8e52Initial program 80.3%
Taylor expanded in a around 0 56.5%
associate--l+56.5%
associate-*r*56.5%
associate-*r*58.4%
distribute-rgt-out--58.4%
+-commutative58.4%
cancel-sign-sub-inv58.4%
*-commutative58.4%
fma-udef58.4%
fma-def58.4%
fma-neg58.4%
*-commutative58.4%
distribute-rgt-neg-in58.4%
distribute-lft-neg-out58.4%
distribute-rgt-neg-in58.4%
Simplified58.4%
Taylor expanded in b around inf 35.6%
mul-1-neg35.6%
*-commutative35.6%
*-commutative35.6%
associate-*l*34.0%
Simplified34.0%
if -4.10000000000000003e-193 < y < 1.3000000000000001e-267Initial program 73.7%
Taylor expanded in t around 0 57.0%
*-commutative57.0%
associate-*r*53.1%
associate-*r*44.5%
associate-*r*44.5%
distribute-rgt-in44.5%
+-commutative44.5%
mul-1-neg44.5%
unsub-neg44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in a around inf 45.1%
*-commutative45.1%
*-commutative45.1%
associate-*l*49.2%
Simplified49.2%
Final simplification41.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -3e-70) (not (<= z 6.8))) (* x (* y z)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -3e-70) || !(z <= 6.8)) {
tmp = x * (y * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-3d-70)) .or. (.not. (z <= 6.8d0))) then
tmp = x * (y * z)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -3e-70) || !(z <= 6.8)) {
tmp = x * (y * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -3e-70) or not (z <= 6.8): tmp = x * (y * z) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -3e-70) || !(z <= 6.8)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -3e-70) || ~((z <= 6.8))) tmp = x * (y * z); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -3e-70], N[Not[LessEqual[z, 6.8]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{-70} \lor \neg \left(z \leq 6.8\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if z < -3.0000000000000001e-70 or 6.79999999999999982 < z Initial program 66.5%
Taylor expanded in a around 0 63.8%
associate--l+63.8%
associate-*r*68.7%
associate-*r*70.8%
distribute-rgt-out--71.6%
+-commutative71.6%
cancel-sign-sub-inv71.6%
*-commutative71.6%
fma-udef71.6%
fma-def73.9%
fma-neg73.9%
*-commutative73.9%
distribute-rgt-neg-in73.9%
distribute-lft-neg-out73.9%
distribute-rgt-neg-in73.9%
Simplified73.9%
Taylor expanded in x around inf 37.7%
if -3.0000000000000001e-70 < z < 6.79999999999999982Initial program 79.4%
Taylor expanded in b around inf 35.3%
*-commutative35.3%
Simplified35.3%
Taylor expanded in a around inf 27.1%
*-commutative27.1%
Simplified27.1%
Final simplification32.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -1.06e-106) (* a (* b i)) (if (<= a 3.9e-11) (* c (* t j)) (* b (* a i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.06e-106) {
tmp = a * (b * i);
} else if (a <= 3.9e-11) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1.06d-106)) then
tmp = a * (b * i)
else if (a <= 3.9d-11) then
tmp = c * (t * j)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.06e-106) {
tmp = a * (b * i);
} else if (a <= 3.9e-11) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.06e-106: tmp = a * (b * i) elif a <= 3.9e-11: tmp = c * (t * j) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.06e-106) tmp = Float64(a * Float64(b * i)); elseif (a <= 3.9e-11) tmp = Float64(c * Float64(t * j)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.06e-106) tmp = a * (b * i); elseif (a <= 3.9e-11) tmp = c * (t * j); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.06e-106], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.9e-11], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.06 \cdot 10^{-106}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{-11}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if a < -1.06e-106Initial program 67.2%
Taylor expanded in t around 0 50.2%
*-commutative50.2%
associate-*r*51.5%
associate-*r*50.2%
associate-*r*50.2%
distribute-rgt-in51.5%
+-commutative51.5%
mul-1-neg51.5%
unsub-neg51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in a around inf 26.8%
*-commutative26.8%
Simplified26.8%
if -1.06e-106 < a < 3.9000000000000001e-11Initial program 82.5%
Taylor expanded in t around inf 31.7%
+-commutative31.7%
mul-1-neg31.7%
unsub-neg31.7%
*-commutative31.7%
*-commutative31.7%
Simplified31.7%
Taylor expanded in j around inf 25.0%
if 3.9000000000000001e-11 < a Initial program 61.2%
Taylor expanded in b around inf 52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in a around inf 39.7%
*-commutative39.7%
Simplified39.7%
Final simplification29.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -5.8e+58) (* i (* a b)) (if (<= b 7.8e+55) (* c (* t j)) (* 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 (b <= -5.8e+58) {
tmp = i * (a * b);
} else if (b <= 7.8e+55) {
tmp = c * (t * j);
} 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 (b <= (-5.8d+58)) then
tmp = i * (a * b)
else if (b <= 7.8d+55) then
tmp = c * (t * j)
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 (b <= -5.8e+58) {
tmp = i * (a * b);
} else if (b <= 7.8e+55) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -5.8e+58: tmp = i * (a * b) elif b <= 7.8e+55: tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -5.8e+58) tmp = Float64(i * Float64(a * b)); elseif (b <= 7.8e+55) tmp = Float64(c * Float64(t * j)); 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 (b <= -5.8e+58) tmp = i * (a * b); elseif (b <= 7.8e+55) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -5.8e+58], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.8e+55], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.8 \cdot 10^{+58}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;b \leq 7.8 \cdot 10^{+55}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -5.80000000000000004e58Initial program 81.1%
Taylor expanded in t around 0 77.3%
*-commutative77.3%
associate-*r*75.5%
associate-*r*68.0%
associate-*r*68.0%
distribute-rgt-in69.9%
+-commutative69.9%
mul-1-neg69.9%
unsub-neg69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in a around inf 37.5%
*-commutative37.5%
*-commutative37.5%
associate-*l*41.1%
Simplified41.1%
if -5.80000000000000004e58 < b < 7.80000000000000054e55Initial program 71.0%
Taylor expanded in t around inf 38.5%
+-commutative38.5%
mul-1-neg38.5%
unsub-neg38.5%
*-commutative38.5%
*-commutative38.5%
Simplified38.5%
Taylor expanded in j around inf 22.2%
if 7.80000000000000054e55 < b Initial program 69.3%
Taylor expanded in t around 0 73.3%
*-commutative73.3%
associate-*r*73.4%
associate-*r*75.1%
associate-*r*75.1%
distribute-rgt-in76.8%
+-commutative76.8%
mul-1-neg76.8%
unsub-neg76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in a around inf 37.8%
*-commutative37.8%
Simplified37.8%
Final simplification29.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -2.4e-117) (* i (* a b)) (if (<= a 1e-8) (* t (* c j)) (* b (* a i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.4e-117) {
tmp = i * (a * b);
} else if (a <= 1e-8) {
tmp = t * (c * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-2.4d-117)) then
tmp = i * (a * b)
else if (a <= 1d-8) then
tmp = t * (c * j)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.4e-117) {
tmp = i * (a * b);
} else if (a <= 1e-8) {
tmp = t * (c * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -2.4e-117: tmp = i * (a * b) elif a <= 1e-8: tmp = t * (c * j) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -2.4e-117) tmp = Float64(i * Float64(a * b)); elseif (a <= 1e-8) tmp = Float64(t * Float64(c * j)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -2.4e-117) tmp = i * (a * b); elseif (a <= 1e-8) tmp = t * (c * j); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2.4e-117], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1e-8], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.4 \cdot 10^{-117}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;a \leq 10^{-8}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if a < -2.40000000000000014e-117Initial program 67.2%
Taylor expanded in t around 0 50.2%
*-commutative50.2%
associate-*r*51.5%
associate-*r*50.2%
associate-*r*50.2%
distribute-rgt-in51.5%
+-commutative51.5%
mul-1-neg51.5%
unsub-neg51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in a around inf 26.8%
*-commutative26.8%
*-commutative26.8%
associate-*l*26.9%
Simplified26.9%
if -2.40000000000000014e-117 < a < 1e-8Initial program 82.5%
Taylor expanded in t around inf 31.7%
+-commutative31.7%
mul-1-neg31.7%
unsub-neg31.7%
*-commutative31.7%
*-commutative31.7%
Simplified31.7%
Taylor expanded in j around inf 26.5%
*-commutative26.5%
Simplified26.5%
if 1e-8 < a Initial program 61.2%
Taylor expanded in b around inf 52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in a around inf 39.7%
*-commutative39.7%
Simplified39.7%
Final simplification29.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -3.5e-68) (* x (* y z)) (if (<= z 12.2) (* b (* a i)) (* y (* x z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -3.5e-68) {
tmp = x * (y * z);
} else if (z <= 12.2) {
tmp = b * (a * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-3.5d-68)) then
tmp = x * (y * z)
else if (z <= 12.2d0) then
tmp = b * (a * i)
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -3.5e-68) {
tmp = x * (y * z);
} else if (z <= 12.2) {
tmp = b * (a * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -3.5e-68: tmp = x * (y * z) elif z <= 12.2: tmp = b * (a * i) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -3.5e-68) tmp = Float64(x * Float64(y * z)); elseif (z <= 12.2) tmp = Float64(b * Float64(a * i)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -3.5e-68) tmp = x * (y * z); elseif (z <= 12.2) tmp = b * (a * i); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3.5e-68], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 12.2], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{-68}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 12.2:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -3.50000000000000013e-68Initial program 69.8%
Taylor expanded in a around 0 61.8%
associate--l+61.8%
associate-*r*64.2%
associate-*r*64.2%
distribute-rgt-out--65.6%
+-commutative65.6%
cancel-sign-sub-inv65.6%
*-commutative65.6%
fma-udef65.6%
fma-def68.5%
fma-neg68.5%
*-commutative68.5%
distribute-rgt-neg-in68.5%
distribute-lft-neg-out68.5%
distribute-rgt-neg-in68.5%
Simplified68.5%
Taylor expanded in x around inf 36.3%
if -3.50000000000000013e-68 < z < 12.199999999999999Initial program 79.4%
Taylor expanded in b around inf 35.3%
*-commutative35.3%
Simplified35.3%
Taylor expanded in a around inf 27.1%
*-commutative27.1%
Simplified27.1%
if 12.199999999999999 < z Initial program 62.9%
Taylor expanded in a around 0 66.0%
associate--l+66.0%
associate-*r*73.5%
associate-*r*78.1%
distribute-rgt-out--78.1%
+-commutative78.1%
cancel-sign-sub-inv78.1%
*-commutative78.1%
fma-udef78.1%
fma-def79.6%
fma-neg79.6%
*-commutative79.6%
distribute-rgt-neg-in79.6%
distribute-lft-neg-out79.6%
distribute-rgt-neg-in79.6%
Simplified79.6%
Taylor expanded in x around inf 39.2%
*-commutative39.2%
associate-*l*40.6%
Simplified40.6%
Final simplification33.0%
(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 72.7%
Taylor expanded in t around 0 61.4%
*-commutative61.4%
associate-*r*62.6%
associate-*r*61.7%
associate-*r*61.7%
distribute-rgt-in64.5%
+-commutative64.5%
mul-1-neg64.5%
unsub-neg64.5%
*-commutative64.5%
Simplified64.5%
Taylor expanded in a around inf 20.6%
*-commutative20.6%
Simplified20.6%
Final simplification20.6%
(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 2024027
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))