
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t c) (* y i))))
(if (<=
(- (* j t_1) (+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))
INFINITY)
(fma x (- (* y z) (* t a)) (fma j t_1 (* b (- (* a i) (* z c)))))
(* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * c) - (y * i);
double tmp;
if (((j * t_1) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))))) <= ((double) INFINITY)) {
tmp = fma(x, ((y * z) - (t * a)), fma(j, t_1, (b * ((a * i) - (z * c)))));
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(j * t_1) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) <= Inf) tmp = fma(x, Float64(Float64(y * z) - Float64(t * a)), fma(j, t_1, Float64(b * Float64(Float64(a * i) - Float64(z * c))))); else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(j * t$95$1), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot c - y \cdot i\\
\mathbf{if}\;j \cdot t_1 - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(j, t_1, b \cdot \left(a \cdot i - z \cdot c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 93.5%
sub-neg93.5%
associate-+l+93.5%
fma-def93.5%
+-commutative93.5%
fma-def93.5%
*-commutative93.5%
*-commutative93.5%
distribute-rgt-neg-in93.5%
sub-neg93.5%
+-commutative93.5%
distribute-neg-in93.5%
unsub-neg93.5%
remove-double-neg93.5%
*-commutative93.5%
*-commutative93.5%
Simplified93.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in y around -inf 42.1%
mul-1-neg42.1%
*-commutative42.1%
distribute-rgt-neg-in42.1%
mul-1-neg42.1%
unsub-neg42.1%
Simplified42.1%
Final simplification77.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* t c) (* y i)))
(+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 93.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in y around -inf 42.1%
mul-1-neg42.1%
*-commutative42.1%
distribute-rgt-neg-in42.1%
mul-1-neg42.1%
unsub-neg42.1%
Simplified42.1%
Final simplification77.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c)))))
(t_2 (- (+ (* y (* x z)) (* j (- (* t c) (* y i)))) (* c (* z b)))))
(if (<= j -0.00058)
t_2
(if (<= j 1.15e-60)
t_1
(if (<= j 44000.0)
(* t (- (* c j) (* x a)))
(if (<= j 4.7e+76) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
double t_2 = ((y * (x * z)) + (j * ((t * c) - (y * i)))) - (c * (z * b));
double tmp;
if (j <= -0.00058) {
tmp = t_2;
} else if (j <= 1.15e-60) {
tmp = t_1;
} else if (j <= 44000.0) {
tmp = t * ((c * j) - (x * a));
} else if (j <= 4.7e+76) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))
t_2 = ((y * (x * z)) + (j * ((t * c) - (y * i)))) - (c * (z * b))
if (j <= (-0.00058d0)) then
tmp = t_2
else if (j <= 1.15d-60) then
tmp = t_1
else if (j <= 44000.0d0) then
tmp = t * ((c * j) - (x * a))
else if (j <= 4.7d+76) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
double t_2 = ((y * (x * z)) + (j * ((t * c) - (y * i)))) - (c * (z * b));
double tmp;
if (j <= -0.00058) {
tmp = t_2;
} else if (j <= 1.15e-60) {
tmp = t_1;
} else if (j <= 44000.0) {
tmp = t * ((c * j) - (x * a));
} else if (j <= 4.7e+76) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) t_2 = ((y * (x * z)) + (j * ((t * c) - (y * i)))) - (c * (z * b)) tmp = 0 if j <= -0.00058: tmp = t_2 elif j <= 1.15e-60: tmp = t_1 elif j <= 44000.0: tmp = t * ((c * j) - (x * a)) elif j <= 4.7e+76: tmp = t_1 else: tmp = t_2 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(a * i) - Float64(z * c)))) t_2 = Float64(Float64(Float64(y * Float64(x * z)) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) - Float64(c * Float64(z * b))) tmp = 0.0 if (j <= -0.00058) tmp = t_2; elseif (j <= 1.15e-60) tmp = t_1; elseif (j <= 44000.0) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (j <= 4.7e+76) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); t_2 = ((y * (x * z)) + (j * ((t * c) - (y * i)))) - (c * (z * b)); tmp = 0.0; if (j <= -0.00058) tmp = t_2; elseif (j <= 1.15e-60) tmp = t_1; elseif (j <= 44000.0) tmp = t * ((c * j) - (x * a)); elseif (j <= 4.7e+76) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -0.00058], t$95$2, If[LessEqual[j, 1.15e-60], t$95$1, If[LessEqual[j, 44000.0], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.7e+76], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := \left(y \cdot \left(x \cdot z\right) + j \cdot \left(t \cdot c - y \cdot i\right)\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{if}\;j \leq -0.00058:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{-60}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 44000:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;j \leq 4.7 \cdot 10^{+76}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -5.8e-4 or 4.7000000000000003e76 < j Initial program 57.7%
cancel-sign-sub57.7%
cancel-sign-sub-inv57.7%
*-commutative57.7%
*-commutative57.7%
remove-double-neg57.7%
*-commutative57.7%
*-commutative57.7%
Simplified57.7%
Taylor expanded in a around 0 71.5%
if -5.8e-4 < j < 1.1500000000000001e-60 or 44000 < j < 4.7000000000000003e76Initial program 70.2%
+-commutative70.2%
fma-def71.7%
*-commutative71.7%
*-commutative71.7%
*-commutative71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in j around 0 74.6%
if 1.1500000000000001e-60 < j < 44000Initial program 63.4%
cancel-sign-sub63.4%
cancel-sign-sub-inv63.4%
*-commutative63.4%
*-commutative63.4%
remove-double-neg63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in t around inf 89.5%
*-commutative89.5%
mul-1-neg89.5%
unsub-neg89.5%
Simplified89.5%
Final simplification74.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* y (* x z)) (* j (- (* t c) (* y i)))))
(t_2 (+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))))
(if (<= j -5e+44)
t_1
(if (<= j 2.2e-61)
t_2
(if (<= j 85000.0)
(* t (- (* c j) (* x a)))
(if (<= j 4.2e+76) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * (x * z)) + (j * ((t * c) - (y * i)));
double t_2 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
double tmp;
if (j <= -5e+44) {
tmp = t_1;
} else if (j <= 2.2e-61) {
tmp = t_2;
} else if (j <= 85000.0) {
tmp = t * ((c * j) - (x * a));
} else if (j <= 4.2e+76) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * (x * z)) + (j * ((t * c) - (y * i)))
t_2 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))
if (j <= (-5d+44)) then
tmp = t_1
else if (j <= 2.2d-61) then
tmp = t_2
else if (j <= 85000.0d0) then
tmp = t * ((c * j) - (x * a))
else if (j <= 4.2d+76) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * (x * z)) + (j * ((t * c) - (y * i)));
double t_2 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
double tmp;
if (j <= -5e+44) {
tmp = t_1;
} else if (j <= 2.2e-61) {
tmp = t_2;
} else if (j <= 85000.0) {
tmp = t * ((c * j) - (x * a));
} else if (j <= 4.2e+76) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * (x * z)) + (j * ((t * c) - (y * i))) t_2 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) tmp = 0 if j <= -5e+44: tmp = t_1 elif j <= 2.2e-61: tmp = t_2 elif j <= 85000.0: tmp = t * ((c * j) - (x * a)) elif j <= 4.2e+76: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(x * z)) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) t_2 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (j <= -5e+44) tmp = t_1; elseif (j <= 2.2e-61) tmp = t_2; elseif (j <= 85000.0) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (j <= 4.2e+76) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * (x * z)) + (j * ((t * c) - (y * i))); t_2 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); tmp = 0.0; if (j <= -5e+44) tmp = t_1; elseif (j <= 2.2e-61) tmp = t_2; elseif (j <= 85000.0) tmp = t * ((c * j) - (x * a)); elseif (j <= 4.2e+76) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5e+44], t$95$1, If[LessEqual[j, 2.2e-61], t$95$2, If[LessEqual[j, 85000.0], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.2e+76], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -5 \cdot 10^{+44}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 2.2 \cdot 10^{-61}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 85000:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;j \leq 4.2 \cdot 10^{+76}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -4.9999999999999996e44 or 4.20000000000000013e76 < j Initial program 55.0%
cancel-sign-sub55.0%
cancel-sign-sub-inv55.0%
*-commutative55.0%
*-commutative55.0%
remove-double-neg55.0%
*-commutative55.0%
*-commutative55.0%
Simplified55.0%
Taylor expanded in a around 0 70.1%
Taylor expanded in b around 0 65.5%
if -4.9999999999999996e44 < j < 2.20000000000000009e-61 or 85000 < j < 4.20000000000000013e76Initial program 71.1%
+-commutative71.1%
fma-def72.5%
*-commutative72.5%
*-commutative72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in j around 0 75.3%
if 2.20000000000000009e-61 < j < 85000Initial program 63.4%
cancel-sign-sub63.4%
cancel-sign-sub-inv63.4%
*-commutative63.4%
*-commutative63.4%
remove-double-neg63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in t around inf 89.5%
*-commutative89.5%
mul-1-neg89.5%
unsub-neg89.5%
Simplified89.5%
Final simplification73.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z)))
(t_2 (* b (* a i)))
(t_3 (* c (* z (- b))))
(t_4 (* (* x t) (- a))))
(if (<= t -9.2e+55)
t_4
(if (<= t -5.1e+32)
t_2
(if (<= t -1.5e-121)
t_3
(if (<= t -1.45e-195)
t_1
(if (<= t -9.6e-270)
(* a (* b i))
(if (<= t 1.56e-307)
t_1
(if (<= t 1.18e-243)
t_2
(if (<= t 2.75e+26)
t_3
(if (<= t 6.8e+232) t_4 (* t (* c j)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = b * (a * i);
double t_3 = c * (z * -b);
double t_4 = (x * t) * -a;
double tmp;
if (t <= -9.2e+55) {
tmp = t_4;
} else if (t <= -5.1e+32) {
tmp = t_2;
} else if (t <= -1.5e-121) {
tmp = t_3;
} else if (t <= -1.45e-195) {
tmp = t_1;
} else if (t <= -9.6e-270) {
tmp = a * (b * i);
} else if (t <= 1.56e-307) {
tmp = t_1;
} else if (t <= 1.18e-243) {
tmp = t_2;
} else if (t <= 2.75e+26) {
tmp = t_3;
} else if (t <= 6.8e+232) {
tmp = t_4;
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = x * (y * z)
t_2 = b * (a * i)
t_3 = c * (z * -b)
t_4 = (x * t) * -a
if (t <= (-9.2d+55)) then
tmp = t_4
else if (t <= (-5.1d+32)) then
tmp = t_2
else if (t <= (-1.5d-121)) then
tmp = t_3
else if (t <= (-1.45d-195)) then
tmp = t_1
else if (t <= (-9.6d-270)) then
tmp = a * (b * i)
else if (t <= 1.56d-307) then
tmp = t_1
else if (t <= 1.18d-243) then
tmp = t_2
else if (t <= 2.75d+26) then
tmp = t_3
else if (t <= 6.8d+232) then
tmp = t_4
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = b * (a * i);
double t_3 = c * (z * -b);
double t_4 = (x * t) * -a;
double tmp;
if (t <= -9.2e+55) {
tmp = t_4;
} else if (t <= -5.1e+32) {
tmp = t_2;
} else if (t <= -1.5e-121) {
tmp = t_3;
} else if (t <= -1.45e-195) {
tmp = t_1;
} else if (t <= -9.6e-270) {
tmp = a * (b * i);
} else if (t <= 1.56e-307) {
tmp = t_1;
} else if (t <= 1.18e-243) {
tmp = t_2;
} else if (t <= 2.75e+26) {
tmp = t_3;
} else if (t <= 6.8e+232) {
tmp = t_4;
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = b * (a * i) t_3 = c * (z * -b) t_4 = (x * t) * -a tmp = 0 if t <= -9.2e+55: tmp = t_4 elif t <= -5.1e+32: tmp = t_2 elif t <= -1.5e-121: tmp = t_3 elif t <= -1.45e-195: tmp = t_1 elif t <= -9.6e-270: tmp = a * (b * i) elif t <= 1.56e-307: tmp = t_1 elif t <= 1.18e-243: tmp = t_2 elif t <= 2.75e+26: tmp = t_3 elif t <= 6.8e+232: tmp = t_4 else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(b * Float64(a * i)) t_3 = Float64(c * Float64(z * Float64(-b))) t_4 = Float64(Float64(x * t) * Float64(-a)) tmp = 0.0 if (t <= -9.2e+55) tmp = t_4; elseif (t <= -5.1e+32) tmp = t_2; elseif (t <= -1.5e-121) tmp = t_3; elseif (t <= -1.45e-195) tmp = t_1; elseif (t <= -9.6e-270) tmp = Float64(a * Float64(b * i)); elseif (t <= 1.56e-307) tmp = t_1; elseif (t <= 1.18e-243) tmp = t_2; elseif (t <= 2.75e+26) tmp = t_3; elseif (t <= 6.8e+232) tmp = t_4; else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = b * (a * i); t_3 = c * (z * -b); t_4 = (x * t) * -a; tmp = 0.0; if (t <= -9.2e+55) tmp = t_4; elseif (t <= -5.1e+32) tmp = t_2; elseif (t <= -1.5e-121) tmp = t_3; elseif (t <= -1.45e-195) tmp = t_1; elseif (t <= -9.6e-270) tmp = a * (b * i); elseif (t <= 1.56e-307) tmp = t_1; elseif (t <= 1.18e-243) tmp = t_2; elseif (t <= 2.75e+26) tmp = t_3; elseif (t <= 6.8e+232) tmp = t_4; else tmp = t * (c * j); 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[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision]}, If[LessEqual[t, -9.2e+55], t$95$4, If[LessEqual[t, -5.1e+32], t$95$2, If[LessEqual[t, -1.5e-121], t$95$3, If[LessEqual[t, -1.45e-195], t$95$1, If[LessEqual[t, -9.6e-270], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.56e-307], t$95$1, If[LessEqual[t, 1.18e-243], t$95$2, If[LessEqual[t, 2.75e+26], t$95$3, If[LessEqual[t, 6.8e+232], t$95$4, N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := b \cdot \left(a \cdot i\right)\\
t_3 := c \cdot \left(z \cdot \left(-b\right)\right)\\
t_4 := \left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{if}\;t \leq -9.2 \cdot 10^{+55}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;t \leq -5.1 \cdot 10^{+32}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.5 \cdot 10^{-121}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{-195}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -9.6 \cdot 10^{-270}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq 1.56 \cdot 10^{-307}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.18 \cdot 10^{-243}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.75 \cdot 10^{+26}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{+232}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -9.1999999999999995e55 or 2.7499999999999998e26 < t < 6.7999999999999996e232Initial program 56.9%
cancel-sign-sub56.9%
cancel-sign-sub-inv56.9%
*-commutative56.9%
*-commutative56.9%
remove-double-neg56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in a around inf 58.2%
sub-neg58.2%
mul-1-neg58.2%
remove-double-neg58.2%
+-commutative58.2%
mul-1-neg58.2%
unsub-neg58.2%
Simplified58.2%
Taylor expanded in i around 0 53.1%
neg-mul-153.1%
distribute-rgt-neg-in53.1%
Simplified53.1%
if -9.1999999999999995e55 < t < -5.10000000000000004e32 or 1.56e-307 < t < 1.1800000000000001e-243Initial program 71.4%
cancel-sign-sub71.4%
cancel-sign-sub-inv71.4%
*-commutative71.4%
*-commutative71.4%
remove-double-neg71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in b around inf 72.0%
Taylor expanded in a around inf 62.8%
if -5.10000000000000004e32 < t < -1.5e-121 or 1.1800000000000001e-243 < t < 2.7499999999999998e26Initial program 67.5%
+-commutative67.5%
fma-def71.1%
*-commutative71.1%
*-commutative71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in j around 0 55.1%
Taylor expanded in c around inf 33.4%
mul-1-neg33.4%
*-commutative33.4%
distribute-rgt-neg-in33.4%
*-commutative33.4%
Simplified33.4%
if -1.5e-121 < t < -1.4500000000000001e-195 or -9.60000000000000007e-270 < t < 1.56e-307Initial program 86.5%
+-commutative86.5%
fma-def91.0%
*-commutative91.0%
*-commutative91.0%
*-commutative91.0%
*-commutative91.0%
Simplified91.0%
Taylor expanded in j around 0 77.6%
Taylor expanded in x around inf 59.0%
Taylor expanded in y around inf 58.9%
if -1.4500000000000001e-195 < t < -9.60000000000000007e-270Initial program 76.6%
+-commutative76.6%
fma-def84.3%
*-commutative84.3%
*-commutative84.3%
*-commutative84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in j around 0 77.0%
Taylor expanded in i around inf 69.7%
if 6.7999999999999996e232 < t Initial program 57.1%
cancel-sign-sub57.1%
cancel-sign-sub-inv57.1%
*-commutative57.1%
*-commutative57.1%
remove-double-neg57.1%
*-commutative57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in t around inf 74.0%
*-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
Simplified74.0%
Taylor expanded in c around inf 61.4%
*-commutative61.4%
associate-*l*65.4%
*-commutative65.4%
Simplified65.4%
Final simplification50.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* b (* a i))) (t_3 (* (* x t) (- a))))
(if (<= t -1.2e+56)
t_3
(if (<= t -4.6e-25)
t_2
(if (<= t -8.9e-122)
(* (- i) (* y j))
(if (<= t -1.12e-195)
t_1
(if (<= t -5.8e-273)
(* a (* b i))
(if (<= t -1.8e-306)
t_1
(if (<= t 7.2e-246)
t_2
(if (<= t 2.2e+27)
(* c (* z (- b)))
(if (<= t 7e+232) t_3 (* t (* c j)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = b * (a * i);
double t_3 = (x * t) * -a;
double tmp;
if (t <= -1.2e+56) {
tmp = t_3;
} else if (t <= -4.6e-25) {
tmp = t_2;
} else if (t <= -8.9e-122) {
tmp = -i * (y * j);
} else if (t <= -1.12e-195) {
tmp = t_1;
} else if (t <= -5.8e-273) {
tmp = a * (b * i);
} else if (t <= -1.8e-306) {
tmp = t_1;
} else if (t <= 7.2e-246) {
tmp = t_2;
} else if (t <= 2.2e+27) {
tmp = c * (z * -b);
} else if (t <= 7e+232) {
tmp = t_3;
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * (y * z)
t_2 = b * (a * i)
t_3 = (x * t) * -a
if (t <= (-1.2d+56)) then
tmp = t_3
else if (t <= (-4.6d-25)) then
tmp = t_2
else if (t <= (-8.9d-122)) then
tmp = -i * (y * j)
else if (t <= (-1.12d-195)) then
tmp = t_1
else if (t <= (-5.8d-273)) then
tmp = a * (b * i)
else if (t <= (-1.8d-306)) then
tmp = t_1
else if (t <= 7.2d-246) then
tmp = t_2
else if (t <= 2.2d+27) then
tmp = c * (z * -b)
else if (t <= 7d+232) then
tmp = t_3
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = b * (a * i);
double t_3 = (x * t) * -a;
double tmp;
if (t <= -1.2e+56) {
tmp = t_3;
} else if (t <= -4.6e-25) {
tmp = t_2;
} else if (t <= -8.9e-122) {
tmp = -i * (y * j);
} else if (t <= -1.12e-195) {
tmp = t_1;
} else if (t <= -5.8e-273) {
tmp = a * (b * i);
} else if (t <= -1.8e-306) {
tmp = t_1;
} else if (t <= 7.2e-246) {
tmp = t_2;
} else if (t <= 2.2e+27) {
tmp = c * (z * -b);
} else if (t <= 7e+232) {
tmp = t_3;
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = b * (a * i) t_3 = (x * t) * -a tmp = 0 if t <= -1.2e+56: tmp = t_3 elif t <= -4.6e-25: tmp = t_2 elif t <= -8.9e-122: tmp = -i * (y * j) elif t <= -1.12e-195: tmp = t_1 elif t <= -5.8e-273: tmp = a * (b * i) elif t <= -1.8e-306: tmp = t_1 elif t <= 7.2e-246: tmp = t_2 elif t <= 2.2e+27: tmp = c * (z * -b) elif t <= 7e+232: tmp = t_3 else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(b * Float64(a * i)) t_3 = Float64(Float64(x * t) * Float64(-a)) tmp = 0.0 if (t <= -1.2e+56) tmp = t_3; elseif (t <= -4.6e-25) tmp = t_2; elseif (t <= -8.9e-122) tmp = Float64(Float64(-i) * Float64(y * j)); elseif (t <= -1.12e-195) tmp = t_1; elseif (t <= -5.8e-273) tmp = Float64(a * Float64(b * i)); elseif (t <= -1.8e-306) tmp = t_1; elseif (t <= 7.2e-246) tmp = t_2; elseif (t <= 2.2e+27) tmp = Float64(c * Float64(z * Float64(-b))); elseif (t <= 7e+232) tmp = t_3; else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = b * (a * i); t_3 = (x * t) * -a; tmp = 0.0; if (t <= -1.2e+56) tmp = t_3; elseif (t <= -4.6e-25) tmp = t_2; elseif (t <= -8.9e-122) tmp = -i * (y * j); elseif (t <= -1.12e-195) tmp = t_1; elseif (t <= -5.8e-273) tmp = a * (b * i); elseif (t <= -1.8e-306) tmp = t_1; elseif (t <= 7.2e-246) tmp = t_2; elseif (t <= 2.2e+27) tmp = c * (z * -b); elseif (t <= 7e+232) tmp = t_3; else tmp = t * (c * j); 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[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision]}, If[LessEqual[t, -1.2e+56], t$95$3, If[LessEqual[t, -4.6e-25], t$95$2, If[LessEqual[t, -8.9e-122], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.12e-195], t$95$1, If[LessEqual[t, -5.8e-273], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.8e-306], t$95$1, If[LessEqual[t, 7.2e-246], t$95$2, If[LessEqual[t, 2.2e+27], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e+232], t$95$3, N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := b \cdot \left(a \cdot i\right)\\
t_3 := \left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{if}\;t \leq -1.2 \cdot 10^{+56}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -4.6 \cdot 10^{-25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -8.9 \cdot 10^{-122}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;t \leq -1.12 \cdot 10^{-195}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -5.8 \cdot 10^{-273}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{-306}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{-246}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{+27}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;t \leq 7 \cdot 10^{+232}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -1.20000000000000007e56 or 2.1999999999999999e27 < t < 7.00000000000000026e232Initial program 56.9%
cancel-sign-sub56.9%
cancel-sign-sub-inv56.9%
*-commutative56.9%
*-commutative56.9%
remove-double-neg56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in a around inf 58.2%
sub-neg58.2%
mul-1-neg58.2%
remove-double-neg58.2%
+-commutative58.2%
mul-1-neg58.2%
unsub-neg58.2%
Simplified58.2%
Taylor expanded in i around 0 53.1%
neg-mul-153.1%
distribute-rgt-neg-in53.1%
Simplified53.1%
if -1.20000000000000007e56 < t < -4.5999999999999998e-25 or -1.79999999999999996e-306 < t < 7.2000000000000004e-246Initial program 74.7%
cancel-sign-sub74.7%
cancel-sign-sub-inv74.7%
*-commutative74.7%
*-commutative74.7%
remove-double-neg74.7%
*-commutative74.7%
*-commutative74.7%
Simplified74.7%
Taylor expanded in b around inf 60.6%
Taylor expanded in a around inf 46.8%
if -4.5999999999999998e-25 < t < -8.9000000000000003e-122Initial program 56.2%
cancel-sign-sub56.2%
cancel-sign-sub-inv56.2%
*-commutative56.2%
*-commutative56.2%
remove-double-neg56.2%
*-commutative56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in j around inf 57.4%
Taylor expanded in c around 0 49.6%
associate-*r*50.9%
*-commutative50.9%
associate-*r*54.7%
associate-*r*54.7%
neg-mul-154.7%
Simplified54.7%
if -8.9000000000000003e-122 < t < -1.1199999999999999e-195 or -5.79999999999999973e-273 < t < -1.79999999999999996e-306Initial program 86.5%
+-commutative86.5%
fma-def91.0%
*-commutative91.0%
*-commutative91.0%
*-commutative91.0%
*-commutative91.0%
Simplified91.0%
Taylor expanded in j around 0 77.6%
Taylor expanded in x around inf 59.0%
Taylor expanded in y around inf 58.9%
if -1.1199999999999999e-195 < t < -5.79999999999999973e-273Initial program 76.6%
+-commutative76.6%
fma-def84.3%
*-commutative84.3%
*-commutative84.3%
*-commutative84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in j around 0 77.0%
Taylor expanded in i around inf 69.7%
if 7.2000000000000004e-246 < t < 2.1999999999999999e27Initial program 70.1%
+-commutative70.1%
fma-def77.0%
*-commutative77.0%
*-commutative77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in j around 0 65.9%
Taylor expanded in c around inf 34.7%
mul-1-neg34.7%
*-commutative34.7%
distribute-rgt-neg-in34.7%
*-commutative34.7%
Simplified34.7%
if 7.00000000000000026e232 < t Initial program 57.1%
cancel-sign-sub57.1%
cancel-sign-sub-inv57.1%
*-commutative57.1%
*-commutative57.1%
remove-double-neg57.1%
*-commutative57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in t around inf 74.0%
*-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
Simplified74.0%
Taylor expanded in c around inf 61.4%
*-commutative61.4%
associate-*l*65.4%
*-commutative65.4%
Simplified65.4%
Final simplification51.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* b (* a i))) (t_3 (* (* x t) (- a))))
(if (<= t -1.65e+56)
t_3
(if (<= t -3.2e-25)
t_2
(if (<= t -1.58e-121)
(* (- i) (* y j))
(if (<= t -4.2e-196)
t_1
(if (<= t -1.8e-270)
(* a (* b i))
(if (<= t -3.2e-307)
t_1
(if (<= t 6e-249)
t_2
(if (<= t 2.5e+25)
(* (* z c) (- b))
(if (<= t 7e+232) t_3 (* t (* c j)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = b * (a * i);
double t_3 = (x * t) * -a;
double tmp;
if (t <= -1.65e+56) {
tmp = t_3;
} else if (t <= -3.2e-25) {
tmp = t_2;
} else if (t <= -1.58e-121) {
tmp = -i * (y * j);
} else if (t <= -4.2e-196) {
tmp = t_1;
} else if (t <= -1.8e-270) {
tmp = a * (b * i);
} else if (t <= -3.2e-307) {
tmp = t_1;
} else if (t <= 6e-249) {
tmp = t_2;
} else if (t <= 2.5e+25) {
tmp = (z * c) * -b;
} else if (t <= 7e+232) {
tmp = t_3;
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * (y * z)
t_2 = b * (a * i)
t_3 = (x * t) * -a
if (t <= (-1.65d+56)) then
tmp = t_3
else if (t <= (-3.2d-25)) then
tmp = t_2
else if (t <= (-1.58d-121)) then
tmp = -i * (y * j)
else if (t <= (-4.2d-196)) then
tmp = t_1
else if (t <= (-1.8d-270)) then
tmp = a * (b * i)
else if (t <= (-3.2d-307)) then
tmp = t_1
else if (t <= 6d-249) then
tmp = t_2
else if (t <= 2.5d+25) then
tmp = (z * c) * -b
else if (t <= 7d+232) then
tmp = t_3
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = b * (a * i);
double t_3 = (x * t) * -a;
double tmp;
if (t <= -1.65e+56) {
tmp = t_3;
} else if (t <= -3.2e-25) {
tmp = t_2;
} else if (t <= -1.58e-121) {
tmp = -i * (y * j);
} else if (t <= -4.2e-196) {
tmp = t_1;
} else if (t <= -1.8e-270) {
tmp = a * (b * i);
} else if (t <= -3.2e-307) {
tmp = t_1;
} else if (t <= 6e-249) {
tmp = t_2;
} else if (t <= 2.5e+25) {
tmp = (z * c) * -b;
} else if (t <= 7e+232) {
tmp = t_3;
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = b * (a * i) t_3 = (x * t) * -a tmp = 0 if t <= -1.65e+56: tmp = t_3 elif t <= -3.2e-25: tmp = t_2 elif t <= -1.58e-121: tmp = -i * (y * j) elif t <= -4.2e-196: tmp = t_1 elif t <= -1.8e-270: tmp = a * (b * i) elif t <= -3.2e-307: tmp = t_1 elif t <= 6e-249: tmp = t_2 elif t <= 2.5e+25: tmp = (z * c) * -b elif t <= 7e+232: tmp = t_3 else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(b * Float64(a * i)) t_3 = Float64(Float64(x * t) * Float64(-a)) tmp = 0.0 if (t <= -1.65e+56) tmp = t_3; elseif (t <= -3.2e-25) tmp = t_2; elseif (t <= -1.58e-121) tmp = Float64(Float64(-i) * Float64(y * j)); elseif (t <= -4.2e-196) tmp = t_1; elseif (t <= -1.8e-270) tmp = Float64(a * Float64(b * i)); elseif (t <= -3.2e-307) tmp = t_1; elseif (t <= 6e-249) tmp = t_2; elseif (t <= 2.5e+25) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (t <= 7e+232) tmp = t_3; else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = b * (a * i); t_3 = (x * t) * -a; tmp = 0.0; if (t <= -1.65e+56) tmp = t_3; elseif (t <= -3.2e-25) tmp = t_2; elseif (t <= -1.58e-121) tmp = -i * (y * j); elseif (t <= -4.2e-196) tmp = t_1; elseif (t <= -1.8e-270) tmp = a * (b * i); elseif (t <= -3.2e-307) tmp = t_1; elseif (t <= 6e-249) tmp = t_2; elseif (t <= 2.5e+25) tmp = (z * c) * -b; elseif (t <= 7e+232) tmp = t_3; else tmp = t * (c * j); 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[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision]}, If[LessEqual[t, -1.65e+56], t$95$3, If[LessEqual[t, -3.2e-25], t$95$2, If[LessEqual[t, -1.58e-121], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.2e-196], t$95$1, If[LessEqual[t, -1.8e-270], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.2e-307], t$95$1, If[LessEqual[t, 6e-249], t$95$2, If[LessEqual[t, 2.5e+25], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[t, 7e+232], t$95$3, N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := b \cdot \left(a \cdot i\right)\\
t_3 := \left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{if}\;t \leq -1.65 \cdot 10^{+56}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -3.2 \cdot 10^{-25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.58 \cdot 10^{-121}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;t \leq -4.2 \cdot 10^{-196}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{-270}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq -3.2 \cdot 10^{-307}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-249}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{+25}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;t \leq 7 \cdot 10^{+232}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -1.65000000000000001e56 or 2.50000000000000012e25 < t < 7.00000000000000026e232Initial program 56.9%
cancel-sign-sub56.9%
cancel-sign-sub-inv56.9%
*-commutative56.9%
*-commutative56.9%
remove-double-neg56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in a around inf 58.2%
sub-neg58.2%
mul-1-neg58.2%
remove-double-neg58.2%
+-commutative58.2%
mul-1-neg58.2%
unsub-neg58.2%
Simplified58.2%
Taylor expanded in i around 0 53.1%
neg-mul-153.1%
distribute-rgt-neg-in53.1%
Simplified53.1%
if -1.65000000000000001e56 < t < -3.2000000000000001e-25 or -3.20000000000000011e-307 < t < 6.00000000000000008e-249Initial program 73.9%
cancel-sign-sub73.9%
cancel-sign-sub-inv73.9%
*-commutative73.9%
*-commutative73.9%
remove-double-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in b around inf 62.3%
Taylor expanded in a around inf 48.2%
if -3.2000000000000001e-25 < t < -1.58000000000000003e-121Initial program 56.2%
cancel-sign-sub56.2%
cancel-sign-sub-inv56.2%
*-commutative56.2%
*-commutative56.2%
remove-double-neg56.2%
*-commutative56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in j around inf 57.4%
Taylor expanded in c around 0 49.6%
associate-*r*50.9%
*-commutative50.9%
associate-*r*54.7%
associate-*r*54.7%
neg-mul-154.7%
Simplified54.7%
if -1.58000000000000003e-121 < t < -4.19999999999999977e-196 or -1.7999999999999999e-270 < t < -3.20000000000000011e-307Initial program 86.5%
+-commutative86.5%
fma-def91.0%
*-commutative91.0%
*-commutative91.0%
*-commutative91.0%
*-commutative91.0%
Simplified91.0%
Taylor expanded in j around 0 77.6%
Taylor expanded in x around inf 59.0%
Taylor expanded in y around inf 58.9%
if -4.19999999999999977e-196 < t < -1.7999999999999999e-270Initial program 76.6%
+-commutative76.6%
fma-def84.3%
*-commutative84.3%
*-commutative84.3%
*-commutative84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in j around 0 77.0%
Taylor expanded in i around inf 69.7%
if 6.00000000000000008e-249 < t < 2.50000000000000012e25Initial program 70.7%
cancel-sign-sub70.7%
cancel-sign-sub-inv70.7%
*-commutative70.7%
*-commutative70.7%
remove-double-neg70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in b around inf 44.8%
Taylor expanded in a around 0 35.8%
associate-*r*35.8%
neg-mul-135.8%
Simplified35.8%
if 7.00000000000000026e232 < t Initial program 57.1%
cancel-sign-sub57.1%
cancel-sign-sub-inv57.1%
*-commutative57.1%
*-commutative57.1%
remove-double-neg57.1%
*-commutative57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in t around inf 74.0%
*-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
Simplified74.0%
Taylor expanded in c around inf 61.4%
*-commutative61.4%
associate-*l*65.4%
*-commutative65.4%
Simplified65.4%
Final simplification52.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -200000000000.0)
t_2
(if (<= c -1.15e-67)
(* (* y i) (- j))
(if (<= c -1e-97)
t_2
(if (<= c -1.2e-98)
(* y (* x z))
(if (<= c -1.2e-208)
t_1
(if (<= c -1.7e-250)
(* (- i) (* y j))
(if (<= c 1.85e-28) 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 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -200000000000.0) {
tmp = t_2;
} else if (c <= -1.15e-67) {
tmp = (y * i) * -j;
} else if (c <= -1e-97) {
tmp = t_2;
} else if (c <= -1.2e-98) {
tmp = y * (x * z);
} else if (c <= -1.2e-208) {
tmp = t_1;
} else if (c <= -1.7e-250) {
tmp = -i * (y * j);
} else if (c <= 1.85e-28) {
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 = a * ((b * i) - (x * t))
t_2 = c * ((t * j) - (z * b))
if (c <= (-200000000000.0d0)) then
tmp = t_2
else if (c <= (-1.15d-67)) then
tmp = (y * i) * -j
else if (c <= (-1d-97)) then
tmp = t_2
else if (c <= (-1.2d-98)) then
tmp = y * (x * z)
else if (c <= (-1.2d-208)) then
tmp = t_1
else if (c <= (-1.7d-250)) then
tmp = -i * (y * j)
else if (c <= 1.85d-28) 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 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -200000000000.0) {
tmp = t_2;
} else if (c <= -1.15e-67) {
tmp = (y * i) * -j;
} else if (c <= -1e-97) {
tmp = t_2;
} else if (c <= -1.2e-98) {
tmp = y * (x * z);
} else if (c <= -1.2e-208) {
tmp = t_1;
} else if (c <= -1.7e-250) {
tmp = -i * (y * j);
} else if (c <= 1.85e-28) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -200000000000.0: tmp = t_2 elif c <= -1.15e-67: tmp = (y * i) * -j elif c <= -1e-97: tmp = t_2 elif c <= -1.2e-98: tmp = y * (x * z) elif c <= -1.2e-208: tmp = t_1 elif c <= -1.7e-250: tmp = -i * (y * j) elif c <= 1.85e-28: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -200000000000.0) tmp = t_2; elseif (c <= -1.15e-67) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (c <= -1e-97) tmp = t_2; elseif (c <= -1.2e-98) tmp = Float64(y * Float64(x * z)); elseif (c <= -1.2e-208) tmp = t_1; elseif (c <= -1.7e-250) tmp = Float64(Float64(-i) * Float64(y * j)); elseif (c <= 1.85e-28) 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 = a * ((b * i) - (x * t)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -200000000000.0) tmp = t_2; elseif (c <= -1.15e-67) tmp = (y * i) * -j; elseif (c <= -1e-97) tmp = t_2; elseif (c <= -1.2e-98) tmp = y * (x * z); elseif (c <= -1.2e-208) tmp = t_1; elseif (c <= -1.7e-250) tmp = -i * (y * j); elseif (c <= 1.85e-28) 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[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -200000000000.0], t$95$2, If[LessEqual[c, -1.15e-67], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[c, -1e-97], t$95$2, If[LessEqual[c, -1.2e-98], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.2e-208], t$95$1, If[LessEqual[c, -1.7e-250], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.85e-28], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -200000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.15 \cdot 10^{-67}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;c \leq -1 \cdot 10^{-97}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.2 \cdot 10^{-98}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq -1.2 \cdot 10^{-208}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.7 \cdot 10^{-250}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;c \leq 1.85 \cdot 10^{-28}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -2e11 or -1.15e-67 < c < -1.00000000000000004e-97 or 1.8500000000000001e-28 < c Initial program 61.6%
cancel-sign-sub61.6%
cancel-sign-sub-inv61.6%
*-commutative61.6%
*-commutative61.6%
remove-double-neg61.6%
*-commutative61.6%
*-commutative61.6%
Simplified61.6%
Taylor expanded in c around inf 61.5%
if -2e11 < c < -1.15e-67Initial program 50.9%
cancel-sign-sub50.9%
cancel-sign-sub-inv50.9%
*-commutative50.9%
*-commutative50.9%
remove-double-neg50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
Taylor expanded in j around inf 65.5%
Taylor expanded in c around 0 57.6%
neg-mul-157.6%
Simplified57.6%
if -1.00000000000000004e-97 < c < -1.20000000000000002e-98Initial program 100.0%
cancel-sign-sub100.0%
cancel-sign-sub-inv100.0%
*-commutative100.0%
*-commutative100.0%
remove-double-neg100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in a around 0 100.0%
Taylor expanded in x around inf 100.0%
if -1.20000000000000002e-98 < c < -1.1999999999999999e-208 or -1.69999999999999997e-250 < c < 1.8500000000000001e-28Initial program 73.5%
cancel-sign-sub73.5%
cancel-sign-sub-inv73.5%
*-commutative73.5%
*-commutative73.5%
remove-double-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in a around inf 57.3%
sub-neg57.3%
mul-1-neg57.3%
remove-double-neg57.3%
+-commutative57.3%
mul-1-neg57.3%
unsub-neg57.3%
Simplified57.3%
if -1.1999999999999999e-208 < c < -1.69999999999999997e-250Initial program 50.0%
cancel-sign-sub50.0%
cancel-sign-sub-inv50.0%
*-commutative50.0%
*-commutative50.0%
remove-double-neg50.0%
*-commutative50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in j around inf 100.0%
Taylor expanded in c around 0 100.0%
associate-*r*100.0%
*-commutative100.0%
associate-*r*100.0%
associate-*r*100.0%
neg-mul-1100.0%
Simplified100.0%
Final simplification60.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.8e+154) (not (<= b 4.7e+53))) (* b (- (* a i) (* z c))) (+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.8e+154) || !(b <= 4.7e+53)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-1.8d+154)) .or. (.not. (b <= 4.7d+53))) then
tmp = b * ((a * i) - (z * c))
else
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.8e+154) || !(b <= 4.7e+53)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.8e+154) or not (b <= 4.7e+53): tmp = b * ((a * i) - (z * c)) else: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.8e+154) || !(b <= 4.7e+53)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.8e+154) || ~((b <= 4.7e+53))) tmp = b * ((a * i) - (z * c)); else tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.8e+154], N[Not[LessEqual[b, 4.7e+53]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.8 \cdot 10^{+154} \lor \neg \left(b \leq 4.7 \cdot 10^{+53}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -1.8e154 or 4.69999999999999976e53 < b Initial program 60.5%
cancel-sign-sub60.5%
cancel-sign-sub-inv60.5%
*-commutative60.5%
*-commutative60.5%
remove-double-neg60.5%
*-commutative60.5%
*-commutative60.5%
Simplified60.5%
Taylor expanded in b around inf 74.2%
if -1.8e154 < b < 4.69999999999999976e53Initial program 67.6%
cancel-sign-sub67.6%
cancel-sign-sub-inv67.6%
*-commutative67.6%
*-commutative67.6%
remove-double-neg67.6%
*-commutative67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in b around 0 68.1%
Final simplification70.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -1.7e+154)
t_2
(if (<= b -1.75e-189)
t_1
(if (<= b 1.1e-169)
(* j (- (* t c) (* y i)))
(if (<= b 4.2e-52)
t_1
(if (<= b 116.0)
(* y (- (* x z) (* i j)))
(if (<= b 2.95e+53) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.7e+154) {
tmp = t_2;
} else if (b <= -1.75e-189) {
tmp = t_1;
} else if (b <= 1.1e-169) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 4.2e-52) {
tmp = t_1;
} else if (b <= 116.0) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 2.95e+53) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = b * ((a * i) - (z * c))
if (b <= (-1.7d+154)) then
tmp = t_2
else if (b <= (-1.75d-189)) then
tmp = t_1
else if (b <= 1.1d-169) then
tmp = j * ((t * c) - (y * i))
else if (b <= 4.2d-52) then
tmp = t_1
else if (b <= 116.0d0) then
tmp = y * ((x * z) - (i * j))
else if (b <= 2.95d+53) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.7e+154) {
tmp = t_2;
} else if (b <= -1.75e-189) {
tmp = t_1;
} else if (b <= 1.1e-169) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 4.2e-52) {
tmp = t_1;
} else if (b <= 116.0) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 2.95e+53) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.7e+154: tmp = t_2 elif b <= -1.75e-189: tmp = t_1 elif b <= 1.1e-169: tmp = j * ((t * c) - (y * i)) elif b <= 4.2e-52: tmp = t_1 elif b <= 116.0: tmp = y * ((x * z) - (i * j)) elif b <= 2.95e+53: 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(Float64(y * z) - Float64(t * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.7e+154) tmp = t_2; elseif (b <= -1.75e-189) tmp = t_1; elseif (b <= 1.1e-169) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 4.2e-52) tmp = t_1; elseif (b <= 116.0) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 2.95e+53) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.7e+154) tmp = t_2; elseif (b <= -1.75e-189) tmp = t_1; elseif (b <= 1.1e-169) tmp = j * ((t * c) - (y * i)); elseif (b <= 4.2e-52) tmp = t_1; elseif (b <= 116.0) tmp = y * ((x * z) - (i * j)); elseif (b <= 2.95e+53) 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[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.7e+154], t$95$2, If[LessEqual[b, -1.75e-189], t$95$1, If[LessEqual[b, 1.1e-169], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.2e-52], t$95$1, If[LessEqual[b, 116.0], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.95e+53], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.7 \cdot 10^{+154}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.75 \cdot 10^{-189}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{-169}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-52}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 116:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 2.95 \cdot 10^{+53}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.69999999999999987e154 or 2.9499999999999999e53 < b Initial program 60.5%
cancel-sign-sub60.5%
cancel-sign-sub-inv60.5%
*-commutative60.5%
*-commutative60.5%
remove-double-neg60.5%
*-commutative60.5%
*-commutative60.5%
Simplified60.5%
Taylor expanded in b around inf 74.2%
if -1.69999999999999987e154 < b < -1.7500000000000001e-189 or 1.10000000000000004e-169 < b < 4.1999999999999997e-52 or 116 < b < 2.9499999999999999e53Initial program 71.8%
+-commutative71.8%
fma-def75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in j around 0 69.3%
Taylor expanded in x around inf 62.0%
if -1.7500000000000001e-189 < b < 1.10000000000000004e-169Initial program 62.1%
cancel-sign-sub62.1%
cancel-sign-sub-inv62.1%
*-commutative62.1%
*-commutative62.1%
remove-double-neg62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in j around inf 67.5%
if 4.1999999999999997e-52 < b < 116Initial program 62.5%
cancel-sign-sub62.5%
cancel-sign-sub-inv62.5%
*-commutative62.5%
*-commutative62.5%
remove-double-neg62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in y around -inf 54.6%
mul-1-neg54.6%
*-commutative54.6%
distribute-rgt-neg-in54.6%
mul-1-neg54.6%
unsub-neg54.6%
Simplified54.6%
Final simplification67.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.6e+154)
t_1
(if (<= b -3.4e-189)
(* x (- (* y z) (* t a)))
(if (<= b 8.6e+51) (+ (* y (* x z)) (* j (- (* t c) (* y i)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.6e+154) {
tmp = t_1;
} else if (b <= -3.4e-189) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 8.6e+51) {
tmp = (y * (x * z)) + (j * ((t * c) - (y * i)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-1.6d+154)) then
tmp = t_1
else if (b <= (-3.4d-189)) then
tmp = x * ((y * z) - (t * a))
else if (b <= 8.6d+51) then
tmp = (y * (x * z)) + (j * ((t * c) - (y * i)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.6e+154) {
tmp = t_1;
} else if (b <= -3.4e-189) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 8.6e+51) {
tmp = (y * (x * z)) + (j * ((t * c) - (y * i)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.6e+154: tmp = t_1 elif b <= -3.4e-189: tmp = x * ((y * z) - (t * a)) elif b <= 8.6e+51: tmp = (y * (x * z)) + (j * ((t * c) - (y * i))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.6e+154) tmp = t_1; elseif (b <= -3.4e-189) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 8.6e+51) tmp = Float64(Float64(y * Float64(x * z)) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.6e+154) tmp = t_1; elseif (b <= -3.4e-189) tmp = x * ((y * z) - (t * a)); elseif (b <= 8.6e+51) tmp = (y * (x * z)) + (j * ((t * c) - (y * i))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.6e+154], t$95$1, If[LessEqual[b, -3.4e-189], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.6e+51], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.6 \cdot 10^{+154}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3.4 \cdot 10^{-189}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 8.6 \cdot 10^{+51}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.6e154 or 8.5999999999999994e51 < b Initial program 60.5%
cancel-sign-sub60.5%
cancel-sign-sub-inv60.5%
*-commutative60.5%
*-commutative60.5%
remove-double-neg60.5%
*-commutative60.5%
*-commutative60.5%
Simplified60.5%
Taylor expanded in b around inf 74.2%
if -1.6e154 < b < -3.4000000000000001e-189Initial program 67.2%
+-commutative67.2%
fma-def70.9%
*-commutative70.9%
*-commutative70.9%
*-commutative70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in j around 0 65.7%
Taylor expanded in x around inf 58.5%
if -3.4000000000000001e-189 < b < 8.5999999999999994e51Initial program 67.8%
cancel-sign-sub67.8%
cancel-sign-sub-inv67.8%
*-commutative67.8%
*-commutative67.8%
remove-double-neg67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in a around 0 67.2%
Taylor expanded in b around 0 63.6%
Final simplification66.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* (* x t) (- a))))
(if (<= t -4e+98)
t_2
(if (<= t -1.3e-195)
t_1
(if (<= t -4.7e-269)
(* a (* b i))
(if (<= t 2.9e-306)
t_1
(if (<= t 1.62e-248)
(* b (* a i))
(if (<= t 2.6e+22)
(* y (* x z))
(if (<= t 8e+232) t_2 (* t (* c j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = (x * t) * -a;
double tmp;
if (t <= -4e+98) {
tmp = t_2;
} else if (t <= -1.3e-195) {
tmp = t_1;
} else if (t <= -4.7e-269) {
tmp = a * (b * i);
} else if (t <= 2.9e-306) {
tmp = t_1;
} else if (t <= 1.62e-248) {
tmp = b * (a * i);
} else if (t <= 2.6e+22) {
tmp = y * (x * z);
} else if (t <= 8e+232) {
tmp = t_2;
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (y * z)
t_2 = (x * t) * -a
if (t <= (-4d+98)) then
tmp = t_2
else if (t <= (-1.3d-195)) then
tmp = t_1
else if (t <= (-4.7d-269)) then
tmp = a * (b * i)
else if (t <= 2.9d-306) then
tmp = t_1
else if (t <= 1.62d-248) then
tmp = b * (a * i)
else if (t <= 2.6d+22) then
tmp = y * (x * z)
else if (t <= 8d+232) then
tmp = t_2
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = (x * t) * -a;
double tmp;
if (t <= -4e+98) {
tmp = t_2;
} else if (t <= -1.3e-195) {
tmp = t_1;
} else if (t <= -4.7e-269) {
tmp = a * (b * i);
} else if (t <= 2.9e-306) {
tmp = t_1;
} else if (t <= 1.62e-248) {
tmp = b * (a * i);
} else if (t <= 2.6e+22) {
tmp = y * (x * z);
} else if (t <= 8e+232) {
tmp = t_2;
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = (x * t) * -a tmp = 0 if t <= -4e+98: tmp = t_2 elif t <= -1.3e-195: tmp = t_1 elif t <= -4.7e-269: tmp = a * (b * i) elif t <= 2.9e-306: tmp = t_1 elif t <= 1.62e-248: tmp = b * (a * i) elif t <= 2.6e+22: tmp = y * (x * z) elif t <= 8e+232: tmp = t_2 else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(Float64(x * t) * Float64(-a)) tmp = 0.0 if (t <= -4e+98) tmp = t_2; elseif (t <= -1.3e-195) tmp = t_1; elseif (t <= -4.7e-269) tmp = Float64(a * Float64(b * i)); elseif (t <= 2.9e-306) tmp = t_1; elseif (t <= 1.62e-248) tmp = Float64(b * Float64(a * i)); elseif (t <= 2.6e+22) tmp = Float64(y * Float64(x * z)); elseif (t <= 8e+232) tmp = t_2; else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = (x * t) * -a; tmp = 0.0; if (t <= -4e+98) tmp = t_2; elseif (t <= -1.3e-195) tmp = t_1; elseif (t <= -4.7e-269) tmp = a * (b * i); elseif (t <= 2.9e-306) tmp = t_1; elseif (t <= 1.62e-248) tmp = b * (a * i); elseif (t <= 2.6e+22) tmp = y * (x * z); elseif (t <= 8e+232) tmp = t_2; else tmp = t * (c * j); 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[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision]}, If[LessEqual[t, -4e+98], t$95$2, If[LessEqual[t, -1.3e-195], t$95$1, If[LessEqual[t, -4.7e-269], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e-306], t$95$1, If[LessEqual[t, 1.62e-248], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.6e+22], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e+232], t$95$2, N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := \left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{if}\;t \leq -4 \cdot 10^{+98}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.3 \cdot 10^{-195}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -4.7 \cdot 10^{-269}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-306}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.62 \cdot 10^{-248}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{+22}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+232}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -3.99999999999999999e98 or 2.6e22 < t < 8.00000000000000045e232Initial program 57.4%
cancel-sign-sub57.4%
cancel-sign-sub-inv57.4%
*-commutative57.4%
*-commutative57.4%
remove-double-neg57.4%
*-commutative57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in a around inf 58.7%
sub-neg58.7%
mul-1-neg58.7%
remove-double-neg58.7%
+-commutative58.7%
mul-1-neg58.7%
unsub-neg58.7%
Simplified58.7%
Taylor expanded in i around 0 54.4%
neg-mul-154.4%
distribute-rgt-neg-in54.4%
Simplified54.4%
if -3.99999999999999999e98 < t < -1.3000000000000001e-195 or -4.6999999999999997e-269 < t < 2.8999999999999999e-306Initial program 73.3%
+-commutative73.3%
fma-def74.6%
*-commutative74.6%
*-commutative74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in j around 0 58.0%
Taylor expanded in x around inf 38.2%
Taylor expanded in y around inf 34.2%
if -1.3000000000000001e-195 < t < -4.6999999999999997e-269Initial program 76.6%
+-commutative76.6%
fma-def84.3%
*-commutative84.3%
*-commutative84.3%
*-commutative84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in j around 0 77.0%
Taylor expanded in i around inf 69.7%
if 2.8999999999999999e-306 < t < 1.6200000000000001e-248Initial program 57.1%
cancel-sign-sub57.1%
cancel-sign-sub-inv57.1%
*-commutative57.1%
*-commutative57.1%
remove-double-neg57.1%
*-commutative57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in b around inf 71.7%
Taylor expanded in a around inf 57.9%
if 1.6200000000000001e-248 < t < 2.6e22Initial program 70.1%
cancel-sign-sub70.1%
cancel-sign-sub-inv70.1%
*-commutative70.1%
*-commutative70.1%
remove-double-neg70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in a around 0 69.8%
Taylor expanded in x around inf 33.5%
if 8.00000000000000045e232 < t Initial program 57.1%
cancel-sign-sub57.1%
cancel-sign-sub-inv57.1%
*-commutative57.1%
*-commutative57.1%
remove-double-neg57.1%
*-commutative57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in t around inf 74.0%
*-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
Simplified74.0%
Taylor expanded in c around inf 61.4%
*-commutative61.4%
associate-*l*65.4%
*-commutative65.4%
Simplified65.4%
Final simplification47.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -1.32e+167)
t_2
(if (<= b -1.45e-189)
t_1
(if (<= b 1e-168)
(* j (- (* t c) (* y i)))
(if (<= b 4.1e-78) (* x (* y z)) (if (<= b 8e+35) 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 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.32e+167) {
tmp = t_2;
} else if (b <= -1.45e-189) {
tmp = t_1;
} else if (b <= 1e-168) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 4.1e-78) {
tmp = x * (y * z);
} else if (b <= 8e+35) {
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 = t * ((c * j) - (x * a))
t_2 = b * ((a * i) - (z * c))
if (b <= (-1.32d+167)) then
tmp = t_2
else if (b <= (-1.45d-189)) then
tmp = t_1
else if (b <= 1d-168) then
tmp = j * ((t * c) - (y * i))
else if (b <= 4.1d-78) then
tmp = x * (y * z)
else if (b <= 8d+35) 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 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.32e+167) {
tmp = t_2;
} else if (b <= -1.45e-189) {
tmp = t_1;
} else if (b <= 1e-168) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 4.1e-78) {
tmp = x * (y * z);
} else if (b <= 8e+35) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.32e+167: tmp = t_2 elif b <= -1.45e-189: tmp = t_1 elif b <= 1e-168: tmp = j * ((t * c) - (y * i)) elif b <= 4.1e-78: tmp = x * (y * z) elif b <= 8e+35: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.32e+167) tmp = t_2; elseif (b <= -1.45e-189) tmp = t_1; elseif (b <= 1e-168) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 4.1e-78) tmp = Float64(x * Float64(y * z)); elseif (b <= 8e+35) 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 = t * ((c * j) - (x * a)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.32e+167) tmp = t_2; elseif (b <= -1.45e-189) tmp = t_1; elseif (b <= 1e-168) tmp = j * ((t * c) - (y * i)); elseif (b <= 4.1e-78) tmp = x * (y * z); elseif (b <= 8e+35) 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.32e+167], t$95$2, If[LessEqual[b, -1.45e-189], t$95$1, If[LessEqual[b, 1e-168], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.1e-78], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e+35], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.32 \cdot 10^{+167}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-189}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 10^{-168}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{-78}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 8 \cdot 10^{+35}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.3200000000000001e167 or 7.9999999999999997e35 < b Initial program 61.9%
cancel-sign-sub61.9%
cancel-sign-sub-inv61.9%
*-commutative61.9%
*-commutative61.9%
remove-double-neg61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in b around inf 73.7%
if -1.3200000000000001e167 < b < -1.45e-189 or 4.0999999999999998e-78 < b < 7.9999999999999997e35Initial program 68.0%
cancel-sign-sub68.0%
cancel-sign-sub-inv68.0%
*-commutative68.0%
*-commutative68.0%
remove-double-neg68.0%
*-commutative68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in t around inf 51.9%
*-commutative51.9%
mul-1-neg51.9%
unsub-neg51.9%
Simplified51.9%
if -1.45e-189 < b < 1e-168Initial program 62.1%
cancel-sign-sub62.1%
cancel-sign-sub-inv62.1%
*-commutative62.1%
*-commutative62.1%
remove-double-neg62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in j around inf 67.5%
if 1e-168 < b < 4.0999999999999998e-78Initial program 74.1%
+-commutative74.1%
fma-def78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in j around 0 74.4%
Taylor expanded in x around inf 61.9%
Taylor expanded in y around inf 48.3%
Final simplification62.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.32e+167)
t_1
(if (<= b -2.5e-189)
(* t (- (* c j) (* x a)))
(if (<= b 1.2e-169)
(* j (- (* t c) (* y i)))
(if (<= b 4.3e+24)
(* z (- (* x y) (* b c)))
(if (<= b 6.6e+34) (* (* x t) (- a)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.32e+167) {
tmp = t_1;
} else if (b <= -2.5e-189) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 1.2e-169) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 4.3e+24) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 6.6e+34) {
tmp = (x * t) * -a;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-1.32d+167)) then
tmp = t_1
else if (b <= (-2.5d-189)) then
tmp = t * ((c * j) - (x * a))
else if (b <= 1.2d-169) then
tmp = j * ((t * c) - (y * i))
else if (b <= 4.3d+24) then
tmp = z * ((x * y) - (b * c))
else if (b <= 6.6d+34) then
tmp = (x * t) * -a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.32e+167) {
tmp = t_1;
} else if (b <= -2.5e-189) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 1.2e-169) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 4.3e+24) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 6.6e+34) {
tmp = (x * t) * -a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.32e+167: tmp = t_1 elif b <= -2.5e-189: tmp = t * ((c * j) - (x * a)) elif b <= 1.2e-169: tmp = j * ((t * c) - (y * i)) elif b <= 4.3e+24: tmp = z * ((x * y) - (b * c)) elif b <= 6.6e+34: tmp = (x * t) * -a else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.32e+167) tmp = t_1; elseif (b <= -2.5e-189) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 1.2e-169) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 4.3e+24) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= 6.6e+34) tmp = Float64(Float64(x * t) * Float64(-a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.32e+167) tmp = t_1; elseif (b <= -2.5e-189) tmp = t * ((c * j) - (x * a)); elseif (b <= 1.2e-169) tmp = j * ((t * c) - (y * i)); elseif (b <= 4.3e+24) tmp = z * ((x * y) - (b * c)); elseif (b <= 6.6e+34) tmp = (x * t) * -a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.32e+167], t$95$1, If[LessEqual[b, -2.5e-189], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e-169], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.3e+24], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.6e+34], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.32 \cdot 10^{+167}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-189}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-169}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 4.3 \cdot 10^{+24}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq 6.6 \cdot 10^{+34}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.3200000000000001e167 or 6.59999999999999976e34 < b Initial program 61.9%
cancel-sign-sub61.9%
cancel-sign-sub-inv61.9%
*-commutative61.9%
*-commutative61.9%
remove-double-neg61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in b around inf 73.7%
if -1.3200000000000001e167 < b < -2.4999999999999999e-189Initial program 64.4%
cancel-sign-sub64.4%
cancel-sign-sub-inv64.4%
*-commutative64.4%
*-commutative64.4%
remove-double-neg64.4%
*-commutative64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in t around inf 54.5%
*-commutative54.5%
mul-1-neg54.5%
unsub-neg54.5%
Simplified54.5%
if -2.4999999999999999e-189 < b < 1.20000000000000005e-169Initial program 62.1%
cancel-sign-sub62.1%
cancel-sign-sub-inv62.1%
*-commutative62.1%
*-commutative62.1%
remove-double-neg62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in j around inf 67.5%
if 1.20000000000000005e-169 < b < 4.29999999999999987e24Initial program 73.7%
cancel-sign-sub73.7%
cancel-sign-sub-inv73.7%
*-commutative73.7%
*-commutative73.7%
remove-double-neg73.7%
*-commutative73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in z around inf 44.6%
if 4.29999999999999987e24 < b < 6.59999999999999976e34Initial program 100.0%
cancel-sign-sub100.0%
cancel-sign-sub-inv100.0%
*-commutative100.0%
*-commutative100.0%
remove-double-neg100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in a around inf 100.0%
sub-neg100.0%
mul-1-neg100.0%
remove-double-neg100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in i around 0 100.0%
neg-mul-1100.0%
distribute-rgt-neg-in100.0%
Simplified100.0%
Final simplification63.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= y -3.4e+159)
(* (* y i) (- j))
(if (<= y 4.4e-72)
t_2
(if (<= y 2.95e+31)
t_1
(if (<= y 2.65e+79)
t_2
(if (<= y 5.5e+235) (* (- i) (* y 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 = x * (y * z);
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (y <= -3.4e+159) {
tmp = (y * i) * -j;
} else if (y <= 4.4e-72) {
tmp = t_2;
} else if (y <= 2.95e+31) {
tmp = t_1;
} else if (y <= 2.65e+79) {
tmp = t_2;
} else if (y <= 5.5e+235) {
tmp = -i * (y * 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) :: t_2
real(8) :: tmp
t_1 = x * (y * z)
t_2 = a * ((b * i) - (x * t))
if (y <= (-3.4d+159)) then
tmp = (y * i) * -j
else if (y <= 4.4d-72) then
tmp = t_2
else if (y <= 2.95d+31) then
tmp = t_1
else if (y <= 2.65d+79) then
tmp = t_2
else if (y <= 5.5d+235) then
tmp = -i * (y * 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 = x * (y * z);
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (y <= -3.4e+159) {
tmp = (y * i) * -j;
} else if (y <= 4.4e-72) {
tmp = t_2;
} else if (y <= 2.95e+31) {
tmp = t_1;
} else if (y <= 2.65e+79) {
tmp = t_2;
} else if (y <= 5.5e+235) {
tmp = -i * (y * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = a * ((b * i) - (x * t)) tmp = 0 if y <= -3.4e+159: tmp = (y * i) * -j elif y <= 4.4e-72: tmp = t_2 elif y <= 2.95e+31: tmp = t_1 elif y <= 2.65e+79: tmp = t_2 elif y <= 5.5e+235: tmp = -i * (y * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (y <= -3.4e+159) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (y <= 4.4e-72) tmp = t_2; elseif (y <= 2.95e+31) tmp = t_1; elseif (y <= 2.65e+79) tmp = t_2; elseif (y <= 5.5e+235) tmp = Float64(Float64(-i) * Float64(y * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (y <= -3.4e+159) tmp = (y * i) * -j; elseif (y <= 4.4e-72) tmp = t_2; elseif (y <= 2.95e+31) tmp = t_1; elseif (y <= 2.65e+79) tmp = t_2; elseif (y <= 5.5e+235) tmp = -i * (y * 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.4e+159], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[y, 4.4e-72], t$95$2, If[LessEqual[y, 2.95e+31], t$95$1, If[LessEqual[y, 2.65e+79], t$95$2, If[LessEqual[y, 5.5e+235], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;y \leq -3.4 \cdot 10^{+159}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{-72}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.95 \cdot 10^{+31}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.65 \cdot 10^{+79}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{+235}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -3.39999999999999991e159Initial program 48.3%
cancel-sign-sub48.3%
cancel-sign-sub-inv48.3%
*-commutative48.3%
*-commutative48.3%
remove-double-neg48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in j around inf 63.1%
Taylor expanded in c around 0 56.3%
neg-mul-156.3%
Simplified56.3%
if -3.39999999999999991e159 < y < 4.40000000000000005e-72 or 2.9500000000000002e31 < y < 2.64999999999999989e79Initial program 71.2%
cancel-sign-sub71.2%
cancel-sign-sub-inv71.2%
*-commutative71.2%
*-commutative71.2%
remove-double-neg71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in a around inf 49.8%
sub-neg49.8%
mul-1-neg49.8%
remove-double-neg49.8%
+-commutative49.8%
mul-1-neg49.8%
unsub-neg49.8%
Simplified49.8%
if 4.40000000000000005e-72 < y < 2.9500000000000002e31 or 5.49999999999999945e235 < y Initial program 62.4%
+-commutative62.4%
fma-def67.4%
*-commutative67.4%
*-commutative67.4%
*-commutative67.4%
*-commutative67.4%
Simplified67.4%
Taylor expanded in j around 0 64.9%
Taylor expanded in x around inf 65.6%
Taylor expanded in y around inf 58.2%
if 2.64999999999999989e79 < y < 5.49999999999999945e235Initial program 48.4%
cancel-sign-sub48.4%
cancel-sign-sub-inv48.4%
*-commutative48.4%
*-commutative48.4%
remove-double-neg48.4%
*-commutative48.4%
*-commutative48.4%
Simplified48.4%
Taylor expanded in j around inf 49.3%
Taylor expanded in c around 0 53.3%
associate-*r*49.5%
*-commutative49.5%
associate-*r*60.9%
associate-*r*60.9%
neg-mul-160.9%
Simplified60.9%
Final simplification52.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* t (- (* c j) (* x a)))))
(if (<= t -1.6e+56)
t_2
(if (<= t -8.8e-82)
t_1
(if (<= t -2.4e-122) (* (- i) (* y j)) (if (<= t 2.32e-66) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.6e+56) {
tmp = t_2;
} else if (t <= -8.8e-82) {
tmp = t_1;
} else if (t <= -2.4e-122) {
tmp = -i * (y * j);
} else if (t <= 2.32e-66) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = t * ((c * j) - (x * a))
if (t <= (-1.6d+56)) then
tmp = t_2
else if (t <= (-8.8d-82)) then
tmp = t_1
else if (t <= (-2.4d-122)) then
tmp = -i * (y * j)
else if (t <= 2.32d-66) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.6e+56) {
tmp = t_2;
} else if (t <= -8.8e-82) {
tmp = t_1;
} else if (t <= -2.4e-122) {
tmp = -i * (y * j);
} else if (t <= 2.32e-66) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -1.6e+56: tmp = t_2 elif t <= -8.8e-82: tmp = t_1 elif t <= -2.4e-122: tmp = -i * (y * j) elif t <= 2.32e-66: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -1.6e+56) tmp = t_2; elseif (t <= -8.8e-82) tmp = t_1; elseif (t <= -2.4e-122) tmp = Float64(Float64(-i) * Float64(y * j)); elseif (t <= 2.32e-66) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -1.6e+56) tmp = t_2; elseif (t <= -8.8e-82) tmp = t_1; elseif (t <= -2.4e-122) tmp = -i * (y * j); elseif (t <= 2.32e-66) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.6e+56], t$95$2, If[LessEqual[t, -8.8e-82], t$95$1, If[LessEqual[t, -2.4e-122], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.32e-66], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.6 \cdot 10^{+56}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -8.8 \cdot 10^{-82}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.4 \cdot 10^{-122}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;t \leq 2.32 \cdot 10^{-66}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -1.60000000000000002e56 or 2.32000000000000004e-66 < t Initial program 58.6%
cancel-sign-sub58.6%
cancel-sign-sub-inv58.6%
*-commutative58.6%
*-commutative58.6%
remove-double-neg58.6%
*-commutative58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in t around inf 65.0%
*-commutative65.0%
mul-1-neg65.0%
unsub-neg65.0%
Simplified65.0%
if -1.60000000000000002e56 < t < -8.79999999999999943e-82 or -2.39999999999999987e-122 < t < 2.32000000000000004e-66Initial program 73.4%
cancel-sign-sub73.4%
cancel-sign-sub-inv73.4%
*-commutative73.4%
*-commutative73.4%
remove-double-neg73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in b around inf 51.3%
if -8.79999999999999943e-82 < t < -2.39999999999999987e-122Initial program 57.1%
cancel-sign-sub57.1%
cancel-sign-sub-inv57.1%
*-commutative57.1%
*-commutative57.1%
remove-double-neg57.1%
*-commutative57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in j around inf 72.6%
Taylor expanded in c around 0 72.2%
associate-*r*72.2%
*-commutative72.2%
associate-*r*79.0%
associate-*r*79.0%
neg-mul-179.0%
Simplified79.0%
Final simplification59.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -1.6e+154)
t_2
(if (<= b -1.5e-189)
t_1
(if (<= b 1.05e-169)
(* j (- (* t c) (* y i)))
(if (<= b 1.95e-36) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.6e+154) {
tmp = t_2;
} else if (b <= -1.5e-189) {
tmp = t_1;
} else if (b <= 1.05e-169) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 1.95e-36) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = b * ((a * i) - (z * c))
if (b <= (-1.6d+154)) then
tmp = t_2
else if (b <= (-1.5d-189)) then
tmp = t_1
else if (b <= 1.05d-169) then
tmp = j * ((t * c) - (y * i))
else if (b <= 1.95d-36) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.6e+154) {
tmp = t_2;
} else if (b <= -1.5e-189) {
tmp = t_1;
} else if (b <= 1.05e-169) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 1.95e-36) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.6e+154: tmp = t_2 elif b <= -1.5e-189: tmp = t_1 elif b <= 1.05e-169: tmp = j * ((t * c) - (y * i)) elif b <= 1.95e-36: 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(Float64(y * z) - Float64(t * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.6e+154) tmp = t_2; elseif (b <= -1.5e-189) tmp = t_1; elseif (b <= 1.05e-169) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 1.95e-36) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.6e+154) tmp = t_2; elseif (b <= -1.5e-189) tmp = t_1; elseif (b <= 1.05e-169) tmp = j * ((t * c) - (y * i)); elseif (b <= 1.95e-36) 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[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.6e+154], t$95$2, If[LessEqual[b, -1.5e-189], t$95$1, If[LessEqual[b, 1.05e-169], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.95e-36], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.6 \cdot 10^{+154}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{-189}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-169}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{-36}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.6e154 or 1.95e-36 < b Initial program 62.5%
cancel-sign-sub62.5%
cancel-sign-sub-inv62.5%
*-commutative62.5%
*-commutative62.5%
remove-double-neg62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in b around inf 68.8%
if -1.6e154 < b < -1.5e-189 or 1.05e-169 < b < 1.95e-36Initial program 70.2%
+-commutative70.2%
fma-def73.7%
*-commutative73.7%
*-commutative73.7%
*-commutative73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in j around 0 67.1%
Taylor expanded in x around inf 60.4%
if -1.5e-189 < b < 1.05e-169Initial program 62.1%
cancel-sign-sub62.1%
cancel-sign-sub-inv62.1%
*-commutative62.1%
*-commutative62.1%
remove-double-neg62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in j around inf 67.5%
Final simplification65.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= x -5.4e+125)
t_1
(if (<= x -9.5e-118)
(* a (* b i))
(if (<= x 5.8e-267)
(* c (* t j))
(if (<= x 1.72e-196)
(* i (* a b))
(if (<= x 3.5e+101) (* 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 = y * (x * z);
double tmp;
if (x <= -5.4e+125) {
tmp = t_1;
} else if (x <= -9.5e-118) {
tmp = a * (b * i);
} else if (x <= 5.8e-267) {
tmp = c * (t * j);
} else if (x <= 1.72e-196) {
tmp = i * (a * b);
} else if (x <= 3.5e+101) {
tmp = 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 = y * (x * z)
if (x <= (-5.4d+125)) then
tmp = t_1
else if (x <= (-9.5d-118)) then
tmp = a * (b * i)
else if (x <= 5.8d-267) then
tmp = c * (t * j)
else if (x <= 1.72d-196) then
tmp = i * (a * b)
else if (x <= 3.5d+101) then
tmp = 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 = y * (x * z);
double tmp;
if (x <= -5.4e+125) {
tmp = t_1;
} else if (x <= -9.5e-118) {
tmp = a * (b * i);
} else if (x <= 5.8e-267) {
tmp = c * (t * j);
} else if (x <= 1.72e-196) {
tmp = i * (a * b);
} else if (x <= 3.5e+101) {
tmp = t * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if x <= -5.4e+125: tmp = t_1 elif x <= -9.5e-118: tmp = a * (b * i) elif x <= 5.8e-267: tmp = c * (t * j) elif x <= 1.72e-196: tmp = i * (a * b) elif x <= 3.5e+101: tmp = t * (c * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (x <= -5.4e+125) tmp = t_1; elseif (x <= -9.5e-118) tmp = Float64(a * Float64(b * i)); elseif (x <= 5.8e-267) tmp = Float64(c * Float64(t * j)); elseif (x <= 1.72e-196) tmp = Float64(i * Float64(a * b)); elseif (x <= 3.5e+101) tmp = Float64(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 = y * (x * z); tmp = 0.0; if (x <= -5.4e+125) tmp = t_1; elseif (x <= -9.5e-118) tmp = a * (b * i); elseif (x <= 5.8e-267) tmp = c * (t * j); elseif (x <= 1.72e-196) tmp = i * (a * b); elseif (x <= 3.5e+101) tmp = 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.4e+125], t$95$1, If[LessEqual[x, -9.5e-118], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.8e-267], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.72e-196], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.5e+101], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;x \leq -5.4 \cdot 10^{+125}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -9.5 \cdot 10^{-118}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{-267}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 1.72 \cdot 10^{-196}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{+101}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -5.3999999999999997e125 or 3.50000000000000023e101 < x Initial program 59.8%
cancel-sign-sub59.8%
cancel-sign-sub-inv59.8%
*-commutative59.8%
*-commutative59.8%
remove-double-neg59.8%
*-commutative59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in a around 0 45.0%
Taylor expanded in x around inf 46.1%
if -5.3999999999999997e125 < x < -9.49999999999999931e-118Initial program 71.2%
+-commutative71.2%
fma-def74.9%
*-commutative74.9%
*-commutative74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in j around 0 63.3%
Taylor expanded in i around inf 29.2%
if -9.49999999999999931e-118 < x < 5.80000000000000043e-267Initial program 72.5%
cancel-sign-sub72.5%
cancel-sign-sub-inv72.5%
*-commutative72.5%
*-commutative72.5%
remove-double-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in t around inf 37.0%
*-commutative37.0%
mul-1-neg37.0%
unsub-neg37.0%
Simplified37.0%
Taylor expanded in c around inf 35.0%
if 5.80000000000000043e-267 < x < 1.72e-196Initial program 39.6%
+-commutative39.6%
fma-def52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in j around 0 52.4%
Taylor expanded in i around inf 27.1%
associate-*r*26.9%
*-commutative26.9%
associate-*r*32.7%
Simplified32.7%
if 1.72e-196 < x < 3.50000000000000023e101Initial program 68.1%
cancel-sign-sub68.1%
cancel-sign-sub-inv68.1%
*-commutative68.1%
*-commutative68.1%
remove-double-neg68.1%
*-commutative68.1%
*-commutative68.1%
Simplified68.1%
Taylor expanded in t around inf 48.9%
*-commutative48.9%
mul-1-neg48.9%
unsub-neg48.9%
Simplified48.9%
Taylor expanded in c around inf 28.2%
*-commutative28.2%
associate-*l*32.2%
*-commutative32.2%
Simplified32.2%
Final simplification36.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -1.05e+125)
(* y (* x z))
(if (<= x -2.1e-117)
(* b (* a i))
(if (<= x 1.15e-266)
(* c (* t j))
(if (<= x 6.5e-191)
(* i (* a b))
(if (<= x 1.25e+102) (* t (* c j)) (* z (* x y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.05e+125) {
tmp = y * (x * z);
} else if (x <= -2.1e-117) {
tmp = b * (a * i);
} else if (x <= 1.15e-266) {
tmp = c * (t * j);
} else if (x <= 6.5e-191) {
tmp = i * (a * b);
} else if (x <= 1.25e+102) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-1.05d+125)) then
tmp = y * (x * z)
else if (x <= (-2.1d-117)) then
tmp = b * (a * i)
else if (x <= 1.15d-266) then
tmp = c * (t * j)
else if (x <= 6.5d-191) then
tmp = i * (a * b)
else if (x <= 1.25d+102) then
tmp = t * (c * j)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.05e+125) {
tmp = y * (x * z);
} else if (x <= -2.1e-117) {
tmp = b * (a * i);
} else if (x <= 1.15e-266) {
tmp = c * (t * j);
} else if (x <= 6.5e-191) {
tmp = i * (a * b);
} else if (x <= 1.25e+102) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -1.05e+125: tmp = y * (x * z) elif x <= -2.1e-117: tmp = b * (a * i) elif x <= 1.15e-266: tmp = c * (t * j) elif x <= 6.5e-191: tmp = i * (a * b) elif x <= 1.25e+102: tmp = t * (c * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -1.05e+125) tmp = Float64(y * Float64(x * z)); elseif (x <= -2.1e-117) tmp = Float64(b * Float64(a * i)); elseif (x <= 1.15e-266) tmp = Float64(c * Float64(t * j)); elseif (x <= 6.5e-191) tmp = Float64(i * Float64(a * b)); elseif (x <= 1.25e+102) tmp = Float64(t * Float64(c * j)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -1.05e+125) tmp = y * (x * z); elseif (x <= -2.1e-117) tmp = b * (a * i); elseif (x <= 1.15e-266) tmp = c * (t * j); elseif (x <= 6.5e-191) tmp = i * (a * b); elseif (x <= 1.25e+102) tmp = t * (c * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1.05e+125], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.1e-117], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e-266], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.5e-191], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.25e+102], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.05 \cdot 10^{+125}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -2.1 \cdot 10^{-117}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-266}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{-191}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+102}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -1.05e125Initial program 67.5%
cancel-sign-sub67.5%
cancel-sign-sub-inv67.5%
*-commutative67.5%
*-commutative67.5%
remove-double-neg67.5%
*-commutative67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in a around 0 53.0%
Taylor expanded in x around inf 52.7%
if -1.05e125 < x < -2.0999999999999999e-117Initial program 71.2%
cancel-sign-sub71.2%
cancel-sign-sub-inv71.2%
*-commutative71.2%
*-commutative71.2%
remove-double-neg71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in b around inf 49.6%
Taylor expanded in a around inf 34.4%
if -2.0999999999999999e-117 < x < 1.14999999999999998e-266Initial program 72.5%
cancel-sign-sub72.5%
cancel-sign-sub-inv72.5%
*-commutative72.5%
*-commutative72.5%
remove-double-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in t around inf 37.0%
*-commutative37.0%
mul-1-neg37.0%
unsub-neg37.0%
Simplified37.0%
Taylor expanded in c around inf 35.0%
if 1.14999999999999998e-266 < x < 6.4999999999999995e-191Initial program 39.6%
+-commutative39.6%
fma-def52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in j around 0 52.4%
Taylor expanded in i around inf 27.1%
associate-*r*26.9%
*-commutative26.9%
associate-*r*32.7%
Simplified32.7%
if 6.4999999999999995e-191 < x < 1.25e102Initial program 68.1%
cancel-sign-sub68.1%
cancel-sign-sub-inv68.1%
*-commutative68.1%
*-commutative68.1%
remove-double-neg68.1%
*-commutative68.1%
*-commutative68.1%
Simplified68.1%
Taylor expanded in t around inf 48.9%
*-commutative48.9%
mul-1-neg48.9%
unsub-neg48.9%
Simplified48.9%
Taylor expanded in c around inf 28.2%
*-commutative28.2%
associate-*l*32.2%
*-commutative32.2%
Simplified32.2%
if 1.25e102 < x Initial program 52.2%
cancel-sign-sub52.2%
cancel-sign-sub-inv52.2%
*-commutative52.2%
*-commutative52.2%
remove-double-neg52.2%
*-commutative52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in a around 0 37.1%
Taylor expanded in x around inf 39.6%
*-commutative39.6%
associate-*l*41.9%
*-commutative41.9%
Simplified41.9%
Final simplification38.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.7e+124)
(* y (* x z))
(if (<= x -1e-117)
(* b (* a i))
(if (<= x 2.85e-266)
(* c (* t j))
(if (<= x 1.28e-191)
(* i (* a b))
(if (<= x 3.7e+101) (* j (* t c)) (* z (* x y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.7e+124) {
tmp = y * (x * z);
} else if (x <= -1e-117) {
tmp = b * (a * i);
} else if (x <= 2.85e-266) {
tmp = c * (t * j);
} else if (x <= 1.28e-191) {
tmp = i * (a * b);
} else if (x <= 3.7e+101) {
tmp = j * (t * c);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-2.7d+124)) then
tmp = y * (x * z)
else if (x <= (-1d-117)) then
tmp = b * (a * i)
else if (x <= 2.85d-266) then
tmp = c * (t * j)
else if (x <= 1.28d-191) then
tmp = i * (a * b)
else if (x <= 3.7d+101) then
tmp = j * (t * c)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.7e+124) {
tmp = y * (x * z);
} else if (x <= -1e-117) {
tmp = b * (a * i);
} else if (x <= 2.85e-266) {
tmp = c * (t * j);
} else if (x <= 1.28e-191) {
tmp = i * (a * b);
} else if (x <= 3.7e+101) {
tmp = j * (t * c);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -2.7e+124: tmp = y * (x * z) elif x <= -1e-117: tmp = b * (a * i) elif x <= 2.85e-266: tmp = c * (t * j) elif x <= 1.28e-191: tmp = i * (a * b) elif x <= 3.7e+101: tmp = j * (t * c) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.7e+124) tmp = Float64(y * Float64(x * z)); elseif (x <= -1e-117) tmp = Float64(b * Float64(a * i)); elseif (x <= 2.85e-266) tmp = Float64(c * Float64(t * j)); elseif (x <= 1.28e-191) tmp = Float64(i * Float64(a * b)); elseif (x <= 3.7e+101) tmp = Float64(j * Float64(t * c)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -2.7e+124) tmp = y * (x * z); elseif (x <= -1e-117) tmp = b * (a * i); elseif (x <= 2.85e-266) tmp = c * (t * j); elseif (x <= 1.28e-191) tmp = i * (a * b); elseif (x <= 3.7e+101) tmp = j * (t * c); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.7e+124], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1e-117], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.85e-266], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.28e-191], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.7e+101], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.7 \cdot 10^{+124}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -1 \cdot 10^{-117}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq 2.85 \cdot 10^{-266}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 1.28 \cdot 10^{-191}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{+101}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -2.69999999999999978e124Initial program 67.5%
cancel-sign-sub67.5%
cancel-sign-sub-inv67.5%
*-commutative67.5%
*-commutative67.5%
remove-double-neg67.5%
*-commutative67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in a around 0 53.0%
Taylor expanded in x around inf 52.7%
if -2.69999999999999978e124 < x < -1.00000000000000003e-117Initial program 71.2%
cancel-sign-sub71.2%
cancel-sign-sub-inv71.2%
*-commutative71.2%
*-commutative71.2%
remove-double-neg71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in b around inf 49.6%
Taylor expanded in a around inf 34.4%
if -1.00000000000000003e-117 < x < 2.8500000000000001e-266Initial program 72.5%
cancel-sign-sub72.5%
cancel-sign-sub-inv72.5%
*-commutative72.5%
*-commutative72.5%
remove-double-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in t around inf 37.0%
*-commutative37.0%
mul-1-neg37.0%
unsub-neg37.0%
Simplified37.0%
Taylor expanded in c around inf 35.0%
if 2.8500000000000001e-266 < x < 1.2800000000000001e-191Initial program 39.6%
+-commutative39.6%
fma-def52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in j around 0 52.4%
Taylor expanded in i around inf 27.1%
associate-*r*26.9%
*-commutative26.9%
associate-*r*32.7%
Simplified32.7%
if 1.2800000000000001e-191 < x < 3.6999999999999997e101Initial program 68.1%
cancel-sign-sub68.1%
cancel-sign-sub-inv68.1%
*-commutative68.1%
*-commutative68.1%
remove-double-neg68.1%
*-commutative68.1%
*-commutative68.1%
Simplified68.1%
Taylor expanded in t around inf 48.9%
*-commutative48.9%
mul-1-neg48.9%
unsub-neg48.9%
Simplified48.9%
Taylor expanded in c around inf 28.2%
associate-*r*32.3%
*-commutative32.3%
Simplified32.3%
if 3.6999999999999997e101 < x Initial program 52.2%
cancel-sign-sub52.2%
cancel-sign-sub-inv52.2%
*-commutative52.2%
*-commutative52.2%
remove-double-neg52.2%
*-commutative52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in a around 0 37.1%
Taylor expanded in x around inf 39.6%
*-commutative39.6%
associate-*l*41.9%
*-commutative41.9%
Simplified41.9%
Final simplification38.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))))
(if (<= y -1.5e+126)
(* y (* x z))
(if (<= y -1.5e-108)
t_1
(if (<= y 1.35e-164)
(* t (* c j))
(if (<= y 9.2e-74) t_1 (* z (* x y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (y <= -1.5e+126) {
tmp = y * (x * z);
} else if (y <= -1.5e-108) {
tmp = t_1;
} else if (y <= 1.35e-164) {
tmp = t * (c * j);
} else if (y <= 9.2e-74) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * i)
if (y <= (-1.5d+126)) then
tmp = y * (x * z)
else if (y <= (-1.5d-108)) then
tmp = t_1
else if (y <= 1.35d-164) then
tmp = t * (c * j)
else if (y <= 9.2d-74) then
tmp = t_1
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (y <= -1.5e+126) {
tmp = y * (x * z);
} else if (y <= -1.5e-108) {
tmp = t_1;
} else if (y <= 1.35e-164) {
tmp = t * (c * j);
} else if (y <= 9.2e-74) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if y <= -1.5e+126: tmp = y * (x * z) elif y <= -1.5e-108: tmp = t_1 elif y <= 1.35e-164: tmp = t * (c * j) elif y <= 9.2e-74: tmp = t_1 else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) tmp = 0.0 if (y <= -1.5e+126) tmp = Float64(y * Float64(x * z)); elseif (y <= -1.5e-108) tmp = t_1; elseif (y <= 1.35e-164) tmp = Float64(t * Float64(c * j)); elseif (y <= 9.2e-74) tmp = t_1; else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); tmp = 0.0; if (y <= -1.5e+126) tmp = y * (x * z); elseif (y <= -1.5e-108) tmp = t_1; elseif (y <= 1.35e-164) tmp = t * (c * j); elseif (y <= 9.2e-74) tmp = t_1; else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.5e+126], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.5e-108], t$95$1, If[LessEqual[y, 1.35e-164], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.2e-74], t$95$1, N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+126}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq -1.5 \cdot 10^{-108}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{-164}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{-74}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -1.5000000000000001e126Initial program 40.2%
cancel-sign-sub40.2%
cancel-sign-sub-inv40.2%
*-commutative40.2%
*-commutative40.2%
remove-double-neg40.2%
*-commutative40.2%
*-commutative40.2%
Simplified40.2%
Taylor expanded in a around 0 57.0%
Taylor expanded in x around inf 34.4%
if -1.5000000000000001e126 < y < -1.49999999999999996e-108 or 1.3500000000000001e-164 < y < 9.19999999999999922e-74Initial program 65.4%
+-commutative65.4%
fma-def69.4%
*-commutative69.4%
*-commutative69.4%
*-commutative69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in j around 0 64.1%
Taylor expanded in i around inf 36.3%
if -1.49999999999999996e-108 < y < 1.3500000000000001e-164Initial program 85.7%
cancel-sign-sub85.7%
cancel-sign-sub-inv85.7%
*-commutative85.7%
*-commutative85.7%
remove-double-neg85.7%
*-commutative85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in t around inf 57.1%
*-commutative57.1%
mul-1-neg57.1%
unsub-neg57.1%
Simplified57.1%
Taylor expanded in c around inf 30.9%
*-commutative30.9%
associate-*l*32.3%
*-commutative32.3%
Simplified32.3%
if 9.19999999999999922e-74 < y Initial program 57.2%
cancel-sign-sub57.2%
cancel-sign-sub-inv57.2%
*-commutative57.2%
*-commutative57.2%
remove-double-neg57.2%
*-commutative57.2%
*-commutative57.2%
Simplified57.2%
Taylor expanded in a around 0 57.6%
Taylor expanded in x around inf 36.5%
*-commutative36.5%
associate-*l*39.0%
*-commutative39.0%
Simplified39.0%
Final simplification35.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -3.15e+128)
(* y (* x z))
(if (<= y -1.6e-108)
(* a (* b i))
(if (<= y 3e-164)
(* j (* t c))
(if (<= y 4.8e-74) (* b (* a i)) (* x (* y z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.15e+128) {
tmp = y * (x * z);
} else if (y <= -1.6e-108) {
tmp = a * (b * i);
} else if (y <= 3e-164) {
tmp = j * (t * c);
} else if (y <= 4.8e-74) {
tmp = b * (a * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-3.15d+128)) then
tmp = y * (x * z)
else if (y <= (-1.6d-108)) then
tmp = a * (b * i)
else if (y <= 3d-164) then
tmp = j * (t * c)
else if (y <= 4.8d-74) then
tmp = b * (a * i)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.15e+128) {
tmp = y * (x * z);
} else if (y <= -1.6e-108) {
tmp = a * (b * i);
} else if (y <= 3e-164) {
tmp = j * (t * c);
} else if (y <= 4.8e-74) {
tmp = b * (a * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -3.15e+128: tmp = y * (x * z) elif y <= -1.6e-108: tmp = a * (b * i) elif y <= 3e-164: tmp = j * (t * c) elif y <= 4.8e-74: tmp = b * (a * i) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -3.15e+128) tmp = Float64(y * Float64(x * z)); elseif (y <= -1.6e-108) tmp = Float64(a * Float64(b * i)); elseif (y <= 3e-164) tmp = Float64(j * Float64(t * c)); elseif (y <= 4.8e-74) tmp = Float64(b * Float64(a * i)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -3.15e+128) tmp = y * (x * z); elseif (y <= -1.6e-108) tmp = a * (b * i); elseif (y <= 3e-164) tmp = j * (t * c); elseif (y <= 4.8e-74) tmp = b * (a * i); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -3.15e+128], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.6e-108], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3e-164], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e-74], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.15 \cdot 10^{+128}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq -1.6 \cdot 10^{-108}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;y \leq 3 \cdot 10^{-164}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-74}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -3.1499999999999999e128Initial program 40.2%
cancel-sign-sub40.2%
cancel-sign-sub-inv40.2%
*-commutative40.2%
*-commutative40.2%
remove-double-neg40.2%
*-commutative40.2%
*-commutative40.2%
Simplified40.2%
Taylor expanded in a around 0 57.0%
Taylor expanded in x around inf 34.4%
if -3.1499999999999999e128 < y < -1.6e-108Initial program 60.3%
+-commutative60.3%
fma-def64.6%
*-commutative64.6%
*-commutative64.6%
*-commutative64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in j around 0 63.4%
Taylor expanded in i around inf 37.1%
if -1.6e-108 < y < 3.0000000000000001e-164Initial program 85.7%
cancel-sign-sub85.7%
cancel-sign-sub-inv85.7%
*-commutative85.7%
*-commutative85.7%
remove-double-neg85.7%
*-commutative85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in t around inf 57.1%
*-commutative57.1%
mul-1-neg57.1%
unsub-neg57.1%
Simplified57.1%
Taylor expanded in c around inf 30.9%
associate-*r*33.6%
*-commutative33.6%
Simplified33.6%
if 3.0000000000000001e-164 < y < 4.7999999999999998e-74Initial program 74.2%
cancel-sign-sub74.2%
cancel-sign-sub-inv74.2%
*-commutative74.2%
*-commutative74.2%
remove-double-neg74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in b around inf 58.2%
Taylor expanded in a around inf 38.3%
if 4.7999999999999998e-74 < y Initial program 57.2%
+-commutative57.2%
fma-def62.4%
*-commutative62.4%
*-commutative62.4%
*-commutative62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in j around 0 57.4%
Taylor expanded in x around inf 52.8%
Taylor expanded in y around inf 42.7%
Final simplification37.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -2.5e+56) (not (<= t 1.4e+109))) (* c (* t j)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -2.5e+56) || !(t <= 1.4e+109)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-2.5d+56)) .or. (.not. (t <= 1.4d+109))) then
tmp = c * (t * j)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -2.5e+56) || !(t <= 1.4e+109)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -2.5e+56) or not (t <= 1.4e+109): tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -2.5e+56) || !(t <= 1.4e+109)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -2.5e+56) || ~((t <= 1.4e+109))) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -2.5e+56], N[Not[LessEqual[t, 1.4e+109]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.5 \cdot 10^{+56} \lor \neg \left(t \leq 1.4 \cdot 10^{+109}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if t < -2.50000000000000012e56 or 1.4000000000000001e109 < t Initial program 53.2%
cancel-sign-sub53.2%
cancel-sign-sub-inv53.2%
*-commutative53.2%
*-commutative53.2%
remove-double-neg53.2%
*-commutative53.2%
*-commutative53.2%
Simplified53.2%
Taylor expanded in t around inf 71.1%
*-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
Simplified71.1%
Taylor expanded in c around inf 37.5%
if -2.50000000000000012e56 < t < 1.4000000000000001e109Initial program 72.9%
+-commutative72.9%
fma-def76.8%
*-commutative76.8%
*-commutative76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in j around 0 64.8%
Taylor expanded in i around inf 22.2%
Final simplification28.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -3.9e+56) (not (<= t 8.5e+138))) (* c (* t j)) (* i (* a b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -3.9e+56) || !(t <= 8.5e+138)) {
tmp = c * (t * j);
} else {
tmp = i * (a * 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 ((t <= (-3.9d+56)) .or. (.not. (t <= 8.5d+138))) then
tmp = c * (t * j)
else
tmp = i * (a * 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 ((t <= -3.9e+56) || !(t <= 8.5e+138)) {
tmp = c * (t * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -3.9e+56) or not (t <= 8.5e+138): tmp = c * (t * j) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -3.9e+56) || !(t <= 8.5e+138)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -3.9e+56) || ~((t <= 8.5e+138))) tmp = c * (t * j); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -3.9e+56], N[Not[LessEqual[t, 8.5e+138]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.9 \cdot 10^{+56} \lor \neg \left(t \leq 8.5 \cdot 10^{+138}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if t < -3.89999999999999994e56 or 8.5000000000000006e138 < t Initial program 53.8%
cancel-sign-sub53.8%
cancel-sign-sub-inv53.8%
*-commutative53.8%
*-commutative53.8%
remove-double-neg53.8%
*-commutative53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in t around inf 72.1%
*-commutative72.1%
mul-1-neg72.1%
unsub-neg72.1%
Simplified72.1%
Taylor expanded in c around inf 39.2%
if -3.89999999999999994e56 < t < 8.5000000000000006e138Initial program 71.6%
+-commutative71.6%
fma-def75.3%
*-commutative75.3%
*-commutative75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in j around 0 64.5%
Taylor expanded in i around inf 21.3%
associate-*r*25.4%
*-commutative25.4%
associate-*r*22.4%
Simplified22.4%
Final simplification28.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -1.05e-117) (* t (* c j)) (if (<= c 5.3e+151) (* i (* a b)) (* c (* t j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.05e-117) {
tmp = t * (c * j);
} else if (c <= 5.3e+151) {
tmp = i * (a * b);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-1.05d-117)) then
tmp = t * (c * j)
else if (c <= 5.3d+151) then
tmp = i * (a * b)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.05e-117) {
tmp = t * (c * j);
} else if (c <= 5.3e+151) {
tmp = i * (a * b);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -1.05e-117: tmp = t * (c * j) elif c <= 5.3e+151: tmp = i * (a * b) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.05e-117) tmp = Float64(t * Float64(c * j)); elseif (c <= 5.3e+151) tmp = Float64(i * Float64(a * b)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -1.05e-117) tmp = t * (c * j); elseif (c <= 5.3e+151) tmp = i * (a * b); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.05e-117], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.3e+151], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.05 \cdot 10^{-117}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq 5.3 \cdot 10^{+151}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if c < -1.05e-117Initial program 64.7%
cancel-sign-sub64.7%
cancel-sign-sub-inv64.7%
*-commutative64.7%
*-commutative64.7%
remove-double-neg64.7%
*-commutative64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in t around inf 39.7%
*-commutative39.7%
mul-1-neg39.7%
unsub-neg39.7%
Simplified39.7%
Taylor expanded in c around inf 23.3%
*-commutative23.3%
associate-*l*25.4%
*-commutative25.4%
Simplified25.4%
if -1.05e-117 < c < 5.29999999999999999e151Initial program 67.3%
+-commutative67.3%
fma-def71.0%
*-commutative71.0%
*-commutative71.0%
*-commutative71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in j around 0 62.7%
Taylor expanded in i around inf 26.1%
associate-*r*31.0%
*-commutative31.0%
associate-*r*27.5%
Simplified27.5%
if 5.29999999999999999e151 < c Initial program 56.4%
cancel-sign-sub56.4%
cancel-sign-sub-inv56.4%
*-commutative56.4%
*-commutative56.4%
remove-double-neg56.4%
*-commutative56.4%
*-commutative56.4%
Simplified56.4%
Taylor expanded in t around inf 54.3%
*-commutative54.3%
mul-1-neg54.3%
unsub-neg54.3%
Simplified54.3%
Taylor expanded in c around inf 47.9%
Final simplification29.3%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 65.0%
+-commutative65.0%
fma-def67.8%
*-commutative67.8%
*-commutative67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in j around 0 58.5%
Taylor expanded in i around inf 20.1%
Final simplification20.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023185
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))