
(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 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* a i))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 92.9%
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%
+-commutative0.0%
fma-define7.7%
*-commutative7.7%
*-commutative7.7%
cancel-sign-sub-inv7.7%
cancel-sign-sub7.7%
fma-neg9.6%
distribute-rgt-neg-out9.6%
remove-double-neg9.6%
*-commutative9.6%
*-commutative9.6%
Simplified9.6%
Taylor expanded in y around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
Simplified48.6%
Final simplification83.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* c (* t j)))))
(if (<= x -1.75e-102)
t_1
(if (<= x 7.5e-98)
(* b (- (* a i) (* z c)))
(if (<= x 0.0016) (+ (* j (- (* t c) (* y i))) (* a (* b i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (c * (t * j));
double tmp;
if (x <= -1.75e-102) {
tmp = t_1;
} else if (x <= 7.5e-98) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 0.0016) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) + (c * (t * j))
if (x <= (-1.75d-102)) then
tmp = t_1
else if (x <= 7.5d-98) then
tmp = b * ((a * i) - (z * c))
else if (x <= 0.0016d0) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (c * (t * j));
double tmp;
if (x <= -1.75e-102) {
tmp = t_1;
} else if (x <= 7.5e-98) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 0.0016) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) + (c * (t * j)) tmp = 0 if x <= -1.75e-102: tmp = t_1 elif x <= 7.5e-98: tmp = b * ((a * i) - (z * c)) elif x <= 0.0016: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(c * Float64(t * j))) tmp = 0.0 if (x <= -1.75e-102) tmp = t_1; elseif (x <= 7.5e-98) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 0.0016) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) + (c * (t * j)); tmp = 0.0; if (x <= -1.75e-102) tmp = t_1; elseif (x <= 7.5e-98) tmp = b * ((a * i) - (z * c)); elseif (x <= 0.0016) tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.75e-102], t$95$1, If[LessEqual[x, 7.5e-98], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0016], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;x \leq -1.75 \cdot 10^{-102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-98}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 0.0016:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.74999999999999993e-102 or 0.00160000000000000008 < x Initial program 75.2%
Taylor expanded in i around 0 70.9%
Taylor expanded in b around 0 69.0%
if -1.74999999999999993e-102 < x < 7.5000000000000006e-98Initial program 73.0%
*-commutative73.0%
*-commutative73.0%
add-cube-cbrt72.8%
pow372.8%
Applied egg-rr72.8%
Taylor expanded in b around inf 62.4%
if 7.5000000000000006e-98 < x < 0.00160000000000000008Initial program 70.6%
cancel-sign-sub-inv70.6%
cancel-sign-sub70.6%
*-commutative70.6%
fma-neg70.6%
distribute-rgt-neg-in70.6%
remove-double-neg70.6%
*-commutative70.6%
*-commutative70.6%
sub-neg70.6%
sub-neg70.6%
*-commutative70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in i around inf 66.5%
Final simplification66.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.7e+122)
t_1
(if (<= b -2.9e-295)
(* t (- (* c j) (* x a)))
(if (<= b 6.8e-141)
(* y (- (* x z) (* i j)))
(if (<= b 5.8e+48) (* j (- (* t c) (* y i))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.7e+122) {
tmp = t_1;
} else if (b <= -2.9e-295) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 6.8e-141) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 5.8e+48) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-1.7d+122)) then
tmp = t_1
else if (b <= (-2.9d-295)) then
tmp = t * ((c * j) - (x * a))
else if (b <= 6.8d-141) then
tmp = y * ((x * z) - (i * j))
else if (b <= 5.8d+48) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.7e+122) {
tmp = t_1;
} else if (b <= -2.9e-295) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 6.8e-141) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 5.8e+48) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.7e+122: tmp = t_1 elif b <= -2.9e-295: tmp = t * ((c * j) - (x * a)) elif b <= 6.8e-141: tmp = y * ((x * z) - (i * j)) elif b <= 5.8e+48: tmp = j * ((t * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.7e+122) tmp = t_1; elseif (b <= -2.9e-295) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 6.8e-141) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 5.8e+48) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.7e+122) tmp = t_1; elseif (b <= -2.9e-295) tmp = t * ((c * j) - (x * a)); elseif (b <= 6.8e-141) tmp = y * ((x * z) - (i * j)); elseif (b <= 5.8e+48) tmp = j * ((t * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.7e+122], t$95$1, If[LessEqual[b, -2.9e-295], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.8e-141], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.8e+48], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.7 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{-295}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-141}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{+48}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.7e122 or 5.7999999999999998e48 < b Initial program 68.7%
*-commutative68.7%
*-commutative68.7%
add-cube-cbrt68.7%
pow368.7%
Applied egg-rr68.7%
Taylor expanded in b around inf 69.3%
if -1.7e122 < b < -2.90000000000000015e-295Initial program 79.1%
+-commutative79.1%
fma-define79.1%
*-commutative79.1%
*-commutative79.1%
cancel-sign-sub-inv79.1%
cancel-sign-sub79.1%
fma-neg79.1%
distribute-rgt-neg-out79.1%
remove-double-neg79.1%
*-commutative79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in t around inf 57.1%
+-commutative57.1%
mul-1-neg57.1%
unsub-neg57.1%
*-commutative57.1%
Simplified57.1%
if -2.90000000000000015e-295 < b < 6.7999999999999997e-141Initial program 72.3%
+-commutative72.3%
fma-define72.3%
*-commutative72.3%
*-commutative72.3%
cancel-sign-sub-inv72.3%
cancel-sign-sub72.3%
fma-neg75.1%
distribute-rgt-neg-out75.1%
remove-double-neg75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in y around inf 65.7%
+-commutative65.7%
mul-1-neg65.7%
unsub-neg65.7%
Simplified65.7%
if 6.7999999999999997e-141 < b < 5.7999999999999998e48Initial program 78.5%
+-commutative78.5%
fma-define78.5%
*-commutative78.5%
*-commutative78.5%
cancel-sign-sub-inv78.5%
cancel-sign-sub78.5%
fma-neg78.5%
distribute-rgt-neg-out78.5%
remove-double-neg78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in j around inf 59.6%
*-commutative59.6%
*-commutative59.6%
Simplified59.6%
Final simplification63.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -7.8e-262)
(- (* t (- (* c j) (* x a))) (* b (- (* z c) (* a i))))
(if (<= b 4.2e-42)
(+ (* z (- (* x y) (* b c))) (* j (- (* t c) (* y i))))
(+ (* y (- (* x z) (* i j))) (* b (- (* a i) (* z c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -7.8e-262) {
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i)));
} else if (b <= 4.2e-42) {
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-7.8d-262)) then
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i)))
else if (b <= 4.2d-42) then
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)))
else
tmp = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -7.8e-262) {
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i)));
} else if (b <= 4.2e-42) {
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -7.8e-262: tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i))) elif b <= 4.2e-42: tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i))) else: tmp = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -7.8e-262) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); elseif (b <= 4.2e-42) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -7.8e-262) tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i))); elseif (b <= 4.2e-42) tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i))); else tmp = (y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -7.8e-262], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.2e-42], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.8 \cdot 10^{-262}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-42}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if b < -7.79999999999999967e-262Initial program 73.6%
+-commutative73.6%
fma-define75.4%
*-commutative75.4%
*-commutative75.4%
cancel-sign-sub-inv75.4%
cancel-sign-sub75.4%
fma-neg75.4%
distribute-rgt-neg-out75.4%
remove-double-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in y around 0 65.6%
mul-1-neg65.6%
*-commutative65.6%
associate-*r*66.4%
*-commutative66.4%
distribute-rgt-neg-out66.4%
mul-1-neg66.4%
*-commutative66.4%
*-commutative66.4%
associate-*r*70.6%
*-commutative70.6%
distribute-lft-in72.4%
+-commutative72.4%
mul-1-neg72.4%
unsub-neg72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
if -7.79999999999999967e-262 < b < 4.20000000000000013e-42Initial program 74.6%
cancel-sign-sub-inv74.6%
cancel-sign-sub74.6%
*-commutative74.6%
fma-neg75.9%
distribute-rgt-neg-in75.9%
remove-double-neg75.9%
*-commutative75.9%
*-commutative75.9%
sub-neg75.9%
sub-neg75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in z around inf 79.1%
if 4.20000000000000013e-42 < b Initial program 74.3%
+-commutative74.3%
fma-define77.0%
*-commutative77.0%
*-commutative77.0%
cancel-sign-sub-inv77.0%
cancel-sign-sub77.0%
fma-neg77.0%
distribute-rgt-neg-out77.0%
remove-double-neg77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in t around 0 77.0%
associate-*r*78.6%
associate-*r*78.6%
*-commutative78.6%
associate-*r*80.0%
distribute-rgt-in80.0%
+-commutative80.0%
mul-1-neg80.0%
unsub-neg80.0%
*-commutative80.0%
Simplified80.0%
Final simplification76.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* z c) (* a i)))))
(if (<= b -8.5e-262)
(- (* t (- (* c j) (* x a))) t_1)
(if (<= b 7e-44)
(+ (* z (- (* x y) (* b c))) (* j (- (* t c) (* y i))))
(- (* x (- (* y z) (* t a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((z * c) - (a * i));
double tmp;
if (b <= -8.5e-262) {
tmp = (t * ((c * j) - (x * a))) - t_1;
} else if (b <= 7e-44) {
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = (x * ((y * z) - (t * a))) - 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 * ((z * c) - (a * i))
if (b <= (-8.5d-262)) then
tmp = (t * ((c * j) - (x * a))) - t_1
else if (b <= 7d-44) then
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)))
else
tmp = (x * ((y * z) - (t * a))) - 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 * ((z * c) - (a * i));
double tmp;
if (b <= -8.5e-262) {
tmp = (t * ((c * j) - (x * a))) - t_1;
} else if (b <= 7e-44) {
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = (x * ((y * z) - (t * a))) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((z * c) - (a * i)) tmp = 0 if b <= -8.5e-262: tmp = (t * ((c * j) - (x * a))) - t_1 elif b <= 7e-44: tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i))) else: tmp = (x * ((y * z) - (t * a))) - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(z * c) - Float64(a * i))) tmp = 0.0 if (b <= -8.5e-262) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - t_1); elseif (b <= 7e-44) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((z * c) - (a * i)); tmp = 0.0; if (b <= -8.5e-262) tmp = (t * ((c * j) - (x * a))) - t_1; elseif (b <= 7e-44) tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i))); else tmp = (x * ((y * z) - (t * a))) - 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[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.5e-262], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[b, 7e-44], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot c - a \cdot i\right)\\
\mathbf{if}\;b \leq -8.5 \cdot 10^{-262}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - t\_1\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-44}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - t\_1\\
\end{array}
\end{array}
if b < -8.5e-262Initial program 73.6%
+-commutative73.6%
fma-define75.4%
*-commutative75.4%
*-commutative75.4%
cancel-sign-sub-inv75.4%
cancel-sign-sub75.4%
fma-neg75.4%
distribute-rgt-neg-out75.4%
remove-double-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in y around 0 65.6%
mul-1-neg65.6%
*-commutative65.6%
associate-*r*66.4%
*-commutative66.4%
distribute-rgt-neg-out66.4%
mul-1-neg66.4%
*-commutative66.4%
*-commutative66.4%
associate-*r*70.6%
*-commutative70.6%
distribute-lft-in72.4%
+-commutative72.4%
mul-1-neg72.4%
unsub-neg72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
if -8.5e-262 < b < 6.9999999999999995e-44Initial program 74.6%
cancel-sign-sub-inv74.6%
cancel-sign-sub74.6%
*-commutative74.6%
fma-neg75.9%
distribute-rgt-neg-in75.9%
remove-double-neg75.9%
*-commutative75.9%
*-commutative75.9%
sub-neg75.9%
sub-neg75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in z around inf 79.1%
if 6.9999999999999995e-44 < b Initial program 74.3%
Taylor expanded in j around 0 75.3%
Final simplification75.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -7e-262)
(- (* t (- (* c j) (* x a))) (* b (- (* z c) (* a i))))
(if (<= b 3.4e+119)
(+ (* z (- (* x y) (* b c))) (* j (- (* t c) (* y i))))
(+ (* c (* t j)) (* b (- (* a i) (* z c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -7e-262) {
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i)));
} else if (b <= 3.4e+119) {
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-7d-262)) then
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i)))
else if (b <= 3.4d+119) then
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)))
else
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -7e-262) {
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i)));
} else if (b <= 3.4e+119) {
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -7e-262: tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i))) elif b <= 3.4e+119: tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i))) else: tmp = (c * (t * j)) + (b * ((a * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -7e-262) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); elseif (b <= 3.4e+119) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = Float64(Float64(c * Float64(t * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -7e-262) tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i))); elseif (b <= 3.4e+119) tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i))); else tmp = (c * (t * j)) + (b * ((a * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -7e-262], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.4e+119], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7 \cdot 10^{-262}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{+119}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if b < -7.00000000000000023e-262Initial program 73.6%
+-commutative73.6%
fma-define75.4%
*-commutative75.4%
*-commutative75.4%
cancel-sign-sub-inv75.4%
cancel-sign-sub75.4%
fma-neg75.4%
distribute-rgt-neg-out75.4%
remove-double-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in y around 0 65.6%
mul-1-neg65.6%
*-commutative65.6%
associate-*r*66.4%
*-commutative66.4%
distribute-rgt-neg-out66.4%
mul-1-neg66.4%
*-commutative66.4%
*-commutative66.4%
associate-*r*70.6%
*-commutative70.6%
distribute-lft-in72.4%
+-commutative72.4%
mul-1-neg72.4%
unsub-neg72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
if -7.00000000000000023e-262 < b < 3.40000000000000013e119Initial program 77.3%
cancel-sign-sub-inv77.3%
cancel-sign-sub77.3%
*-commutative77.3%
fma-neg78.3%
distribute-rgt-neg-in78.3%
remove-double-neg78.3%
*-commutative78.3%
*-commutative78.3%
sub-neg78.3%
sub-neg78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in z around inf 75.1%
if 3.40000000000000013e119 < b Initial program 67.2%
+-commutative67.2%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
cancel-sign-sub-inv72.0%
cancel-sign-sub72.0%
fma-neg72.0%
distribute-rgt-neg-out72.0%
remove-double-neg72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in y around 0 76.1%
mul-1-neg76.1%
*-commutative76.1%
associate-*r*76.1%
*-commutative76.1%
distribute-rgt-neg-out76.1%
mul-1-neg76.1%
*-commutative76.1%
*-commutative76.1%
associate-*r*71.6%
*-commutative71.6%
distribute-lft-in71.6%
+-commutative71.6%
mul-1-neg71.6%
unsub-neg71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in x around 0 80.8%
Final simplification74.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1e+145)
t_1
(if (<= b 5.1e+119)
(+ (* z (- (* x y) (* b c))) (* j (- (* t c) (* y i))))
(+ (* c (* t j)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1e+145) {
tmp = t_1;
} else if (b <= 5.1e+119) {
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = (c * (t * j)) + 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 <= (-1d+145)) then
tmp = t_1
else if (b <= 5.1d+119) then
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)))
else
tmp = (c * (t * j)) + 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 <= -1e+145) {
tmp = t_1;
} else if (b <= 5.1e+119) {
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = (c * (t * j)) + 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 <= -1e+145: tmp = t_1 elif b <= 5.1e+119: tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i))) else: tmp = (c * (t * j)) + 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 <= -1e+145) tmp = t_1; elseif (b <= 5.1e+119) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = Float64(Float64(c * Float64(t * j)) + 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 <= -1e+145) tmp = t_1; elseif (b <= 5.1e+119) tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i))); else tmp = (c * (t * j)) + 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, -1e+145], t$95$1, If[LessEqual[b, 5.1e+119], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1 \cdot 10^{+145}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.1 \cdot 10^{+119}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + t\_1\\
\end{array}
\end{array}
if b < -9.9999999999999999e144Initial program 66.8%
*-commutative66.8%
*-commutative66.8%
add-cube-cbrt66.8%
pow366.8%
Applied egg-rr66.8%
Taylor expanded in b around inf 65.8%
if -9.9999999999999999e144 < b < 5.09999999999999984e119Initial program 77.1%
cancel-sign-sub-inv77.1%
cancel-sign-sub77.1%
*-commutative77.1%
fma-neg77.7%
distribute-rgt-neg-in77.7%
remove-double-neg77.7%
*-commutative77.7%
*-commutative77.7%
sub-neg77.7%
sub-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in z around inf 69.4%
if 5.09999999999999984e119 < b Initial program 67.2%
+-commutative67.2%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
cancel-sign-sub-inv72.0%
cancel-sign-sub72.0%
fma-neg72.0%
distribute-rgt-neg-out72.0%
remove-double-neg72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in y around 0 76.1%
mul-1-neg76.1%
*-commutative76.1%
associate-*r*76.1%
*-commutative76.1%
distribute-rgt-neg-out76.1%
mul-1-neg76.1%
*-commutative76.1%
*-commutative76.1%
associate-*r*71.6%
*-commutative71.6%
distribute-lft-in71.6%
+-commutative71.6%
mul-1-neg71.6%
unsub-neg71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in x around 0 80.8%
Final simplification70.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (or (<= x -3e-97) (not (<= x 6.3e+102)))
(+ (* x (- (* y z) (* t a))) t_1)
(+ t_1 (* b (- (* a i) (* z c)))))))
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 tmp;
if ((x <= -3e-97) || !(x <= 6.3e+102)) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else {
tmp = t_1 + (b * ((a * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if ((x <= (-3d-97)) .or. (.not. (x <= 6.3d+102))) then
tmp = (x * ((y * z) - (t * a))) + t_1
else
tmp = t_1 + (b * ((a * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if ((x <= -3e-97) || !(x <= 6.3e+102)) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else {
tmp = t_1 + (b * ((a * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if (x <= -3e-97) or not (x <= 6.3e+102): tmp = (x * ((y * z) - (t * a))) + t_1 else: tmp = t_1 + (b * ((a * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if ((x <= -3e-97) || !(x <= 6.3e+102)) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1); else tmp = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if ((x <= -3e-97) || ~((x <= 6.3e+102))) tmp = (x * ((y * z) - (t * a))) + t_1; else tmp = t_1 + (b * ((a * i) - (z * c))); 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]}, If[Or[LessEqual[x, -3e-97], N[Not[LessEqual[x, 6.3e+102]], $MachinePrecision]], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;x \leq -3 \cdot 10^{-97} \lor \neg \left(x \leq 6.3 \cdot 10^{+102}\right):\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if x < -3.00000000000000024e-97 or 6.30000000000000029e102 < x Initial program 75.6%
Taylor expanded in i around 0 72.0%
Taylor expanded in b around 0 72.1%
if -3.00000000000000024e-97 < x < 6.30000000000000029e102Initial program 72.5%
+-commutative72.5%
fma-define73.3%
*-commutative73.3%
*-commutative73.3%
cancel-sign-sub-inv73.3%
cancel-sign-sub73.3%
fma-neg73.3%
distribute-rgt-neg-out73.3%
remove-double-neg73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in y around 0 66.7%
mul-1-neg66.7%
*-commutative66.7%
associate-*r*66.7%
*-commutative66.7%
distribute-rgt-neg-out66.7%
mul-1-neg66.7%
*-commutative66.7%
*-commutative66.7%
associate-*r*68.3%
*-commutative68.3%
distribute-lft-in72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in x around 0 65.6%
Final simplification68.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -3.2e+26) (not (<= z 1.35e-106))) (* z (- (* x y) (* b c))) (+ (* j (- (* t c) (* y i))) (* a (* b i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -3.2e+26) || !(z <= 1.35e-106)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-3.2d+26)) .or. (.not. (z <= 1.35d-106))) then
tmp = z * ((x * y) - (b * c))
else
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -3.2e+26) || !(z <= 1.35e-106)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -3.2e+26) or not (z <= 1.35e-106): tmp = z * ((x * y) - (b * c)) else: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -3.2e+26) || !(z <= 1.35e-106)) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -3.2e+26) || ~((z <= 1.35e-106))) tmp = z * ((x * y) - (b * c)); else tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -3.2e+26], N[Not[LessEqual[z, 1.35e-106]], $MachinePrecision]], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.2 \cdot 10^{+26} \lor \neg \left(z \leq 1.35 \cdot 10^{-106}\right):\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if z < -3.20000000000000029e26 or 1.35000000000000011e-106 < z Initial program 65.6%
*-commutative65.6%
*-commutative65.6%
add-cube-cbrt65.5%
pow365.5%
Applied egg-rr65.5%
Taylor expanded in z around inf 61.5%
if -3.20000000000000029e26 < z < 1.35000000000000011e-106Initial program 84.4%
cancel-sign-sub-inv84.4%
cancel-sign-sub84.4%
*-commutative84.4%
fma-neg84.4%
distribute-rgt-neg-in84.4%
remove-double-neg84.4%
*-commutative84.4%
*-commutative84.4%
sub-neg84.4%
sub-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in i around inf 63.8%
Final simplification62.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -3.9e-97)
t_1
(if (<= x 1.4e-97)
(* b (- (* a i) (* z c)))
(if (<= x 8.4e+137) (* t (- (* c j) (* x a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -3.9e-97) {
tmp = t_1;
} else if (x <= 1.4e-97) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 8.4e+137) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (x <= (-3.9d-97)) then
tmp = t_1
else if (x <= 1.4d-97) then
tmp = b * ((a * i) - (z * c))
else if (x <= 8.4d+137) then
tmp = t * ((c * j) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -3.9e-97) {
tmp = t_1;
} else if (x <= 1.4e-97) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 8.4e+137) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -3.9e-97: tmp = t_1 elif x <= 1.4e-97: tmp = b * ((a * i) - (z * c)) elif x <= 8.4e+137: tmp = t * ((c * j) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -3.9e-97) tmp = t_1; elseif (x <= 1.4e-97) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 8.4e+137) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -3.9e-97) tmp = t_1; elseif (x <= 1.4e-97) tmp = b * ((a * i) - (z * c)); elseif (x <= 8.4e+137) tmp = t * ((c * j) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.9e-97], t$95$1, If[LessEqual[x, 1.4e-97], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.4e+137], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -3.9 \cdot 10^{-97}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{-97}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 8.4 \cdot 10^{+137}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.8999999999999998e-97 or 8.3999999999999996e137 < x Initial program 74.6%
*-commutative74.6%
*-commutative74.6%
add-cube-cbrt74.5%
pow374.5%
Applied egg-rr74.5%
Taylor expanded in x around inf 62.8%
if -3.8999999999999998e-97 < x < 1.4000000000000001e-97Initial program 73.3%
*-commutative73.3%
*-commutative73.3%
add-cube-cbrt73.1%
pow373.0%
Applied egg-rr73.0%
Taylor expanded in b around inf 61.8%
if 1.4000000000000001e-97 < x < 8.3999999999999996e137Initial program 74.1%
+-commutative74.1%
fma-define74.1%
*-commutative74.1%
*-commutative74.1%
cancel-sign-sub-inv74.1%
cancel-sign-sub74.1%
fma-neg74.1%
distribute-rgt-neg-out74.1%
remove-double-neg74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in t around inf 59.3%
+-commutative59.3%
mul-1-neg59.3%
unsub-neg59.3%
*-commutative59.3%
Simplified59.3%
Final simplification61.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.9e+122)
t_1
(if (<= b -2.4e-264)
(* t (- (* c j) (* x a)))
(if (<= b 1.65e+50) (* j (- (* t c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.9e+122) {
tmp = t_1;
} else if (b <= -2.4e-264) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 1.65e+50) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-1.9d+122)) then
tmp = t_1
else if (b <= (-2.4d-264)) then
tmp = t * ((c * j) - (x * a))
else if (b <= 1.65d+50) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.9e+122) {
tmp = t_1;
} else if (b <= -2.4e-264) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 1.65e+50) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.9e+122: tmp = t_1 elif b <= -2.4e-264: tmp = t * ((c * j) - (x * a)) elif b <= 1.65e+50: tmp = j * ((t * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.9e+122) tmp = t_1; elseif (b <= -2.4e-264) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 1.65e+50) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.9e+122) tmp = t_1; elseif (b <= -2.4e-264) tmp = t * ((c * j) - (x * a)); elseif (b <= 1.65e+50) tmp = j * ((t * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.9e+122], t$95$1, If[LessEqual[b, -2.4e-264], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.65e+50], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.9 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{-264}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 1.65 \cdot 10^{+50}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.8999999999999999e122 or 1.65e50 < b Initial program 68.7%
*-commutative68.7%
*-commutative68.7%
add-cube-cbrt68.7%
pow368.7%
Applied egg-rr68.7%
Taylor expanded in b around inf 69.3%
if -1.8999999999999999e122 < b < -2.3999999999999999e-264Initial program 77.0%
+-commutative77.0%
fma-define77.0%
*-commutative77.0%
*-commutative77.0%
cancel-sign-sub-inv77.0%
cancel-sign-sub77.0%
fma-neg77.0%
distribute-rgt-neg-out77.0%
remove-double-neg77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in t around inf 57.0%
+-commutative57.0%
mul-1-neg57.0%
unsub-neg57.0%
*-commutative57.0%
Simplified57.0%
if -2.3999999999999999e-264 < b < 1.65e50Initial program 77.7%
+-commutative77.7%
fma-define77.7%
*-commutative77.7%
*-commutative77.7%
cancel-sign-sub-inv77.7%
cancel-sign-sub77.7%
fma-neg78.8%
distribute-rgt-neg-out78.8%
remove-double-neg78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in j around inf 56.3%
*-commutative56.3%
*-commutative56.3%
Simplified56.3%
Final simplification61.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* b (- z)))))
(if (<= z -1.35e+27)
t_1
(if (<= z -2.8e-208)
(* b (* a i))
(if (<= z 2.05e-89) (* c (* t j)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (b * -z);
double tmp;
if (z <= -1.35e+27) {
tmp = t_1;
} else if (z <= -2.8e-208) {
tmp = b * (a * i);
} else if (z <= 2.05e-89) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (b * -z)
if (z <= (-1.35d+27)) then
tmp = t_1
else if (z <= (-2.8d-208)) then
tmp = b * (a * i)
else if (z <= 2.05d-89) then
tmp = c * (t * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (b * -z);
double tmp;
if (z <= -1.35e+27) {
tmp = t_1;
} else if (z <= -2.8e-208) {
tmp = b * (a * i);
} else if (z <= 2.05e-89) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (b * -z) tmp = 0 if z <= -1.35e+27: tmp = t_1 elif z <= -2.8e-208: tmp = b * (a * i) elif z <= 2.05e-89: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(b * Float64(-z))) tmp = 0.0 if (z <= -1.35e+27) tmp = t_1; elseif (z <= -2.8e-208) tmp = Float64(b * Float64(a * i)); elseif (z <= 2.05e-89) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (b * -z); tmp = 0.0; if (z <= -1.35e+27) tmp = t_1; elseif (z <= -2.8e-208) tmp = b * (a * i); elseif (z <= 2.05e-89) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.35e+27], t$95$1, If[LessEqual[z, -2.8e-208], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e-89], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{if}\;z \leq -1.35 \cdot 10^{+27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-208}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{-89}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.3499999999999999e27 or 2.0499999999999999e-89 < z Initial program 66.1%
+-commutative66.1%
fma-define67.6%
*-commutative67.6%
*-commutative67.6%
cancel-sign-sub-inv67.6%
cancel-sign-sub67.6%
fma-neg68.3%
distribute-rgt-neg-out68.3%
remove-double-neg68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in c around inf 50.0%
*-commutative50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in t around 0 38.9%
mul-1-neg38.9%
*-commutative38.9%
distribute-lft-neg-in38.9%
*-commutative38.9%
Simplified38.9%
if -1.3499999999999999e27 < z < -2.80000000000000001e-208Initial program 76.5%
*-commutative76.5%
*-commutative76.5%
add-cube-cbrt76.2%
pow376.2%
Applied egg-rr76.2%
Taylor expanded in b around inf 41.7%
Taylor expanded in a around inf 35.4%
*-commutative35.4%
Simplified35.4%
if -2.80000000000000001e-208 < z < 2.0499999999999999e-89Initial program 86.8%
+-commutative86.8%
fma-define86.8%
*-commutative86.8%
*-commutative86.8%
cancel-sign-sub-inv86.8%
cancel-sign-sub86.8%
fma-neg86.8%
distribute-rgt-neg-out86.8%
remove-double-neg86.8%
*-commutative86.8%
*-commutative86.8%
Simplified86.8%
Taylor expanded in c around inf 33.4%
*-commutative33.4%
*-commutative33.4%
Simplified33.4%
Taylor expanded in t around inf 30.9%
Final simplification35.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -4.4e+99) (not (<= b 8e+47))) (* b (- (* a i) (* z c))) (* j (- (* t c) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -4.4e+99) || !(b <= 8e+47)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = j * ((t * c) - (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-4.4d+99)) .or. (.not. (b <= 8d+47))) then
tmp = b * ((a * i) - (z * c))
else
tmp = j * ((t * c) - (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -4.4e+99) || !(b <= 8e+47)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = j * ((t * c) - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -4.4e+99) or not (b <= 8e+47): tmp = b * ((a * i) - (z * c)) else: tmp = j * ((t * c) - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -4.4e+99) || !(b <= 8e+47)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -4.4e+99) || ~((b <= 8e+47))) tmp = b * ((a * i) - (z * c)); else tmp = j * ((t * c) - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -4.4e+99], N[Not[LessEqual[b, 8e+47]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.4 \cdot 10^{+99} \lor \neg \left(b \leq 8 \cdot 10^{+47}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -4.39999999999999956e99 or 8.0000000000000004e47 < b Initial program 69.8%
*-commutative69.8%
*-commutative69.8%
add-cube-cbrt69.8%
pow369.8%
Applied egg-rr69.8%
Taylor expanded in b around inf 66.7%
if -4.39999999999999956e99 < b < 8.0000000000000004e47Initial program 77.0%
+-commutative77.0%
fma-define77.0%
*-commutative77.0%
*-commutative77.0%
cancel-sign-sub-inv77.0%
cancel-sign-sub77.0%
fma-neg77.7%
distribute-rgt-neg-out77.7%
remove-double-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in j around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
Final simplification57.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2e+108) (not (<= b 4.9e-42))) (* b (- (* a i) (* z c))) (* 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 ((b <= -2e+108) || !(b <= 4.9e-42)) {
tmp = b * ((a * i) - (z * c));
} 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 ((b <= (-2d+108)) .or. (.not. (b <= 4.9d-42))) then
tmp = b * ((a * i) - (z * c))
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 ((b <= -2e+108) || !(b <= 4.9e-42)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -2e+108) or not (b <= 4.9e-42): tmp = b * ((a * i) - (z * c)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -2e+108) || !(b <= 4.9e-42)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); 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 ((b <= -2e+108) || ~((b <= 4.9e-42))) tmp = b * ((a * i) - (z * c)); 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[b, -2e+108], N[Not[LessEqual[b, 4.9e-42]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2 \cdot 10^{+108} \lor \neg \left(b \leq 4.9 \cdot 10^{-42}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if b < -2.0000000000000001e108 or 4.9e-42 < b Initial program 72.3%
*-commutative72.3%
*-commutative72.3%
add-cube-cbrt72.2%
pow372.2%
Applied egg-rr72.2%
Taylor expanded in b around inf 63.7%
if -2.0000000000000001e108 < b < 4.9e-42Initial program 75.6%
+-commutative75.6%
fma-define75.6%
*-commutative75.6%
*-commutative75.6%
cancel-sign-sub-inv75.6%
cancel-sign-sub75.6%
fma-neg76.3%
distribute-rgt-neg-out76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in c around inf 38.5%
*-commutative38.5%
*-commutative38.5%
Simplified38.5%
Final simplification50.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.06e+122) (not (<= b 8.2e-78))) (* b (- (* a i) (* z c))) (* a (- (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.06e+122) || !(b <= 8.2e-78)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = a * -(x * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-1.06d+122)) .or. (.not. (b <= 8.2d-78))) then
tmp = b * ((a * i) - (z * c))
else
tmp = a * -(x * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.06e+122) || !(b <= 8.2e-78)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = a * -(x * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.06e+122) or not (b <= 8.2e-78): tmp = b * ((a * i) - (z * c)) else: tmp = a * -(x * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.06e+122) || !(b <= 8.2e-78)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(a * Float64(-Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.06e+122) || ~((b <= 8.2e-78))) tmp = b * ((a * i) - (z * c)); else tmp = a * -(x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.06e+122], N[Not[LessEqual[b, 8.2e-78]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * (-N[(x * t), $MachinePrecision])), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.06 \cdot 10^{+122} \lor \neg \left(b \leq 8.2 \cdot 10^{-78}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(-x \cdot t\right)\\
\end{array}
\end{array}
if b < -1.06000000000000002e122 or 8.1999999999999996e-78 < b Initial program 71.1%
*-commutative71.1%
*-commutative71.1%
add-cube-cbrt71.0%
pow371.1%
Applied egg-rr71.1%
Taylor expanded in b around inf 63.2%
if -1.06000000000000002e122 < b < 8.1999999999999996e-78Initial program 76.8%
*-commutative76.8%
*-commutative76.8%
add-cube-cbrt76.5%
pow376.4%
Applied egg-rr76.4%
Taylor expanded in a around -inf 35.4%
associate-*r*35.4%
neg-mul-135.4%
*-commutative35.4%
Simplified35.4%
Taylor expanded in t around inf 33.9%
associate-*r*33.9%
neg-mul-133.9%
Simplified33.9%
Final simplification48.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.55e-55) (not (<= t 4.8e+83))) (* a (- (* x t))) (* c (* b (- z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.55e-55) || !(t <= 4.8e+83)) {
tmp = a * -(x * t);
} else {
tmp = c * (b * -z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-1.55d-55)) .or. (.not. (t <= 4.8d+83))) then
tmp = a * -(x * t)
else
tmp = c * (b * -z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.55e-55) || !(t <= 4.8e+83)) {
tmp = a * -(x * t);
} else {
tmp = c * (b * -z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.55e-55) or not (t <= 4.8e+83): tmp = a * -(x * t) else: tmp = c * (b * -z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.55e-55) || !(t <= 4.8e+83)) tmp = Float64(a * Float64(-Float64(x * t))); else tmp = Float64(c * Float64(b * Float64(-z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -1.55e-55) || ~((t <= 4.8e+83))) tmp = a * -(x * t); else tmp = c * (b * -z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.55e-55], N[Not[LessEqual[t, 4.8e+83]], $MachinePrecision]], N[(a * (-N[(x * t), $MachinePrecision])), $MachinePrecision], N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.55 \cdot 10^{-55} \lor \neg \left(t \leq 4.8 \cdot 10^{+83}\right):\\
\;\;\;\;a \cdot \left(-x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(b \cdot \left(-z\right)\right)\\
\end{array}
\end{array}
if t < -1.54999999999999998e-55 or 4.79999999999999982e83 < t Initial program 68.8%
*-commutative68.8%
*-commutative68.8%
add-cube-cbrt68.6%
pow368.6%
Applied egg-rr68.6%
Taylor expanded in a around -inf 47.7%
associate-*r*47.7%
neg-mul-147.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in t around inf 40.8%
associate-*r*40.8%
neg-mul-140.8%
Simplified40.8%
if -1.54999999999999998e-55 < t < 4.79999999999999982e83Initial program 79.2%
+-commutative79.2%
fma-define80.7%
*-commutative80.7%
*-commutative80.7%
cancel-sign-sub-inv80.7%
cancel-sign-sub80.7%
fma-neg80.7%
distribute-rgt-neg-out80.7%
remove-double-neg80.7%
*-commutative80.7%
*-commutative80.7%
Simplified80.7%
Taylor expanded in c around inf 40.5%
*-commutative40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in t around 0 33.7%
mul-1-neg33.7%
*-commutative33.7%
distribute-lft-neg-in33.7%
*-commutative33.7%
Simplified33.7%
Final simplification37.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -8.6e+105) (not (<= b 4.5e+46))) (* b (* a 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 ((b <= -8.6e+105) || !(b <= 4.5e+46)) {
tmp = b * (a * 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 ((b <= (-8.6d+105)) .or. (.not. (b <= 4.5d+46))) then
tmp = b * (a * 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 ((b <= -8.6e+105) || !(b <= 4.5e+46)) {
tmp = b * (a * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -8.6e+105) or not (b <= 4.5e+46): tmp = b * (a * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -8.6e+105) || !(b <= 4.5e+46)) tmp = Float64(b * Float64(a * 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 ((b <= -8.6e+105) || ~((b <= 4.5e+46))) tmp = b * (a * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -8.6e+105], N[Not[LessEqual[b, 4.5e+46]], $MachinePrecision]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.6 \cdot 10^{+105} \lor \neg \left(b \leq 4.5 \cdot 10^{+46}\right):\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if b < -8.6000000000000003e105 or 4.5000000000000001e46 < b Initial program 69.0%
*-commutative69.0%
*-commutative69.0%
add-cube-cbrt68.9%
pow368.9%
Applied egg-rr68.9%
Taylor expanded in b around inf 66.7%
Taylor expanded in a around inf 42.3%
*-commutative42.3%
Simplified42.3%
if -8.6000000000000003e105 < b < 4.5000000000000001e46Initial program 77.4%
+-commutative77.4%
fma-define77.4%
*-commutative77.4%
*-commutative77.4%
cancel-sign-sub-inv77.4%
cancel-sign-sub77.4%
fma-neg78.1%
distribute-rgt-neg-out78.1%
remove-double-neg78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in c around inf 38.5%
*-commutative38.5%
*-commutative38.5%
Simplified38.5%
Taylor expanded in t around inf 27.3%
Final simplification33.3%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = b * (a * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 74.1%
*-commutative74.1%
*-commutative74.1%
add-cube-cbrt73.9%
pow373.9%
Applied egg-rr73.9%
Taylor expanded in b around inf 39.3%
Taylor expanded in a around inf 22.5%
*-commutative22.5%
Simplified22.5%
Final simplification22.5%
(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.1%
+-commutative74.1%
fma-define75.6%
*-commutative75.6%
*-commutative75.6%
cancel-sign-sub-inv75.6%
cancel-sign-sub75.6%
fma-neg76.0%
distribute-rgt-neg-out76.0%
remove-double-neg76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in i around inf 34.8%
distribute-lft-out--34.8%
*-commutative34.8%
Simplified34.8%
Taylor expanded in y around 0 20.2%
(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 2024139
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))