
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(* j (- (* t c) (* y i)))
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c)))))))
(if (<= t_1 INFINITY) t_1 (* a (- (* b i) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 93.3%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
sub-neg0.0%
associate-+l+0.0%
fma-def13.2%
+-commutative13.2%
fma-def18.9%
sub-neg18.9%
+-commutative18.9%
*-commutative18.9%
distribute-rgt-neg-in18.9%
fma-def18.9%
*-commutative18.9%
distribute-rgt-neg-in18.9%
sub-neg18.9%
distribute-neg-in18.9%
unsub-neg18.9%
Simplified19.0%
Taylor expanded in a around inf 55.2%
+-commutative55.2%
mul-1-neg55.2%
unsub-neg55.2%
Simplified55.2%
Final simplification85.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (+ (* j (- (* t c) (* y i))) (* b (- (* a i) (* z c)))))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= y -7.1e+193)
t_1
(if (<= y -5.5e+129)
t_2
(if (<= y -6.2e+118)
t_3
(if (<= y 4.8e-94)
t_2
(if (<= y 3.4e-59) t_3 (if (<= y 3.7e+137) 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 = y * ((x * z) - (i * j));
double t_2 = (j * ((t * c) - (y * i))) + (b * ((a * i) - (z * c)));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (y <= -7.1e+193) {
tmp = t_1;
} else if (y <= -5.5e+129) {
tmp = t_2;
} else if (y <= -6.2e+118) {
tmp = t_3;
} else if (y <= 4.8e-94) {
tmp = t_2;
} else if (y <= 3.4e-59) {
tmp = t_3;
} else if (y <= 3.7e+137) {
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) :: t_3
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = (j * ((t * c) - (y * i))) + (b * ((a * i) - (z * c)))
t_3 = x * ((y * z) - (t * a))
if (y <= (-7.1d+193)) then
tmp = t_1
else if (y <= (-5.5d+129)) then
tmp = t_2
else if (y <= (-6.2d+118)) then
tmp = t_3
else if (y <= 4.8d-94) then
tmp = t_2
else if (y <= 3.4d-59) then
tmp = t_3
else if (y <= 3.7d+137) 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 = y * ((x * z) - (i * j));
double t_2 = (j * ((t * c) - (y * i))) + (b * ((a * i) - (z * c)));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (y <= -7.1e+193) {
tmp = t_1;
} else if (y <= -5.5e+129) {
tmp = t_2;
} else if (y <= -6.2e+118) {
tmp = t_3;
} else if (y <= 4.8e-94) {
tmp = t_2;
} else if (y <= 3.4e-59) {
tmp = t_3;
} else if (y <= 3.7e+137) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = (j * ((t * c) - (y * i))) + (b * ((a * i) - (z * c))) t_3 = x * ((y * z) - (t * a)) tmp = 0 if y <= -7.1e+193: tmp = t_1 elif y <= -5.5e+129: tmp = t_2 elif y <= -6.2e+118: tmp = t_3 elif y <= 4.8e-94: tmp = t_2 elif y <= 3.4e-59: tmp = t_3 elif y <= 3.7e+137: tmp = t_2 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))) t_2 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (y <= -7.1e+193) tmp = t_1; elseif (y <= -5.5e+129) tmp = t_2; elseif (y <= -6.2e+118) tmp = t_3; elseif (y <= 4.8e-94) tmp = t_2; elseif (y <= 3.4e-59) tmp = t_3; elseif (y <= 3.7e+137) 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 = y * ((x * z) - (i * j)); t_2 = (j * ((t * c) - (y * i))) + (b * ((a * i) - (z * c))); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (y <= -7.1e+193) tmp = t_1; elseif (y <= -5.5e+129) tmp = t_2; elseif (y <= -6.2e+118) tmp = t_3; elseif (y <= 4.8e-94) tmp = t_2; elseif (y <= 3.4e-59) tmp = t_3; elseif (y <= 3.7e+137) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.1e+193], t$95$1, If[LessEqual[y, -5.5e+129], t$95$2, If[LessEqual[y, -6.2e+118], t$95$3, If[LessEqual[y, 4.8e-94], t$95$2, If[LessEqual[y, 3.4e-59], t$95$3, If[LessEqual[y, 3.7e+137], t$95$2, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;y \leq -7.1 \cdot 10^{+193}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{+129}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -6.2 \cdot 10^{+118}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-94}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-59}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{+137}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -7.0999999999999997e193 or 3.7000000000000002e137 < y Initial program 49.2%
+-commutative49.2%
fma-def50.8%
*-commutative50.8%
*-commutative50.8%
*-commutative50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in t around 0 69.5%
Taylor expanded in y around inf 75.9%
*-commutative75.9%
mul-1-neg75.9%
unsub-neg75.9%
Simplified75.9%
if -7.0999999999999997e193 < y < -5.49999999999999984e129 or -6.19999999999999973e118 < y < 4.8e-94 or 3.40000000000000018e-59 < y < 3.7000000000000002e137Initial program 84.4%
cancel-sign-sub84.4%
cancel-sign-sub-inv84.4%
*-commutative84.4%
*-commutative84.4%
remove-double-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in x around 0 72.3%
if -5.49999999999999984e129 < y < -6.19999999999999973e118 or 4.8e-94 < y < 3.40000000000000018e-59Initial program 61.1%
sub-neg61.1%
associate-+l+61.1%
fma-def66.7%
+-commutative66.7%
fma-def72.2%
sub-neg72.2%
+-commutative72.2%
*-commutative72.2%
distribute-rgt-neg-in72.2%
fma-def72.2%
*-commutative72.2%
distribute-rgt-neg-in72.2%
sub-neg72.2%
distribute-neg-in72.2%
unsub-neg72.2%
Simplified72.6%
Taylor expanded in x around inf 83.6%
Final simplification74.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (+ (* x (- (* y z) (* t a))) t_1))
(t_3 (* j (- (* t c) (* y i)))))
(if (<= j -2.3e-54)
(+ t_3 t_1)
(if (<= j -1.7e-157)
t_2
(if (<= j -7.5e-187)
(* z (- (* x y) (* b c)))
(if (<= j 3.1e+142) 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 = b * ((a * i) - (z * c));
double t_2 = (x * ((y * z) - (t * a))) + t_1;
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.3e-54) {
tmp = t_3 + t_1;
} else if (j <= -1.7e-157) {
tmp = t_2;
} else if (j <= -7.5e-187) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 3.1e+142) {
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 = b * ((a * i) - (z * c))
t_2 = (x * ((y * z) - (t * a))) + t_1
t_3 = j * ((t * c) - (y * i))
if (j <= (-2.3d-54)) then
tmp = t_3 + t_1
else if (j <= (-1.7d-157)) then
tmp = t_2
else if (j <= (-7.5d-187)) then
tmp = z * ((x * y) - (b * c))
else if (j <= 3.1d+142) 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 = b * ((a * i) - (z * c));
double t_2 = (x * ((y * z) - (t * a))) + t_1;
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.3e-54) {
tmp = t_3 + t_1;
} else if (j <= -1.7e-157) {
tmp = t_2;
} else if (j <= -7.5e-187) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 3.1e+142) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = (x * ((y * z) - (t * a))) + t_1 t_3 = j * ((t * c) - (y * i)) tmp = 0 if j <= -2.3e-54: tmp = t_3 + t_1 elif j <= -1.7e-157: tmp = t_2 elif j <= -7.5e-187: tmp = z * ((x * y) - (b * c)) elif j <= 3.1e+142: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) t_3 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.3e-54) tmp = Float64(t_3 + t_1); elseif (j <= -1.7e-157) tmp = t_2; elseif (j <= -7.5e-187) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (j <= 3.1e+142) 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 = b * ((a * i) - (z * c)); t_2 = (x * ((y * z) - (t * a))) + t_1; t_3 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -2.3e-54) tmp = t_3 + t_1; elseif (j <= -1.7e-157) tmp = t_2; elseif (j <= -7.5e-187) tmp = z * ((x * y) - (b * c)); elseif (j <= 3.1e+142) 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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.3e-54], N[(t$95$3 + t$95$1), $MachinePrecision], If[LessEqual[j, -1.7e-157], t$95$2, If[LessEqual[j, -7.5e-187], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.1e+142], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) + t_1\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.3 \cdot 10^{-54}:\\
\;\;\;\;t_3 + t_1\\
\mathbf{elif}\;j \leq -1.7 \cdot 10^{-157}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -7.5 \cdot 10^{-187}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 3.1 \cdot 10^{+142}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -2.2999999999999999e-54Initial program 84.1%
cancel-sign-sub84.1%
cancel-sign-sub-inv84.1%
*-commutative84.1%
*-commutative84.1%
remove-double-neg84.1%
*-commutative84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in x around 0 76.8%
if -2.2999999999999999e-54 < j < -1.69999999999999989e-157 or -7.5000000000000004e-187 < j < 3.0999999999999999e142Initial program 74.1%
+-commutative74.1%
fma-def74.1%
*-commutative74.1%
*-commutative74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in j around 0 77.8%
if -1.69999999999999989e-157 < j < -7.5000000000000004e-187Initial program 11.9%
cancel-sign-sub11.9%
cancel-sign-sub-inv11.9%
*-commutative11.9%
*-commutative11.9%
remove-double-neg11.9%
*-commutative11.9%
*-commutative11.9%
Simplified11.9%
Taylor expanded in z around inf 67.8%
if 3.0999999999999999e142 < j Initial program 66.6%
cancel-sign-sub66.6%
cancel-sign-sub-inv66.6%
*-commutative66.6%
*-commutative66.6%
remove-double-neg66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in x around 0 75.2%
Taylor expanded in j around -inf 75.3%
Final simplification76.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (+ (* x (- (* y z) (* t a))) t_1))
(t_3 (* j (- (* t c) (* y i)))))
(if (<= j -2.4e-54)
(+ t_3 t_1)
(if (<= j -7.6e-154)
t_2
(if (<= j -6.6e-186)
(+ (- (* y (* x z)) (* y (* i j))) t_1)
(if (<= j 7.2e+143) 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 = b * ((a * i) - (z * c));
double t_2 = (x * ((y * z) - (t * a))) + t_1;
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.4e-54) {
tmp = t_3 + t_1;
} else if (j <= -7.6e-154) {
tmp = t_2;
} else if (j <= -6.6e-186) {
tmp = ((y * (x * z)) - (y * (i * j))) + t_1;
} else if (j <= 7.2e+143) {
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 = b * ((a * i) - (z * c))
t_2 = (x * ((y * z) - (t * a))) + t_1
t_3 = j * ((t * c) - (y * i))
if (j <= (-2.4d-54)) then
tmp = t_3 + t_1
else if (j <= (-7.6d-154)) then
tmp = t_2
else if (j <= (-6.6d-186)) then
tmp = ((y * (x * z)) - (y * (i * j))) + t_1
else if (j <= 7.2d+143) 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 = b * ((a * i) - (z * c));
double t_2 = (x * ((y * z) - (t * a))) + t_1;
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.4e-54) {
tmp = t_3 + t_1;
} else if (j <= -7.6e-154) {
tmp = t_2;
} else if (j <= -6.6e-186) {
tmp = ((y * (x * z)) - (y * (i * j))) + t_1;
} else if (j <= 7.2e+143) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = (x * ((y * z) - (t * a))) + t_1 t_3 = j * ((t * c) - (y * i)) tmp = 0 if j <= -2.4e-54: tmp = t_3 + t_1 elif j <= -7.6e-154: tmp = t_2 elif j <= -6.6e-186: tmp = ((y * (x * z)) - (y * (i * j))) + t_1 elif j <= 7.2e+143: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) t_3 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.4e-54) tmp = Float64(t_3 + t_1); elseif (j <= -7.6e-154) tmp = t_2; elseif (j <= -6.6e-186) tmp = Float64(Float64(Float64(y * Float64(x * z)) - Float64(y * Float64(i * j))) + t_1); elseif (j <= 7.2e+143) 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 = b * ((a * i) - (z * c)); t_2 = (x * ((y * z) - (t * a))) + t_1; t_3 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -2.4e-54) tmp = t_3 + t_1; elseif (j <= -7.6e-154) tmp = t_2; elseif (j <= -6.6e-186) tmp = ((y * (x * z)) - (y * (i * j))) + t_1; elseif (j <= 7.2e+143) 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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.4e-54], N[(t$95$3 + t$95$1), $MachinePrecision], If[LessEqual[j, -7.6e-154], t$95$2, If[LessEqual[j, -6.6e-186], N[(N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[j, 7.2e+143], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) + t_1\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.4 \cdot 10^{-54}:\\
\;\;\;\;t_3 + t_1\\
\mathbf{elif}\;j \leq -7.6 \cdot 10^{-154}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -6.6 \cdot 10^{-186}:\\
\;\;\;\;\left(y \cdot \left(x \cdot z\right) - y \cdot \left(i \cdot j\right)\right) + t_1\\
\mathbf{elif}\;j \leq 7.2 \cdot 10^{+143}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -2.40000000000000013e-54Initial program 84.1%
cancel-sign-sub84.1%
cancel-sign-sub-inv84.1%
*-commutative84.1%
*-commutative84.1%
remove-double-neg84.1%
*-commutative84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in x around 0 76.8%
if -2.40000000000000013e-54 < j < -7.60000000000000019e-154 or -6.59999999999999998e-186 < j < 7.1999999999999998e143Initial program 73.6%
+-commutative73.6%
fma-def73.6%
*-commutative73.6%
*-commutative73.6%
*-commutative73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in j around 0 77.2%
if -7.60000000000000019e-154 < j < -6.59999999999999998e-186Initial program 13.4%
+-commutative13.4%
fma-def13.4%
*-commutative13.4%
*-commutative13.4%
*-commutative13.4%
*-commutative13.4%
Simplified13.4%
Taylor expanded in t around 0 87.5%
if 7.1999999999999998e143 < j Initial program 66.6%
cancel-sign-sub66.6%
cancel-sign-sub-inv66.6%
*-commutative66.6%
*-commutative66.6%
remove-double-neg66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in x around 0 75.2%
Taylor expanded in j around -inf 75.3%
Final simplification77.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* a (* b i))))
(if (<= a -9.2e+92)
(* b (* a i))
(if (<= a -4e+52)
(* y (* x z))
(if (<= a -8.5e-27)
t_2
(if (<= a -3.8e-280)
t_1
(if (<= a 2.8e-208)
(* i (* y (- j)))
(if (<= a 5.6e+28)
t_1
(if (<= a 1e+209) (* z (* x y)) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (a <= -9.2e+92) {
tmp = b * (a * i);
} else if (a <= -4e+52) {
tmp = y * (x * z);
} else if (a <= -8.5e-27) {
tmp = t_2;
} else if (a <= -3.8e-280) {
tmp = t_1;
} else if (a <= 2.8e-208) {
tmp = i * (y * -j);
} else if (a <= 5.6e+28) {
tmp = t_1;
} else if (a <= 1e+209) {
tmp = z * (x * y);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (t * j)
t_2 = a * (b * i)
if (a <= (-9.2d+92)) then
tmp = b * (a * i)
else if (a <= (-4d+52)) then
tmp = y * (x * z)
else if (a <= (-8.5d-27)) then
tmp = t_2
else if (a <= (-3.8d-280)) then
tmp = t_1
else if (a <= 2.8d-208) then
tmp = i * (y * -j)
else if (a <= 5.6d+28) then
tmp = t_1
else if (a <= 1d+209) then
tmp = z * (x * y)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (a <= -9.2e+92) {
tmp = b * (a * i);
} else if (a <= -4e+52) {
tmp = y * (x * z);
} else if (a <= -8.5e-27) {
tmp = t_2;
} else if (a <= -3.8e-280) {
tmp = t_1;
} else if (a <= 2.8e-208) {
tmp = i * (y * -j);
} else if (a <= 5.6e+28) {
tmp = t_1;
} else if (a <= 1e+209) {
tmp = z * (x * y);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = a * (b * i) tmp = 0 if a <= -9.2e+92: tmp = b * (a * i) elif a <= -4e+52: tmp = y * (x * z) elif a <= -8.5e-27: tmp = t_2 elif a <= -3.8e-280: tmp = t_1 elif a <= 2.8e-208: tmp = i * (y * -j) elif a <= 5.6e+28: tmp = t_1 elif a <= 1e+209: tmp = z * (x * y) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (a <= -9.2e+92) tmp = Float64(b * Float64(a * i)); elseif (a <= -4e+52) tmp = Float64(y * Float64(x * z)); elseif (a <= -8.5e-27) tmp = t_2; elseif (a <= -3.8e-280) tmp = t_1; elseif (a <= 2.8e-208) tmp = Float64(i * Float64(y * Float64(-j))); elseif (a <= 5.6e+28) tmp = t_1; elseif (a <= 1e+209) tmp = Float64(z * Float64(x * y)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = a * (b * i); tmp = 0.0; if (a <= -9.2e+92) tmp = b * (a * i); elseif (a <= -4e+52) tmp = y * (x * z); elseif (a <= -8.5e-27) tmp = t_2; elseif (a <= -3.8e-280) tmp = t_1; elseif (a <= 2.8e-208) tmp = i * (y * -j); elseif (a <= 5.6e+28) tmp = t_1; elseif (a <= 1e+209) tmp = z * (x * y); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.2e+92], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4e+52], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8.5e-27], t$95$2, If[LessEqual[a, -3.8e-280], t$95$1, If[LessEqual[a, 2.8e-208], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.6e+28], t$95$1, If[LessEqual[a, 1e+209], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{+92}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;a \leq -4 \cdot 10^{+52}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-27}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-280}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-208}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 5.6 \cdot 10^{+28}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 10^{+209}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -9.19999999999999994e92Initial program 65.1%
cancel-sign-sub65.1%
cancel-sign-sub-inv65.1%
*-commutative65.1%
*-commutative65.1%
remove-double-neg65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in b around inf 49.5%
Taylor expanded in a around inf 50.1%
if -9.19999999999999994e92 < a < -4e52Initial program 80.3%
+-commutative80.3%
fma-def80.3%
*-commutative80.3%
*-commutative80.3%
*-commutative80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in t around 0 70.5%
Taylor expanded in x around inf 50.7%
if -4e52 < a < -8.50000000000000033e-27 or 1.0000000000000001e209 < a Initial program 63.8%
+-commutative63.8%
fma-def68.3%
*-commutative68.3%
*-commutative68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in t around 0 64.5%
Taylor expanded in a around inf 58.5%
associate-*r*63.1%
*-commutative63.1%
associate-*r*65.2%
Simplified65.2%
if -8.50000000000000033e-27 < a < -3.8000000000000001e-280 or 2.80000000000000001e-208 < a < 5.6000000000000003e28Initial program 78.8%
sub-neg78.8%
associate-+l+78.8%
fma-def80.9%
+-commutative80.9%
fma-def80.9%
sub-neg80.9%
+-commutative80.9%
*-commutative80.9%
distribute-rgt-neg-in80.9%
fma-def80.9%
*-commutative80.9%
distribute-rgt-neg-in80.9%
sub-neg80.9%
distribute-neg-in80.9%
unsub-neg80.9%
Simplified80.9%
Taylor expanded in t around inf 41.2%
*-commutative41.2%
mul-1-neg41.2%
unsub-neg41.2%
Simplified41.2%
Taylor expanded in c around inf 34.8%
if -3.8000000000000001e-280 < a < 2.80000000000000001e-208Initial program 86.4%
+-commutative86.4%
fma-def86.4%
*-commutative86.4%
*-commutative86.4%
*-commutative86.4%
*-commutative86.4%
Simplified86.4%
Taylor expanded in t around 0 72.9%
Taylor expanded in j around inf 36.1%
*-commutative36.1%
associate-*r*42.7%
*-commutative42.7%
mul-1-neg42.7%
distribute-rgt-neg-in42.7%
distribute-rgt-neg-in42.7%
Simplified42.7%
if 5.6000000000000003e28 < a < 1.0000000000000001e209Initial program 72.9%
cancel-sign-sub72.9%
cancel-sign-sub-inv72.9%
*-commutative72.9%
*-commutative72.9%
remove-double-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in z around inf 55.2%
Taylor expanded in y around inf 41.8%
Final simplification45.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* c (- (* t j) (* z b))))
(t_3 (* a (- (* b i) (* x t)))))
(if (<= a -4.8e+64)
t_3
(if (<= a 3.1e-281)
t_2
(if (<= a 6.4e-18)
t_1
(if (<= a 3.1e+69) t_2 (if (<= a 5.5e+148) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = c * ((t * j) - (z * b));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4.8e+64) {
tmp = t_3;
} else if (a <= 3.1e-281) {
tmp = t_2;
} else if (a <= 6.4e-18) {
tmp = t_1;
} else if (a <= 3.1e+69) {
tmp = t_2;
} else if (a <= 5.5e+148) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = c * ((t * j) - (z * b))
t_3 = a * ((b * i) - (x * t))
if (a <= (-4.8d+64)) then
tmp = t_3
else if (a <= 3.1d-281) then
tmp = t_2
else if (a <= 6.4d-18) then
tmp = t_1
else if (a <= 3.1d+69) then
tmp = t_2
else if (a <= 5.5d+148) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = c * ((t * j) - (z * b));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4.8e+64) {
tmp = t_3;
} else if (a <= 3.1e-281) {
tmp = t_2;
} else if (a <= 6.4e-18) {
tmp = t_1;
} else if (a <= 3.1e+69) {
tmp = t_2;
} else if (a <= 5.5e+148) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = c * ((t * j) - (z * b)) t_3 = a * ((b * i) - (x * t)) tmp = 0 if a <= -4.8e+64: tmp = t_3 elif a <= 3.1e-281: tmp = t_2 elif a <= 6.4e-18: tmp = t_1 elif a <= 3.1e+69: tmp = t_2 elif a <= 5.5e+148: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -4.8e+64) tmp = t_3; elseif (a <= 3.1e-281) tmp = t_2; elseif (a <= 6.4e-18) tmp = t_1; elseif (a <= 3.1e+69) tmp = t_2; elseif (a <= 5.5e+148) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = c * ((t * j) - (z * b)); t_3 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -4.8e+64) tmp = t_3; elseif (a <= 3.1e-281) tmp = t_2; elseif (a <= 6.4e-18) tmp = t_1; elseif (a <= 3.1e+69) tmp = t_2; elseif (a <= 5.5e+148) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.8e+64], t$95$3, If[LessEqual[a, 3.1e-281], t$95$2, If[LessEqual[a, 6.4e-18], t$95$1, If[LessEqual[a, 3.1e+69], t$95$2, If[LessEqual[a, 5.5e+148], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -4.8 \cdot 10^{+64}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-281}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 6.4 \cdot 10^{-18}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{+69}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{+148}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if a < -4.79999999999999999e64 or 5.5e148 < a Initial program 63.9%
sub-neg63.9%
associate-+l+63.9%
fma-def67.2%
+-commutative67.2%
fma-def70.5%
sub-neg70.5%
+-commutative70.5%
*-commutative70.5%
distribute-rgt-neg-in70.5%
fma-def70.5%
*-commutative70.5%
distribute-rgt-neg-in70.5%
sub-neg70.5%
distribute-neg-in70.5%
unsub-neg70.5%
Simplified70.5%
Taylor expanded in a around inf 70.9%
+-commutative70.9%
mul-1-neg70.9%
unsub-neg70.9%
Simplified70.9%
if -4.79999999999999999e64 < a < 3.1000000000000002e-281 or 6.3999999999999998e-18 < a < 3.0999999999999998e69Initial program 83.1%
+-commutative83.1%
fma-def83.1%
*-commutative83.1%
*-commutative83.1%
*-commutative83.1%
*-commutative83.1%
Simplified83.1%
Taylor expanded in c around inf 55.6%
if 3.1000000000000002e-281 < a < 6.3999999999999998e-18 or 3.0999999999999998e69 < a < 5.5e148Initial program 74.8%
+-commutative74.8%
fma-def74.8%
*-commutative74.8%
*-commutative74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in t around 0 64.1%
Taylor expanded in y around inf 53.4%
*-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
Simplified53.4%
Final simplification60.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= j -6.5e+39)
(* i (* y (- j)))
(if (<= j 2.5e+63)
t_1
(if (<= j 3.3e+99)
(* y (* x z))
(if (<= j 4.9e+157) t_1 (* c (* t j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (j <= -6.5e+39) {
tmp = i * (y * -j);
} else if (j <= 2.5e+63) {
tmp = t_1;
} else if (j <= 3.3e+99) {
tmp = y * (x * z);
} else if (j <= 4.9e+157) {
tmp = t_1;
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (j <= (-6.5d+39)) then
tmp = i * (y * -j)
else if (j <= 2.5d+63) then
tmp = t_1
else if (j <= 3.3d+99) then
tmp = y * (x * z)
else if (j <= 4.9d+157) then
tmp = t_1
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (j <= -6.5e+39) {
tmp = i * (y * -j);
} else if (j <= 2.5e+63) {
tmp = t_1;
} else if (j <= 3.3e+99) {
tmp = y * (x * z);
} else if (j <= 4.9e+157) {
tmp = t_1;
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if j <= -6.5e+39: tmp = i * (y * -j) elif j <= 2.5e+63: tmp = t_1 elif j <= 3.3e+99: tmp = y * (x * z) elif j <= 4.9e+157: tmp = t_1 else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (j <= -6.5e+39) tmp = Float64(i * Float64(y * Float64(-j))); elseif (j <= 2.5e+63) tmp = t_1; elseif (j <= 3.3e+99) tmp = Float64(y * Float64(x * z)); elseif (j <= 4.9e+157) tmp = t_1; else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (j <= -6.5e+39) tmp = i * (y * -j); elseif (j <= 2.5e+63) tmp = t_1; elseif (j <= 3.3e+99) tmp = y * (x * z); elseif (j <= 4.9e+157) tmp = t_1; else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.5e+39], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.5e+63], t$95$1, If[LessEqual[j, 3.3e+99], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.9e+157], t$95$1, N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;j \leq -6.5 \cdot 10^{+39}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;j \leq 2.5 \cdot 10^{+63}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 3.3 \cdot 10^{+99}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 4.9 \cdot 10^{+157}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if j < -6.5000000000000001e39Initial program 82.0%
+-commutative82.0%
fma-def83.8%
*-commutative83.8%
*-commutative83.8%
*-commutative83.8%
*-commutative83.8%
Simplified83.8%
Taylor expanded in t around 0 63.0%
Taylor expanded in j around inf 39.5%
*-commutative39.5%
associate-*r*41.3%
*-commutative41.3%
mul-1-neg41.3%
distribute-rgt-neg-in41.3%
distribute-rgt-neg-in41.3%
Simplified41.3%
if -6.5000000000000001e39 < j < 2.50000000000000005e63 or 3.2999999999999999e99 < j < 4.9000000000000001e157Initial program 71.9%
sub-neg71.9%
associate-+l+71.9%
fma-def75.0%
+-commutative75.0%
fma-def75.0%
sub-neg75.0%
+-commutative75.0%
*-commutative75.0%
distribute-rgt-neg-in75.0%
fma-def75.0%
*-commutative75.0%
distribute-rgt-neg-in75.0%
sub-neg75.0%
distribute-neg-in75.0%
unsub-neg75.0%
Simplified75.1%
Taylor expanded in a around inf 48.7%
+-commutative48.7%
mul-1-neg48.7%
unsub-neg48.7%
Simplified48.7%
if 2.50000000000000005e63 < j < 3.2999999999999999e99Initial program 77.4%
+-commutative77.4%
fma-def77.4%
*-commutative77.4%
*-commutative77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in t around 0 67.7%
Taylor expanded in x around inf 78.9%
if 4.9000000000000001e157 < j Initial program 68.9%
sub-neg68.9%
associate-+l+68.9%
fma-def68.9%
+-commutative68.9%
fma-def75.8%
sub-neg75.8%
+-commutative75.8%
*-commutative75.8%
distribute-rgt-neg-in75.8%
fma-def75.8%
*-commutative75.8%
distribute-rgt-neg-in75.8%
sub-neg75.8%
distribute-neg-in75.8%
unsub-neg75.8%
Simplified75.8%
Taylor expanded in t around inf 60.1%
*-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
Simplified60.1%
Taylor expanded in c around inf 66.3%
Final simplification50.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -1.25e+65)
t_2
(if (<= b -4.2e-54)
t_1
(if (<= b 1.56e-263)
(* t (- (* c j) (* x a)))
(if (<= b 6.2e+33) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.25e+65) {
tmp = t_2;
} else if (b <= -4.2e-54) {
tmp = t_1;
} else if (b <= 1.56e-263) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 6.2e+33) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = b * ((a * i) - (z * c))
if (b <= (-1.25d+65)) then
tmp = t_2
else if (b <= (-4.2d-54)) then
tmp = t_1
else if (b <= 1.56d-263) then
tmp = t * ((c * j) - (x * a))
else if (b <= 6.2d+33) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.25e+65) {
tmp = t_2;
} else if (b <= -4.2e-54) {
tmp = t_1;
} else if (b <= 1.56e-263) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 6.2e+33) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.25e+65: tmp = t_2 elif b <= -4.2e-54: tmp = t_1 elif b <= 1.56e-263: tmp = t * ((c * j) - (x * a)) elif b <= 6.2e+33: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.25e+65) tmp = t_2; elseif (b <= -4.2e-54) tmp = t_1; elseif (b <= 1.56e-263) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 6.2e+33) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.25e+65) tmp = t_2; elseif (b <= -4.2e-54) tmp = t_1; elseif (b <= 1.56e-263) tmp = t * ((c * j) - (x * a)); elseif (b <= 6.2e+33) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+65], t$95$2, If[LessEqual[b, -4.2e-54], t$95$1, If[LessEqual[b, 1.56e-263], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2e+33], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+65}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{-54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.56 \cdot 10^{-263}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{+33}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.24999999999999993e65 or 6.2e33 < b Initial program 71.2%
cancel-sign-sub71.2%
cancel-sign-sub-inv71.2%
*-commutative71.2%
*-commutative71.2%
remove-double-neg71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in b around inf 72.9%
if -1.24999999999999993e65 < b < -4.2e-54 or 1.5599999999999999e-263 < b < 6.2e33Initial program 74.2%
+-commutative74.2%
fma-def74.2%
*-commutative74.2%
*-commutative74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in t around 0 62.8%
Taylor expanded in y around inf 56.9%
*-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
Simplified56.9%
if -4.2e-54 < b < 1.5599999999999999e-263Initial program 79.2%
sub-neg79.2%
associate-+l+79.2%
fma-def80.9%
+-commutative80.9%
fma-def80.9%
sub-neg80.9%
+-commutative80.9%
*-commutative80.9%
distribute-rgt-neg-in80.9%
fma-def80.9%
*-commutative80.9%
distribute-rgt-neg-in80.9%
sub-neg80.9%
distribute-neg-in80.9%
unsub-neg80.9%
Simplified81.0%
Taylor expanded in t around inf 54.6%
*-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
Simplified54.6%
Final simplification63.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -9.6e+70)
t_1
(if (<= b -1.25e-50)
(* y (- (* x z) (* i j)))
(if (<= b -4.7e-219)
(* t (- (* c j) (* x a)))
(if (<= b 900000000000.0) (* 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -9.6e+70) {
tmp = t_1;
} else if (b <= -1.25e-50) {
tmp = y * ((x * z) - (i * j));
} else if (b <= -4.7e-219) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 900000000000.0) {
tmp = 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 = b * ((a * i) - (z * c))
if (b <= (-9.6d+70)) then
tmp = t_1
else if (b <= (-1.25d-50)) then
tmp = y * ((x * z) - (i * j))
else if (b <= (-4.7d-219)) then
tmp = t * ((c * j) - (x * a))
else if (b <= 900000000000.0d0) then
tmp = 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -9.6e+70) {
tmp = t_1;
} else if (b <= -1.25e-50) {
tmp = y * ((x * z) - (i * j));
} else if (b <= -4.7e-219) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 900000000000.0) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -9.6e+70: tmp = t_1 elif b <= -1.25e-50: tmp = y * ((x * z) - (i * j)) elif b <= -4.7e-219: tmp = t * ((c * j) - (x * a)) elif b <= 900000000000.0: tmp = 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(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -9.6e+70) tmp = t_1; elseif (b <= -1.25e-50) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= -4.7e-219) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 900000000000.0) tmp = 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 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -9.6e+70) tmp = t_1; elseif (b <= -1.25e-50) tmp = y * ((x * z) - (i * j)); elseif (b <= -4.7e-219) tmp = t * ((c * j) - (x * a)); elseif (b <= 900000000000.0) tmp = 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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.6e+70], t$95$1, If[LessEqual[b, -1.25e-50], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.7e-219], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 900000000000.0], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -9.6 \cdot 10^{+70}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.25 \cdot 10^{-50}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq -4.7 \cdot 10^{-219}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 900000000000:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -9.59999999999999947e70 or 9e11 < b Initial program 71.9%
cancel-sign-sub71.9%
cancel-sign-sub-inv71.9%
*-commutative71.9%
*-commutative71.9%
remove-double-neg71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in b around inf 72.0%
if -9.59999999999999947e70 < b < -1.24999999999999992e-50Initial program 59.9%
+-commutative59.9%
fma-def59.9%
*-commutative59.9%
*-commutative59.9%
*-commutative59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in t around 0 56.5%
Taylor expanded in y around inf 60.7%
*-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
Simplified60.7%
if -1.24999999999999992e-50 < b < -4.7e-219Initial program 79.9%
sub-neg79.9%
associate-+l+79.9%
fma-def82.8%
+-commutative82.8%
fma-def82.8%
sub-neg82.8%
+-commutative82.8%
*-commutative82.8%
distribute-rgt-neg-in82.8%
fma-def82.8%
*-commutative82.8%
distribute-rgt-neg-in82.8%
sub-neg82.8%
distribute-neg-in82.8%
unsub-neg82.8%
Simplified83.0%
Taylor expanded in t around inf 58.4%
*-commutative58.4%
mul-1-neg58.4%
unsub-neg58.4%
Simplified58.4%
if -4.7e-219 < b < 9e11Initial program 79.1%
sub-neg79.1%
associate-+l+79.1%
fma-def79.1%
+-commutative79.1%
fma-def79.1%
sub-neg79.1%
+-commutative79.1%
*-commutative79.1%
distribute-rgt-neg-in79.1%
fma-def79.1%
*-commutative79.1%
distribute-rgt-neg-in79.1%
sub-neg79.1%
distribute-neg-in79.1%
unsub-neg79.1%
Simplified79.1%
Taylor expanded in x around inf 54.7%
Final simplification63.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* a (* b i))))
(if (<= a -7.2e+92)
t_2
(if (<= a -3.4e+51)
t_1
(if (<= a -6e-24)
t_2
(if (<= a 1e+28) (* c (* t j)) (if (<= a 9.5e+208) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = a * (b * i);
double tmp;
if (a <= -7.2e+92) {
tmp = t_2;
} else if (a <= -3.4e+51) {
tmp = t_1;
} else if (a <= -6e-24) {
tmp = t_2;
} else if (a <= 1e+28) {
tmp = c * (t * j);
} else if (a <= 9.5e+208) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (x * z)
t_2 = a * (b * i)
if (a <= (-7.2d+92)) then
tmp = t_2
else if (a <= (-3.4d+51)) then
tmp = t_1
else if (a <= (-6d-24)) then
tmp = t_2
else if (a <= 1d+28) then
tmp = c * (t * j)
else if (a <= 9.5d+208) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = a * (b * i);
double tmp;
if (a <= -7.2e+92) {
tmp = t_2;
} else if (a <= -3.4e+51) {
tmp = t_1;
} else if (a <= -6e-24) {
tmp = t_2;
} else if (a <= 1e+28) {
tmp = c * (t * j);
} else if (a <= 9.5e+208) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = a * (b * i) tmp = 0 if a <= -7.2e+92: tmp = t_2 elif a <= -3.4e+51: tmp = t_1 elif a <= -6e-24: tmp = t_2 elif a <= 1e+28: tmp = c * (t * j) elif a <= 9.5e+208: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (a <= -7.2e+92) tmp = t_2; elseif (a <= -3.4e+51) tmp = t_1; elseif (a <= -6e-24) tmp = t_2; elseif (a <= 1e+28) tmp = Float64(c * Float64(t * j)); elseif (a <= 9.5e+208) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = a * (b * i); tmp = 0.0; if (a <= -7.2e+92) tmp = t_2; elseif (a <= -3.4e+51) tmp = t_1; elseif (a <= -6e-24) tmp = t_2; elseif (a <= 1e+28) tmp = c * (t * j); elseif (a <= 9.5e+208) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.2e+92], t$95$2, If[LessEqual[a, -3.4e+51], t$95$1, If[LessEqual[a, -6e-24], t$95$2, If[LessEqual[a, 1e+28], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+208], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;a \leq -7.2 \cdot 10^{+92}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -3.4 \cdot 10^{+51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -6 \cdot 10^{-24}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 10^{+28}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+208}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -7.2e92 or -3.39999999999999984e51 < a < -5.99999999999999991e-24 or 9.4999999999999996e208 < a Initial program 64.4%
+-commutative64.4%
fma-def67.9%
*-commutative67.9%
*-commutative67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in t around 0 61.5%
Taylor expanded in a around inf 53.2%
associate-*r*56.6%
*-commutative56.6%
associate-*r*56.6%
Simplified56.6%
if -7.2e92 < a < -3.39999999999999984e51 or 9.99999999999999958e27 < a < 9.4999999999999996e208Initial program 74.5%
+-commutative74.5%
fma-def76.6%
*-commutative76.6%
*-commutative76.6%
*-commutative76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in t around 0 57.2%
Taylor expanded in x around inf 40.6%
if -5.99999999999999991e-24 < a < 9.99999999999999958e27Initial program 80.6%
sub-neg80.6%
associate-+l+80.6%
fma-def82.2%
+-commutative82.2%
fma-def82.2%
sub-neg82.2%
+-commutative82.2%
*-commutative82.2%
distribute-rgt-neg-in82.2%
fma-def82.2%
*-commutative82.2%
distribute-rgt-neg-in82.2%
sub-neg82.2%
distribute-neg-in82.2%
unsub-neg82.2%
Simplified82.2%
Taylor expanded in t around inf 38.4%
*-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
Simplified38.4%
Taylor expanded in c around inf 31.9%
Final simplification41.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* a (* b i))))
(if (<= a -8.8e+95)
(* b (* a i))
(if (<= a -5e+51)
t_1
(if (<= a -2.65e-23)
t_2
(if (<= a 2.6e+27) (* c (* t j)) (if (<= a 9.5e+208) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = a * (b * i);
double tmp;
if (a <= -8.8e+95) {
tmp = b * (a * i);
} else if (a <= -5e+51) {
tmp = t_1;
} else if (a <= -2.65e-23) {
tmp = t_2;
} else if (a <= 2.6e+27) {
tmp = c * (t * j);
} else if (a <= 9.5e+208) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (x * z)
t_2 = a * (b * i)
if (a <= (-8.8d+95)) then
tmp = b * (a * i)
else if (a <= (-5d+51)) then
tmp = t_1
else if (a <= (-2.65d-23)) then
tmp = t_2
else if (a <= 2.6d+27) then
tmp = c * (t * j)
else if (a <= 9.5d+208) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = a * (b * i);
double tmp;
if (a <= -8.8e+95) {
tmp = b * (a * i);
} else if (a <= -5e+51) {
tmp = t_1;
} else if (a <= -2.65e-23) {
tmp = t_2;
} else if (a <= 2.6e+27) {
tmp = c * (t * j);
} else if (a <= 9.5e+208) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = a * (b * i) tmp = 0 if a <= -8.8e+95: tmp = b * (a * i) elif a <= -5e+51: tmp = t_1 elif a <= -2.65e-23: tmp = t_2 elif a <= 2.6e+27: tmp = c * (t * j) elif a <= 9.5e+208: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (a <= -8.8e+95) tmp = Float64(b * Float64(a * i)); elseif (a <= -5e+51) tmp = t_1; elseif (a <= -2.65e-23) tmp = t_2; elseif (a <= 2.6e+27) tmp = Float64(c * Float64(t * j)); elseif (a <= 9.5e+208) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = a * (b * i); tmp = 0.0; if (a <= -8.8e+95) tmp = b * (a * i); elseif (a <= -5e+51) tmp = t_1; elseif (a <= -2.65e-23) tmp = t_2; elseif (a <= 2.6e+27) tmp = c * (t * j); elseif (a <= 9.5e+208) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.8e+95], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5e+51], t$95$1, If[LessEqual[a, -2.65e-23], t$95$2, If[LessEqual[a, 2.6e+27], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+208], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;a \leq -8.8 \cdot 10^{+95}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;a \leq -5 \cdot 10^{+51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.65 \cdot 10^{-23}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+27}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+208}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -8.7999999999999996e95Initial program 65.1%
cancel-sign-sub65.1%
cancel-sign-sub-inv65.1%
*-commutative65.1%
*-commutative65.1%
remove-double-neg65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in b around inf 49.5%
Taylor expanded in a around inf 50.1%
if -8.7999999999999996e95 < a < -5e51 or 2.60000000000000009e27 < a < 9.4999999999999996e208Initial program 74.5%
+-commutative74.5%
fma-def76.6%
*-commutative76.6%
*-commutative76.6%
*-commutative76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in t around 0 57.2%
Taylor expanded in x around inf 40.6%
if -5e51 < a < -2.65000000000000021e-23 or 9.4999999999999996e208 < a Initial program 63.8%
+-commutative63.8%
fma-def68.3%
*-commutative68.3%
*-commutative68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in t around 0 64.5%
Taylor expanded in a around inf 58.5%
associate-*r*63.1%
*-commutative63.1%
associate-*r*65.2%
Simplified65.2%
if -2.65000000000000021e-23 < a < 2.60000000000000009e27Initial program 80.6%
sub-neg80.6%
associate-+l+80.6%
fma-def82.2%
+-commutative82.2%
fma-def82.2%
sub-neg82.2%
+-commutative82.2%
*-commutative82.2%
distribute-rgt-neg-in82.2%
fma-def82.2%
*-commutative82.2%
distribute-rgt-neg-in82.2%
sub-neg82.2%
distribute-neg-in82.2%
unsub-neg82.2%
Simplified82.2%
Taylor expanded in t around inf 38.4%
*-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
Simplified38.4%
Taylor expanded in c around inf 31.9%
Final simplification42.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))))
(if (<= a -1.1e+98)
(* b (* a i))
(if (<= a -2.3e+54)
(* y (* x z))
(if (<= a -7.5e-27)
t_1
(if (<= a 1.35e+28)
(* c (* t j))
(if (<= a 9.5e+208) (* z (* x y)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (a <= -1.1e+98) {
tmp = b * (a * i);
} else if (a <= -2.3e+54) {
tmp = y * (x * z);
} else if (a <= -7.5e-27) {
tmp = t_1;
} else if (a <= 1.35e+28) {
tmp = c * (t * j);
} else if (a <= 9.5e+208) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * i)
if (a <= (-1.1d+98)) then
tmp = b * (a * i)
else if (a <= (-2.3d+54)) then
tmp = y * (x * z)
else if (a <= (-7.5d-27)) then
tmp = t_1
else if (a <= 1.35d+28) then
tmp = c * (t * j)
else if (a <= 9.5d+208) then
tmp = z * (x * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (a <= -1.1e+98) {
tmp = b * (a * i);
} else if (a <= -2.3e+54) {
tmp = y * (x * z);
} else if (a <= -7.5e-27) {
tmp = t_1;
} else if (a <= 1.35e+28) {
tmp = c * (t * j);
} else if (a <= 9.5e+208) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if a <= -1.1e+98: tmp = b * (a * i) elif a <= -2.3e+54: tmp = y * (x * z) elif a <= -7.5e-27: tmp = t_1 elif a <= 1.35e+28: tmp = c * (t * j) elif a <= 9.5e+208: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) tmp = 0.0 if (a <= -1.1e+98) tmp = Float64(b * Float64(a * i)); elseif (a <= -2.3e+54) tmp = Float64(y * Float64(x * z)); elseif (a <= -7.5e-27) tmp = t_1; elseif (a <= 1.35e+28) tmp = Float64(c * Float64(t * j)); elseif (a <= 9.5e+208) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); tmp = 0.0; if (a <= -1.1e+98) tmp = b * (a * i); elseif (a <= -2.3e+54) tmp = y * (x * z); elseif (a <= -7.5e-27) tmp = t_1; elseif (a <= 1.35e+28) tmp = c * (t * j); elseif (a <= 9.5e+208) tmp = z * (x * y); 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[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.1e+98], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.3e+54], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.5e-27], t$95$1, If[LessEqual[a, 1.35e+28], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+208], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;a \leq -1.1 \cdot 10^{+98}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;a \leq -2.3 \cdot 10^{+54}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq -7.5 \cdot 10^{-27}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{+28}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+208}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.10000000000000004e98Initial program 65.1%
cancel-sign-sub65.1%
cancel-sign-sub-inv65.1%
*-commutative65.1%
*-commutative65.1%
remove-double-neg65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in b around inf 49.5%
Taylor expanded in a around inf 50.1%
if -1.10000000000000004e98 < a < -2.29999999999999994e54Initial program 80.3%
+-commutative80.3%
fma-def80.3%
*-commutative80.3%
*-commutative80.3%
*-commutative80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in t around 0 70.5%
Taylor expanded in x around inf 50.7%
if -2.29999999999999994e54 < a < -7.50000000000000029e-27 or 9.4999999999999996e208 < a Initial program 63.8%
+-commutative63.8%
fma-def68.3%
*-commutative68.3%
*-commutative68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in t around 0 64.5%
Taylor expanded in a around inf 58.5%
associate-*r*63.1%
*-commutative63.1%
associate-*r*65.2%
Simplified65.2%
if -7.50000000000000029e-27 < a < 1.3500000000000001e28Initial program 80.6%
sub-neg80.6%
associate-+l+80.6%
fma-def82.2%
+-commutative82.2%
fma-def82.2%
sub-neg82.2%
+-commutative82.2%
*-commutative82.2%
distribute-rgt-neg-in82.2%
fma-def82.2%
*-commutative82.2%
distribute-rgt-neg-in82.2%
sub-neg82.2%
distribute-neg-in82.2%
unsub-neg82.2%
Simplified82.2%
Taylor expanded in t around inf 38.4%
*-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
Simplified38.4%
Taylor expanded in c around inf 31.9%
if 1.3500000000000001e28 < a < 9.4999999999999996e208Initial program 72.9%
cancel-sign-sub72.9%
cancel-sign-sub-inv72.9%
*-commutative72.9%
*-commutative72.9%
remove-double-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in z around inf 55.2%
Taylor expanded in y around inf 41.8%
Final simplification42.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -3.8e+95)
(* b (* a i))
(if (<= a -7.1e+30)
(* y (* x z))
(if (<= a -2.55e-24)
(* b (* z (- c)))
(if (<= a 2.9e+27)
(* c (* t j))
(if (<= a 9.5e+208) (* z (* x y)) (* a (* b i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3.8e+95) {
tmp = b * (a * i);
} else if (a <= -7.1e+30) {
tmp = y * (x * z);
} else if (a <= -2.55e-24) {
tmp = b * (z * -c);
} else if (a <= 2.9e+27) {
tmp = c * (t * j);
} else if (a <= 9.5e+208) {
tmp = z * (x * y);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-3.8d+95)) then
tmp = b * (a * i)
else if (a <= (-7.1d+30)) then
tmp = y * (x * z)
else if (a <= (-2.55d-24)) then
tmp = b * (z * -c)
else if (a <= 2.9d+27) then
tmp = c * (t * j)
else if (a <= 9.5d+208) then
tmp = z * (x * y)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3.8e+95) {
tmp = b * (a * i);
} else if (a <= -7.1e+30) {
tmp = y * (x * z);
} else if (a <= -2.55e-24) {
tmp = b * (z * -c);
} else if (a <= 2.9e+27) {
tmp = c * (t * j);
} else if (a <= 9.5e+208) {
tmp = z * (x * y);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -3.8e+95: tmp = b * (a * i) elif a <= -7.1e+30: tmp = y * (x * z) elif a <= -2.55e-24: tmp = b * (z * -c) elif a <= 2.9e+27: tmp = c * (t * j) elif a <= 9.5e+208: tmp = z * (x * y) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -3.8e+95) tmp = Float64(b * Float64(a * i)); elseif (a <= -7.1e+30) tmp = Float64(y * Float64(x * z)); elseif (a <= -2.55e-24) tmp = Float64(b * Float64(z * Float64(-c))); elseif (a <= 2.9e+27) tmp = Float64(c * Float64(t * j)); elseif (a <= 9.5e+208) tmp = Float64(z * Float64(x * y)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -3.8e+95) tmp = b * (a * i); elseif (a <= -7.1e+30) tmp = y * (x * z); elseif (a <= -2.55e-24) tmp = b * (z * -c); elseif (a <= 2.9e+27) tmp = c * (t * j); elseif (a <= 9.5e+208) tmp = z * (x * y); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -3.8e+95], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.1e+30], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.55e-24], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e+27], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+208], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.8 \cdot 10^{+95}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;a \leq -7.1 \cdot 10^{+30}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq -2.55 \cdot 10^{-24}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+27}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+208}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if a < -3.7999999999999999e95Initial program 65.1%
cancel-sign-sub65.1%
cancel-sign-sub-inv65.1%
*-commutative65.1%
*-commutative65.1%
remove-double-neg65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in b around inf 49.5%
Taylor expanded in a around inf 50.1%
if -3.7999999999999999e95 < a < -7.09999999999999983e30Initial program 83.5%
+-commutative83.5%
fma-def83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in t around 0 75.3%
Taylor expanded in x around inf 50.8%
if -7.09999999999999983e30 < a < -2.55000000000000013e-24Initial program 69.8%
+-commutative69.8%
fma-def69.8%
*-commutative69.8%
*-commutative69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in t around 0 50.9%
Taylor expanded in c around inf 41.0%
mul-1-neg41.0%
associate-*r*40.8%
distribute-rgt-neg-in40.8%
Simplified40.8%
if -2.55000000000000013e-24 < a < 2.9000000000000001e27Initial program 80.6%
sub-neg80.6%
associate-+l+80.6%
fma-def82.2%
+-commutative82.2%
fma-def82.2%
sub-neg82.2%
+-commutative82.2%
*-commutative82.2%
distribute-rgt-neg-in82.2%
fma-def82.2%
*-commutative82.2%
distribute-rgt-neg-in82.2%
sub-neg82.2%
distribute-neg-in82.2%
unsub-neg82.2%
Simplified82.2%
Taylor expanded in t around inf 38.4%
*-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
Simplified38.4%
Taylor expanded in c around inf 31.9%
if 2.9000000000000001e27 < a < 9.4999999999999996e208Initial program 72.9%
cancel-sign-sub72.9%
cancel-sign-sub-inv72.9%
*-commutative72.9%
*-commutative72.9%
remove-double-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in z around inf 55.2%
Taylor expanded in y around inf 41.8%
if 9.4999999999999996e208 < a Initial program 59.7%
+-commutative59.7%
fma-def65.9%
*-commutative65.9%
*-commutative65.9%
*-commutative65.9%
*-commutative65.9%
Simplified65.9%
Taylor expanded in t around 0 66.6%
Taylor expanded in a around inf 66.8%
associate-*r*73.2%
*-commutative73.2%
associate-*r*76.1%
Simplified76.1%
Final simplification43.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1e+96)
(* b (* a i))
(if (<= a -9.4e+33)
(* y (* x z))
(if (<= a -1.25e-24)
(* z (* b (- c)))
(if (<= a 4.2e+27)
(* c (* t j))
(if (<= a 1e+209) (* z (* x y)) (* a (* b i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1e+96) {
tmp = b * (a * i);
} else if (a <= -9.4e+33) {
tmp = y * (x * z);
} else if (a <= -1.25e-24) {
tmp = z * (b * -c);
} else if (a <= 4.2e+27) {
tmp = c * (t * j);
} else if (a <= 1e+209) {
tmp = z * (x * y);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1d+96)) then
tmp = b * (a * i)
else if (a <= (-9.4d+33)) then
tmp = y * (x * z)
else if (a <= (-1.25d-24)) then
tmp = z * (b * -c)
else if (a <= 4.2d+27) then
tmp = c * (t * j)
else if (a <= 1d+209) then
tmp = z * (x * y)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1e+96) {
tmp = b * (a * i);
} else if (a <= -9.4e+33) {
tmp = y * (x * z);
} else if (a <= -1.25e-24) {
tmp = z * (b * -c);
} else if (a <= 4.2e+27) {
tmp = c * (t * j);
} else if (a <= 1e+209) {
tmp = z * (x * y);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1e+96: tmp = b * (a * i) elif a <= -9.4e+33: tmp = y * (x * z) elif a <= -1.25e-24: tmp = z * (b * -c) elif a <= 4.2e+27: tmp = c * (t * j) elif a <= 1e+209: tmp = z * (x * y) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1e+96) tmp = Float64(b * Float64(a * i)); elseif (a <= -9.4e+33) tmp = Float64(y * Float64(x * z)); elseif (a <= -1.25e-24) tmp = Float64(z * Float64(b * Float64(-c))); elseif (a <= 4.2e+27) tmp = Float64(c * Float64(t * j)); elseif (a <= 1e+209) tmp = Float64(z * Float64(x * y)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1e+96) tmp = b * (a * i); elseif (a <= -9.4e+33) tmp = y * (x * z); elseif (a <= -1.25e-24) tmp = z * (b * -c); elseif (a <= 4.2e+27) tmp = c * (t * j); elseif (a <= 1e+209) tmp = z * (x * y); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1e+96], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.4e+33], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.25e-24], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.2e+27], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1e+209], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1 \cdot 10^{+96}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;a \leq -9.4 \cdot 10^{+33}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq -1.25 \cdot 10^{-24}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{+27}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;a \leq 10^{+209}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if a < -1.00000000000000005e96Initial program 65.1%
cancel-sign-sub65.1%
cancel-sign-sub-inv65.1%
*-commutative65.1%
*-commutative65.1%
remove-double-neg65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in b around inf 49.5%
Taylor expanded in a around inf 50.1%
if -1.00000000000000005e96 < a < -9.3999999999999996e33Initial program 83.5%
+-commutative83.5%
fma-def83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in t around 0 75.3%
Taylor expanded in x around inf 50.8%
if -9.3999999999999996e33 < a < -1.24999999999999995e-24Initial program 69.8%
cancel-sign-sub69.8%
cancel-sign-sub-inv69.8%
*-commutative69.8%
*-commutative69.8%
remove-double-neg69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in z around inf 50.7%
Taylor expanded in y around 0 41.0%
neg-mul-141.0%
distribute-rgt-neg-in41.0%
Simplified41.0%
if -1.24999999999999995e-24 < a < 4.19999999999999989e27Initial program 80.6%
sub-neg80.6%
associate-+l+80.6%
fma-def82.2%
+-commutative82.2%
fma-def82.2%
sub-neg82.2%
+-commutative82.2%
*-commutative82.2%
distribute-rgt-neg-in82.2%
fma-def82.2%
*-commutative82.2%
distribute-rgt-neg-in82.2%
sub-neg82.2%
distribute-neg-in82.2%
unsub-neg82.2%
Simplified82.2%
Taylor expanded in t around inf 38.4%
*-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
Simplified38.4%
Taylor expanded in c around inf 31.9%
if 4.19999999999999989e27 < a < 1.0000000000000001e209Initial program 72.9%
cancel-sign-sub72.9%
cancel-sign-sub-inv72.9%
*-commutative72.9%
*-commutative72.9%
remove-double-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in z around inf 55.2%
Taylor expanded in y around inf 41.8%
if 1.0000000000000001e209 < a Initial program 59.7%
+-commutative59.7%
fma-def65.9%
*-commutative65.9%
*-commutative65.9%
*-commutative65.9%
*-commutative65.9%
Simplified65.9%
Taylor expanded in t around 0 66.6%
Taylor expanded in a around inf 66.8%
associate-*r*73.2%
*-commutative73.2%
associate-*r*76.1%
Simplified76.1%
Final simplification43.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -7.5e+65) (not (<= a 1.55e+86))) (* a (- (* b i) (* x t))) (* c (- (* t 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 ((a <= -7.5e+65) || !(a <= 1.55e+86)) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((t * 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 ((a <= (-7.5d+65)) .or. (.not. (a <= 1.55d+86))) then
tmp = a * ((b * i) - (x * t))
else
tmp = c * ((t * 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 ((a <= -7.5e+65) || !(a <= 1.55e+86)) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -7.5e+65) or not (a <= 1.55e+86): tmp = a * ((b * i) - (x * t)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -7.5e+65) || !(a <= 1.55e+86)) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(c * Float64(Float64(t * 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 ((a <= -7.5e+65) || ~((a <= 1.55e+86))) tmp = a * ((b * i) - (x * t)); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -7.5e+65], N[Not[LessEqual[a, 1.55e+86]], $MachinePrecision]], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.5 \cdot 10^{+65} \lor \neg \left(a \leq 1.55 \cdot 10^{+86}\right):\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if a < -7.50000000000000006e65 or 1.5500000000000001e86 < a Initial program 65.2%
sub-neg65.2%
associate-+l+65.2%
fma-def68.1%
+-commutative68.1%
fma-def71.0%
sub-neg71.0%
+-commutative71.0%
*-commutative71.0%
distribute-rgt-neg-in71.0%
fma-def71.0%
*-commutative71.0%
distribute-rgt-neg-in71.0%
sub-neg71.0%
distribute-neg-in71.0%
unsub-neg71.0%
Simplified71.1%
Taylor expanded in a around inf 68.6%
+-commutative68.6%
mul-1-neg68.6%
unsub-neg68.6%
Simplified68.6%
if -7.50000000000000006e65 < a < 1.5500000000000001e86Initial program 79.9%
+-commutative79.9%
fma-def79.9%
*-commutative79.9%
*-commutative79.9%
*-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in c around inf 47.1%
Final simplification55.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -2.6e-23) (not (<= a 5.2e+170))) (* a (* b i)) (* c (* t j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -2.6e-23) || !(a <= 5.2e+170)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-2.6d-23)) .or. (.not. (a <= 5.2d+170))) then
tmp = a * (b * i)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -2.6e-23) || !(a <= 5.2e+170)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -2.6e-23) or not (a <= 5.2e+170): tmp = a * (b * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -2.6e-23) || !(a <= 5.2e+170)) tmp = Float64(a * Float64(b * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -2.6e-23) || ~((a <= 5.2e+170))) tmp = a * (b * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -2.6e-23], N[Not[LessEqual[a, 5.2e+170]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.6 \cdot 10^{-23} \lor \neg \left(a \leq 5.2 \cdot 10^{+170}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if a < -2.6e-23 or 5.1999999999999996e170 < a Initial program 67.1%
+-commutative67.1%
fma-def70.0%
*-commutative70.0%
*-commutative70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in t around 0 63.2%
Taylor expanded in a around inf 47.1%
associate-*r*50.0%
*-commutative50.0%
associate-*r*50.0%
Simplified50.0%
if -2.6e-23 < a < 5.1999999999999996e170Initial program 78.6%
sub-neg78.6%
associate-+l+78.6%
fma-def80.6%
+-commutative80.6%
fma-def80.6%
sub-neg80.6%
+-commutative80.6%
*-commutative80.6%
distribute-rgt-neg-in80.6%
fma-def80.6%
*-commutative80.6%
distribute-rgt-neg-in80.6%
sub-neg80.6%
distribute-neg-in80.6%
unsub-neg80.6%
Simplified80.6%
Taylor expanded in t around inf 40.7%
*-commutative40.7%
mul-1-neg40.7%
unsub-neg40.7%
Simplified40.7%
Taylor expanded in c around inf 28.5%
Final simplification37.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.45e-24) (not (<= a 5.5e+170))) (* a (* b i)) (* j (* t c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.45e-24) || !(a <= 5.5e+170)) {
tmp = a * (b * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-1.45d-24)) .or. (.not. (a <= 5.5d+170))) then
tmp = a * (b * i)
else
tmp = j * (t * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.45e-24) || !(a <= 5.5e+170)) {
tmp = a * (b * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.45e-24) or not (a <= 5.5e+170): tmp = a * (b * i) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.45e-24) || !(a <= 5.5e+170)) tmp = Float64(a * Float64(b * i)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1.45e-24) || ~((a <= 5.5e+170))) tmp = a * (b * i); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.45e-24], N[Not[LessEqual[a, 5.5e+170]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.45 \cdot 10^{-24} \lor \neg \left(a \leq 5.5 \cdot 10^{+170}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if a < -1.4499999999999999e-24 or 5.4999999999999999e170 < a Initial program 67.1%
+-commutative67.1%
fma-def70.0%
*-commutative70.0%
*-commutative70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in t around 0 63.2%
Taylor expanded in a around inf 47.1%
associate-*r*50.0%
*-commutative50.0%
associate-*r*50.0%
Simplified50.0%
if -1.4499999999999999e-24 < a < 5.4999999999999999e170Initial program 78.6%
sub-neg78.6%
associate-+l+78.6%
fma-def80.6%
+-commutative80.6%
fma-def80.6%
sub-neg80.6%
+-commutative80.6%
*-commutative80.6%
distribute-rgt-neg-in80.6%
fma-def80.6%
*-commutative80.6%
distribute-rgt-neg-in80.6%
sub-neg80.6%
distribute-neg-in80.6%
unsub-neg80.6%
Simplified80.6%
Taylor expanded in t around inf 40.7%
*-commutative40.7%
mul-1-neg40.7%
unsub-neg40.7%
Simplified40.7%
Taylor expanded in c around inf 28.5%
associate-*r*28.5%
*-commutative28.5%
Simplified28.5%
Final simplification37.2%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 74.0%
+-commutative74.0%
fma-def75.5%
*-commutative75.5%
*-commutative75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in t around 0 63.1%
Taylor expanded in a around inf 25.6%
associate-*r*26.7%
*-commutative26.7%
associate-*r*26.8%
Simplified26.8%
Final simplification26.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023196
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))