
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))))
(t_2 (- (* a c) (* y i))))
(if (<= (+ t_1 (* j t_2)) INFINITY)
(fma j t_2 t_1)
(* i (- (* t 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))) + (b * ((t * i) - (z * c)));
double t_2 = (a * c) - (y * i);
double tmp;
if ((t_1 + (j * t_2)) <= ((double) INFINITY)) {
tmp = fma(j, t_2, t_1);
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) t_2 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (Float64(t_1 + Float64(j * t_2)) <= Inf) tmp = fma(j, t_2, t_1); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$2 + t$95$1), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot c - y \cdot i\\
\mathbf{if}\;t_1 + j \cdot t_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t_2, t_1\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 88.8%
+-commutative88.8%
fma-def88.8%
*-commutative88.8%
*-commutative88.8%
Simplified88.8%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
sub-neg0.0%
+-commutative0.0%
associate-+l+0.0%
distribute-rgt-neg-in0.0%
+-commutative0.0%
fma-def8.8%
sub-neg8.8%
+-commutative8.8%
distribute-neg-in8.8%
unsub-neg8.8%
remove-double-neg8.8%
*-commutative8.8%
Simplified11.8%
Taylor expanded in i around inf 49.2%
mul-1-neg49.2%
unsub-neg49.2%
Simplified49.2%
Final simplification78.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* i (- (* t 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))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(i * Float64(Float64(t * 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))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 88.8%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
sub-neg0.0%
+-commutative0.0%
associate-+l+0.0%
distribute-rgt-neg-in0.0%
+-commutative0.0%
fma-def8.8%
sub-neg8.8%
+-commutative8.8%
distribute-neg-in8.8%
unsub-neg8.8%
remove-double-neg8.8%
*-commutative8.8%
Simplified11.8%
Taylor expanded in i around inf 49.2%
mul-1-neg49.2%
unsub-neg49.2%
Simplified49.2%
Final simplification78.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (+ (* j (- (* a c) (* y i))) (* t (* b i))))
(t_3 (* y (* x z)))
(t_4 (+ t_3 t_1))
(t_5 (* x (- (* y z) (* t a)))))
(if (<= b -5.6e-8)
t_4
(if (<= b -1.65e-189)
t_5
(if (<= b -3.65e-267)
t_2
(if (<= b 2.7e-254)
(- t_3 (* a (* x t)))
(if (<= b 7.5e-176)
t_2
(if (<= b 4.2e-47) t_5 (if (<= b 1.55e+181) t_4 t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = (j * ((a * c) - (y * i))) + (t * (b * i));
double t_3 = y * (x * z);
double t_4 = t_3 + t_1;
double t_5 = x * ((y * z) - (t * a));
double tmp;
if (b <= -5.6e-8) {
tmp = t_4;
} else if (b <= -1.65e-189) {
tmp = t_5;
} else if (b <= -3.65e-267) {
tmp = t_2;
} else if (b <= 2.7e-254) {
tmp = t_3 - (a * (x * t));
} else if (b <= 7.5e-176) {
tmp = t_2;
} else if (b <= 4.2e-47) {
tmp = t_5;
} else if (b <= 1.55e+181) {
tmp = t_4;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = (j * ((a * c) - (y * i))) + (t * (b * i))
t_3 = y * (x * z)
t_4 = t_3 + t_1
t_5 = x * ((y * z) - (t * a))
if (b <= (-5.6d-8)) then
tmp = t_4
else if (b <= (-1.65d-189)) then
tmp = t_5
else if (b <= (-3.65d-267)) then
tmp = t_2
else if (b <= 2.7d-254) then
tmp = t_3 - (a * (x * t))
else if (b <= 7.5d-176) then
tmp = t_2
else if (b <= 4.2d-47) then
tmp = t_5
else if (b <= 1.55d+181) then
tmp = t_4
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = (j * ((a * c) - (y * i))) + (t * (b * i));
double t_3 = y * (x * z);
double t_4 = t_3 + t_1;
double t_5 = x * ((y * z) - (t * a));
double tmp;
if (b <= -5.6e-8) {
tmp = t_4;
} else if (b <= -1.65e-189) {
tmp = t_5;
} else if (b <= -3.65e-267) {
tmp = t_2;
} else if (b <= 2.7e-254) {
tmp = t_3 - (a * (x * t));
} else if (b <= 7.5e-176) {
tmp = t_2;
} else if (b <= 4.2e-47) {
tmp = t_5;
} else if (b <= 1.55e+181) {
tmp = t_4;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = (j * ((a * c) - (y * i))) + (t * (b * i)) t_3 = y * (x * z) t_4 = t_3 + t_1 t_5 = x * ((y * z) - (t * a)) tmp = 0 if b <= -5.6e-8: tmp = t_4 elif b <= -1.65e-189: tmp = t_5 elif b <= -3.65e-267: tmp = t_2 elif b <= 2.7e-254: tmp = t_3 - (a * (x * t)) elif b <= 7.5e-176: tmp = t_2 elif b <= 4.2e-47: tmp = t_5 elif b <= 1.55e+181: tmp = t_4 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t * Float64(b * i))) t_3 = Float64(y * Float64(x * z)) t_4 = Float64(t_3 + t_1) t_5 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (b <= -5.6e-8) tmp = t_4; elseif (b <= -1.65e-189) tmp = t_5; elseif (b <= -3.65e-267) tmp = t_2; elseif (b <= 2.7e-254) tmp = Float64(t_3 - Float64(a * Float64(x * t))); elseif (b <= 7.5e-176) tmp = t_2; elseif (b <= 4.2e-47) tmp = t_5; elseif (b <= 1.55e+181) tmp = t_4; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = (j * ((a * c) - (y * i))) + (t * (b * i)); t_3 = y * (x * z); t_4 = t_3 + t_1; t_5 = x * ((y * z) - (t * a)); tmp = 0.0; if (b <= -5.6e-8) tmp = t_4; elseif (b <= -1.65e-189) tmp = t_5; elseif (b <= -3.65e-267) tmp = t_2; elseif (b <= 2.7e-254) tmp = t_3 - (a * (x * t)); elseif (b <= 7.5e-176) tmp = t_2; elseif (b <= 4.2e-47) tmp = t_5; elseif (b <= 1.55e+181) tmp = t_4; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 + t$95$1), $MachinePrecision]}, Block[{t$95$5 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.6e-8], t$95$4, If[LessEqual[b, -1.65e-189], t$95$5, If[LessEqual[b, -3.65e-267], t$95$2, If[LessEqual[b, 2.7e-254], N[(t$95$3 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.5e-176], t$95$2, If[LessEqual[b, 4.2e-47], t$95$5, If[LessEqual[b, 1.55e+181], t$95$4, t$95$1]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\
t_3 := y \cdot \left(x \cdot z\right)\\
t_4 := t_3 + t_1\\
t_5 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;b \leq -5.6 \cdot 10^{-8}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq -1.65 \cdot 10^{-189}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;b \leq -3.65 \cdot 10^{-267}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{-254}:\\
\;\;\;\;t_3 - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-176}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-47}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{+181}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -5.5999999999999999e-8 or 4.2000000000000001e-47 < b < 1.54999999999999995e181Initial program 67.4%
sub-neg67.4%
+-commutative67.4%
associate-+l+67.4%
distribute-rgt-neg-in67.4%
+-commutative67.4%
fma-def72.2%
sub-neg72.2%
+-commutative72.2%
distribute-neg-in72.2%
unsub-neg72.2%
remove-double-neg72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in a around -inf 71.9%
associate-+r+71.9%
+-commutative71.9%
associate-+r+71.9%
Simplified72.8%
Taylor expanded in a around 0 73.8%
Taylor expanded in j around 0 66.0%
if -5.5999999999999999e-8 < b < -1.65e-189 or 7.5e-176 < b < 4.2000000000000001e-47Initial program 69.7%
sub-neg69.7%
+-commutative69.7%
associate-+l+69.7%
distribute-rgt-neg-in69.7%
+-commutative69.7%
fma-def69.7%
sub-neg69.7%
+-commutative69.7%
distribute-neg-in69.7%
unsub-neg69.7%
remove-double-neg69.7%
*-commutative69.7%
Simplified71.2%
Taylor expanded in x around inf 67.9%
if -1.65e-189 < b < -3.6500000000000002e-267 or 2.70000000000000007e-254 < b < 7.5e-176Initial program 56.0%
cancel-sign-sub56.0%
cancel-sign-sub-inv56.0%
*-commutative56.0%
remove-double-neg56.0%
*-commutative56.0%
Simplified56.0%
Taylor expanded in i around inf 80.8%
associate-*r*68.9%
*-commutative68.9%
associate-*r*80.8%
Simplified80.8%
if -3.6500000000000002e-267 < b < 2.70000000000000007e-254Initial program 57.3%
sub-neg57.3%
+-commutative57.3%
associate-+l+57.3%
distribute-rgt-neg-in57.3%
+-commutative57.3%
fma-def57.3%
sub-neg57.3%
+-commutative57.3%
distribute-neg-in57.3%
unsub-neg57.3%
remove-double-neg57.3%
*-commutative57.3%
Simplified57.3%
Taylor expanded in a around -inf 61.7%
associate-+r+61.7%
+-commutative61.7%
associate-+r+61.7%
Simplified61.7%
Taylor expanded in b around 0 80.2%
Taylor expanded in j around 0 65.8%
if 1.54999999999999995e181 < b Initial program 63.4%
sub-neg63.4%
+-commutative63.4%
associate-+l+63.4%
distribute-rgt-neg-in63.4%
+-commutative63.4%
fma-def66.8%
sub-neg66.8%
+-commutative66.8%
distribute-neg-in66.8%
unsub-neg66.8%
remove-double-neg66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in b around inf 86.0%
Final simplification70.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (* y (* x z)) (* b (- (* t i) (* z c)))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= z -1.52e+231)
t_3
(if (<= z -9.1e-38)
t_2
(if (<= z -2.75e-216)
(+ t_1 (* j (* a c)))
(if (<= z 4.2e-73)
(* i (- (* t b) (* y j)))
(if (<= z 5.9e+80)
t_1
(if (<= z 1.85e+180)
t_2
(if (<= z 2.1e+221) t_3 (* z (- (* x y) (* b c))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (y * (x * z)) + (b * ((t * i) - (z * c)));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (z <= -1.52e+231) {
tmp = t_3;
} else if (z <= -9.1e-38) {
tmp = t_2;
} else if (z <= -2.75e-216) {
tmp = t_1 + (j * (a * c));
} else if (z <= 4.2e-73) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 5.9e+80) {
tmp = t_1;
} else if (z <= 1.85e+180) {
tmp = t_2;
} else if (z <= 2.1e+221) {
tmp = t_3;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = (y * (x * z)) + (b * ((t * i) - (z * c)))
t_3 = y * ((x * z) - (i * j))
if (z <= (-1.52d+231)) then
tmp = t_3
else if (z <= (-9.1d-38)) then
tmp = t_2
else if (z <= (-2.75d-216)) then
tmp = t_1 + (j * (a * c))
else if (z <= 4.2d-73) then
tmp = i * ((t * b) - (y * j))
else if (z <= 5.9d+80) then
tmp = t_1
else if (z <= 1.85d+180) then
tmp = t_2
else if (z <= 2.1d+221) then
tmp = t_3
else
tmp = z * ((x * y) - (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (y * (x * z)) + (b * ((t * i) - (z * c)));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (z <= -1.52e+231) {
tmp = t_3;
} else if (z <= -9.1e-38) {
tmp = t_2;
} else if (z <= -2.75e-216) {
tmp = t_1 + (j * (a * c));
} else if (z <= 4.2e-73) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 5.9e+80) {
tmp = t_1;
} else if (z <= 1.85e+180) {
tmp = t_2;
} else if (z <= 2.1e+221) {
tmp = t_3;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (y * (x * z)) + (b * ((t * i) - (z * c))) t_3 = y * ((x * z) - (i * j)) tmp = 0 if z <= -1.52e+231: tmp = t_3 elif z <= -9.1e-38: tmp = t_2 elif z <= -2.75e-216: tmp = t_1 + (j * (a * c)) elif z <= 4.2e-73: tmp = i * ((t * b) - (y * j)) elif z <= 5.9e+80: tmp = t_1 elif z <= 1.85e+180: tmp = t_2 elif z <= 2.1e+221: tmp = t_3 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (z <= -1.52e+231) tmp = t_3; elseif (z <= -9.1e-38) tmp = t_2; elseif (z <= -2.75e-216) tmp = Float64(t_1 + Float64(j * Float64(a * c))); elseif (z <= 4.2e-73) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (z <= 5.9e+80) tmp = t_1; elseif (z <= 1.85e+180) tmp = t_2; elseif (z <= 2.1e+221) tmp = t_3; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = (y * (x * z)) + (b * ((t * i) - (z * c))); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (z <= -1.52e+231) tmp = t_3; elseif (z <= -9.1e-38) tmp = t_2; elseif (z <= -2.75e-216) tmp = t_1 + (j * (a * c)); elseif (z <= 4.2e-73) tmp = i * ((t * b) - (y * j)); elseif (z <= 5.9e+80) tmp = t_1; elseif (z <= 1.85e+180) tmp = t_2; elseif (z <= 2.1e+221) tmp = t_3; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.52e+231], t$95$3, If[LessEqual[z, -9.1e-38], t$95$2, If[LessEqual[z, -2.75e-216], N[(t$95$1 + N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e-73], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.9e+80], t$95$1, If[LessEqual[z, 1.85e+180], t$95$2, If[LessEqual[z, 2.1e+221], t$95$3, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;z \leq -1.52 \cdot 10^{+231}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -9.1 \cdot 10^{-38}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -2.75 \cdot 10^{-216}:\\
\;\;\;\;t_1 + j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-73}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 5.9 \cdot 10^{+80}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{+180}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+221}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -1.52e231 or 1.8500000000000001e180 < z < 2.10000000000000002e221Initial program 32.0%
sub-neg32.0%
+-commutative32.0%
associate-+l+32.0%
distribute-rgt-neg-in32.0%
+-commutative32.0%
fma-def35.1%
sub-neg35.1%
+-commutative35.1%
distribute-neg-in35.1%
unsub-neg35.1%
remove-double-neg35.1%
*-commutative35.1%
Simplified38.2%
Taylor expanded in y around inf 66.3%
*-commutative66.3%
mul-1-neg66.3%
unsub-neg66.3%
Simplified66.3%
if -1.52e231 < z < -9.10000000000000012e-38 or 5.89999999999999973e80 < z < 1.8500000000000001e180Initial program 75.3%
sub-neg75.3%
+-commutative75.3%
associate-+l+75.3%
distribute-rgt-neg-in75.3%
+-commutative75.3%
fma-def76.6%
sub-neg76.6%
+-commutative76.6%
distribute-neg-in76.6%
unsub-neg76.6%
remove-double-neg76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in a around -inf 66.6%
associate-+r+66.6%
+-commutative66.6%
associate-+r+66.6%
Simplified67.9%
Taylor expanded in a around 0 70.6%
Taylor expanded in j around 0 74.4%
if -9.10000000000000012e-38 < z < -2.74999999999999995e-216Initial program 70.9%
+-commutative70.9%
fma-def70.9%
*-commutative70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in b around 0 71.2%
Taylor expanded in c around inf 73.6%
if -2.74999999999999995e-216 < z < 4.1999999999999997e-73Initial program 76.5%
sub-neg76.5%
+-commutative76.5%
associate-+l+76.5%
distribute-rgt-neg-in76.5%
+-commutative76.5%
fma-def76.5%
sub-neg76.5%
+-commutative76.5%
distribute-neg-in76.5%
unsub-neg76.5%
remove-double-neg76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in i around inf 68.2%
mul-1-neg68.2%
unsub-neg68.2%
Simplified68.2%
if 4.1999999999999997e-73 < z < 5.89999999999999973e80Initial program 67.8%
sub-neg67.8%
+-commutative67.8%
associate-+l+67.8%
distribute-rgt-neg-in67.8%
+-commutative67.8%
fma-def75.8%
sub-neg75.8%
+-commutative75.8%
distribute-neg-in75.8%
unsub-neg75.8%
remove-double-neg75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in x around inf 63.8%
if 2.10000000000000002e221 < z Initial program 35.4%
cancel-sign-sub35.4%
cancel-sign-sub-inv35.4%
*-commutative35.4%
remove-double-neg35.4%
*-commutative35.4%
Simplified35.4%
Taylor expanded in z around inf 86.9%
Final simplification71.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* i (- (* t b) (* y j))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= z -2.25e+202)
t_3
(if (<= z -4.7e-38)
t_1
(if (<= z -3.1e-216)
(* a (- (* c j) (* x t)))
(if (<= z 2e-65)
t_2
(if (<= z 0.0029)
(* x (* t (- a)))
(if (<= z 4.9e+86)
t_2
(if (<= z 2.5e+180)
t_1
(if (<= z 5.8e+223) t_3 (* z (- (* x y) (* b c)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = i * ((t * b) - (y * j));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (z <= -2.25e+202) {
tmp = t_3;
} else if (z <= -4.7e-38) {
tmp = t_1;
} else if (z <= -3.1e-216) {
tmp = a * ((c * j) - (x * t));
} else if (z <= 2e-65) {
tmp = t_2;
} else if (z <= 0.0029) {
tmp = x * (t * -a);
} else if (z <= 4.9e+86) {
tmp = t_2;
} else if (z <= 2.5e+180) {
tmp = t_1;
} else if (z <= 5.8e+223) {
tmp = t_3;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = i * ((t * b) - (y * j))
t_3 = y * ((x * z) - (i * j))
if (z <= (-2.25d+202)) then
tmp = t_3
else if (z <= (-4.7d-38)) then
tmp = t_1
else if (z <= (-3.1d-216)) then
tmp = a * ((c * j) - (x * t))
else if (z <= 2d-65) then
tmp = t_2
else if (z <= 0.0029d0) then
tmp = x * (t * -a)
else if (z <= 4.9d+86) then
tmp = t_2
else if (z <= 2.5d+180) then
tmp = t_1
else if (z <= 5.8d+223) then
tmp = t_3
else
tmp = z * ((x * y) - (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = i * ((t * b) - (y * j));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (z <= -2.25e+202) {
tmp = t_3;
} else if (z <= -4.7e-38) {
tmp = t_1;
} else if (z <= -3.1e-216) {
tmp = a * ((c * j) - (x * t));
} else if (z <= 2e-65) {
tmp = t_2;
} else if (z <= 0.0029) {
tmp = x * (t * -a);
} else if (z <= 4.9e+86) {
tmp = t_2;
} else if (z <= 2.5e+180) {
tmp = t_1;
} else if (z <= 5.8e+223) {
tmp = t_3;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = i * ((t * b) - (y * j)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if z <= -2.25e+202: tmp = t_3 elif z <= -4.7e-38: tmp = t_1 elif z <= -3.1e-216: tmp = a * ((c * j) - (x * t)) elif z <= 2e-65: tmp = t_2 elif z <= 0.0029: tmp = x * (t * -a) elif z <= 4.9e+86: tmp = t_2 elif z <= 2.5e+180: tmp = t_1 elif z <= 5.8e+223: tmp = t_3 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (z <= -2.25e+202) tmp = t_3; elseif (z <= -4.7e-38) tmp = t_1; elseif (z <= -3.1e-216) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (z <= 2e-65) tmp = t_2; elseif (z <= 0.0029) tmp = Float64(x * Float64(t * Float64(-a))); elseif (z <= 4.9e+86) tmp = t_2; elseif (z <= 2.5e+180) tmp = t_1; elseif (z <= 5.8e+223) tmp = t_3; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = i * ((t * b) - (y * j)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (z <= -2.25e+202) tmp = t_3; elseif (z <= -4.7e-38) tmp = t_1; elseif (z <= -3.1e-216) tmp = a * ((c * j) - (x * t)); elseif (z <= 2e-65) tmp = t_2; elseif (z <= 0.0029) tmp = x * (t * -a); elseif (z <= 4.9e+86) tmp = t_2; elseif (z <= 2.5e+180) tmp = t_1; elseif (z <= 5.8e+223) tmp = t_3; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.25e+202], t$95$3, If[LessEqual[z, -4.7e-38], t$95$1, If[LessEqual[z, -3.1e-216], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e-65], t$95$2, If[LessEqual[z, 0.0029], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.9e+86], t$95$2, If[LessEqual[z, 2.5e+180], t$95$1, If[LessEqual[z, 5.8e+223], t$95$3, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;z \leq -2.25 \cdot 10^{+202}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -4.7 \cdot 10^{-38}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-216}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-65}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 0.0029:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;z \leq 4.9 \cdot 10^{+86}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{+180}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{+223}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -2.24999999999999989e202 or 2.4999999999999998e180 < z < 5.8000000000000004e223Initial program 50.5%
sub-neg50.5%
+-commutative50.5%
associate-+l+50.5%
distribute-rgt-neg-in50.5%
+-commutative50.5%
fma-def52.7%
sub-neg52.7%
+-commutative52.7%
distribute-neg-in52.7%
unsub-neg52.7%
remove-double-neg52.7%
*-commutative52.7%
Simplified55.0%
Taylor expanded in y around inf 64.4%
*-commutative64.4%
mul-1-neg64.4%
unsub-neg64.4%
Simplified64.4%
if -2.24999999999999989e202 < z < -4.69999999999999998e-38 or 4.8999999999999999e86 < z < 2.4999999999999998e180Initial program 70.8%
sub-neg70.8%
+-commutative70.8%
associate-+l+70.8%
distribute-rgt-neg-in70.8%
+-commutative70.8%
fma-def72.4%
sub-neg72.4%
+-commutative72.4%
distribute-neg-in72.4%
unsub-neg72.4%
remove-double-neg72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in b around inf 67.4%
if -4.69999999999999998e-38 < z < -3.1000000000000002e-216Initial program 70.9%
sub-neg70.9%
+-commutative70.9%
associate-+l+70.9%
distribute-rgt-neg-in70.9%
+-commutative70.9%
fma-def73.6%
sub-neg73.6%
+-commutative73.6%
distribute-neg-in73.6%
unsub-neg73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified76.3%
Taylor expanded in a around inf 64.9%
+-commutative64.9%
mul-1-neg64.9%
unsub-neg64.9%
Simplified64.9%
if -3.1000000000000002e-216 < z < 1.99999999999999985e-65 or 0.0029 < z < 4.8999999999999999e86Initial program 75.5%
sub-neg75.5%
+-commutative75.5%
associate-+l+75.5%
distribute-rgt-neg-in75.5%
+-commutative75.5%
fma-def78.1%
sub-neg78.1%
+-commutative78.1%
distribute-neg-in78.1%
unsub-neg78.1%
remove-double-neg78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in i around inf 65.1%
mul-1-neg65.1%
unsub-neg65.1%
Simplified65.1%
if 1.99999999999999985e-65 < z < 0.0029Initial program 63.6%
sub-neg63.6%
+-commutative63.6%
associate-+l+63.6%
distribute-rgt-neg-in63.6%
+-commutative63.6%
fma-def63.6%
sub-neg63.6%
+-commutative63.6%
distribute-neg-in63.6%
unsub-neg63.6%
remove-double-neg63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in a around inf 64.6%
+-commutative64.6%
mul-1-neg64.6%
unsub-neg64.6%
Simplified64.6%
Taylor expanded in c around 0 64.6%
mul-1-neg64.6%
associate-*r*64.8%
distribute-rgt-neg-in64.8%
*-commutative64.8%
Simplified64.8%
if 5.8000000000000004e223 < z Initial program 35.4%
cancel-sign-sub35.4%
cancel-sign-sub-inv35.4%
*-commutative35.4%
remove-double-neg35.4%
*-commutative35.4%
Simplified35.4%
Taylor expanded in z around inf 86.9%
Final simplification67.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* j (- (* a c) (* y i))) (* c (* z b))))
(t_2 (* t (- (* b i) (* x a)))))
(if (<= t -9.4e+114)
t_2
(if (<= t -5.6e+16)
(+ (* y (* x z)) (* b (- (* t i) (* z c))))
(if (<= t -3.8e-121)
t_1
(if (<= t 1.25e-279)
(* z (- (* x y) (* b c)))
(if (<= t 1.85e+25) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - (c * (z * b));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -9.4e+114) {
tmp = t_2;
} else if (t <= -5.6e+16) {
tmp = (y * (x * z)) + (b * ((t * i) - (z * c)));
} else if (t <= -3.8e-121) {
tmp = t_1;
} else if (t <= 1.25e-279) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.85e+25) {
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 = (j * ((a * c) - (y * i))) - (c * (z * b))
t_2 = t * ((b * i) - (x * a))
if (t <= (-9.4d+114)) then
tmp = t_2
else if (t <= (-5.6d+16)) then
tmp = (y * (x * z)) + (b * ((t * i) - (z * c)))
else if (t <= (-3.8d-121)) then
tmp = t_1
else if (t <= 1.25d-279) then
tmp = z * ((x * y) - (b * c))
else if (t <= 1.85d+25) 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 = (j * ((a * c) - (y * i))) - (c * (z * b));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -9.4e+114) {
tmp = t_2;
} else if (t <= -5.6e+16) {
tmp = (y * (x * z)) + (b * ((t * i) - (z * c)));
} else if (t <= -3.8e-121) {
tmp = t_1;
} else if (t <= 1.25e-279) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.85e+25) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) - (c * (z * b)) t_2 = t * ((b * i) - (x * a)) tmp = 0 if t <= -9.4e+114: tmp = t_2 elif t <= -5.6e+16: tmp = (y * (x * z)) + (b * ((t * i) - (z * c))) elif t <= -3.8e-121: tmp = t_1 elif t <= 1.25e-279: tmp = z * ((x * y) - (b * c)) elif t <= 1.85e+25: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(c * Float64(z * b))) t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -9.4e+114) tmp = t_2; elseif (t <= -5.6e+16) tmp = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (t <= -3.8e-121) tmp = t_1; elseif (t <= 1.25e-279) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 1.85e+25) 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 = (j * ((a * c) - (y * i))) - (c * (z * b)); t_2 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -9.4e+114) tmp = t_2; elseif (t <= -5.6e+16) tmp = (y * (x * z)) + (b * ((t * i) - (z * c))); elseif (t <= -3.8e-121) tmp = t_1; elseif (t <= 1.25e-279) tmp = z * ((x * y) - (b * c)); elseif (t <= 1.85e+25) 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9.4e+114], t$95$2, If[LessEqual[t, -5.6e+16], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.8e-121], t$95$1, If[LessEqual[t, 1.25e-279], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e+25], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -9.4 \cdot 10^{+114}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -5.6 \cdot 10^{+16}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{-121}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-279}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+25}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -9.4000000000000001e114 or 1.8499999999999999e25 < t Initial program 60.1%
sub-neg60.1%
+-commutative60.1%
associate-+l+60.1%
distribute-rgt-neg-in60.1%
+-commutative60.1%
fma-def61.0%
sub-neg61.0%
+-commutative61.0%
distribute-neg-in61.0%
unsub-neg61.0%
remove-double-neg61.0%
*-commutative61.0%
Simplified61.0%
Taylor expanded in t around inf 72.3%
if -9.4000000000000001e114 < t < -5.6e16Initial program 76.1%
sub-neg76.1%
+-commutative76.1%
associate-+l+76.1%
distribute-rgt-neg-in76.1%
+-commutative76.1%
fma-def76.1%
sub-neg76.1%
+-commutative76.1%
distribute-neg-in76.1%
unsub-neg76.1%
remove-double-neg76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in a around -inf 75.5%
associate-+r+75.5%
+-commutative75.5%
associate-+r+75.5%
Simplified75.5%
Taylor expanded in a around 0 71.5%
Taylor expanded in j around 0 80.0%
if -5.6e16 < t < -3.8000000000000001e-121 or 1.24999999999999992e-279 < t < 1.8499999999999999e25Initial program 66.7%
cancel-sign-sub66.7%
cancel-sign-sub-inv66.7%
*-commutative66.7%
remove-double-neg66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in c around inf 67.0%
mul-1-neg67.0%
*-commutative67.0%
*-commutative67.0%
distribute-rgt-neg-in67.0%
Simplified67.0%
if -3.8000000000000001e-121 < t < 1.24999999999999992e-279Initial program 69.4%
cancel-sign-sub69.4%
cancel-sign-sub-inv69.4%
*-commutative69.4%
remove-double-neg69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in z around inf 58.3%
Final simplification69.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -1.05e+47)
t_1
(if (<= t 1.45e-121)
(- (* b (- (* t i) (* z c))) (* y (- (* i j) (* x z))))
(if (<= t 8.4e+170)
(+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* x t))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.05e+47) {
tmp = t_1;
} else if (t <= 1.45e-121) {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
} else if (t <= 8.4e+170) {
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
if (t <= (-1.05d+47)) then
tmp = t_1
else if (t <= 1.45d-121) then
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)))
else if (t <= 8.4d+170) then
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.05e+47) {
tmp = t_1;
} else if (t <= 1.45e-121) {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
} else if (t <= 8.4e+170) {
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -1.05e+47: tmp = t_1 elif t <= 1.45e-121: tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))) elif t <= 8.4e+170: tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -1.05e+47) tmp = t_1; elseif (t <= 1.45e-121) tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(y * Float64(Float64(i * j) - Float64(x * z)))); elseif (t <= 8.4e+170) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -1.05e+47) tmp = t_1; elseif (t <= 1.45e-121) tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))); elseif (t <= 8.4e+170) tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e+47], t$95$1, If[LessEqual[t, 1.45e-121], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.4e+170], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-121}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\
\mathbf{elif}\;t \leq 8.4 \cdot 10^{+170}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.05e47 or 8.39999999999999991e170 < t Initial program 57.1%
sub-neg57.1%
+-commutative57.1%
associate-+l+57.1%
distribute-rgt-neg-in57.1%
+-commutative57.1%
fma-def58.2%
sub-neg58.2%
+-commutative58.2%
distribute-neg-in58.2%
unsub-neg58.2%
remove-double-neg58.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in t around inf 74.3%
if -1.05e47 < t < 1.45e-121Initial program 70.0%
sub-neg70.0%
+-commutative70.0%
associate-+l+70.0%
distribute-rgt-neg-in70.0%
+-commutative70.0%
fma-def73.6%
sub-neg73.6%
+-commutative73.6%
distribute-neg-in73.6%
unsub-neg73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified75.4%
Taylor expanded in a around 0 71.8%
associate-+r+71.8%
mul-1-neg71.8%
distribute-rgt-neg-in71.8%
mul-1-neg71.8%
distribute-lft-in75.3%
mul-1-neg75.3%
unsub-neg75.3%
*-commutative75.3%
Simplified75.3%
if 1.45e-121 < t < 8.39999999999999991e170Initial program 70.0%
sub-neg70.0%
+-commutative70.0%
associate-+l+70.0%
distribute-rgt-neg-in70.0%
+-commutative70.0%
fma-def72.0%
sub-neg72.0%
+-commutative72.0%
distribute-neg-in72.0%
unsub-neg72.0%
remove-double-neg72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in a around -inf 79.5%
associate-+r+79.5%
+-commutative79.5%
associate-+r+79.5%
Simplified79.5%
Taylor expanded in b around 0 67.1%
Final simplification73.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -1.06e+138)
t_1
(if (<= y -4.4e+112)
(* t (- (* b i) (* x a)))
(if (<= y 4.8e+47)
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(+ t_1 (* a (- (* c j) (* 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 * ((x * z) - (i * j));
double tmp;
if (y <= -1.06e+138) {
tmp = t_1;
} else if (y <= -4.4e+112) {
tmp = t * ((b * i) - (x * a));
} else if (y <= 4.8e+47) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 + (a * ((c * j) - (x * t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-1.06d+138)) then
tmp = t_1
else if (y <= (-4.4d+112)) then
tmp = t * ((b * i) - (x * a))
else if (y <= 4.8d+47) then
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))
else
tmp = t_1 + (a * ((c * j) - (x * t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.06e+138) {
tmp = t_1;
} else if (y <= -4.4e+112) {
tmp = t * ((b * i) - (x * a));
} else if (y <= 4.8e+47) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 + (a * ((c * j) - (x * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.06e+138: tmp = t_1 elif y <= -4.4e+112: tmp = t * ((b * i) - (x * a)) elif y <= 4.8e+47: tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))) else: tmp = t_1 + (a * ((c * j) - (x * t))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.06e+138) tmp = t_1; elseif (y <= -4.4e+112) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (y <= 4.8e+47) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(t_1 + Float64(a * Float64(Float64(c * j) - Float64(x * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.06e+138) tmp = t_1; elseif (y <= -4.4e+112) tmp = t * ((b * i) - (x * a)); elseif (y <= 4.8e+47) tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))); else tmp = t_1 + (a * ((c * j) - (x * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.06e+138], t$95$1, If[LessEqual[y, -4.4e+112], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e+47], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.06 \cdot 10^{+138}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -4.4 \cdot 10^{+112}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{+47}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 + a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if y < -1.05999999999999994e138Initial program 43.4%
sub-neg43.4%
+-commutative43.4%
associate-+l+43.4%
distribute-rgt-neg-in43.4%
+-commutative43.4%
fma-def49.5%
sub-neg49.5%
+-commutative49.5%
distribute-neg-in49.5%
unsub-neg49.5%
remove-double-neg49.5%
*-commutative49.5%
Simplified52.5%
Taylor expanded in y around inf 69.0%
*-commutative69.0%
mul-1-neg69.0%
unsub-neg69.0%
Simplified69.0%
if -1.05999999999999994e138 < y < -4.3999999999999999e112Initial program 0.0%
sub-neg0.0%
+-commutative0.0%
associate-+l+0.0%
distribute-rgt-neg-in0.0%
+-commutative0.0%
fma-def0.0%
sub-neg0.0%
+-commutative0.0%
distribute-neg-in0.0%
unsub-neg0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in t around inf 100.0%
if -4.3999999999999999e112 < y < 4.80000000000000037e47Initial program 75.9%
cancel-sign-sub75.9%
cancel-sign-sub-inv75.9%
*-commutative75.9%
remove-double-neg75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in j around 0 74.9%
if 4.80000000000000037e47 < y Initial program 50.3%
sub-neg50.3%
+-commutative50.3%
associate-+l+50.3%
distribute-rgt-neg-in50.3%
+-commutative50.3%
fma-def54.3%
sub-neg54.3%
+-commutative54.3%
distribute-neg-in54.3%
unsub-neg54.3%
remove-double-neg54.3%
*-commutative54.3%
Simplified54.3%
Taylor expanded in a around -inf 67.2%
associate-+r+67.2%
+-commutative67.2%
associate-+r+67.2%
Simplified69.2%
Taylor expanded in b around 0 77.7%
Final simplification75.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= t -4.5e+98)
t_1
(if (<= t -1200000000.0)
(* b (* t i))
(if (<= t -3.15e-160)
(* i (* y (- j)))
(if (<= t 4.7e-299)
(* x (* y z))
(if (<= t 2.9e-235)
(* j (* y (- i)))
(if (<= t 3.7e-115)
(* z (* b (- c)))
(if (<= t 7.5e+232) t_1 (* i (* t b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (t <= -4.5e+98) {
tmp = t_1;
} else if (t <= -1200000000.0) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = i * (y * -j);
} else if (t <= 4.7e-299) {
tmp = x * (y * z);
} else if (t <= 2.9e-235) {
tmp = j * (y * -i);
} else if (t <= 3.7e-115) {
tmp = z * (b * -c);
} else if (t <= 7.5e+232) {
tmp = t_1;
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (t <= (-4.5d+98)) then
tmp = t_1
else if (t <= (-1200000000.0d0)) then
tmp = b * (t * i)
else if (t <= (-3.15d-160)) then
tmp = i * (y * -j)
else if (t <= 4.7d-299) then
tmp = x * (y * z)
else if (t <= 2.9d-235) then
tmp = j * (y * -i)
else if (t <= 3.7d-115) then
tmp = z * (b * -c)
else if (t <= 7.5d+232) then
tmp = t_1
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (t <= -4.5e+98) {
tmp = t_1;
} else if (t <= -1200000000.0) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = i * (y * -j);
} else if (t <= 4.7e-299) {
tmp = x * (y * z);
} else if (t <= 2.9e-235) {
tmp = j * (y * -i);
} else if (t <= 3.7e-115) {
tmp = z * (b * -c);
} else if (t <= 7.5e+232) {
tmp = t_1;
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if t <= -4.5e+98: tmp = t_1 elif t <= -1200000000.0: tmp = b * (t * i) elif t <= -3.15e-160: tmp = i * (y * -j) elif t <= 4.7e-299: tmp = x * (y * z) elif t <= 2.9e-235: tmp = j * (y * -i) elif t <= 3.7e-115: tmp = z * (b * -c) elif t <= 7.5e+232: tmp = t_1 else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (t <= -4.5e+98) tmp = t_1; elseif (t <= -1200000000.0) tmp = Float64(b * Float64(t * i)); elseif (t <= -3.15e-160) tmp = Float64(i * Float64(y * Float64(-j))); elseif (t <= 4.7e-299) tmp = Float64(x * Float64(y * z)); elseif (t <= 2.9e-235) tmp = Float64(j * Float64(y * Float64(-i))); elseif (t <= 3.7e-115) tmp = Float64(z * Float64(b * Float64(-c))); elseif (t <= 7.5e+232) tmp = t_1; else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (t <= -4.5e+98) tmp = t_1; elseif (t <= -1200000000.0) tmp = b * (t * i); elseif (t <= -3.15e-160) tmp = i * (y * -j); elseif (t <= 4.7e-299) tmp = x * (y * z); elseif (t <= 2.9e-235) tmp = j * (y * -i); elseif (t <= 3.7e-115) tmp = z * (b * -c); elseif (t <= 7.5e+232) tmp = t_1; else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e+98], t$95$1, If[LessEqual[t, -1200000000.0], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.15e-160], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.7e-299], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e-235], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.7e-115], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e+232], t$95$1, N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1200000000:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq -3.15 \cdot 10^{-160}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;t \leq 4.7 \cdot 10^{-299}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-235}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{-115}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{+232}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -4.5000000000000002e98 or 3.7e-115 < t < 7.50000000000000035e232Initial program 60.9%
sub-neg60.9%
+-commutative60.9%
associate-+l+60.9%
distribute-rgt-neg-in60.9%
+-commutative60.9%
fma-def61.8%
sub-neg61.8%
+-commutative61.8%
distribute-neg-in61.8%
unsub-neg61.8%
remove-double-neg61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in a around inf 56.1%
+-commutative56.1%
mul-1-neg56.1%
unsub-neg56.1%
Simplified56.1%
if -4.5000000000000002e98 < t < -1.2e9Initial program 80.8%
sub-neg80.8%
+-commutative80.8%
associate-+l+80.8%
distribute-rgt-neg-in80.8%
+-commutative80.8%
fma-def80.8%
sub-neg80.8%
+-commutative80.8%
distribute-neg-in80.8%
unsub-neg80.8%
remove-double-neg80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in b around inf 75.2%
Taylor expanded in i around inf 56.1%
*-commutative56.1%
Simplified56.1%
if -1.2e9 < t < -3.14999999999999974e-160Initial program 61.7%
sub-neg61.7%
+-commutative61.7%
associate-+l+61.7%
distribute-rgt-neg-in61.7%
+-commutative61.7%
fma-def69.4%
sub-neg69.4%
+-commutative69.4%
distribute-neg-in69.4%
unsub-neg69.4%
remove-double-neg69.4%
*-commutative69.4%
Simplified71.9%
Taylor expanded in a around -inf 69.4%
associate-+r+69.4%
+-commutative69.4%
associate-+r+69.4%
Simplified74.6%
Taylor expanded in a around 0 77.2%
Taylor expanded in j around inf 45.0%
associate-*r*44.9%
*-commutative44.9%
associate-*r*49.7%
associate-*r*49.7%
neg-mul-149.7%
Simplified49.7%
if -3.14999999999999974e-160 < t < 4.6999999999999997e-299Initial program 73.7%
sub-neg73.7%
+-commutative73.7%
associate-+l+73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
fma-def73.7%
sub-neg73.7%
+-commutative73.7%
distribute-neg-in73.7%
unsub-neg73.7%
remove-double-neg73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in a around -inf 77.2%
associate-+r+77.2%
+-commutative77.2%
associate-+r+77.2%
Simplified77.2%
Taylor expanded in b around 0 61.5%
Taylor expanded in z around inf 39.0%
associate-*r*47.3%
*-commutative47.3%
Simplified47.3%
if 4.6999999999999997e-299 < t < 2.90000000000000009e-235Initial program 74.4%
sub-neg74.4%
+-commutative74.4%
associate-+l+74.4%
distribute-rgt-neg-in74.4%
+-commutative74.4%
fma-def74.4%
sub-neg74.4%
+-commutative74.4%
distribute-neg-in74.4%
unsub-neg74.4%
remove-double-neg74.4%
*-commutative74.4%
Simplified81.0%
Taylor expanded in j around inf 61.7%
mul-1-neg61.7%
sub-neg61.7%
Simplified61.7%
Taylor expanded in c around 0 48.2%
neg-mul-148.2%
distribute-rgt-neg-in48.2%
Simplified48.2%
if 2.90000000000000009e-235 < t < 3.7e-115Initial program 65.5%
sub-neg65.5%
+-commutative65.5%
associate-+l+65.5%
distribute-rgt-neg-in65.5%
+-commutative65.5%
fma-def70.5%
sub-neg70.5%
+-commutative70.5%
distribute-neg-in70.5%
unsub-neg70.5%
remove-double-neg70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in b around inf 46.2%
Taylor expanded in i around 0 42.3%
mul-1-neg42.3%
associate-*r*46.4%
distribute-rgt-neg-in46.4%
Simplified46.4%
if 7.50000000000000035e232 < t Initial program 61.0%
sub-neg61.0%
+-commutative61.0%
associate-+l+61.0%
distribute-rgt-neg-in61.0%
+-commutative61.0%
fma-def65.3%
sub-neg65.3%
+-commutative65.3%
distribute-neg-in65.3%
unsub-neg65.3%
remove-double-neg65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in a around -inf 48.6%
associate-+r+48.6%
+-commutative48.6%
associate-+r+48.6%
Simplified48.6%
Taylor expanded in a around 0 57.6%
Taylor expanded in j around 0 53.4%
Taylor expanded in z around 0 53.6%
Final simplification52.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= z -3.3e+202)
t_2
(if (<= z -3.9e-38)
t_1
(if (<= z -2.05e-216)
(* a (- (* c j) (* x t)))
(if (<= z 4.6e-66)
(* i (- (* t b) (* y j)))
(if (<= z 5.5e+85)
t_2
(if (<= z 8.5e+179)
t_1
(if (<= z 9.5e+218)
(* y (- (* x z) (* i j)))
(* z (- (* x y) (* b c))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (z <= -3.3e+202) {
tmp = t_2;
} else if (z <= -3.9e-38) {
tmp = t_1;
} else if (z <= -2.05e-216) {
tmp = a * ((c * j) - (x * t));
} else if (z <= 4.6e-66) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 5.5e+85) {
tmp = t_2;
} else if (z <= 8.5e+179) {
tmp = t_1;
} else if (z <= 9.5e+218) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = x * ((y * z) - (t * a))
if (z <= (-3.3d+202)) then
tmp = t_2
else if (z <= (-3.9d-38)) then
tmp = t_1
else if (z <= (-2.05d-216)) then
tmp = a * ((c * j) - (x * t))
else if (z <= 4.6d-66) then
tmp = i * ((t * b) - (y * j))
else if (z <= 5.5d+85) then
tmp = t_2
else if (z <= 8.5d+179) then
tmp = t_1
else if (z <= 9.5d+218) then
tmp = y * ((x * z) - (i * j))
else
tmp = z * ((x * y) - (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (z <= -3.3e+202) {
tmp = t_2;
} else if (z <= -3.9e-38) {
tmp = t_1;
} else if (z <= -2.05e-216) {
tmp = a * ((c * j) - (x * t));
} else if (z <= 4.6e-66) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 5.5e+85) {
tmp = t_2;
} else if (z <= 8.5e+179) {
tmp = t_1;
} else if (z <= 9.5e+218) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if z <= -3.3e+202: tmp = t_2 elif z <= -3.9e-38: tmp = t_1 elif z <= -2.05e-216: tmp = a * ((c * j) - (x * t)) elif z <= 4.6e-66: tmp = i * ((t * b) - (y * j)) elif z <= 5.5e+85: tmp = t_2 elif z <= 8.5e+179: tmp = t_1 elif z <= 9.5e+218: tmp = y * ((x * z) - (i * j)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (z <= -3.3e+202) tmp = t_2; elseif (z <= -3.9e-38) tmp = t_1; elseif (z <= -2.05e-216) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (z <= 4.6e-66) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (z <= 5.5e+85) tmp = t_2; elseif (z <= 8.5e+179) tmp = t_1; elseif (z <= 9.5e+218) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (z <= -3.3e+202) tmp = t_2; elseif (z <= -3.9e-38) tmp = t_1; elseif (z <= -2.05e-216) tmp = a * ((c * j) - (x * t)); elseif (z <= 4.6e-66) tmp = i * ((t * b) - (y * j)); elseif (z <= 5.5e+85) tmp = t_2; elseif (z <= 8.5e+179) tmp = t_1; elseif (z <= 9.5e+218) tmp = y * ((x * z) - (i * j)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.3e+202], t$95$2, If[LessEqual[z, -3.9e-38], t$95$1, If[LessEqual[z, -2.05e-216], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.6e-66], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.5e+85], t$95$2, If[LessEqual[z, 8.5e+179], t$95$1, If[LessEqual[z, 9.5e+218], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;z \leq -3.3 \cdot 10^{+202}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -3.9 \cdot 10^{-38}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.05 \cdot 10^{-216}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{-66}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{+85}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+179}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+218}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -3.2999999999999999e202 or 4.59999999999999984e-66 < z < 5.50000000000000008e85Initial program 59.9%
sub-neg59.9%
+-commutative59.9%
associate-+l+59.9%
distribute-rgt-neg-in59.9%
+-commutative59.9%
fma-def63.4%
sub-neg63.4%
+-commutative63.4%
distribute-neg-in63.4%
unsub-neg63.4%
remove-double-neg63.4%
*-commutative63.4%
Simplified65.2%
Taylor expanded in x around inf 60.2%
if -3.2999999999999999e202 < z < -3.8999999999999999e-38 or 5.50000000000000008e85 < z < 8.49999999999999962e179Initial program 70.8%
sub-neg70.8%
+-commutative70.8%
associate-+l+70.8%
distribute-rgt-neg-in70.8%
+-commutative70.8%
fma-def72.4%
sub-neg72.4%
+-commutative72.4%
distribute-neg-in72.4%
unsub-neg72.4%
remove-double-neg72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in b around inf 67.4%
if -3.8999999999999999e-38 < z < -2.05000000000000012e-216Initial program 70.9%
sub-neg70.9%
+-commutative70.9%
associate-+l+70.9%
distribute-rgt-neg-in70.9%
+-commutative70.9%
fma-def73.6%
sub-neg73.6%
+-commutative73.6%
distribute-neg-in73.6%
unsub-neg73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified76.3%
Taylor expanded in a around inf 64.9%
+-commutative64.9%
mul-1-neg64.9%
unsub-neg64.9%
Simplified64.9%
if -2.05000000000000012e-216 < z < 4.59999999999999984e-66Initial program 76.5%
sub-neg76.5%
+-commutative76.5%
associate-+l+76.5%
distribute-rgt-neg-in76.5%
+-commutative76.5%
fma-def76.5%
sub-neg76.5%
+-commutative76.5%
distribute-neg-in76.5%
unsub-neg76.5%
remove-double-neg76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in i around inf 68.2%
mul-1-neg68.2%
unsub-neg68.2%
Simplified68.2%
if 8.49999999999999962e179 < z < 9.4999999999999999e218Initial program 41.7%
sub-neg41.7%
+-commutative41.7%
associate-+l+41.7%
distribute-rgt-neg-in41.7%
+-commutative41.7%
fma-def50.0%
sub-neg50.0%
+-commutative50.0%
distribute-neg-in50.0%
unsub-neg50.0%
remove-double-neg50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in y around inf 83.3%
*-commutative83.3%
mul-1-neg83.3%
unsub-neg83.3%
Simplified83.3%
if 9.4999999999999999e218 < z Initial program 35.4%
cancel-sign-sub35.4%
cancel-sign-sub-inv35.4%
*-commutative35.4%
remove-double-neg35.4%
*-commutative35.4%
Simplified35.4%
Taylor expanded in z around inf 86.9%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -4e+49)
t_1
(if (<= t 5.1e-70)
(- (* b (- (* t i) (* z c))) (* y (- (* i j) (* x z))))
(if (<= t 8.8e+20) (- (* z (* x y)) (* a (- (* x t) (* c j)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -4e+49) {
tmp = t_1;
} else if (t <= 5.1e-70) {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
} else if (t <= 8.8e+20) {
tmp = (z * (x * y)) - (a * ((x * t) - (c * j)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
if (t <= (-4d+49)) then
tmp = t_1
else if (t <= 5.1d-70) then
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)))
else if (t <= 8.8d+20) then
tmp = (z * (x * y)) - (a * ((x * t) - (c * j)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -4e+49) {
tmp = t_1;
} else if (t <= 5.1e-70) {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
} else if (t <= 8.8e+20) {
tmp = (z * (x * y)) - (a * ((x * t) - (c * j)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -4e+49: tmp = t_1 elif t <= 5.1e-70: tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))) elif t <= 8.8e+20: tmp = (z * (x * y)) - (a * ((x * t) - (c * j))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -4e+49) tmp = t_1; elseif (t <= 5.1e-70) tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(y * Float64(Float64(i * j) - Float64(x * z)))); elseif (t <= 8.8e+20) tmp = Float64(Float64(z * Float64(x * y)) - Float64(a * Float64(Float64(x * t) - Float64(c * j)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -4e+49) tmp = t_1; elseif (t <= 5.1e-70) tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))); elseif (t <= 8.8e+20) tmp = (z * (x * y)) - (a * ((x * t) - (c * j))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e+49], t$95$1, If[LessEqual[t, 5.1e-70], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.8e+20], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -4 \cdot 10^{+49}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{-70}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{+20}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) - a \cdot \left(x \cdot t - c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.99999999999999979e49 or 8.8e20 < t Initial program 61.4%
sub-neg61.4%
+-commutative61.4%
associate-+l+61.4%
distribute-rgt-neg-in61.4%
+-commutative61.4%
fma-def62.2%
sub-neg62.2%
+-commutative62.2%
distribute-neg-in62.2%
unsub-neg62.2%
remove-double-neg62.2%
*-commutative62.2%
Simplified62.2%
Taylor expanded in t around inf 71.4%
if -3.99999999999999979e49 < t < 5.10000000000000025e-70Initial program 68.0%
sub-neg68.0%
+-commutative68.0%
associate-+l+68.0%
distribute-rgt-neg-in68.0%
+-commutative68.0%
fma-def72.0%
sub-neg72.0%
+-commutative72.0%
distribute-neg-in72.0%
unsub-neg72.0%
remove-double-neg72.0%
*-commutative72.0%
Simplified73.7%
Taylor expanded in a around 0 71.1%
associate-+r+71.1%
mul-1-neg71.1%
distribute-rgt-neg-in71.1%
mul-1-neg71.1%
distribute-lft-in74.3%
mul-1-neg74.3%
unsub-neg74.3%
*-commutative74.3%
Simplified74.3%
if 5.10000000000000025e-70 < t < 8.8e20Initial program 75.7%
sub-neg75.7%
+-commutative75.7%
associate-+l+75.7%
distribute-rgt-neg-in75.7%
+-commutative75.7%
fma-def75.7%
sub-neg75.7%
+-commutative75.7%
distribute-neg-in75.7%
unsub-neg75.7%
remove-double-neg75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in a around -inf 83.0%
associate-+r+83.0%
+-commutative83.0%
associate-+r+83.0%
Simplified83.0%
Taylor expanded in b around 0 80.6%
Taylor expanded in z around inf 75.2%
*-commutative75.2%
associate-*l*75.2%
Simplified75.2%
Final simplification73.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* a (* x (- t)))))
(if (<= t -4.3e+98)
t_2
(if (<= t -6400000000000.0)
(* b (* t i))
(if (<= t -3.15e-160)
t_1
(if (<= t 1.95e-299)
(* x (* y z))
(if (<= t 9.6e-232)
t_1
(if (<= t 8.5e-119)
(* c (* z (- b)))
(if (<= t 1.06e-62)
(* c (* a j))
(if (<= t 7.6e+232) t_2 (* i (* t b))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = a * (x * -t);
double tmp;
if (t <= -4.3e+98) {
tmp = t_2;
} else if (t <= -6400000000000.0) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = t_1;
} else if (t <= 1.95e-299) {
tmp = x * (y * z);
} else if (t <= 9.6e-232) {
tmp = t_1;
} else if (t <= 8.5e-119) {
tmp = c * (z * -b);
} else if (t <= 1.06e-62) {
tmp = c * (a * j);
} else if (t <= 7.6e+232) {
tmp = t_2;
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * (y * -j)
t_2 = a * (x * -t)
if (t <= (-4.3d+98)) then
tmp = t_2
else if (t <= (-6400000000000.0d0)) then
tmp = b * (t * i)
else if (t <= (-3.15d-160)) then
tmp = t_1
else if (t <= 1.95d-299) then
tmp = x * (y * z)
else if (t <= 9.6d-232) then
tmp = t_1
else if (t <= 8.5d-119) then
tmp = c * (z * -b)
else if (t <= 1.06d-62) then
tmp = c * (a * j)
else if (t <= 7.6d+232) then
tmp = t_2
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = a * (x * -t);
double tmp;
if (t <= -4.3e+98) {
tmp = t_2;
} else if (t <= -6400000000000.0) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = t_1;
} else if (t <= 1.95e-299) {
tmp = x * (y * z);
} else if (t <= 9.6e-232) {
tmp = t_1;
} else if (t <= 8.5e-119) {
tmp = c * (z * -b);
} else if (t <= 1.06e-62) {
tmp = c * (a * j);
} else if (t <= 7.6e+232) {
tmp = t_2;
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = a * (x * -t) tmp = 0 if t <= -4.3e+98: tmp = t_2 elif t <= -6400000000000.0: tmp = b * (t * i) elif t <= -3.15e-160: tmp = t_1 elif t <= 1.95e-299: tmp = x * (y * z) elif t <= 9.6e-232: tmp = t_1 elif t <= 8.5e-119: tmp = c * (z * -b) elif t <= 1.06e-62: tmp = c * (a * j) elif t <= 7.6e+232: tmp = t_2 else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(a * Float64(x * Float64(-t))) tmp = 0.0 if (t <= -4.3e+98) tmp = t_2; elseif (t <= -6400000000000.0) tmp = Float64(b * Float64(t * i)); elseif (t <= -3.15e-160) tmp = t_1; elseif (t <= 1.95e-299) tmp = Float64(x * Float64(y * z)); elseif (t <= 9.6e-232) tmp = t_1; elseif (t <= 8.5e-119) tmp = Float64(c * Float64(z * Float64(-b))); elseif (t <= 1.06e-62) tmp = Float64(c * Float64(a * j)); elseif (t <= 7.6e+232) tmp = t_2; else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = a * (x * -t); tmp = 0.0; if (t <= -4.3e+98) tmp = t_2; elseif (t <= -6400000000000.0) tmp = b * (t * i); elseif (t <= -3.15e-160) tmp = t_1; elseif (t <= 1.95e-299) tmp = x * (y * z); elseif (t <= 9.6e-232) tmp = t_1; elseif (t <= 8.5e-119) tmp = c * (z * -b); elseif (t <= 1.06e-62) tmp = c * (a * j); elseif (t <= 7.6e+232) tmp = t_2; else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.3e+98], t$95$2, If[LessEqual[t, -6400000000000.0], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.15e-160], t$95$1, If[LessEqual[t, 1.95e-299], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.6e-232], t$95$1, If[LessEqual[t, 8.5e-119], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.06e-62], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.6e+232], t$95$2, N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{if}\;t \leq -4.3 \cdot 10^{+98}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -6400000000000:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq -3.15 \cdot 10^{-160}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{-299}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 9.6 \cdot 10^{-232}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-119}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;t \leq 1.06 \cdot 10^{-62}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{+232}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -4.3000000000000001e98 or 1.06000000000000007e-62 < t < 7.6000000000000002e232Initial program 61.4%
sub-neg61.4%
+-commutative61.4%
associate-+l+61.4%
distribute-rgt-neg-in61.4%
+-commutative61.4%
fma-def61.4%
sub-neg61.4%
+-commutative61.4%
distribute-neg-in61.4%
unsub-neg61.4%
remove-double-neg61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in a around inf 56.0%
+-commutative56.0%
mul-1-neg56.0%
unsub-neg56.0%
Simplified56.0%
Taylor expanded in c around 0 52.7%
associate-*r*52.7%
neg-mul-152.7%
Simplified52.7%
if -4.3000000000000001e98 < t < -6.4e12Initial program 80.8%
sub-neg80.8%
+-commutative80.8%
associate-+l+80.8%
distribute-rgt-neg-in80.8%
+-commutative80.8%
fma-def80.8%
sub-neg80.8%
+-commutative80.8%
distribute-neg-in80.8%
unsub-neg80.8%
remove-double-neg80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in b around inf 75.2%
Taylor expanded in i around inf 56.1%
*-commutative56.1%
Simplified56.1%
if -6.4e12 < t < -3.14999999999999974e-160 or 1.9499999999999999e-299 < t < 9.59999999999999995e-232Initial program 65.2%
sub-neg65.2%
+-commutative65.2%
associate-+l+65.2%
distribute-rgt-neg-in65.2%
+-commutative65.2%
fma-def70.8%
sub-neg70.8%
+-commutative70.8%
distribute-neg-in70.8%
unsub-neg70.8%
remove-double-neg70.8%
*-commutative70.8%
Simplified74.5%
Taylor expanded in a around -inf 74.2%
associate-+r+74.2%
+-commutative74.2%
associate-+r+74.2%
Simplified77.9%
Taylor expanded in a around 0 74.3%
Taylor expanded in j around inf 44.1%
associate-*r*45.8%
*-commutative45.8%
associate-*r*49.2%
associate-*r*49.2%
neg-mul-149.2%
Simplified49.2%
if -3.14999999999999974e-160 < t < 1.9499999999999999e-299Initial program 73.7%
sub-neg73.7%
+-commutative73.7%
associate-+l+73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
fma-def73.7%
sub-neg73.7%
+-commutative73.7%
distribute-neg-in73.7%
unsub-neg73.7%
remove-double-neg73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in a around -inf 77.2%
associate-+r+77.2%
+-commutative77.2%
associate-+r+77.2%
Simplified77.2%
Taylor expanded in b around 0 61.5%
Taylor expanded in z around inf 39.0%
associate-*r*47.3%
*-commutative47.3%
Simplified47.3%
if 9.59999999999999995e-232 < t < 8.49999999999999977e-119Initial program 70.2%
sub-neg70.2%
+-commutative70.2%
associate-+l+70.2%
distribute-rgt-neg-in70.2%
+-commutative70.2%
fma-def76.1%
sub-neg76.1%
+-commutative76.1%
distribute-neg-in76.1%
unsub-neg76.1%
remove-double-neg76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in a around -inf 66.1%
associate-+r+66.1%
+-commutative66.1%
associate-+r+66.1%
Simplified66.1%
Taylor expanded in a around 0 83.9%
Taylor expanded in j around 0 70.8%
Taylor expanded in c around inf 43.0%
associate-*r*43.0%
neg-mul-143.0%
Simplified43.0%
if 8.49999999999999977e-119 < t < 1.06000000000000007e-62Initial program 51.3%
sub-neg51.3%
+-commutative51.3%
associate-+l+51.3%
distribute-rgt-neg-in51.3%
+-commutative51.3%
fma-def59.7%
sub-neg59.7%
+-commutative59.7%
distribute-neg-in59.7%
unsub-neg59.7%
remove-double-neg59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in a around inf 51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
Simplified51.6%
Taylor expanded in c around inf 47.2%
if 7.6000000000000002e232 < t Initial program 61.0%
sub-neg61.0%
+-commutative61.0%
associate-+l+61.0%
distribute-rgt-neg-in61.0%
+-commutative61.0%
fma-def65.3%
sub-neg65.3%
+-commutative65.3%
distribute-neg-in65.3%
unsub-neg65.3%
remove-double-neg65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in a around -inf 48.6%
associate-+r+48.6%
+-commutative48.6%
associate-+r+48.6%
Simplified48.6%
Taylor expanded in a around 0 57.6%
Taylor expanded in j around 0 53.4%
Taylor expanded in z around 0 53.6%
Final simplification50.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* a (* x (- t)))))
(if (<= t -4.3e+98)
t_2
(if (<= t -59000000000000.0)
(* b (* t i))
(if (<= t -3.15e-160)
t_1
(if (<= t 2.5e-301)
(* x (* y z))
(if (<= t 2.4e-231)
t_1
(if (<= t 3.4e-119)
(* z (* b (- c)))
(if (<= t 2e-67)
(* c (* a j))
(if (<= t 6e+232) t_2 (* i (* t b))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = a * (x * -t);
double tmp;
if (t <= -4.3e+98) {
tmp = t_2;
} else if (t <= -59000000000000.0) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = t_1;
} else if (t <= 2.5e-301) {
tmp = x * (y * z);
} else if (t <= 2.4e-231) {
tmp = t_1;
} else if (t <= 3.4e-119) {
tmp = z * (b * -c);
} else if (t <= 2e-67) {
tmp = c * (a * j);
} else if (t <= 6e+232) {
tmp = t_2;
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * (y * -j)
t_2 = a * (x * -t)
if (t <= (-4.3d+98)) then
tmp = t_2
else if (t <= (-59000000000000.0d0)) then
tmp = b * (t * i)
else if (t <= (-3.15d-160)) then
tmp = t_1
else if (t <= 2.5d-301) then
tmp = x * (y * z)
else if (t <= 2.4d-231) then
tmp = t_1
else if (t <= 3.4d-119) then
tmp = z * (b * -c)
else if (t <= 2d-67) then
tmp = c * (a * j)
else if (t <= 6d+232) then
tmp = t_2
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = a * (x * -t);
double tmp;
if (t <= -4.3e+98) {
tmp = t_2;
} else if (t <= -59000000000000.0) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = t_1;
} else if (t <= 2.5e-301) {
tmp = x * (y * z);
} else if (t <= 2.4e-231) {
tmp = t_1;
} else if (t <= 3.4e-119) {
tmp = z * (b * -c);
} else if (t <= 2e-67) {
tmp = c * (a * j);
} else if (t <= 6e+232) {
tmp = t_2;
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = a * (x * -t) tmp = 0 if t <= -4.3e+98: tmp = t_2 elif t <= -59000000000000.0: tmp = b * (t * i) elif t <= -3.15e-160: tmp = t_1 elif t <= 2.5e-301: tmp = x * (y * z) elif t <= 2.4e-231: tmp = t_1 elif t <= 3.4e-119: tmp = z * (b * -c) elif t <= 2e-67: tmp = c * (a * j) elif t <= 6e+232: tmp = t_2 else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(a * Float64(x * Float64(-t))) tmp = 0.0 if (t <= -4.3e+98) tmp = t_2; elseif (t <= -59000000000000.0) tmp = Float64(b * Float64(t * i)); elseif (t <= -3.15e-160) tmp = t_1; elseif (t <= 2.5e-301) tmp = Float64(x * Float64(y * z)); elseif (t <= 2.4e-231) tmp = t_1; elseif (t <= 3.4e-119) tmp = Float64(z * Float64(b * Float64(-c))); elseif (t <= 2e-67) tmp = Float64(c * Float64(a * j)); elseif (t <= 6e+232) tmp = t_2; else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = a * (x * -t); tmp = 0.0; if (t <= -4.3e+98) tmp = t_2; elseif (t <= -59000000000000.0) tmp = b * (t * i); elseif (t <= -3.15e-160) tmp = t_1; elseif (t <= 2.5e-301) tmp = x * (y * z); elseif (t <= 2.4e-231) tmp = t_1; elseif (t <= 3.4e-119) tmp = z * (b * -c); elseif (t <= 2e-67) tmp = c * (a * j); elseif (t <= 6e+232) tmp = t_2; else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.3e+98], t$95$2, If[LessEqual[t, -59000000000000.0], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.15e-160], t$95$1, If[LessEqual[t, 2.5e-301], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e-231], t$95$1, If[LessEqual[t, 3.4e-119], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e-67], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6e+232], t$95$2, N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{if}\;t \leq -4.3 \cdot 10^{+98}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -59000000000000:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq -3.15 \cdot 10^{-160}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-301}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-231}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-119}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-67}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;t \leq 6 \cdot 10^{+232}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -4.3000000000000001e98 or 1.99999999999999989e-67 < t < 6.00000000000000006e232Initial program 61.4%
sub-neg61.4%
+-commutative61.4%
associate-+l+61.4%
distribute-rgt-neg-in61.4%
+-commutative61.4%
fma-def61.4%
sub-neg61.4%
+-commutative61.4%
distribute-neg-in61.4%
unsub-neg61.4%
remove-double-neg61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in a around inf 56.0%
+-commutative56.0%
mul-1-neg56.0%
unsub-neg56.0%
Simplified56.0%
Taylor expanded in c around 0 52.7%
associate-*r*52.7%
neg-mul-152.7%
Simplified52.7%
if -4.3000000000000001e98 < t < -5.9e13Initial program 80.8%
sub-neg80.8%
+-commutative80.8%
associate-+l+80.8%
distribute-rgt-neg-in80.8%
+-commutative80.8%
fma-def80.8%
sub-neg80.8%
+-commutative80.8%
distribute-neg-in80.8%
unsub-neg80.8%
remove-double-neg80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in b around inf 75.2%
Taylor expanded in i around inf 56.1%
*-commutative56.1%
Simplified56.1%
if -5.9e13 < t < -3.14999999999999974e-160 or 2.50000000000000006e-301 < t < 2.39999999999999992e-231Initial program 65.2%
sub-neg65.2%
+-commutative65.2%
associate-+l+65.2%
distribute-rgt-neg-in65.2%
+-commutative65.2%
fma-def70.8%
sub-neg70.8%
+-commutative70.8%
distribute-neg-in70.8%
unsub-neg70.8%
remove-double-neg70.8%
*-commutative70.8%
Simplified74.5%
Taylor expanded in a around -inf 74.2%
associate-+r+74.2%
+-commutative74.2%
associate-+r+74.2%
Simplified77.9%
Taylor expanded in a around 0 74.3%
Taylor expanded in j around inf 44.1%
associate-*r*45.8%
*-commutative45.8%
associate-*r*49.2%
associate-*r*49.2%
neg-mul-149.2%
Simplified49.2%
if -3.14999999999999974e-160 < t < 2.50000000000000006e-301Initial program 73.7%
sub-neg73.7%
+-commutative73.7%
associate-+l+73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
fma-def73.7%
sub-neg73.7%
+-commutative73.7%
distribute-neg-in73.7%
unsub-neg73.7%
remove-double-neg73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in a around -inf 77.2%
associate-+r+77.2%
+-commutative77.2%
associate-+r+77.2%
Simplified77.2%
Taylor expanded in b around 0 61.5%
Taylor expanded in z around inf 39.0%
associate-*r*47.3%
*-commutative47.3%
Simplified47.3%
if 2.39999999999999992e-231 < t < 3.40000000000000024e-119Initial program 70.2%
sub-neg70.2%
+-commutative70.2%
associate-+l+70.2%
distribute-rgt-neg-in70.2%
+-commutative70.2%
fma-def76.1%
sub-neg76.1%
+-commutative76.1%
distribute-neg-in76.1%
unsub-neg76.1%
remove-double-neg76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in b around inf 48.0%
Taylor expanded in i around 0 43.0%
mul-1-neg43.0%
associate-*r*47.9%
distribute-rgt-neg-in47.9%
Simplified47.9%
if 3.40000000000000024e-119 < t < 1.99999999999999989e-67Initial program 51.3%
sub-neg51.3%
+-commutative51.3%
associate-+l+51.3%
distribute-rgt-neg-in51.3%
+-commutative51.3%
fma-def59.7%
sub-neg59.7%
+-commutative59.7%
distribute-neg-in59.7%
unsub-neg59.7%
remove-double-neg59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in a around inf 51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
Simplified51.6%
Taylor expanded in c around inf 47.2%
if 6.00000000000000006e232 < t Initial program 61.0%
sub-neg61.0%
+-commutative61.0%
associate-+l+61.0%
distribute-rgt-neg-in61.0%
+-commutative61.0%
fma-def65.3%
sub-neg65.3%
+-commutative65.3%
distribute-neg-in65.3%
unsub-neg65.3%
remove-double-neg65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in a around -inf 48.6%
associate-+r+48.6%
+-commutative48.6%
associate-+r+48.6%
Simplified48.6%
Taylor expanded in a around 0 57.6%
Taylor expanded in j around 0 53.4%
Taylor expanded in z around 0 53.6%
Final simplification51.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= t -4e+98)
t_1
(if (<= t -1600000000000.0)
(* b (* t i))
(if (<= t -3.15e-160)
(* i (* y (- j)))
(if (<= t 2.6e-302)
(* x (* y z))
(if (<= t 5e-84)
(* c (- (* a j) (* z b)))
(if (<= t 6.2e+232) t_1 (* i (* t b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (t <= -4e+98) {
tmp = t_1;
} else if (t <= -1600000000000.0) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = i * (y * -j);
} else if (t <= 2.6e-302) {
tmp = x * (y * z);
} else if (t <= 5e-84) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 6.2e+232) {
tmp = t_1;
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (t <= (-4d+98)) then
tmp = t_1
else if (t <= (-1600000000000.0d0)) then
tmp = b * (t * i)
else if (t <= (-3.15d-160)) then
tmp = i * (y * -j)
else if (t <= 2.6d-302) then
tmp = x * (y * z)
else if (t <= 5d-84) then
tmp = c * ((a * j) - (z * b))
else if (t <= 6.2d+232) then
tmp = t_1
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (t <= -4e+98) {
tmp = t_1;
} else if (t <= -1600000000000.0) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = i * (y * -j);
} else if (t <= 2.6e-302) {
tmp = x * (y * z);
} else if (t <= 5e-84) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 6.2e+232) {
tmp = t_1;
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if t <= -4e+98: tmp = t_1 elif t <= -1600000000000.0: tmp = b * (t * i) elif t <= -3.15e-160: tmp = i * (y * -j) elif t <= 2.6e-302: tmp = x * (y * z) elif t <= 5e-84: tmp = c * ((a * j) - (z * b)) elif t <= 6.2e+232: tmp = t_1 else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (t <= -4e+98) tmp = t_1; elseif (t <= -1600000000000.0) tmp = Float64(b * Float64(t * i)); elseif (t <= -3.15e-160) tmp = Float64(i * Float64(y * Float64(-j))); elseif (t <= 2.6e-302) tmp = Float64(x * Float64(y * z)); elseif (t <= 5e-84) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (t <= 6.2e+232) tmp = t_1; else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (t <= -4e+98) tmp = t_1; elseif (t <= -1600000000000.0) tmp = b * (t * i); elseif (t <= -3.15e-160) tmp = i * (y * -j); elseif (t <= 2.6e-302) tmp = x * (y * z); elseif (t <= 5e-84) tmp = c * ((a * j) - (z * b)); elseif (t <= 6.2e+232) tmp = t_1; else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e+98], t$95$1, If[LessEqual[t, -1600000000000.0], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.15e-160], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.6e-302], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e-84], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e+232], t$95$1, N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;t \leq -4 \cdot 10^{+98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1600000000000:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq -3.15 \cdot 10^{-160}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-302}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-84}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{+232}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -3.99999999999999999e98 or 5.0000000000000002e-84 < t < 6.19999999999999966e232Initial program 61.2%
sub-neg61.2%
+-commutative61.2%
associate-+l+61.2%
distribute-rgt-neg-in61.2%
+-commutative61.2%
fma-def61.2%
sub-neg61.2%
+-commutative61.2%
distribute-neg-in61.2%
unsub-neg61.2%
remove-double-neg61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in a around inf 55.9%
+-commutative55.9%
mul-1-neg55.9%
unsub-neg55.9%
Simplified55.9%
if -3.99999999999999999e98 < t < -1.6e12Initial program 80.8%
sub-neg80.8%
+-commutative80.8%
associate-+l+80.8%
distribute-rgt-neg-in80.8%
+-commutative80.8%
fma-def80.8%
sub-neg80.8%
+-commutative80.8%
distribute-neg-in80.8%
unsub-neg80.8%
remove-double-neg80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in b around inf 75.2%
Taylor expanded in i around inf 56.1%
*-commutative56.1%
Simplified56.1%
if -1.6e12 < t < -3.14999999999999974e-160Initial program 61.7%
sub-neg61.7%
+-commutative61.7%
associate-+l+61.7%
distribute-rgt-neg-in61.7%
+-commutative61.7%
fma-def69.4%
sub-neg69.4%
+-commutative69.4%
distribute-neg-in69.4%
unsub-neg69.4%
remove-double-neg69.4%
*-commutative69.4%
Simplified71.9%
Taylor expanded in a around -inf 69.4%
associate-+r+69.4%
+-commutative69.4%
associate-+r+69.4%
Simplified74.6%
Taylor expanded in a around 0 77.2%
Taylor expanded in j around inf 45.0%
associate-*r*44.9%
*-commutative44.9%
associate-*r*49.7%
associate-*r*49.7%
neg-mul-149.7%
Simplified49.7%
if -3.14999999999999974e-160 < t < 2.60000000000000011e-302Initial program 73.7%
sub-neg73.7%
+-commutative73.7%
associate-+l+73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
fma-def73.7%
sub-neg73.7%
+-commutative73.7%
distribute-neg-in73.7%
unsub-neg73.7%
remove-double-neg73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in a around -inf 77.2%
associate-+r+77.2%
+-commutative77.2%
associate-+r+77.2%
Simplified77.2%
Taylor expanded in b around 0 61.5%
Taylor expanded in z around inf 39.0%
associate-*r*47.3%
*-commutative47.3%
Simplified47.3%
if 2.60000000000000011e-302 < t < 5.0000000000000002e-84Initial program 67.3%
sub-neg67.3%
+-commutative67.3%
associate-+l+67.3%
distribute-rgt-neg-in67.3%
+-commutative67.3%
fma-def72.0%
sub-neg72.0%
+-commutative72.0%
distribute-neg-in72.0%
unsub-neg72.0%
remove-double-neg72.0%
*-commutative72.0%
Simplified74.4%
Taylor expanded in c around inf 48.9%
distribute-rgt-in44.1%
*-commutative44.1%
mul-1-neg44.1%
cancel-sign-sub-inv44.1%
*-commutative44.1%
distribute-rgt-out--48.9%
Simplified48.9%
if 6.19999999999999966e232 < t Initial program 61.0%
sub-neg61.0%
+-commutative61.0%
associate-+l+61.0%
distribute-rgt-neg-in61.0%
+-commutative61.0%
fma-def65.3%
sub-neg65.3%
+-commutative65.3%
distribute-neg-in65.3%
unsub-neg65.3%
remove-double-neg65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in a around -inf 48.6%
associate-+r+48.6%
+-commutative48.6%
associate-+r+48.6%
Simplified48.6%
Taylor expanded in a around 0 57.6%
Taylor expanded in j around 0 53.4%
Taylor expanded in z around 0 53.6%
Final simplification52.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* t (* x (- a)))))
(if (<= t -4.2e+98)
t_2
(if (<= t -2e+30)
(* b (* t i))
(if (<= t -3.15e-160)
(* y (* i (- j)))
(if (<= t 2.9e-120)
t_1
(if (<= t 1.9e-30)
(* c (* a j))
(if (<= t 1.35e+14)
t_1
(if (<= t 7e+232) t_2 (* i (* t b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = t * (x * -a);
double tmp;
if (t <= -4.2e+98) {
tmp = t_2;
} else if (t <= -2e+30) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = y * (i * -j);
} else if (t <= 2.9e-120) {
tmp = t_1;
} else if (t <= 1.9e-30) {
tmp = c * (a * j);
} else if (t <= 1.35e+14) {
tmp = t_1;
} else if (t <= 7e+232) {
tmp = t_2;
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (y * z)
t_2 = t * (x * -a)
if (t <= (-4.2d+98)) then
tmp = t_2
else if (t <= (-2d+30)) then
tmp = b * (t * i)
else if (t <= (-3.15d-160)) then
tmp = y * (i * -j)
else if (t <= 2.9d-120) then
tmp = t_1
else if (t <= 1.9d-30) then
tmp = c * (a * j)
else if (t <= 1.35d+14) then
tmp = t_1
else if (t <= 7d+232) then
tmp = t_2
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = t * (x * -a);
double tmp;
if (t <= -4.2e+98) {
tmp = t_2;
} else if (t <= -2e+30) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = y * (i * -j);
} else if (t <= 2.9e-120) {
tmp = t_1;
} else if (t <= 1.9e-30) {
tmp = c * (a * j);
} else if (t <= 1.35e+14) {
tmp = t_1;
} else if (t <= 7e+232) {
tmp = t_2;
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = t * (x * -a) tmp = 0 if t <= -4.2e+98: tmp = t_2 elif t <= -2e+30: tmp = b * (t * i) elif t <= -3.15e-160: tmp = y * (i * -j) elif t <= 2.9e-120: tmp = t_1 elif t <= 1.9e-30: tmp = c * (a * j) elif t <= 1.35e+14: tmp = t_1 elif t <= 7e+232: tmp = t_2 else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(t * Float64(x * Float64(-a))) tmp = 0.0 if (t <= -4.2e+98) tmp = t_2; elseif (t <= -2e+30) tmp = Float64(b * Float64(t * i)); elseif (t <= -3.15e-160) tmp = Float64(y * Float64(i * Float64(-j))); elseif (t <= 2.9e-120) tmp = t_1; elseif (t <= 1.9e-30) tmp = Float64(c * Float64(a * j)); elseif (t <= 1.35e+14) tmp = t_1; elseif (t <= 7e+232) tmp = t_2; else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = t * (x * -a); tmp = 0.0; if (t <= -4.2e+98) tmp = t_2; elseif (t <= -2e+30) tmp = b * (t * i); elseif (t <= -3.15e-160) tmp = y * (i * -j); elseif (t <= 2.9e-120) tmp = t_1; elseif (t <= 1.9e-30) tmp = c * (a * j); elseif (t <= 1.35e+14) tmp = t_1; elseif (t <= 7e+232) tmp = t_2; else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.2e+98], t$95$2, If[LessEqual[t, -2e+30], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.15e-160], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e-120], t$95$1, If[LessEqual[t, 1.9e-30], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e+14], t$95$1, If[LessEqual[t, 7e+232], t$95$2, N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{if}\;t \leq -4.2 \cdot 10^{+98}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -2 \cdot 10^{+30}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq -3.15 \cdot 10^{-160}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-30}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7 \cdot 10^{+232}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -4.20000000000000008e98 or 1.35e14 < t < 7.00000000000000026e232Initial program 59.9%
sub-neg59.9%
+-commutative59.9%
associate-+l+59.9%
distribute-rgt-neg-in59.9%
+-commutative59.9%
fma-def59.9%
sub-neg59.9%
+-commutative59.9%
distribute-neg-in59.9%
unsub-neg59.9%
remove-double-neg59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in t around inf 71.1%
Taylor expanded in i around 0 49.3%
mul-1-neg49.3%
*-commutative49.3%
distribute-rgt-neg-in49.3%
Simplified49.3%
if -4.20000000000000008e98 < t < -2e30Initial program 85.5%
sub-neg85.5%
+-commutative85.5%
associate-+l+85.5%
distribute-rgt-neg-in85.5%
+-commutative85.5%
fma-def85.5%
sub-neg85.5%
+-commutative85.5%
distribute-neg-in85.5%
unsub-neg85.5%
remove-double-neg85.5%
*-commutative85.5%
Simplified85.5%
Taylor expanded in b around inf 85.7%
Taylor expanded in i around inf 72.5%
*-commutative72.5%
Simplified72.5%
if -2e30 < t < -3.14999999999999974e-160Initial program 62.8%
sub-neg62.8%
+-commutative62.8%
associate-+l+62.8%
distribute-rgt-neg-in62.8%
+-commutative62.8%
fma-def69.4%
sub-neg69.4%
+-commutative69.4%
distribute-neg-in69.4%
unsub-neg69.4%
remove-double-neg69.4%
*-commutative69.4%
Simplified71.7%
Taylor expanded in a around -inf 71.4%
associate-+r+71.4%
+-commutative71.4%
associate-+r+71.4%
Simplified75.9%
Taylor expanded in a around 0 78.0%
Taylor expanded in j around inf 41.4%
mul-1-neg41.4%
distribute-rgt-neg-in41.4%
distribute-rgt-neg-in41.4%
Simplified41.4%
if -3.14999999999999974e-160 < t < 2.9e-120 or 1.9000000000000002e-30 < t < 1.35e14Initial program 73.0%
sub-neg73.0%
+-commutative73.0%
associate-+l+73.0%
distribute-rgt-neg-in73.0%
+-commutative73.0%
fma-def74.5%
sub-neg74.5%
+-commutative74.5%
distribute-neg-in74.5%
unsub-neg74.5%
remove-double-neg74.5%
*-commutative74.5%
Simplified76.1%
Taylor expanded in a around -inf 76.3%
associate-+r+76.3%
+-commutative76.3%
associate-+r+76.3%
Simplified76.3%
Taylor expanded in b around 0 59.0%
Taylor expanded in z around inf 33.7%
associate-*r*39.0%
*-commutative39.0%
Simplified39.0%
if 2.9e-120 < t < 1.9000000000000002e-30Initial program 59.2%
sub-neg59.2%
+-commutative59.2%
associate-+l+59.2%
distribute-rgt-neg-in59.2%
+-commutative59.2%
fma-def64.4%
sub-neg64.4%
+-commutative64.4%
distribute-neg-in64.4%
unsub-neg64.4%
remove-double-neg64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in a around inf 54.0%
+-commutative54.0%
mul-1-neg54.0%
unsub-neg54.0%
Simplified54.0%
Taylor expanded in c around inf 36.2%
if 7.00000000000000026e232 < t Initial program 61.0%
sub-neg61.0%
+-commutative61.0%
associate-+l+61.0%
distribute-rgt-neg-in61.0%
+-commutative61.0%
fma-def65.3%
sub-neg65.3%
+-commutative65.3%
distribute-neg-in65.3%
unsub-neg65.3%
remove-double-neg65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in a around -inf 48.6%
associate-+r+48.6%
+-commutative48.6%
associate-+r+48.6%
Simplified48.6%
Taylor expanded in a around 0 57.6%
Taylor expanded in j around 0 53.4%
Taylor expanded in z around 0 53.6%
Final simplification45.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= t -4.5e+98)
(* a (* x (- t)))
(if (<= t -2.5e+15)
(* b (* t i))
(if (<= t -3.15e-160)
t_1
(if (<= t 1.5e-301)
(* x (* y z))
(if (<= t 8.2e-235)
t_1
(if (<= t 5.1e-121)
(* z (* b (- c)))
(if (<= t 1.26e-66) (* c (* a j)) (* x (* t (- a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (t <= -4.5e+98) {
tmp = a * (x * -t);
} else if (t <= -2.5e+15) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = t_1;
} else if (t <= 1.5e-301) {
tmp = x * (y * z);
} else if (t <= 8.2e-235) {
tmp = t_1;
} else if (t <= 5.1e-121) {
tmp = z * (b * -c);
} else if (t <= 1.26e-66) {
tmp = c * (a * j);
} else {
tmp = x * (t * -a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y * -j)
if (t <= (-4.5d+98)) then
tmp = a * (x * -t)
else if (t <= (-2.5d+15)) then
tmp = b * (t * i)
else if (t <= (-3.15d-160)) then
tmp = t_1
else if (t <= 1.5d-301) then
tmp = x * (y * z)
else if (t <= 8.2d-235) then
tmp = t_1
else if (t <= 5.1d-121) then
tmp = z * (b * -c)
else if (t <= 1.26d-66) then
tmp = c * (a * j)
else
tmp = x * (t * -a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (t <= -4.5e+98) {
tmp = a * (x * -t);
} else if (t <= -2.5e+15) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = t_1;
} else if (t <= 1.5e-301) {
tmp = x * (y * z);
} else if (t <= 8.2e-235) {
tmp = t_1;
} else if (t <= 5.1e-121) {
tmp = z * (b * -c);
} else if (t <= 1.26e-66) {
tmp = c * (a * j);
} else {
tmp = x * (t * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if t <= -4.5e+98: tmp = a * (x * -t) elif t <= -2.5e+15: tmp = b * (t * i) elif t <= -3.15e-160: tmp = t_1 elif t <= 1.5e-301: tmp = x * (y * z) elif t <= 8.2e-235: tmp = t_1 elif t <= 5.1e-121: tmp = z * (b * -c) elif t <= 1.26e-66: tmp = c * (a * j) else: tmp = x * (t * -a) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (t <= -4.5e+98) tmp = Float64(a * Float64(x * Float64(-t))); elseif (t <= -2.5e+15) tmp = Float64(b * Float64(t * i)); elseif (t <= -3.15e-160) tmp = t_1; elseif (t <= 1.5e-301) tmp = Float64(x * Float64(y * z)); elseif (t <= 8.2e-235) tmp = t_1; elseif (t <= 5.1e-121) tmp = Float64(z * Float64(b * Float64(-c))); elseif (t <= 1.26e-66) tmp = Float64(c * Float64(a * j)); else tmp = Float64(x * Float64(t * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (t <= -4.5e+98) tmp = a * (x * -t); elseif (t <= -2.5e+15) tmp = b * (t * i); elseif (t <= -3.15e-160) tmp = t_1; elseif (t <= 1.5e-301) tmp = x * (y * z); elseif (t <= 8.2e-235) tmp = t_1; elseif (t <= 5.1e-121) tmp = z * (b * -c); elseif (t <= 1.26e-66) tmp = c * (a * j); else tmp = x * (t * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e+98], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.5e+15], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.15e-160], t$95$1, If[LessEqual[t, 1.5e-301], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.2e-235], t$95$1, If[LessEqual[t, 5.1e-121], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.26e-66], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+98}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;t \leq -2.5 \cdot 10^{+15}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq -3.15 \cdot 10^{-160}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-301}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-235}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{-121}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;t \leq 1.26 \cdot 10^{-66}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if t < -4.5000000000000002e98Initial program 54.9%
sub-neg54.9%
+-commutative54.9%
associate-+l+54.9%
distribute-rgt-neg-in54.9%
+-commutative54.9%
fma-def54.9%
sub-neg54.9%
+-commutative54.9%
distribute-neg-in54.9%
unsub-neg54.9%
remove-double-neg54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in a around inf 57.5%
+-commutative57.5%
mul-1-neg57.5%
unsub-neg57.5%
Simplified57.5%
Taylor expanded in c around 0 55.4%
associate-*r*55.4%
neg-mul-155.4%
Simplified55.4%
if -4.5000000000000002e98 < t < -2.5e15Initial program 80.8%
sub-neg80.8%
+-commutative80.8%
associate-+l+80.8%
distribute-rgt-neg-in80.8%
+-commutative80.8%
fma-def80.8%
sub-neg80.8%
+-commutative80.8%
distribute-neg-in80.8%
unsub-neg80.8%
remove-double-neg80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in b around inf 75.2%
Taylor expanded in i around inf 56.1%
*-commutative56.1%
Simplified56.1%
if -2.5e15 < t < -3.14999999999999974e-160 or 1.5e-301 < t < 8.19999999999999993e-235Initial program 65.2%
sub-neg65.2%
+-commutative65.2%
associate-+l+65.2%
distribute-rgt-neg-in65.2%
+-commutative65.2%
fma-def70.8%
sub-neg70.8%
+-commutative70.8%
distribute-neg-in70.8%
unsub-neg70.8%
remove-double-neg70.8%
*-commutative70.8%
Simplified74.5%
Taylor expanded in a around -inf 74.2%
associate-+r+74.2%
+-commutative74.2%
associate-+r+74.2%
Simplified77.9%
Taylor expanded in a around 0 74.3%
Taylor expanded in j around inf 44.1%
associate-*r*45.8%
*-commutative45.8%
associate-*r*49.2%
associate-*r*49.2%
neg-mul-149.2%
Simplified49.2%
if -3.14999999999999974e-160 < t < 1.5e-301Initial program 73.7%
sub-neg73.7%
+-commutative73.7%
associate-+l+73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
fma-def73.7%
sub-neg73.7%
+-commutative73.7%
distribute-neg-in73.7%
unsub-neg73.7%
remove-double-neg73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in a around -inf 77.2%
associate-+r+77.2%
+-commutative77.2%
associate-+r+77.2%
Simplified77.2%
Taylor expanded in b around 0 61.5%
Taylor expanded in z around inf 39.0%
associate-*r*47.3%
*-commutative47.3%
Simplified47.3%
if 8.19999999999999993e-235 < t < 5.0999999999999998e-121Initial program 70.2%
sub-neg70.2%
+-commutative70.2%
associate-+l+70.2%
distribute-rgt-neg-in70.2%
+-commutative70.2%
fma-def76.1%
sub-neg76.1%
+-commutative76.1%
distribute-neg-in76.1%
unsub-neg76.1%
remove-double-neg76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in b around inf 48.0%
Taylor expanded in i around 0 43.0%
mul-1-neg43.0%
associate-*r*47.9%
distribute-rgt-neg-in47.9%
Simplified47.9%
if 5.0999999999999998e-121 < t < 1.25999999999999996e-66Initial program 51.3%
sub-neg51.3%
+-commutative51.3%
associate-+l+51.3%
distribute-rgt-neg-in51.3%
+-commutative51.3%
fma-def59.7%
sub-neg59.7%
+-commutative59.7%
distribute-neg-in59.7%
unsub-neg59.7%
remove-double-neg59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in a around inf 51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
Simplified51.6%
Taylor expanded in c around inf 47.2%
if 1.25999999999999996e-66 < t Initial program 65.2%
sub-neg65.2%
+-commutative65.2%
associate-+l+65.2%
distribute-rgt-neg-in65.2%
+-commutative65.2%
fma-def66.5%
sub-neg66.5%
+-commutative66.5%
distribute-neg-in66.5%
unsub-neg66.5%
remove-double-neg66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in a around inf 46.9%
+-commutative46.9%
mul-1-neg46.9%
unsub-neg46.9%
Simplified46.9%
Taylor expanded in c around 0 43.7%
mul-1-neg43.7%
associate-*r*46.5%
distribute-rgt-neg-in46.5%
*-commutative46.5%
Simplified46.5%
Final simplification49.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -4e+98)
(* a (* x (- t)))
(if (<= t -7500000.0)
(* b (* t i))
(if (<= t -3.15e-160)
(* i (* y (- j)))
(if (<= t 5.4e-300)
(* x (* y z))
(if (<= t 2.6e-230)
(* j (* y (- i)))
(if (<= t 4.9e-119)
(* z (* b (- c)))
(if (<= t 3.6e-66) (* c (* a j)) (* x (* t (- a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -4e+98) {
tmp = a * (x * -t);
} else if (t <= -7500000.0) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = i * (y * -j);
} else if (t <= 5.4e-300) {
tmp = x * (y * z);
} else if (t <= 2.6e-230) {
tmp = j * (y * -i);
} else if (t <= 4.9e-119) {
tmp = z * (b * -c);
} else if (t <= 3.6e-66) {
tmp = c * (a * j);
} else {
tmp = x * (t * -a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-4d+98)) then
tmp = a * (x * -t)
else if (t <= (-7500000.0d0)) then
tmp = b * (t * i)
else if (t <= (-3.15d-160)) then
tmp = i * (y * -j)
else if (t <= 5.4d-300) then
tmp = x * (y * z)
else if (t <= 2.6d-230) then
tmp = j * (y * -i)
else if (t <= 4.9d-119) then
tmp = z * (b * -c)
else if (t <= 3.6d-66) then
tmp = c * (a * j)
else
tmp = x * (t * -a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -4e+98) {
tmp = a * (x * -t);
} else if (t <= -7500000.0) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = i * (y * -j);
} else if (t <= 5.4e-300) {
tmp = x * (y * z);
} else if (t <= 2.6e-230) {
tmp = j * (y * -i);
} else if (t <= 4.9e-119) {
tmp = z * (b * -c);
} else if (t <= 3.6e-66) {
tmp = c * (a * j);
} else {
tmp = x * (t * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -4e+98: tmp = a * (x * -t) elif t <= -7500000.0: tmp = b * (t * i) elif t <= -3.15e-160: tmp = i * (y * -j) elif t <= 5.4e-300: tmp = x * (y * z) elif t <= 2.6e-230: tmp = j * (y * -i) elif t <= 4.9e-119: tmp = z * (b * -c) elif t <= 3.6e-66: tmp = c * (a * j) else: tmp = x * (t * -a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -4e+98) tmp = Float64(a * Float64(x * Float64(-t))); elseif (t <= -7500000.0) tmp = Float64(b * Float64(t * i)); elseif (t <= -3.15e-160) tmp = Float64(i * Float64(y * Float64(-j))); elseif (t <= 5.4e-300) tmp = Float64(x * Float64(y * z)); elseif (t <= 2.6e-230) tmp = Float64(j * Float64(y * Float64(-i))); elseif (t <= 4.9e-119) tmp = Float64(z * Float64(b * Float64(-c))); elseif (t <= 3.6e-66) tmp = Float64(c * Float64(a * j)); else tmp = Float64(x * Float64(t * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -4e+98) tmp = a * (x * -t); elseif (t <= -7500000.0) tmp = b * (t * i); elseif (t <= -3.15e-160) tmp = i * (y * -j); elseif (t <= 5.4e-300) tmp = x * (y * z); elseif (t <= 2.6e-230) tmp = j * (y * -i); elseif (t <= 4.9e-119) tmp = z * (b * -c); elseif (t <= 3.6e-66) tmp = c * (a * j); else tmp = x * (t * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -4e+98], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7500000.0], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.15e-160], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.4e-300], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.6e-230], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.9e-119], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e-66], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+98}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;t \leq -7500000:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq -3.15 \cdot 10^{-160}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;t \leq 5.4 \cdot 10^{-300}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-230}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;t \leq 4.9 \cdot 10^{-119}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-66}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if t < -3.99999999999999999e98Initial program 54.9%
sub-neg54.9%
+-commutative54.9%
associate-+l+54.9%
distribute-rgt-neg-in54.9%
+-commutative54.9%
fma-def54.9%
sub-neg54.9%
+-commutative54.9%
distribute-neg-in54.9%
unsub-neg54.9%
remove-double-neg54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in a around inf 57.5%
+-commutative57.5%
mul-1-neg57.5%
unsub-neg57.5%
Simplified57.5%
Taylor expanded in c around 0 55.4%
associate-*r*55.4%
neg-mul-155.4%
Simplified55.4%
if -3.99999999999999999e98 < t < -7.5e6Initial program 80.8%
sub-neg80.8%
+-commutative80.8%
associate-+l+80.8%
distribute-rgt-neg-in80.8%
+-commutative80.8%
fma-def80.8%
sub-neg80.8%
+-commutative80.8%
distribute-neg-in80.8%
unsub-neg80.8%
remove-double-neg80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in b around inf 75.2%
Taylor expanded in i around inf 56.1%
*-commutative56.1%
Simplified56.1%
if -7.5e6 < t < -3.14999999999999974e-160Initial program 61.7%
sub-neg61.7%
+-commutative61.7%
associate-+l+61.7%
distribute-rgt-neg-in61.7%
+-commutative61.7%
fma-def69.4%
sub-neg69.4%
+-commutative69.4%
distribute-neg-in69.4%
unsub-neg69.4%
remove-double-neg69.4%
*-commutative69.4%
Simplified71.9%
Taylor expanded in a around -inf 69.4%
associate-+r+69.4%
+-commutative69.4%
associate-+r+69.4%
Simplified74.6%
Taylor expanded in a around 0 77.2%
Taylor expanded in j around inf 45.0%
associate-*r*44.9%
*-commutative44.9%
associate-*r*49.7%
associate-*r*49.7%
neg-mul-149.7%
Simplified49.7%
if -3.14999999999999974e-160 < t < 5.3999999999999999e-300Initial program 73.7%
sub-neg73.7%
+-commutative73.7%
associate-+l+73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
fma-def73.7%
sub-neg73.7%
+-commutative73.7%
distribute-neg-in73.7%
unsub-neg73.7%
remove-double-neg73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in a around -inf 77.2%
associate-+r+77.2%
+-commutative77.2%
associate-+r+77.2%
Simplified77.2%
Taylor expanded in b around 0 61.5%
Taylor expanded in z around inf 39.0%
associate-*r*47.3%
*-commutative47.3%
Simplified47.3%
if 5.3999999999999999e-300 < t < 2.6000000000000001e-230Initial program 74.4%
sub-neg74.4%
+-commutative74.4%
associate-+l+74.4%
distribute-rgt-neg-in74.4%
+-commutative74.4%
fma-def74.4%
sub-neg74.4%
+-commutative74.4%
distribute-neg-in74.4%
unsub-neg74.4%
remove-double-neg74.4%
*-commutative74.4%
Simplified81.0%
Taylor expanded in j around inf 61.7%
mul-1-neg61.7%
sub-neg61.7%
Simplified61.7%
Taylor expanded in c around 0 48.2%
neg-mul-148.2%
distribute-rgt-neg-in48.2%
Simplified48.2%
if 2.6000000000000001e-230 < t < 4.9e-119Initial program 70.2%
sub-neg70.2%
+-commutative70.2%
associate-+l+70.2%
distribute-rgt-neg-in70.2%
+-commutative70.2%
fma-def76.1%
sub-neg76.1%
+-commutative76.1%
distribute-neg-in76.1%
unsub-neg76.1%
remove-double-neg76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in b around inf 48.0%
Taylor expanded in i around 0 43.0%
mul-1-neg43.0%
associate-*r*47.9%
distribute-rgt-neg-in47.9%
Simplified47.9%
if 4.9e-119 < t < 3.60000000000000012e-66Initial program 51.3%
sub-neg51.3%
+-commutative51.3%
associate-+l+51.3%
distribute-rgt-neg-in51.3%
+-commutative51.3%
fma-def59.7%
sub-neg59.7%
+-commutative59.7%
distribute-neg-in59.7%
unsub-neg59.7%
remove-double-neg59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in a around inf 51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
Simplified51.6%
Taylor expanded in c around inf 47.2%
if 3.60000000000000012e-66 < t Initial program 65.2%
sub-neg65.2%
+-commutative65.2%
associate-+l+65.2%
distribute-rgt-neg-in65.2%
+-commutative65.2%
fma-def66.5%
sub-neg66.5%
+-commutative66.5%
distribute-neg-in66.5%
unsub-neg66.5%
remove-double-neg66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in a around inf 46.9%
+-commutative46.9%
mul-1-neg46.9%
unsub-neg46.9%
Simplified46.9%
Taylor expanded in c around 0 43.7%
mul-1-neg43.7%
associate-*r*46.5%
distribute-rgt-neg-in46.5%
*-commutative46.5%
Simplified46.5%
Final simplification49.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -5.8e+14)
t_1
(if (<= i -2.2e-97)
(* j (- (* a c) (* y i)))
(if (<= i -3.7e-146)
(* y (- (* x z) (* i j)))
(if (<= i 1.6e-109)
(* c (- (* a j) (* z b)))
(if (<= i 0.008) (* a (- (* c j) (* x t))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -5.8e+14) {
tmp = t_1;
} else if (i <= -2.2e-97) {
tmp = j * ((a * c) - (y * i));
} else if (i <= -3.7e-146) {
tmp = y * ((x * z) - (i * j));
} else if (i <= 1.6e-109) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 0.008) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-5.8d+14)) then
tmp = t_1
else if (i <= (-2.2d-97)) then
tmp = j * ((a * c) - (y * i))
else if (i <= (-3.7d-146)) then
tmp = y * ((x * z) - (i * j))
else if (i <= 1.6d-109) then
tmp = c * ((a * j) - (z * b))
else if (i <= 0.008d0) then
tmp = a * ((c * j) - (x * t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -5.8e+14) {
tmp = t_1;
} else if (i <= -2.2e-97) {
tmp = j * ((a * c) - (y * i));
} else if (i <= -3.7e-146) {
tmp = y * ((x * z) - (i * j));
} else if (i <= 1.6e-109) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 0.008) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -5.8e+14: tmp = t_1 elif i <= -2.2e-97: tmp = j * ((a * c) - (y * i)) elif i <= -3.7e-146: tmp = y * ((x * z) - (i * j)) elif i <= 1.6e-109: tmp = c * ((a * j) - (z * b)) elif i <= 0.008: tmp = a * ((c * j) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -5.8e+14) tmp = t_1; elseif (i <= -2.2e-97) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (i <= -3.7e-146) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (i <= 1.6e-109) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 0.008) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -5.8e+14) tmp = t_1; elseif (i <= -2.2e-97) tmp = j * ((a * c) - (y * i)); elseif (i <= -3.7e-146) tmp = y * ((x * z) - (i * j)); elseif (i <= 1.6e-109) tmp = c * ((a * j) - (z * b)); elseif (i <= 0.008) tmp = a * ((c * j) - (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5.8e+14], t$95$1, If[LessEqual[i, -2.2e-97], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.7e-146], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.6e-109], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 0.008], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -5.8 \cdot 10^{+14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -2.2 \cdot 10^{-97}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;i \leq -3.7 \cdot 10^{-146}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;i \leq 1.6 \cdot 10^{-109}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 0.008:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -5.8e14 or 0.0080000000000000002 < i Initial program 54.8%
sub-neg54.8%
+-commutative54.8%
associate-+l+54.8%
distribute-rgt-neg-in54.8%
+-commutative54.8%
fma-def57.8%
sub-neg57.8%
+-commutative57.8%
distribute-neg-in57.8%
unsub-neg57.8%
remove-double-neg57.8%
*-commutative57.8%
Simplified59.3%
Taylor expanded in i around inf 62.4%
mul-1-neg62.4%
unsub-neg62.4%
Simplified62.4%
if -5.8e14 < i < -2.1999999999999999e-97Initial program 74.9%
sub-neg74.9%
+-commutative74.9%
associate-+l+74.9%
distribute-rgt-neg-in74.9%
+-commutative74.9%
fma-def74.9%
sub-neg74.9%
+-commutative74.9%
distribute-neg-in74.9%
unsub-neg74.9%
remove-double-neg74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in j around inf 56.1%
mul-1-neg56.1%
sub-neg56.1%
Simplified56.1%
if -2.1999999999999999e-97 < i < -3.69999999999999986e-146Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
associate-+l+100.0%
distribute-rgt-neg-in100.0%
+-commutative100.0%
fma-def100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
unsub-neg100.0%
remove-double-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y around inf 50.7%
*-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
Simplified50.7%
if -3.69999999999999986e-146 < i < 1.6000000000000001e-109Initial program 76.3%
sub-neg76.3%
+-commutative76.3%
associate-+l+76.3%
distribute-rgt-neg-in76.3%
+-commutative76.3%
fma-def77.7%
sub-neg77.7%
+-commutative77.7%
distribute-neg-in77.7%
unsub-neg77.7%
remove-double-neg77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in c around inf 61.0%
distribute-rgt-in56.8%
*-commutative56.8%
mul-1-neg56.8%
cancel-sign-sub-inv56.8%
*-commutative56.8%
distribute-rgt-out--61.0%
Simplified61.0%
if 1.6000000000000001e-109 < i < 0.0080000000000000002Initial program 70.6%
sub-neg70.6%
+-commutative70.6%
associate-+l+70.6%
distribute-rgt-neg-in70.6%
+-commutative70.6%
fma-def75.6%
sub-neg75.6%
+-commutative75.6%
distribute-neg-in75.6%
unsub-neg75.6%
remove-double-neg75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in a around inf 56.1%
+-commutative56.1%
mul-1-neg56.1%
unsub-neg56.1%
Simplified56.1%
Final simplification60.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* t (* x (- a)))))
(if (<= t -4e+98)
t_2
(if (<= t -2.45e+17)
(* b (* t i))
(if (<= t 3.2e-119)
t_1
(if (<= t 8.2e-22)
(* c (* a j))
(if (<= t 5.3e+17) t_1 (if (<= t 7.6e+232) t_2 (* i (* t b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = t * (x * -a);
double tmp;
if (t <= -4e+98) {
tmp = t_2;
} else if (t <= -2.45e+17) {
tmp = b * (t * i);
} else if (t <= 3.2e-119) {
tmp = t_1;
} else if (t <= 8.2e-22) {
tmp = c * (a * j);
} else if (t <= 5.3e+17) {
tmp = t_1;
} else if (t <= 7.6e+232) {
tmp = t_2;
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (y * z)
t_2 = t * (x * -a)
if (t <= (-4d+98)) then
tmp = t_2
else if (t <= (-2.45d+17)) then
tmp = b * (t * i)
else if (t <= 3.2d-119) then
tmp = t_1
else if (t <= 8.2d-22) then
tmp = c * (a * j)
else if (t <= 5.3d+17) then
tmp = t_1
else if (t <= 7.6d+232) then
tmp = t_2
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = t * (x * -a);
double tmp;
if (t <= -4e+98) {
tmp = t_2;
} else if (t <= -2.45e+17) {
tmp = b * (t * i);
} else if (t <= 3.2e-119) {
tmp = t_1;
} else if (t <= 8.2e-22) {
tmp = c * (a * j);
} else if (t <= 5.3e+17) {
tmp = t_1;
} else if (t <= 7.6e+232) {
tmp = t_2;
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = t * (x * -a) tmp = 0 if t <= -4e+98: tmp = t_2 elif t <= -2.45e+17: tmp = b * (t * i) elif t <= 3.2e-119: tmp = t_1 elif t <= 8.2e-22: tmp = c * (a * j) elif t <= 5.3e+17: tmp = t_1 elif t <= 7.6e+232: tmp = t_2 else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(t * Float64(x * Float64(-a))) tmp = 0.0 if (t <= -4e+98) tmp = t_2; elseif (t <= -2.45e+17) tmp = Float64(b * Float64(t * i)); elseif (t <= 3.2e-119) tmp = t_1; elseif (t <= 8.2e-22) tmp = Float64(c * Float64(a * j)); elseif (t <= 5.3e+17) tmp = t_1; elseif (t <= 7.6e+232) tmp = t_2; else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = t * (x * -a); tmp = 0.0; if (t <= -4e+98) tmp = t_2; elseif (t <= -2.45e+17) tmp = b * (t * i); elseif (t <= 3.2e-119) tmp = t_1; elseif (t <= 8.2e-22) tmp = c * (a * j); elseif (t <= 5.3e+17) tmp = t_1; elseif (t <= 7.6e+232) tmp = t_2; else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e+98], t$95$2, If[LessEqual[t, -2.45e+17], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e-119], t$95$1, If[LessEqual[t, 8.2e-22], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.3e+17], t$95$1, If[LessEqual[t, 7.6e+232], t$95$2, N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{if}\;t \leq -4 \cdot 10^{+98}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -2.45 \cdot 10^{+17}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{-119}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-22}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;t \leq 5.3 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{+232}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -3.99999999999999999e98 or 5.3e17 < t < 7.6000000000000002e232Initial program 59.9%
sub-neg59.9%
+-commutative59.9%
associate-+l+59.9%
distribute-rgt-neg-in59.9%
+-commutative59.9%
fma-def59.9%
sub-neg59.9%
+-commutative59.9%
distribute-neg-in59.9%
unsub-neg59.9%
remove-double-neg59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in t around inf 71.1%
Taylor expanded in i around 0 49.3%
mul-1-neg49.3%
*-commutative49.3%
distribute-rgt-neg-in49.3%
Simplified49.3%
if -3.99999999999999999e98 < t < -2.45e17Initial program 79.8%
sub-neg79.8%
+-commutative79.8%
associate-+l+79.8%
distribute-rgt-neg-in79.8%
+-commutative79.8%
fma-def79.8%
sub-neg79.8%
+-commutative79.8%
distribute-neg-in79.8%
unsub-neg79.8%
remove-double-neg79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in b around inf 79.1%
Taylor expanded in i around inf 58.9%
*-commutative58.9%
Simplified58.9%
if -2.45e17 < t < 3.19999999999999993e-119 or 8.1999999999999999e-22 < t < 5.3e17Initial program 69.1%
sub-neg69.1%
+-commutative69.1%
associate-+l+69.1%
distribute-rgt-neg-in69.1%
+-commutative69.1%
fma-def72.9%
sub-neg72.9%
+-commutative72.9%
distribute-neg-in72.9%
unsub-neg72.9%
remove-double-neg72.9%
*-commutative72.9%
Simplified74.8%
Taylor expanded in a around -inf 74.0%
associate-+r+74.0%
+-commutative74.0%
associate-+r+74.0%
Simplified75.9%
Taylor expanded in b around 0 61.6%
Taylor expanded in z around inf 29.8%
associate-*r*33.1%
*-commutative33.1%
Simplified33.1%
if 3.19999999999999993e-119 < t < 8.1999999999999999e-22Initial program 59.2%
sub-neg59.2%
+-commutative59.2%
associate-+l+59.2%
distribute-rgt-neg-in59.2%
+-commutative59.2%
fma-def64.4%
sub-neg64.4%
+-commutative64.4%
distribute-neg-in64.4%
unsub-neg64.4%
remove-double-neg64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in a around inf 54.0%
+-commutative54.0%
mul-1-neg54.0%
unsub-neg54.0%
Simplified54.0%
Taylor expanded in c around inf 36.2%
if 7.6000000000000002e232 < t Initial program 61.0%
sub-neg61.0%
+-commutative61.0%
associate-+l+61.0%
distribute-rgt-neg-in61.0%
+-commutative61.0%
fma-def65.3%
sub-neg65.3%
+-commutative65.3%
distribute-neg-in65.3%
unsub-neg65.3%
remove-double-neg65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in a around -inf 48.6%
associate-+r+48.6%
+-commutative48.6%
associate-+r+48.6%
Simplified48.6%
Taylor expanded in a around 0 57.6%
Taylor expanded in j around 0 53.4%
Taylor expanded in z around 0 53.6%
Final simplification42.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x (- t)))))
(if (<= t -4.2e+98)
t_1
(if (<= t -3.25e+31)
(* b (* t i))
(if (<= t -3.15e-160)
(* y (* i (- j)))
(if (<= t 2.1e-119)
(* x (* y z))
(if (<= t 3.2e-67)
(* c (* a j))
(if (<= t 6.5e+232) t_1 (* i (* t b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * -t);
double tmp;
if (t <= -4.2e+98) {
tmp = t_1;
} else if (t <= -3.25e+31) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = y * (i * -j);
} else if (t <= 2.1e-119) {
tmp = x * (y * z);
} else if (t <= 3.2e-67) {
tmp = c * (a * j);
} else if (t <= 6.5e+232) {
tmp = t_1;
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (x * -t)
if (t <= (-4.2d+98)) then
tmp = t_1
else if (t <= (-3.25d+31)) then
tmp = b * (t * i)
else if (t <= (-3.15d-160)) then
tmp = y * (i * -j)
else if (t <= 2.1d-119) then
tmp = x * (y * z)
else if (t <= 3.2d-67) then
tmp = c * (a * j)
else if (t <= 6.5d+232) then
tmp = t_1
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * -t);
double tmp;
if (t <= -4.2e+98) {
tmp = t_1;
} else if (t <= -3.25e+31) {
tmp = b * (t * i);
} else if (t <= -3.15e-160) {
tmp = y * (i * -j);
} else if (t <= 2.1e-119) {
tmp = x * (y * z);
} else if (t <= 3.2e-67) {
tmp = c * (a * j);
} else if (t <= 6.5e+232) {
tmp = t_1;
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * -t) tmp = 0 if t <= -4.2e+98: tmp = t_1 elif t <= -3.25e+31: tmp = b * (t * i) elif t <= -3.15e-160: tmp = y * (i * -j) elif t <= 2.1e-119: tmp = x * (y * z) elif t <= 3.2e-67: tmp = c * (a * j) elif t <= 6.5e+232: tmp = t_1 else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(x * Float64(-t))) tmp = 0.0 if (t <= -4.2e+98) tmp = t_1; elseif (t <= -3.25e+31) tmp = Float64(b * Float64(t * i)); elseif (t <= -3.15e-160) tmp = Float64(y * Float64(i * Float64(-j))); elseif (t <= 2.1e-119) tmp = Float64(x * Float64(y * z)); elseif (t <= 3.2e-67) tmp = Float64(c * Float64(a * j)); elseif (t <= 6.5e+232) tmp = t_1; else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (x * -t); tmp = 0.0; if (t <= -4.2e+98) tmp = t_1; elseif (t <= -3.25e+31) tmp = b * (t * i); elseif (t <= -3.15e-160) tmp = y * (i * -j); elseif (t <= 2.1e-119) tmp = x * (y * z); elseif (t <= 3.2e-67) tmp = c * (a * j); elseif (t <= 6.5e+232) tmp = t_1; else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.2e+98], t$95$1, If[LessEqual[t, -3.25e+31], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.15e-160], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e-119], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e-67], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e+232], t$95$1, N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{if}\;t \leq -4.2 \cdot 10^{+98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -3.25 \cdot 10^{+31}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq -3.15 \cdot 10^{-160}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{-119}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{-67}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+232}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -4.20000000000000008e98 or 3.20000000000000021e-67 < t < 6.50000000000000016e232Initial program 61.4%
sub-neg61.4%
+-commutative61.4%
associate-+l+61.4%
distribute-rgt-neg-in61.4%
+-commutative61.4%
fma-def61.4%
sub-neg61.4%
+-commutative61.4%
distribute-neg-in61.4%
unsub-neg61.4%
remove-double-neg61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in a around inf 56.0%
+-commutative56.0%
mul-1-neg56.0%
unsub-neg56.0%
Simplified56.0%
Taylor expanded in c around 0 52.7%
associate-*r*52.7%
neg-mul-152.7%
Simplified52.7%
if -4.20000000000000008e98 < t < -3.2500000000000002e31Initial program 85.5%
sub-neg85.5%
+-commutative85.5%
associate-+l+85.5%
distribute-rgt-neg-in85.5%
+-commutative85.5%
fma-def85.5%
sub-neg85.5%
+-commutative85.5%
distribute-neg-in85.5%
unsub-neg85.5%
remove-double-neg85.5%
*-commutative85.5%
Simplified85.5%
Taylor expanded in b around inf 85.7%
Taylor expanded in i around inf 72.5%
*-commutative72.5%
Simplified72.5%
if -3.2500000000000002e31 < t < -3.14999999999999974e-160Initial program 62.8%
sub-neg62.8%
+-commutative62.8%
associate-+l+62.8%
distribute-rgt-neg-in62.8%
+-commutative62.8%
fma-def69.4%
sub-neg69.4%
+-commutative69.4%
distribute-neg-in69.4%
unsub-neg69.4%
remove-double-neg69.4%
*-commutative69.4%
Simplified71.7%
Taylor expanded in a around -inf 71.4%
associate-+r+71.4%
+-commutative71.4%
associate-+r+71.4%
Simplified75.9%
Taylor expanded in a around 0 78.0%
Taylor expanded in j around inf 41.4%
mul-1-neg41.4%
distribute-rgt-neg-in41.4%
distribute-rgt-neg-in41.4%
Simplified41.4%
if -3.14999999999999974e-160 < t < 2.1e-119Initial program 72.9%
sub-neg72.9%
+-commutative72.9%
associate-+l+72.9%
distribute-rgt-neg-in72.9%
+-commutative72.9%
fma-def74.5%
sub-neg74.5%
+-commutative74.5%
distribute-neg-in74.5%
unsub-neg74.5%
remove-double-neg74.5%
*-commutative74.5%
Simplified76.1%
Taylor expanded in a around -inf 76.4%
associate-+r+76.4%
+-commutative76.4%
associate-+r+76.4%
Simplified76.4%
Taylor expanded in b around 0 58.0%
Taylor expanded in z around inf 32.5%
associate-*r*38.1%
*-commutative38.1%
Simplified38.1%
if 2.1e-119 < t < 3.20000000000000021e-67Initial program 51.3%
sub-neg51.3%
+-commutative51.3%
associate-+l+51.3%
distribute-rgt-neg-in51.3%
+-commutative51.3%
fma-def59.7%
sub-neg59.7%
+-commutative59.7%
distribute-neg-in59.7%
unsub-neg59.7%
remove-double-neg59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in a around inf 51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
Simplified51.6%
Taylor expanded in c around inf 47.2%
if 6.50000000000000016e232 < t Initial program 61.0%
sub-neg61.0%
+-commutative61.0%
associate-+l+61.0%
distribute-rgt-neg-in61.0%
+-commutative61.0%
fma-def65.3%
sub-neg65.3%
+-commutative65.3%
distribute-neg-in65.3%
unsub-neg65.3%
remove-double-neg65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in a around -inf 48.6%
associate-+r+48.6%
+-commutative48.6%
associate-+r+48.6%
Simplified48.6%
Taylor expanded in a around 0 57.6%
Taylor expanded in j around 0 53.4%
Taylor expanded in z around 0 53.6%
Final simplification48.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -4.9e-8)
t_1
(if (<= b -1.1e-189)
(* a (- (* c j) (* x t)))
(if (<= b 1.24e-169)
(* j (- (* a c) (* y i)))
(if (<= b 1.15e-35) (* y (- (* x z) (* i j))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.9e-8) {
tmp = t_1;
} else if (b <= -1.1e-189) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 1.24e-169) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 1.15e-35) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-4.9d-8)) then
tmp = t_1
else if (b <= (-1.1d-189)) then
tmp = a * ((c * j) - (x * t))
else if (b <= 1.24d-169) then
tmp = j * ((a * c) - (y * i))
else if (b <= 1.15d-35) then
tmp = y * ((x * z) - (i * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.9e-8) {
tmp = t_1;
} else if (b <= -1.1e-189) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 1.24e-169) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 1.15e-35) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -4.9e-8: tmp = t_1 elif b <= -1.1e-189: tmp = a * ((c * j) - (x * t)) elif b <= 1.24e-169: tmp = j * ((a * c) - (y * i)) elif b <= 1.15e-35: tmp = y * ((x * z) - (i * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.9e-8) tmp = t_1; elseif (b <= -1.1e-189) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 1.24e-169) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 1.15e-35) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -4.9e-8) tmp = t_1; elseif (b <= -1.1e-189) tmp = a * ((c * j) - (x * t)); elseif (b <= 1.24e-169) tmp = j * ((a * c) - (y * i)); elseif (b <= 1.15e-35) tmp = y * ((x * z) - (i * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.9e-8], t$95$1, If[LessEqual[b, -1.1e-189], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.24e-169], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e-35], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.9 \cdot 10^{-8}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{-189}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 1.24 \cdot 10^{-169}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{-35}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -4.9000000000000002e-8 or 1.1499999999999999e-35 < b Initial program 66.5%
sub-neg66.5%
+-commutative66.5%
associate-+l+66.5%
distribute-rgt-neg-in66.5%
+-commutative66.5%
fma-def71.0%
sub-neg71.0%
+-commutative71.0%
distribute-neg-in71.0%
unsub-neg71.0%
remove-double-neg71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in b around inf 65.6%
if -4.9000000000000002e-8 < b < -1.1000000000000001e-189Initial program 61.6%
sub-neg61.6%
+-commutative61.6%
associate-+l+61.6%
distribute-rgt-neg-in61.6%
+-commutative61.6%
fma-def61.6%
sub-neg61.6%
+-commutative61.6%
distribute-neg-in61.6%
unsub-neg61.6%
remove-double-neg61.6%
*-commutative61.6%
Simplified64.4%
Taylor expanded in a around inf 49.7%
+-commutative49.7%
mul-1-neg49.7%
unsub-neg49.7%
Simplified49.7%
if -1.1000000000000001e-189 < b < 1.23999999999999994e-169Initial program 58.8%
sub-neg58.8%
+-commutative58.8%
associate-+l+58.8%
distribute-rgt-neg-in58.8%
+-commutative58.8%
fma-def58.8%
sub-neg58.8%
+-commutative58.8%
distribute-neg-in58.8%
unsub-neg58.8%
remove-double-neg58.8%
*-commutative58.8%
Simplified60.5%
Taylor expanded in j around inf 56.8%
mul-1-neg56.8%
sub-neg56.8%
Simplified56.8%
if 1.23999999999999994e-169 < b < 1.1499999999999999e-35Initial program 75.8%
sub-neg75.8%
+-commutative75.8%
associate-+l+75.8%
distribute-rgt-neg-in75.8%
+-commutative75.8%
fma-def75.8%
sub-neg75.8%
+-commutative75.8%
distribute-neg-in75.8%
unsub-neg75.8%
remove-double-neg75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in y around inf 50.9%
*-commutative50.9%
mul-1-neg50.9%
unsub-neg50.9%
Simplified50.9%
Final simplification59.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -4.2e-38)
t_1
(if (<= i 3.7e-109)
(* c (- (* a j) (* z b)))
(if (<= i 4.2e-9) (* a (- (* c j) (* x t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.2e-38) {
tmp = t_1;
} else if (i <= 3.7e-109) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 4.2e-9) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-4.2d-38)) then
tmp = t_1
else if (i <= 3.7d-109) then
tmp = c * ((a * j) - (z * b))
else if (i <= 4.2d-9) then
tmp = a * ((c * j) - (x * t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.2e-38) {
tmp = t_1;
} else if (i <= 3.7e-109) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 4.2e-9) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -4.2e-38: tmp = t_1 elif i <= 3.7e-109: tmp = c * ((a * j) - (z * b)) elif i <= 4.2e-9: tmp = a * ((c * j) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -4.2e-38) tmp = t_1; elseif (i <= 3.7e-109) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 4.2e-9) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -4.2e-38) tmp = t_1; elseif (i <= 3.7e-109) tmp = c * ((a * j) - (z * b)); elseif (i <= 4.2e-9) tmp = a * ((c * j) - (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.2e-38], t$95$1, If[LessEqual[i, 3.7e-109], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.2e-9], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -4.2 \cdot 10^{-38}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 3.7 \cdot 10^{-109}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{-9}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -4.20000000000000026e-38 or 4.20000000000000039e-9 < i Initial program 55.9%
sub-neg55.9%
+-commutative55.9%
associate-+l+55.9%
distribute-rgt-neg-in55.9%
+-commutative55.9%
fma-def58.6%
sub-neg58.6%
+-commutative58.6%
distribute-neg-in58.6%
unsub-neg58.6%
remove-double-neg58.6%
*-commutative58.6%
Simplified59.9%
Taylor expanded in i around inf 60.1%
mul-1-neg60.1%
unsub-neg60.1%
Simplified60.1%
if -4.20000000000000026e-38 < i < 3.69999999999999981e-109Initial program 79.7%
sub-neg79.7%
+-commutative79.7%
associate-+l+79.7%
distribute-rgt-neg-in79.7%
+-commutative79.7%
fma-def80.9%
sub-neg80.9%
+-commutative80.9%
distribute-neg-in80.9%
unsub-neg80.9%
remove-double-neg80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in c around inf 57.4%
distribute-rgt-in54.1%
*-commutative54.1%
mul-1-neg54.1%
cancel-sign-sub-inv54.1%
*-commutative54.1%
distribute-rgt-out--57.4%
Simplified57.4%
if 3.69999999999999981e-109 < i < 4.20000000000000039e-9Initial program 70.6%
sub-neg70.6%
+-commutative70.6%
associate-+l+70.6%
distribute-rgt-neg-in70.6%
+-commutative70.6%
fma-def75.6%
sub-neg75.6%
+-commutative75.6%
distribute-neg-in75.6%
unsub-neg75.6%
remove-double-neg75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in a around inf 56.1%
+-commutative56.1%
mul-1-neg56.1%
unsub-neg56.1%
Simplified56.1%
Final simplification58.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* i (* t b))))
(if (<= t -8e+21)
t_2
(if (<= t 4.1e-119)
t_1
(if (<= t 1.7e-18) (* c (* a j)) (if (<= t 4.95e+30) 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);
double t_2 = i * (t * b);
double tmp;
if (t <= -8e+21) {
tmp = t_2;
} else if (t <= 4.1e-119) {
tmp = t_1;
} else if (t <= 1.7e-18) {
tmp = c * (a * j);
} else if (t <= 4.95e+30) {
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_2 = i * (t * b)
if (t <= (-8d+21)) then
tmp = t_2
else if (t <= 4.1d-119) then
tmp = t_1
else if (t <= 1.7d-18) then
tmp = c * (a * j)
else if (t <= 4.95d+30) 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);
double t_2 = i * (t * b);
double tmp;
if (t <= -8e+21) {
tmp = t_2;
} else if (t <= 4.1e-119) {
tmp = t_1;
} else if (t <= 1.7e-18) {
tmp = c * (a * j);
} else if (t <= 4.95e+30) {
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_2 = i * (t * b) tmp = 0 if t <= -8e+21: tmp = t_2 elif t <= 4.1e-119: tmp = t_1 elif t <= 1.7e-18: tmp = c * (a * j) elif t <= 4.95e+30: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(i * Float64(t * b)) tmp = 0.0 if (t <= -8e+21) tmp = t_2; elseif (t <= 4.1e-119) tmp = t_1; elseif (t <= 1.7e-18) tmp = Float64(c * Float64(a * j)); elseif (t <= 4.95e+30) 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_2 = i * (t * b); tmp = 0.0; if (t <= -8e+21) tmp = t_2; elseif (t <= 4.1e-119) tmp = t_1; elseif (t <= 1.7e-18) tmp = c * (a * j); elseif (t <= 4.95e+30) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8e+21], t$95$2, If[LessEqual[t, 4.1e-119], t$95$1, If[LessEqual[t, 1.7e-18], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.95e+30], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;t \leq -8 \cdot 10^{+21}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 4.1 \cdot 10^{-119}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-18}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;t \leq 4.95 \cdot 10^{+30}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -8e21 or 4.9500000000000001e30 < t Initial program 62.1%
sub-neg62.1%
+-commutative62.1%
associate-+l+62.1%
distribute-rgt-neg-in62.1%
+-commutative62.1%
fma-def62.9%
sub-neg62.9%
+-commutative62.9%
distribute-neg-in62.9%
unsub-neg62.9%
remove-double-neg62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in a around -inf 60.5%
associate-+r+60.5%
+-commutative60.5%
associate-+r+60.5%
Simplified60.5%
Taylor expanded in a around 0 50.8%
Taylor expanded in j around 0 51.7%
Taylor expanded in z around 0 40.6%
if -8e21 < t < 4.1000000000000002e-119 or 1.70000000000000001e-18 < t < 4.9500000000000001e30Initial program 69.9%
sub-neg69.9%
+-commutative69.9%
associate-+l+69.9%
distribute-rgt-neg-in69.9%
+-commutative69.9%
fma-def73.6%
sub-neg73.6%
+-commutative73.6%
distribute-neg-in73.6%
unsub-neg73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified75.4%
Taylor expanded in a around -inf 74.7%
associate-+r+74.7%
+-commutative74.7%
associate-+r+74.7%
Simplified76.5%
Taylor expanded in b around 0 61.7%
Taylor expanded in z around inf 30.0%
associate-*r*33.1%
*-commutative33.1%
Simplified33.1%
if 4.1000000000000002e-119 < t < 1.70000000000000001e-18Initial program 59.2%
sub-neg59.2%
+-commutative59.2%
associate-+l+59.2%
distribute-rgt-neg-in59.2%
+-commutative59.2%
fma-def64.4%
sub-neg64.4%
+-commutative64.4%
distribute-neg-in64.4%
unsub-neg64.4%
remove-double-neg64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in a around inf 54.0%
+-commutative54.0%
mul-1-neg54.0%
unsub-neg54.0%
Simplified54.0%
Taylor expanded in c around inf 36.2%
Final simplification37.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= t -2.95e+20)
(* i (* t b))
(if (<= t 1.8e-120)
t_1
(if (<= t 7e-30)
(* c (* a j))
(if (<= t 5.4e+32) t_1 (* b (* t i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (t <= -2.95e+20) {
tmp = i * (t * b);
} else if (t <= 1.8e-120) {
tmp = t_1;
} else if (t <= 7e-30) {
tmp = c * (a * j);
} else if (t <= 5.4e+32) {
tmp = t_1;
} else {
tmp = b * (t * 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 = x * (y * z)
if (t <= (-2.95d+20)) then
tmp = i * (t * b)
else if (t <= 1.8d-120) then
tmp = t_1
else if (t <= 7d-30) then
tmp = c * (a * j)
else if (t <= 5.4d+32) then
tmp = t_1
else
tmp = b * (t * 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 = x * (y * z);
double tmp;
if (t <= -2.95e+20) {
tmp = i * (t * b);
} else if (t <= 1.8e-120) {
tmp = t_1;
} else if (t <= 7e-30) {
tmp = c * (a * j);
} else if (t <= 5.4e+32) {
tmp = t_1;
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if t <= -2.95e+20: tmp = i * (t * b) elif t <= 1.8e-120: tmp = t_1 elif t <= 7e-30: tmp = c * (a * j) elif t <= 5.4e+32: tmp = t_1 else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (t <= -2.95e+20) tmp = Float64(i * Float64(t * b)); elseif (t <= 1.8e-120) tmp = t_1; elseif (t <= 7e-30) tmp = Float64(c * Float64(a * j)); elseif (t <= 5.4e+32) tmp = t_1; else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (t <= -2.95e+20) tmp = i * (t * b); elseif (t <= 1.8e-120) tmp = t_1; elseif (t <= 7e-30) tmp = c * (a * j); elseif (t <= 5.4e+32) tmp = t_1; else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.95e+20], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e-120], t$95$1, If[LessEqual[t, 7e-30], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.4e+32], t$95$1, N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;t \leq -2.95 \cdot 10^{+20}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-30}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;t \leq 5.4 \cdot 10^{+32}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -2.95e20Initial program 62.1%
sub-neg62.1%
+-commutative62.1%
associate-+l+62.1%
distribute-rgt-neg-in62.1%
+-commutative62.1%
fma-def62.1%
sub-neg62.1%
+-commutative62.1%
distribute-neg-in62.1%
unsub-neg62.1%
remove-double-neg62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in a around -inf 60.4%
associate-+r+60.4%
+-commutative60.4%
associate-+r+60.4%
Simplified60.4%
Taylor expanded in a around 0 50.1%
Taylor expanded in j around 0 53.3%
Taylor expanded in z around 0 42.9%
if -2.95e20 < t < 1.8000000000000001e-120 or 7.0000000000000006e-30 < t < 5.40000000000000025e32Initial program 69.9%
sub-neg69.9%
+-commutative69.9%
associate-+l+69.9%
distribute-rgt-neg-in69.9%
+-commutative69.9%
fma-def73.6%
sub-neg73.6%
+-commutative73.6%
distribute-neg-in73.6%
unsub-neg73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified75.4%
Taylor expanded in a around -inf 74.7%
associate-+r+74.7%
+-commutative74.7%
associate-+r+74.7%
Simplified76.5%
Taylor expanded in b around 0 61.7%
Taylor expanded in z around inf 30.0%
associate-*r*33.1%
*-commutative33.1%
Simplified33.1%
if 1.8000000000000001e-120 < t < 7.0000000000000006e-30Initial program 59.2%
sub-neg59.2%
+-commutative59.2%
associate-+l+59.2%
distribute-rgt-neg-in59.2%
+-commutative59.2%
fma-def64.4%
sub-neg64.4%
+-commutative64.4%
distribute-neg-in64.4%
unsub-neg64.4%
remove-double-neg64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in a around inf 54.0%
+-commutative54.0%
mul-1-neg54.0%
unsub-neg54.0%
Simplified54.0%
Taylor expanded in c around inf 36.2%
if 5.40000000000000025e32 < t Initial program 62.1%
sub-neg62.1%
+-commutative62.1%
associate-+l+62.1%
distribute-rgt-neg-in62.1%
+-commutative62.1%
fma-def63.7%
sub-neg63.7%
+-commutative63.7%
distribute-neg-in63.7%
unsub-neg63.7%
remove-double-neg63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in b around inf 50.3%
Taylor expanded in i around inf 39.8%
*-commutative39.8%
Simplified39.8%
Final simplification37.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -9.5e-36) (not (<= i 1.62e-84))) (* i (* t b)) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -9.5e-36) || !(i <= 1.62e-84)) {
tmp = i * (t * b);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-9.5d-36)) .or. (.not. (i <= 1.62d-84))) then
tmp = i * (t * b)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -9.5e-36) || !(i <= 1.62e-84)) {
tmp = i * (t * b);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -9.5e-36) or not (i <= 1.62e-84): tmp = i * (t * b) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -9.5e-36) || !(i <= 1.62e-84)) tmp = Float64(i * Float64(t * b)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -9.5e-36) || ~((i <= 1.62e-84))) tmp = i * (t * b); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -9.5e-36], N[Not[LessEqual[i, 1.62e-84]], $MachinePrecision]], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -9.5 \cdot 10^{-36} \lor \neg \left(i \leq 1.62 \cdot 10^{-84}\right):\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if i < -9.5000000000000003e-36 or 1.62000000000000008e-84 < i Initial program 58.7%
sub-neg58.7%
+-commutative58.7%
associate-+l+58.7%
distribute-rgt-neg-in58.7%
+-commutative58.7%
fma-def61.2%
sub-neg61.2%
+-commutative61.2%
distribute-neg-in61.2%
unsub-neg61.2%
remove-double-neg61.2%
*-commutative61.2%
Simplified62.4%
Taylor expanded in a around -inf 61.4%
associate-+r+61.4%
+-commutative61.4%
associate-+r+61.4%
Simplified62.7%
Taylor expanded in a around 0 60.8%
Taylor expanded in j around 0 50.4%
Taylor expanded in z around 0 33.5%
if -9.5000000000000003e-36 < i < 1.62000000000000008e-84Initial program 76.6%
sub-neg76.6%
+-commutative76.6%
associate-+l+76.6%
distribute-rgt-neg-in76.6%
+-commutative76.6%
fma-def78.8%
sub-neg78.8%
+-commutative78.8%
distribute-neg-in78.8%
unsub-neg78.8%
remove-double-neg78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in a around inf 42.2%
+-commutative42.2%
mul-1-neg42.2%
unsub-neg42.2%
Simplified42.2%
Taylor expanded in c around inf 25.3%
Final simplification30.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -7.4e-34) (* t (* b i)) (if (<= i 2.5e-84) (* c (* a j)) (* i (* t b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -7.4e-34) {
tmp = t * (b * i);
} else if (i <= 2.5e-84) {
tmp = c * (a * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-7.4d-34)) then
tmp = t * (b * i)
else if (i <= 2.5d-84) then
tmp = c * (a * j)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -7.4e-34) {
tmp = t * (b * i);
} else if (i <= 2.5e-84) {
tmp = c * (a * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -7.4e-34: tmp = t * (b * i) elif i <= 2.5e-84: tmp = c * (a * j) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -7.4e-34) tmp = Float64(t * Float64(b * i)); elseif (i <= 2.5e-84) tmp = Float64(c * Float64(a * j)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -7.4e-34) tmp = t * (b * i); elseif (i <= 2.5e-84) tmp = c * (a * j); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -7.4e-34], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.5e-84], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -7.4 \cdot 10^{-34}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{-84}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if i < -7.39999999999999976e-34Initial program 61.6%
sub-neg61.6%
+-commutative61.6%
associate-+l+61.6%
distribute-rgt-neg-in61.6%
+-commutative61.6%
fma-def65.8%
sub-neg65.8%
+-commutative65.8%
distribute-neg-in65.8%
unsub-neg65.8%
remove-double-neg65.8%
*-commutative65.8%
Simplified67.2%
Taylor expanded in t around inf 51.5%
Taylor expanded in i around inf 32.7%
if -7.39999999999999976e-34 < i < 2.5000000000000001e-84Initial program 76.6%
sub-neg76.6%
+-commutative76.6%
associate-+l+76.6%
distribute-rgt-neg-in76.6%
+-commutative76.6%
fma-def78.8%
sub-neg78.8%
+-commutative78.8%
distribute-neg-in78.8%
unsub-neg78.8%
remove-double-neg78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in a around inf 42.2%
+-commutative42.2%
mul-1-neg42.2%
unsub-neg42.2%
Simplified42.2%
Taylor expanded in c around inf 25.3%
if 2.5000000000000001e-84 < i Initial program 56.5%
sub-neg56.5%
+-commutative56.5%
associate-+l+56.5%
distribute-rgt-neg-in56.5%
+-commutative56.5%
fma-def57.6%
sub-neg57.6%
+-commutative57.6%
distribute-neg-in57.6%
unsub-neg57.6%
remove-double-neg57.6%
*-commutative57.6%
Simplified58.7%
Taylor expanded in a around -inf 56.2%
associate-+r+56.2%
+-commutative56.2%
associate-+r+56.2%
Simplified57.3%
Taylor expanded in a around 0 57.3%
Taylor expanded in j around 0 51.2%
Taylor expanded in z around 0 35.3%
Final simplification30.9%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 65.2%
sub-neg65.2%
+-commutative65.2%
associate-+l+65.2%
distribute-rgt-neg-in65.2%
+-commutative65.2%
fma-def67.6%
sub-neg67.6%
+-commutative67.6%
distribute-neg-in67.6%
unsub-neg67.6%
remove-double-neg67.6%
*-commutative67.6%
Simplified68.4%
Taylor expanded in a around inf 36.0%
+-commutative36.0%
mul-1-neg36.0%
unsub-neg36.0%
Simplified36.0%
Taylor expanded in c around inf 14.6%
Final simplification14.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023185
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))