
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.3%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
+-commutative0.0%
associate-+r-0.0%
fma-def14.0%
*-commutative14.0%
*-commutative14.0%
fma-neg18.6%
distribute-rgt-neg-in18.6%
Simplified18.6%
Taylor expanded in z around inf 63.7%
Final simplification87.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (- (* i (* t b)) (* y (- (* i j) (* x z)))))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= c -1.9e+49)
t_3
(if (<= c -1.9e-94)
t_2
(if (<= c -1.2e-218)
t_1
(if (<= c -9e-304)
t_2
(if (<= c 7e-119)
(- (* a (- (* c j) (* x t))) (* y (* i j)))
(if (<= c 9e+33)
t_2
(if (<= c 1.4e+94) t_1 (if (<= c 1.1e+105) t_2 t_3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (i * (t * b)) - (y * ((i * j) - (x * z)));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.9e+49) {
tmp = t_3;
} else if (c <= -1.9e-94) {
tmp = t_2;
} else if (c <= -1.2e-218) {
tmp = t_1;
} else if (c <= -9e-304) {
tmp = t_2;
} else if (c <= 7e-119) {
tmp = (a * ((c * j) - (x * t))) - (y * (i * j));
} else if (c <= 9e+33) {
tmp = t_2;
} else if (c <= 1.4e+94) {
tmp = t_1;
} else if (c <= 1.1e+105) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = (i * (t * b)) - (y * ((i * j) - (x * z)))
t_3 = c * ((a * j) - (z * b))
if (c <= (-1.9d+49)) then
tmp = t_3
else if (c <= (-1.9d-94)) then
tmp = t_2
else if (c <= (-1.2d-218)) then
tmp = t_1
else if (c <= (-9d-304)) then
tmp = t_2
else if (c <= 7d-119) then
tmp = (a * ((c * j) - (x * t))) - (y * (i * j))
else if (c <= 9d+33) then
tmp = t_2
else if (c <= 1.4d+94) then
tmp = t_1
else if (c <= 1.1d+105) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (i * (t * b)) - (y * ((i * j) - (x * z)));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.9e+49) {
tmp = t_3;
} else if (c <= -1.9e-94) {
tmp = t_2;
} else if (c <= -1.2e-218) {
tmp = t_1;
} else if (c <= -9e-304) {
tmp = t_2;
} else if (c <= 7e-119) {
tmp = (a * ((c * j) - (x * t))) - (y * (i * j));
} else if (c <= 9e+33) {
tmp = t_2;
} else if (c <= 1.4e+94) {
tmp = t_1;
} else if (c <= 1.1e+105) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (i * (t * b)) - (y * ((i * j) - (x * z))) t_3 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.9e+49: tmp = t_3 elif c <= -1.9e-94: tmp = t_2 elif c <= -1.2e-218: tmp = t_1 elif c <= -9e-304: tmp = t_2 elif c <= 7e-119: tmp = (a * ((c * j) - (x * t))) - (y * (i * j)) elif c <= 9e+33: tmp = t_2 elif c <= 1.4e+94: tmp = t_1 elif c <= 1.1e+105: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(i * Float64(t * b)) - Float64(y * Float64(Float64(i * j) - Float64(x * z)))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.9e+49) tmp = t_3; elseif (c <= -1.9e-94) tmp = t_2; elseif (c <= -1.2e-218) tmp = t_1; elseif (c <= -9e-304) tmp = t_2; elseif (c <= 7e-119) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) - Float64(y * Float64(i * j))); elseif (c <= 9e+33) tmp = t_2; elseif (c <= 1.4e+94) tmp = t_1; elseif (c <= 1.1e+105) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = (i * (t * b)) - (y * ((i * j) - (x * z))); t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.9e+49) tmp = t_3; elseif (c <= -1.9e-94) tmp = t_2; elseif (c <= -1.2e-218) tmp = t_1; elseif (c <= -9e-304) tmp = t_2; elseif (c <= 7e-119) tmp = (a * ((c * j) - (x * t))) - (y * (i * j)); elseif (c <= 9e+33) tmp = t_2; elseif (c <= 1.4e+94) tmp = t_1; elseif (c <= 1.1e+105) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.9e+49], t$95$3, If[LessEqual[c, -1.9e-94], t$95$2, If[LessEqual[c, -1.2e-218], t$95$1, If[LessEqual[c, -9e-304], t$95$2, If[LessEqual[c, 7e-119], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9e+33], t$95$2, If[LessEqual[c, 1.4e+94], t$95$1, If[LessEqual[c, 1.1e+105], t$95$2, t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := i \cdot \left(t \cdot b\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.9 \cdot 10^{+49}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -1.9 \cdot 10^{-94}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.2 \cdot 10^{-218}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -9 \cdot 10^{-304}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 7 \cdot 10^{-119}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;c \leq 9 \cdot 10^{+33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 1.4 \cdot 10^{+94}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{+105}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -1.8999999999999999e49 or 1.10000000000000003e105 < c Initial program 68.4%
+-commutative68.4%
associate-+r-68.4%
fma-def70.3%
*-commutative70.3%
*-commutative70.3%
fma-neg72.1%
distribute-rgt-neg-in72.1%
Simplified72.1%
Taylor expanded in c around inf 78.3%
if -1.8999999999999999e49 < c < -1.9e-94 or -1.2e-218 < c < -8.9999999999999995e-304 or 7e-119 < c < 9.0000000000000001e33 or 1.39999999999999999e94 < c < 1.10000000000000003e105Initial program 88.0%
+-commutative88.0%
associate-+r-88.0%
fma-def91.4%
*-commutative91.4%
*-commutative91.4%
fma-neg91.4%
distribute-rgt-neg-in91.4%
Simplified91.4%
Taylor expanded in a around 0 77.2%
*-commutative77.2%
*-commutative77.2%
associate-*r*77.2%
neg-mul-177.2%
*-commutative77.2%
fma-udef77.2%
*-commutative77.2%
*-rgt-identity77.2%
cancel-sign-sub-inv77.2%
Simplified80.6%
Taylor expanded in i around inf 74.3%
if -1.9e-94 < c < -1.2e-218 or 9.0000000000000001e33 < c < 1.39999999999999999e94Initial program 64.2%
+-commutative64.2%
associate-+r-64.2%
fma-def67.8%
*-commutative67.8%
*-commutative67.8%
fma-neg67.8%
distribute-rgt-neg-in67.8%
Simplified67.8%
Taylor expanded in x around inf 73.2%
*-commutative73.2%
*-commutative73.2%
Simplified73.2%
if -8.9999999999999995e-304 < c < 7e-119Initial program 84.1%
+-commutative84.1%
associate-+r-84.1%
fma-def84.1%
*-commutative84.1%
*-commutative84.1%
fma-neg84.1%
distribute-rgt-neg-in84.1%
Simplified84.1%
Taylor expanded in b around 0 75.0%
Taylor expanded in z around 0 69.3%
*-commutative69.3%
*-commutative69.3%
sub-neg69.3%
distribute-rgt-in69.3%
associate-*r*63.5%
distribute-lft-neg-in63.5%
*-commutative63.5%
associate-*r*51.7%
mul-1-neg51.7%
*-commutative51.7%
associate-*r*57.4%
associate-*r*69.3%
*-commutative69.3%
associate-*r*66.4%
associate-+l+66.4%
Simplified66.4%
Final simplification74.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (- (* i (* t b)) (* y (- (* i j) (* x z)))))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= c -1.2e+49)
t_3
(if (<= c -1.45e-94)
t_2
(if (<= c -2e-218)
t_1
(if (<= c 8e+39)
t_2
(if (<= c 2.7e+93) t_1 (if (<= c 1.6e+105) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (i * (t * b)) - (y * ((i * j) - (x * z)));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.2e+49) {
tmp = t_3;
} else if (c <= -1.45e-94) {
tmp = t_2;
} else if (c <= -2e-218) {
tmp = t_1;
} else if (c <= 8e+39) {
tmp = t_2;
} else if (c <= 2.7e+93) {
tmp = t_1;
} else if (c <= 1.6e+105) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = (i * (t * b)) - (y * ((i * j) - (x * z)))
t_3 = c * ((a * j) - (z * b))
if (c <= (-1.2d+49)) then
tmp = t_3
else if (c <= (-1.45d-94)) then
tmp = t_2
else if (c <= (-2d-218)) then
tmp = t_1
else if (c <= 8d+39) then
tmp = t_2
else if (c <= 2.7d+93) then
tmp = t_1
else if (c <= 1.6d+105) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (i * (t * b)) - (y * ((i * j) - (x * z)));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.2e+49) {
tmp = t_3;
} else if (c <= -1.45e-94) {
tmp = t_2;
} else if (c <= -2e-218) {
tmp = t_1;
} else if (c <= 8e+39) {
tmp = t_2;
} else if (c <= 2.7e+93) {
tmp = t_1;
} else if (c <= 1.6e+105) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (i * (t * b)) - (y * ((i * j) - (x * z))) t_3 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.2e+49: tmp = t_3 elif c <= -1.45e-94: tmp = t_2 elif c <= -2e-218: tmp = t_1 elif c <= 8e+39: tmp = t_2 elif c <= 2.7e+93: tmp = t_1 elif c <= 1.6e+105: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(i * Float64(t * b)) - Float64(y * Float64(Float64(i * j) - Float64(x * z)))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.2e+49) tmp = t_3; elseif (c <= -1.45e-94) tmp = t_2; elseif (c <= -2e-218) tmp = t_1; elseif (c <= 8e+39) tmp = t_2; elseif (c <= 2.7e+93) tmp = t_1; elseif (c <= 1.6e+105) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = (i * (t * b)) - (y * ((i * j) - (x * z))); t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.2e+49) tmp = t_3; elseif (c <= -1.45e-94) tmp = t_2; elseif (c <= -2e-218) tmp = t_1; elseif (c <= 8e+39) tmp = t_2; elseif (c <= 2.7e+93) tmp = t_1; elseif (c <= 1.6e+105) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.2e+49], t$95$3, If[LessEqual[c, -1.45e-94], t$95$2, If[LessEqual[c, -2e-218], t$95$1, If[LessEqual[c, 8e+39], t$95$2, If[LessEqual[c, 2.7e+93], t$95$1, If[LessEqual[c, 1.6e+105], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := i \cdot \left(t \cdot b\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.2 \cdot 10^{+49}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -1.45 \cdot 10^{-94}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -2 \cdot 10^{-218}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 8 \cdot 10^{+39}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{+93}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{+105}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -1.2e49 or 1.6e105 < c Initial program 68.4%
+-commutative68.4%
associate-+r-68.4%
fma-def70.3%
*-commutative70.3%
*-commutative70.3%
fma-neg72.1%
distribute-rgt-neg-in72.1%
Simplified72.1%
Taylor expanded in c around inf 78.3%
if -1.2e49 < c < -1.44999999999999998e-94 or -2.0000000000000001e-218 < c < 7.99999999999999952e39 or 2.6999999999999999e93 < c < 1.6e105Initial program 87.0%
+-commutative87.0%
associate-+r-87.0%
fma-def89.5%
*-commutative89.5%
*-commutative89.5%
fma-neg89.5%
distribute-rgt-neg-in89.5%
Simplified89.5%
Taylor expanded in a around 0 71.9%
*-commutative71.9%
*-commutative71.9%
associate-*r*71.9%
neg-mul-171.9%
*-commutative71.9%
fma-udef71.9%
*-commutative71.9%
*-rgt-identity71.9%
cancel-sign-sub-inv71.9%
Simplified74.3%
Taylor expanded in i around inf 68.2%
if -1.44999999999999998e-94 < c < -2.0000000000000001e-218 or 7.99999999999999952e39 < c < 2.6999999999999999e93Initial program 64.2%
+-commutative64.2%
associate-+r-64.2%
fma-def67.8%
*-commutative67.8%
*-commutative67.8%
fma-neg67.8%
distribute-rgt-neg-in67.8%
Simplified67.8%
Taylor expanded in x around inf 73.2%
*-commutative73.2%
*-commutative73.2%
Simplified73.2%
Final simplification72.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b))))
(t_2 (- (* i (* t b)) (* y (- (* i j) (* x z))))))
(if (<= c -6.4e+47)
t_1
(if (<= c -3.4e+28)
(* t (- (* b i) (* x a)))
(if (<= c -3.4e-218)
(- (* y (- (* x z) (* i j))) (* z (* b c)))
(if (<= c 1.4e+39)
t_2
(if (<= c 1.75e+94)
(* x (- (* y z) (* t a)))
(if (<= c 1.1e+105) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = (i * (t * b)) - (y * ((i * j) - (x * z)));
double tmp;
if (c <= -6.4e+47) {
tmp = t_1;
} else if (c <= -3.4e+28) {
tmp = t * ((b * i) - (x * a));
} else if (c <= -3.4e-218) {
tmp = (y * ((x * z) - (i * j))) - (z * (b * c));
} else if (c <= 1.4e+39) {
tmp = t_2;
} else if (c <= 1.75e+94) {
tmp = x * ((y * z) - (t * a));
} else if (c <= 1.1e+105) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
t_2 = (i * (t * b)) - (y * ((i * j) - (x * z)))
if (c <= (-6.4d+47)) then
tmp = t_1
else if (c <= (-3.4d+28)) then
tmp = t * ((b * i) - (x * a))
else if (c <= (-3.4d-218)) then
tmp = (y * ((x * z) - (i * j))) - (z * (b * c))
else if (c <= 1.4d+39) then
tmp = t_2
else if (c <= 1.75d+94) then
tmp = x * ((y * z) - (t * a))
else if (c <= 1.1d+105) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = (i * (t * b)) - (y * ((i * j) - (x * z)));
double tmp;
if (c <= -6.4e+47) {
tmp = t_1;
} else if (c <= -3.4e+28) {
tmp = t * ((b * i) - (x * a));
} else if (c <= -3.4e-218) {
tmp = (y * ((x * z) - (i * j))) - (z * (b * c));
} else if (c <= 1.4e+39) {
tmp = t_2;
} else if (c <= 1.75e+94) {
tmp = x * ((y * z) - (t * a));
} else if (c <= 1.1e+105) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = (i * (t * b)) - (y * ((i * j) - (x * z))) tmp = 0 if c <= -6.4e+47: tmp = t_1 elif c <= -3.4e+28: tmp = t * ((b * i) - (x * a)) elif c <= -3.4e-218: tmp = (y * ((x * z) - (i * j))) - (z * (b * c)) elif c <= 1.4e+39: tmp = t_2 elif c <= 1.75e+94: tmp = x * ((y * z) - (t * a)) elif c <= 1.1e+105: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(Float64(i * Float64(t * b)) - Float64(y * Float64(Float64(i * j) - Float64(x * z)))) tmp = 0.0 if (c <= -6.4e+47) tmp = t_1; elseif (c <= -3.4e+28) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= -3.4e-218) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(z * Float64(b * c))); elseif (c <= 1.4e+39) tmp = t_2; elseif (c <= 1.75e+94) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (c <= 1.1e+105) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); t_2 = (i * (t * b)) - (y * ((i * j) - (x * z))); tmp = 0.0; if (c <= -6.4e+47) tmp = t_1; elseif (c <= -3.4e+28) tmp = t * ((b * i) - (x * a)); elseif (c <= -3.4e-218) tmp = (y * ((x * z) - (i * j))) - (z * (b * c)); elseif (c <= 1.4e+39) tmp = t_2; elseif (c <= 1.75e+94) tmp = x * ((y * z) - (t * a)); elseif (c <= 1.1e+105) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6.4e+47], t$95$1, If[LessEqual[c, -3.4e+28], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.4e-218], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.4e+39], t$95$2, If[LessEqual[c, 1.75e+94], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.1e+105], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := i \cdot \left(t \cdot b\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\
\mathbf{if}\;c \leq -6.4 \cdot 10^{+47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -3.4 \cdot 10^{+28}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq -3.4 \cdot 10^{-218}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;c \leq 1.4 \cdot 10^{+39}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 1.75 \cdot 10^{+94}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{+105}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -6.4e47 or 1.10000000000000003e105 < c Initial program 68.4%
+-commutative68.4%
associate-+r-68.4%
fma-def70.3%
*-commutative70.3%
*-commutative70.3%
fma-neg72.1%
distribute-rgt-neg-in72.1%
Simplified72.1%
Taylor expanded in c around inf 78.3%
if -6.4e47 < c < -3.4e28Initial program 85.2%
+-commutative85.2%
associate-+r-85.2%
fma-def85.2%
*-commutative85.2%
*-commutative85.2%
fma-neg85.2%
distribute-rgt-neg-in85.2%
Simplified85.2%
Taylor expanded in t around inf 98.8%
distribute-lft-out--98.8%
associate-*r*98.8%
mul-1-neg98.8%
*-commutative98.8%
*-commutative98.8%
Simplified98.8%
if -3.4e28 < c < -3.39999999999999986e-218Initial program 81.3%
+-commutative81.3%
associate-+r-81.3%
fma-def83.6%
*-commutative83.6%
*-commutative83.6%
fma-neg83.6%
distribute-rgt-neg-in83.6%
Simplified83.6%
Taylor expanded in a around 0 64.1%
*-commutative64.1%
*-commutative64.1%
associate-*r*64.1%
neg-mul-164.1%
*-commutative64.1%
fma-udef64.1%
*-commutative64.1%
*-rgt-identity64.1%
cancel-sign-sub-inv64.1%
Simplified64.1%
Taylor expanded in t around 0 59.6%
+-commutative59.6%
mul-1-neg59.6%
unsub-neg59.6%
*-commutative59.6%
*-commutative59.6%
associate-*l*64.1%
*-commutative64.1%
Simplified64.1%
if -3.39999999999999986e-218 < c < 1.40000000000000001e39 or 1.7499999999999999e94 < c < 1.10000000000000003e105Initial program 86.9%
+-commutative86.9%
associate-+r-86.9%
fma-def90.2%
*-commutative90.2%
*-commutative90.2%
fma-neg90.2%
distribute-rgt-neg-in90.2%
Simplified90.2%
Taylor expanded in a around 0 69.8%
*-commutative69.8%
*-commutative69.8%
associate-*r*69.8%
neg-mul-169.8%
*-commutative69.8%
fma-udef69.8%
*-commutative69.8%
*-rgt-identity69.8%
cancel-sign-sub-inv69.8%
Simplified73.1%
Taylor expanded in i around inf 71.0%
if 1.40000000000000001e39 < c < 1.7499999999999999e94Initial program 49.8%
+-commutative49.8%
associate-+r-49.8%
fma-def49.8%
*-commutative49.8%
*-commutative49.8%
fma-neg49.8%
distribute-rgt-neg-in49.8%
Simplified49.8%
Taylor expanded in x around inf 74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
Final simplification73.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* y z) (* t a))) (* c (* z b))))
(t_2 (- (* i (* t b)) (* y (- (* i j) (* x z)))))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= c -2.5e+50)
t_3
(if (<= c -3.1e-52)
t_2
(if (<= c -3.3e-219)
t_1
(if (<= c 1.06e+38)
t_2
(if (<= c 2.8e+95) t_1 (if (<= c 1.3e+105) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) - (c * (z * b));
double t_2 = (i * (t * b)) - (y * ((i * j) - (x * z)));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.5e+50) {
tmp = t_3;
} else if (c <= -3.1e-52) {
tmp = t_2;
} else if (c <= -3.3e-219) {
tmp = t_1;
} else if (c <= 1.06e+38) {
tmp = t_2;
} else if (c <= 2.8e+95) {
tmp = t_1;
} else if (c <= 1.3e+105) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) - (c * (z * b))
t_2 = (i * (t * b)) - (y * ((i * j) - (x * z)))
t_3 = c * ((a * j) - (z * b))
if (c <= (-2.5d+50)) then
tmp = t_3
else if (c <= (-3.1d-52)) then
tmp = t_2
else if (c <= (-3.3d-219)) then
tmp = t_1
else if (c <= 1.06d+38) then
tmp = t_2
else if (c <= 2.8d+95) then
tmp = t_1
else if (c <= 1.3d+105) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) - (c * (z * b));
double t_2 = (i * (t * b)) - (y * ((i * j) - (x * z)));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.5e+50) {
tmp = t_3;
} else if (c <= -3.1e-52) {
tmp = t_2;
} else if (c <= -3.3e-219) {
tmp = t_1;
} else if (c <= 1.06e+38) {
tmp = t_2;
} else if (c <= 2.8e+95) {
tmp = t_1;
} else if (c <= 1.3e+105) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) - (c * (z * b)) t_2 = (i * (t * b)) - (y * ((i * j) - (x * z))) t_3 = c * ((a * j) - (z * b)) tmp = 0 if c <= -2.5e+50: tmp = t_3 elif c <= -3.1e-52: tmp = t_2 elif c <= -3.3e-219: tmp = t_1 elif c <= 1.06e+38: tmp = t_2 elif c <= 2.8e+95: tmp = t_1 elif c <= 1.3e+105: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(c * Float64(z * b))) t_2 = Float64(Float64(i * Float64(t * b)) - Float64(y * Float64(Float64(i * j) - Float64(x * z)))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.5e+50) tmp = t_3; elseif (c <= -3.1e-52) tmp = t_2; elseif (c <= -3.3e-219) tmp = t_1; elseif (c <= 1.06e+38) tmp = t_2; elseif (c <= 2.8e+95) tmp = t_1; elseif (c <= 1.3e+105) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) - (c * (z * b)); t_2 = (i * (t * b)) - (y * ((i * j) - (x * z))); t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -2.5e+50) tmp = t_3; elseif (c <= -3.1e-52) tmp = t_2; elseif (c <= -3.3e-219) tmp = t_1; elseif (c <= 1.06e+38) tmp = t_2; elseif (c <= 2.8e+95) tmp = t_1; elseif (c <= 1.3e+105) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.5e+50], t$95$3, If[LessEqual[c, -3.1e-52], t$95$2, If[LessEqual[c, -3.3e-219], t$95$1, If[LessEqual[c, 1.06e+38], t$95$2, If[LessEqual[c, 2.8e+95], t$95$1, If[LessEqual[c, 1.3e+105], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) - c \cdot \left(z \cdot b\right)\\
t_2 := i \cdot \left(t \cdot b\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.5 \cdot 10^{+50}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -3.1 \cdot 10^{-52}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -3.3 \cdot 10^{-219}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.06 \cdot 10^{+38}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 2.8 \cdot 10^{+95}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -2.5e50 or 1.3000000000000001e105 < c Initial program 68.4%
+-commutative68.4%
associate-+r-68.4%
fma-def70.3%
*-commutative70.3%
*-commutative70.3%
fma-neg72.1%
distribute-rgt-neg-in72.1%
Simplified72.1%
Taylor expanded in c around inf 78.3%
if -2.5e50 < c < -3.0999999999999999e-52 or -3.3000000000000002e-219 < c < 1.06e38 or 2.7999999999999998e95 < c < 1.3000000000000001e105Initial program 87.1%
+-commutative87.1%
associate-+r-87.1%
fma-def89.7%
*-commutative89.7%
*-commutative89.7%
fma-neg89.7%
distribute-rgt-neg-in89.7%
Simplified89.7%
Taylor expanded in a around 0 71.9%
*-commutative71.9%
*-commutative71.9%
associate-*r*71.9%
neg-mul-171.9%
*-commutative71.9%
fma-udef71.9%
*-commutative71.9%
*-rgt-identity71.9%
cancel-sign-sub-inv71.9%
Simplified74.5%
Taylor expanded in i around inf 70.5%
if -3.0999999999999999e-52 < c < -3.3000000000000002e-219 or 1.06e38 < c < 2.7999999999999998e95Initial program 68.4%
+-commutative68.4%
associate-+r-68.4%
fma-def71.3%
*-commutative71.3%
*-commutative71.3%
fma-neg71.3%
distribute-rgt-neg-in71.3%
Simplified71.3%
Taylor expanded in i around 0 64.6%
Taylor expanded in j around 0 73.1%
Final simplification74.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -9.2e+173)
(- t_1 (* y (* i j)))
(if (<= a -5.6e+26)
(* c (- (* a j) (* z b)))
(if (<= a 6500000.0)
(+ (* y (- (* x z) (* i j))) (* b (- (* t i) (* z c))))
(if (<= a 3.8e+172)
(+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -9.2e+173) {
tmp = t_1 - (y * (i * j));
} else if (a <= -5.6e+26) {
tmp = c * ((a * j) - (z * b));
} else if (a <= 6500000.0) {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)));
} else if (a <= 3.8e+172) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-9.2d+173)) then
tmp = t_1 - (y * (i * j))
else if (a <= (-5.6d+26)) then
tmp = c * ((a * j) - (z * b))
else if (a <= 6500000.0d0) then
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)))
else if (a <= 3.8d+172) then
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -9.2e+173) {
tmp = t_1 - (y * (i * j));
} else if (a <= -5.6e+26) {
tmp = c * ((a * j) - (z * b));
} else if (a <= 6500000.0) {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)));
} else if (a <= 3.8e+172) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -9.2e+173: tmp = t_1 - (y * (i * j)) elif a <= -5.6e+26: tmp = c * ((a * j) - (z * b)) elif a <= 6500000.0: tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))) elif a <= 3.8e+172: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -9.2e+173) tmp = Float64(t_1 - Float64(y * Float64(i * j))); elseif (a <= -5.6e+26) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (a <= 6500000.0) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (a <= 3.8e+172) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -9.2e+173) tmp = t_1 - (y * (i * j)); elseif (a <= -5.6e+26) tmp = c * ((a * j) - (z * b)); elseif (a <= 6500000.0) tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))); elseif (a <= 3.8e+172) tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.2e+173], N[(t$95$1 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.6e+26], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6500000.0], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.8e+172], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{+173}:\\
\;\;\;\;t_1 - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;a \leq -5.6 \cdot 10^{+26}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 6500000:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{+172}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -9.1999999999999998e173Initial program 69.3%
+-commutative69.3%
associate-+r-69.3%
fma-def69.3%
*-commutative69.3%
*-commutative69.3%
fma-neg69.3%
distribute-rgt-neg-in69.3%
Simplified69.3%
Taylor expanded in b around 0 66.2%
Taylor expanded in z around 0 69.6%
*-commutative69.6%
*-commutative69.6%
sub-neg69.6%
distribute-rgt-in69.6%
associate-*r*63.0%
distribute-lft-neg-in63.0%
*-commutative63.0%
associate-*r*63.0%
mul-1-neg63.0%
*-commutative63.0%
associate-*r*76.1%
associate-*r*76.1%
*-commutative76.1%
associate-*r*76.1%
associate-+l+76.1%
Simplified76.1%
if -9.1999999999999998e173 < a < -5.59999999999999999e26Initial program 61.3%
+-commutative61.3%
associate-+r-61.3%
fma-def71.0%
*-commutative71.0%
*-commutative71.0%
fma-neg71.0%
distribute-rgt-neg-in71.0%
Simplified71.0%
Taylor expanded in c around inf 81.1%
if -5.59999999999999999e26 < a < 6.5e6Initial program 84.1%
+-commutative84.1%
associate-+r-84.1%
fma-def85.4%
*-commutative85.4%
*-commutative85.4%
fma-neg86.1%
distribute-rgt-neg-in86.1%
Simplified86.1%
Taylor expanded in a around 0 75.3%
*-commutative75.3%
*-commutative75.3%
associate-*r*75.3%
neg-mul-175.3%
*-commutative75.3%
fma-udef76.0%
*-commutative76.0%
*-rgt-identity76.0%
cancel-sign-sub-inv76.0%
Simplified76.0%
if 6.5e6 < a < 3.7999999999999997e172Initial program 73.6%
+-commutative73.6%
associate-+r-73.6%
fma-def73.6%
*-commutative73.6%
*-commutative73.6%
fma-neg77.5%
distribute-rgt-neg-in77.5%
Simplified77.5%
Taylor expanded in b around 0 74.2%
if 3.7999999999999997e172 < a Initial program 67.4%
+-commutative67.4%
associate-+r-67.4%
fma-def71.1%
*-commutative71.1%
*-commutative71.1%
fma-neg71.1%
distribute-rgt-neg-in71.1%
Simplified71.1%
Taylor expanded in a around inf 92.3%
mul-1-neg92.3%
unsub-neg92.3%
Simplified92.3%
Final simplification78.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -9.2e+173)
(- t_1 (* y (* i j)))
(if (<= a -2.55e+26)
(* c (- (* a j) (* z b)))
(if (<= a 1.5e+51)
(+ (* y (- (* x z) (* i j))) (* b (- (* t 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -9.2e+173) {
tmp = t_1 - (y * (i * j));
} else if (a <= -2.55e+26) {
tmp = c * ((a * j) - (z * b));
} else if (a <= 1.5e+51) {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * 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 = a * ((c * j) - (x * t))
if (a <= (-9.2d+173)) then
tmp = t_1 - (y * (i * j))
else if (a <= (-2.55d+26)) then
tmp = c * ((a * j) - (z * b))
else if (a <= 1.5d+51) then
tmp = (y * ((x * z) - (i * j))) + (b * ((t * 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -9.2e+173) {
tmp = t_1 - (y * (i * j));
} else if (a <= -2.55e+26) {
tmp = c * ((a * j) - (z * b));
} else if (a <= 1.5e+51) {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -9.2e+173: tmp = t_1 - (y * (i * j)) elif a <= -2.55e+26: tmp = c * ((a * j) - (z * b)) elif a <= 1.5e+51: tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -9.2e+173) tmp = Float64(t_1 - Float64(y * Float64(i * j))); elseif (a <= -2.55e+26) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (a <= 1.5e+51) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(Float64(t * 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 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -9.2e+173) tmp = t_1 - (y * (i * j)); elseif (a <= -2.55e+26) tmp = c * ((a * j) - (z * b)); elseif (a <= 1.5e+51) tmp = (y * ((x * z) - (i * j))) + (b * ((t * 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.2e+173], N[(t$95$1 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.55e+26], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.5e+51], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{+173}:\\
\;\;\;\;t_1 - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;a \leq -2.55 \cdot 10^{+26}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{+51}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -9.1999999999999998e173Initial program 69.3%
+-commutative69.3%
associate-+r-69.3%
fma-def69.3%
*-commutative69.3%
*-commutative69.3%
fma-neg69.3%
distribute-rgt-neg-in69.3%
Simplified69.3%
Taylor expanded in b around 0 66.2%
Taylor expanded in z around 0 69.6%
*-commutative69.6%
*-commutative69.6%
sub-neg69.6%
distribute-rgt-in69.6%
associate-*r*63.0%
distribute-lft-neg-in63.0%
*-commutative63.0%
associate-*r*63.0%
mul-1-neg63.0%
*-commutative63.0%
associate-*r*76.1%
associate-*r*76.1%
*-commutative76.1%
associate-*r*76.1%
associate-+l+76.1%
Simplified76.1%
if -9.1999999999999998e173 < a < -2.5499999999999999e26Initial program 61.3%
+-commutative61.3%
associate-+r-61.3%
fma-def71.0%
*-commutative71.0%
*-commutative71.0%
fma-neg71.0%
distribute-rgt-neg-in71.0%
Simplified71.0%
Taylor expanded in c around inf 81.1%
if -2.5499999999999999e26 < a < 1.5e51Initial program 84.1%
+-commutative84.1%
associate-+r-84.1%
fma-def85.5%
*-commutative85.5%
*-commutative85.5%
fma-neg86.8%
distribute-rgt-neg-in86.8%
Simplified86.8%
Taylor expanded in a around 0 74.3%
*-commutative74.3%
*-commutative74.3%
associate-*r*74.3%
neg-mul-174.3%
*-commutative74.3%
fma-udef75.0%
*-commutative75.0%
*-rgt-identity75.0%
cancel-sign-sub-inv75.0%
Simplified75.0%
if 1.5e51 < a Initial program 68.1%
+-commutative68.1%
associate-+r-68.1%
fma-def70.3%
*-commutative70.3%
*-commutative70.3%
fma-neg70.3%
distribute-rgt-neg-in70.3%
Simplified70.3%
Taylor expanded in a around inf 78.8%
mul-1-neg78.8%
unsub-neg78.8%
Simplified78.8%
Final simplification76.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -3.3e+93)
t_2
(if (<= c -9.6e+26)
t_1
(if (<= c -0.46)
t_2
(if (<= c -2.8e-40)
(* z (* x y))
(if (<= c -3.1e-288)
t_1
(if (<= c 3.2e-99)
(* j (- (* a c) (* y i)))
(if (<= c 9e+40) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.3e+93) {
tmp = t_2;
} else if (c <= -9.6e+26) {
tmp = t_1;
} else if (c <= -0.46) {
tmp = t_2;
} else if (c <= -2.8e-40) {
tmp = z * (x * y);
} else if (c <= -3.1e-288) {
tmp = t_1;
} else if (c <= 3.2e-99) {
tmp = j * ((a * c) - (y * i));
} else if (c <= 9e+40) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = c * ((a * j) - (z * b))
if (c <= (-3.3d+93)) then
tmp = t_2
else if (c <= (-9.6d+26)) then
tmp = t_1
else if (c <= (-0.46d0)) then
tmp = t_2
else if (c <= (-2.8d-40)) then
tmp = z * (x * y)
else if (c <= (-3.1d-288)) then
tmp = t_1
else if (c <= 3.2d-99) then
tmp = j * ((a * c) - (y * i))
else if (c <= 9d+40) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.3e+93) {
tmp = t_2;
} else if (c <= -9.6e+26) {
tmp = t_1;
} else if (c <= -0.46) {
tmp = t_2;
} else if (c <= -2.8e-40) {
tmp = z * (x * y);
} else if (c <= -3.1e-288) {
tmp = t_1;
} else if (c <= 3.2e-99) {
tmp = j * ((a * c) - (y * i));
} else if (c <= 9e+40) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -3.3e+93: tmp = t_2 elif c <= -9.6e+26: tmp = t_1 elif c <= -0.46: tmp = t_2 elif c <= -2.8e-40: tmp = z * (x * y) elif c <= -3.1e-288: tmp = t_1 elif c <= 3.2e-99: tmp = j * ((a * c) - (y * i)) elif c <= 9e+40: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -3.3e+93) tmp = t_2; elseif (c <= -9.6e+26) tmp = t_1; elseif (c <= -0.46) tmp = t_2; elseif (c <= -2.8e-40) tmp = Float64(z * Float64(x * y)); elseif (c <= -3.1e-288) tmp = t_1; elseif (c <= 3.2e-99) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (c <= 9e+40) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -3.3e+93) tmp = t_2; elseif (c <= -9.6e+26) tmp = t_1; elseif (c <= -0.46) tmp = t_2; elseif (c <= -2.8e-40) tmp = z * (x * y); elseif (c <= -3.1e-288) tmp = t_1; elseif (c <= 3.2e-99) tmp = j * ((a * c) - (y * i)); elseif (c <= 9e+40) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.3e+93], t$95$2, If[LessEqual[c, -9.6e+26], t$95$1, If[LessEqual[c, -0.46], t$95$2, If[LessEqual[c, -2.8e-40], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.1e-288], t$95$1, If[LessEqual[c, 3.2e-99], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9e+40], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -3.3 \cdot 10^{+93}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -9.6 \cdot 10^{+26}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -0.46:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -2.8 \cdot 10^{-40}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq -3.1 \cdot 10^{-288}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{-99}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;c \leq 9 \cdot 10^{+40}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -3.30000000000000009e93 or -9.60000000000000018e26 < c < -0.46000000000000002 or 9.00000000000000064e40 < c Initial program 67.9%
+-commutative67.9%
associate-+r-67.9%
fma-def69.6%
*-commutative69.6%
*-commutative69.6%
fma-neg71.3%
distribute-rgt-neg-in71.3%
Simplified71.3%
Taylor expanded in c around inf 75.5%
if -3.30000000000000009e93 < c < -9.60000000000000018e26 or -2.8e-40 < c < -3.09999999999999983e-288 or 3.2000000000000001e-99 < c < 9.00000000000000064e40Initial program 83.6%
+-commutative83.6%
associate-+r-83.6%
fma-def86.9%
*-commutative86.9%
*-commutative86.9%
fma-neg86.9%
distribute-rgt-neg-in86.9%
Simplified86.9%
Taylor expanded in i around inf 50.6%
sub-neg50.6%
mul-1-neg50.6%
remove-double-neg50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
*-commutative50.6%
Simplified50.6%
if -0.46000000000000002 < c < -2.8e-40Initial program 83.1%
+-commutative83.1%
associate-+r-83.1%
fma-def83.1%
*-commutative83.1%
*-commutative83.1%
fma-neg83.1%
distribute-rgt-neg-in83.1%
Simplified83.1%
Taylor expanded in z around inf 83.6%
Taylor expanded in y around inf 83.6%
if -3.09999999999999983e-288 < c < 3.2000000000000001e-99Initial program 85.8%
+-commutative85.8%
associate-+r-85.8%
fma-def88.2%
*-commutative88.2%
*-commutative88.2%
fma-neg88.2%
distribute-rgt-neg-in88.2%
Simplified88.2%
Taylor expanded in j around inf 57.0%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -1.95e+176)
t_2
(if (<= a -2e+43)
(* c (- (* a j) (* z b)))
(if (<= a -5.5e-120)
t_1
(if (<= a -4.6e-140)
(* j (- (* a c) (* y i)))
(if (<= a 7e-127)
t_1
(if (<= a 1.4e+51) (* y (- (* x z) (* i j))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1.95e+176) {
tmp = t_2;
} else if (a <= -2e+43) {
tmp = c * ((a * j) - (z * b));
} else if (a <= -5.5e-120) {
tmp = t_1;
} else if (a <= -4.6e-140) {
tmp = j * ((a * c) - (y * i));
} else if (a <= 7e-127) {
tmp = t_1;
} else if (a <= 1.4e+51) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-1.95d+176)) then
tmp = t_2
else if (a <= (-2d+43)) then
tmp = c * ((a * j) - (z * b))
else if (a <= (-5.5d-120)) then
tmp = t_1
else if (a <= (-4.6d-140)) then
tmp = j * ((a * c) - (y * i))
else if (a <= 7d-127) then
tmp = t_1
else if (a <= 1.4d+51) then
tmp = y * ((x * z) - (i * j))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1.95e+176) {
tmp = t_2;
} else if (a <= -2e+43) {
tmp = c * ((a * j) - (z * b));
} else if (a <= -5.5e-120) {
tmp = t_1;
} else if (a <= -4.6e-140) {
tmp = j * ((a * c) - (y * i));
} else if (a <= 7e-127) {
tmp = t_1;
} else if (a <= 1.4e+51) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -1.95e+176: tmp = t_2 elif a <= -2e+43: tmp = c * ((a * j) - (z * b)) elif a <= -5.5e-120: tmp = t_1 elif a <= -4.6e-140: tmp = j * ((a * c) - (y * i)) elif a <= 7e-127: tmp = t_1 elif a <= 1.4e+51: tmp = y * ((x * z) - (i * j)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -1.95e+176) tmp = t_2; elseif (a <= -2e+43) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (a <= -5.5e-120) tmp = t_1; elseif (a <= -4.6e-140) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (a <= 7e-127) tmp = t_1; elseif (a <= 1.4e+51) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -1.95e+176) tmp = t_2; elseif (a <= -2e+43) tmp = c * ((a * j) - (z * b)); elseif (a <= -5.5e-120) tmp = t_1; elseif (a <= -4.6e-140) tmp = j * ((a * c) - (y * i)); elseif (a <= 7e-127) tmp = t_1; elseif (a <= 1.4e+51) tmp = y * ((x * z) - (i * j)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.95e+176], t$95$2, If[LessEqual[a, -2e+43], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.5e-120], t$95$1, If[LessEqual[a, -4.6e-140], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e-127], t$95$1, If[LessEqual[a, 1.4e+51], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.95 \cdot 10^{+176}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2 \cdot 10^{+43}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{-140}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 7 \cdot 10^{-127}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+51}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -1.9500000000000001e176 or 1.40000000000000002e51 < a Initial program 68.2%
+-commutative68.2%
associate-+r-68.2%
fma-def69.5%
*-commutative69.5%
*-commutative69.5%
fma-neg69.5%
distribute-rgt-neg-in69.5%
Simplified69.5%
Taylor expanded in a around inf 74.8%
mul-1-neg74.8%
unsub-neg74.8%
Simplified74.8%
if -1.9500000000000001e176 < a < -2.00000000000000003e43Initial program 73.1%
+-commutative73.1%
associate-+r-73.1%
fma-def80.8%
*-commutative80.8%
*-commutative80.8%
fma-neg80.8%
distribute-rgt-neg-in80.8%
Simplified80.8%
Taylor expanded in c around inf 77.4%
if -2.00000000000000003e43 < a < -5.5000000000000001e-120 or -4.6000000000000002e-140 < a < 6.99999999999999979e-127Initial program 83.2%
+-commutative83.2%
associate-+r-83.2%
fma-def84.1%
*-commutative84.1%
*-commutative84.1%
fma-neg85.0%
distribute-rgt-neg-in85.0%
Simplified85.0%
Taylor expanded in z around inf 65.1%
if -5.5000000000000001e-120 < a < -4.6000000000000002e-140Initial program 78.9%
+-commutative78.9%
associate-+r-78.9%
fma-def78.9%
*-commutative78.9%
*-commutative78.9%
fma-neg78.9%
distribute-rgt-neg-in78.9%
Simplified78.9%
Taylor expanded in j around inf 79.4%
if 6.99999999999999979e-127 < a < 1.40000000000000002e51Initial program 77.7%
+-commutative77.7%
associate-+r-77.7%
fma-def82.7%
*-commutative82.7%
*-commutative82.7%
fma-neg85.2%
distribute-rgt-neg-in85.2%
Simplified85.2%
Taylor expanded in y around inf 60.2%
+-commutative60.2%
mul-1-neg60.2%
unsub-neg60.2%
Simplified60.2%
Final simplification68.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* b (- z)))))
(if (<= a -2.1e+226)
(* t (* x (- a)))
(if (<= a -7.5e+43)
(* c (* a j))
(if (<= a -1.28e-120)
t_1
(if (<= a -4.6e-150)
(* j (* y (- i)))
(if (<= a 1.55e-187)
t_1
(if (<= a 4.2e+30)
(* z (* x y))
(if (<= a 1.2e+174) (* j (* a c)) (* (* x t) (- a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (b * -z);
double tmp;
if (a <= -2.1e+226) {
tmp = t * (x * -a);
} else if (a <= -7.5e+43) {
tmp = c * (a * j);
} else if (a <= -1.28e-120) {
tmp = t_1;
} else if (a <= -4.6e-150) {
tmp = j * (y * -i);
} else if (a <= 1.55e-187) {
tmp = t_1;
} else if (a <= 4.2e+30) {
tmp = z * (x * y);
} else if (a <= 1.2e+174) {
tmp = j * (a * c);
} else {
tmp = (x * t) * -a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (b * -z)
if (a <= (-2.1d+226)) then
tmp = t * (x * -a)
else if (a <= (-7.5d+43)) then
tmp = c * (a * j)
else if (a <= (-1.28d-120)) then
tmp = t_1
else if (a <= (-4.6d-150)) then
tmp = j * (y * -i)
else if (a <= 1.55d-187) then
tmp = t_1
else if (a <= 4.2d+30) then
tmp = z * (x * y)
else if (a <= 1.2d+174) then
tmp = j * (a * c)
else
tmp = (x * t) * -a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (b * -z);
double tmp;
if (a <= -2.1e+226) {
tmp = t * (x * -a);
} else if (a <= -7.5e+43) {
tmp = c * (a * j);
} else if (a <= -1.28e-120) {
tmp = t_1;
} else if (a <= -4.6e-150) {
tmp = j * (y * -i);
} else if (a <= 1.55e-187) {
tmp = t_1;
} else if (a <= 4.2e+30) {
tmp = z * (x * y);
} else if (a <= 1.2e+174) {
tmp = j * (a * c);
} else {
tmp = (x * t) * -a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (b * -z) tmp = 0 if a <= -2.1e+226: tmp = t * (x * -a) elif a <= -7.5e+43: tmp = c * (a * j) elif a <= -1.28e-120: tmp = t_1 elif a <= -4.6e-150: tmp = j * (y * -i) elif a <= 1.55e-187: tmp = t_1 elif a <= 4.2e+30: tmp = z * (x * y) elif a <= 1.2e+174: tmp = j * (a * c) else: tmp = (x * t) * -a return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(b * Float64(-z))) tmp = 0.0 if (a <= -2.1e+226) tmp = Float64(t * Float64(x * Float64(-a))); elseif (a <= -7.5e+43) tmp = Float64(c * Float64(a * j)); elseif (a <= -1.28e-120) tmp = t_1; elseif (a <= -4.6e-150) tmp = Float64(j * Float64(y * Float64(-i))); elseif (a <= 1.55e-187) tmp = t_1; elseif (a <= 4.2e+30) tmp = Float64(z * Float64(x * y)); elseif (a <= 1.2e+174) tmp = Float64(j * Float64(a * c)); else tmp = Float64(Float64(x * t) * Float64(-a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (b * -z); tmp = 0.0; if (a <= -2.1e+226) tmp = t * (x * -a); elseif (a <= -7.5e+43) tmp = c * (a * j); elseif (a <= -1.28e-120) tmp = t_1; elseif (a <= -4.6e-150) tmp = j * (y * -i); elseif (a <= 1.55e-187) tmp = t_1; elseif (a <= 4.2e+30) tmp = z * (x * y); elseif (a <= 1.2e+174) tmp = j * (a * c); else tmp = (x * t) * -a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.1e+226], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.5e+43], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.28e-120], t$95$1, If[LessEqual[a, -4.6e-150], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.55e-187], t$95$1, If[LessEqual[a, 4.2e+30], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.2e+174], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{if}\;a \leq -2.1 \cdot 10^{+226}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;a \leq -7.5 \cdot 10^{+43}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;a \leq -1.28 \cdot 10^{-120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{-150}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{-187}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{+30}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{+174}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\end{array}
\end{array}
if a < -2.09999999999999993e226Initial program 66.5%
+-commutative66.5%
associate-+r-66.5%
fma-def66.5%
*-commutative66.5%
*-commutative66.5%
fma-neg66.5%
distribute-rgt-neg-in66.5%
Simplified66.5%
Taylor expanded in t around inf 54.9%
distribute-lft-out--54.9%
associate-*r*54.9%
mul-1-neg54.9%
*-commutative54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in a around inf 47.8%
if -2.09999999999999993e226 < a < -7.49999999999999967e43Initial program 71.4%
+-commutative71.4%
associate-+r-71.4%
fma-def76.6%
*-commutative76.6%
*-commutative76.6%
fma-neg76.6%
distribute-rgt-neg-in76.6%
Simplified76.6%
Taylor expanded in a around inf 64.4%
mul-1-neg64.4%
unsub-neg64.4%
Simplified64.4%
Taylor expanded in c around inf 56.4%
*-commutative56.4%
Simplified56.4%
if -7.49999999999999967e43 < a < -1.28000000000000008e-120 or -4.60000000000000006e-150 < a < 1.5500000000000001e-187Initial program 81.6%
+-commutative81.6%
associate-+r-81.6%
fma-def82.7%
*-commutative82.7%
*-commutative82.7%
fma-neg83.7%
distribute-rgt-neg-in83.7%
Simplified83.7%
Taylor expanded in c around inf 45.3%
Taylor expanded in a around 0 41.2%
neg-mul-141.2%
distribute-lft-neg-in41.2%
*-commutative41.2%
Simplified41.2%
if -1.28000000000000008e-120 < a < -4.60000000000000006e-150Initial program 82.6%
+-commutative82.6%
associate-+r-82.6%
fma-def82.6%
*-commutative82.6%
*-commutative82.6%
fma-neg82.6%
distribute-rgt-neg-in82.6%
Simplified82.6%
Taylor expanded in j around inf 65.5%
Taylor expanded in c around 0 56.6%
mul-1-neg56.6%
*-commutative56.6%
distribute-rgt-neg-in56.6%
Simplified56.6%
if 1.5500000000000001e-187 < a < 4.2e30Initial program 80.2%
+-commutative80.2%
associate-+r-80.2%
fma-def84.6%
*-commutative84.6%
*-commutative84.6%
fma-neg86.9%
distribute-rgt-neg-in86.9%
Simplified86.9%
Taylor expanded in z around inf 52.3%
Taylor expanded in y around inf 37.0%
if 4.2e30 < a < 1.1999999999999999e174Initial program 74.6%
+-commutative74.6%
associate-+r-74.6%
fma-def74.6%
*-commutative74.6%
*-commutative74.6%
fma-neg74.6%
distribute-rgt-neg-in74.6%
Simplified74.6%
Taylor expanded in a around inf 58.5%
mul-1-neg58.5%
unsub-neg58.5%
Simplified58.5%
Taylor expanded in c around inf 45.9%
associate-*r*50.0%
*-commutative50.0%
Simplified50.0%
if 1.1999999999999999e174 < a Initial program 66.1%
+-commutative66.1%
associate-+r-66.1%
fma-def70.0%
*-commutative70.0%
*-commutative70.0%
fma-neg70.0%
distribute-rgt-neg-in70.0%
Simplified70.0%
Taylor expanded in a around inf 92.0%
mul-1-neg92.0%
unsub-neg92.0%
Simplified92.0%
Taylor expanded in c around 0 73.5%
mul-1-neg73.5%
distribute-lft-neg-out73.5%
*-commutative73.5%
Simplified73.5%
Final simplification47.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* b (- z)))))
(if (<= a -1.65e+223)
(* t (* x (- a)))
(if (<= a -5.2e+43)
(* c (* a j))
(if (<= a -8e-121)
t_1
(if (<= a -6.2e-153)
(* j (* y (- i)))
(if (<= a 3.5e-187)
t_1
(if (<= a 3.1e+46)
(* y (* j (- i)))
(if (<= a 1.16e+174) (* j (* a c)) (* (* x t) (- a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (b * -z);
double tmp;
if (a <= -1.65e+223) {
tmp = t * (x * -a);
} else if (a <= -5.2e+43) {
tmp = c * (a * j);
} else if (a <= -8e-121) {
tmp = t_1;
} else if (a <= -6.2e-153) {
tmp = j * (y * -i);
} else if (a <= 3.5e-187) {
tmp = t_1;
} else if (a <= 3.1e+46) {
tmp = y * (j * -i);
} else if (a <= 1.16e+174) {
tmp = j * (a * c);
} else {
tmp = (x * t) * -a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (b * -z)
if (a <= (-1.65d+223)) then
tmp = t * (x * -a)
else if (a <= (-5.2d+43)) then
tmp = c * (a * j)
else if (a <= (-8d-121)) then
tmp = t_1
else if (a <= (-6.2d-153)) then
tmp = j * (y * -i)
else if (a <= 3.5d-187) then
tmp = t_1
else if (a <= 3.1d+46) then
tmp = y * (j * -i)
else if (a <= 1.16d+174) then
tmp = j * (a * c)
else
tmp = (x * t) * -a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (b * -z);
double tmp;
if (a <= -1.65e+223) {
tmp = t * (x * -a);
} else if (a <= -5.2e+43) {
tmp = c * (a * j);
} else if (a <= -8e-121) {
tmp = t_1;
} else if (a <= -6.2e-153) {
tmp = j * (y * -i);
} else if (a <= 3.5e-187) {
tmp = t_1;
} else if (a <= 3.1e+46) {
tmp = y * (j * -i);
} else if (a <= 1.16e+174) {
tmp = j * (a * c);
} else {
tmp = (x * t) * -a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (b * -z) tmp = 0 if a <= -1.65e+223: tmp = t * (x * -a) elif a <= -5.2e+43: tmp = c * (a * j) elif a <= -8e-121: tmp = t_1 elif a <= -6.2e-153: tmp = j * (y * -i) elif a <= 3.5e-187: tmp = t_1 elif a <= 3.1e+46: tmp = y * (j * -i) elif a <= 1.16e+174: tmp = j * (a * c) else: tmp = (x * t) * -a return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(b * Float64(-z))) tmp = 0.0 if (a <= -1.65e+223) tmp = Float64(t * Float64(x * Float64(-a))); elseif (a <= -5.2e+43) tmp = Float64(c * Float64(a * j)); elseif (a <= -8e-121) tmp = t_1; elseif (a <= -6.2e-153) tmp = Float64(j * Float64(y * Float64(-i))); elseif (a <= 3.5e-187) tmp = t_1; elseif (a <= 3.1e+46) tmp = Float64(y * Float64(j * Float64(-i))); elseif (a <= 1.16e+174) tmp = Float64(j * Float64(a * c)); else tmp = Float64(Float64(x * t) * Float64(-a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (b * -z); tmp = 0.0; if (a <= -1.65e+223) tmp = t * (x * -a); elseif (a <= -5.2e+43) tmp = c * (a * j); elseif (a <= -8e-121) tmp = t_1; elseif (a <= -6.2e-153) tmp = j * (y * -i); elseif (a <= 3.5e-187) tmp = t_1; elseif (a <= 3.1e+46) tmp = y * (j * -i); elseif (a <= 1.16e+174) tmp = j * (a * c); else tmp = (x * t) * -a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.65e+223], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.2e+43], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8e-121], t$95$1, If[LessEqual[a, -6.2e-153], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e-187], t$95$1, If[LessEqual[a, 3.1e+46], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.16e+174], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{if}\;a \leq -1.65 \cdot 10^{+223}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;a \leq -5.2 \cdot 10^{+43}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-121}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -6.2 \cdot 10^{-153}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-187}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{+46}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;a \leq 1.16 \cdot 10^{+174}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\end{array}
\end{array}
if a < -1.65e223Initial program 66.5%
+-commutative66.5%
associate-+r-66.5%
fma-def66.5%
*-commutative66.5%
*-commutative66.5%
fma-neg66.5%
distribute-rgt-neg-in66.5%
Simplified66.5%
Taylor expanded in t around inf 54.9%
distribute-lft-out--54.9%
associate-*r*54.9%
mul-1-neg54.9%
*-commutative54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in a around inf 47.8%
if -1.65e223 < a < -5.20000000000000042e43Initial program 71.4%
+-commutative71.4%
associate-+r-71.4%
fma-def76.6%
*-commutative76.6%
*-commutative76.6%
fma-neg76.6%
distribute-rgt-neg-in76.6%
Simplified76.6%
Taylor expanded in a around inf 64.4%
mul-1-neg64.4%
unsub-neg64.4%
Simplified64.4%
Taylor expanded in c around inf 56.4%
*-commutative56.4%
Simplified56.4%
if -5.20000000000000042e43 < a < -7.9999999999999998e-121 or -6.1999999999999999e-153 < a < 3.49999999999999979e-187Initial program 81.6%
+-commutative81.6%
associate-+r-81.6%
fma-def82.7%
*-commutative82.7%
*-commutative82.7%
fma-neg83.7%
distribute-rgt-neg-in83.7%
Simplified83.7%
Taylor expanded in c around inf 45.3%
Taylor expanded in a around 0 41.2%
neg-mul-141.2%
distribute-lft-neg-in41.2%
*-commutative41.2%
Simplified41.2%
if -7.9999999999999998e-121 < a < -6.1999999999999999e-153Initial program 82.6%
+-commutative82.6%
associate-+r-82.6%
fma-def82.6%
*-commutative82.6%
*-commutative82.6%
fma-neg82.6%
distribute-rgt-neg-in82.6%
Simplified82.6%
Taylor expanded in j around inf 65.5%
Taylor expanded in c around 0 56.6%
mul-1-neg56.6%
*-commutative56.6%
distribute-rgt-neg-in56.6%
Simplified56.6%
if 3.49999999999999979e-187 < a < 3.09999999999999975e46Initial program 81.0%
+-commutative81.0%
associate-+r-81.0%
fma-def85.3%
*-commutative85.3%
*-commutative85.3%
fma-neg87.4%
distribute-rgt-neg-in87.4%
Simplified87.4%
Taylor expanded in a around 0 76.6%
*-commutative76.6%
*-commutative76.6%
associate-*r*76.6%
neg-mul-176.6%
*-commutative76.6%
fma-udef76.6%
*-commutative76.6%
*-rgt-identity76.6%
cancel-sign-sub-inv76.6%
Simplified78.7%
Taylor expanded in t around 0 62.0%
+-commutative62.0%
mul-1-neg62.0%
unsub-neg62.0%
*-commutative62.0%
*-commutative62.0%
associate-*l*64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in z around 0 36.8%
mul-1-neg36.8%
distribute-rgt-neg-in36.8%
*-commutative36.8%
distribute-rgt-neg-in36.8%
Simplified36.8%
if 3.09999999999999975e46 < a < 1.16000000000000003e174Initial program 72.2%
+-commutative72.2%
associate-+r-72.2%
fma-def72.2%
*-commutative72.2%
*-commutative72.2%
fma-neg72.2%
distribute-rgt-neg-in72.2%
Simplified72.2%
Taylor expanded in a around inf 58.8%
mul-1-neg58.8%
unsub-neg58.8%
Simplified58.8%
Taylor expanded in c around inf 49.5%
associate-*r*54.0%
*-commutative54.0%
Simplified54.0%
if 1.16000000000000003e174 < a Initial program 66.1%
+-commutative66.1%
associate-+r-66.1%
fma-def70.0%
*-commutative70.0%
*-commutative70.0%
fma-neg70.0%
distribute-rgt-neg-in70.0%
Simplified70.0%
Taylor expanded in a around inf 92.0%
mul-1-neg92.0%
unsub-neg92.0%
Simplified92.0%
Taylor expanded in c around 0 73.5%
mul-1-neg73.5%
distribute-lft-neg-out73.5%
*-commutative73.5%
Simplified73.5%
Final simplification48.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* b (- z)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -4.2e+43)
t_2
(if (<= a -5.6e-121)
t_1
(if (<= a -7.8e-151)
(* j (* y (- i)))
(if (<= a 3.5e-186)
t_1
(if (<= a 9.8e-14) (* y (* j (- i))) 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 * (b * -z);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4.2e+43) {
tmp = t_2;
} else if (a <= -5.6e-121) {
tmp = t_1;
} else if (a <= -7.8e-151) {
tmp = j * (y * -i);
} else if (a <= 3.5e-186) {
tmp = t_1;
} else if (a <= 9.8e-14) {
tmp = y * (j * -i);
} 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 * (b * -z)
t_2 = a * ((c * j) - (x * t))
if (a <= (-4.2d+43)) then
tmp = t_2
else if (a <= (-5.6d-121)) then
tmp = t_1
else if (a <= (-7.8d-151)) then
tmp = j * (y * -i)
else if (a <= 3.5d-186) then
tmp = t_1
else if (a <= 9.8d-14) then
tmp = y * (j * -i)
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 * (b * -z);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4.2e+43) {
tmp = t_2;
} else if (a <= -5.6e-121) {
tmp = t_1;
} else if (a <= -7.8e-151) {
tmp = j * (y * -i);
} else if (a <= 3.5e-186) {
tmp = t_1;
} else if (a <= 9.8e-14) {
tmp = y * (j * -i);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (b * -z) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -4.2e+43: tmp = t_2 elif a <= -5.6e-121: tmp = t_1 elif a <= -7.8e-151: tmp = j * (y * -i) elif a <= 3.5e-186: tmp = t_1 elif a <= 9.8e-14: tmp = y * (j * -i) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(b * Float64(-z))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -4.2e+43) tmp = t_2; elseif (a <= -5.6e-121) tmp = t_1; elseif (a <= -7.8e-151) tmp = Float64(j * Float64(y * Float64(-i))); elseif (a <= 3.5e-186) tmp = t_1; elseif (a <= 9.8e-14) tmp = Float64(y * Float64(j * Float64(-i))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (b * -z); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -4.2e+43) tmp = t_2; elseif (a <= -5.6e-121) tmp = t_1; elseif (a <= -7.8e-151) tmp = j * (y * -i); elseif (a <= 3.5e-186) tmp = t_1; elseif (a <= 9.8e-14) tmp = y * (j * -i); 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[(b * (-z)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e+43], t$95$2, If[LessEqual[a, -5.6e-121], t$95$1, If[LessEqual[a, -7.8e-151], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e-186], t$95$1, If[LessEqual[a, 9.8e-14], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(b \cdot \left(-z\right)\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -4.2 \cdot 10^{+43}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -5.6 \cdot 10^{-121}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -7.8 \cdot 10^{-151}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-186}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 9.8 \cdot 10^{-14}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -4.20000000000000003e43 or 9.79999999999999989e-14 < a Initial program 71.5%
+-commutative71.5%
associate-+r-71.5%
fma-def74.3%
*-commutative74.3%
*-commutative74.3%
fma-neg75.2%
distribute-rgt-neg-in75.2%
Simplified75.2%
Taylor expanded in a around inf 66.0%
mul-1-neg66.0%
unsub-neg66.0%
Simplified66.0%
if -4.20000000000000003e43 < a < -5.6000000000000002e-121 or -7.80000000000000013e-151 < a < 3.49999999999999989e-186Initial program 81.6%
+-commutative81.6%
associate-+r-81.6%
fma-def82.7%
*-commutative82.7%
*-commutative82.7%
fma-neg83.7%
distribute-rgt-neg-in83.7%
Simplified83.7%
Taylor expanded in c around inf 45.3%
Taylor expanded in a around 0 41.2%
neg-mul-141.2%
distribute-lft-neg-in41.2%
*-commutative41.2%
Simplified41.2%
if -5.6000000000000002e-121 < a < -7.80000000000000013e-151Initial program 82.6%
+-commutative82.6%
associate-+r-82.6%
fma-def82.6%
*-commutative82.6%
*-commutative82.6%
fma-neg82.6%
distribute-rgt-neg-in82.6%
Simplified82.6%
Taylor expanded in j around inf 65.5%
Taylor expanded in c around 0 56.6%
mul-1-neg56.6%
*-commutative56.6%
distribute-rgt-neg-in56.6%
Simplified56.6%
if 3.49999999999999989e-186 < a < 9.79999999999999989e-14Initial program 78.1%
+-commutative78.1%
associate-+r-78.1%
fma-def83.6%
*-commutative83.6%
*-commutative83.6%
fma-neg83.6%
distribute-rgt-neg-in83.6%
Simplified83.6%
Taylor expanded in a around 0 80.9%
*-commutative80.9%
*-commutative80.9%
associate-*r*80.9%
neg-mul-180.9%
*-commutative80.9%
fma-udef80.9%
*-commutative80.9%
*-rgt-identity80.9%
cancel-sign-sub-inv80.9%
Simplified83.7%
Taylor expanded in t around 0 64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
*-commutative64.7%
*-commutative64.7%
associate-*l*67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in z around 0 42.6%
mul-1-neg42.6%
distribute-rgt-neg-in42.6%
*-commutative42.6%
distribute-rgt-neg-in42.6%
Simplified42.6%
Final simplification52.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -5.4e+90)
t_2
(if (<= c -1.45e+25)
t_1
(if (<= c -0.0065)
t_2
(if (<= c -3.45e-40) (* z (* x y)) (if (<= c 3.6e+45) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -5.4e+90) {
tmp = t_2;
} else if (c <= -1.45e+25) {
tmp = t_1;
} else if (c <= -0.0065) {
tmp = t_2;
} else if (c <= -3.45e-40) {
tmp = z * (x * y);
} else if (c <= 3.6e+45) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = c * ((a * j) - (z * b))
if (c <= (-5.4d+90)) then
tmp = t_2
else if (c <= (-1.45d+25)) then
tmp = t_1
else if (c <= (-0.0065d0)) then
tmp = t_2
else if (c <= (-3.45d-40)) then
tmp = z * (x * y)
else if (c <= 3.6d+45) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -5.4e+90) {
tmp = t_2;
} else if (c <= -1.45e+25) {
tmp = t_1;
} else if (c <= -0.0065) {
tmp = t_2;
} else if (c <= -3.45e-40) {
tmp = z * (x * y);
} else if (c <= 3.6e+45) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -5.4e+90: tmp = t_2 elif c <= -1.45e+25: tmp = t_1 elif c <= -0.0065: tmp = t_2 elif c <= -3.45e-40: tmp = z * (x * y) elif c <= 3.6e+45: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -5.4e+90) tmp = t_2; elseif (c <= -1.45e+25) tmp = t_1; elseif (c <= -0.0065) tmp = t_2; elseif (c <= -3.45e-40) tmp = Float64(z * Float64(x * y)); elseif (c <= 3.6e+45) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -5.4e+90) tmp = t_2; elseif (c <= -1.45e+25) tmp = t_1; elseif (c <= -0.0065) tmp = t_2; elseif (c <= -3.45e-40) tmp = z * (x * y); elseif (c <= 3.6e+45) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5.4e+90], t$95$2, If[LessEqual[c, -1.45e+25], t$95$1, If[LessEqual[c, -0.0065], t$95$2, If[LessEqual[c, -3.45e-40], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.6e+45], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -5.4 \cdot 10^{+90}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.45 \cdot 10^{+25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -0.0065:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -3.45 \cdot 10^{-40}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 3.6 \cdot 10^{+45}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -5.4e90 or -1.44999999999999995e25 < c < -0.0064999999999999997 or 3.6e45 < c Initial program 67.9%
+-commutative67.9%
associate-+r-67.9%
fma-def69.6%
*-commutative69.6%
*-commutative69.6%
fma-neg71.3%
distribute-rgt-neg-in71.3%
Simplified71.3%
Taylor expanded in c around inf 75.5%
if -5.4e90 < c < -1.44999999999999995e25 or -3.4499999999999998e-40 < c < 3.6e45Initial program 84.3%
+-commutative84.3%
associate-+r-84.3%
fma-def87.3%
*-commutative87.3%
*-commutative87.3%
fma-neg87.3%
distribute-rgt-neg-in87.3%
Simplified87.3%
Taylor expanded in i around inf 48.5%
sub-neg48.5%
mul-1-neg48.5%
remove-double-neg48.5%
+-commutative48.5%
mul-1-neg48.5%
unsub-neg48.5%
*-commutative48.5%
Simplified48.5%
if -0.0064999999999999997 < c < -3.4499999999999998e-40Initial program 83.1%
+-commutative83.1%
associate-+r-83.1%
fma-def83.1%
*-commutative83.1%
*-commutative83.1%
fma-neg83.1%
distribute-rgt-neg-in83.1%
Simplified83.1%
Taylor expanded in z around inf 83.6%
Taylor expanded in y around inf 83.6%
Final simplification61.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -1.8e+38)
t_1
(if (<= y 2.5e-140)
(* c (- (* a j) (* z b)))
(if (<= y 3.4e-90)
(* i (- (* t b) (* y j)))
(if (<= y 1.08e-63) (* a (- (* c j) (* x t))) 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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.8e+38) {
tmp = t_1;
} else if (y <= 2.5e-140) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 3.4e-90) {
tmp = i * ((t * b) - (y * j));
} else if (y <= 1.08e-63) {
tmp = a * ((c * j) - (x * t));
} 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 = y * ((x * z) - (i * j))
if (y <= (-1.8d+38)) then
tmp = t_1
else if (y <= 2.5d-140) then
tmp = c * ((a * j) - (z * b))
else if (y <= 3.4d-90) then
tmp = i * ((t * b) - (y * j))
else if (y <= 1.08d-63) then
tmp = a * ((c * j) - (x * t))
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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.8e+38) {
tmp = t_1;
} else if (y <= 2.5e-140) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 3.4e-90) {
tmp = i * ((t * b) - (y * j));
} else if (y <= 1.08e-63) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.8e+38: tmp = t_1 elif y <= 2.5e-140: tmp = c * ((a * j) - (z * b)) elif y <= 3.4e-90: tmp = i * ((t * b) - (y * j)) elif y <= 1.08e-63: tmp = a * ((c * j) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.8e+38) tmp = t_1; elseif (y <= 2.5e-140) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 3.4e-90) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (y <= 1.08e-63) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.8e+38) tmp = t_1; elseif (y <= 2.5e-140) tmp = c * ((a * j) - (z * b)); elseif (y <= 3.4e-90) tmp = i * ((t * b) - (y * j)); elseif (y <= 1.08e-63) tmp = a * ((c * j) - (x * t)); else tmp = t_1; 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]}, If[LessEqual[y, -1.8e+38], t$95$1, If[LessEqual[y, 2.5e-140], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e-90], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.08e-63], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.8 \cdot 10^{+38}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{-140}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-90}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;y \leq 1.08 \cdot 10^{-63}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.79999999999999985e38 or 1.07999999999999994e-63 < y Initial program 72.3%
+-commutative72.3%
associate-+r-72.3%
fma-def75.3%
*-commutative75.3%
*-commutative75.3%
fma-neg76.1%
distribute-rgt-neg-in76.1%
Simplified76.1%
Taylor expanded in y around inf 65.7%
+-commutative65.7%
mul-1-neg65.7%
unsub-neg65.7%
Simplified65.7%
if -1.79999999999999985e38 < y < 2.50000000000000007e-140Initial program 82.2%
+-commutative82.2%
associate-+r-82.2%
fma-def84.1%
*-commutative84.1%
*-commutative84.1%
fma-neg84.1%
distribute-rgt-neg-in84.1%
Simplified84.1%
Taylor expanded in c around inf 61.9%
if 2.50000000000000007e-140 < y < 3.39999999999999994e-90Initial program 74.9%
+-commutative74.9%
associate-+r-74.9%
fma-def74.9%
*-commutative74.9%
*-commutative74.9%
fma-neg83.2%
distribute-rgt-neg-in83.2%
Simplified83.2%
Taylor expanded in i around inf 67.1%
sub-neg67.1%
mul-1-neg67.1%
remove-double-neg67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
Simplified67.1%
if 3.39999999999999994e-90 < y < 1.07999999999999994e-63Initial program 83.3%
+-commutative83.3%
associate-+r-83.3%
fma-def83.3%
*-commutative83.3%
*-commutative83.3%
fma-neg83.3%
distribute-rgt-neg-in83.3%
Simplified83.3%
Taylor expanded in a around inf 68.4%
mul-1-neg68.4%
unsub-neg68.4%
Simplified68.4%
Final simplification64.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.9e+226)
(* t (* x (- a)))
(if (<= a -4.2e+43)
(* c (* a j))
(if (<= a 1.65e-186)
(* c (* b (- z)))
(if (<= a 1.1e+36)
(* z (* x y))
(if (<= a 1.05e+174) (* j (* a c)) (* (* x t) (- a))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.9e+226) {
tmp = t * (x * -a);
} else if (a <= -4.2e+43) {
tmp = c * (a * j);
} else if (a <= 1.65e-186) {
tmp = c * (b * -z);
} else if (a <= 1.1e+36) {
tmp = z * (x * y);
} else if (a <= 1.05e+174) {
tmp = j * (a * c);
} else {
tmp = (x * t) * -a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1.9d+226)) then
tmp = t * (x * -a)
else if (a <= (-4.2d+43)) then
tmp = c * (a * j)
else if (a <= 1.65d-186) then
tmp = c * (b * -z)
else if (a <= 1.1d+36) then
tmp = z * (x * y)
else if (a <= 1.05d+174) then
tmp = j * (a * c)
else
tmp = (x * t) * -a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.9e+226) {
tmp = t * (x * -a);
} else if (a <= -4.2e+43) {
tmp = c * (a * j);
} else if (a <= 1.65e-186) {
tmp = c * (b * -z);
} else if (a <= 1.1e+36) {
tmp = z * (x * y);
} else if (a <= 1.05e+174) {
tmp = j * (a * c);
} else {
tmp = (x * t) * -a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.9e+226: tmp = t * (x * -a) elif a <= -4.2e+43: tmp = c * (a * j) elif a <= 1.65e-186: tmp = c * (b * -z) elif a <= 1.1e+36: tmp = z * (x * y) elif a <= 1.05e+174: tmp = j * (a * c) else: tmp = (x * t) * -a return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.9e+226) tmp = Float64(t * Float64(x * Float64(-a))); elseif (a <= -4.2e+43) tmp = Float64(c * Float64(a * j)); elseif (a <= 1.65e-186) tmp = Float64(c * Float64(b * Float64(-z))); elseif (a <= 1.1e+36) tmp = Float64(z * Float64(x * y)); elseif (a <= 1.05e+174) tmp = Float64(j * Float64(a * c)); else tmp = Float64(Float64(x * t) * Float64(-a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.9e+226) tmp = t * (x * -a); elseif (a <= -4.2e+43) tmp = c * (a * j); elseif (a <= 1.65e-186) tmp = c * (b * -z); elseif (a <= 1.1e+36) tmp = z * (x * y); elseif (a <= 1.05e+174) tmp = j * (a * c); else tmp = (x * t) * -a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.9e+226], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.2e+43], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.65e-186], N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.1e+36], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.05e+174], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.9 \cdot 10^{+226}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;a \leq -4.2 \cdot 10^{+43}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-186}:\\
\;\;\;\;c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{+36}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{+174}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\end{array}
\end{array}
if a < -1.89999999999999991e226Initial program 66.5%
+-commutative66.5%
associate-+r-66.5%
fma-def66.5%
*-commutative66.5%
*-commutative66.5%
fma-neg66.5%
distribute-rgt-neg-in66.5%
Simplified66.5%
Taylor expanded in t around inf 54.9%
distribute-lft-out--54.9%
associate-*r*54.9%
mul-1-neg54.9%
*-commutative54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in a around inf 47.8%
if -1.89999999999999991e226 < a < -4.20000000000000003e43Initial program 71.4%
+-commutative71.4%
associate-+r-71.4%
fma-def76.6%
*-commutative76.6%
*-commutative76.6%
fma-neg76.6%
distribute-rgt-neg-in76.6%
Simplified76.6%
Taylor expanded in a around inf 64.4%
mul-1-neg64.4%
unsub-neg64.4%
Simplified64.4%
Taylor expanded in c around inf 56.4%
*-commutative56.4%
Simplified56.4%
if -4.20000000000000003e43 < a < 1.65e-186Initial program 81.7%
+-commutative81.7%
associate-+r-81.7%
fma-def82.7%
*-commutative82.7%
*-commutative82.7%
fma-neg83.6%
distribute-rgt-neg-in83.6%
Simplified83.6%
Taylor expanded in c around inf 43.6%
Taylor expanded in a around 0 38.1%
neg-mul-138.1%
distribute-lft-neg-in38.1%
*-commutative38.1%
Simplified38.1%
if 1.65e-186 < a < 1.1e36Initial program 80.2%
+-commutative80.2%
associate-+r-80.2%
fma-def84.6%
*-commutative84.6%
*-commutative84.6%
fma-neg86.9%
distribute-rgt-neg-in86.9%
Simplified86.9%
Taylor expanded in z around inf 52.3%
Taylor expanded in y around inf 37.0%
if 1.1e36 < a < 1.05000000000000008e174Initial program 74.6%
+-commutative74.6%
associate-+r-74.6%
fma-def74.6%
*-commutative74.6%
*-commutative74.6%
fma-neg74.6%
distribute-rgt-neg-in74.6%
Simplified74.6%
Taylor expanded in a around inf 58.5%
mul-1-neg58.5%
unsub-neg58.5%
Simplified58.5%
Taylor expanded in c around inf 45.9%
associate-*r*50.0%
*-commutative50.0%
Simplified50.0%
if 1.05000000000000008e174 < a Initial program 66.1%
+-commutative66.1%
associate-+r-66.1%
fma-def70.0%
*-commutative70.0%
*-commutative70.0%
fma-neg70.0%
distribute-rgt-neg-in70.0%
Simplified70.0%
Taylor expanded in a around inf 92.0%
mul-1-neg92.0%
unsub-neg92.0%
Simplified92.0%
Taylor expanded in c around 0 73.5%
mul-1-neg73.5%
distribute-lft-neg-out73.5%
*-commutative73.5%
Simplified73.5%
Final simplification45.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -9.5e+145) (and (not (<= x 5.6e+32)) (<= x 1.05e+192))) (* z (* x y)) (* c (- (* a j) (* z b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -9.5e+145) || (!(x <= 5.6e+32) && (x <= 1.05e+192))) {
tmp = z * (x * y);
} else {
tmp = c * ((a * j) - (z * 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 ((x <= (-9.5d+145)) .or. (.not. (x <= 5.6d+32)) .and. (x <= 1.05d+192)) then
tmp = z * (x * y)
else
tmp = c * ((a * j) - (z * 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 ((x <= -9.5e+145) || (!(x <= 5.6e+32) && (x <= 1.05e+192))) {
tmp = z * (x * y);
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -9.5e+145) or (not (x <= 5.6e+32) and (x <= 1.05e+192)): tmp = z * (x * y) else: tmp = c * ((a * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -9.5e+145) || (!(x <= 5.6e+32) && (x <= 1.05e+192))) tmp = Float64(z * Float64(x * y)); else tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -9.5e+145) || (~((x <= 5.6e+32)) && (x <= 1.05e+192))) tmp = z * (x * y); else tmp = c * ((a * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -9.5e+145], And[N[Not[LessEqual[x, 5.6e+32]], $MachinePrecision], LessEqual[x, 1.05e+192]]], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.5 \cdot 10^{+145} \lor \neg \left(x \leq 5.6 \cdot 10^{+32}\right) \land x \leq 1.05 \cdot 10^{+192}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if x < -9.49999999999999948e145 or 5.6e32 < x < 1.04999999999999997e192Initial program 73.0%
+-commutative73.0%
associate-+r-73.0%
fma-def76.0%
*-commutative76.0%
*-commutative76.0%
fma-neg77.5%
distribute-rgt-neg-in77.5%
Simplified77.5%
Taylor expanded in z around inf 72.0%
Taylor expanded in y around inf 69.0%
if -9.49999999999999948e145 < x < 5.6e32 or 1.04999999999999997e192 < x Initial program 78.1%
+-commutative78.1%
associate-+r-78.1%
fma-def80.3%
*-commutative80.3%
*-commutative80.3%
fma-neg80.8%
distribute-rgt-neg-in80.8%
Simplified80.8%
Taylor expanded in c around inf 52.9%
Final simplification57.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -1.25e+37)
t_1
(if (<= y 5.3e-288)
(* c (- (* a j) (* z b)))
(if (<= y 1.76e+19) (* b (- (* t 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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.25e+37) {
tmp = t_1;
} else if (y <= 5.3e-288) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 1.76e+19) {
tmp = b * ((t * 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 = y * ((x * z) - (i * j))
if (y <= (-1.25d+37)) then
tmp = t_1
else if (y <= 5.3d-288) then
tmp = c * ((a * j) - (z * b))
else if (y <= 1.76d+19) then
tmp = b * ((t * 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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.25e+37) {
tmp = t_1;
} else if (y <= 5.3e-288) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 1.76e+19) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.25e+37: tmp = t_1 elif y <= 5.3e-288: tmp = c * ((a * j) - (z * b)) elif y <= 1.76e+19: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.25e+37) tmp = t_1; elseif (y <= 5.3e-288) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 1.76e+19) tmp = Float64(b * Float64(Float64(t * 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 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.25e+37) tmp = t_1; elseif (y <= 5.3e-288) tmp = c * ((a * j) - (z * b)); elseif (y <= 1.76e+19) tmp = b * ((t * 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.25e+37], t$95$1, If[LessEqual[y, 5.3e-288], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.76e+19], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.25 \cdot 10^{+37}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 5.3 \cdot 10^{-288}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 1.76 \cdot 10^{+19}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.24999999999999997e37 or 1.76e19 < y Initial program 71.6%
+-commutative71.6%
associate-+r-71.6%
fma-def75.0%
*-commutative75.0%
*-commutative75.0%
fma-neg75.8%
distribute-rgt-neg-in75.8%
Simplified75.8%
Taylor expanded in y around inf 67.5%
+-commutative67.5%
mul-1-neg67.5%
unsub-neg67.5%
Simplified67.5%
if -1.24999999999999997e37 < y < 5.3000000000000004e-288Initial program 80.2%
+-commutative80.2%
associate-+r-80.2%
fma-def82.7%
*-commutative82.7%
*-commutative82.7%
fma-neg82.7%
distribute-rgt-neg-in82.7%
Simplified82.7%
Taylor expanded in c around inf 63.9%
if 5.3000000000000004e-288 < y < 1.76e19Initial program 82.7%
cancel-sign-sub82.7%
cancel-sign-sub-inv82.7%
*-commutative82.7%
remove-double-neg82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in b around inf 61.1%
Final simplification65.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* x (- a)))))
(if (<= a -1.55e+227)
t_1
(if (<= a -4.2e+42)
(* c (* a j))
(if (<= a 1.05e+34)
(* z (* x y))
(if (<= a 9.4e+173) (* j (* a 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 = t * (x * -a);
double tmp;
if (a <= -1.55e+227) {
tmp = t_1;
} else if (a <= -4.2e+42) {
tmp = c * (a * j);
} else if (a <= 1.05e+34) {
tmp = z * (x * y);
} else if (a <= 9.4e+173) {
tmp = j * (a * 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 = t * (x * -a)
if (a <= (-1.55d+227)) then
tmp = t_1
else if (a <= (-4.2d+42)) then
tmp = c * (a * j)
else if (a <= 1.05d+34) then
tmp = z * (x * y)
else if (a <= 9.4d+173) then
tmp = j * (a * 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 = t * (x * -a);
double tmp;
if (a <= -1.55e+227) {
tmp = t_1;
} else if (a <= -4.2e+42) {
tmp = c * (a * j);
} else if (a <= 1.05e+34) {
tmp = z * (x * y);
} else if (a <= 9.4e+173) {
tmp = j * (a * c);
} 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 <= -1.55e+227: tmp = t_1 elif a <= -4.2e+42: tmp = c * (a * j) elif a <= 1.05e+34: tmp = z * (x * y) elif a <= 9.4e+173: tmp = j * (a * c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(x * Float64(-a))) tmp = 0.0 if (a <= -1.55e+227) tmp = t_1; elseif (a <= -4.2e+42) tmp = Float64(c * Float64(a * j)); elseif (a <= 1.05e+34) tmp = Float64(z * Float64(x * y)); elseif (a <= 9.4e+173) tmp = Float64(j * Float64(a * c)); 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 <= -1.55e+227) tmp = t_1; elseif (a <= -4.2e+42) tmp = c * (a * j); elseif (a <= 1.05e+34) tmp = z * (x * y); elseif (a <= 9.4e+173) tmp = j * (a * 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[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.55e+227], t$95$1, If[LessEqual[a, -4.2e+42], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.05e+34], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.4e+173], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{if}\;a \leq -1.55 \cdot 10^{+227}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.2 \cdot 10^{+42}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{+34}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 9.4 \cdot 10^{+173}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.5499999999999999e227 or 9.4000000000000003e173 < a Initial program 66.2%
+-commutative66.2%
associate-+r-66.2%
fma-def68.7%
*-commutative68.7%
*-commutative68.7%
fma-neg68.7%
distribute-rgt-neg-in68.7%
Simplified68.7%
Taylor expanded in t around inf 69.0%
distribute-lft-out--69.0%
associate-*r*69.0%
mul-1-neg69.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in a around inf 64.0%
if -1.5499999999999999e227 < a < -4.19999999999999991e42Initial program 72.8%
+-commutative72.8%
associate-+r-72.8%
fma-def77.8%
*-commutative77.8%
*-commutative77.8%
fma-neg77.8%
distribute-rgt-neg-in77.8%
Simplified77.8%
Taylor expanded in a around inf 61.4%
mul-1-neg61.4%
unsub-neg61.4%
Simplified61.4%
Taylor expanded in c around inf 53.8%
*-commutative53.8%
Simplified53.8%
if -4.19999999999999991e42 < a < 1.05000000000000009e34Initial program 81.0%
+-commutative81.0%
associate-+r-81.0%
fma-def83.0%
*-commutative83.0%
*-commutative83.0%
fma-neg84.3%
distribute-rgt-neg-in84.3%
Simplified84.3%
Taylor expanded in z around inf 58.2%
Taylor expanded in y around inf 32.9%
if 1.05000000000000009e34 < a < 9.4000000000000003e173Initial program 74.6%
+-commutative74.6%
associate-+r-74.6%
fma-def74.6%
*-commutative74.6%
*-commutative74.6%
fma-neg74.6%
distribute-rgt-neg-in74.6%
Simplified74.6%
Taylor expanded in a around inf 58.5%
mul-1-neg58.5%
unsub-neg58.5%
Simplified58.5%
Taylor expanded in c around inf 45.9%
associate-*r*50.0%
*-commutative50.0%
Simplified50.0%
Final simplification42.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -4e+224)
(* t (* x (- a)))
(if (<= a -1.25e+42)
(* c (* a j))
(if (<= a 9e+33)
(* z (* x y))
(if (<= a 1.16e+174) (* j (* a c)) (* (* x t) (- a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -4e+224) {
tmp = t * (x * -a);
} else if (a <= -1.25e+42) {
tmp = c * (a * j);
} else if (a <= 9e+33) {
tmp = z * (x * y);
} else if (a <= 1.16e+174) {
tmp = j * (a * c);
} else {
tmp = (x * t) * -a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-4d+224)) then
tmp = t * (x * -a)
else if (a <= (-1.25d+42)) then
tmp = c * (a * j)
else if (a <= 9d+33) then
tmp = z * (x * y)
else if (a <= 1.16d+174) then
tmp = j * (a * c)
else
tmp = (x * t) * -a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -4e+224) {
tmp = t * (x * -a);
} else if (a <= -1.25e+42) {
tmp = c * (a * j);
} else if (a <= 9e+33) {
tmp = z * (x * y);
} else if (a <= 1.16e+174) {
tmp = j * (a * c);
} else {
tmp = (x * t) * -a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -4e+224: tmp = t * (x * -a) elif a <= -1.25e+42: tmp = c * (a * j) elif a <= 9e+33: tmp = z * (x * y) elif a <= 1.16e+174: tmp = j * (a * c) else: tmp = (x * t) * -a return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -4e+224) tmp = Float64(t * Float64(x * Float64(-a))); elseif (a <= -1.25e+42) tmp = Float64(c * Float64(a * j)); elseif (a <= 9e+33) tmp = Float64(z * Float64(x * y)); elseif (a <= 1.16e+174) tmp = Float64(j * Float64(a * c)); else tmp = Float64(Float64(x * t) * Float64(-a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -4e+224) tmp = t * (x * -a); elseif (a <= -1.25e+42) tmp = c * (a * j); elseif (a <= 9e+33) tmp = z * (x * y); elseif (a <= 1.16e+174) tmp = j * (a * c); else tmp = (x * t) * -a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -4e+224], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.25e+42], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9e+33], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.16e+174], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4 \cdot 10^{+224}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;a \leq -1.25 \cdot 10^{+42}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;a \leq 9 \cdot 10^{+33}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 1.16 \cdot 10^{+174}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\end{array}
\end{array}
if a < -3.99999999999999988e224Initial program 66.5%
+-commutative66.5%
associate-+r-66.5%
fma-def66.5%
*-commutative66.5%
*-commutative66.5%
fma-neg66.5%
distribute-rgt-neg-in66.5%
Simplified66.5%
Taylor expanded in t around inf 54.9%
distribute-lft-out--54.9%
associate-*r*54.9%
mul-1-neg54.9%
*-commutative54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in a around inf 47.8%
if -3.99999999999999988e224 < a < -1.25000000000000002e42Initial program 72.8%
+-commutative72.8%
associate-+r-72.8%
fma-def77.8%
*-commutative77.8%
*-commutative77.8%
fma-neg77.8%
distribute-rgt-neg-in77.8%
Simplified77.8%
Taylor expanded in a around inf 61.4%
mul-1-neg61.4%
unsub-neg61.4%
Simplified61.4%
Taylor expanded in c around inf 53.8%
*-commutative53.8%
Simplified53.8%
if -1.25000000000000002e42 < a < 9.0000000000000001e33Initial program 81.0%
+-commutative81.0%
associate-+r-81.0%
fma-def83.0%
*-commutative83.0%
*-commutative83.0%
fma-neg84.3%
distribute-rgt-neg-in84.3%
Simplified84.3%
Taylor expanded in z around inf 58.2%
Taylor expanded in y around inf 32.9%
if 9.0000000000000001e33 < a < 1.16000000000000003e174Initial program 74.6%
+-commutative74.6%
associate-+r-74.6%
fma-def74.6%
*-commutative74.6%
*-commutative74.6%
fma-neg74.6%
distribute-rgt-neg-in74.6%
Simplified74.6%
Taylor expanded in a around inf 58.5%
mul-1-neg58.5%
unsub-neg58.5%
Simplified58.5%
Taylor expanded in c around inf 45.9%
associate-*r*50.0%
*-commutative50.0%
Simplified50.0%
if 1.16000000000000003e174 < a Initial program 66.1%
+-commutative66.1%
associate-+r-66.1%
fma-def70.0%
*-commutative70.0%
*-commutative70.0%
fma-neg70.0%
distribute-rgt-neg-in70.0%
Simplified70.0%
Taylor expanded in a around inf 92.0%
mul-1-neg92.0%
unsub-neg92.0%
Simplified92.0%
Taylor expanded in c around 0 73.5%
mul-1-neg73.5%
distribute-lft-neg-out73.5%
*-commutative73.5%
Simplified73.5%
Final simplification42.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -6.8e+71) (not (<= x 7.8e+24))) (* y (* x z)) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -6.8e+71) || !(x <= 7.8e+24)) {
tmp = y * (x * z);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((x <= (-6.8d+71)) .or. (.not. (x <= 7.8d+24))) then
tmp = y * (x * z)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -6.8e+71) || !(x <= 7.8e+24)) {
tmp = y * (x * z);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -6.8e+71) or not (x <= 7.8e+24): tmp = y * (x * z) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -6.8e+71) || !(x <= 7.8e+24)) tmp = Float64(y * Float64(x * z)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -6.8e+71) || ~((x <= 7.8e+24))) tmp = y * (x * z); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -6.8e+71], N[Not[LessEqual[x, 7.8e+24]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.8 \cdot 10^{+71} \lor \neg \left(x \leq 7.8 \cdot 10^{+24}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if x < -6.7999999999999997e71 or 7.7999999999999995e24 < x Initial program 74.8%
+-commutative74.8%
associate-+r-74.8%
fma-def78.5%
*-commutative78.5%
*-commutative78.5%
fma-neg79.5%
distribute-rgt-neg-in79.5%
Simplified79.5%
Taylor expanded in i around 0 66.4%
Taylor expanded in y around inf 48.3%
if -6.7999999999999997e71 < x < 7.7999999999999995e24Initial program 78.3%
+-commutative78.3%
associate-+r-78.3%
fma-def79.6%
*-commutative79.6%
*-commutative79.6%
fma-neg80.3%
distribute-rgt-neg-in80.3%
Simplified80.3%
Taylor expanded in a around inf 38.8%
mul-1-neg38.8%
unsub-neg38.8%
Simplified38.8%
Taylor expanded in c around inf 30.8%
*-commutative30.8%
Simplified30.8%
Final simplification38.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -1.6e-15) (not (<= y 1.35e-64))) (* z (* x y)) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -1.6e-15) || !(y <= 1.35e-64)) {
tmp = z * (x * y);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((y <= (-1.6d-15)) .or. (.not. (y <= 1.35d-64))) then
tmp = z * (x * y)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -1.6e-15) || !(y <= 1.35e-64)) {
tmp = z * (x * y);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -1.6e-15) or not (y <= 1.35e-64): tmp = z * (x * y) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -1.6e-15) || !(y <= 1.35e-64)) tmp = Float64(z * Float64(x * y)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((y <= -1.6e-15) || ~((y <= 1.35e-64))) tmp = z * (x * y); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -1.6e-15], N[Not[LessEqual[y, 1.35e-64]], $MachinePrecision]], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.6 \cdot 10^{-15} \lor \neg \left(y \leq 1.35 \cdot 10^{-64}\right):\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if y < -1.6e-15 or 1.34999999999999993e-64 < y Initial program 72.7%
+-commutative72.7%
associate-+r-72.7%
fma-def76.8%
*-commutative76.8%
*-commutative76.8%
fma-neg77.5%
distribute-rgt-neg-in77.5%
Simplified77.5%
Taylor expanded in z around inf 57.5%
Taylor expanded in y around inf 43.5%
if -1.6e-15 < y < 1.34999999999999993e-64Initial program 82.1%
+-commutative82.1%
associate-+r-82.1%
fma-def82.1%
*-commutative82.1%
*-commutative82.1%
fma-neg83.1%
distribute-rgt-neg-in83.1%
Simplified83.1%
Taylor expanded in a around inf 45.8%
mul-1-neg45.8%
unsub-neg45.8%
Simplified45.8%
Taylor expanded in c around inf 32.4%
*-commutative32.4%
Simplified32.4%
Final simplification38.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= x -3.7e-221) (* j (* a c)) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -3.7e-221) {
tmp = j * (a * c);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-3.7d-221)) then
tmp = j * (a * c)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -3.7e-221) {
tmp = j * (a * c);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -3.7e-221: tmp = j * (a * c) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -3.7e-221) tmp = Float64(j * Float64(a * c)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -3.7e-221) tmp = j * (a * c); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -3.7e-221], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.7 \cdot 10^{-221}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if x < -3.69999999999999985e-221Initial program 77.4%
+-commutative77.4%
associate-+r-77.4%
fma-def80.3%
*-commutative80.3%
*-commutative80.3%
fma-neg81.3%
distribute-rgt-neg-in81.3%
Simplified81.3%
Taylor expanded in a around inf 39.1%
mul-1-neg39.1%
unsub-neg39.1%
Simplified39.1%
Taylor expanded in c around inf 19.0%
associate-*r*23.5%
*-commutative23.5%
Simplified23.5%
if -3.69999999999999985e-221 < x Initial program 76.4%
+-commutative76.4%
associate-+r-76.4%
fma-def78.4%
*-commutative78.4%
*-commutative78.4%
fma-neg79.0%
distribute-rgt-neg-in79.0%
Simplified79.0%
Taylor expanded in a around inf 36.1%
mul-1-neg36.1%
unsub-neg36.1%
Simplified36.1%
Taylor expanded in c around inf 27.6%
*-commutative27.6%
Simplified27.6%
Final simplification26.0%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 76.8%
+-commutative76.8%
associate-+r-76.8%
fma-def79.1%
*-commutative79.1%
*-commutative79.1%
fma-neg79.9%
distribute-rgt-neg-in79.9%
Simplified79.9%
Taylor expanded in a around inf 37.3%
mul-1-neg37.3%
unsub-neg37.3%
Simplified37.3%
Taylor expanded in c around inf 22.7%
*-commutative22.7%
Simplified22.7%
Final simplification22.7%
(FPCore (x y z t a b c i j) :precision binary64 (* c (* a j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (a * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = c * (a * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (a * j);
}
def code(x, y, z, t, a, b, c, i, j): return c * (a * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(c * Float64(a * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = c * (a * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(a \cdot j\right)
\end{array}
Initial program 76.8%
+-commutative76.8%
associate-+r-76.8%
fma-def79.1%
*-commutative79.1%
*-commutative79.1%
fma-neg79.9%
distribute-rgt-neg-in79.9%
Simplified79.9%
Taylor expanded in a around inf 37.3%
mul-1-neg37.3%
unsub-neg37.3%
Simplified37.3%
Taylor expanded in c around inf 24.2%
*-commutative24.2%
Simplified24.2%
Final simplification24.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023176
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))