
(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 21 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
(-
(* j (- (* t c) (* y i)))
(+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* t (cbrt (pow (- (* c j) (* x a)) 3.0))))))
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))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * cbrt(pow(((c * j) - (x * a)), 3.0));
}
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 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * Math.cbrt(Math.pow(((c * j) - (x * a)), 3.0));
}
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(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * cbrt((Float64(Float64(c * j) - Float64(x * a)) ^ 3.0))); end return 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[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[Power[N[Power[N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \sqrt[3]{{\left(c \cdot j - x \cdot a\right)}^{3}}\\
\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 94.3%
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%
sub-neg0.0%
associate-+l+0.0%
fma-def8.2%
+-commutative8.2%
fma-def8.2%
sub-neg8.2%
+-commutative8.2%
*-commutative8.2%
distribute-rgt-neg-in8.2%
fma-def10.2%
*-commutative10.2%
distribute-rgt-neg-in10.2%
sub-neg10.2%
distribute-neg-in10.2%
unsub-neg10.2%
Simplified12.2%
Taylor expanded in t around inf 51.6%
*-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
Simplified51.6%
add-cbrt-cube55.5%
pow355.5%
Applied egg-rr55.5%
Final simplification86.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* t c) (* y i)))
(+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* a (- (* b i) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = a * ((b * i) - (x * t));
}
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 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\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 94.3%
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%
sub-neg0.0%
associate-+l+0.0%
fma-def8.2%
+-commutative8.2%
fma-def8.2%
sub-neg8.2%
+-commutative8.2%
*-commutative8.2%
distribute-rgt-neg-in8.2%
fma-def10.2%
*-commutative10.2%
distribute-rgt-neg-in10.2%
sub-neg10.2%
distribute-neg-in10.2%
unsub-neg10.2%
Simplified12.2%
Taylor expanded in a around inf 53.8%
+-commutative53.8%
mul-1-neg53.8%
unsub-neg53.8%
Simplified53.8%
Final simplification86.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -7e+78)
t_1
(if (<= x -4.7e-14)
(* i (- (* a b) (* y j)))
(if (<= x -4.3e-29)
(- (* y (* x z)) (* a (* x t)))
(if (<= x 6e+56)
(+ (* j (- (* t c) (* y i))) (* b (- (* a i) (* z c))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -7e+78) {
tmp = t_1;
} else if (x <= -4.7e-14) {
tmp = i * ((a * b) - (y * j));
} else if (x <= -4.3e-29) {
tmp = (y * (x * z)) - (a * (x * t));
} else if (x <= 6e+56) {
tmp = (j * ((t * c) - (y * i))) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (x <= (-7d+78)) then
tmp = t_1
else if (x <= (-4.7d-14)) then
tmp = i * ((a * b) - (y * j))
else if (x <= (-4.3d-29)) then
tmp = (y * (x * z)) - (a * (x * t))
else if (x <= 6d+56) then
tmp = (j * ((t * c) - (y * i))) + (b * ((a * i) - (z * c)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -7e+78) {
tmp = t_1;
} else if (x <= -4.7e-14) {
tmp = i * ((a * b) - (y * j));
} else if (x <= -4.3e-29) {
tmp = (y * (x * z)) - (a * (x * t));
} else if (x <= 6e+56) {
tmp = (j * ((t * c) - (y * i))) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -7e+78: tmp = t_1 elif x <= -4.7e-14: tmp = i * ((a * b) - (y * j)) elif x <= -4.3e-29: tmp = (y * (x * z)) - (a * (x * t)) elif x <= 6e+56: tmp = (j * ((t * c) - (y * i))) + (b * ((a * i) - (z * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -7e+78) tmp = t_1; elseif (x <= -4.7e-14) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (x <= -4.3e-29) tmp = Float64(Float64(y * Float64(x * z)) - Float64(a * Float64(x * t))); elseif (x <= 6e+56) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -7e+78) tmp = t_1; elseif (x <= -4.7e-14) tmp = i * ((a * b) - (y * j)); elseif (x <= -4.3e-29) tmp = (y * (x * z)) - (a * (x * t)); elseif (x <= 6e+56) tmp = (j * ((t * c) - (y * i))) + (b * ((a * i) - (z * c))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7e+78], t$95$1, If[LessEqual[x, -4.7e-14], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.3e-29], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6e+56], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -7 \cdot 10^{+78}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -4.7 \cdot 10^{-14}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq -4.3 \cdot 10^{-29}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;x \leq 6 \cdot 10^{+56}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -7.0000000000000003e78 or 6.00000000000000012e56 < x Initial program 74.2%
sub-neg74.2%
associate-+l+74.2%
fma-def78.6%
+-commutative78.6%
fma-def78.6%
sub-neg78.6%
+-commutative78.6%
*-commutative78.6%
distribute-rgt-neg-in78.6%
fma-def78.6%
*-commutative78.6%
distribute-rgt-neg-in78.6%
sub-neg78.6%
distribute-neg-in78.6%
unsub-neg78.6%
Simplified79.7%
Taylor expanded in x around inf 75.4%
if -7.0000000000000003e78 < x < -4.7000000000000002e-14Initial program 81.8%
cancel-sign-sub81.8%
cancel-sign-sub-inv81.8%
*-commutative81.8%
*-commutative81.8%
remove-double-neg81.8%
*-commutative81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in i around -inf 70.0%
if -4.7000000000000002e-14 < x < -4.2999999999999998e-29Initial program 71.2%
sub-neg71.2%
associate-+l+71.2%
fma-def71.2%
+-commutative71.2%
fma-def71.2%
sub-neg71.2%
+-commutative71.2%
*-commutative71.2%
distribute-rgt-neg-in71.2%
fma-def71.2%
*-commutative71.2%
distribute-rgt-neg-in71.2%
sub-neg71.2%
distribute-neg-in71.2%
unsub-neg71.2%
Simplified71.2%
Taylor expanded in x around inf 85.6%
Taylor expanded in y around 0 85.8%
if -4.2999999999999998e-29 < x < 6.00000000000000012e56Initial program 77.1%
cancel-sign-sub77.1%
cancel-sign-sub-inv77.1%
*-commutative77.1%
*-commutative77.1%
remove-double-neg77.1%
*-commutative77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in x around 0 70.5%
Final simplification72.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (* i (- (* a b) (* y j))))
(t_3 (* t (- (* c j) (* x a)))))
(if (<= t -3.2e+62)
t_3
(if (<= t -3.3e+24)
t_1
(if (<= t -65000.0)
(* x (- (* y z) (* t a)))
(if (<= t -7.2e-238)
t_2
(if (<= t -6.6e-292)
(* z (- (* x y) (* b c)))
(if (<= t 1.25e-250)
t_2
(if (<= t 4.3e-101)
(* y (- (* x z) (* i j)))
(if (<= t 4.2e-63) t_1 t_3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = i * ((a * b) - (y * j));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -3.2e+62) {
tmp = t_3;
} else if (t <= -3.3e+24) {
tmp = t_1;
} else if (t <= -65000.0) {
tmp = x * ((y * z) - (t * a));
} else if (t <= -7.2e-238) {
tmp = t_2;
} else if (t <= -6.6e-292) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.25e-250) {
tmp = t_2;
} else if (t <= 4.3e-101) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 4.2e-63) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = i * ((a * b) - (y * j))
t_3 = t * ((c * j) - (x * a))
if (t <= (-3.2d+62)) then
tmp = t_3
else if (t <= (-3.3d+24)) then
tmp = t_1
else if (t <= (-65000.0d0)) then
tmp = x * ((y * z) - (t * a))
else if (t <= (-7.2d-238)) then
tmp = t_2
else if (t <= (-6.6d-292)) then
tmp = z * ((x * y) - (b * c))
else if (t <= 1.25d-250) then
tmp = t_2
else if (t <= 4.3d-101) then
tmp = y * ((x * z) - (i * j))
else if (t <= 4.2d-63) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = i * ((a * b) - (y * j));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -3.2e+62) {
tmp = t_3;
} else if (t <= -3.3e+24) {
tmp = t_1;
} else if (t <= -65000.0) {
tmp = x * ((y * z) - (t * a));
} else if (t <= -7.2e-238) {
tmp = t_2;
} else if (t <= -6.6e-292) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.25e-250) {
tmp = t_2;
} else if (t <= 4.3e-101) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 4.2e-63) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = i * ((a * b) - (y * j)) t_3 = t * ((c * j) - (x * a)) tmp = 0 if t <= -3.2e+62: tmp = t_3 elif t <= -3.3e+24: tmp = t_1 elif t <= -65000.0: tmp = x * ((y * z) - (t * a)) elif t <= -7.2e-238: tmp = t_2 elif t <= -6.6e-292: tmp = z * ((x * y) - (b * c)) elif t <= 1.25e-250: tmp = t_2 elif t <= 4.3e-101: tmp = y * ((x * z) - (i * j)) elif t <= 4.2e-63: tmp = t_1 else: tmp = t_3 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(i * Float64(Float64(a * b) - Float64(y * j))) t_3 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -3.2e+62) tmp = t_3; elseif (t <= -3.3e+24) tmp = t_1; elseif (t <= -65000.0) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (t <= -7.2e-238) tmp = t_2; elseif (t <= -6.6e-292) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 1.25e-250) tmp = t_2; elseif (t <= 4.3e-101) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 4.2e-63) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = i * ((a * b) - (y * j)); t_3 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -3.2e+62) tmp = t_3; elseif (t <= -3.3e+24) tmp = t_1; elseif (t <= -65000.0) tmp = x * ((y * z) - (t * a)); elseif (t <= -7.2e-238) tmp = t_2; elseif (t <= -6.6e-292) tmp = z * ((x * y) - (b * c)); elseif (t <= 1.25e-250) tmp = t_2; elseif (t <= 4.3e-101) tmp = y * ((x * z) - (i * j)); elseif (t <= 4.2e-63) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.2e+62], t$95$3, If[LessEqual[t, -3.3e+24], t$95$1, If[LessEqual[t, -65000.0], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.2e-238], t$95$2, If[LessEqual[t, -6.6e-292], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e-250], t$95$2, If[LessEqual[t, 4.3e-101], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e-63], t$95$1, t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_3 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -3.2 \cdot 10^{+62}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -3.3 \cdot 10^{+24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -65000:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;t \leq -7.2 \cdot 10^{-238}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -6.6 \cdot 10^{-292}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-250}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{-101}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-63}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -3.19999999999999984e62 or 4.2e-63 < t Initial program 69.2%
sub-neg69.2%
associate-+l+69.2%
fma-def70.8%
+-commutative70.8%
fma-def70.8%
sub-neg70.8%
+-commutative70.8%
*-commutative70.8%
distribute-rgt-neg-in70.8%
fma-def71.6%
*-commutative71.6%
distribute-rgt-neg-in71.6%
sub-neg71.6%
distribute-neg-in71.6%
unsub-neg71.6%
Simplified71.6%
Taylor expanded in t around inf 69.7%
*-commutative69.7%
mul-1-neg69.7%
unsub-neg69.7%
Simplified69.7%
if -3.19999999999999984e62 < t < -3.2999999999999999e24 or 4.2999999999999997e-101 < t < 4.2e-63Initial program 76.3%
cancel-sign-sub76.3%
cancel-sign-sub-inv76.3%
*-commutative76.3%
*-commutative76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in b around inf 72.3%
if -3.2999999999999999e24 < t < -65000Initial program 71.2%
sub-neg71.2%
associate-+l+71.2%
fma-def71.2%
+-commutative71.2%
fma-def71.2%
sub-neg71.2%
+-commutative71.2%
*-commutative71.2%
distribute-rgt-neg-in71.2%
fma-def71.2%
*-commutative71.2%
distribute-rgt-neg-in71.2%
sub-neg71.2%
distribute-neg-in71.2%
unsub-neg71.2%
Simplified71.2%
Taylor expanded in x around inf 86.4%
if -65000 < t < -7.20000000000000021e-238 or -6.59999999999999989e-292 < t < 1.25000000000000007e-250Initial program 84.5%
cancel-sign-sub84.5%
cancel-sign-sub-inv84.5%
*-commutative84.5%
*-commutative84.5%
remove-double-neg84.5%
*-commutative84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in i around -inf 64.9%
if -7.20000000000000021e-238 < t < -6.59999999999999989e-292Initial program 93.3%
cancel-sign-sub93.3%
cancel-sign-sub-inv93.3%
*-commutative93.3%
*-commutative93.3%
remove-double-neg93.3%
*-commutative93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in z around inf 74.1%
if 1.25000000000000007e-250 < t < 4.2999999999999997e-101Initial program 82.1%
sub-neg82.1%
associate-+l+82.1%
fma-def85.7%
+-commutative85.7%
fma-def85.7%
sub-neg85.7%
+-commutative85.7%
*-commutative85.7%
distribute-rgt-neg-in85.7%
fma-def85.7%
*-commutative85.7%
distribute-rgt-neg-in85.7%
sub-neg85.7%
distribute-neg-in85.7%
unsub-neg85.7%
Simplified85.7%
Taylor expanded in y around inf 65.7%
+-commutative65.7%
*-commutative65.7%
+-commutative65.7%
mul-1-neg65.7%
unsub-neg65.7%
Simplified65.7%
Final simplification69.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (* i (- (* a b) (* y j))))
(t_3 (* t (- (* c j) (* x a)))))
(if (<= t -2.9e+62)
t_3
(if (<= t -4.5e+24)
t_1
(if (<= t -230000.0)
(- (* y (* x z)) (* a (* x t)))
(if (<= t -8.5e-232)
t_2
(if (<= t -5.2e-292)
(* z (- (* x y) (* b c)))
(if (<= t 5.3e-251)
t_2
(if (<= t 9e-101)
(* y (- (* x z) (* i j)))
(if (<= t 4.7e-63) t_1 t_3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = i * ((a * b) - (y * j));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2.9e+62) {
tmp = t_3;
} else if (t <= -4.5e+24) {
tmp = t_1;
} else if (t <= -230000.0) {
tmp = (y * (x * z)) - (a * (x * t));
} else if (t <= -8.5e-232) {
tmp = t_2;
} else if (t <= -5.2e-292) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 5.3e-251) {
tmp = t_2;
} else if (t <= 9e-101) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 4.7e-63) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = i * ((a * b) - (y * j))
t_3 = t * ((c * j) - (x * a))
if (t <= (-2.9d+62)) then
tmp = t_3
else if (t <= (-4.5d+24)) then
tmp = t_1
else if (t <= (-230000.0d0)) then
tmp = (y * (x * z)) - (a * (x * t))
else if (t <= (-8.5d-232)) then
tmp = t_2
else if (t <= (-5.2d-292)) then
tmp = z * ((x * y) - (b * c))
else if (t <= 5.3d-251) then
tmp = t_2
else if (t <= 9d-101) then
tmp = y * ((x * z) - (i * j))
else if (t <= 4.7d-63) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = i * ((a * b) - (y * j));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2.9e+62) {
tmp = t_3;
} else if (t <= -4.5e+24) {
tmp = t_1;
} else if (t <= -230000.0) {
tmp = (y * (x * z)) - (a * (x * t));
} else if (t <= -8.5e-232) {
tmp = t_2;
} else if (t <= -5.2e-292) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 5.3e-251) {
tmp = t_2;
} else if (t <= 9e-101) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 4.7e-63) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = i * ((a * b) - (y * j)) t_3 = t * ((c * j) - (x * a)) tmp = 0 if t <= -2.9e+62: tmp = t_3 elif t <= -4.5e+24: tmp = t_1 elif t <= -230000.0: tmp = (y * (x * z)) - (a * (x * t)) elif t <= -8.5e-232: tmp = t_2 elif t <= -5.2e-292: tmp = z * ((x * y) - (b * c)) elif t <= 5.3e-251: tmp = t_2 elif t <= 9e-101: tmp = y * ((x * z) - (i * j)) elif t <= 4.7e-63: tmp = t_1 else: tmp = t_3 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(i * Float64(Float64(a * b) - Float64(y * j))) t_3 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -2.9e+62) tmp = t_3; elseif (t <= -4.5e+24) tmp = t_1; elseif (t <= -230000.0) tmp = Float64(Float64(y * Float64(x * z)) - Float64(a * Float64(x * t))); elseif (t <= -8.5e-232) tmp = t_2; elseif (t <= -5.2e-292) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 5.3e-251) tmp = t_2; elseif (t <= 9e-101) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 4.7e-63) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = i * ((a * b) - (y * j)); t_3 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -2.9e+62) tmp = t_3; elseif (t <= -4.5e+24) tmp = t_1; elseif (t <= -230000.0) tmp = (y * (x * z)) - (a * (x * t)); elseif (t <= -8.5e-232) tmp = t_2; elseif (t <= -5.2e-292) tmp = z * ((x * y) - (b * c)); elseif (t <= 5.3e-251) tmp = t_2; elseif (t <= 9e-101) tmp = y * ((x * z) - (i * j)); elseif (t <= 4.7e-63) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.9e+62], t$95$3, If[LessEqual[t, -4.5e+24], t$95$1, If[LessEqual[t, -230000.0], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.5e-232], t$95$2, If[LessEqual[t, -5.2e-292], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.3e-251], t$95$2, If[LessEqual[t, 9e-101], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.7e-63], t$95$1, t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_3 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{+62}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -4.5 \cdot 10^{+24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -230000:\\
\;\;\;\;y \cdot \left(x \cdot z\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;t \leq -8.5 \cdot 10^{-232}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{-292}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 5.3 \cdot 10^{-251}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-101}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 4.7 \cdot 10^{-63}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -2.89999999999999984e62 or 4.7000000000000001e-63 < t Initial program 69.2%
sub-neg69.2%
associate-+l+69.2%
fma-def70.8%
+-commutative70.8%
fma-def70.8%
sub-neg70.8%
+-commutative70.8%
*-commutative70.8%
distribute-rgt-neg-in70.8%
fma-def71.6%
*-commutative71.6%
distribute-rgt-neg-in71.6%
sub-neg71.6%
distribute-neg-in71.6%
unsub-neg71.6%
Simplified71.6%
Taylor expanded in t around inf 69.7%
*-commutative69.7%
mul-1-neg69.7%
unsub-neg69.7%
Simplified69.7%
if -2.89999999999999984e62 < t < -4.50000000000000019e24 or 8.9999999999999997e-101 < t < 4.7000000000000001e-63Initial program 76.3%
cancel-sign-sub76.3%
cancel-sign-sub-inv76.3%
*-commutative76.3%
*-commutative76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in b around inf 72.3%
if -4.50000000000000019e24 < t < -2.3e5Initial program 71.2%
sub-neg71.2%
associate-+l+71.2%
fma-def71.2%
+-commutative71.2%
fma-def71.2%
sub-neg71.2%
+-commutative71.2%
*-commutative71.2%
distribute-rgt-neg-in71.2%
fma-def71.2%
*-commutative71.2%
distribute-rgt-neg-in71.2%
sub-neg71.2%
distribute-neg-in71.2%
unsub-neg71.2%
Simplified71.2%
Taylor expanded in x around inf 86.4%
Taylor expanded in y around 0 86.4%
if -2.3e5 < t < -8.5e-232 or -5.20000000000000027e-292 < t < 5.29999999999999963e-251Initial program 84.5%
cancel-sign-sub84.5%
cancel-sign-sub-inv84.5%
*-commutative84.5%
*-commutative84.5%
remove-double-neg84.5%
*-commutative84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in i around -inf 64.9%
if -8.5e-232 < t < -5.20000000000000027e-292Initial program 93.3%
cancel-sign-sub93.3%
cancel-sign-sub-inv93.3%
*-commutative93.3%
*-commutative93.3%
remove-double-neg93.3%
*-commutative93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in z around inf 74.1%
if 5.29999999999999963e-251 < t < 8.9999999999999997e-101Initial program 82.1%
sub-neg82.1%
associate-+l+82.1%
fma-def85.7%
+-commutative85.7%
fma-def85.7%
sub-neg85.7%
+-commutative85.7%
*-commutative85.7%
distribute-rgt-neg-in85.7%
fma-def85.7%
*-commutative85.7%
distribute-rgt-neg-in85.7%
sub-neg85.7%
distribute-neg-in85.7%
unsub-neg85.7%
Simplified85.7%
Taylor expanded in y around inf 65.7%
+-commutative65.7%
*-commutative65.7%
+-commutative65.7%
mul-1-neg65.7%
unsub-neg65.7%
Simplified65.7%
Final simplification69.1%
(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 -7.4e+62)
t_2
(if (<= t -3.5e+23)
t_1
(if (<= t -21000.0)
t_2
(if (<= t -1.15e-101)
(* j (- (* t c) (* y i)))
(if (<= t 5.5e-256)
t_1
(if (<= t 2.55e-101)
(* y (- (* x z) (* i j)))
(if (<= t 4.6e-63) 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 <= -7.4e+62) {
tmp = t_2;
} else if (t <= -3.5e+23) {
tmp = t_1;
} else if (t <= -21000.0) {
tmp = t_2;
} else if (t <= -1.15e-101) {
tmp = j * ((t * c) - (y * i));
} else if (t <= 5.5e-256) {
tmp = t_1;
} else if (t <= 2.55e-101) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 4.6e-63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = t * ((c * j) - (x * a))
if (t <= (-7.4d+62)) then
tmp = t_2
else if (t <= (-3.5d+23)) then
tmp = t_1
else if (t <= (-21000.0d0)) then
tmp = t_2
else if (t <= (-1.15d-101)) then
tmp = j * ((t * c) - (y * i))
else if (t <= 5.5d-256) then
tmp = t_1
else if (t <= 2.55d-101) then
tmp = y * ((x * z) - (i * j))
else if (t <= 4.6d-63) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -7.4e+62) {
tmp = t_2;
} else if (t <= -3.5e+23) {
tmp = t_1;
} else if (t <= -21000.0) {
tmp = t_2;
} else if (t <= -1.15e-101) {
tmp = j * ((t * c) - (y * i));
} else if (t <= 5.5e-256) {
tmp = t_1;
} else if (t <= 2.55e-101) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 4.6e-63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -7.4e+62: tmp = t_2 elif t <= -3.5e+23: tmp = t_1 elif t <= -21000.0: tmp = t_2 elif t <= -1.15e-101: tmp = j * ((t * c) - (y * i)) elif t <= 5.5e-256: tmp = t_1 elif t <= 2.55e-101: tmp = y * ((x * z) - (i * j)) elif t <= 4.6e-63: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -7.4e+62) tmp = t_2; elseif (t <= -3.5e+23) tmp = t_1; elseif (t <= -21000.0) tmp = t_2; elseif (t <= -1.15e-101) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (t <= 5.5e-256) tmp = t_1; elseif (t <= 2.55e-101) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 4.6e-63) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -7.4e+62) tmp = t_2; elseif (t <= -3.5e+23) tmp = t_1; elseif (t <= -21000.0) tmp = t_2; elseif (t <= -1.15e-101) tmp = j * ((t * c) - (y * i)); elseif (t <= 5.5e-256) tmp = t_1; elseif (t <= 2.55e-101) tmp = y * ((x * z) - (i * j)); elseif (t <= 4.6e-63) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.4e+62], t$95$2, If[LessEqual[t, -3.5e+23], t$95$1, If[LessEqual[t, -21000.0], t$95$2, If[LessEqual[t, -1.15e-101], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-256], t$95$1, If[LessEqual[t, 2.55e-101], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.6e-63], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -7.4 \cdot 10^{+62}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{+23}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -21000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.15 \cdot 10^{-101}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-256}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.55 \cdot 10^{-101}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{-63}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -7.40000000000000028e62 or -3.5000000000000002e23 < t < -21000 or 4.6e-63 < t Initial program 69.1%
sub-neg69.1%
associate-+l+69.1%
fma-def70.6%
+-commutative70.6%
fma-def70.6%
sub-neg70.6%
+-commutative70.6%
*-commutative70.6%
distribute-rgt-neg-in70.6%
fma-def71.4%
*-commutative71.4%
distribute-rgt-neg-in71.4%
sub-neg71.4%
distribute-neg-in71.4%
unsub-neg71.4%
Simplified71.4%
Taylor expanded in t around inf 69.6%
*-commutative69.6%
mul-1-neg69.6%
unsub-neg69.6%
Simplified69.6%
if -7.40000000000000028e62 < t < -3.5000000000000002e23 or -1.15e-101 < t < 5.4999999999999998e-256 or 2.5500000000000001e-101 < t < 4.6e-63Initial program 84.0%
cancel-sign-sub84.0%
cancel-sign-sub-inv84.0%
*-commutative84.0%
*-commutative84.0%
remove-double-neg84.0%
*-commutative84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in b around inf 62.5%
if -21000 < t < -1.15e-101Initial program 84.6%
cancel-sign-sub84.6%
cancel-sign-sub-inv84.6%
*-commutative84.6%
*-commutative84.6%
remove-double-neg84.6%
*-commutative84.6%
*-commutative84.6%
Simplified84.6%
Taylor expanded in z around -inf 88.4%
Simplified88.4%
Taylor expanded in j around inf 58.9%
if 5.4999999999999998e-256 < t < 2.5500000000000001e-101Initial program 82.6%
sub-neg82.6%
associate-+l+82.6%
fma-def85.9%
+-commutative85.9%
fma-def85.9%
sub-neg85.9%
+-commutative85.9%
*-commutative85.9%
distribute-rgt-neg-in85.9%
fma-def85.9%
*-commutative85.9%
distribute-rgt-neg-in85.9%
sub-neg85.9%
distribute-neg-in85.9%
unsub-neg85.9%
Simplified85.9%
Taylor expanded in y around inf 64.7%
+-commutative64.7%
*-commutative64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
Simplified64.7%
Final simplification66.1%
(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 -5.2e+62)
t_2
(if (<= t -1.2e+24)
t_1
(if (<= t -95000.0)
(* x (- (* y z) (* t a)))
(if (<= t -6.2e-102)
(* j (- (* t c) (* y i)))
(if (<= t 1.35e-255)
t_1
(if (<= t 3.1e-101)
(* y (- (* x z) (* i j)))
(if (<= t 4.8e-63) 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 <= -5.2e+62) {
tmp = t_2;
} else if (t <= -1.2e+24) {
tmp = t_1;
} else if (t <= -95000.0) {
tmp = x * ((y * z) - (t * a));
} else if (t <= -6.2e-102) {
tmp = j * ((t * c) - (y * i));
} else if (t <= 1.35e-255) {
tmp = t_1;
} else if (t <= 3.1e-101) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 4.8e-63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = t * ((c * j) - (x * a))
if (t <= (-5.2d+62)) then
tmp = t_2
else if (t <= (-1.2d+24)) then
tmp = t_1
else if (t <= (-95000.0d0)) then
tmp = x * ((y * z) - (t * a))
else if (t <= (-6.2d-102)) then
tmp = j * ((t * c) - (y * i))
else if (t <= 1.35d-255) then
tmp = t_1
else if (t <= 3.1d-101) then
tmp = y * ((x * z) - (i * j))
else if (t <= 4.8d-63) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -5.2e+62) {
tmp = t_2;
} else if (t <= -1.2e+24) {
tmp = t_1;
} else if (t <= -95000.0) {
tmp = x * ((y * z) - (t * a));
} else if (t <= -6.2e-102) {
tmp = j * ((t * c) - (y * i));
} else if (t <= 1.35e-255) {
tmp = t_1;
} else if (t <= 3.1e-101) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 4.8e-63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -5.2e+62: tmp = t_2 elif t <= -1.2e+24: tmp = t_1 elif t <= -95000.0: tmp = x * ((y * z) - (t * a)) elif t <= -6.2e-102: tmp = j * ((t * c) - (y * i)) elif t <= 1.35e-255: tmp = t_1 elif t <= 3.1e-101: tmp = y * ((x * z) - (i * j)) elif t <= 4.8e-63: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -5.2e+62) tmp = t_2; elseif (t <= -1.2e+24) tmp = t_1; elseif (t <= -95000.0) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (t <= -6.2e-102) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (t <= 1.35e-255) tmp = t_1; elseif (t <= 3.1e-101) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 4.8e-63) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -5.2e+62) tmp = t_2; elseif (t <= -1.2e+24) tmp = t_1; elseif (t <= -95000.0) tmp = x * ((y * z) - (t * a)); elseif (t <= -6.2e-102) tmp = j * ((t * c) - (y * i)); elseif (t <= 1.35e-255) tmp = t_1; elseif (t <= 3.1e-101) tmp = y * ((x * z) - (i * j)); elseif (t <= 4.8e-63) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.2e+62], t$95$2, If[LessEqual[t, -1.2e+24], t$95$1, If[LessEqual[t, -95000.0], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.2e-102], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e-255], t$95$1, If[LessEqual[t, 3.1e-101], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e-63], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -5.2 \cdot 10^{+62}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.2 \cdot 10^{+24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -95000:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;t \leq -6.2 \cdot 10^{-102}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-255}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-101}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-63}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -5.19999999999999968e62 or 4.8000000000000001e-63 < t Initial program 69.2%
sub-neg69.2%
associate-+l+69.2%
fma-def70.8%
+-commutative70.8%
fma-def70.8%
sub-neg70.8%
+-commutative70.8%
*-commutative70.8%
distribute-rgt-neg-in70.8%
fma-def71.6%
*-commutative71.6%
distribute-rgt-neg-in71.6%
sub-neg71.6%
distribute-neg-in71.6%
unsub-neg71.6%
Simplified71.6%
Taylor expanded in t around inf 69.7%
*-commutative69.7%
mul-1-neg69.7%
unsub-neg69.7%
Simplified69.7%
if -5.19999999999999968e62 < t < -1.2e24 or -6.20000000000000026e-102 < t < 1.35000000000000008e-255 or 3.09999999999999973e-101 < t < 4.8000000000000001e-63Initial program 83.8%
cancel-sign-sub83.8%
cancel-sign-sub-inv83.8%
*-commutative83.8%
*-commutative83.8%
remove-double-neg83.8%
*-commutative83.8%
*-commutative83.8%
Simplified83.8%
Taylor expanded in b around inf 62.0%
if -1.2e24 < t < -95000Initial program 71.2%
sub-neg71.2%
associate-+l+71.2%
fma-def71.2%
+-commutative71.2%
fma-def71.2%
sub-neg71.2%
+-commutative71.2%
*-commutative71.2%
distribute-rgt-neg-in71.2%
fma-def71.2%
*-commutative71.2%
distribute-rgt-neg-in71.2%
sub-neg71.2%
distribute-neg-in71.2%
unsub-neg71.2%
Simplified71.2%
Taylor expanded in x around inf 86.4%
if -95000 < t < -6.20000000000000026e-102Initial program 84.6%
cancel-sign-sub84.6%
cancel-sign-sub-inv84.6%
*-commutative84.6%
*-commutative84.6%
remove-double-neg84.6%
*-commutative84.6%
*-commutative84.6%
Simplified84.6%
Taylor expanded in z around -inf 88.4%
Simplified88.4%
Taylor expanded in j around inf 58.9%
if 1.35000000000000008e-255 < t < 3.09999999999999973e-101Initial program 82.6%
sub-neg82.6%
associate-+l+82.6%
fma-def85.9%
+-commutative85.9%
fma-def85.9%
sub-neg85.9%
+-commutative85.9%
*-commutative85.9%
distribute-rgt-neg-in85.9%
fma-def85.9%
*-commutative85.9%
distribute-rgt-neg-in85.9%
sub-neg85.9%
distribute-neg-in85.9%
unsub-neg85.9%
Simplified85.9%
Taylor expanded in y around inf 64.7%
+-commutative64.7%
*-commutative64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
Simplified64.7%
Final simplification66.5%
(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 -3.2e+62)
t_2
(if (<= t -1.6e+23)
t_1
(if (<= t -0.7)
t_2
(if (<= t 4.2e-256)
t_1
(if (<= t 6e-101)
(* y (- (* x z) (* i j)))
(if (<= t 6.6e-63) 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 <= -3.2e+62) {
tmp = t_2;
} else if (t <= -1.6e+23) {
tmp = t_1;
} else if (t <= -0.7) {
tmp = t_2;
} else if (t <= 4.2e-256) {
tmp = t_1;
} else if (t <= 6e-101) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 6.6e-63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = t * ((c * j) - (x * a))
if (t <= (-3.2d+62)) then
tmp = t_2
else if (t <= (-1.6d+23)) then
tmp = t_1
else if (t <= (-0.7d0)) then
tmp = t_2
else if (t <= 4.2d-256) then
tmp = t_1
else if (t <= 6d-101) then
tmp = y * ((x * z) - (i * j))
else if (t <= 6.6d-63) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -3.2e+62) {
tmp = t_2;
} else if (t <= -1.6e+23) {
tmp = t_1;
} else if (t <= -0.7) {
tmp = t_2;
} else if (t <= 4.2e-256) {
tmp = t_1;
} else if (t <= 6e-101) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 6.6e-63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -3.2e+62: tmp = t_2 elif t <= -1.6e+23: tmp = t_1 elif t <= -0.7: tmp = t_2 elif t <= 4.2e-256: tmp = t_1 elif t <= 6e-101: tmp = y * ((x * z) - (i * j)) elif t <= 6.6e-63: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -3.2e+62) tmp = t_2; elseif (t <= -1.6e+23) tmp = t_1; elseif (t <= -0.7) tmp = t_2; elseif (t <= 4.2e-256) tmp = t_1; elseif (t <= 6e-101) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 6.6e-63) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -3.2e+62) tmp = t_2; elseif (t <= -1.6e+23) tmp = t_1; elseif (t <= -0.7) tmp = t_2; elseif (t <= 4.2e-256) tmp = t_1; elseif (t <= 6e-101) tmp = y * ((x * z) - (i * j)); elseif (t <= 6.6e-63) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.2e+62], t$95$2, If[LessEqual[t, -1.6e+23], t$95$1, If[LessEqual[t, -0.7], t$95$2, If[LessEqual[t, 4.2e-256], t$95$1, If[LessEqual[t, 6e-101], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.6e-63], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -3.2 \cdot 10^{+62}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.6 \cdot 10^{+23}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -0.7:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-256}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-101}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-63}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -3.19999999999999984e62 or -1.6e23 < t < -0.69999999999999996 or 6.59999999999999987e-63 < t Initial program 69.0%
sub-neg69.0%
associate-+l+69.0%
fma-def70.5%
+-commutative70.5%
fma-def70.5%
sub-neg70.5%
+-commutative70.5%
*-commutative70.5%
distribute-rgt-neg-in70.5%
fma-def71.3%
*-commutative71.3%
distribute-rgt-neg-in71.3%
sub-neg71.3%
distribute-neg-in71.3%
unsub-neg71.3%
Simplified71.3%
Taylor expanded in t around inf 68.9%
*-commutative68.9%
mul-1-neg68.9%
unsub-neg68.9%
Simplified68.9%
if -3.19999999999999984e62 < t < -1.6e23 or -0.69999999999999996 < t < 4.20000000000000005e-256 or 6.0000000000000006e-101 < t < 6.59999999999999987e-63Initial program 84.8%
cancel-sign-sub84.8%
cancel-sign-sub-inv84.8%
*-commutative84.8%
*-commutative84.8%
remove-double-neg84.8%
*-commutative84.8%
*-commutative84.8%
Simplified84.8%
Taylor expanded in b around inf 57.9%
if 4.20000000000000005e-256 < t < 6.0000000000000006e-101Initial program 82.6%
sub-neg82.6%
associate-+l+82.6%
fma-def85.9%
+-commutative85.9%
fma-def85.9%
sub-neg85.9%
+-commutative85.9%
*-commutative85.9%
distribute-rgt-neg-in85.9%
fma-def85.9%
*-commutative85.9%
distribute-rgt-neg-in85.9%
sub-neg85.9%
distribute-neg-in85.9%
unsub-neg85.9%
Simplified85.9%
Taylor expanded in y around inf 64.7%
+-commutative64.7%
*-commutative64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
Simplified64.7%
Final simplification64.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* x a)))))
(if (<= a -2.25e+27)
(* i (* a b))
(if (<= a -33000.0)
t_1
(if (<= a -8e-269)
(* t (* c j))
(if (<= a 7.5e-200)
(* b (* z (- c)))
(if (<= a 4.9e-136)
(* i (* y (- j)))
(if (<= a 9e+73) (* y (* x z)) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * -(x * a);
double tmp;
if (a <= -2.25e+27) {
tmp = i * (a * b);
} else if (a <= -33000.0) {
tmp = t_1;
} else if (a <= -8e-269) {
tmp = t * (c * j);
} else if (a <= 7.5e-200) {
tmp = b * (z * -c);
} else if (a <= 4.9e-136) {
tmp = i * (y * -j);
} else if (a <= 9e+73) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * -(x * a)
if (a <= (-2.25d+27)) then
tmp = i * (a * b)
else if (a <= (-33000.0d0)) then
tmp = t_1
else if (a <= (-8d-269)) then
tmp = t * (c * j)
else if (a <= 7.5d-200) then
tmp = b * (z * -c)
else if (a <= 4.9d-136) then
tmp = i * (y * -j)
else if (a <= 9d+73) then
tmp = y * (x * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * -(x * a);
double tmp;
if (a <= -2.25e+27) {
tmp = i * (a * b);
} else if (a <= -33000.0) {
tmp = t_1;
} else if (a <= -8e-269) {
tmp = t * (c * j);
} else if (a <= 7.5e-200) {
tmp = b * (z * -c);
} else if (a <= 4.9e-136) {
tmp = i * (y * -j);
} else if (a <= 9e+73) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * -(x * a) tmp = 0 if a <= -2.25e+27: tmp = i * (a * b) elif a <= -33000.0: tmp = t_1 elif a <= -8e-269: tmp = t * (c * j) elif a <= 7.5e-200: tmp = b * (z * -c) elif a <= 4.9e-136: tmp = i * (y * -j) elif a <= 9e+73: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(-Float64(x * a))) tmp = 0.0 if (a <= -2.25e+27) tmp = Float64(i * Float64(a * b)); elseif (a <= -33000.0) tmp = t_1; elseif (a <= -8e-269) tmp = Float64(t * Float64(c * j)); elseif (a <= 7.5e-200) tmp = Float64(b * Float64(z * Float64(-c))); elseif (a <= 4.9e-136) tmp = Float64(i * Float64(y * Float64(-j))); elseif (a <= 9e+73) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * -(x * a); tmp = 0.0; if (a <= -2.25e+27) tmp = i * (a * b); elseif (a <= -33000.0) tmp = t_1; elseif (a <= -8e-269) tmp = t * (c * j); elseif (a <= 7.5e-200) tmp = b * (z * -c); elseif (a <= 4.9e-136) tmp = i * (y * -j); elseif (a <= 9e+73) tmp = y * (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[a, -2.25e+27], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -33000.0], t$95$1, If[LessEqual[a, -8e-269], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.5e-200], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.9e-136], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9e+73], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(-x \cdot a\right)\\
\mathbf{if}\;a \leq -2.25 \cdot 10^{+27}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;a \leq -33000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-269}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-200}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;a \leq 4.9 \cdot 10^{-136}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 9 \cdot 10^{+73}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -2.25e27Initial program 73.6%
sub-neg73.6%
associate-+l+73.6%
fma-def78.0%
+-commutative78.0%
fma-def78.0%
sub-neg78.0%
+-commutative78.0%
*-commutative78.0%
distribute-rgt-neg-in78.0%
fma-def78.0%
*-commutative78.0%
distribute-rgt-neg-in78.0%
sub-neg78.0%
distribute-neg-in78.0%
unsub-neg78.0%
Simplified78.0%
Taylor expanded in a around inf 64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
Simplified64.7%
Taylor expanded in i around inf 37.1%
Taylor expanded in a around 0 41.2%
if -2.25e27 < a < -33000 or 8.99999999999999969e73 < a Initial program 72.0%
sub-neg72.0%
associate-+l+72.0%
fma-def72.0%
+-commutative72.0%
fma-def72.0%
sub-neg72.0%
+-commutative72.0%
*-commutative72.0%
distribute-rgt-neg-in72.0%
fma-def72.0%
*-commutative72.0%
distribute-rgt-neg-in72.0%
sub-neg72.0%
distribute-neg-in72.0%
unsub-neg72.0%
Simplified73.7%
Taylor expanded in t around inf 69.2%
*-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
Simplified69.2%
Taylor expanded in c around 0 58.8%
mul-1-neg58.8%
distribute-rgt-neg-out58.8%
Simplified58.8%
if -33000 < a < -7.9999999999999997e-269Initial program 75.3%
sub-neg75.3%
associate-+l+75.3%
fma-def77.5%
+-commutative77.5%
fma-def77.5%
sub-neg77.5%
+-commutative77.5%
*-commutative77.5%
distribute-rgt-neg-in77.5%
fma-def77.5%
*-commutative77.5%
distribute-rgt-neg-in77.5%
sub-neg77.5%
distribute-neg-in77.5%
unsub-neg77.5%
Simplified77.5%
Taylor expanded in t around inf 44.7%
*-commutative44.7%
mul-1-neg44.7%
unsub-neg44.7%
Simplified44.7%
Taylor expanded in c around inf 42.4%
if -7.9999999999999997e-269 < a < 7.49999999999999958e-200Initial program 74.8%
cancel-sign-sub74.8%
cancel-sign-sub-inv74.8%
*-commutative74.8%
*-commutative74.8%
remove-double-neg74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in b around inf 56.7%
Taylor expanded in a around 0 49.4%
neg-mul-149.4%
distribute-rgt-neg-in49.4%
Simplified49.4%
if 7.49999999999999958e-200 < a < 4.9e-136Initial program 83.4%
sub-neg83.4%
associate-+l+83.4%
fma-def83.4%
+-commutative83.4%
fma-def83.4%
sub-neg83.4%
+-commutative83.4%
*-commutative83.4%
distribute-rgt-neg-in83.4%
fma-def83.4%
*-commutative83.4%
distribute-rgt-neg-in83.4%
sub-neg83.4%
distribute-neg-in83.4%
unsub-neg83.4%
Simplified83.4%
Taylor expanded in y around inf 40.7%
+-commutative40.7%
*-commutative40.7%
+-commutative40.7%
mul-1-neg40.7%
unsub-neg40.7%
Simplified40.7%
Taylor expanded in i around inf 51.1%
if 4.9e-136 < a < 8.99999999999999969e73Initial program 84.4%
sub-neg84.4%
associate-+l+84.4%
fma-def84.4%
+-commutative84.4%
fma-def84.4%
sub-neg84.4%
+-commutative84.4%
*-commutative84.4%
distribute-rgt-neg-in84.4%
fma-def86.6%
*-commutative86.6%
distribute-rgt-neg-in86.6%
sub-neg86.6%
distribute-neg-in86.6%
unsub-neg86.6%
Simplified86.6%
Taylor expanded in y around inf 48.0%
+-commutative48.0%
*-commutative48.0%
+-commutative48.0%
mul-1-neg48.0%
unsub-neg48.0%
Simplified48.0%
Taylor expanded in z around inf 36.9%
Final simplification46.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -3100.0)
t_1
(if (<= a -1.15e-272)
(* t (* c j))
(if (<= a 1.25e-199)
(* b (* z (- c)))
(if (<= a 2.02e-135) (* i (* y (- j))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -3100.0) {
tmp = t_1;
} else if (a <= -1.15e-272) {
tmp = t * (c * j);
} else if (a <= 1.25e-199) {
tmp = b * (z * -c);
} else if (a <= 2.02e-135) {
tmp = i * (y * -j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-3100.0d0)) then
tmp = t_1
else if (a <= (-1.15d-272)) then
tmp = t * (c * j)
else if (a <= 1.25d-199) then
tmp = b * (z * -c)
else if (a <= 2.02d-135) then
tmp = i * (y * -j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -3100.0) {
tmp = t_1;
} else if (a <= -1.15e-272) {
tmp = t * (c * j);
} else if (a <= 1.25e-199) {
tmp = b * (z * -c);
} else if (a <= 2.02e-135) {
tmp = i * (y * -j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -3100.0: tmp = t_1 elif a <= -1.15e-272: tmp = t * (c * j) elif a <= 1.25e-199: tmp = b * (z * -c) elif a <= 2.02e-135: tmp = i * (y * -j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -3100.0) tmp = t_1; elseif (a <= -1.15e-272) tmp = Float64(t * Float64(c * j)); elseif (a <= 1.25e-199) tmp = Float64(b * Float64(z * Float64(-c))); elseif (a <= 2.02e-135) tmp = Float64(i * Float64(y * Float64(-j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -3100.0) tmp = t_1; elseif (a <= -1.15e-272) tmp = t * (c * j); elseif (a <= 1.25e-199) tmp = b * (z * -c); elseif (a <= 2.02e-135) tmp = i * (y * -j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3100.0], t$95$1, If[LessEqual[a, -1.15e-272], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e-199], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.02e-135], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -3100:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{-272}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-199}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;a \leq 2.02 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -3100 or 2.02000000000000013e-135 < a Initial program 75.9%
sub-neg75.9%
associate-+l+75.9%
fma-def77.7%
+-commutative77.7%
fma-def77.7%
sub-neg77.7%
+-commutative77.7%
*-commutative77.7%
distribute-rgt-neg-in77.7%
fma-def78.3%
*-commutative78.3%
distribute-rgt-neg-in78.3%
sub-neg78.3%
distribute-neg-in78.3%
unsub-neg78.3%
Simplified78.9%
Taylor expanded in a around inf 62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
Simplified62.9%
if -3100 < a < -1.14999999999999994e-272Initial program 75.3%
sub-neg75.3%
associate-+l+75.3%
fma-def77.5%
+-commutative77.5%
fma-def77.5%
sub-neg77.5%
+-commutative77.5%
*-commutative77.5%
distribute-rgt-neg-in77.5%
fma-def77.5%
*-commutative77.5%
distribute-rgt-neg-in77.5%
sub-neg77.5%
distribute-neg-in77.5%
unsub-neg77.5%
Simplified77.5%
Taylor expanded in t around inf 44.7%
*-commutative44.7%
mul-1-neg44.7%
unsub-neg44.7%
Simplified44.7%
Taylor expanded in c around inf 42.4%
if -1.14999999999999994e-272 < a < 1.2499999999999999e-199Initial program 74.8%
cancel-sign-sub74.8%
cancel-sign-sub-inv74.8%
*-commutative74.8%
*-commutative74.8%
remove-double-neg74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in b around inf 56.7%
Taylor expanded in a around 0 49.4%
neg-mul-149.4%
distribute-rgt-neg-in49.4%
Simplified49.4%
if 1.2499999999999999e-199 < a < 2.02000000000000013e-135Initial program 83.4%
sub-neg83.4%
associate-+l+83.4%
fma-def83.4%
+-commutative83.4%
fma-def83.4%
sub-neg83.4%
+-commutative83.4%
*-commutative83.4%
distribute-rgt-neg-in83.4%
fma-def83.4%
*-commutative83.4%
distribute-rgt-neg-in83.4%
sub-neg83.4%
distribute-neg-in83.4%
unsub-neg83.4%
Simplified83.4%
Taylor expanded in y around inf 40.7%
+-commutative40.7%
*-commutative40.7%
+-commutative40.7%
mul-1-neg40.7%
unsub-neg40.7%
Simplified40.7%
Taylor expanded in i around inf 51.1%
Final simplification57.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -175000.0)
t_2
(if (<= a 1.15e-161)
t_1
(if (<= a 1.48e-90) (* i (* y (- j))) (if (<= a 880000.0) 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) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -175000.0) {
tmp = t_2;
} else if (a <= 1.15e-161) {
tmp = t_1;
} else if (a <= 1.48e-90) {
tmp = i * (y * -j);
} else if (a <= 880000.0) {
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) - (z * b))
t_2 = a * ((b * i) - (x * t))
if (a <= (-175000.0d0)) then
tmp = t_2
else if (a <= 1.15d-161) then
tmp = t_1
else if (a <= 1.48d-90) then
tmp = i * (y * -j)
else if (a <= 880000.0d0) 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) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -175000.0) {
tmp = t_2;
} else if (a <= 1.15e-161) {
tmp = t_1;
} else if (a <= 1.48e-90) {
tmp = i * (y * -j);
} else if (a <= 880000.0) {
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) - (z * b)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -175000.0: tmp = t_2 elif a <= 1.15e-161: tmp = t_1 elif a <= 1.48e-90: tmp = i * (y * -j) elif a <= 880000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -175000.0) tmp = t_2; elseif (a <= 1.15e-161) tmp = t_1; elseif (a <= 1.48e-90) tmp = Float64(i * Float64(y * Float64(-j))); elseif (a <= 880000.0) 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) - (z * b)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -175000.0) tmp = t_2; elseif (a <= 1.15e-161) tmp = t_1; elseif (a <= 1.48e-90) tmp = i * (y * -j); elseif (a <= 880000.0) 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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -175000.0], t$95$2, If[LessEqual[a, 1.15e-161], t$95$1, If[LessEqual[a, 1.48e-90], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 880000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -175000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-161}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.48 \cdot 10^{-90}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 880000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -175000 or 8.8e5 < a Initial program 74.8%
sub-neg74.8%
associate-+l+74.8%
fma-def76.9%
+-commutative76.9%
fma-def76.9%
sub-neg76.9%
+-commutative76.9%
*-commutative76.9%
distribute-rgt-neg-in76.9%
fma-def76.9%
*-commutative76.9%
distribute-rgt-neg-in76.9%
sub-neg76.9%
distribute-neg-in76.9%
unsub-neg76.9%
Simplified77.6%
Taylor expanded in a around inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
Simplified69.5%
if -175000 < a < 1.15e-161 or 1.4800000000000001e-90 < a < 8.8e5Initial program 78.4%
+-commutative78.4%
fma-def79.5%
*-commutative79.5%
*-commutative79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in c around inf 56.5%
if 1.15e-161 < a < 1.4800000000000001e-90Initial program 76.0%
sub-neg76.0%
associate-+l+76.0%
fma-def76.0%
+-commutative76.0%
fma-def76.0%
sub-neg76.0%
+-commutative76.0%
*-commutative76.0%
distribute-rgt-neg-in76.0%
fma-def80.7%
*-commutative80.7%
distribute-rgt-neg-in80.7%
sub-neg80.7%
distribute-neg-in80.7%
unsub-neg80.7%
Simplified80.7%
Taylor expanded in y around inf 49.6%
+-commutative49.6%
*-commutative49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
Simplified49.6%
Taylor expanded in i around inf 39.9%
Final simplification62.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -1550000.0)
t_1
(if (<= a 3.4e-170)
(* c (- (* t j) (* z b)))
(if (<= a 1.75e-135)
(* i (* y (- j)))
(if (<= a 4.5e+15) (* t (- (* c j) (* x a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1550000.0) {
tmp = t_1;
} else if (a <= 3.4e-170) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 1.75e-135) {
tmp = i * (y * -j);
} else if (a <= 4.5e+15) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-1550000.0d0)) then
tmp = t_1
else if (a <= 3.4d-170) then
tmp = c * ((t * j) - (z * b))
else if (a <= 1.75d-135) then
tmp = i * (y * -j)
else if (a <= 4.5d+15) then
tmp = t * ((c * j) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1550000.0) {
tmp = t_1;
} else if (a <= 3.4e-170) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 1.75e-135) {
tmp = i * (y * -j);
} else if (a <= 4.5e+15) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -1550000.0: tmp = t_1 elif a <= 3.4e-170: tmp = c * ((t * j) - (z * b)) elif a <= 1.75e-135: tmp = i * (y * -j) elif a <= 4.5e+15: tmp = t * ((c * j) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -1550000.0) tmp = t_1; elseif (a <= 3.4e-170) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (a <= 1.75e-135) tmp = Float64(i * Float64(y * Float64(-j))); elseif (a <= 4.5e+15) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -1550000.0) tmp = t_1; elseif (a <= 3.4e-170) tmp = c * ((t * j) - (z * b)); elseif (a <= 1.75e-135) tmp = i * (y * -j); elseif (a <= 4.5e+15) tmp = t * ((c * j) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1550000.0], t$95$1, If[LessEqual[a, 3.4e-170], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.75e-135], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.5e+15], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -1550000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.4 \cdot 10^{-170}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{+15}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.55e6 or 4.5e15 < a Initial program 74.3%
sub-neg74.3%
associate-+l+74.3%
fma-def76.5%
+-commutative76.5%
fma-def76.5%
sub-neg76.5%
+-commutative76.5%
*-commutative76.5%
distribute-rgt-neg-in76.5%
fma-def76.5%
*-commutative76.5%
distribute-rgt-neg-in76.5%
sub-neg76.5%
distribute-neg-in76.5%
unsub-neg76.5%
Simplified77.2%
Taylor expanded in a around inf 70.2%
+-commutative70.2%
mul-1-neg70.2%
unsub-neg70.2%
Simplified70.2%
if -1.55e6 < a < 3.40000000000000013e-170Initial program 76.5%
+-commutative76.5%
fma-def77.8%
*-commutative77.8%
*-commutative77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in c around inf 54.9%
if 3.40000000000000013e-170 < a < 1.7499999999999999e-135Initial program 79.7%
sub-neg79.7%
associate-+l+79.7%
fma-def79.7%
+-commutative79.7%
fma-def79.7%
sub-neg79.7%
+-commutative79.7%
*-commutative79.7%
distribute-rgt-neg-in79.7%
fma-def79.7%
*-commutative79.7%
distribute-rgt-neg-in79.7%
sub-neg79.7%
distribute-neg-in79.7%
unsub-neg79.7%
Simplified79.7%
Taylor expanded in y around inf 42.3%
+-commutative42.3%
*-commutative42.3%
+-commutative42.3%
mul-1-neg42.3%
unsub-neg42.3%
Simplified42.3%
Taylor expanded in i around inf 70.3%
if 1.7499999999999999e-135 < a < 4.5e15Initial program 83.4%
sub-neg83.4%
associate-+l+83.4%
fma-def83.4%
+-commutative83.4%
fma-def83.4%
sub-neg83.4%
+-commutative83.4%
*-commutative83.4%
distribute-rgt-neg-in83.4%
fma-def86.7%
*-commutative86.7%
distribute-rgt-neg-in86.7%
sub-neg86.7%
distribute-neg-in86.7%
unsub-neg86.7%
Simplified86.7%
Taylor expanded in t around inf 42.4%
*-commutative42.4%
mul-1-neg42.4%
unsub-neg42.4%
Simplified42.4%
Final simplification62.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* t (- (* c j) (* x a)))))
(if (<= t -2.2e+51)
t_2
(if (<= t -1.65e-140)
t_1
(if (<= t -2.4e-217)
(* a (- (* b i) (* x t)))
(if (<= t 1.7e-101) 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));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2.2e+51) {
tmp = t_2;
} else if (t <= -1.65e-140) {
tmp = t_1;
} else if (t <= -2.4e-217) {
tmp = a * ((b * i) - (x * t));
} else if (t <= 1.7e-101) {
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))
t_2 = t * ((c * j) - (x * a))
if (t <= (-2.2d+51)) then
tmp = t_2
else if (t <= (-1.65d-140)) then
tmp = t_1
else if (t <= (-2.4d-217)) then
tmp = a * ((b * i) - (x * t))
else if (t <= 1.7d-101) 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));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2.2e+51) {
tmp = t_2;
} else if (t <= -1.65e-140) {
tmp = t_1;
} else if (t <= -2.4e-217) {
tmp = a * ((b * i) - (x * t));
} else if (t <= 1.7e-101) {
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)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -2.2e+51: tmp = t_2 elif t <= -1.65e-140: tmp = t_1 elif t <= -2.4e-217: tmp = a * ((b * i) - (x * t)) elif t <= 1.7e-101: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -2.2e+51) tmp = t_2; elseif (t <= -1.65e-140) tmp = t_1; elseif (t <= -2.4e-217) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (t <= 1.7e-101) 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)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -2.2e+51) tmp = t_2; elseif (t <= -1.65e-140) tmp = t_1; elseif (t <= -2.4e-217) tmp = a * ((b * i) - (x * t)); elseif (t <= 1.7e-101) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.2e+51], t$95$2, If[LessEqual[t, -1.65e-140], t$95$1, If[LessEqual[t, -2.4e-217], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e-101], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -2.2 \cdot 10^{+51}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.65 \cdot 10^{-140}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.4 \cdot 10^{-217}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-101}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -2.19999999999999992e51 or 1.69999999999999995e-101 < t Initial program 71.0%
sub-neg71.0%
associate-+l+71.0%
fma-def72.4%
+-commutative72.4%
fma-def72.4%
sub-neg72.4%
+-commutative72.4%
*-commutative72.4%
distribute-rgt-neg-in72.4%
fma-def73.1%
*-commutative73.1%
distribute-rgt-neg-in73.1%
sub-neg73.1%
distribute-neg-in73.1%
unsub-neg73.1%
Simplified73.1%
Taylor expanded in t around inf 64.8%
*-commutative64.8%
mul-1-neg64.8%
unsub-neg64.8%
Simplified64.8%
if -2.19999999999999992e51 < t < -1.64999999999999994e-140 or -2.3999999999999999e-217 < t < 1.69999999999999995e-101Initial program 82.7%
sub-neg82.7%
associate-+l+82.7%
fma-def84.7%
+-commutative84.7%
fma-def84.7%
sub-neg84.7%
+-commutative84.7%
*-commutative84.7%
distribute-rgt-neg-in84.7%
fma-def84.7%
*-commutative84.7%
distribute-rgt-neg-in84.7%
sub-neg84.7%
distribute-neg-in84.7%
unsub-neg84.7%
Simplified85.7%
Taylor expanded in y around inf 54.7%
+-commutative54.7%
*-commutative54.7%
+-commutative54.7%
mul-1-neg54.7%
unsub-neg54.7%
Simplified54.7%
if -1.64999999999999994e-140 < t < -2.3999999999999999e-217Initial program 84.8%
sub-neg84.8%
associate-+l+84.8%
fma-def84.8%
+-commutative84.8%
fma-def84.8%
sub-neg84.8%
+-commutative84.8%
*-commutative84.8%
distribute-rgt-neg-in84.8%
fma-def84.8%
*-commutative84.8%
distribute-rgt-neg-in84.8%
sub-neg84.8%
distribute-neg-in84.8%
unsub-neg84.8%
Simplified84.8%
Taylor expanded in a around inf 62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
Simplified62.5%
Final simplification60.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* x a)))) (t_2 (* x (* y z))))
(if (<= y -1.18e+111)
t_2
(if (<= y -2.7e-240)
t_1
(if (<= y 8e-65) (* i (* a b)) (if (<= y 4.6e+75) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * -(x * a);
double t_2 = x * (y * z);
double tmp;
if (y <= -1.18e+111) {
tmp = t_2;
} else if (y <= -2.7e-240) {
tmp = t_1;
} else if (y <= 8e-65) {
tmp = i * (a * b);
} else if (y <= 4.6e+75) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * -(x * a)
t_2 = x * (y * z)
if (y <= (-1.18d+111)) then
tmp = t_2
else if (y <= (-2.7d-240)) then
tmp = t_1
else if (y <= 8d-65) then
tmp = i * (a * b)
else if (y <= 4.6d+75) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * -(x * a);
double t_2 = x * (y * z);
double tmp;
if (y <= -1.18e+111) {
tmp = t_2;
} else if (y <= -2.7e-240) {
tmp = t_1;
} else if (y <= 8e-65) {
tmp = i * (a * b);
} else if (y <= 4.6e+75) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * -(x * a) t_2 = x * (y * z) tmp = 0 if y <= -1.18e+111: tmp = t_2 elif y <= -2.7e-240: tmp = t_1 elif y <= 8e-65: tmp = i * (a * b) elif y <= 4.6e+75: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(-Float64(x * a))) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -1.18e+111) tmp = t_2; elseif (y <= -2.7e-240) tmp = t_1; elseif (y <= 8e-65) tmp = Float64(i * Float64(a * b)); elseif (y <= 4.6e+75) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * -(x * a); t_2 = x * (y * z); tmp = 0.0; if (y <= -1.18e+111) tmp = t_2; elseif (y <= -2.7e-240) tmp = t_1; elseif (y <= 8e-65) tmp = i * (a * b); elseif (y <= 4.6e+75) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.18e+111], t$95$2, If[LessEqual[y, -2.7e-240], t$95$1, If[LessEqual[y, 8e-65], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e+75], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(-x \cdot a\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -1.18 \cdot 10^{+111}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -2.7 \cdot 10^{-240}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-65}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{+75}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.1799999999999999e111 or 4.5999999999999997e75 < y Initial program 61.2%
sub-neg61.2%
associate-+l+61.2%
fma-def65.6%
+-commutative65.6%
fma-def65.6%
sub-neg65.6%
+-commutative65.6%
*-commutative65.6%
distribute-rgt-neg-in65.6%
fma-def66.6%
*-commutative66.6%
distribute-rgt-neg-in66.6%
sub-neg66.6%
distribute-neg-in66.6%
unsub-neg66.6%
Simplified66.6%
Taylor expanded in x around inf 51.1%
Taylor expanded in y around inf 47.7%
*-commutative47.7%
Simplified47.7%
if -1.1799999999999999e111 < y < -2.70000000000000018e-240 or 7.99999999999999939e-65 < y < 4.5999999999999997e75Initial program 82.7%
sub-neg82.7%
associate-+l+82.7%
fma-def82.7%
+-commutative82.7%
fma-def82.7%
sub-neg82.7%
+-commutative82.7%
*-commutative82.7%
distribute-rgt-neg-in82.7%
fma-def82.7%
*-commutative82.7%
distribute-rgt-neg-in82.7%
sub-neg82.7%
distribute-neg-in82.7%
unsub-neg82.7%
Simplified82.7%
Taylor expanded in t around inf 58.3%
*-commutative58.3%
mul-1-neg58.3%
unsub-neg58.3%
Simplified58.3%
Taylor expanded in c around 0 39.4%
mul-1-neg39.4%
distribute-rgt-neg-out39.4%
Simplified39.4%
if -2.70000000000000018e-240 < y < 7.99999999999999939e-65Initial program 88.0%
sub-neg88.0%
associate-+l+88.0%
fma-def88.0%
+-commutative88.0%
fma-def88.0%
sub-neg88.0%
+-commutative88.0%
*-commutative88.0%
distribute-rgt-neg-in88.0%
fma-def88.0%
*-commutative88.0%
distribute-rgt-neg-in88.0%
sub-neg88.0%
distribute-neg-in88.0%
unsub-neg88.0%
Simplified89.7%
Taylor expanded in a around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
Simplified52.5%
Taylor expanded in i around inf 34.6%
Taylor expanded in a around 0 37.9%
Final simplification42.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= y -5.5e+109)
t_1
(if (<= y -9.8e-241)
(* a (* t (- x)))
(if (<= y 2.3e-58)
(* i (* a b))
(if (<= y 4.2e+75) (* t (- (* x a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -5.5e+109) {
tmp = t_1;
} else if (y <= -9.8e-241) {
tmp = a * (t * -x);
} else if (y <= 2.3e-58) {
tmp = i * (a * b);
} else if (y <= 4.2e+75) {
tmp = t * -(x * a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (y <= (-5.5d+109)) then
tmp = t_1
else if (y <= (-9.8d-241)) then
tmp = a * (t * -x)
else if (y <= 2.3d-58) then
tmp = i * (a * b)
else if (y <= 4.2d+75) then
tmp = t * -(x * a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -5.5e+109) {
tmp = t_1;
} else if (y <= -9.8e-241) {
tmp = a * (t * -x);
} else if (y <= 2.3e-58) {
tmp = i * (a * b);
} else if (y <= 4.2e+75) {
tmp = t * -(x * a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -5.5e+109: tmp = t_1 elif y <= -9.8e-241: tmp = a * (t * -x) elif y <= 2.3e-58: tmp = i * (a * b) elif y <= 4.2e+75: tmp = t * -(x * a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -5.5e+109) tmp = t_1; elseif (y <= -9.8e-241) tmp = Float64(a * Float64(t * Float64(-x))); elseif (y <= 2.3e-58) tmp = Float64(i * Float64(a * b)); elseif (y <= 4.2e+75) tmp = Float64(t * Float64(-Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (y <= -5.5e+109) tmp = t_1; elseif (y <= -9.8e-241) tmp = a * (t * -x); elseif (y <= 2.3e-58) tmp = i * (a * b); elseif (y <= 4.2e+75) tmp = t * -(x * a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+109], t$95$1, If[LessEqual[y, -9.8e-241], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e-58], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e+75], N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+109}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -9.8 \cdot 10^{-241}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-58}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{+75}:\\
\;\;\;\;t \cdot \left(-x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -5.4999999999999998e109 or 4.19999999999999997e75 < y Initial program 61.2%
sub-neg61.2%
associate-+l+61.2%
fma-def65.6%
+-commutative65.6%
fma-def65.6%
sub-neg65.6%
+-commutative65.6%
*-commutative65.6%
distribute-rgt-neg-in65.6%
fma-def66.6%
*-commutative66.6%
distribute-rgt-neg-in66.6%
sub-neg66.6%
distribute-neg-in66.6%
unsub-neg66.6%
Simplified66.6%
Taylor expanded in x around inf 51.1%
Taylor expanded in y around inf 47.7%
*-commutative47.7%
Simplified47.7%
if -5.4999999999999998e109 < y < -9.7999999999999997e-241Initial program 79.1%
sub-neg79.1%
associate-+l+79.1%
fma-def79.1%
+-commutative79.1%
fma-def79.1%
sub-neg79.1%
+-commutative79.1%
*-commutative79.1%
distribute-rgt-neg-in79.1%
fma-def79.1%
*-commutative79.1%
distribute-rgt-neg-in79.1%
sub-neg79.1%
distribute-neg-in79.1%
unsub-neg79.1%
Simplified79.1%
Taylor expanded in a around inf 55.1%
+-commutative55.1%
mul-1-neg55.1%
unsub-neg55.1%
Simplified55.1%
Taylor expanded in i around 0 40.3%
mul-1-neg40.3%
*-commutative40.3%
distribute-rgt-neg-in40.3%
Simplified40.3%
if -9.7999999999999997e-241 < y < 2.2999999999999999e-58Initial program 88.0%
sub-neg88.0%
associate-+l+88.0%
fma-def88.0%
+-commutative88.0%
fma-def88.0%
sub-neg88.0%
+-commutative88.0%
*-commutative88.0%
distribute-rgt-neg-in88.0%
fma-def88.0%
*-commutative88.0%
distribute-rgt-neg-in88.0%
sub-neg88.0%
distribute-neg-in88.0%
unsub-neg88.0%
Simplified89.7%
Taylor expanded in a around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
Simplified52.5%
Taylor expanded in i around inf 34.6%
Taylor expanded in a around 0 37.9%
if 2.2999999999999999e-58 < y < 4.19999999999999997e75Initial program 90.8%
sub-neg90.8%
associate-+l+90.8%
fma-def90.8%
+-commutative90.8%
fma-def90.8%
sub-neg90.8%
+-commutative90.8%
*-commutative90.8%
distribute-rgt-neg-in90.8%
fma-def90.8%
*-commutative90.8%
distribute-rgt-neg-in90.8%
sub-neg90.8%
distribute-neg-in90.8%
unsub-neg90.8%
Simplified90.8%
Taylor expanded in t around inf 49.7%
*-commutative49.7%
mul-1-neg49.7%
unsub-neg49.7%
Simplified49.7%
Taylor expanded in c around 0 37.4%
mul-1-neg37.4%
distribute-rgt-neg-out37.4%
Simplified37.4%
Final simplification42.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* c j))))
(if (<= j -9e-50)
t_1
(if (<= j -7.8e-304)
(* y (* x z))
(if (<= j 1.45e+88) (* i (* a b)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (j <= -9e-50) {
tmp = t_1;
} else if (j <= -7.8e-304) {
tmp = y * (x * z);
} else if (j <= 1.45e+88) {
tmp = i * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (c * j)
if (j <= (-9d-50)) then
tmp = t_1
else if (j <= (-7.8d-304)) then
tmp = y * (x * z)
else if (j <= 1.45d+88) then
tmp = i * (a * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (j <= -9e-50) {
tmp = t_1;
} else if (j <= -7.8e-304) {
tmp = y * (x * z);
} else if (j <= 1.45e+88) {
tmp = i * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (c * j) tmp = 0 if j <= -9e-50: tmp = t_1 elif j <= -7.8e-304: tmp = y * (x * z) elif j <= 1.45e+88: tmp = i * (a * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(c * j)) tmp = 0.0 if (j <= -9e-50) tmp = t_1; elseif (j <= -7.8e-304) tmp = Float64(y * Float64(x * z)); elseif (j <= 1.45e+88) tmp = Float64(i * Float64(a * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (c * j); tmp = 0.0; if (j <= -9e-50) tmp = t_1; elseif (j <= -7.8e-304) tmp = y * (x * z); elseif (j <= 1.45e+88) tmp = i * (a * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9e-50], t$95$1, If[LessEqual[j, -7.8e-304], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.45e+88], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -9 \cdot 10^{-50}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -7.8 \cdot 10^{-304}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 1.45 \cdot 10^{+88}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -8.99999999999999924e-50 or 1.45e88 < j Initial program 79.6%
sub-neg79.6%
associate-+l+79.6%
fma-def81.5%
+-commutative81.5%
fma-def81.5%
sub-neg81.5%
+-commutative81.5%
*-commutative81.5%
distribute-rgt-neg-in81.5%
fma-def81.5%
*-commutative81.5%
distribute-rgt-neg-in81.5%
sub-neg81.5%
distribute-neg-in81.5%
unsub-neg81.5%
Simplified81.5%
Taylor expanded in t around inf 56.2%
*-commutative56.2%
mul-1-neg56.2%
unsub-neg56.2%
Simplified56.2%
Taylor expanded in c around inf 40.2%
if -8.99999999999999924e-50 < j < -7.79999999999999949e-304Initial program 73.9%
sub-neg73.9%
associate-+l+73.9%
fma-def73.9%
+-commutative73.9%
fma-def73.9%
sub-neg73.9%
+-commutative73.9%
*-commutative73.9%
distribute-rgt-neg-in73.9%
fma-def75.4%
*-commutative75.4%
distribute-rgt-neg-in75.4%
sub-neg75.4%
distribute-neg-in75.4%
unsub-neg75.4%
Simplified75.4%
Taylor expanded in y around inf 45.2%
+-commutative45.2%
*-commutative45.2%
+-commutative45.2%
mul-1-neg45.2%
unsub-neg45.2%
Simplified45.2%
Taylor expanded in z around inf 37.4%
if -7.79999999999999949e-304 < j < 1.45e88Initial program 74.0%
sub-neg74.0%
associate-+l+74.0%
fma-def76.3%
+-commutative76.3%
fma-def76.3%
sub-neg76.3%
+-commutative76.3%
*-commutative76.3%
distribute-rgt-neg-in76.3%
fma-def76.3%
*-commutative76.3%
distribute-rgt-neg-in76.3%
sub-neg76.3%
distribute-neg-in76.3%
unsub-neg76.3%
Simplified77.4%
Taylor expanded in a around inf 55.3%
+-commutative55.3%
mul-1-neg55.3%
unsub-neg55.3%
Simplified55.3%
Taylor expanded in i around inf 35.2%
Taylor expanded in a around 0 37.3%
Final simplification38.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -14500000.0)
(* i (* a b))
(if (<= a 2.6e-51)
(* t (* c j))
(if (<= a 6e+58) (* y (* x 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 (a <= -14500000.0) {
tmp = i * (a * b);
} else if (a <= 2.6e-51) {
tmp = t * (c * j);
} else if (a <= 6e+58) {
tmp = y * (x * 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 (a <= (-14500000.0d0)) then
tmp = i * (a * b)
else if (a <= 2.6d-51) then
tmp = t * (c * j)
else if (a <= 6d+58) then
tmp = y * (x * 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 (a <= -14500000.0) {
tmp = i * (a * b);
} else if (a <= 2.6e-51) {
tmp = t * (c * j);
} else if (a <= 6e+58) {
tmp = y * (x * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -14500000.0: tmp = i * (a * b) elif a <= 2.6e-51: tmp = t * (c * j) elif a <= 6e+58: tmp = y * (x * z) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -14500000.0) tmp = Float64(i * Float64(a * b)); elseif (a <= 2.6e-51) tmp = Float64(t * Float64(c * j)); elseif (a <= 6e+58) tmp = Float64(y * Float64(x * 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 (a <= -14500000.0) tmp = i * (a * b); elseif (a <= 2.6e-51) tmp = t * (c * j); elseif (a <= 6e+58) tmp = y * (x * z); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -14500000.0], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.6e-51], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6e+58], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -14500000:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-51}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+58}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if a < -1.45e7Initial program 75.7%
sub-neg75.7%
associate-+l+75.7%
fma-def79.8%
+-commutative79.8%
fma-def79.8%
sub-neg79.8%
+-commutative79.8%
*-commutative79.8%
distribute-rgt-neg-in79.8%
fma-def79.8%
*-commutative79.8%
distribute-rgt-neg-in79.8%
sub-neg79.8%
distribute-neg-in79.8%
unsub-neg79.8%
Simplified79.8%
Taylor expanded in a around inf 65.0%
+-commutative65.0%
mul-1-neg65.0%
unsub-neg65.0%
Simplified65.0%
Taylor expanded in i around inf 34.3%
Taylor expanded in a around 0 38.1%
if -1.45e7 < a < 2.6e-51Initial program 76.7%
sub-neg76.7%
associate-+l+76.7%
fma-def77.7%
+-commutative77.7%
fma-def77.7%
sub-neg77.7%
+-commutative77.7%
*-commutative77.7%
distribute-rgt-neg-in77.7%
fma-def78.6%
*-commutative78.6%
distribute-rgt-neg-in78.6%
sub-neg78.6%
distribute-neg-in78.6%
unsub-neg78.6%
Simplified78.6%
Taylor expanded in t around inf 39.0%
*-commutative39.0%
mul-1-neg39.0%
unsub-neg39.0%
Simplified39.0%
Taylor expanded in c around inf 32.6%
if 2.6e-51 < a < 6.0000000000000005e58Initial program 86.2%
sub-neg86.2%
associate-+l+86.2%
fma-def86.2%
+-commutative86.2%
fma-def86.2%
sub-neg86.2%
+-commutative86.2%
*-commutative86.2%
distribute-rgt-neg-in86.2%
fma-def86.2%
*-commutative86.2%
distribute-rgt-neg-in86.2%
sub-neg86.2%
distribute-neg-in86.2%
unsub-neg86.2%
Simplified86.2%
Taylor expanded in y around inf 55.5%
+-commutative55.5%
*-commutative55.5%
+-commutative55.5%
mul-1-neg55.5%
unsub-neg55.5%
Simplified55.5%
Taylor expanded in z around inf 50.9%
if 6.0000000000000005e58 < a Initial program 71.8%
cancel-sign-sub71.8%
cancel-sign-sub-inv71.8%
*-commutative71.8%
*-commutative71.8%
remove-double-neg71.8%
*-commutative71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in b around inf 53.7%
Taylor expanded in a around inf 48.1%
Final simplification39.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* c j))))
(if (<= j -5e-50)
t_1
(if (<= j -6e-298) (* x (* y z)) (if (<= j 1.3e+85) (* i (* a b)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (j <= -5e-50) {
tmp = t_1;
} else if (j <= -6e-298) {
tmp = x * (y * z);
} else if (j <= 1.3e+85) {
tmp = i * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (c * j)
if (j <= (-5d-50)) then
tmp = t_1
else if (j <= (-6d-298)) then
tmp = x * (y * z)
else if (j <= 1.3d+85) then
tmp = i * (a * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (j <= -5e-50) {
tmp = t_1;
} else if (j <= -6e-298) {
tmp = x * (y * z);
} else if (j <= 1.3e+85) {
tmp = i * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (c * j) tmp = 0 if j <= -5e-50: tmp = t_1 elif j <= -6e-298: tmp = x * (y * z) elif j <= 1.3e+85: tmp = i * (a * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(c * j)) tmp = 0.0 if (j <= -5e-50) tmp = t_1; elseif (j <= -6e-298) tmp = Float64(x * Float64(y * z)); elseif (j <= 1.3e+85) tmp = Float64(i * Float64(a * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (c * j); tmp = 0.0; if (j <= -5e-50) tmp = t_1; elseif (j <= -6e-298) tmp = x * (y * z); elseif (j <= 1.3e+85) tmp = i * (a * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5e-50], t$95$1, If[LessEqual[j, -6e-298], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.3e+85], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -5 \cdot 10^{-50}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -6 \cdot 10^{-298}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{+85}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -4.99999999999999968e-50 or 1.30000000000000005e85 < j Initial program 79.6%
sub-neg79.6%
associate-+l+79.6%
fma-def81.5%
+-commutative81.5%
fma-def81.5%
sub-neg81.5%
+-commutative81.5%
*-commutative81.5%
distribute-rgt-neg-in81.5%
fma-def81.5%
*-commutative81.5%
distribute-rgt-neg-in81.5%
sub-neg81.5%
distribute-neg-in81.5%
unsub-neg81.5%
Simplified81.5%
Taylor expanded in t around inf 56.2%
*-commutative56.2%
mul-1-neg56.2%
unsub-neg56.2%
Simplified56.2%
Taylor expanded in c around inf 40.2%
if -4.99999999999999968e-50 < j < -5.9999999999999999e-298Initial program 73.9%
sub-neg73.9%
associate-+l+73.9%
fma-def73.9%
+-commutative73.9%
fma-def73.9%
sub-neg73.9%
+-commutative73.9%
*-commutative73.9%
distribute-rgt-neg-in73.9%
fma-def75.4%
*-commutative75.4%
distribute-rgt-neg-in75.4%
sub-neg75.4%
distribute-neg-in75.4%
unsub-neg75.4%
Simplified75.4%
Taylor expanded in x around inf 66.5%
Taylor expanded in y around inf 41.9%
*-commutative41.9%
Simplified41.9%
if -5.9999999999999999e-298 < j < 1.30000000000000005e85Initial program 74.0%
sub-neg74.0%
associate-+l+74.0%
fma-def76.3%
+-commutative76.3%
fma-def76.3%
sub-neg76.3%
+-commutative76.3%
*-commutative76.3%
distribute-rgt-neg-in76.3%
fma-def76.3%
*-commutative76.3%
distribute-rgt-neg-in76.3%
sub-neg76.3%
distribute-neg-in76.3%
unsub-neg76.3%
Simplified77.4%
Taylor expanded in a around inf 55.3%
+-commutative55.3%
mul-1-neg55.3%
unsub-neg55.3%
Simplified55.3%
Taylor expanded in i around inf 35.2%
Taylor expanded in a around 0 37.3%
Final simplification39.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -3.2e-28) (not (<= j 6.5e+81))) (* t (* c j)) (* i (* a b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -3.2e-28) || !(j <= 6.5e+81)) {
tmp = t * (c * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-3.2d-28)) .or. (.not. (j <= 6.5d+81))) then
tmp = t * (c * j)
else
tmp = i * (a * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -3.2e-28) || !(j <= 6.5e+81)) {
tmp = t * (c * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -3.2e-28) or not (j <= 6.5e+81): tmp = t * (c * j) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -3.2e-28) || !(j <= 6.5e+81)) tmp = Float64(t * Float64(c * j)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -3.2e-28) || ~((j <= 6.5e+81))) tmp = t * (c * j); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -3.2e-28], N[Not[LessEqual[j, 6.5e+81]], $MachinePrecision]], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -3.2 \cdot 10^{-28} \lor \neg \left(j \leq 6.5 \cdot 10^{+81}\right):\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if j < -3.19999999999999982e-28 or 6.4999999999999996e81 < j Initial program 79.8%
sub-neg79.8%
associate-+l+79.8%
fma-def81.8%
+-commutative81.8%
fma-def81.8%
sub-neg81.8%
+-commutative81.8%
*-commutative81.8%
distribute-rgt-neg-in81.8%
fma-def81.8%
*-commutative81.8%
distribute-rgt-neg-in81.8%
sub-neg81.8%
distribute-neg-in81.8%
unsub-neg81.8%
Simplified81.8%
Taylor expanded in t around inf 56.4%
*-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
Simplified56.4%
Taylor expanded in c around inf 41.8%
if -3.19999999999999982e-28 < j < 6.4999999999999996e81Initial program 74.0%
sub-neg74.0%
associate-+l+74.0%
fma-def75.2%
+-commutative75.2%
fma-def75.2%
sub-neg75.2%
+-commutative75.2%
*-commutative75.2%
distribute-rgt-neg-in75.2%
fma-def75.9%
*-commutative75.9%
distribute-rgt-neg-in75.9%
sub-neg75.9%
distribute-neg-in75.9%
unsub-neg75.9%
Simplified76.5%
Taylor expanded in a around inf 51.9%
+-commutative51.9%
mul-1-neg51.9%
unsub-neg51.9%
Simplified51.9%
Taylor expanded in i around inf 30.4%
Taylor expanded in a around 0 32.9%
Final simplification36.3%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 76.2%
sub-neg76.2%
associate-+l+76.2%
fma-def77.8%
+-commutative77.8%
fma-def77.8%
sub-neg77.8%
+-commutative77.8%
*-commutative77.8%
distribute-rgt-neg-in77.8%
fma-def78.2%
*-commutative78.2%
distribute-rgt-neg-in78.2%
sub-neg78.2%
distribute-neg-in78.2%
unsub-neg78.2%
Simplified78.6%
Taylor expanded in a around inf 44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
Simplified44.8%
Taylor expanded in i around inf 25.2%
Final simplification25.2%
(FPCore (x y z t a b c i j) :precision binary64 (* i (* a b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return i * (a * b);
}
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 = i * (a * b)
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 i * (a * b);
}
def code(x, y, z, t, a, b, c, i, j): return i * (a * b)
function code(x, y, z, t, a, b, c, i, j) return Float64(i * Float64(a * b)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = i * (a * b); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(a \cdot b\right)
\end{array}
Initial program 76.2%
sub-neg76.2%
associate-+l+76.2%
fma-def77.8%
+-commutative77.8%
fma-def77.8%
sub-neg77.8%
+-commutative77.8%
*-commutative77.8%
distribute-rgt-neg-in77.8%
fma-def78.2%
*-commutative78.2%
distribute-rgt-neg-in78.2%
sub-neg78.2%
distribute-neg-in78.2%
unsub-neg78.2%
Simplified78.6%
Taylor expanded in a around inf 44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
Simplified44.8%
Taylor expanded in i around inf 25.2%
Taylor expanded in a around 0 26.7%
Final simplification26.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023224
(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)))))