
(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 25 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 (- (* y z) (* t a)))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (- (* t c) (* y i))))
(if (<= (+ (* j t_3) (+ (* x t_1) t_2)) INFINITY)
(fma x t_1 (fma j t_3 t_2))
(* 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 = (y * z) - (t * a);
double t_2 = b * ((a * i) - (z * c));
double t_3 = (t * c) - (y * i);
double tmp;
if (((j * t_3) + ((x * t_1) + t_2)) <= ((double) INFINITY)) {
tmp = fma(x, t_1, fma(j, t_3, t_2));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * z) - Float64(t * a)) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(j * t_3) + Float64(Float64(x * t_1) + t_2)) <= Inf) tmp = fma(x, t_1, fma(j, t_3, t_2)); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(j * t$95$3), $MachinePrecision] + N[(N[(x * t$95$1), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(x * t$95$1 + N[(j * t$95$3 + t$95$2), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot z - t \cdot a\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := t \cdot c - y \cdot i\\
\mathbf{if}\;j \cdot t_3 + \left(x \cdot t_1 + t_2\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(x, t_1, \mathsf{fma}\left(j, t_3, t_2\right)\right)\\
\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 92.1%
sub-neg92.1%
associate-+l+92.1%
fma-def92.1%
+-commutative92.1%
fma-def92.1%
*-commutative92.1%
*-commutative92.1%
distribute-rgt-neg-in92.1%
sub-neg92.1%
+-commutative92.1%
distribute-neg-in92.1%
unsub-neg92.1%
remove-double-neg92.1%
*-commutative92.1%
*-commutative92.1%
Simplified92.1%
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.6%
+-commutative13.6%
fma-def15.9%
*-commutative15.9%
*-commutative15.9%
distribute-rgt-neg-in15.9%
sub-neg15.9%
+-commutative15.9%
distribute-neg-in15.9%
unsub-neg15.9%
remove-double-neg15.9%
*-commutative15.9%
*-commutative15.9%
Simplified15.9%
Taylor expanded in a around inf 51.0%
Taylor expanded in a around 0 51.0%
*-commutative51.0%
mul-1-neg51.0%
*-commutative51.0%
unsub-neg51.0%
Simplified51.0%
Final simplification85.0%
(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 92.1%
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.6%
+-commutative13.6%
fma-def15.9%
*-commutative15.9%
*-commutative15.9%
distribute-rgt-neg-in15.9%
sub-neg15.9%
+-commutative15.9%
distribute-neg-in15.9%
unsub-neg15.9%
remove-double-neg15.9%
*-commutative15.9%
*-commutative15.9%
Simplified15.9%
Taylor expanded in a around inf 51.0%
Taylor expanded in a around 0 51.0%
*-commutative51.0%
mul-1-neg51.0%
*-commutative51.0%
unsub-neg51.0%
Simplified51.0%
Final simplification85.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* y (* x z)) (* b (- (* a i) (* z c)))))
(t_2 (* t (- (* c j) (* x a)))))
(if (<= t -2.8e+255)
t_2
(if (<= t -7.2e+233)
t_1
(if (<= t -2.4e+51)
t_2
(if (<= t -4.55e-35)
(+ (* j (- (* t c) (* y i))) (* x (* y z)))
(if (<= t 195.0) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * (x * z)) + (b * ((a * i) - (z * c)));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2.8e+255) {
tmp = t_2;
} else if (t <= -7.2e+233) {
tmp = t_1;
} else if (t <= -2.4e+51) {
tmp = t_2;
} else if (t <= -4.55e-35) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else if (t <= 195.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * (x * z)) + (b * ((a * i) - (z * c)))
t_2 = t * ((c * j) - (x * a))
if (t <= (-2.8d+255)) then
tmp = t_2
else if (t <= (-7.2d+233)) then
tmp = t_1
else if (t <= (-2.4d+51)) then
tmp = t_2
else if (t <= (-4.55d-35)) then
tmp = (j * ((t * c) - (y * i))) + (x * (y * z))
else if (t <= 195.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * (x * z)) + (b * ((a * i) - (z * c)));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2.8e+255) {
tmp = t_2;
} else if (t <= -7.2e+233) {
tmp = t_1;
} else if (t <= -2.4e+51) {
tmp = t_2;
} else if (t <= -4.55e-35) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else if (t <= 195.0) {
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)) + (b * ((a * i) - (z * c))) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -2.8e+255: tmp = t_2 elif t <= -7.2e+233: tmp = t_1 elif t <= -2.4e+51: tmp = t_2 elif t <= -4.55e-35: tmp = (j * ((t * c) - (y * i))) + (x * (y * z)) elif t <= 195.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -2.8e+255) tmp = t_2; elseif (t <= -7.2e+233) tmp = t_1; elseif (t <= -2.4e+51) tmp = t_2; elseif (t <= -4.55e-35) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(y * z))); elseif (t <= 195.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * (x * z)) + (b * ((a * i) - (z * c))); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -2.8e+255) tmp = t_2; elseif (t <= -7.2e+233) tmp = t_1; elseif (t <= -2.4e+51) tmp = t_2; elseif (t <= -4.55e-35) tmp = (j * ((t * c) - (y * i))) + (x * (y * z)); elseif (t <= 195.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.8e+255], t$95$2, If[LessEqual[t, -7.2e+233], t$95$1, If[LessEqual[t, -2.4e+51], t$95$2, If[LessEqual[t, -4.55e-35], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 195.0], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -2.8 \cdot 10^{+255}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -7.2 \cdot 10^{+233}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.4 \cdot 10^{+51}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -4.55 \cdot 10^{-35}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 195:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -2.80000000000000013e255 or -7.1999999999999996e233 < t < -2.3999999999999999e51 or 195 < t Initial program 66.4%
sub-neg66.4%
associate-+l+66.4%
fma-def68.3%
+-commutative68.3%
fma-def69.3%
*-commutative69.3%
*-commutative69.3%
distribute-rgt-neg-in69.3%
sub-neg69.3%
+-commutative69.3%
distribute-neg-in69.3%
unsub-neg69.3%
remove-double-neg69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in z around 0 62.7%
Taylor expanded in t around inf 68.5%
*-commutative68.5%
mul-1-neg68.5%
unsub-neg68.5%
Simplified68.5%
if -2.80000000000000013e255 < t < -7.1999999999999996e233 or -4.55000000000000022e-35 < t < 195Initial program 86.5%
+-commutative86.5%
fma-def86.5%
*-commutative86.5%
*-commutative86.5%
*-commutative86.5%
*-commutative86.5%
Simplified86.5%
Taylor expanded in j around 0 78.3%
Taylor expanded in y around inf 72.9%
if -2.3999999999999999e51 < t < -4.55000000000000022e-35Initial program 63.3%
cancel-sign-sub63.3%
cancel-sign-sub-inv63.3%
*-commutative63.3%
*-commutative63.3%
remove-double-neg63.3%
*-commutative63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in t around 0 61.4%
fma-neg61.4%
*-commutative61.4%
*-commutative61.4%
*-commutative61.4%
fma-neg61.4%
distribute-rgt-neg-out61.4%
distribute-rgt-neg-in61.4%
neg-sub061.4%
distribute-rgt-neg-out61.4%
fma-neg61.4%
associate-+l-61.4%
neg-sub061.4%
+-commutative61.4%
*-commutative61.4%
sub-neg61.4%
Simplified61.4%
Taylor expanded in y around inf 73.8%
associate-*r*69.9%
Simplified69.9%
Final simplification70.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* i (* a b)) (* t (- (* x a) (* c j)))))
(t_2 (+ (* y (* x z)) (* b (- (* a i) (* z c))))))
(if (<= t -2.8e+255)
(* t (- (* c j) (* x a)))
(if (<= t -7.2e+233)
t_2
(if (<= t -9.5e+49)
t_1
(if (<= t -3.3e-35)
(+ (* j (- (* t c) (* y i))) (* x (* y z)))
(if (<= t 9e+14) 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 = (i * (a * b)) - (t * ((x * a) - (c * j)));
double t_2 = (y * (x * z)) + (b * ((a * i) - (z * c)));
double tmp;
if (t <= -2.8e+255) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -7.2e+233) {
tmp = t_2;
} else if (t <= -9.5e+49) {
tmp = t_1;
} else if (t <= -3.3e-35) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else if (t <= 9e+14) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (i * (a * b)) - (t * ((x * a) - (c * j)))
t_2 = (y * (x * z)) + (b * ((a * i) - (z * c)))
if (t <= (-2.8d+255)) then
tmp = t * ((c * j) - (x * a))
else if (t <= (-7.2d+233)) then
tmp = t_2
else if (t <= (-9.5d+49)) then
tmp = t_1
else if (t <= (-3.3d-35)) then
tmp = (j * ((t * c) - (y * i))) + (x * (y * z))
else if (t <= 9d+14) 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 = (i * (a * b)) - (t * ((x * a) - (c * j)));
double t_2 = (y * (x * z)) + (b * ((a * i) - (z * c)));
double tmp;
if (t <= -2.8e+255) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -7.2e+233) {
tmp = t_2;
} else if (t <= -9.5e+49) {
tmp = t_1;
} else if (t <= -3.3e-35) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else if (t <= 9e+14) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * (a * b)) - (t * ((x * a) - (c * j))) t_2 = (y * (x * z)) + (b * ((a * i) - (z * c))) tmp = 0 if t <= -2.8e+255: tmp = t * ((c * j) - (x * a)) elif t <= -7.2e+233: tmp = t_2 elif t <= -9.5e+49: tmp = t_1 elif t <= -3.3e-35: tmp = (j * ((t * c) - (y * i))) + (x * (y * z)) elif t <= 9e+14: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * Float64(a * b)) - Float64(t * Float64(Float64(x * a) - Float64(c * j)))) t_2 = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (t <= -2.8e+255) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (t <= -7.2e+233) tmp = t_2; elseif (t <= -9.5e+49) tmp = t_1; elseif (t <= -3.3e-35) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(y * z))); elseif (t <= 9e+14) 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 = (i * (a * b)) - (t * ((x * a) - (c * j))); t_2 = (y * (x * z)) + (b * ((a * i) - (z * c))); tmp = 0.0; if (t <= -2.8e+255) tmp = t * ((c * j) - (x * a)); elseif (t <= -7.2e+233) tmp = t_2; elseif (t <= -9.5e+49) tmp = t_1; elseif (t <= -3.3e-35) tmp = (j * ((t * c) - (y * i))) + (x * (y * z)); elseif (t <= 9e+14) 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[(N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.8e+255], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.2e+233], t$95$2, If[LessEqual[t, -9.5e+49], t$95$1, If[LessEqual[t, -3.3e-35], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e+14], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b\right) - t \cdot \left(x \cdot a - c \cdot j\right)\\
t_2 := y \cdot \left(x \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;t \leq -2.8 \cdot 10^{+255}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;t \leq -7.2 \cdot 10^{+233}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -9.5 \cdot 10^{+49}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -3.3 \cdot 10^{-35}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+14}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.80000000000000013e255Initial program 45.5%
sub-neg45.5%
associate-+l+45.5%
fma-def56.6%
+-commutative56.6%
fma-def56.6%
*-commutative56.6%
*-commutative56.6%
distribute-rgt-neg-in56.6%
sub-neg56.6%
+-commutative56.6%
distribute-neg-in56.6%
unsub-neg56.6%
remove-double-neg56.6%
*-commutative56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in z around 0 45.2%
Taylor expanded in t around inf 88.7%
*-commutative88.7%
mul-1-neg88.7%
unsub-neg88.7%
Simplified88.7%
if -2.80000000000000013e255 < t < -7.1999999999999996e233 or -3.3e-35 < t < 9e14Initial program 86.5%
+-commutative86.5%
fma-def86.5%
*-commutative86.5%
*-commutative86.5%
*-commutative86.5%
*-commutative86.5%
Simplified86.5%
Taylor expanded in j around 0 78.3%
Taylor expanded in y around inf 72.9%
if -7.1999999999999996e233 < t < -9.49999999999999969e49 or 9e14 < t Initial program 68.4%
sub-neg68.4%
associate-+l+68.4%
fma-def69.5%
+-commutative69.5%
fma-def70.5%
*-commutative70.5%
*-commutative70.5%
distribute-rgt-neg-in70.5%
sub-neg70.5%
+-commutative70.5%
distribute-neg-in70.5%
unsub-neg70.5%
remove-double-neg70.5%
*-commutative70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in z around 0 64.4%
Taylor expanded in i around -inf 62.1%
+-commutative62.1%
mul-1-neg62.1%
unsub-neg62.1%
*-commutative62.1%
associate-*r*65.4%
*-commutative65.4%
associate-*r*70.6%
associate-*r*70.6%
distribute-rgt-in72.8%
mul-1-neg72.8%
unsub-neg72.8%
mul-1-neg72.8%
unsub-neg72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in y around 0 73.0%
fma-neg73.0%
*-commutative73.0%
fma-def73.0%
mul-1-neg73.0%
*-commutative73.0%
*-commutative73.0%
associate-*r*71.0%
remove-double-neg71.0%
*-commutative71.0%
associate-*r*72.0%
cancel-sign-sub72.0%
Simplified72.0%
if -9.49999999999999969e49 < t < -3.3e-35Initial program 63.3%
cancel-sign-sub63.3%
cancel-sign-sub-inv63.3%
*-commutative63.3%
*-commutative63.3%
remove-double-neg63.3%
*-commutative63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in t around 0 61.4%
fma-neg61.4%
*-commutative61.4%
*-commutative61.4%
*-commutative61.4%
fma-neg61.4%
distribute-rgt-neg-out61.4%
distribute-rgt-neg-in61.4%
neg-sub061.4%
distribute-rgt-neg-out61.4%
fma-neg61.4%
associate-+l-61.4%
neg-sub061.4%
+-commutative61.4%
*-commutative61.4%
sub-neg61.4%
Simplified61.4%
Taylor expanded in y around inf 73.8%
associate-*r*69.9%
Simplified69.9%
Final simplification72.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* y (* x z)) (* b (- (* a i) (* z c))))))
(if (<= t -2.8e+255)
(* t (- (* c j) (* x a)))
(if (<= t -7.2e+233)
t_1
(if (<= t -4.8e-44)
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))
(if (<= t 480.0) t_1 (- (* i (* a b)) (* t (- (* x a) (* c j))))))))))
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)) + (b * ((a * i) - (z * c)));
double tmp;
if (t <= -2.8e+255) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -7.2e+233) {
tmp = t_1;
} else if (t <= -4.8e-44) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if (t <= 480.0) {
tmp = t_1;
} else {
tmp = (i * (a * b)) - (t * ((x * a) - (c * 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 = (y * (x * z)) + (b * ((a * i) - (z * c)))
if (t <= (-2.8d+255)) then
tmp = t * ((c * j) - (x * a))
else if (t <= (-7.2d+233)) then
tmp = t_1
else if (t <= (-4.8d-44)) then
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
else if (t <= 480.0d0) then
tmp = t_1
else
tmp = (i * (a * b)) - (t * ((x * a) - (c * 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 = (y * (x * z)) + (b * ((a * i) - (z * c)));
double tmp;
if (t <= -2.8e+255) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -7.2e+233) {
tmp = t_1;
} else if (t <= -4.8e-44) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if (t <= 480.0) {
tmp = t_1;
} else {
tmp = (i * (a * b)) - (t * ((x * a) - (c * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * (x * z)) + (b * ((a * i) - (z * c))) tmp = 0 if t <= -2.8e+255: tmp = t * ((c * j) - (x * a)) elif t <= -7.2e+233: tmp = t_1 elif t <= -4.8e-44: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) elif t <= 480.0: tmp = t_1 else: tmp = (i * (a * b)) - (t * ((x * a) - (c * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (t <= -2.8e+255) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (t <= -7.2e+233) tmp = t_1; elseif (t <= -4.8e-44) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); elseif (t <= 480.0) tmp = t_1; else tmp = Float64(Float64(i * Float64(a * b)) - Float64(t * Float64(Float64(x * a) - Float64(c * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * (x * z)) + (b * ((a * i) - (z * c))); tmp = 0.0; if (t <= -2.8e+255) tmp = t * ((c * j) - (x * a)); elseif (t <= -7.2e+233) tmp = t_1; elseif (t <= -4.8e-44) tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); elseif (t <= 480.0) tmp = t_1; else tmp = (i * (a * b)) - (t * ((x * a) - (c * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.8e+255], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.2e+233], t$95$1, If[LessEqual[t, -4.8e-44], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 480.0], t$95$1, N[(N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;t \leq -2.8 \cdot 10^{+255}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;t \leq -7.2 \cdot 10^{+233}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -4.8 \cdot 10^{-44}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;t \leq 480:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right) - t \cdot \left(x \cdot a - c \cdot j\right)\\
\end{array}
\end{array}
if t < -2.80000000000000013e255Initial program 45.5%
sub-neg45.5%
associate-+l+45.5%
fma-def56.6%
+-commutative56.6%
fma-def56.6%
*-commutative56.6%
*-commutative56.6%
distribute-rgt-neg-in56.6%
sub-neg56.6%
+-commutative56.6%
distribute-neg-in56.6%
unsub-neg56.6%
remove-double-neg56.6%
*-commutative56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in z around 0 45.2%
Taylor expanded in t around inf 88.7%
*-commutative88.7%
mul-1-neg88.7%
unsub-neg88.7%
Simplified88.7%
if -2.80000000000000013e255 < t < -7.1999999999999996e233 or -4.80000000000000017e-44 < t < 480Initial program 86.3%
+-commutative86.3%
fma-def86.3%
*-commutative86.3%
*-commutative86.3%
*-commutative86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in j around 0 77.9%
Taylor expanded in y around inf 73.2%
if -7.1999999999999996e233 < t < -4.80000000000000017e-44Initial program 75.8%
+-commutative75.8%
associate-+r-75.8%
fma-def77.6%
*-commutative77.6%
*-commutative77.6%
*-commutative77.6%
fma-neg77.6%
*-commutative77.6%
distribute-rgt-neg-in77.6%
Simplified77.6%
Taylor expanded in b around 0 78.5%
if 480 < t Initial program 60.7%
sub-neg60.7%
associate-+l+60.7%
fma-def62.3%
+-commutative62.3%
fma-def62.3%
*-commutative62.3%
*-commutative62.3%
distribute-rgt-neg-in62.3%
sub-neg62.3%
+-commutative62.3%
distribute-neg-in62.3%
unsub-neg62.3%
remove-double-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in z around 0 63.9%
Taylor expanded in i around -inf 60.5%
+-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
*-commutative60.5%
associate-*r*63.9%
*-commutative63.9%
associate-*r*68.5%
associate-*r*68.5%
distribute-rgt-in71.7%
mul-1-neg71.7%
unsub-neg71.7%
mul-1-neg71.7%
unsub-neg71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in y around 0 70.5%
fma-neg70.5%
*-commutative70.5%
fma-def70.5%
mul-1-neg70.5%
*-commutative70.5%
*-commutative70.5%
associate-*r*69.0%
remove-double-neg69.0%
*-commutative69.0%
associate-*r*70.4%
cancel-sign-sub70.4%
Simplified70.4%
Final simplification74.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= t -9.2e+111)
(- (+ t_1 (* c (* t j))) (* c (* z b)))
(if (<= t -1.7e-97)
(+ (* j (- (* t c) (* y i))) (- (* a (* b i)) (* a (* x t))))
(if (<= t 5500000.0)
(+ t_1 (* b (- (* a i) (* z c))))
(+ (* t (- (* c j) (* x a))) (* i (- (* a b) (* y j)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (t <= -9.2e+111) {
tmp = (t_1 + (c * (t * j))) - (c * (z * b));
} else if (t <= -1.7e-97) {
tmp = (j * ((t * c) - (y * i))) + ((a * (b * i)) - (a * (x * t)));
} else if (t <= 5500000.0) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (t <= (-9.2d+111)) then
tmp = (t_1 + (c * (t * j))) - (c * (z * b))
else if (t <= (-1.7d-97)) then
tmp = (j * ((t * c) - (y * i))) + ((a * (b * i)) - (a * (x * t)))
else if (t <= 5500000.0d0) then
tmp = t_1 + (b * ((a * i) - (z * c)))
else
tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (t <= -9.2e+111) {
tmp = (t_1 + (c * (t * j))) - (c * (z * b));
} else if (t <= -1.7e-97) {
tmp = (j * ((t * c) - (y * i))) + ((a * (b * i)) - (a * (x * t)));
} else if (t <= 5500000.0) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if t <= -9.2e+111: tmp = (t_1 + (c * (t * j))) - (c * (z * b)) elif t <= -1.7e-97: tmp = (j * ((t * c) - (y * i))) + ((a * (b * i)) - (a * (x * t))) elif t <= 5500000.0: tmp = t_1 + (b * ((a * i) - (z * c))) else: tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j))) 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 (t <= -9.2e+111) tmp = Float64(Float64(t_1 + Float64(c * Float64(t * j))) - Float64(c * Float64(z * b))); elseif (t <= -1.7e-97) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(Float64(a * Float64(b * i)) - Float64(a * Float64(x * t)))); elseif (t <= 5500000.0) tmp = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(i * Float64(Float64(a * b) - Float64(y * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (t <= -9.2e+111) tmp = (t_1 + (c * (t * j))) - (c * (z * b)); elseif (t <= -1.7e-97) tmp = (j * ((t * c) - (y * i))) + ((a * (b * i)) - (a * (x * t))); elseif (t <= 5500000.0) tmp = t_1 + (b * ((a * i) - (z * c))); else tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9.2e+111], N[(N[(t$95$1 + N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.7e-97], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5500000.0], N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;t \leq -9.2 \cdot 10^{+111}:\\
\;\;\;\;\left(t_1 + c \cdot \left(t \cdot j\right)\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-97}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + \left(a \cdot \left(b \cdot i\right) - a \cdot \left(x \cdot t\right)\right)\\
\mathbf{elif}\;t \leq 5500000:\\
\;\;\;\;t_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if t < -9.20000000000000008e111Initial program 69.0%
+-commutative69.0%
associate-+r-69.0%
fma-def71.9%
*-commutative71.9%
*-commutative71.9%
*-commutative71.9%
fma-neg71.9%
*-commutative71.9%
distribute-rgt-neg-in71.9%
Simplified71.9%
Taylor expanded in i around 0 77.2%
if -9.20000000000000008e111 < t < -1.6999999999999999e-97Initial program 73.5%
sub-neg73.5%
associate-+l+73.5%
fma-def79.3%
+-commutative79.3%
fma-def79.3%
*-commutative79.3%
*-commutative79.3%
distribute-rgt-neg-in79.3%
sub-neg79.3%
+-commutative79.3%
distribute-neg-in79.3%
unsub-neg79.3%
remove-double-neg79.3%
*-commutative79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in z around 0 77.1%
if -1.6999999999999999e-97 < t < 5.5e6Initial program 89.2%
+-commutative89.2%
fma-def89.2%
*-commutative89.2%
*-commutative89.2%
*-commutative89.2%
*-commutative89.2%
Simplified89.2%
Taylor expanded in j around 0 81.9%
if 5.5e6 < t Initial program 60.7%
sub-neg60.7%
associate-+l+60.7%
fma-def62.3%
+-commutative62.3%
fma-def62.3%
*-commutative62.3%
*-commutative62.3%
distribute-rgt-neg-in62.3%
sub-neg62.3%
+-commutative62.3%
distribute-neg-in62.3%
unsub-neg62.3%
remove-double-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in z around 0 63.9%
Taylor expanded in i around -inf 60.5%
+-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
*-commutative60.5%
associate-*r*63.9%
*-commutative63.9%
associate-*r*68.5%
associate-*r*68.5%
distribute-rgt-in71.7%
mul-1-neg71.7%
unsub-neg71.7%
mul-1-neg71.7%
unsub-neg71.7%
*-commutative71.7%
Simplified71.7%
Final simplification77.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* t (- (* c j) (* x a)))))
(if (<= t -2.5e+48)
t_2
(if (<= t -1.05e+17)
(* j (- (* t c) (* y i)))
(if (<= t -4.8e-28)
t_2
(if (<= t -1.1e-88)
(* i (- (* a b) (* y j)))
(if (<= t 4.9e-247)
t_1
(if (<= t 3.2e-179)
(* x (- (* y z) (* t a)))
(if (<= t 235000000000.0) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2.5e+48) {
tmp = t_2;
} else if (t <= -1.05e+17) {
tmp = j * ((t * c) - (y * i));
} else if (t <= -4.8e-28) {
tmp = t_2;
} else if (t <= -1.1e-88) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 4.9e-247) {
tmp = t_1;
} else if (t <= 3.2e-179) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 235000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = t * ((c * j) - (x * a))
if (t <= (-2.5d+48)) then
tmp = t_2
else if (t <= (-1.05d+17)) then
tmp = j * ((t * c) - (y * i))
else if (t <= (-4.8d-28)) then
tmp = t_2
else if (t <= (-1.1d-88)) then
tmp = i * ((a * b) - (y * j))
else if (t <= 4.9d-247) then
tmp = t_1
else if (t <= 3.2d-179) then
tmp = x * ((y * z) - (t * a))
else if (t <= 235000000000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2.5e+48) {
tmp = t_2;
} else if (t <= -1.05e+17) {
tmp = j * ((t * c) - (y * i));
} else if (t <= -4.8e-28) {
tmp = t_2;
} else if (t <= -1.1e-88) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 4.9e-247) {
tmp = t_1;
} else if (t <= 3.2e-179) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 235000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -2.5e+48: tmp = t_2 elif t <= -1.05e+17: tmp = j * ((t * c) - (y * i)) elif t <= -4.8e-28: tmp = t_2 elif t <= -1.1e-88: tmp = i * ((a * b) - (y * j)) elif t <= 4.9e-247: tmp = t_1 elif t <= 3.2e-179: tmp = x * ((y * z) - (t * a)) elif t <= 235000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -2.5e+48) tmp = t_2; elseif (t <= -1.05e+17) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (t <= -4.8e-28) tmp = t_2; elseif (t <= -1.1e-88) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (t <= 4.9e-247) tmp = t_1; elseif (t <= 3.2e-179) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (t <= 235000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -2.5e+48) tmp = t_2; elseif (t <= -1.05e+17) tmp = j * ((t * c) - (y * i)); elseif (t <= -4.8e-28) tmp = t_2; elseif (t <= -1.1e-88) tmp = i * ((a * b) - (y * j)); elseif (t <= 4.9e-247) tmp = t_1; elseif (t <= 3.2e-179) tmp = x * ((y * z) - (t * a)); elseif (t <= 235000000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.5e+48], t$95$2, If[LessEqual[t, -1.05e+17], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.8e-28], t$95$2, If[LessEqual[t, -1.1e-88], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.9e-247], t$95$1, If[LessEqual[t, 3.2e-179], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 235000000000.0], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{+48}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{+17}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;t \leq -4.8 \cdot 10^{-28}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.1 \cdot 10^{-88}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;t \leq 4.9 \cdot 10^{-247}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{-179}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;t \leq 235000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -2.49999999999999987e48 or -1.05e17 < t < -4.8000000000000004e-28 or 2.35e11 < t Initial program 65.9%
sub-neg65.9%
associate-+l+65.9%
fma-def67.6%
+-commutative67.6%
fma-def68.5%
*-commutative68.5%
*-commutative68.5%
distribute-rgt-neg-in68.5%
sub-neg68.5%
+-commutative68.5%
distribute-neg-in68.5%
unsub-neg68.5%
remove-double-neg68.5%
*-commutative68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in z around 0 62.7%
Taylor expanded in t around inf 65.4%
*-commutative65.4%
mul-1-neg65.4%
unsub-neg65.4%
Simplified65.4%
if -2.49999999999999987e48 < t < -1.05e17Initial program 64.0%
cancel-sign-sub64.0%
cancel-sign-sub-inv64.0%
*-commutative64.0%
*-commutative64.0%
remove-double-neg64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in t around 0 81.7%
fma-neg81.7%
*-commutative81.7%
*-commutative81.7%
*-commutative81.7%
fma-neg81.7%
distribute-rgt-neg-out81.7%
distribute-rgt-neg-in81.7%
neg-sub081.7%
distribute-rgt-neg-out81.7%
fma-neg81.7%
associate-+l-81.7%
neg-sub081.7%
+-commutative81.7%
*-commutative81.7%
sub-neg81.7%
Simplified81.7%
Taylor expanded in j around inf 81.8%
if -4.8000000000000004e-28 < t < -1.10000000000000002e-88Initial program 72.9%
+-commutative72.9%
associate-+r-72.9%
fma-def72.9%
*-commutative72.9%
*-commutative72.9%
*-commutative72.9%
fma-neg78.5%
*-commutative78.5%
distribute-rgt-neg-in78.5%
Simplified78.5%
Taylor expanded in i around inf 67.3%
*-commutative67.3%
sub-neg67.3%
mul-1-neg67.3%
remove-double-neg67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
*-commutative67.3%
Simplified67.3%
if -1.10000000000000002e-88 < t < 4.9e-247 or 3.2000000000000001e-179 < t < 2.35e11Initial program 88.6%
+-commutative88.6%
fma-def88.6%
*-commutative88.6%
*-commutative88.6%
*-commutative88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in b around inf 61.5%
if 4.9e-247 < t < 3.2000000000000001e-179Initial program 93.0%
+-commutative93.0%
fma-def93.0%
*-commutative93.0%
*-commutative93.0%
*-commutative93.0%
*-commutative93.0%
Simplified93.0%
Taylor expanded in j around 0 87.4%
Taylor expanded in x around inf 66.6%
Final simplification65.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b (* a i)) (* j (- (* y i) (* t c)))))
(t_2 (* t (- (* c j) (* x a)))))
(if (<= t -7.5e+49)
t_2
(if (<= t -1.75e-101)
t_1
(if (<= t 5.5e-304)
(* z (- (* x y) (* b c)))
(if (<= t 6.5e-250)
t_1
(if (<= t 4.8e-181)
(* x (- (* y z) (* t a)))
(if (<= t 1e+14) (* b (- (* a i) (* z c))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * (a * i)) - (j * ((y * i) - (t * c)));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -7.5e+49) {
tmp = t_2;
} else if (t <= -1.75e-101) {
tmp = t_1;
} else if (t <= 5.5e-304) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 6.5e-250) {
tmp = t_1;
} else if (t <= 4.8e-181) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 1e+14) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * (a * i)) - (j * ((y * i) - (t * c)))
t_2 = t * ((c * j) - (x * a))
if (t <= (-7.5d+49)) then
tmp = t_2
else if (t <= (-1.75d-101)) then
tmp = t_1
else if (t <= 5.5d-304) then
tmp = z * ((x * y) - (b * c))
else if (t <= 6.5d-250) then
tmp = t_1
else if (t <= 4.8d-181) then
tmp = x * ((y * z) - (t * a))
else if (t <= 1d+14) then
tmp = b * ((a * i) - (z * c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * (a * i)) - (j * ((y * i) - (t * c)));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -7.5e+49) {
tmp = t_2;
} else if (t <= -1.75e-101) {
tmp = t_1;
} else if (t <= 5.5e-304) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 6.5e-250) {
tmp = t_1;
} else if (t <= 4.8e-181) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 1e+14) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * (a * i)) - (j * ((y * i) - (t * c))) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -7.5e+49: tmp = t_2 elif t <= -1.75e-101: tmp = t_1 elif t <= 5.5e-304: tmp = z * ((x * y) - (b * c)) elif t <= 6.5e-250: tmp = t_1 elif t <= 4.8e-181: tmp = x * ((y * z) - (t * a)) elif t <= 1e+14: tmp = b * ((a * i) - (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * Float64(a * i)) - Float64(j * Float64(Float64(y * i) - Float64(t * c)))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -7.5e+49) tmp = t_2; elseif (t <= -1.75e-101) tmp = t_1; elseif (t <= 5.5e-304) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 6.5e-250) tmp = t_1; elseif (t <= 4.8e-181) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (t <= 1e+14) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (b * (a * i)) - (j * ((y * i) - (t * c))); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -7.5e+49) tmp = t_2; elseif (t <= -1.75e-101) tmp = t_1; elseif (t <= 5.5e-304) tmp = z * ((x * y) - (b * c)); elseif (t <= 6.5e-250) tmp = t_1; elseif (t <= 4.8e-181) tmp = x * ((y * z) - (t * a)); elseif (t <= 1e+14) tmp = b * ((a * i) - (z * c)); 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[(b * N[(a * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.5e+49], t$95$2, If[LessEqual[t, -1.75e-101], t$95$1, If[LessEqual[t, 5.5e-304], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-250], t$95$1, If[LessEqual[t, 4.8e-181], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e+14], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right) - j \cdot \left(y \cdot i - t \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -7.5 \cdot 10^{+49}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.75 \cdot 10^{-101}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-304}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-250}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-181}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;t \leq 10^{+14}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -7.4999999999999995e49 or 1e14 < t Initial program 66.4%
sub-neg66.4%
associate-+l+66.4%
fma-def68.2%
+-commutative68.2%
fma-def69.2%
*-commutative69.2%
*-commutative69.2%
distribute-rgt-neg-in69.2%
sub-neg69.2%
+-commutative69.2%
distribute-neg-in69.2%
unsub-neg69.2%
remove-double-neg69.2%
*-commutative69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in z around 0 61.2%
Taylor expanded in t around inf 65.8%
*-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
Simplified65.8%
if -7.4999999999999995e49 < t < -1.74999999999999997e-101 or 5.50000000000000035e-304 < t < 6.49999999999999942e-250Initial program 75.5%
cancel-sign-sub75.5%
cancel-sign-sub-inv75.5%
*-commutative75.5%
*-commutative75.5%
remove-double-neg75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in i around inf 75.0%
associate-*r*71.3%
*-commutative71.3%
Simplified71.3%
if -1.74999999999999997e-101 < t < 5.50000000000000035e-304Initial program 81.5%
+-commutative81.5%
fma-def81.5%
*-commutative81.5%
*-commutative81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in j around 0 77.6%
Taylor expanded in z around inf 62.5%
if 6.49999999999999942e-250 < t < 4.8000000000000002e-181Initial program 92.9%
+-commutative92.9%
fma-def92.9%
*-commutative92.9%
*-commutative92.9%
*-commutative92.9%
*-commutative92.9%
Simplified92.9%
Taylor expanded in j around 0 87.4%
Taylor expanded in x around inf 66.6%
if 4.8000000000000002e-181 < t < 1e14Initial program 96.2%
+-commutative96.2%
fma-def96.2%
*-commutative96.2%
*-commutative96.2%
*-commutative96.2%
*-commutative96.2%
Simplified96.2%
Taylor expanded in b around inf 67.6%
Final simplification66.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -6.5e+48)
t_1
(if (<= a 2.15e-172)
(+ (* j (- (* t c) (* y i))) (* x (* y z)))
(if (<= a 1.8e-100)
(- (* z (* c (- b))) (* j (* y i)))
(if (<= a 1.06e-48)
(- (* b (* a i)) (* j (- (* y i) (* t c))))
(if (<= a 1.6e+64) (- (* c (* t j)) (* z (* b c))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -6.5e+48) {
tmp = t_1;
} else if (a <= 2.15e-172) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else if (a <= 1.8e-100) {
tmp = (z * (c * -b)) - (j * (y * i));
} else if (a <= 1.06e-48) {
tmp = (b * (a * i)) - (j * ((y * i) - (t * c)));
} else if (a <= 1.6e+64) {
tmp = (c * (t * j)) - (z * (b * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-6.5d+48)) then
tmp = t_1
else if (a <= 2.15d-172) then
tmp = (j * ((t * c) - (y * i))) + (x * (y * z))
else if (a <= 1.8d-100) then
tmp = (z * (c * -b)) - (j * (y * i))
else if (a <= 1.06d-48) then
tmp = (b * (a * i)) - (j * ((y * i) - (t * c)))
else if (a <= 1.6d+64) then
tmp = (c * (t * j)) - (z * (b * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -6.5e+48) {
tmp = t_1;
} else if (a <= 2.15e-172) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else if (a <= 1.8e-100) {
tmp = (z * (c * -b)) - (j * (y * i));
} else if (a <= 1.06e-48) {
tmp = (b * (a * i)) - (j * ((y * i) - (t * c)));
} else if (a <= 1.6e+64) {
tmp = (c * (t * j)) - (z * (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -6.5e+48: tmp = t_1 elif a <= 2.15e-172: tmp = (j * ((t * c) - (y * i))) + (x * (y * z)) elif a <= 1.8e-100: tmp = (z * (c * -b)) - (j * (y * i)) elif a <= 1.06e-48: tmp = (b * (a * i)) - (j * ((y * i) - (t * c))) elif a <= 1.6e+64: tmp = (c * (t * j)) - (z * (b * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -6.5e+48) tmp = t_1; elseif (a <= 2.15e-172) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(y * z))); elseif (a <= 1.8e-100) tmp = Float64(Float64(z * Float64(c * Float64(-b))) - Float64(j * Float64(y * i))); elseif (a <= 1.06e-48) tmp = Float64(Float64(b * Float64(a * i)) - Float64(j * Float64(Float64(y * i) - Float64(t * c)))); elseif (a <= 1.6e+64) tmp = Float64(Float64(c * Float64(t * j)) - Float64(z * Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -6.5e+48) tmp = t_1; elseif (a <= 2.15e-172) tmp = (j * ((t * c) - (y * i))) + (x * (y * z)); elseif (a <= 1.8e-100) tmp = (z * (c * -b)) - (j * (y * i)); elseif (a <= 1.06e-48) tmp = (b * (a * i)) - (j * ((y * i) - (t * c))); elseif (a <= 1.6e+64) tmp = (c * (t * j)) - (z * (b * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.5e+48], t$95$1, If[LessEqual[a, 2.15e-172], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e-100], N[(N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.06e-48], N[(N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e+64], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -6.5 \cdot 10^{+48}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.15 \cdot 10^{-172}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-100}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right) - j \cdot \left(y \cdot i\right)\\
\mathbf{elif}\;a \leq 1.06 \cdot 10^{-48}:\\
\;\;\;\;b \cdot \left(a \cdot i\right) - j \cdot \left(y \cdot i - t \cdot c\right)\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{+64}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -6.49999999999999972e48 or 1.60000000000000009e64 < a Initial program 66.8%
sub-neg66.8%
associate-+l+66.8%
fma-def69.5%
+-commutative69.5%
fma-def70.4%
*-commutative70.4%
*-commutative70.4%
distribute-rgt-neg-in70.4%
sub-neg70.4%
+-commutative70.4%
distribute-neg-in70.4%
unsub-neg70.4%
remove-double-neg70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in a around inf 69.8%
Taylor expanded in a around 0 69.8%
*-commutative69.8%
mul-1-neg69.8%
*-commutative69.8%
unsub-neg69.8%
Simplified69.8%
if -6.49999999999999972e48 < a < 2.1499999999999999e-172Initial program 84.9%
cancel-sign-sub84.9%
cancel-sign-sub-inv84.9%
*-commutative84.9%
*-commutative84.9%
remove-double-neg84.9%
*-commutative84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in t around 0 79.0%
fma-neg79.9%
*-commutative79.9%
*-commutative79.9%
*-commutative79.9%
fma-neg79.9%
distribute-rgt-neg-out79.9%
distribute-rgt-neg-in79.9%
neg-sub079.9%
distribute-rgt-neg-out79.9%
fma-neg79.9%
associate-+l-79.9%
neg-sub079.9%
+-commutative79.9%
*-commutative79.9%
sub-neg79.9%
Simplified79.9%
Taylor expanded in y around inf 61.1%
associate-*r*63.9%
Simplified63.9%
if 2.1499999999999999e-172 < a < 1.7999999999999999e-100Initial program 79.2%
cancel-sign-sub79.2%
cancel-sign-sub-inv79.2%
*-commutative79.2%
*-commutative79.2%
remove-double-neg79.2%
*-commutative79.2%
*-commutative79.2%
Simplified79.2%
Taylor expanded in c around inf 82.5%
mul-1-neg82.5%
associate-*r*82.2%
distribute-rgt-neg-in82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in t around 0 82.3%
neg-mul-182.3%
distribute-rgt-neg-in82.3%
Simplified82.3%
if 1.7999999999999999e-100 < a < 1.0600000000000001e-48Initial program 66.7%
cancel-sign-sub66.7%
cancel-sign-sub-inv66.7%
*-commutative66.7%
*-commutative66.7%
remove-double-neg66.7%
*-commutative66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in i around inf 83.3%
associate-*r*83.3%
*-commutative83.3%
Simplified83.3%
if 1.0600000000000001e-48 < a < 1.60000000000000009e64Initial program 84.6%
cancel-sign-sub84.6%
cancel-sign-sub-inv84.6%
*-commutative84.6%
*-commutative84.6%
remove-double-neg84.6%
*-commutative84.6%
*-commutative84.6%
Simplified84.6%
Taylor expanded in c around inf 75.2%
mul-1-neg75.2%
associate-*r*75.2%
distribute-rgt-neg-in75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in t around inf 75.3%
Final simplification68.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -2.6e-29) (not (<= t 230000000.0))) (+ (* t (- (* c j) (* x a))) (* i (- (* a b) (* y j)))) (+ (* x (- (* y z) (* t a))) (* 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 ((t <= -2.6e-29) || !(t <= 230000000.0)) {
tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j)));
} else {
tmp = (x * ((y * z) - (t * a))) + (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 ((t <= (-2.6d-29)) .or. (.not. (t <= 230000000.0d0))) then
tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j)))
else
tmp = (x * ((y * z) - (t * a))) + (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 ((t <= -2.6e-29) || !(t <= 230000000.0)) {
tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j)));
} else {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -2.6e-29) or not (t <= 230000000.0): tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j))) else: tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -2.6e-29) || !(t <= 230000000.0)) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(i * Float64(Float64(a * b) - Float64(y * j)))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + 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 ((t <= -2.6e-29) || ~((t <= 230000000.0))) tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j))); else tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -2.6e-29], N[Not[LessEqual[t, 230000000.0]], $MachinePrecision]], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.6 \cdot 10^{-29} \lor \neg \left(t \leq 230000000\right):\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if t < -2.6000000000000002e-29 or 2.3e8 < t Initial program 65.6%
sub-neg65.6%
associate-+l+65.6%
fma-def67.9%
+-commutative67.9%
fma-def68.6%
*-commutative68.6%
*-commutative68.6%
distribute-rgt-neg-in68.6%
sub-neg68.6%
+-commutative68.6%
distribute-neg-in68.6%
unsub-neg68.6%
remove-double-neg68.6%
*-commutative68.6%
*-commutative68.6%
Simplified68.6%
Taylor expanded in z around 0 64.9%
Taylor expanded in i around -inf 62.7%
+-commutative62.7%
mul-1-neg62.7%
unsub-neg62.7%
*-commutative62.7%
associate-*r*64.7%
*-commutative64.7%
associate-*r*70.5%
associate-*r*70.5%
distribute-rgt-in72.8%
mul-1-neg72.8%
unsub-neg72.8%
mul-1-neg72.8%
unsub-neg72.8%
*-commutative72.8%
Simplified72.8%
if -2.6000000000000002e-29 < t < 2.3e8Initial program 87.6%
+-commutative87.6%
fma-def87.6%
*-commutative87.6%
*-commutative87.6%
*-commutative87.6%
*-commutative87.6%
Simplified87.6%
Taylor expanded in j around 0 78.8%
Final simplification75.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1.15e-43)
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))
(if (<= t 420.0)
(+ (* y (* x z)) (* b (- (* a i) (* z c))))
(+ (* t (- (* c j) (* x a))) (* i (- (* a b) (* y j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.15e-43) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if (t <= 420.0) {
tmp = (y * (x * z)) + (b * ((a * i) - (z * c)));
} else {
tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-1.15d-43)) then
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
else if (t <= 420.0d0) then
tmp = (y * (x * z)) + (b * ((a * i) - (z * c)))
else
tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.15e-43) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if (t <= 420.0) {
tmp = (y * (x * z)) + (b * ((a * i) - (z * c)));
} else {
tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.15e-43: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) elif t <= 420.0: tmp = (y * (x * z)) + (b * ((a * i) - (z * c))) else: tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.15e-43) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); elseif (t <= 420.0) tmp = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(i * Float64(Float64(a * b) - Float64(y * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.15e-43) tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); elseif (t <= 420.0) tmp = (y * (x * z)) + (b * ((a * i) - (z * c))); else tmp = (t * ((c * j) - (x * a))) + (i * ((a * b) - (y * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.15e-43], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 420.0], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{-43}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;t \leq 420:\\
\;\;\;\;y \cdot \left(x \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if t < -1.1499999999999999e-43Initial program 71.3%
+-commutative71.3%
associate-+r-71.3%
fma-def72.7%
*-commutative72.7%
*-commutative72.7%
*-commutative72.7%
fma-neg72.7%
*-commutative72.7%
distribute-rgt-neg-in72.7%
Simplified72.7%
Taylor expanded in b around 0 73.4%
if -1.1499999999999999e-43 < t < 420Initial program 87.3%
+-commutative87.3%
fma-def87.3%
*-commutative87.3%
*-commutative87.3%
*-commutative87.3%
*-commutative87.3%
Simplified87.3%
Taylor expanded in j around 0 78.5%
Taylor expanded in y around inf 71.9%
if 420 < t Initial program 60.7%
sub-neg60.7%
associate-+l+60.7%
fma-def62.3%
+-commutative62.3%
fma-def62.3%
*-commutative62.3%
*-commutative62.3%
distribute-rgt-neg-in62.3%
sub-neg62.3%
+-commutative62.3%
distribute-neg-in62.3%
unsub-neg62.3%
remove-double-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in z around 0 63.9%
Taylor expanded in i around -inf 60.5%
+-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
*-commutative60.5%
associate-*r*63.9%
*-commutative63.9%
associate-*r*68.5%
associate-*r*68.5%
distribute-rgt-in71.7%
mul-1-neg71.7%
unsub-neg71.7%
mul-1-neg71.7%
unsub-neg71.7%
*-commutative71.7%
Simplified71.7%
Final simplification72.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -4.1e+46)
t_1
(if (<= a -6e-160)
(* y (* x z))
(if (<= a 3e-227)
(* b (* c (- z)))
(if (<= a 1.82e-178)
(* x (* y z))
(if (<= a 1.8e+40) (* c (* b (- z))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4.1e+46) {
tmp = t_1;
} else if (a <= -6e-160) {
tmp = y * (x * z);
} else if (a <= 3e-227) {
tmp = b * (c * -z);
} else if (a <= 1.82e-178) {
tmp = x * (y * z);
} else if (a <= 1.8e+40) {
tmp = c * (b * -z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-4.1d+46)) then
tmp = t_1
else if (a <= (-6d-160)) then
tmp = y * (x * z)
else if (a <= 3d-227) then
tmp = b * (c * -z)
else if (a <= 1.82d-178) then
tmp = x * (y * z)
else if (a <= 1.8d+40) then
tmp = c * (b * -z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4.1e+46) {
tmp = t_1;
} else if (a <= -6e-160) {
tmp = y * (x * z);
} else if (a <= 3e-227) {
tmp = b * (c * -z);
} else if (a <= 1.82e-178) {
tmp = x * (y * z);
} else if (a <= 1.8e+40) {
tmp = c * (b * -z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -4.1e+46: tmp = t_1 elif a <= -6e-160: tmp = y * (x * z) elif a <= 3e-227: tmp = b * (c * -z) elif a <= 1.82e-178: tmp = x * (y * z) elif a <= 1.8e+40: tmp = c * (b * -z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -4.1e+46) tmp = t_1; elseif (a <= -6e-160) tmp = Float64(y * Float64(x * z)); elseif (a <= 3e-227) tmp = Float64(b * Float64(c * Float64(-z))); elseif (a <= 1.82e-178) tmp = Float64(x * Float64(y * z)); elseif (a <= 1.8e+40) tmp = Float64(c * Float64(b * Float64(-z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -4.1e+46) tmp = t_1; elseif (a <= -6e-160) tmp = y * (x * z); elseif (a <= 3e-227) tmp = b * (c * -z); elseif (a <= 1.82e-178) tmp = x * (y * z); elseif (a <= 1.8e+40) tmp = c * (b * -z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.1e+46], t$95$1, If[LessEqual[a, -6e-160], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3e-227], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.82e-178], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e+40], N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -4.1 \cdot 10^{+46}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -6 \cdot 10^{-160}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 3 \cdot 10^{-227}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\mathbf{elif}\;a \leq 1.82 \cdot 10^{-178}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{+40}:\\
\;\;\;\;c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -4.1e46 or 1.79999999999999998e40 < a Initial program 68.9%
sub-neg68.9%
associate-+l+68.9%
fma-def71.5%
+-commutative71.5%
fma-def72.3%
*-commutative72.3%
*-commutative72.3%
distribute-rgt-neg-in72.3%
sub-neg72.3%
+-commutative72.3%
distribute-neg-in72.3%
unsub-neg72.3%
remove-double-neg72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in a around inf 67.5%
Taylor expanded in a around 0 67.5%
*-commutative67.5%
mul-1-neg67.5%
*-commutative67.5%
unsub-neg67.5%
Simplified67.5%
if -4.1e46 < a < -5.99999999999999993e-160Initial program 86.2%
cancel-sign-sub86.2%
cancel-sign-sub-inv86.2%
*-commutative86.2%
*-commutative86.2%
remove-double-neg86.2%
*-commutative86.2%
*-commutative86.2%
Simplified86.2%
Taylor expanded in t around 0 79.2%
fma-neg79.2%
*-commutative79.2%
*-commutative79.2%
*-commutative79.2%
fma-neg79.2%
distribute-rgt-neg-out79.2%
distribute-rgt-neg-in79.2%
neg-sub079.2%
distribute-rgt-neg-out79.2%
fma-neg79.2%
associate-+l-79.2%
neg-sub079.2%
+-commutative79.2%
*-commutative79.2%
sub-neg79.2%
Simplified79.2%
Taylor expanded in y around inf 61.7%
+-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
Simplified61.7%
Taylor expanded in z around inf 50.0%
if -5.99999999999999993e-160 < a < 3e-227Initial program 85.7%
+-commutative85.7%
fma-def85.7%
*-commutative85.7%
*-commutative85.7%
*-commutative85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in b around inf 45.5%
Taylor expanded in i around 0 37.7%
neg-mul-137.7%
distribute-rgt-neg-in37.7%
Simplified37.7%
if 3e-227 < a < 1.8199999999999999e-178Initial program 80.0%
cancel-sign-sub80.0%
cancel-sign-sub-inv80.0%
*-commutative80.0%
*-commutative80.0%
remove-double-neg80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in t around 0 79.8%
fma-neg79.8%
*-commutative79.8%
*-commutative79.8%
*-commutative79.8%
fma-neg79.8%
distribute-rgt-neg-out79.8%
distribute-rgt-neg-in79.8%
neg-sub079.8%
distribute-rgt-neg-out79.8%
fma-neg79.8%
associate-+l-79.8%
neg-sub079.8%
+-commutative79.8%
*-commutative79.8%
sub-neg79.8%
Simplified79.8%
Taylor expanded in y around inf 70.5%
+-commutative70.5%
mul-1-neg70.5%
unsub-neg70.5%
Simplified70.5%
Taylor expanded in z around inf 60.5%
associate-*r*60.7%
*-commutative60.7%
Simplified60.7%
if 1.8199999999999999e-178 < a < 1.79999999999999998e40Initial program 74.8%
+-commutative74.8%
fma-def74.8%
*-commutative74.8%
*-commutative74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in j around 0 57.5%
Taylor expanded in c around inf 49.7%
*-commutative49.7%
mul-1-neg49.7%
Simplified49.7%
Final simplification56.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* t (- (* c j) (* x a)))))
(if (<= t -4e-28)
t_2
(if (<= t -5.5e-86)
(* i (- (* a b) (* y j)))
(if (<= t 6.5e-245)
t_1
(if (<= t 2.9e-181) (* x (* y z)) (if (<= t 1.85e+15) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -4e-28) {
tmp = t_2;
} else if (t <= -5.5e-86) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 6.5e-245) {
tmp = t_1;
} else if (t <= 2.9e-181) {
tmp = x * (y * z);
} else if (t <= 1.85e+15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = t * ((c * j) - (x * a))
if (t <= (-4d-28)) then
tmp = t_2
else if (t <= (-5.5d-86)) then
tmp = i * ((a * b) - (y * j))
else if (t <= 6.5d-245) then
tmp = t_1
else if (t <= 2.9d-181) then
tmp = x * (y * z)
else if (t <= 1.85d+15) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -4e-28) {
tmp = t_2;
} else if (t <= -5.5e-86) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 6.5e-245) {
tmp = t_1;
} else if (t <= 2.9e-181) {
tmp = x * (y * z);
} else if (t <= 1.85e+15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -4e-28: tmp = t_2 elif t <= -5.5e-86: tmp = i * ((a * b) - (y * j)) elif t <= 6.5e-245: tmp = t_1 elif t <= 2.9e-181: tmp = x * (y * z) elif t <= 1.85e+15: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -4e-28) tmp = t_2; elseif (t <= -5.5e-86) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (t <= 6.5e-245) tmp = t_1; elseif (t <= 2.9e-181) tmp = Float64(x * Float64(y * z)); elseif (t <= 1.85e+15) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -4e-28) tmp = t_2; elseif (t <= -5.5e-86) tmp = i * ((a * b) - (y * j)); elseif (t <= 6.5e-245) tmp = t_1; elseif (t <= 2.9e-181) tmp = x * (y * z); elseif (t <= 1.85e+15) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e-28], t$95$2, If[LessEqual[t, -5.5e-86], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-245], t$95$1, If[LessEqual[t, 2.9e-181], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e+15], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -4 \cdot 10^{-28}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -5.5 \cdot 10^{-86}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-245}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-181}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -3.99999999999999988e-28 or 1.85e15 < t Initial program 65.8%
sub-neg65.8%
associate-+l+65.8%
fma-def68.1%
+-commutative68.1%
fma-def68.9%
*-commutative68.9%
*-commutative68.9%
distribute-rgt-neg-in68.9%
sub-neg68.9%
+-commutative68.9%
distribute-neg-in68.9%
unsub-neg68.9%
remove-double-neg68.9%
*-commutative68.9%
*-commutative68.9%
Simplified68.9%
Taylor expanded in z around 0 64.3%
Taylor expanded in t around inf 63.4%
*-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
Simplified63.4%
if -3.99999999999999988e-28 < t < -5.5e-86Initial program 72.9%
+-commutative72.9%
associate-+r-72.9%
fma-def72.9%
*-commutative72.9%
*-commutative72.9%
*-commutative72.9%
fma-neg78.5%
*-commutative78.5%
distribute-rgt-neg-in78.5%
Simplified78.5%
Taylor expanded in i around inf 67.3%
*-commutative67.3%
sub-neg67.3%
mul-1-neg67.3%
remove-double-neg67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
*-commutative67.3%
Simplified67.3%
if -5.5e-86 < t < 6.5000000000000004e-245 or 2.8999999999999998e-181 < t < 1.85e15Initial program 88.8%
+-commutative88.8%
fma-def88.8%
*-commutative88.8%
*-commutative88.8%
*-commutative88.8%
*-commutative88.8%
Simplified88.8%
Taylor expanded in b around inf 62.0%
if 6.5000000000000004e-245 < t < 2.8999999999999998e-181Initial program 92.6%
cancel-sign-sub92.6%
cancel-sign-sub-inv92.6%
*-commutative92.6%
*-commutative92.6%
remove-double-neg92.6%
*-commutative92.6%
*-commutative92.6%
Simplified92.6%
Taylor expanded in t around 0 78.8%
fma-neg78.9%
*-commutative78.9%
*-commutative78.9%
*-commutative78.9%
fma-neg78.9%
distribute-rgt-neg-out78.9%
distribute-rgt-neg-in78.9%
neg-sub078.9%
distribute-rgt-neg-out78.9%
fma-neg78.9%
associate-+l-78.9%
neg-sub078.9%
+-commutative78.9%
*-commutative78.9%
sub-neg78.9%
Simplified78.9%
Taylor expanded in y around inf 56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
Simplified56.4%
Taylor expanded in z around inf 40.9%
associate-*r*61.5%
*-commutative61.5%
Simplified61.5%
Final simplification63.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* t (- (* c j) (* x a)))))
(if (<= t -5.5e-28)
t_2
(if (<= t -2e-86)
(* i (- (* a b) (* y j)))
(if (<= t 5.4e-243)
t_1
(if (<= t 3.1e-181)
(* y (- (* x z) (* i j)))
(if (<= t 320000.0) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -5.5e-28) {
tmp = t_2;
} else if (t <= -2e-86) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 5.4e-243) {
tmp = t_1;
} else if (t <= 3.1e-181) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 320000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = t * ((c * j) - (x * a))
if (t <= (-5.5d-28)) then
tmp = t_2
else if (t <= (-2d-86)) then
tmp = i * ((a * b) - (y * j))
else if (t <= 5.4d-243) then
tmp = t_1
else if (t <= 3.1d-181) then
tmp = y * ((x * z) - (i * j))
else if (t <= 320000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -5.5e-28) {
tmp = t_2;
} else if (t <= -2e-86) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 5.4e-243) {
tmp = t_1;
} else if (t <= 3.1e-181) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 320000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -5.5e-28: tmp = t_2 elif t <= -2e-86: tmp = i * ((a * b) - (y * j)) elif t <= 5.4e-243: tmp = t_1 elif t <= 3.1e-181: tmp = y * ((x * z) - (i * j)) elif t <= 320000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -5.5e-28) tmp = t_2; elseif (t <= -2e-86) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (t <= 5.4e-243) tmp = t_1; elseif (t <= 3.1e-181) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 320000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -5.5e-28) tmp = t_2; elseif (t <= -2e-86) tmp = i * ((a * b) - (y * j)); elseif (t <= 5.4e-243) tmp = t_1; elseif (t <= 3.1e-181) tmp = y * ((x * z) - (i * j)); elseif (t <= 320000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.5e-28], t$95$2, If[LessEqual[t, -2e-86], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.4e-243], t$95$1, If[LessEqual[t, 3.1e-181], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 320000.0], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -5.5 \cdot 10^{-28}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -2 \cdot 10^{-86}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;t \leq 5.4 \cdot 10^{-243}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-181}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 320000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -5.49999999999999967e-28 or 3.2e5 < t Initial program 65.8%
sub-neg65.8%
associate-+l+65.8%
fma-def68.1%
+-commutative68.1%
fma-def68.9%
*-commutative68.9%
*-commutative68.9%
distribute-rgt-neg-in68.9%
sub-neg68.9%
+-commutative68.9%
distribute-neg-in68.9%
unsub-neg68.9%
remove-double-neg68.9%
*-commutative68.9%
*-commutative68.9%
Simplified68.9%
Taylor expanded in z around 0 64.3%
Taylor expanded in t around inf 63.4%
*-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
Simplified63.4%
if -5.49999999999999967e-28 < t < -2.00000000000000017e-86Initial program 72.9%
+-commutative72.9%
associate-+r-72.9%
fma-def72.9%
*-commutative72.9%
*-commutative72.9%
*-commutative72.9%
fma-neg78.5%
*-commutative78.5%
distribute-rgt-neg-in78.5%
Simplified78.5%
Taylor expanded in i around inf 67.3%
*-commutative67.3%
sub-neg67.3%
mul-1-neg67.3%
remove-double-neg67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
*-commutative67.3%
Simplified67.3%
if -2.00000000000000017e-86 < t < 5.40000000000000021e-243 or 3.10000000000000021e-181 < t < 3.2e5Initial program 88.9%
+-commutative88.9%
fma-def88.9%
*-commutative88.9%
*-commutative88.9%
*-commutative88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in b around inf 62.4%
if 5.40000000000000021e-243 < t < 3.10000000000000021e-181Initial program 92.2%
cancel-sign-sub92.2%
cancel-sign-sub-inv92.2%
*-commutative92.2%
*-commutative92.2%
remove-double-neg92.2%
*-commutative92.2%
*-commutative92.2%
Simplified92.2%
Taylor expanded in t around 0 77.5%
fma-neg77.6%
*-commutative77.6%
*-commutative77.6%
*-commutative77.6%
fma-neg77.6%
distribute-rgt-neg-out77.6%
distribute-rgt-neg-in77.6%
neg-sub077.6%
distribute-rgt-neg-out77.6%
fma-neg77.6%
associate-+l-77.6%
neg-sub077.6%
+-commutative77.6%
*-commutative77.6%
sub-neg77.6%
Simplified77.6%
Taylor expanded in y around inf 59.4%
+-commutative59.4%
mul-1-neg59.4%
unsub-neg59.4%
Simplified59.4%
Final simplification63.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))))
(if (<= t -2.6e+48)
t_1
(if (<= t -1.35e+17)
(* j (- (* t c) (* y i)))
(if (<= t -4.5e-28)
t_1
(if (<= t -2.8e-86)
(* i (- (* a b) (* y j)))
(if (<= t 3100000000000.0) (* b (- (* a i) (* z c))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2.6e+48) {
tmp = t_1;
} else if (t <= -1.35e+17) {
tmp = j * ((t * c) - (y * i));
} else if (t <= -4.5e-28) {
tmp = t_1;
} else if (t <= -2.8e-86) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 3100000000000.0) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
if (t <= (-2.6d+48)) then
tmp = t_1
else if (t <= (-1.35d+17)) then
tmp = j * ((t * c) - (y * i))
else if (t <= (-4.5d-28)) then
tmp = t_1
else if (t <= (-2.8d-86)) then
tmp = i * ((a * b) - (y * j))
else if (t <= 3100000000000.0d0) then
tmp = b * ((a * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2.6e+48) {
tmp = t_1;
} else if (t <= -1.35e+17) {
tmp = j * ((t * c) - (y * i));
} else if (t <= -4.5e-28) {
tmp = t_1;
} else if (t <= -2.8e-86) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 3100000000000.0) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) tmp = 0 if t <= -2.6e+48: tmp = t_1 elif t <= -1.35e+17: tmp = j * ((t * c) - (y * i)) elif t <= -4.5e-28: tmp = t_1 elif t <= -2.8e-86: tmp = i * ((a * b) - (y * j)) elif t <= 3100000000000.0: tmp = b * ((a * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -2.6e+48) tmp = t_1; elseif (t <= -1.35e+17) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (t <= -4.5e-28) tmp = t_1; elseif (t <= -2.8e-86) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (t <= 3100000000000.0) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -2.6e+48) tmp = t_1; elseif (t <= -1.35e+17) tmp = j * ((t * c) - (y * i)); elseif (t <= -4.5e-28) tmp = t_1; elseif (t <= -2.8e-86) tmp = i * ((a * b) - (y * j)); elseif (t <= 3100000000000.0) tmp = b * ((a * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.6e+48], t$95$1, If[LessEqual[t, -1.35e+17], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.5e-28], t$95$1, If[LessEqual[t, -2.8e-86], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3100000000000.0], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -2.6 \cdot 10^{+48}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.35 \cdot 10^{+17}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;t \leq -4.5 \cdot 10^{-28}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{-86}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;t \leq 3100000000000:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.59999999999999995e48 or -1.35e17 < t < -4.4999999999999998e-28 or 3.1e12 < t Initial program 65.9%
sub-neg65.9%
associate-+l+65.9%
fma-def67.6%
+-commutative67.6%
fma-def68.5%
*-commutative68.5%
*-commutative68.5%
distribute-rgt-neg-in68.5%
sub-neg68.5%
+-commutative68.5%
distribute-neg-in68.5%
unsub-neg68.5%
remove-double-neg68.5%
*-commutative68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in z around 0 62.7%
Taylor expanded in t around inf 65.4%
*-commutative65.4%
mul-1-neg65.4%
unsub-neg65.4%
Simplified65.4%
if -2.59999999999999995e48 < t < -1.35e17Initial program 64.0%
cancel-sign-sub64.0%
cancel-sign-sub-inv64.0%
*-commutative64.0%
*-commutative64.0%
remove-double-neg64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in t around 0 81.7%
fma-neg81.7%
*-commutative81.7%
*-commutative81.7%
*-commutative81.7%
fma-neg81.7%
distribute-rgt-neg-out81.7%
distribute-rgt-neg-in81.7%
neg-sub081.7%
distribute-rgt-neg-out81.7%
fma-neg81.7%
associate-+l-81.7%
neg-sub081.7%
+-commutative81.7%
*-commutative81.7%
sub-neg81.7%
Simplified81.7%
Taylor expanded in j around inf 81.8%
if -4.4999999999999998e-28 < t < -2.80000000000000009e-86Initial program 72.9%
+-commutative72.9%
associate-+r-72.9%
fma-def72.9%
*-commutative72.9%
*-commutative72.9%
*-commutative72.9%
fma-neg78.5%
*-commutative78.5%
distribute-rgt-neg-in78.5%
Simplified78.5%
Taylor expanded in i around inf 67.3%
*-commutative67.3%
sub-neg67.3%
mul-1-neg67.3%
remove-double-neg67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
*-commutative67.3%
Simplified67.3%
if -2.80000000000000009e-86 < t < 3.1e12Initial program 89.4%
+-commutative89.4%
fma-def89.4%
*-commutative89.4%
*-commutative89.4%
*-commutative89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in b around inf 57.6%
Final simplification62.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* b (- z)))))
(if (<= a -1.7e+103)
(* i (* a b))
(if (<= a -1.65e-159)
(* y (* x z))
(if (<= a -5.5e-289)
t_1
(if (<= a 3e-178)
(* x (* y z))
(if (<= a 1.7e+62) t_1 (* b (* a i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (b * -z);
double tmp;
if (a <= -1.7e+103) {
tmp = i * (a * b);
} else if (a <= -1.65e-159) {
tmp = y * (x * z);
} else if (a <= -5.5e-289) {
tmp = t_1;
} else if (a <= 3e-178) {
tmp = x * (y * z);
} else if (a <= 1.7e+62) {
tmp = t_1;
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (b * -z)
if (a <= (-1.7d+103)) then
tmp = i * (a * b)
else if (a <= (-1.65d-159)) then
tmp = y * (x * z)
else if (a <= (-5.5d-289)) then
tmp = t_1
else if (a <= 3d-178) then
tmp = x * (y * z)
else if (a <= 1.7d+62) then
tmp = t_1
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (b * -z);
double tmp;
if (a <= -1.7e+103) {
tmp = i * (a * b);
} else if (a <= -1.65e-159) {
tmp = y * (x * z);
} else if (a <= -5.5e-289) {
tmp = t_1;
} else if (a <= 3e-178) {
tmp = x * (y * z);
} else if (a <= 1.7e+62) {
tmp = t_1;
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (b * -z) tmp = 0 if a <= -1.7e+103: tmp = i * (a * b) elif a <= -1.65e-159: tmp = y * (x * z) elif a <= -5.5e-289: tmp = t_1 elif a <= 3e-178: tmp = x * (y * z) elif a <= 1.7e+62: tmp = t_1 else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(b * Float64(-z))) tmp = 0.0 if (a <= -1.7e+103) tmp = Float64(i * Float64(a * b)); elseif (a <= -1.65e-159) tmp = Float64(y * Float64(x * z)); elseif (a <= -5.5e-289) tmp = t_1; elseif (a <= 3e-178) tmp = Float64(x * Float64(y * z)); elseif (a <= 1.7e+62) tmp = t_1; else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (b * -z); tmp = 0.0; if (a <= -1.7e+103) tmp = i * (a * b); elseif (a <= -1.65e-159) tmp = y * (x * z); elseif (a <= -5.5e-289) tmp = t_1; elseif (a <= 3e-178) tmp = x * (y * z); elseif (a <= 1.7e+62) tmp = t_1; else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.7e+103], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.65e-159], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.5e-289], t$95$1, If[LessEqual[a, 3e-178], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.7e+62], t$95$1, N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{if}\;a \leq -1.7 \cdot 10^{+103}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;a \leq -1.65 \cdot 10^{-159}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-289}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3 \cdot 10^{-178}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{+62}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if a < -1.6999999999999999e103Initial program 64.9%
sub-neg64.9%
associate-+l+64.9%
fma-def67.6%
+-commutative67.6%
fma-def70.3%
*-commutative70.3%
*-commutative70.3%
distribute-rgt-neg-in70.3%
sub-neg70.3%
+-commutative70.3%
distribute-neg-in70.3%
unsub-neg70.3%
remove-double-neg70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in z around 0 67.8%
Taylor expanded in i around -inf 67.5%
+-commutative67.5%
mul-1-neg67.5%
unsub-neg67.5%
*-commutative67.5%
associate-*r*67.5%
*-commutative67.5%
associate-*r*62.3%
associate-*r*62.3%
distribute-rgt-in65.0%
mul-1-neg65.0%
unsub-neg65.0%
mul-1-neg65.0%
unsub-neg65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in b around inf 41.6%
if -1.6999999999999999e103 < a < -1.6500000000000001e-159Initial program 88.9%
cancel-sign-sub88.9%
cancel-sign-sub-inv88.9%
*-commutative88.9%
*-commutative88.9%
remove-double-neg88.9%
*-commutative88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in t around 0 73.4%
fma-neg73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
fma-neg73.4%
distribute-rgt-neg-out73.4%
distribute-rgt-neg-in73.4%
neg-sub073.4%
distribute-rgt-neg-out73.4%
fma-neg73.4%
associate-+l-73.4%
neg-sub073.4%
+-commutative73.4%
*-commutative73.4%
sub-neg73.4%
Simplified73.4%
Taylor expanded in y around inf 52.3%
+-commutative52.3%
mul-1-neg52.3%
unsub-neg52.3%
Simplified52.3%
Taylor expanded in z around inf 42.7%
if -1.6500000000000001e-159 < a < -5.5000000000000004e-289 or 2.9999999999999999e-178 < a < 1.70000000000000007e62Initial program 80.7%
+-commutative80.7%
fma-def80.7%
*-commutative80.7%
*-commutative80.7%
*-commutative80.7%
*-commutative80.7%
Simplified80.7%
Taylor expanded in j around 0 62.7%
Taylor expanded in c around inf 43.1%
*-commutative43.1%
mul-1-neg43.1%
Simplified43.1%
if -5.5000000000000004e-289 < a < 2.9999999999999999e-178Initial program 85.0%
cancel-sign-sub85.0%
cancel-sign-sub-inv85.0%
*-commutative85.0%
*-commutative85.0%
remove-double-neg85.0%
*-commutative85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in t around 0 87.5%
fma-neg87.5%
*-commutative87.5%
*-commutative87.5%
*-commutative87.5%
fma-neg87.5%
distribute-rgt-neg-out87.5%
distribute-rgt-neg-in87.5%
neg-sub087.5%
distribute-rgt-neg-out87.5%
fma-neg87.5%
associate-+l-87.5%
neg-sub087.5%
+-commutative87.5%
*-commutative87.5%
sub-neg87.5%
Simplified87.5%
Taylor expanded in y around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
Simplified51.3%
Taylor expanded in z around inf 39.5%
associate-*r*44.1%
*-commutative44.1%
Simplified44.1%
if 1.70000000000000007e62 < a Initial program 58.8%
+-commutative58.8%
fma-def60.5%
*-commutative60.5%
*-commutative60.5%
*-commutative60.5%
*-commutative60.5%
Simplified60.5%
Taylor expanded in b around inf 49.0%
Taylor expanded in i around inf 44.0%
*-commutative44.0%
Simplified44.0%
Final simplification43.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* b (- z)))))
(if (<= a -8e+60)
(* a (* x (- t)))
(if (<= a -3.9e-159)
(* y (* x z))
(if (<= a -3.6e-286)
t_1
(if (<= a 1.7e-178)
(* x (* y z))
(if (<= a 2.8e+62) t_1 (* b (* a i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (b * -z);
double tmp;
if (a <= -8e+60) {
tmp = a * (x * -t);
} else if (a <= -3.9e-159) {
tmp = y * (x * z);
} else if (a <= -3.6e-286) {
tmp = t_1;
} else if (a <= 1.7e-178) {
tmp = x * (y * z);
} else if (a <= 2.8e+62) {
tmp = t_1;
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (b * -z)
if (a <= (-8d+60)) then
tmp = a * (x * -t)
else if (a <= (-3.9d-159)) then
tmp = y * (x * z)
else if (a <= (-3.6d-286)) then
tmp = t_1
else if (a <= 1.7d-178) then
tmp = x * (y * z)
else if (a <= 2.8d+62) then
tmp = t_1
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (b * -z);
double tmp;
if (a <= -8e+60) {
tmp = a * (x * -t);
} else if (a <= -3.9e-159) {
tmp = y * (x * z);
} else if (a <= -3.6e-286) {
tmp = t_1;
} else if (a <= 1.7e-178) {
tmp = x * (y * z);
} else if (a <= 2.8e+62) {
tmp = t_1;
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (b * -z) tmp = 0 if a <= -8e+60: tmp = a * (x * -t) elif a <= -3.9e-159: tmp = y * (x * z) elif a <= -3.6e-286: tmp = t_1 elif a <= 1.7e-178: tmp = x * (y * z) elif a <= 2.8e+62: tmp = t_1 else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(b * Float64(-z))) tmp = 0.0 if (a <= -8e+60) tmp = Float64(a * Float64(x * Float64(-t))); elseif (a <= -3.9e-159) tmp = Float64(y * Float64(x * z)); elseif (a <= -3.6e-286) tmp = t_1; elseif (a <= 1.7e-178) tmp = Float64(x * Float64(y * z)); elseif (a <= 2.8e+62) tmp = t_1; else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (b * -z); tmp = 0.0; if (a <= -8e+60) tmp = a * (x * -t); elseif (a <= -3.9e-159) tmp = y * (x * z); elseif (a <= -3.6e-286) tmp = t_1; elseif (a <= 1.7e-178) tmp = x * (y * z); elseif (a <= 2.8e+62) tmp = t_1; else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8e+60], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.9e-159], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.6e-286], t$95$1, If[LessEqual[a, 1.7e-178], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.8e+62], t$95$1, N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{if}\;a \leq -8 \cdot 10^{+60}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;a \leq -3.9 \cdot 10^{-159}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq -3.6 \cdot 10^{-286}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-178}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{+62}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if a < -7.9999999999999996e60Initial program 75.0%
sub-neg75.0%
associate-+l+75.0%
fma-def76.8%
+-commutative76.8%
fma-def78.6%
*-commutative78.6%
*-commutative78.6%
distribute-rgt-neg-in78.6%
sub-neg78.6%
+-commutative78.6%
distribute-neg-in78.6%
unsub-neg78.6%
remove-double-neg78.6%
*-commutative78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in a around inf 62.2%
Taylor expanded in t around inf 41.8%
mul-1-neg41.8%
*-commutative41.8%
distribute-rgt-neg-in41.8%
Simplified41.8%
if -7.9999999999999996e60 < a < -3.89999999999999977e-159Initial program 86.5%
cancel-sign-sub86.5%
cancel-sign-sub-inv86.5%
*-commutative86.5%
*-commutative86.5%
remove-double-neg86.5%
*-commutative86.5%
*-commutative86.5%
Simplified86.5%
Taylor expanded in t around 0 79.7%
fma-neg79.7%
*-commutative79.7%
*-commutative79.7%
*-commutative79.7%
fma-neg79.7%
distribute-rgt-neg-out79.7%
distribute-rgt-neg-in79.7%
neg-sub079.7%
distribute-rgt-neg-out79.7%
fma-neg79.7%
associate-+l-79.7%
neg-sub079.7%
+-commutative79.7%
*-commutative79.7%
sub-neg79.7%
Simplified79.7%
Taylor expanded in y around inf 60.3%
+-commutative60.3%
mul-1-neg60.3%
unsub-neg60.3%
Simplified60.3%
Taylor expanded in z around inf 48.9%
if -3.89999999999999977e-159 < a < -3.60000000000000013e-286 or 1.69999999999999986e-178 < a < 2.80000000000000014e62Initial program 80.7%
+-commutative80.7%
fma-def80.7%
*-commutative80.7%
*-commutative80.7%
*-commutative80.7%
*-commutative80.7%
Simplified80.7%
Taylor expanded in j around 0 62.7%
Taylor expanded in c around inf 43.1%
*-commutative43.1%
mul-1-neg43.1%
Simplified43.1%
if -3.60000000000000013e-286 < a < 1.69999999999999986e-178Initial program 85.0%
cancel-sign-sub85.0%
cancel-sign-sub-inv85.0%
*-commutative85.0%
*-commutative85.0%
remove-double-neg85.0%
*-commutative85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in t around 0 87.5%
fma-neg87.5%
*-commutative87.5%
*-commutative87.5%
*-commutative87.5%
fma-neg87.5%
distribute-rgt-neg-out87.5%
distribute-rgt-neg-in87.5%
neg-sub087.5%
distribute-rgt-neg-out87.5%
fma-neg87.5%
associate-+l-87.5%
neg-sub087.5%
+-commutative87.5%
*-commutative87.5%
sub-neg87.5%
Simplified87.5%
Taylor expanded in y around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
Simplified51.3%
Taylor expanded in z around inf 39.5%
associate-*r*44.1%
*-commutative44.1%
Simplified44.1%
if 2.80000000000000014e62 < a Initial program 58.8%
+-commutative58.8%
fma-def60.5%
*-commutative60.5%
*-commutative60.5%
*-commutative60.5%
*-commutative60.5%
Simplified60.5%
Taylor expanded in b around inf 49.0%
Taylor expanded in i around inf 44.0%
*-commutative44.0%
Simplified44.0%
Final simplification44.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -4e+58)
(* a (* x (- t)))
(if (<= a -1.65e-159)
(* y (* x z))
(if (<= a 1e-224)
(* b (* c (- z)))
(if (<= a 4e-178)
(* x (* y z))
(if (<= a 8e+58) (* c (* b (- z))) (* b (* a i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -4e+58) {
tmp = a * (x * -t);
} else if (a <= -1.65e-159) {
tmp = y * (x * z);
} else if (a <= 1e-224) {
tmp = b * (c * -z);
} else if (a <= 4e-178) {
tmp = x * (y * z);
} else if (a <= 8e+58) {
tmp = c * (b * -z);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-4d+58)) then
tmp = a * (x * -t)
else if (a <= (-1.65d-159)) then
tmp = y * (x * z)
else if (a <= 1d-224) then
tmp = b * (c * -z)
else if (a <= 4d-178) then
tmp = x * (y * z)
else if (a <= 8d+58) then
tmp = c * (b * -z)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -4e+58) {
tmp = a * (x * -t);
} else if (a <= -1.65e-159) {
tmp = y * (x * z);
} else if (a <= 1e-224) {
tmp = b * (c * -z);
} else if (a <= 4e-178) {
tmp = x * (y * z);
} else if (a <= 8e+58) {
tmp = c * (b * -z);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -4e+58: tmp = a * (x * -t) elif a <= -1.65e-159: tmp = y * (x * z) elif a <= 1e-224: tmp = b * (c * -z) elif a <= 4e-178: tmp = x * (y * z) elif a <= 8e+58: tmp = c * (b * -z) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -4e+58) tmp = Float64(a * Float64(x * Float64(-t))); elseif (a <= -1.65e-159) tmp = Float64(y * Float64(x * z)); elseif (a <= 1e-224) tmp = Float64(b * Float64(c * Float64(-z))); elseif (a <= 4e-178) tmp = Float64(x * Float64(y * z)); elseif (a <= 8e+58) tmp = Float64(c * Float64(b * Float64(-z))); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -4e+58) tmp = a * (x * -t); elseif (a <= -1.65e-159) tmp = y * (x * z); elseif (a <= 1e-224) tmp = b * (c * -z); elseif (a <= 4e-178) tmp = x * (y * z); elseif (a <= 8e+58) tmp = c * (b * -z); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -4e+58], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.65e-159], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1e-224], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4e-178], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8e+58], N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4 \cdot 10^{+58}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;a \leq -1.65 \cdot 10^{-159}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 10^{-224}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\mathbf{elif}\;a \leq 4 \cdot 10^{-178}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 8 \cdot 10^{+58}:\\
\;\;\;\;c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if a < -3.99999999999999978e58Initial program 75.0%
sub-neg75.0%
associate-+l+75.0%
fma-def76.8%
+-commutative76.8%
fma-def78.6%
*-commutative78.6%
*-commutative78.6%
distribute-rgt-neg-in78.6%
sub-neg78.6%
+-commutative78.6%
distribute-neg-in78.6%
unsub-neg78.6%
remove-double-neg78.6%
*-commutative78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in a around inf 62.2%
Taylor expanded in t around inf 41.8%
mul-1-neg41.8%
*-commutative41.8%
distribute-rgt-neg-in41.8%
Simplified41.8%
if -3.99999999999999978e58 < a < -1.6500000000000001e-159Initial program 86.5%
cancel-sign-sub86.5%
cancel-sign-sub-inv86.5%
*-commutative86.5%
*-commutative86.5%
remove-double-neg86.5%
*-commutative86.5%
*-commutative86.5%
Simplified86.5%
Taylor expanded in t around 0 79.7%
fma-neg79.7%
*-commutative79.7%
*-commutative79.7%
*-commutative79.7%
fma-neg79.7%
distribute-rgt-neg-out79.7%
distribute-rgt-neg-in79.7%
neg-sub079.7%
distribute-rgt-neg-out79.7%
fma-neg79.7%
associate-+l-79.7%
neg-sub079.7%
+-commutative79.7%
*-commutative79.7%
sub-neg79.7%
Simplified79.7%
Taylor expanded in y around inf 60.3%
+-commutative60.3%
mul-1-neg60.3%
unsub-neg60.3%
Simplified60.3%
Taylor expanded in z around inf 48.9%
if -1.6500000000000001e-159 < a < 1e-224Initial program 85.7%
+-commutative85.7%
fma-def85.7%
*-commutative85.7%
*-commutative85.7%
*-commutative85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in b around inf 45.5%
Taylor expanded in i around 0 37.7%
neg-mul-137.7%
distribute-rgt-neg-in37.7%
Simplified37.7%
if 1e-224 < a < 3.9999999999999998e-178Initial program 80.0%
cancel-sign-sub80.0%
cancel-sign-sub-inv80.0%
*-commutative80.0%
*-commutative80.0%
remove-double-neg80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in t around 0 79.8%
fma-neg79.8%
*-commutative79.8%
*-commutative79.8%
*-commutative79.8%
fma-neg79.8%
distribute-rgt-neg-out79.8%
distribute-rgt-neg-in79.8%
neg-sub079.8%
distribute-rgt-neg-out79.8%
fma-neg79.8%
associate-+l-79.8%
neg-sub079.8%
+-commutative79.8%
*-commutative79.8%
sub-neg79.8%
Simplified79.8%
Taylor expanded in y around inf 70.5%
+-commutative70.5%
mul-1-neg70.5%
unsub-neg70.5%
Simplified70.5%
Taylor expanded in z around inf 60.5%
associate-*r*60.7%
*-commutative60.7%
Simplified60.7%
if 3.9999999999999998e-178 < a < 7.99999999999999955e58Initial program 79.0%
+-commutative79.0%
fma-def79.0%
*-commutative79.0%
*-commutative79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
Taylor expanded in j around 0 64.0%
Taylor expanded in c around inf 46.4%
*-commutative46.4%
mul-1-neg46.4%
Simplified46.4%
if 7.99999999999999955e58 < a Initial program 58.8%
+-commutative58.8%
fma-def60.5%
*-commutative60.5%
*-commutative60.5%
*-commutative60.5%
*-commutative60.5%
Simplified60.5%
Taylor expanded in b around inf 49.0%
Taylor expanded in i around inf 44.0%
*-commutative44.0%
Simplified44.0%
Final simplification44.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.35e+59)
(* x (- (* t a)))
(if (<= a -5.5e-160)
(* y (* x z))
(if (<= a 1.16e-225)
(* b (* c (- z)))
(if (<= a 2.4e-178)
(* x (* y z))
(if (<= a 6.2e+61) (* c (* b (- z))) (* b (* a i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.35e+59) {
tmp = x * -(t * a);
} else if (a <= -5.5e-160) {
tmp = y * (x * z);
} else if (a <= 1.16e-225) {
tmp = b * (c * -z);
} else if (a <= 2.4e-178) {
tmp = x * (y * z);
} else if (a <= 6.2e+61) {
tmp = c * (b * -z);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1.35d+59)) then
tmp = x * -(t * a)
else if (a <= (-5.5d-160)) then
tmp = y * (x * z)
else if (a <= 1.16d-225) then
tmp = b * (c * -z)
else if (a <= 2.4d-178) then
tmp = x * (y * z)
else if (a <= 6.2d+61) then
tmp = c * (b * -z)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.35e+59) {
tmp = x * -(t * a);
} else if (a <= -5.5e-160) {
tmp = y * (x * z);
} else if (a <= 1.16e-225) {
tmp = b * (c * -z);
} else if (a <= 2.4e-178) {
tmp = x * (y * z);
} else if (a <= 6.2e+61) {
tmp = c * (b * -z);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.35e+59: tmp = x * -(t * a) elif a <= -5.5e-160: tmp = y * (x * z) elif a <= 1.16e-225: tmp = b * (c * -z) elif a <= 2.4e-178: tmp = x * (y * z) elif a <= 6.2e+61: tmp = c * (b * -z) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.35e+59) tmp = Float64(x * Float64(-Float64(t * a))); elseif (a <= -5.5e-160) tmp = Float64(y * Float64(x * z)); elseif (a <= 1.16e-225) tmp = Float64(b * Float64(c * Float64(-z))); elseif (a <= 2.4e-178) tmp = Float64(x * Float64(y * z)); elseif (a <= 6.2e+61) tmp = Float64(c * Float64(b * Float64(-z))); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.35e+59) tmp = x * -(t * a); elseif (a <= -5.5e-160) tmp = y * (x * z); elseif (a <= 1.16e-225) tmp = b * (c * -z); elseif (a <= 2.4e-178) tmp = x * (y * z); elseif (a <= 6.2e+61) tmp = c * (b * -z); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.35e+59], N[(x * (-N[(t * a), $MachinePrecision])), $MachinePrecision], If[LessEqual[a, -5.5e-160], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.16e-225], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.4e-178], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.2e+61], N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.35 \cdot 10^{+59}:\\
\;\;\;\;x \cdot \left(-t \cdot a\right)\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-160}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 1.16 \cdot 10^{-225}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{-178}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{+61}:\\
\;\;\;\;c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if a < -1.3500000000000001e59Initial program 75.0%
sub-neg75.0%
associate-+l+75.0%
fma-def76.8%
+-commutative76.8%
fma-def78.6%
*-commutative78.6%
*-commutative78.6%
distribute-rgt-neg-in78.6%
sub-neg78.6%
+-commutative78.6%
distribute-neg-in78.6%
unsub-neg78.6%
remove-double-neg78.6%
*-commutative78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in a around inf 62.2%
Taylor expanded in t around inf 41.8%
mul-1-neg41.8%
*-commutative41.8%
*-commutative41.8%
distribute-lft-neg-out41.8%
*-commutative41.8%
mul-1-neg41.8%
associate-*r*41.8%
*-commutative41.8%
associate-*l*45.1%
neg-mul-145.1%
Simplified45.1%
if -1.3500000000000001e59 < a < -5.5e-160Initial program 86.5%
cancel-sign-sub86.5%
cancel-sign-sub-inv86.5%
*-commutative86.5%
*-commutative86.5%
remove-double-neg86.5%
*-commutative86.5%
*-commutative86.5%
Simplified86.5%
Taylor expanded in t around 0 79.7%
fma-neg79.7%
*-commutative79.7%
*-commutative79.7%
*-commutative79.7%
fma-neg79.7%
distribute-rgt-neg-out79.7%
distribute-rgt-neg-in79.7%
neg-sub079.7%
distribute-rgt-neg-out79.7%
fma-neg79.7%
associate-+l-79.7%
neg-sub079.7%
+-commutative79.7%
*-commutative79.7%
sub-neg79.7%
Simplified79.7%
Taylor expanded in y around inf 60.3%
+-commutative60.3%
mul-1-neg60.3%
unsub-neg60.3%
Simplified60.3%
Taylor expanded in z around inf 48.9%
if -5.5e-160 < a < 1.16000000000000001e-225Initial program 85.7%
+-commutative85.7%
fma-def85.7%
*-commutative85.7%
*-commutative85.7%
*-commutative85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in b around inf 45.5%
Taylor expanded in i around 0 37.7%
neg-mul-137.7%
distribute-rgt-neg-in37.7%
Simplified37.7%
if 1.16000000000000001e-225 < a < 2.40000000000000005e-178Initial program 80.0%
cancel-sign-sub80.0%
cancel-sign-sub-inv80.0%
*-commutative80.0%
*-commutative80.0%
remove-double-neg80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in t around 0 79.8%
fma-neg79.8%
*-commutative79.8%
*-commutative79.8%
*-commutative79.8%
fma-neg79.8%
distribute-rgt-neg-out79.8%
distribute-rgt-neg-in79.8%
neg-sub079.8%
distribute-rgt-neg-out79.8%
fma-neg79.8%
associate-+l-79.8%
neg-sub079.8%
+-commutative79.8%
*-commutative79.8%
sub-neg79.8%
Simplified79.8%
Taylor expanded in y around inf 70.5%
+-commutative70.5%
mul-1-neg70.5%
unsub-neg70.5%
Simplified70.5%
Taylor expanded in z around inf 60.5%
associate-*r*60.7%
*-commutative60.7%
Simplified60.7%
if 2.40000000000000005e-178 < a < 6.1999999999999998e61Initial program 79.0%
+-commutative79.0%
fma-def79.0%
*-commutative79.0%
*-commutative79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
Taylor expanded in j around 0 64.0%
Taylor expanded in c around inf 46.4%
*-commutative46.4%
mul-1-neg46.4%
Simplified46.4%
if 6.1999999999999998e61 < a Initial program 58.8%
+-commutative58.8%
fma-def60.5%
*-commutative60.5%
*-commutative60.5%
*-commutative60.5%
*-commutative60.5%
Simplified60.5%
Taylor expanded in b around inf 49.0%
Taylor expanded in i around inf 44.0%
*-commutative44.0%
Simplified44.0%
Final simplification44.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -7.4e+46)
t_1
(if (<= a -6e-160)
(* y (* x z))
(if (<= a 1e+47) (* b (- (* a i) (* z c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.4e+46) {
tmp = t_1;
} else if (a <= -6e-160) {
tmp = y * (x * z);
} else if (a <= 1e+47) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-7.4d+46)) then
tmp = t_1
else if (a <= (-6d-160)) then
tmp = y * (x * z)
else if (a <= 1d+47) then
tmp = b * ((a * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.4e+46) {
tmp = t_1;
} else if (a <= -6e-160) {
tmp = y * (x * z);
} else if (a <= 1e+47) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -7.4e+46: tmp = t_1 elif a <= -6e-160: tmp = y * (x * z) elif a <= 1e+47: tmp = b * ((a * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -7.4e+46) tmp = t_1; elseif (a <= -6e-160) tmp = Float64(y * Float64(x * z)); elseif (a <= 1e+47) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -7.4e+46) tmp = t_1; elseif (a <= -6e-160) tmp = y * (x * z); elseif (a <= 1e+47) tmp = b * ((a * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.4e+46], t$95$1, If[LessEqual[a, -6e-160], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1e+47], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -7.4 \cdot 10^{+46}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -6 \cdot 10^{-160}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 10^{+47}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -7.3999999999999998e46 or 1e47 < a Initial program 68.9%
sub-neg68.9%
associate-+l+68.9%
fma-def71.5%
+-commutative71.5%
fma-def72.3%
*-commutative72.3%
*-commutative72.3%
distribute-rgt-neg-in72.3%
sub-neg72.3%
+-commutative72.3%
distribute-neg-in72.3%
unsub-neg72.3%
remove-double-neg72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in a around inf 67.5%
Taylor expanded in a around 0 67.5%
*-commutative67.5%
mul-1-neg67.5%
*-commutative67.5%
unsub-neg67.5%
Simplified67.5%
if -7.3999999999999998e46 < a < -5.99999999999999993e-160Initial program 86.2%
cancel-sign-sub86.2%
cancel-sign-sub-inv86.2%
*-commutative86.2%
*-commutative86.2%
remove-double-neg86.2%
*-commutative86.2%
*-commutative86.2%
Simplified86.2%
Taylor expanded in t around 0 79.2%
fma-neg79.2%
*-commutative79.2%
*-commutative79.2%
*-commutative79.2%
fma-neg79.2%
distribute-rgt-neg-out79.2%
distribute-rgt-neg-in79.2%
neg-sub079.2%
distribute-rgt-neg-out79.2%
fma-neg79.2%
associate-+l-79.2%
neg-sub079.2%
+-commutative79.2%
*-commutative79.2%
sub-neg79.2%
Simplified79.2%
Taylor expanded in y around inf 61.7%
+-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
Simplified61.7%
Taylor expanded in z around inf 50.0%
if -5.99999999999999993e-160 < a < 1e47Initial program 81.2%
+-commutative81.2%
fma-def81.2%
*-commutative81.2%
*-commutative81.2%
*-commutative81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in b around inf 45.7%
Final simplification56.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -4.8e+46)
t_1
(if (<= a -3.7e-158)
(* y (* x z))
(if (<= a 1.9e+66) (* c (- (* t j) (* z b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4.8e+46) {
tmp = t_1;
} else if (a <= -3.7e-158) {
tmp = y * (x * z);
} else if (a <= 1.9e+66) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-4.8d+46)) then
tmp = t_1
else if (a <= (-3.7d-158)) then
tmp = y * (x * z)
else if (a <= 1.9d+66) then
tmp = c * ((t * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4.8e+46) {
tmp = t_1;
} else if (a <= -3.7e-158) {
tmp = y * (x * z);
} else if (a <= 1.9e+66) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -4.8e+46: tmp = t_1 elif a <= -3.7e-158: tmp = y * (x * z) elif a <= 1.9e+66: tmp = c * ((t * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -4.8e+46) tmp = t_1; elseif (a <= -3.7e-158) tmp = Float64(y * Float64(x * z)); elseif (a <= 1.9e+66) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -4.8e+46) tmp = t_1; elseif (a <= -3.7e-158) tmp = y * (x * z); elseif (a <= 1.9e+66) tmp = c * ((t * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.8e+46], t$95$1, If[LessEqual[a, -3.7e-158], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.9e+66], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -4.8 \cdot 10^{+46}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -3.7 \cdot 10^{-158}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{+66}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -4.80000000000000017e46 or 1.9000000000000001e66 < a Initial program 66.8%
sub-neg66.8%
associate-+l+66.8%
fma-def69.5%
+-commutative69.5%
fma-def70.4%
*-commutative70.4%
*-commutative70.4%
distribute-rgt-neg-in70.4%
sub-neg70.4%
+-commutative70.4%
distribute-neg-in70.4%
unsub-neg70.4%
remove-double-neg70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in a around inf 69.8%
Taylor expanded in a around 0 69.8%
*-commutative69.8%
mul-1-neg69.8%
*-commutative69.8%
unsub-neg69.8%
Simplified69.8%
if -4.80000000000000017e46 < a < -3.7000000000000001e-158Initial program 86.2%
cancel-sign-sub86.2%
cancel-sign-sub-inv86.2%
*-commutative86.2%
*-commutative86.2%
remove-double-neg86.2%
*-commutative86.2%
*-commutative86.2%
Simplified86.2%
Taylor expanded in t around 0 79.2%
fma-neg79.2%
*-commutative79.2%
*-commutative79.2%
*-commutative79.2%
fma-neg79.2%
distribute-rgt-neg-out79.2%
distribute-rgt-neg-in79.2%
neg-sub079.2%
distribute-rgt-neg-out79.2%
fma-neg79.2%
associate-+l-79.2%
neg-sub079.2%
+-commutative79.2%
*-commutative79.2%
sub-neg79.2%
Simplified79.2%
Taylor expanded in y around inf 61.7%
+-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
Simplified61.7%
Taylor expanded in z around inf 50.0%
if -3.7000000000000001e-158 < a < 1.9000000000000001e66Initial program 82.6%
+-commutative82.6%
associate-+r-82.6%
fma-def82.6%
*-commutative82.6%
*-commutative82.6%
*-commutative82.6%
fma-neg82.6%
*-commutative82.6%
distribute-rgt-neg-in82.6%
Simplified82.6%
Taylor expanded in c around inf 57.7%
Final simplification61.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -8.4e+102)
(* i (* a b))
(if (<= a 2.4e-191)
(* x (* y z))
(if (<= a 2.7e+93) (* c (* t j)) (* b (* a i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -8.4e+102) {
tmp = i * (a * b);
} else if (a <= 2.4e-191) {
tmp = x * (y * z);
} else if (a <= 2.7e+93) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-8.4d+102)) then
tmp = i * (a * b)
else if (a <= 2.4d-191) then
tmp = x * (y * z)
else if (a <= 2.7d+93) then
tmp = c * (t * j)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -8.4e+102) {
tmp = i * (a * b);
} else if (a <= 2.4e-191) {
tmp = x * (y * z);
} else if (a <= 2.7e+93) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -8.4e+102: tmp = i * (a * b) elif a <= 2.4e-191: tmp = x * (y * z) elif a <= 2.7e+93: tmp = c * (t * j) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -8.4e+102) tmp = Float64(i * Float64(a * b)); elseif (a <= 2.4e-191) tmp = Float64(x * Float64(y * z)); elseif (a <= 2.7e+93) tmp = Float64(c * Float64(t * j)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -8.4e+102) tmp = i * (a * b); elseif (a <= 2.4e-191) tmp = x * (y * z); elseif (a <= 2.7e+93) tmp = c * (t * j); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -8.4e+102], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.4e-191], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e+93], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.4 \cdot 10^{+102}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{-191}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+93}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if a < -8.40000000000000006e102Initial program 64.9%
sub-neg64.9%
associate-+l+64.9%
fma-def67.6%
+-commutative67.6%
fma-def70.3%
*-commutative70.3%
*-commutative70.3%
distribute-rgt-neg-in70.3%
sub-neg70.3%
+-commutative70.3%
distribute-neg-in70.3%
unsub-neg70.3%
remove-double-neg70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in z around 0 67.8%
Taylor expanded in i around -inf 67.5%
+-commutative67.5%
mul-1-neg67.5%
unsub-neg67.5%
*-commutative67.5%
associate-*r*67.5%
*-commutative67.5%
associate-*r*62.3%
associate-*r*62.3%
distribute-rgt-in65.0%
mul-1-neg65.0%
unsub-neg65.0%
mul-1-neg65.0%
unsub-neg65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in b around inf 41.6%
if -8.40000000000000006e102 < a < 2.3999999999999999e-191Initial program 87.4%
cancel-sign-sub87.4%
cancel-sign-sub-inv87.4%
*-commutative87.4%
*-commutative87.4%
remove-double-neg87.4%
*-commutative87.4%
*-commutative87.4%
Simplified87.4%
Taylor expanded in t around 0 76.4%
fma-neg77.2%
*-commutative77.2%
*-commutative77.2%
*-commutative77.2%
fma-neg77.2%
distribute-rgt-neg-out77.2%
distribute-rgt-neg-in77.2%
neg-sub077.2%
distribute-rgt-neg-out77.2%
fma-neg77.2%
associate-+l-77.2%
neg-sub077.2%
+-commutative77.2%
*-commutative77.2%
sub-neg77.2%
Simplified77.2%
Taylor expanded in y around inf 47.7%
+-commutative47.7%
mul-1-neg47.7%
unsub-neg47.7%
Simplified47.7%
Taylor expanded in z around inf 36.1%
associate-*r*36.7%
*-commutative36.7%
Simplified36.7%
if 2.3999999999999999e-191 < a < 2.6999999999999999e93Initial program 75.1%
cancel-sign-sub75.1%
cancel-sign-sub-inv75.1%
*-commutative75.1%
*-commutative75.1%
remove-double-neg75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in t around 0 68.6%
fma-neg68.6%
*-commutative68.6%
*-commutative68.6%
*-commutative68.6%
fma-neg68.6%
distribute-rgt-neg-out68.6%
distribute-rgt-neg-in68.6%
neg-sub068.6%
distribute-rgt-neg-out68.6%
fma-neg68.6%
associate-+l-68.6%
neg-sub068.6%
+-commutative68.6%
*-commutative68.6%
sub-neg68.6%
Simplified68.6%
Taylor expanded in t around inf 33.5%
if 2.6999999999999999e93 < a Initial program 58.2%
+-commutative58.2%
fma-def60.3%
*-commutative60.3%
*-commutative60.3%
*-commutative60.3%
*-commutative60.3%
Simplified60.3%
Taylor expanded in b around inf 52.5%
Taylor expanded in i around inf 48.4%
*-commutative48.4%
Simplified48.4%
Final simplification38.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -4.2e-14) (not (<= a 1.4e+92))) (* 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 ((a <= -4.2e-14) || !(a <= 1.4e+92)) {
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 ((a <= (-4.2d-14)) .or. (.not. (a <= 1.4d+92))) 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 ((a <= -4.2e-14) || !(a <= 1.4e+92)) {
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 (a <= -4.2e-14) or not (a <= 1.4e+92): 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 ((a <= -4.2e-14) || !(a <= 1.4e+92)) 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 ((a <= -4.2e-14) || ~((a <= 1.4e+92))) 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[a, -4.2e-14], N[Not[LessEqual[a, 1.4e+92]], $MachinePrecision]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.2 \cdot 10^{-14} \lor \neg \left(a \leq 1.4 \cdot 10^{+92}\right):\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if a < -4.1999999999999998e-14 or 1.4e92 < a Initial program 69.0%
+-commutative69.0%
fma-def70.7%
*-commutative70.7%
*-commutative70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in b around inf 44.7%
Taylor expanded in i around inf 38.3%
*-commutative38.3%
Simplified38.3%
if -4.1999999999999998e-14 < a < 1.4e92Initial program 82.1%
cancel-sign-sub82.1%
cancel-sign-sub-inv82.1%
*-commutative82.1%
*-commutative82.1%
remove-double-neg82.1%
*-commutative82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in t around 0 74.6%
fma-neg75.3%
*-commutative75.3%
*-commutative75.3%
*-commutative75.3%
fma-neg75.3%
distribute-rgt-neg-out75.3%
distribute-rgt-neg-in75.3%
neg-sub075.3%
distribute-rgt-neg-out75.3%
fma-neg75.3%
associate-+l-75.3%
neg-sub075.3%
+-commutative75.3%
*-commutative75.3%
sub-neg75.3%
Simplified75.3%
Taylor expanded in t around inf 26.3%
Final simplification31.7%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 76.2%
sub-neg76.2%
associate-+l+76.2%
fma-def78.6%
+-commutative78.6%
fma-def79.0%
*-commutative79.0%
*-commutative79.0%
distribute-rgt-neg-in79.0%
sub-neg79.0%
+-commutative79.0%
distribute-neg-in79.0%
unsub-neg79.0%
remove-double-neg79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
Taylor expanded in a around inf 40.3%
Taylor expanded in t around 0 21.9%
Final simplification21.9%
(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 76.2%
+-commutative76.2%
fma-def77.0%
*-commutative77.0%
*-commutative77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in b around inf 42.0%
Taylor expanded in i around inf 23.0%
*-commutative23.0%
Simplified23.0%
Final simplification23.0%
(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 2023238
(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)))))