
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 28 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b c) (* x y)))
(t_2
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_2 INFINITY)
t_2
(* z (cbrt (* (- (* x y) (* b c)) (* t_1 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 * c) - (x * y);
double t_2 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = z * cbrt((((x * y) - (b * c)) * (t_1 * t_1)));
}
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 = (b * c) - (x * y);
double t_2 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = z * Math.cbrt((((x * y) - (b * c)) * (t_1 * t_1)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * c) - Float64(x * y)) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(z * cbrt(Float64(Float64(Float64(x * y) - Float64(b * c)) * Float64(t_1 * t_1)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(z * N[Power[N[(N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision] * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c - x \cdot y\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_2 \leq \infty:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;z \cdot \sqrt[3]{\left(x \cdot y - b \cdot c\right) \cdot \left(t_1 \cdot t_1\right)}\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.4%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
associate-+l-0.0%
*-commutative0.0%
sub-neg0.0%
sub-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around inf 49.0%
add-cbrt-cube55.6%
fma-neg55.6%
*-commutative55.6%
fma-neg55.6%
*-commutative55.6%
fma-neg57.3%
*-commutative57.3%
Applied egg-rr57.3%
associate-*l*57.3%
fma-neg55.6%
*-commutative55.6%
*-commutative55.6%
fma-neg55.6%
*-commutative55.6%
*-commutative55.6%
fma-neg55.6%
*-commutative55.6%
*-commutative55.6%
Simplified55.6%
Final simplification83.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY)
t_1
(+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* x t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.4%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
+-commutative0.0%
fma-def12.1%
*-commutative12.1%
*-commutative12.1%
Simplified12.1%
Taylor expanded in b around 0 24.1%
Taylor expanded in a around -inf 41.5%
+-commutative41.5%
mul-1-neg41.5%
unsub-neg41.5%
associate-*r*39.8%
*-commutative39.8%
associate-*r*38.1%
neg-mul-138.1%
distribute-rgt-neg-in38.1%
mul-1-neg38.1%
distribute-lft-in50.1%
+-commutative50.1%
mul-1-neg50.1%
unsub-neg50.1%
*-commutative50.1%
*-commutative50.1%
Simplified50.1%
Final simplification82.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* x t))))))
(if (<= b -5e+41)
(+ (* z (* x y)) t_1)
(if (<= b 3.5e-272)
t_2
(if (<= b 1e-202)
(* t (- (* b i) (* x a)))
(if (<= b 8e-115)
t_2
(if (<= b 7.5e-54)
(* z (- (* x y) (* b c)))
(if (<= b 4.6e+54) t_2 (- t_1 (* y (* 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 = b * ((t * i) - (z * c));
double t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
double tmp;
if (b <= -5e+41) {
tmp = (z * (x * y)) + t_1;
} else if (b <= 3.5e-272) {
tmp = t_2;
} else if (b <= 1e-202) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 8e-115) {
tmp = t_2;
} else if (b <= 7.5e-54) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 4.6e+54) {
tmp = t_2;
} else {
tmp = t_1 - (y * (i * 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 = b * ((t * i) - (z * c))
t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)))
if (b <= (-5d+41)) then
tmp = (z * (x * y)) + t_1
else if (b <= 3.5d-272) then
tmp = t_2
else if (b <= 1d-202) then
tmp = t * ((b * i) - (x * a))
else if (b <= 8d-115) then
tmp = t_2
else if (b <= 7.5d-54) then
tmp = z * ((x * y) - (b * c))
else if (b <= 4.6d+54) then
tmp = t_2
else
tmp = t_1 - (y * (i * 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 = b * ((t * i) - (z * c));
double t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
double tmp;
if (b <= -5e+41) {
tmp = (z * (x * y)) + t_1;
} else if (b <= 3.5e-272) {
tmp = t_2;
} else if (b <= 1e-202) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 8e-115) {
tmp = t_2;
} else if (b <= 7.5e-54) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 4.6e+54) {
tmp = t_2;
} else {
tmp = t_1 - (y * (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))) tmp = 0 if b <= -5e+41: tmp = (z * (x * y)) + t_1 elif b <= 3.5e-272: tmp = t_2 elif b <= 1e-202: tmp = t * ((b * i) - (x * a)) elif b <= 8e-115: tmp = t_2 elif b <= 7.5e-54: tmp = z * ((x * y) - (b * c)) elif b <= 4.6e+54: tmp = t_2 else: tmp = t_1 - (y * (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t)))) tmp = 0.0 if (b <= -5e+41) tmp = Float64(Float64(z * Float64(x * y)) + t_1); elseif (b <= 3.5e-272) tmp = t_2; elseif (b <= 1e-202) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (b <= 8e-115) tmp = t_2; elseif (b <= 7.5e-54) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= 4.6e+54) tmp = t_2; else tmp = Float64(t_1 - Float64(y * Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))); tmp = 0.0; if (b <= -5e+41) tmp = (z * (x * y)) + t_1; elseif (b <= 3.5e-272) tmp = t_2; elseif (b <= 1e-202) tmp = t * ((b * i) - (x * a)); elseif (b <= 8e-115) tmp = t_2; elseif (b <= 7.5e-54) tmp = z * ((x * y) - (b * c)); elseif (b <= 4.6e+54) tmp = t_2; else tmp = t_1 - (y * (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5e+41], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 3.5e-272], t$95$2, If[LessEqual[b, 1e-202], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e-115], t$95$2, If[LessEqual[b, 7.5e-54], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.6e+54], t$95$2, N[(t$95$1 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;b \leq -5 \cdot 10^{+41}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) + t_1\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{-272}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 10^{-202}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-115}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-54}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq 4.6 \cdot 10^{+54}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1 - y \cdot \left(i \cdot j\right)\\
\end{array}
\end{array}
if b < -5.00000000000000022e41Initial program 69.4%
+-commutative69.4%
fma-def74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in a around 0 72.7%
Taylor expanded in j around 0 69.9%
*-commutative69.9%
associate-*r*74.3%
*-commutative74.3%
*-commutative74.3%
*-commutative74.3%
*-commutative74.3%
Simplified74.3%
if -5.00000000000000022e41 < b < 3.4999999999999997e-272 or 1e-202 < b < 8.0000000000000004e-115 or 7.5000000000000005e-54 < b < 4.59999999999999988e54Initial program 71.8%
+-commutative71.8%
fma-def74.3%
*-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in b around 0 69.3%
Taylor expanded in a around -inf 68.1%
+-commutative68.1%
mul-1-neg68.1%
unsub-neg68.1%
associate-*r*68.4%
*-commutative68.4%
associate-*r*69.7%
neg-mul-169.7%
distribute-rgt-neg-in69.7%
mul-1-neg69.7%
distribute-lft-in74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
if 3.4999999999999997e-272 < b < 1e-202Initial program 56.3%
associate-+l-56.3%
*-commutative56.3%
sub-neg56.3%
sub-neg56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in t around inf 75.7%
distribute-lft-out--75.7%
associate-*r*75.7%
mul-1-neg75.7%
*-commutative75.7%
Simplified75.7%
if 8.0000000000000004e-115 < b < 7.5000000000000005e-54Initial program 65.5%
associate-+l-65.5%
*-commutative65.5%
sub-neg65.5%
sub-neg65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in z around inf 82.0%
if 4.59999999999999988e54 < b Initial program 76.0%
+-commutative76.0%
fma-def76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in a around 0 67.3%
Taylor expanded in x around 0 74.0%
*-commutative74.0%
*-commutative74.0%
*-commutative74.0%
mul-1-neg74.0%
associate-*r*76.1%
*-commutative76.1%
associate-*r*76.1%
distribute-rgt-neg-in76.1%
*-commutative76.1%
distribute-rgt-neg-in76.1%
Simplified76.1%
Final simplification74.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (+ t_2 (* a (- (* c j) (* x t))))))
(if (<= b -1.3e+37)
(+ t_2 t_1)
(if (<= b 3.5e-272)
t_3
(if (<= b 1e-202)
(* t (- (* b i) (* x a)))
(if (<= b 8e-115)
t_3
(if (<= b 7e-54)
(* z (- (* x y) (* b c)))
(if (<= b 1.25e+54) t_3 (- t_1 (* y (* 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 = b * ((t * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double t_3 = t_2 + (a * ((c * j) - (x * t)));
double tmp;
if (b <= -1.3e+37) {
tmp = t_2 + t_1;
} else if (b <= 3.5e-272) {
tmp = t_3;
} else if (b <= 1e-202) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 8e-115) {
tmp = t_3;
} else if (b <= 7e-54) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 1.25e+54) {
tmp = t_3;
} else {
tmp = t_1 - (y * (i * 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 = b * ((t * i) - (z * c))
t_2 = y * ((x * z) - (i * j))
t_3 = t_2 + (a * ((c * j) - (x * t)))
if (b <= (-1.3d+37)) then
tmp = t_2 + t_1
else if (b <= 3.5d-272) then
tmp = t_3
else if (b <= 1d-202) then
tmp = t * ((b * i) - (x * a))
else if (b <= 8d-115) then
tmp = t_3
else if (b <= 7d-54) then
tmp = z * ((x * y) - (b * c))
else if (b <= 1.25d+54) then
tmp = t_3
else
tmp = t_1 - (y * (i * 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 = b * ((t * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double t_3 = t_2 + (a * ((c * j) - (x * t)));
double tmp;
if (b <= -1.3e+37) {
tmp = t_2 + t_1;
} else if (b <= 3.5e-272) {
tmp = t_3;
} else if (b <= 1e-202) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 8e-115) {
tmp = t_3;
} else if (b <= 7e-54) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 1.25e+54) {
tmp = t_3;
} else {
tmp = t_1 - (y * (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = y * ((x * z) - (i * j)) t_3 = t_2 + (a * ((c * j) - (x * t))) tmp = 0 if b <= -1.3e+37: tmp = t_2 + t_1 elif b <= 3.5e-272: tmp = t_3 elif b <= 1e-202: tmp = t * ((b * i) - (x * a)) elif b <= 8e-115: tmp = t_3 elif b <= 7e-54: tmp = z * ((x * y) - (b * c)) elif b <= 1.25e+54: tmp = t_3 else: tmp = t_1 - (y * (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(t_2 + Float64(a * Float64(Float64(c * j) - Float64(x * t)))) tmp = 0.0 if (b <= -1.3e+37) tmp = Float64(t_2 + t_1); elseif (b <= 3.5e-272) tmp = t_3; elseif (b <= 1e-202) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (b <= 8e-115) tmp = t_3; elseif (b <= 7e-54) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= 1.25e+54) tmp = t_3; else tmp = Float64(t_1 - Float64(y * Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = y * ((x * z) - (i * j)); t_3 = t_2 + (a * ((c * j) - (x * t))); tmp = 0.0; if (b <= -1.3e+37) tmp = t_2 + t_1; elseif (b <= 3.5e-272) tmp = t_3; elseif (b <= 1e-202) tmp = t * ((b * i) - (x * a)); elseif (b <= 8e-115) tmp = t_3; elseif (b <= 7e-54) tmp = z * ((x * y) - (b * c)); elseif (b <= 1.25e+54) tmp = t_3; else tmp = t_1 - (y * (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.3e+37], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[b, 3.5e-272], t$95$3, If[LessEqual[b, 1e-202], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e-115], t$95$3, If[LessEqual[b, 7e-54], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e+54], t$95$3, N[(t$95$1 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := t_2 + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;b \leq -1.3 \cdot 10^{+37}:\\
\;\;\;\;t_2 + t_1\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{-272}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 10^{-202}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-115}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-54}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{+54}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1 - y \cdot \left(i \cdot j\right)\\
\end{array}
\end{array}
if b < -1.3e37Initial program 70.3%
associate-+l-70.3%
*-commutative70.3%
sub-neg70.3%
sub-neg70.3%
*-commutative70.3%
Simplified70.3%
add-cube-cbrt70.3%
pow370.3%
*-commutative70.3%
Applied egg-rr70.3%
Taylor expanded in a around 0 73.5%
neg-mul-173.5%
distribute-rgt-neg-in73.5%
mul-1-neg73.5%
pow-base-173.5%
*-lft-identity73.5%
distribute-lft-in75.0%
+-commutative75.0%
mul-1-neg75.0%
unsub-neg75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
if -1.3e37 < b < 3.4999999999999997e-272 or 1e-202 < b < 8.0000000000000004e-115 or 6.99999999999999964e-54 < b < 1.25000000000000001e54Initial program 71.3%
+-commutative71.3%
fma-def73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in b around 0 69.6%
Taylor expanded in a around -inf 68.4%
+-commutative68.4%
mul-1-neg68.4%
unsub-neg68.4%
associate-*r*68.7%
*-commutative68.7%
associate-*r*70.0%
neg-mul-170.0%
distribute-rgt-neg-in70.0%
mul-1-neg70.0%
distribute-lft-in74.4%
+-commutative74.4%
mul-1-neg74.4%
unsub-neg74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
if 3.4999999999999997e-272 < b < 1e-202Initial program 56.3%
associate-+l-56.3%
*-commutative56.3%
sub-neg56.3%
sub-neg56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in t around inf 75.7%
distribute-lft-out--75.7%
associate-*r*75.7%
mul-1-neg75.7%
*-commutative75.7%
Simplified75.7%
if 8.0000000000000004e-115 < b < 6.99999999999999964e-54Initial program 65.5%
associate-+l-65.5%
*-commutative65.5%
sub-neg65.5%
sub-neg65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in z around inf 82.0%
if 1.25000000000000001e54 < b Initial program 76.0%
+-commutative76.0%
fma-def76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in a around 0 67.3%
Taylor expanded in x around 0 74.0%
*-commutative74.0%
*-commutative74.0%
*-commutative74.0%
mul-1-neg74.0%
associate-*r*76.1%
*-commutative76.1%
associate-*r*76.1%
distribute-rgt-neg-in76.1%
*-commutative76.1%
distribute-rgt-neg-in76.1%
Simplified76.1%
Final simplification75.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (- (- (* c (* a j)) (* x (- (* t a) (* y z)))) (* c (* z b))))
(t_3 (* y (- (* x z) (* i j))))
(t_4 (+ t_3 (* a (- (* c j) (* x t))))))
(if (<= b -4.9e+36)
(+ t_3 t_1)
(if (<= b -2.9e-240)
t_4
(if (<= b 5.1e-210)
t_2
(if (<= b 1.6e-133)
t_4
(if (<= b 1.4e-40) t_2 (+ (* j (- (* a 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 * ((t * i) - (z * c));
double t_2 = ((c * (a * j)) - (x * ((t * a) - (y * z)))) - (c * (z * b));
double t_3 = y * ((x * z) - (i * j));
double t_4 = t_3 + (a * ((c * j) - (x * t)));
double tmp;
if (b <= -4.9e+36) {
tmp = t_3 + t_1;
} else if (b <= -2.9e-240) {
tmp = t_4;
} else if (b <= 5.1e-210) {
tmp = t_2;
} else if (b <= 1.6e-133) {
tmp = t_4;
} else if (b <= 1.4e-40) {
tmp = t_2;
} else {
tmp = (j * ((a * c) - (y * i))) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = ((c * (a * j)) - (x * ((t * a) - (y * z)))) - (c * (z * b))
t_3 = y * ((x * z) - (i * j))
t_4 = t_3 + (a * ((c * j) - (x * t)))
if (b <= (-4.9d+36)) then
tmp = t_3 + t_1
else if (b <= (-2.9d-240)) then
tmp = t_4
else if (b <= 5.1d-210) then
tmp = t_2
else if (b <= 1.6d-133) then
tmp = t_4
else if (b <= 1.4d-40) then
tmp = t_2
else
tmp = (j * ((a * c) - (y * i))) + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = ((c * (a * j)) - (x * ((t * a) - (y * z)))) - (c * (z * b));
double t_3 = y * ((x * z) - (i * j));
double t_4 = t_3 + (a * ((c * j) - (x * t)));
double tmp;
if (b <= -4.9e+36) {
tmp = t_3 + t_1;
} else if (b <= -2.9e-240) {
tmp = t_4;
} else if (b <= 5.1e-210) {
tmp = t_2;
} else if (b <= 1.6e-133) {
tmp = t_4;
} else if (b <= 1.4e-40) {
tmp = t_2;
} else {
tmp = (j * ((a * c) - (y * i))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = ((c * (a * j)) - (x * ((t * a) - (y * z)))) - (c * (z * b)) t_3 = y * ((x * z) - (i * j)) t_4 = t_3 + (a * ((c * j) - (x * t))) tmp = 0 if b <= -4.9e+36: tmp = t_3 + t_1 elif b <= -2.9e-240: tmp = t_4 elif b <= 5.1e-210: tmp = t_2 elif b <= 1.6e-133: tmp = t_4 elif b <= 1.4e-40: tmp = t_2 else: tmp = (j * ((a * c) - (y * i))) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(Float64(Float64(c * Float64(a * j)) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) - Float64(c * Float64(z * b))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_4 = Float64(t_3 + Float64(a * Float64(Float64(c * j) - Float64(x * t)))) tmp = 0.0 if (b <= -4.9e+36) tmp = Float64(t_3 + t_1); elseif (b <= -2.9e-240) tmp = t_4; elseif (b <= 5.1e-210) tmp = t_2; elseif (b <= 1.6e-133) tmp = t_4; elseif (b <= 1.4e-40) tmp = t_2; else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = ((c * (a * j)) - (x * ((t * a) - (y * z)))) - (c * (z * b)); t_3 = y * ((x * z) - (i * j)); t_4 = t_3 + (a * ((c * j) - (x * t))); tmp = 0.0; if (b <= -4.9e+36) tmp = t_3 + t_1; elseif (b <= -2.9e-240) tmp = t_4; elseif (b <= 5.1e-210) tmp = t_2; elseif (b <= 1.6e-133) tmp = t_4; elseif (b <= 1.4e-40) tmp = t_2; else tmp = (j * ((a * c) - (y * i))) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.9e+36], N[(t$95$3 + t$95$1), $MachinePrecision], If[LessEqual[b, -2.9e-240], t$95$4, If[LessEqual[b, 5.1e-210], t$95$2, If[LessEqual[b, 1.6e-133], t$95$4, If[LessEqual[b, 1.4e-40], t$95$2, N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := \left(c \cdot \left(a \cdot j\right) - x \cdot \left(t \cdot a - y \cdot z\right)\right) - c \cdot \left(z \cdot b\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_4 := t_3 + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;b \leq -4.9 \cdot 10^{+36}:\\
\;\;\;\;t_3 + t_1\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{-240}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq 5.1 \cdot 10^{-210}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-133}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{-40}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t_1\\
\end{array}
\end{array}
if b < -4.89999999999999981e36Initial program 70.3%
associate-+l-70.3%
*-commutative70.3%
sub-neg70.3%
sub-neg70.3%
*-commutative70.3%
Simplified70.3%
add-cube-cbrt70.3%
pow370.3%
*-commutative70.3%
Applied egg-rr70.3%
Taylor expanded in a around 0 73.5%
neg-mul-173.5%
distribute-rgt-neg-in73.5%
mul-1-neg73.5%
pow-base-173.5%
*-lft-identity73.5%
distribute-lft-in75.0%
+-commutative75.0%
mul-1-neg75.0%
unsub-neg75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
if -4.89999999999999981e36 < b < -2.9000000000000002e-240 or 5.09999999999999995e-210 < b < 1.60000000000000006e-133Initial program 71.6%
+-commutative71.6%
fma-def73.0%
*-commutative73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in b around 0 70.0%
Taylor expanded in a around -inf 73.9%
+-commutative73.9%
mul-1-neg73.9%
unsub-neg73.9%
associate-*r*73.9%
*-commutative73.9%
associate-*r*78.1%
neg-mul-178.1%
distribute-rgt-neg-in78.1%
mul-1-neg78.1%
distribute-lft-in79.5%
+-commutative79.5%
mul-1-neg79.5%
unsub-neg79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
if -2.9000000000000002e-240 < b < 5.09999999999999995e-210 or 1.60000000000000006e-133 < b < 1.4e-40Initial program 61.4%
associate-+l-61.4%
*-commutative61.4%
sub-neg61.4%
sub-neg61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in i around 0 76.3%
if 1.4e-40 < b Initial program 79.0%
+-commutative79.0%
fma-def79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
Taylor expanded in x around 0 83.8%
Final simplification78.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* y z) (* t a))) (* y (* i j))))
(t_2 (* j (- (* a c) (* y i)))))
(if (<= j -7e+90)
t_2
(if (<= j -1.4e+52)
t_1
(if (<= j -2.5e-140)
(* c (- (* a j) (* z b)))
(if (<= j -2.3e-305)
(* t (- (* b i) (* x a)))
(if (<= j 6.5e-38)
(* z (- (* x y) (* b c)))
(if (<= j 3.55e+158) 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))) - (y * (i * j));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -7e+90) {
tmp = t_2;
} else if (j <= -1.4e+52) {
tmp = t_1;
} else if (j <= -2.5e-140) {
tmp = c * ((a * j) - (z * b));
} else if (j <= -2.3e-305) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 6.5e-38) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 3.55e+158) {
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))) - (y * (i * j))
t_2 = j * ((a * c) - (y * i))
if (j <= (-7d+90)) then
tmp = t_2
else if (j <= (-1.4d+52)) then
tmp = t_1
else if (j <= (-2.5d-140)) then
tmp = c * ((a * j) - (z * b))
else if (j <= (-2.3d-305)) then
tmp = t * ((b * i) - (x * a))
else if (j <= 6.5d-38) then
tmp = z * ((x * y) - (b * c))
else if (j <= 3.55d+158) 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))) - (y * (i * j));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -7e+90) {
tmp = t_2;
} else if (j <= -1.4e+52) {
tmp = t_1;
} else if (j <= -2.5e-140) {
tmp = c * ((a * j) - (z * b));
} else if (j <= -2.3e-305) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 6.5e-38) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 3.55e+158) {
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))) - (y * (i * j)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if j <= -7e+90: tmp = t_2 elif j <= -1.4e+52: tmp = t_1 elif j <= -2.5e-140: tmp = c * ((a * j) - (z * b)) elif j <= -2.3e-305: tmp = t * ((b * i) - (x * a)) elif j <= 6.5e-38: tmp = z * ((x * y) - (b * c)) elif j <= 3.55e+158: 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(y * Float64(i * j))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -7e+90) tmp = t_2; elseif (j <= -1.4e+52) tmp = t_1; elseif (j <= -2.5e-140) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (j <= -2.3e-305) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 6.5e-38) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (j <= 3.55e+158) 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))) - (y * (i * j)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -7e+90) tmp = t_2; elseif (j <= -1.4e+52) tmp = t_1; elseif (j <= -2.5e-140) tmp = c * ((a * j) - (z * b)); elseif (j <= -2.3e-305) tmp = t * ((b * i) - (x * a)); elseif (j <= 6.5e-38) tmp = z * ((x * y) - (b * c)); elseif (j <= 3.55e+158) 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[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -7e+90], t$95$2, If[LessEqual[j, -1.4e+52], t$95$1, If[LessEqual[j, -2.5e-140], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.3e-305], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.5e-38], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.55e+158], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) - y \cdot \left(i \cdot j\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -7 \cdot 10^{+90}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -1.4 \cdot 10^{+52}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -2.5 \cdot 10^{-140}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;j \leq -2.3 \cdot 10^{-305}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{-38}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 3.55 \cdot 10^{+158}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -6.9999999999999997e90 or 3.5499999999999998e158 < j Initial program 69.2%
associate-+l-69.2%
*-commutative69.2%
sub-neg69.2%
sub-neg69.2%
*-commutative69.2%
Simplified69.2%
add-cube-cbrt69.2%
pow369.2%
*-commutative69.2%
Applied egg-rr69.2%
Taylor expanded in j around -inf 75.9%
if -6.9999999999999997e90 < j < -1.4e52 or 6.49999999999999949e-38 < j < 3.5499999999999998e158Initial program 71.2%
+-commutative71.2%
fma-def80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in b around 0 69.6%
Taylor expanded in c around 0 63.9%
*-commutative63.9%
*-commutative63.9%
*-commutative63.9%
associate-*r*69.7%
*-commutative69.7%
associate-*r*71.6%
neg-mul-171.6%
unsub-neg71.6%
*-commutative71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
if -1.4e52 < j < -2.50000000000000007e-140Initial program 70.3%
associate-+l-70.3%
*-commutative70.3%
sub-neg70.3%
sub-neg70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in c around inf 57.0%
*-commutative57.0%
Simplified57.0%
if -2.50000000000000007e-140 < j < -2.3e-305Initial program 69.1%
associate-+l-69.1%
*-commutative69.1%
sub-neg69.1%
sub-neg69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in t around inf 63.8%
distribute-lft-out--63.8%
associate-*r*63.8%
mul-1-neg63.8%
*-commutative63.8%
Simplified63.8%
if -2.3e-305 < j < 6.49999999999999949e-38Initial program 73.5%
associate-+l-73.5%
*-commutative73.5%
sub-neg73.5%
sub-neg73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in z around inf 66.8%
Final simplification68.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -5.2e+75)
t_2
(if (<= j 1.25e-28)
(+ (* z (* x y)) (* b (- (* t i) (* z c))))
(if (<= j 19000.0)
(- t_1 (* y (* i j)))
(if (<= j 4.4e+111)
(+ (* y (- (* x z) (* i j))) (* i (* t b)))
(+ t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -5.2e+75) {
tmp = t_2;
} else if (j <= 1.25e-28) {
tmp = (z * (x * y)) + (b * ((t * i) - (z * c)));
} else if (j <= 19000.0) {
tmp = t_1 - (y * (i * j));
} else if (j <= 4.4e+111) {
tmp = (y * ((x * z) - (i * j))) + (i * (t * b));
} else {
tmp = t_1 + 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 = j * ((a * c) - (y * i))
if (j <= (-5.2d+75)) then
tmp = t_2
else if (j <= 1.25d-28) then
tmp = (z * (x * y)) + (b * ((t * i) - (z * c)))
else if (j <= 19000.0d0) then
tmp = t_1 - (y * (i * j))
else if (j <= 4.4d+111) then
tmp = (y * ((x * z) - (i * j))) + (i * (t * b))
else
tmp = t_1 + 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -5.2e+75) {
tmp = t_2;
} else if (j <= 1.25e-28) {
tmp = (z * (x * y)) + (b * ((t * i) - (z * c)));
} else if (j <= 19000.0) {
tmp = t_1 - (y * (i * j));
} else if (j <= 4.4e+111) {
tmp = (y * ((x * z) - (i * j))) + (i * (t * b));
} else {
tmp = t_1 + t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if j <= -5.2e+75: tmp = t_2 elif j <= 1.25e-28: tmp = (z * (x * y)) + (b * ((t * i) - (z * c))) elif j <= 19000.0: tmp = t_1 - (y * (i * j)) elif j <= 4.4e+111: tmp = (y * ((x * z) - (i * j))) + (i * (t * b)) else: tmp = t_1 + 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(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -5.2e+75) tmp = t_2; elseif (j <= 1.25e-28) tmp = Float64(Float64(z * Float64(x * y)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (j <= 19000.0) tmp = Float64(t_1 - Float64(y * Float64(i * j))); elseif (j <= 4.4e+111) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(i * Float64(t * b))); else tmp = Float64(t_1 + 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 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -5.2e+75) tmp = t_2; elseif (j <= 1.25e-28) tmp = (z * (x * y)) + (b * ((t * i) - (z * c))); elseif (j <= 19000.0) tmp = t_1 - (y * (i * j)); elseif (j <= 4.4e+111) tmp = (y * ((x * z) - (i * j))) + (i * (t * b)); else tmp = t_1 + 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5.2e+75], t$95$2, If[LessEqual[j, 1.25e-28], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 19000.0], N[(t$95$1 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.4e+111], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + t$95$2), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -5.2 \cdot 10^{+75}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.25 \cdot 10^{-28}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 19000:\\
\;\;\;\;t_1 - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{+111}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 + t_2\\
\end{array}
\end{array}
if j < -5.1999999999999997e75Initial program 69.4%
associate-+l-69.4%
*-commutative69.4%
sub-neg69.4%
sub-neg69.4%
*-commutative69.4%
Simplified69.4%
add-cube-cbrt69.4%
pow369.4%
*-commutative69.4%
Applied egg-rr69.4%
Taylor expanded in j around -inf 69.9%
if -5.1999999999999997e75 < j < 1.25e-28Initial program 72.9%
+-commutative72.9%
fma-def72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in a around 0 65.6%
Taylor expanded in j around 0 64.1%
*-commutative64.1%
associate-*r*68.1%
*-commutative68.1%
*-commutative68.1%
*-commutative68.1%
*-commutative68.1%
Simplified68.1%
if 1.25e-28 < j < 19000Initial program 59.8%
+-commutative59.8%
fma-def59.8%
*-commutative59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in b around 0 79.8%
Taylor expanded in c around 0 90.2%
*-commutative90.2%
*-commutative90.2%
*-commutative90.2%
associate-*r*90.2%
*-commutative90.2%
associate-*r*90.2%
neg-mul-190.2%
unsub-neg90.2%
*-commutative90.2%
*-commutative90.2%
*-commutative90.2%
Simplified90.2%
if 19000 < j < 4.39999999999999997e111Initial program 70.5%
associate-+l-70.5%
*-commutative70.5%
sub-neg70.5%
sub-neg70.5%
*-commutative70.5%
Simplified70.5%
add-cube-cbrt70.4%
pow370.4%
*-commutative70.4%
Applied egg-rr70.4%
Taylor expanded in a around 0 76.6%
neg-mul-176.6%
distribute-rgt-neg-in76.6%
mul-1-neg76.6%
pow-base-176.6%
*-lft-identity76.6%
distribute-lft-in82.5%
+-commutative82.5%
mul-1-neg82.5%
unsub-neg82.5%
*-commutative82.5%
*-commutative82.5%
*-commutative82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in c around 0 82.4%
associate-*r*82.4%
neg-mul-182.4%
Simplified82.4%
if 4.39999999999999997e111 < j Initial program 67.6%
+-commutative67.6%
fma-def74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in b around 0 74.5%
Final simplification71.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* a (- (* c j) (* x t)))))
(if (<= x -2.9e+161)
t_2
(if (<= x -4.4e+88)
(+ (* y (- (* x z) (* i j))) t_3)
(if (<= x 2.55e+92)
(+ (* j (- (* a c) (* y i))) t_1)
(if (<= x 4.2e+179) (+ t_2 t_1) (if (<= x 8e+218) t_3 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 * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (x <= -2.9e+161) {
tmp = t_2;
} else if (x <= -4.4e+88) {
tmp = (y * ((x * z) - (i * j))) + t_3;
} else if (x <= 2.55e+92) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} else if (x <= 4.2e+179) {
tmp = t_2 + t_1;
} else if (x <= 8e+218) {
tmp = t_3;
} 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) :: t_3
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = x * ((y * z) - (t * a))
t_3 = a * ((c * j) - (x * t))
if (x <= (-2.9d+161)) then
tmp = t_2
else if (x <= (-4.4d+88)) then
tmp = (y * ((x * z) - (i * j))) + t_3
else if (x <= 2.55d+92) then
tmp = (j * ((a * c) - (y * i))) + t_1
else if (x <= 4.2d+179) then
tmp = t_2 + t_1
else if (x <= 8d+218) then
tmp = t_3
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 * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (x <= -2.9e+161) {
tmp = t_2;
} else if (x <= -4.4e+88) {
tmp = (y * ((x * z) - (i * j))) + t_3;
} else if (x <= 2.55e+92) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} else if (x <= 4.2e+179) {
tmp = t_2 + t_1;
} else if (x <= 8e+218) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = x * ((y * z) - (t * a)) t_3 = a * ((c * j) - (x * t)) tmp = 0 if x <= -2.9e+161: tmp = t_2 elif x <= -4.4e+88: tmp = (y * ((x * z) - (i * j))) + t_3 elif x <= 2.55e+92: tmp = (j * ((a * c) - (y * i))) + t_1 elif x <= 4.2e+179: tmp = t_2 + t_1 elif x <= 8e+218: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (x <= -2.9e+161) tmp = t_2; elseif (x <= -4.4e+88) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_3); elseif (x <= 2.55e+92) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_1); elseif (x <= 4.2e+179) tmp = Float64(t_2 + t_1); elseif (x <= 8e+218) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = x * ((y * z) - (t * a)); t_3 = a * ((c * j) - (x * t)); tmp = 0.0; if (x <= -2.9e+161) tmp = t_2; elseif (x <= -4.4e+88) tmp = (y * ((x * z) - (i * j))) + t_3; elseif (x <= 2.55e+92) tmp = (j * ((a * c) - (y * i))) + t_1; elseif (x <= 4.2e+179) tmp = t_2 + t_1; elseif (x <= 8e+218) tmp = t_3; 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[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.9e+161], t$95$2, If[LessEqual[x, -4.4e+88], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision], If[LessEqual[x, 2.55e+92], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[x, 4.2e+179], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[x, 8e+218], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;x \leq -2.9 \cdot 10^{+161}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -4.4 \cdot 10^{+88}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t_3\\
\mathbf{elif}\;x \leq 2.55 \cdot 10^{+92}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t_1\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{+179}:\\
\;\;\;\;t_2 + t_1\\
\mathbf{elif}\;x \leq 8 \cdot 10^{+218}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -2.90000000000000016e161 or 8.00000000000000066e218 < x Initial program 70.9%
associate-+l-70.9%
*-commutative70.9%
sub-neg70.9%
sub-neg70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in x around inf 83.9%
if -2.90000000000000016e161 < x < -4.40000000000000017e88Initial program 64.1%
+-commutative64.1%
fma-def64.1%
*-commutative64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in b around 0 70.1%
Taylor expanded in a around -inf 76.6%
+-commutative76.6%
mul-1-neg76.6%
unsub-neg76.6%
associate-*r*83.9%
*-commutative83.9%
associate-*r*76.7%
neg-mul-176.7%
distribute-rgt-neg-in76.7%
mul-1-neg76.7%
distribute-lft-in83.9%
+-commutative83.9%
mul-1-neg83.9%
unsub-neg83.9%
*-commutative83.9%
*-commutative83.9%
Simplified83.9%
if -4.40000000000000017e88 < x < 2.5500000000000001e92Initial program 71.6%
+-commutative71.6%
fma-def72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in x around 0 70.3%
if 2.5500000000000001e92 < x < 4.1999999999999997e179Initial program 77.1%
associate-+l-77.1%
*-commutative77.1%
sub-neg77.1%
sub-neg77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in j around 0 86.2%
if 4.1999999999999997e179 < x < 8.00000000000000066e218Initial program 42.9%
associate-+l-42.9%
*-commutative42.9%
sub-neg42.9%
sub-neg42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in a around inf 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
Final simplification76.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -4.8e+159)
t_1
(if (<= x -1.2e+89)
(+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* x t))))
(if (<= x 8.5e+116)
(+ (* j (- (* a c) (* y i))) (* b (- (* t i) (* z c))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -4.8e+159) {
tmp = t_1;
} else if (x <= -1.2e+89) {
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
} else if (x <= 8.5e+116) {
tmp = (j * ((a * c) - (y * i))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (x <= (-4.8d+159)) then
tmp = t_1
else if (x <= (-1.2d+89)) then
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)))
else if (x <= 8.5d+116) then
tmp = (j * ((a * c) - (y * i))) + (b * ((t * i) - (z * c)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -4.8e+159) {
tmp = t_1;
} else if (x <= -1.2e+89) {
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
} else if (x <= 8.5e+116) {
tmp = (j * ((a * c) - (y * i))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -4.8e+159: tmp = t_1 elif x <= -1.2e+89: tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))) elif x <= 8.5e+116: tmp = (j * ((a * c) - (y * i))) + (b * ((t * i) - (z * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -4.8e+159) tmp = t_1; elseif (x <= -1.2e+89) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t)))); elseif (x <= 8.5e+116) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -4.8e+159) tmp = t_1; elseif (x <= -1.2e+89) tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))); elseif (x <= 8.5e+116) tmp = (j * ((a * c) - (y * i))) + (b * ((t * i) - (z * c))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.8e+159], t$95$1, If[LessEqual[x, -1.2e+89], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e+116], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -4.8 \cdot 10^{+159}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.2 \cdot 10^{+89}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+116}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -4.8e159 or 8.5000000000000002e116 < x Initial program 67.5%
associate-+l-67.5%
*-commutative67.5%
sub-neg67.5%
sub-neg67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in x around inf 80.8%
if -4.8e159 < x < -1.20000000000000002e89Initial program 64.1%
+-commutative64.1%
fma-def64.1%
*-commutative64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in b around 0 70.1%
Taylor expanded in a around -inf 76.6%
+-commutative76.6%
mul-1-neg76.6%
unsub-neg76.6%
associate-*r*83.9%
*-commutative83.9%
associate-*r*76.7%
neg-mul-176.7%
distribute-rgt-neg-in76.7%
mul-1-neg76.7%
distribute-lft-in83.9%
+-commutative83.9%
mul-1-neg83.9%
unsub-neg83.9%
*-commutative83.9%
*-commutative83.9%
Simplified83.9%
if -1.20000000000000002e89 < x < 8.5000000000000002e116Initial program 72.8%
+-commutative72.8%
fma-def74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in x around 0 69.8%
Final simplification73.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -2.4e+84)
t_2
(if (<= j -8.2e+33)
t_1
(if (<= j -2.2e+16)
(* a (- (* c j) (* x t)))
(if (<= j -2.6e-166)
(* b (- (* t i) (* z c)))
(if (<= j -2.9e-304)
t_1
(if (<= j 5.5e-38)
(* z (- (* x y) (* b c)))
(if (<= j 2.85e+158) 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.4e+84) {
tmp = t_2;
} else if (j <= -8.2e+33) {
tmp = t_1;
} else if (j <= -2.2e+16) {
tmp = a * ((c * j) - (x * t));
} else if (j <= -2.6e-166) {
tmp = b * ((t * i) - (z * c));
} else if (j <= -2.9e-304) {
tmp = t_1;
} else if (j <= 5.5e-38) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 2.85e+158) {
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 = j * ((a * c) - (y * i))
if (j <= (-2.4d+84)) then
tmp = t_2
else if (j <= (-8.2d+33)) then
tmp = t_1
else if (j <= (-2.2d+16)) then
tmp = a * ((c * j) - (x * t))
else if (j <= (-2.6d-166)) then
tmp = b * ((t * i) - (z * c))
else if (j <= (-2.9d-304)) then
tmp = t_1
else if (j <= 5.5d-38) then
tmp = z * ((x * y) - (b * c))
else if (j <= 2.85d+158) 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.4e+84) {
tmp = t_2;
} else if (j <= -8.2e+33) {
tmp = t_1;
} else if (j <= -2.2e+16) {
tmp = a * ((c * j) - (x * t));
} else if (j <= -2.6e-166) {
tmp = b * ((t * i) - (z * c));
} else if (j <= -2.9e-304) {
tmp = t_1;
} else if (j <= 5.5e-38) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 2.85e+158) {
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 = j * ((a * c) - (y * i)) tmp = 0 if j <= -2.4e+84: tmp = t_2 elif j <= -8.2e+33: tmp = t_1 elif j <= -2.2e+16: tmp = a * ((c * j) - (x * t)) elif j <= -2.6e-166: tmp = b * ((t * i) - (z * c)) elif j <= -2.9e-304: tmp = t_1 elif j <= 5.5e-38: tmp = z * ((x * y) - (b * c)) elif j <= 2.85e+158: 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(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.4e+84) tmp = t_2; elseif (j <= -8.2e+33) tmp = t_1; elseif (j <= -2.2e+16) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (j <= -2.6e-166) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (j <= -2.9e-304) tmp = t_1; elseif (j <= 5.5e-38) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (j <= 2.85e+158) 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 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -2.4e+84) tmp = t_2; elseif (j <= -8.2e+33) tmp = t_1; elseif (j <= -2.2e+16) tmp = a * ((c * j) - (x * t)); elseif (j <= -2.6e-166) tmp = b * ((t * i) - (z * c)); elseif (j <= -2.9e-304) tmp = t_1; elseif (j <= 5.5e-38) tmp = z * ((x * y) - (b * c)); elseif (j <= 2.85e+158) 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.4e+84], t$95$2, If[LessEqual[j, -8.2e+33], t$95$1, If[LessEqual[j, -2.2e+16], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.6e-166], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.9e-304], t$95$1, If[LessEqual[j, 5.5e-38], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.85e+158], 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 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.4 \cdot 10^{+84}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -8.2 \cdot 10^{+33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -2.2 \cdot 10^{+16}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;j \leq -2.6 \cdot 10^{-166}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq -2.9 \cdot 10^{-304}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 5.5 \cdot 10^{-38}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 2.85 \cdot 10^{+158}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -2.4e84 or 2.8500000000000001e158 < j Initial program 68.7%
associate-+l-68.7%
*-commutative68.7%
sub-neg68.7%
sub-neg68.7%
*-commutative68.7%
Simplified68.7%
add-cube-cbrt68.7%
pow368.7%
*-commutative68.7%
Applied egg-rr68.7%
Taylor expanded in j around -inf 75.4%
if -2.4e84 < j < -8.1999999999999999e33 or -2.59999999999999989e-166 < j < -2.9e-304 or 5.50000000000000005e-38 < j < 2.8500000000000001e158Initial program 71.4%
associate-+l-71.4%
*-commutative71.4%
sub-neg71.4%
sub-neg71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in x around inf 63.5%
if -8.1999999999999999e33 < j < -2.2e16Initial program 100.0%
associate-+l-100.0%
*-commutative100.0%
sub-neg100.0%
sub-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in a around inf 75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
Simplified75.3%
if -2.2e16 < j < -2.59999999999999989e-166Initial program 66.4%
associate-+l-66.4%
*-commutative66.4%
sub-neg66.4%
sub-neg66.4%
*-commutative66.4%
Simplified66.4%
Taylor expanded in b around inf 59.6%
if -2.9e-304 < j < 5.50000000000000005e-38Initial program 73.5%
associate-+l-73.5%
*-commutative73.5%
sub-neg73.5%
sub-neg73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in z around inf 66.8%
Final simplification67.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= j -1.9e+84)
t_3
(if (<= j -7e+50)
t_2
(if (<= j -57000000.0)
t_1
(if (<= j -8.5e-140)
(* c (- (* a j) (* z b)))
(if (<= j -6.4e-304)
t_1
(if (<= j 4.4e-38)
(* z (- (* x y) (* b c)))
(if (<= j 3.2e+158) t_2 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = x * ((y * z) - (t * a));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.9e+84) {
tmp = t_3;
} else if (j <= -7e+50) {
tmp = t_2;
} else if (j <= -57000000.0) {
tmp = t_1;
} else if (j <= -8.5e-140) {
tmp = c * ((a * j) - (z * b));
} else if (j <= -6.4e-304) {
tmp = t_1;
} else if (j <= 4.4e-38) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 3.2e+158) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
t_2 = x * ((y * z) - (t * a))
t_3 = j * ((a * c) - (y * i))
if (j <= (-1.9d+84)) then
tmp = t_3
else if (j <= (-7d+50)) then
tmp = t_2
else if (j <= (-57000000.0d0)) then
tmp = t_1
else if (j <= (-8.5d-140)) then
tmp = c * ((a * j) - (z * b))
else if (j <= (-6.4d-304)) then
tmp = t_1
else if (j <= 4.4d-38) then
tmp = z * ((x * y) - (b * c))
else if (j <= 3.2d+158) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = x * ((y * z) - (t * a));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.9e+84) {
tmp = t_3;
} else if (j <= -7e+50) {
tmp = t_2;
} else if (j <= -57000000.0) {
tmp = t_1;
} else if (j <= -8.5e-140) {
tmp = c * ((a * j) - (z * b));
} else if (j <= -6.4e-304) {
tmp = t_1;
} else if (j <= 4.4e-38) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 3.2e+158) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = x * ((y * z) - (t * a)) t_3 = j * ((a * c) - (y * i)) tmp = 0 if j <= -1.9e+84: tmp = t_3 elif j <= -7e+50: tmp = t_2 elif j <= -57000000.0: tmp = t_1 elif j <= -8.5e-140: tmp = c * ((a * j) - (z * b)) elif j <= -6.4e-304: tmp = t_1 elif j <= 4.4e-38: tmp = z * ((x * y) - (b * c)) elif j <= 3.2e+158: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.9e+84) tmp = t_3; elseif (j <= -7e+50) tmp = t_2; elseif (j <= -57000000.0) tmp = t_1; elseif (j <= -8.5e-140) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (j <= -6.4e-304) tmp = t_1; elseif (j <= 4.4e-38) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (j <= 3.2e+158) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); t_2 = x * ((y * z) - (t * a)); t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -1.9e+84) tmp = t_3; elseif (j <= -7e+50) tmp = t_2; elseif (j <= -57000000.0) tmp = t_1; elseif (j <= -8.5e-140) tmp = c * ((a * j) - (z * b)); elseif (j <= -6.4e-304) tmp = t_1; elseif (j <= 4.4e-38) tmp = z * ((x * y) - (b * c)); elseif (j <= 3.2e+158) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.9e+84], t$95$3, If[LessEqual[j, -7e+50], t$95$2, If[LessEqual[j, -57000000.0], t$95$1, If[LessEqual[j, -8.5e-140], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6.4e-304], t$95$1, If[LessEqual[j, 4.4e-38], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.2e+158], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.9 \cdot 10^{+84}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -7 \cdot 10^{+50}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -57000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -8.5 \cdot 10^{-140}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;j \leq -6.4 \cdot 10^{-304}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{-38}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 3.2 \cdot 10^{+158}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -1.9e84 or 3.19999999999999995e158 < j Initial program 68.7%
associate-+l-68.7%
*-commutative68.7%
sub-neg68.7%
sub-neg68.7%
*-commutative68.7%
Simplified68.7%
add-cube-cbrt68.7%
pow368.7%
*-commutative68.7%
Applied egg-rr68.7%
Taylor expanded in j around -inf 75.4%
if -1.9e84 < j < -7.00000000000000012e50 or 4.40000000000000015e-38 < j < 3.19999999999999995e158Initial program 72.6%
associate-+l-72.6%
*-commutative72.6%
sub-neg72.6%
sub-neg72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in x around inf 67.5%
if -7.00000000000000012e50 < j < -5.7e7 or -8.49999999999999997e-140 < j < -6.39999999999999998e-304Initial program 71.3%
associate-+l-71.3%
*-commutative71.3%
sub-neg71.3%
sub-neg71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in t around inf 61.8%
distribute-lft-out--61.8%
associate-*r*61.8%
mul-1-neg61.8%
*-commutative61.8%
Simplified61.8%
if -5.7e7 < j < -8.49999999999999997e-140Initial program 67.3%
associate-+l-67.3%
*-commutative67.3%
sub-neg67.3%
sub-neg67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in c around inf 59.6%
*-commutative59.6%
Simplified59.6%
if -6.39999999999999998e-304 < j < 4.40000000000000015e-38Initial program 73.5%
associate-+l-73.5%
*-commutative73.5%
sub-neg73.5%
sub-neg73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in z around inf 66.8%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -3.8e+84)
t_2
(if (<= j -1.05e+51)
t_1
(if (<= j -0.0011)
(* i (- (* t b) (* y j)))
(if (<= j -5.5e-143)
(* c (- (* a j) (* z b)))
(if (<= j -7e-303)
(* t (- (* b i) (* x a)))
(if (<= j 7.5e-38)
(* z (- (* x y) (* b c)))
(if (<= j 2.85e+158) 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -3.8e+84) {
tmp = t_2;
} else if (j <= -1.05e+51) {
tmp = t_1;
} else if (j <= -0.0011) {
tmp = i * ((t * b) - (y * j));
} else if (j <= -5.5e-143) {
tmp = c * ((a * j) - (z * b));
} else if (j <= -7e-303) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 7.5e-38) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 2.85e+158) {
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 = j * ((a * c) - (y * i))
if (j <= (-3.8d+84)) then
tmp = t_2
else if (j <= (-1.05d+51)) then
tmp = t_1
else if (j <= (-0.0011d0)) then
tmp = i * ((t * b) - (y * j))
else if (j <= (-5.5d-143)) then
tmp = c * ((a * j) - (z * b))
else if (j <= (-7d-303)) then
tmp = t * ((b * i) - (x * a))
else if (j <= 7.5d-38) then
tmp = z * ((x * y) - (b * c))
else if (j <= 2.85d+158) 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -3.8e+84) {
tmp = t_2;
} else if (j <= -1.05e+51) {
tmp = t_1;
} else if (j <= -0.0011) {
tmp = i * ((t * b) - (y * j));
} else if (j <= -5.5e-143) {
tmp = c * ((a * j) - (z * b));
} else if (j <= -7e-303) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 7.5e-38) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 2.85e+158) {
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 = j * ((a * c) - (y * i)) tmp = 0 if j <= -3.8e+84: tmp = t_2 elif j <= -1.05e+51: tmp = t_1 elif j <= -0.0011: tmp = i * ((t * b) - (y * j)) elif j <= -5.5e-143: tmp = c * ((a * j) - (z * b)) elif j <= -7e-303: tmp = t * ((b * i) - (x * a)) elif j <= 7.5e-38: tmp = z * ((x * y) - (b * c)) elif j <= 2.85e+158: 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(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -3.8e+84) tmp = t_2; elseif (j <= -1.05e+51) tmp = t_1; elseif (j <= -0.0011) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (j <= -5.5e-143) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (j <= -7e-303) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 7.5e-38) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (j <= 2.85e+158) 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 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -3.8e+84) tmp = t_2; elseif (j <= -1.05e+51) tmp = t_1; elseif (j <= -0.0011) tmp = i * ((t * b) - (y * j)); elseif (j <= -5.5e-143) tmp = c * ((a * j) - (z * b)); elseif (j <= -7e-303) tmp = t * ((b * i) - (x * a)); elseif (j <= 7.5e-38) tmp = z * ((x * y) - (b * c)); elseif (j <= 2.85e+158) 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.8e+84], t$95$2, If[LessEqual[j, -1.05e+51], t$95$1, If[LessEqual[j, -0.0011], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.5e-143], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -7e-303], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7.5e-38], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.85e+158], 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 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -3.8 \cdot 10^{+84}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -1.05 \cdot 10^{+51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -0.0011:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;j \leq -5.5 \cdot 10^{-143}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;j \leq -7 \cdot 10^{-303}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 7.5 \cdot 10^{-38}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 2.85 \cdot 10^{+158}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -3.8000000000000001e84 or 2.8500000000000001e158 < j Initial program 68.7%
associate-+l-68.7%
*-commutative68.7%
sub-neg68.7%
sub-neg68.7%
*-commutative68.7%
Simplified68.7%
add-cube-cbrt68.7%
pow368.7%
*-commutative68.7%
Applied egg-rr68.7%
Taylor expanded in j around -inf 75.4%
if -3.8000000000000001e84 < j < -1.0500000000000001e51 or 7.5e-38 < j < 2.8500000000000001e158Initial program 72.6%
associate-+l-72.6%
*-commutative72.6%
sub-neg72.6%
sub-neg72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in x around inf 67.5%
if -1.0500000000000001e51 < j < -0.00110000000000000007Initial program 82.1%
associate-+l-82.1%
*-commutative82.1%
sub-neg82.1%
sub-neg82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in i around inf 47.5%
distribute-lft-out--47.5%
*-commutative47.5%
Simplified47.5%
if -0.00110000000000000007 < j < -5.50000000000000041e-143Initial program 65.1%
associate-+l-65.1%
*-commutative65.1%
sub-neg65.1%
sub-neg65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in c around inf 62.5%
*-commutative62.5%
Simplified62.5%
if -5.50000000000000041e-143 < j < -7e-303Initial program 69.1%
associate-+l-69.1%
*-commutative69.1%
sub-neg69.1%
sub-neg69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in t around inf 63.8%
distribute-lft-out--63.8%
associate-*r*63.8%
mul-1-neg63.8%
*-commutative63.8%
Simplified63.8%
if -7e-303 < j < 7.5e-38Initial program 73.5%
associate-+l-73.5%
*-commutative73.5%
sub-neg73.5%
sub-neg73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in z around inf 66.8%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (* z (* x y)) (* b (- (* t i) (* z c)))))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= j -9.8e+74)
t_3
(if (<= j 1.45e-28)
t_2
(if (<= j 2.25e-9)
(- t_1 (* y (* i j)))
(if (<= j 1.14e+107) t_2 (if (<= j 4.5e+161) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (z * (x * y)) + (b * ((t * i) - (z * c)));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -9.8e+74) {
tmp = t_3;
} else if (j <= 1.45e-28) {
tmp = t_2;
} else if (j <= 2.25e-9) {
tmp = t_1 - (y * (i * j));
} else if (j <= 1.14e+107) {
tmp = t_2;
} else if (j <= 4.5e+161) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = (z * (x * y)) + (b * ((t * i) - (z * c)))
t_3 = j * ((a * c) - (y * i))
if (j <= (-9.8d+74)) then
tmp = t_3
else if (j <= 1.45d-28) then
tmp = t_2
else if (j <= 2.25d-9) then
tmp = t_1 - (y * (i * j))
else if (j <= 1.14d+107) then
tmp = t_2
else if (j <= 4.5d+161) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (z * (x * y)) + (b * ((t * i) - (z * c)));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -9.8e+74) {
tmp = t_3;
} else if (j <= 1.45e-28) {
tmp = t_2;
} else if (j <= 2.25e-9) {
tmp = t_1 - (y * (i * j));
} else if (j <= 1.14e+107) {
tmp = t_2;
} else if (j <= 4.5e+161) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (z * (x * y)) + (b * ((t * i) - (z * c))) t_3 = j * ((a * c) - (y * i)) tmp = 0 if j <= -9.8e+74: tmp = t_3 elif j <= 1.45e-28: tmp = t_2 elif j <= 2.25e-9: tmp = t_1 - (y * (i * j)) elif j <= 1.14e+107: tmp = t_2 elif j <= 4.5e+161: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(z * Float64(x * y)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -9.8e+74) tmp = t_3; elseif (j <= 1.45e-28) tmp = t_2; elseif (j <= 2.25e-9) tmp = Float64(t_1 - Float64(y * Float64(i * j))); elseif (j <= 1.14e+107) tmp = t_2; elseif (j <= 4.5e+161) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = (z * (x * y)) + (b * ((t * i) - (z * c))); t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -9.8e+74) tmp = t_3; elseif (j <= 1.45e-28) tmp = t_2; elseif (j <= 2.25e-9) tmp = t_1 - (y * (i * j)); elseif (j <= 1.14e+107) tmp = t_2; elseif (j <= 4.5e+161) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9.8e+74], t$95$3, If[LessEqual[j, 1.45e-28], t$95$2, If[LessEqual[j, 2.25e-9], N[(t$95$1 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.14e+107], t$95$2, If[LessEqual[j, 4.5e+161], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := z \cdot \left(x \cdot y\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -9.8 \cdot 10^{+74}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 1.45 \cdot 10^{-28}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 2.25 \cdot 10^{-9}:\\
\;\;\;\;t_1 - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;j \leq 1.14 \cdot 10^{+107}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 4.5 \cdot 10^{+161}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -9.7999999999999998e74 or 4.49999999999999992e161 < j Initial program 69.1%
associate-+l-69.1%
*-commutative69.1%
sub-neg69.1%
sub-neg69.1%
*-commutative69.1%
Simplified69.1%
add-cube-cbrt69.1%
pow369.1%
*-commutative69.1%
Applied egg-rr69.1%
Taylor expanded in j around -inf 75.7%
if -9.7999999999999998e74 < j < 1.45000000000000006e-28 or 2.24999999999999988e-9 < j < 1.1399999999999999e107Initial program 73.3%
+-commutative73.3%
fma-def74.5%
*-commutative74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in a around 0 66.8%
Taylor expanded in j around 0 64.9%
*-commutative64.9%
associate-*r*69.0%
*-commutative69.0%
*-commutative69.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
if 1.45000000000000006e-28 < j < 2.24999999999999988e-9Initial program 55.4%
+-commutative55.4%
fma-def55.4%
*-commutative55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in b around 0 77.6%
Taylor expanded in c around 0 89.1%
*-commutative89.1%
*-commutative89.1%
*-commutative89.1%
associate-*r*89.1%
*-commutative89.1%
associate-*r*89.1%
neg-mul-189.1%
unsub-neg89.1%
*-commutative89.1%
*-commutative89.1%
*-commutative89.1%
Simplified89.1%
if 1.1399999999999999e107 < j < 4.49999999999999992e161Initial program 58.3%
associate-+l-58.3%
*-commutative58.3%
sub-neg58.3%
sub-neg58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in x around inf 84.0%
Final simplification72.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -9.5e+76)
t_2
(if (<= j 1.6e-28)
(+ (* z (* x y)) (* b (- (* t i) (* z c))))
(if (<= j 88000.0)
(- t_1 (* y (* i j)))
(if (<= j 1.15e+105)
(+ (* y (- (* x z) (* i j))) (* i (* t b)))
(if (<= j 2.85e+158) 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -9.5e+76) {
tmp = t_2;
} else if (j <= 1.6e-28) {
tmp = (z * (x * y)) + (b * ((t * i) - (z * c)));
} else if (j <= 88000.0) {
tmp = t_1 - (y * (i * j));
} else if (j <= 1.15e+105) {
tmp = (y * ((x * z) - (i * j))) + (i * (t * b));
} else if (j <= 2.85e+158) {
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 = j * ((a * c) - (y * i))
if (j <= (-9.5d+76)) then
tmp = t_2
else if (j <= 1.6d-28) then
tmp = (z * (x * y)) + (b * ((t * i) - (z * c)))
else if (j <= 88000.0d0) then
tmp = t_1 - (y * (i * j))
else if (j <= 1.15d+105) then
tmp = (y * ((x * z) - (i * j))) + (i * (t * b))
else if (j <= 2.85d+158) 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -9.5e+76) {
tmp = t_2;
} else if (j <= 1.6e-28) {
tmp = (z * (x * y)) + (b * ((t * i) - (z * c)));
} else if (j <= 88000.0) {
tmp = t_1 - (y * (i * j));
} else if (j <= 1.15e+105) {
tmp = (y * ((x * z) - (i * j))) + (i * (t * b));
} else if (j <= 2.85e+158) {
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 = j * ((a * c) - (y * i)) tmp = 0 if j <= -9.5e+76: tmp = t_2 elif j <= 1.6e-28: tmp = (z * (x * y)) + (b * ((t * i) - (z * c))) elif j <= 88000.0: tmp = t_1 - (y * (i * j)) elif j <= 1.15e+105: tmp = (y * ((x * z) - (i * j))) + (i * (t * b)) elif j <= 2.85e+158: 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(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -9.5e+76) tmp = t_2; elseif (j <= 1.6e-28) tmp = Float64(Float64(z * Float64(x * y)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (j <= 88000.0) tmp = Float64(t_1 - Float64(y * Float64(i * j))); elseif (j <= 1.15e+105) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(i * Float64(t * b))); elseif (j <= 2.85e+158) 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 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -9.5e+76) tmp = t_2; elseif (j <= 1.6e-28) tmp = (z * (x * y)) + (b * ((t * i) - (z * c))); elseif (j <= 88000.0) tmp = t_1 - (y * (i * j)); elseif (j <= 1.15e+105) tmp = (y * ((x * z) - (i * j))) + (i * (t * b)); elseif (j <= 2.85e+158) 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9.5e+76], t$95$2, If[LessEqual[j, 1.6e-28], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 88000.0], N[(t$95$1 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e+105], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.85e+158], 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 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -9.5 \cdot 10^{+76}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{-28}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 88000:\\
\;\;\;\;t_1 - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{+105}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 2.85 \cdot 10^{+158}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -9.5000000000000003e76 or 2.8500000000000001e158 < j Initial program 69.1%
associate-+l-69.1%
*-commutative69.1%
sub-neg69.1%
sub-neg69.1%
*-commutative69.1%
Simplified69.1%
add-cube-cbrt69.1%
pow369.1%
*-commutative69.1%
Applied egg-rr69.1%
Taylor expanded in j around -inf 75.7%
if -9.5000000000000003e76 < j < 1.59999999999999991e-28Initial program 72.9%
+-commutative72.9%
fma-def72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in a around 0 65.6%
Taylor expanded in j around 0 64.1%
*-commutative64.1%
associate-*r*68.1%
*-commutative68.1%
*-commutative68.1%
*-commutative68.1%
*-commutative68.1%
Simplified68.1%
if 1.59999999999999991e-28 < j < 88000Initial program 59.8%
+-commutative59.8%
fma-def59.8%
*-commutative59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in b around 0 79.8%
Taylor expanded in c around 0 90.2%
*-commutative90.2%
*-commutative90.2%
*-commutative90.2%
associate-*r*90.2%
*-commutative90.2%
associate-*r*90.2%
neg-mul-190.2%
unsub-neg90.2%
*-commutative90.2%
*-commutative90.2%
*-commutative90.2%
Simplified90.2%
if 88000 < j < 1.1499999999999999e105Initial program 73.2%
associate-+l-73.2%
*-commutative73.2%
sub-neg73.2%
sub-neg73.2%
*-commutative73.2%
Simplified73.2%
add-cube-cbrt73.2%
pow373.2%
*-commutative73.2%
Applied egg-rr73.2%
Taylor expanded in a around 0 86.6%
neg-mul-186.6%
distribute-rgt-neg-in86.6%
mul-1-neg86.6%
pow-base-186.6%
*-lft-identity86.6%
distribute-lft-in86.6%
+-commutative86.6%
mul-1-neg86.6%
unsub-neg86.6%
*-commutative86.6%
*-commutative86.6%
*-commutative86.6%
*-commutative86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in c around 0 86.6%
associate-*r*86.6%
neg-mul-186.6%
Simplified86.6%
if 1.1499999999999999e105 < j < 2.8500000000000001e158Initial program 61.5%
associate-+l-61.5%
*-commutative61.5%
sub-neg61.5%
sub-neg61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in x around inf 77.6%
Final simplification72.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))) (t_2 (* b (* t i))) (t_3 (* z (* x y))))
(if (<= x -1.3e+89)
t_3
(if (<= x -1.85e-221)
t_1
(if (<= x 1.05e-139)
t_2
(if (<= x 1.25e-72)
(* j (* y (- i)))
(if (<= x 6.6e+98)
t_2
(if (<= x 7.4e+136)
(* a (* t (- x)))
(if (<= x 6.2e+149) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double t_2 = b * (t * i);
double t_3 = z * (x * y);
double tmp;
if (x <= -1.3e+89) {
tmp = t_3;
} else if (x <= -1.85e-221) {
tmp = t_1;
} else if (x <= 1.05e-139) {
tmp = t_2;
} else if (x <= 1.25e-72) {
tmp = j * (y * -i);
} else if (x <= 6.6e+98) {
tmp = t_2;
} else if (x <= 7.4e+136) {
tmp = a * (t * -x);
} else if (x <= 6.2e+149) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * (z * -b)
t_2 = b * (t * i)
t_3 = z * (x * y)
if (x <= (-1.3d+89)) then
tmp = t_3
else if (x <= (-1.85d-221)) then
tmp = t_1
else if (x <= 1.05d-139) then
tmp = t_2
else if (x <= 1.25d-72) then
tmp = j * (y * -i)
else if (x <= 6.6d+98) then
tmp = t_2
else if (x <= 7.4d+136) then
tmp = a * (t * -x)
else if (x <= 6.2d+149) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double t_2 = b * (t * i);
double t_3 = z * (x * y);
double tmp;
if (x <= -1.3e+89) {
tmp = t_3;
} else if (x <= -1.85e-221) {
tmp = t_1;
} else if (x <= 1.05e-139) {
tmp = t_2;
} else if (x <= 1.25e-72) {
tmp = j * (y * -i);
} else if (x <= 6.6e+98) {
tmp = t_2;
} else if (x <= 7.4e+136) {
tmp = a * (t * -x);
} else if (x <= 6.2e+149) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) t_2 = b * (t * i) t_3 = z * (x * y) tmp = 0 if x <= -1.3e+89: tmp = t_3 elif x <= -1.85e-221: tmp = t_1 elif x <= 1.05e-139: tmp = t_2 elif x <= 1.25e-72: tmp = j * (y * -i) elif x <= 6.6e+98: tmp = t_2 elif x <= 7.4e+136: tmp = a * (t * -x) elif x <= 6.2e+149: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) t_2 = Float64(b * Float64(t * i)) t_3 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -1.3e+89) tmp = t_3; elseif (x <= -1.85e-221) tmp = t_1; elseif (x <= 1.05e-139) tmp = t_2; elseif (x <= 1.25e-72) tmp = Float64(j * Float64(y * Float64(-i))); elseif (x <= 6.6e+98) tmp = t_2; elseif (x <= 7.4e+136) tmp = Float64(a * Float64(t * Float64(-x))); elseif (x <= 6.2e+149) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); t_2 = b * (t * i); t_3 = z * (x * y); tmp = 0.0; if (x <= -1.3e+89) tmp = t_3; elseif (x <= -1.85e-221) tmp = t_1; elseif (x <= 1.05e-139) tmp = t_2; elseif (x <= 1.25e-72) tmp = j * (y * -i); elseif (x <= 6.6e+98) tmp = t_2; elseif (x <= 7.4e+136) tmp = a * (t * -x); elseif (x <= 6.2e+149) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.3e+89], t$95$3, If[LessEqual[x, -1.85e-221], t$95$1, If[LessEqual[x, 1.05e-139], t$95$2, If[LessEqual[x, 1.25e-72], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.6e+98], t$95$2, If[LessEqual[x, 7.4e+136], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.2e+149], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
t_2 := b \cdot \left(t \cdot i\right)\\
t_3 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -1.3 \cdot 10^{+89}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.85 \cdot 10^{-221}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{-139}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{-72}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;x \leq 6.6 \cdot 10^{+98}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 7.4 \cdot 10^{+136}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{+149}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -1.3e89 or 6.19999999999999974e149 < x Initial program 67.0%
associate-+l-67.0%
*-commutative67.0%
sub-neg67.0%
sub-neg67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in z around inf 62.7%
Taylor expanded in y around inf 60.2%
if -1.3e89 < x < -1.84999999999999993e-221 or 7.4000000000000002e136 < x < 6.19999999999999974e149Initial program 69.5%
associate-+l-69.5%
*-commutative69.5%
sub-neg69.5%
sub-neg69.5%
*-commutative69.5%
Simplified69.5%
add-cube-cbrt69.4%
pow369.4%
*-commutative69.4%
Applied egg-rr69.4%
Taylor expanded in z around inf 42.8%
associate-*r*42.8%
neg-mul-142.8%
*-commutative42.8%
Simplified42.8%
if -1.84999999999999993e-221 < x < 1.05000000000000004e-139 or 1.2499999999999999e-72 < x < 6.60000000000000056e98Initial program 73.7%
associate-+l-73.7%
*-commutative73.7%
sub-neg73.7%
sub-neg73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in b around inf 48.0%
Taylor expanded in i around inf 34.0%
associate-*r*36.3%
*-commutative36.3%
Simplified36.3%
if 1.05000000000000004e-139 < x < 1.2499999999999999e-72Initial program 74.0%
associate-+l-74.0%
*-commutative74.0%
sub-neg74.0%
sub-neg74.0%
*-commutative74.0%
Simplified74.0%
add-cube-cbrt73.9%
pow373.9%
*-commutative73.9%
Applied egg-rr73.9%
Taylor expanded in y around inf 49.4%
neg-mul-149.4%
distribute-rgt-neg-in49.4%
*-commutative49.4%
distribute-rgt-neg-in49.4%
Simplified49.4%
Taylor expanded in y around 0 49.4%
mul-1-neg49.4%
*-commutative49.4%
distribute-lft-neg-in49.4%
*-commutative49.4%
distribute-rgt-neg-out49.4%
associate-*l*59.3%
Simplified59.3%
if 6.60000000000000056e98 < x < 7.4000000000000002e136Initial program 79.7%
associate-+l-79.7%
*-commutative79.7%
sub-neg79.7%
sub-neg79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in a around inf 79.9%
+-commutative79.9%
mul-1-neg79.9%
unsub-neg79.9%
Simplified79.9%
Taylor expanded in c around 0 60.9%
associate-*r*60.9%
neg-mul-160.9%
Simplified60.9%
Final simplification48.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* t b))) (t_2 (* z (* x y))))
(if (<= x -54000000000.0)
t_2
(if (<= x 7.2e-276)
(* c (* a j))
(if (<= x 8.8e-141)
t_1
(if (<= x 9e-73)
(* j (* y (- i)))
(if (<= x 1.05e+98)
(* b (* t i))
(if (<= x 2.35e+139)
(* a (* t (- x)))
(if (<= x 4.9e+148) 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 = i * (t * b);
double t_2 = z * (x * y);
double tmp;
if (x <= -54000000000.0) {
tmp = t_2;
} else if (x <= 7.2e-276) {
tmp = c * (a * j);
} else if (x <= 8.8e-141) {
tmp = t_1;
} else if (x <= 9e-73) {
tmp = j * (y * -i);
} else if (x <= 1.05e+98) {
tmp = b * (t * i);
} else if (x <= 2.35e+139) {
tmp = a * (t * -x);
} else if (x <= 4.9e+148) {
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 = i * (t * b)
t_2 = z * (x * y)
if (x <= (-54000000000.0d0)) then
tmp = t_2
else if (x <= 7.2d-276) then
tmp = c * (a * j)
else if (x <= 8.8d-141) then
tmp = t_1
else if (x <= 9d-73) then
tmp = j * (y * -i)
else if (x <= 1.05d+98) then
tmp = b * (t * i)
else if (x <= 2.35d+139) then
tmp = a * (t * -x)
else if (x <= 4.9d+148) 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 = i * (t * b);
double t_2 = z * (x * y);
double tmp;
if (x <= -54000000000.0) {
tmp = t_2;
} else if (x <= 7.2e-276) {
tmp = c * (a * j);
} else if (x <= 8.8e-141) {
tmp = t_1;
} else if (x <= 9e-73) {
tmp = j * (y * -i);
} else if (x <= 1.05e+98) {
tmp = b * (t * i);
} else if (x <= 2.35e+139) {
tmp = a * (t * -x);
} else if (x <= 4.9e+148) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (t * b) t_2 = z * (x * y) tmp = 0 if x <= -54000000000.0: tmp = t_2 elif x <= 7.2e-276: tmp = c * (a * j) elif x <= 8.8e-141: tmp = t_1 elif x <= 9e-73: tmp = j * (y * -i) elif x <= 1.05e+98: tmp = b * (t * i) elif x <= 2.35e+139: tmp = a * (t * -x) elif x <= 4.9e+148: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(t * b)) t_2 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -54000000000.0) tmp = t_2; elseif (x <= 7.2e-276) tmp = Float64(c * Float64(a * j)); elseif (x <= 8.8e-141) tmp = t_1; elseif (x <= 9e-73) tmp = Float64(j * Float64(y * Float64(-i))); elseif (x <= 1.05e+98) tmp = Float64(b * Float64(t * i)); elseif (x <= 2.35e+139) tmp = Float64(a * Float64(t * Float64(-x))); elseif (x <= 4.9e+148) 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 = i * (t * b); t_2 = z * (x * y); tmp = 0.0; if (x <= -54000000000.0) tmp = t_2; elseif (x <= 7.2e-276) tmp = c * (a * j); elseif (x <= 8.8e-141) tmp = t_1; elseif (x <= 9e-73) tmp = j * (y * -i); elseif (x <= 1.05e+98) tmp = b * (t * i); elseif (x <= 2.35e+139) tmp = a * (t * -x); elseif (x <= 4.9e+148) 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[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -54000000000.0], t$95$2, If[LessEqual[x, 7.2e-276], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.8e-141], t$95$1, If[LessEqual[x, 9e-73], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.05e+98], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.35e+139], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.9e+148], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -54000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{-276}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;x \leq 8.8 \cdot 10^{-141}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-73}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{+98}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;x \leq 2.35 \cdot 10^{+139}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;x \leq 4.9 \cdot 10^{+148}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -5.4e10 or 4.9e148 < x Initial program 66.9%
associate-+l-66.9%
*-commutative66.9%
sub-neg66.9%
sub-neg66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in z around inf 59.4%
Taylor expanded in y around inf 55.2%
if -5.4e10 < x < 7.19999999999999988e-276Initial program 71.0%
associate-+l-71.0%
*-commutative71.0%
sub-neg71.0%
sub-neg71.0%
*-commutative71.0%
Simplified71.0%
add-cube-cbrt71.0%
pow371.0%
*-commutative71.0%
Applied egg-rr71.0%
Taylor expanded in a around inf 33.8%
if 7.19999999999999988e-276 < x < 8.80000000000000037e-141 or 2.35e139 < x < 4.9e148Initial program 66.3%
associate-+l-66.3%
*-commutative66.3%
sub-neg66.3%
sub-neg66.3%
*-commutative66.3%
Simplified66.3%
add-cube-cbrt66.1%
pow366.2%
*-commutative66.2%
Applied egg-rr66.2%
Taylor expanded in t around inf 46.5%
if 8.80000000000000037e-141 < x < 9e-73Initial program 74.0%
associate-+l-74.0%
*-commutative74.0%
sub-neg74.0%
sub-neg74.0%
*-commutative74.0%
Simplified74.0%
add-cube-cbrt73.9%
pow373.9%
*-commutative73.9%
Applied egg-rr73.9%
Taylor expanded in y around inf 49.4%
neg-mul-149.4%
distribute-rgt-neg-in49.4%
*-commutative49.4%
distribute-rgt-neg-in49.4%
Simplified49.4%
Taylor expanded in y around 0 49.4%
mul-1-neg49.4%
*-commutative49.4%
distribute-lft-neg-in49.4%
*-commutative49.4%
distribute-rgt-neg-out49.4%
associate-*l*59.3%
Simplified59.3%
if 9e-73 < x < 1.05000000000000002e98Initial program 81.2%
associate-+l-81.2%
*-commutative81.2%
sub-neg81.2%
sub-neg81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in b around inf 46.0%
Taylor expanded in i around inf 30.4%
associate-*r*33.3%
*-commutative33.3%
Simplified33.3%
if 1.05000000000000002e98 < x < 2.35e139Initial program 79.7%
associate-+l-79.7%
*-commutative79.7%
sub-neg79.7%
sub-neg79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in a around inf 79.9%
+-commutative79.9%
mul-1-neg79.9%
unsub-neg79.9%
Simplified79.9%
Taylor expanded in c around 0 60.9%
associate-*r*60.9%
neg-mul-160.9%
Simplified60.9%
Final simplification46.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b))))
(t_2 (* b (- (* t i) (* z c))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -1.05e+89)
t_3
(if (<= y -1.9e-190)
t_2
(if (<= y 6.4e-167)
t_1
(if (<= y 6.5e-45) t_2 (if (<= y 1.02e+46) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = b * ((t * i) - (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.05e+89) {
tmp = t_3;
} else if (y <= -1.9e-190) {
tmp = t_2;
} else if (y <= 6.4e-167) {
tmp = t_1;
} else if (y <= 6.5e-45) {
tmp = t_2;
} else if (y <= 1.02e+46) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
t_2 = b * ((t * i) - (z * c))
t_3 = y * ((x * z) - (i * j))
if (y <= (-1.05d+89)) then
tmp = t_3
else if (y <= (-1.9d-190)) then
tmp = t_2
else if (y <= 6.4d-167) then
tmp = t_1
else if (y <= 6.5d-45) then
tmp = t_2
else if (y <= 1.02d+46) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = b * ((t * i) - (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.05e+89) {
tmp = t_3;
} else if (y <= -1.9e-190) {
tmp = t_2;
} else if (y <= 6.4e-167) {
tmp = t_1;
} else if (y <= 6.5e-45) {
tmp = t_2;
} else if (y <= 1.02e+46) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = b * ((t * i) - (z * c)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.05e+89: tmp = t_3 elif y <= -1.9e-190: tmp = t_2 elif y <= 6.4e-167: tmp = t_1 elif y <= 6.5e-45: tmp = t_2 elif y <= 1.02e+46: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.05e+89) tmp = t_3; elseif (y <= -1.9e-190) tmp = t_2; elseif (y <= 6.4e-167) tmp = t_1; elseif (y <= 6.5e-45) tmp = t_2; elseif (y <= 1.02e+46) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); t_2 = b * ((t * i) - (z * c)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.05e+89) tmp = t_3; elseif (y <= -1.9e-190) tmp = t_2; elseif (y <= 6.4e-167) tmp = t_1; elseif (y <= 6.5e-45) tmp = t_2; elseif (y <= 1.02e+46) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.05e+89], t$95$3, If[LessEqual[y, -1.9e-190], t$95$2, If[LessEqual[y, 6.4e-167], t$95$1, If[LessEqual[y, 6.5e-45], t$95$2, If[LessEqual[y, 1.02e+46], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.05 \cdot 10^{+89}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -1.9 \cdot 10^{-190}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 6.4 \cdot 10^{-167}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{-45}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{+46}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -1.04999999999999993e89 or 1.0199999999999999e46 < y Initial program 62.0%
associate-+l-62.0%
*-commutative62.0%
sub-neg62.0%
sub-neg62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in y around inf 66.0%
*-commutative66.0%
mul-1-neg66.0%
unsub-neg66.0%
Simplified66.0%
if -1.04999999999999993e89 < y < -1.8999999999999999e-190 or 6.4000000000000003e-167 < y < 6.4999999999999995e-45Initial program 77.8%
associate-+l-77.8%
*-commutative77.8%
sub-neg77.8%
sub-neg77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in b around inf 59.8%
if -1.8999999999999999e-190 < y < 6.4000000000000003e-167 or 6.4999999999999995e-45 < y < 1.0199999999999999e46Initial program 76.6%
associate-+l-76.6%
*-commutative76.6%
sub-neg76.6%
sub-neg76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in c around inf 65.1%
*-commutative65.1%
Simplified65.1%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -1.8e-29)
t_2
(if (<= a 1.75e-260)
t_1
(if (<= a 1.1e-143) (* i (* t b)) (if (<= a 2.1e+44) 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 = z * (x * y);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1.8e-29) {
tmp = t_2;
} else if (a <= 1.75e-260) {
tmp = t_1;
} else if (a <= 1.1e-143) {
tmp = i * (t * b);
} else if (a <= 2.1e+44) {
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 = z * (x * y)
t_2 = a * ((c * j) - (x * t))
if (a <= (-1.8d-29)) then
tmp = t_2
else if (a <= 1.75d-260) then
tmp = t_1
else if (a <= 1.1d-143) then
tmp = i * (t * b)
else if (a <= 2.1d+44) 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 = z * (x * y);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1.8e-29) {
tmp = t_2;
} else if (a <= 1.75e-260) {
tmp = t_1;
} else if (a <= 1.1e-143) {
tmp = i * (t * b);
} else if (a <= 2.1e+44) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -1.8e-29: tmp = t_2 elif a <= 1.75e-260: tmp = t_1 elif a <= 1.1e-143: tmp = i * (t * b) elif a <= 2.1e+44: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -1.8e-29) tmp = t_2; elseif (a <= 1.75e-260) tmp = t_1; elseif (a <= 1.1e-143) tmp = Float64(i * Float64(t * b)); elseif (a <= 2.1e+44) 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 = z * (x * y); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -1.8e-29) tmp = t_2; elseif (a <= 1.75e-260) tmp = t_1; elseif (a <= 1.1e-143) tmp = i * (t * b); elseif (a <= 2.1e+44) 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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.8e-29], t$95$2, If[LessEqual[a, 1.75e-260], t$95$1, If[LessEqual[a, 1.1e-143], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.1e+44], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.8 \cdot 10^{-29}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-260}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{-143}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{+44}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -1.79999999999999987e-29 or 2.09999999999999987e44 < a Initial program 61.9%
associate-+l-61.9%
*-commutative61.9%
sub-neg61.9%
sub-neg61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in a around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
Simplified62.6%
if -1.79999999999999987e-29 < a < 1.75e-260 or 1.09999999999999995e-143 < a < 2.09999999999999987e44Initial program 79.8%
associate-+l-79.8%
*-commutative79.8%
sub-neg79.8%
sub-neg79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in z around inf 51.6%
Taylor expanded in y around inf 38.3%
if 1.75e-260 < a < 1.09999999999999995e-143Initial program 86.4%
associate-+l-86.4%
*-commutative86.4%
sub-neg86.4%
sub-neg86.4%
*-commutative86.4%
Simplified86.4%
add-cube-cbrt86.2%
pow386.2%
*-commutative86.2%
Applied egg-rr86.2%
Taylor expanded in t around inf 42.4%
Final simplification51.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= x -16000000.0)
t_1
(if (<= x 8.8e-277)
(* c (* a j))
(if (<= x 1.15e-139)
(* i (* t b))
(if (<= x 2.35e-73)
(* j (* y (- i)))
(if (<= x 5.7e+110) (* a (* 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 = z * (x * y);
double tmp;
if (x <= -16000000.0) {
tmp = t_1;
} else if (x <= 8.8e-277) {
tmp = c * (a * j);
} else if (x <= 1.15e-139) {
tmp = i * (t * b);
} else if (x <= 2.35e-73) {
tmp = j * (y * -i);
} else if (x <= 5.7e+110) {
tmp = a * (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 = z * (x * y)
if (x <= (-16000000.0d0)) then
tmp = t_1
else if (x <= 8.8d-277) then
tmp = c * (a * j)
else if (x <= 1.15d-139) then
tmp = i * (t * b)
else if (x <= 2.35d-73) then
tmp = j * (y * -i)
else if (x <= 5.7d+110) then
tmp = a * (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 = z * (x * y);
double tmp;
if (x <= -16000000.0) {
tmp = t_1;
} else if (x <= 8.8e-277) {
tmp = c * (a * j);
} else if (x <= 1.15e-139) {
tmp = i * (t * b);
} else if (x <= 2.35e-73) {
tmp = j * (y * -i);
} else if (x <= 5.7e+110) {
tmp = a * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) tmp = 0 if x <= -16000000.0: tmp = t_1 elif x <= 8.8e-277: tmp = c * (a * j) elif x <= 1.15e-139: tmp = i * (t * b) elif x <= 2.35e-73: tmp = j * (y * -i) elif x <= 5.7e+110: tmp = a * (c * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -16000000.0) tmp = t_1; elseif (x <= 8.8e-277) tmp = Float64(c * Float64(a * j)); elseif (x <= 1.15e-139) tmp = Float64(i * Float64(t * b)); elseif (x <= 2.35e-73) tmp = Float64(j * Float64(y * Float64(-i))); elseif (x <= 5.7e+110) tmp = Float64(a * 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 = z * (x * y); tmp = 0.0; if (x <= -16000000.0) tmp = t_1; elseif (x <= 8.8e-277) tmp = c * (a * j); elseif (x <= 1.15e-139) tmp = i * (t * b); elseif (x <= 2.35e-73) tmp = j * (y * -i); elseif (x <= 5.7e+110) tmp = a * (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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -16000000.0], t$95$1, If[LessEqual[x, 8.8e-277], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e-139], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.35e-73], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.7e+110], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -16000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 8.8 \cdot 10^{-277}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-139}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;x \leq 2.35 \cdot 10^{-73}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;x \leq 5.7 \cdot 10^{+110}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -1.6e7 or 5.7000000000000002e110 < x Initial program 67.5%
associate-+l-67.5%
*-commutative67.5%
sub-neg67.5%
sub-neg67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in z around inf 56.4%
Taylor expanded in y around inf 51.6%
if -1.6e7 < x < 8.79999999999999983e-277Initial program 71.0%
associate-+l-71.0%
*-commutative71.0%
sub-neg71.0%
sub-neg71.0%
*-commutative71.0%
Simplified71.0%
add-cube-cbrt71.0%
pow371.0%
*-commutative71.0%
Applied egg-rr71.0%
Taylor expanded in a around inf 33.8%
if 8.79999999999999983e-277 < x < 1.15000000000000006e-139Initial program 63.5%
associate-+l-63.5%
*-commutative63.5%
sub-neg63.5%
sub-neg63.5%
*-commutative63.5%
Simplified63.5%
add-cube-cbrt63.4%
pow363.4%
*-commutative63.4%
Applied egg-rr63.4%
Taylor expanded in t around inf 43.5%
if 1.15000000000000006e-139 < x < 2.34999999999999997e-73Initial program 72.6%
associate-+l-72.6%
*-commutative72.6%
sub-neg72.6%
sub-neg72.6%
*-commutative72.6%
Simplified72.6%
add-cube-cbrt72.4%
pow372.4%
*-commutative72.4%
Applied egg-rr72.4%
Taylor expanded in y around inf 52.1%
neg-mul-152.1%
distribute-rgt-neg-in52.1%
*-commutative52.1%
distribute-rgt-neg-in52.1%
Simplified52.1%
Taylor expanded in y around 0 52.1%
mul-1-neg52.1%
*-commutative52.1%
distribute-lft-neg-in52.1%
*-commutative52.1%
distribute-rgt-neg-out52.1%
associate-*l*62.5%
Simplified62.5%
if 2.34999999999999997e-73 < x < 5.7000000000000002e110Initial program 83.8%
associate-+l-83.8%
*-commutative83.8%
sub-neg83.8%
sub-neg83.8%
*-commutative83.8%
Simplified83.8%
Taylor expanded in a around inf 45.5%
+-commutative45.5%
mul-1-neg45.5%
unsub-neg45.5%
Simplified45.5%
Taylor expanded in c around inf 33.8%
*-commutative33.8%
Simplified33.8%
Final simplification44.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.85e+266)
(* i (* y (- j)))
(if (or (<= y -3.1e+115) (not (<= y 2.05e+49)))
(* z (* x y))
(* c (- (* a j) (* z b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.85e+266) {
tmp = i * (y * -j);
} else if ((y <= -3.1e+115) || !(y <= 2.05e+49)) {
tmp = z * (x * y);
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-1.85d+266)) then
tmp = i * (y * -j)
else if ((y <= (-3.1d+115)) .or. (.not. (y <= 2.05d+49))) then
tmp = z * (x * y)
else
tmp = c * ((a * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.85e+266) {
tmp = i * (y * -j);
} else if ((y <= -3.1e+115) || !(y <= 2.05e+49)) {
tmp = z * (x * y);
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.85e+266: tmp = i * (y * -j) elif (y <= -3.1e+115) or not (y <= 2.05e+49): tmp = z * (x * y) else: tmp = c * ((a * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.85e+266) tmp = Float64(i * Float64(y * Float64(-j))); elseif ((y <= -3.1e+115) || !(y <= 2.05e+49)) tmp = Float64(z * Float64(x * y)); else tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.85e+266) tmp = i * (y * -j); elseif ((y <= -3.1e+115) || ~((y <= 2.05e+49))) tmp = z * (x * y); else tmp = c * ((a * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.85e+266], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -3.1e+115], N[Not[LessEqual[y, 2.05e+49]], $MachinePrecision]], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.85 \cdot 10^{+266}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq -3.1 \cdot 10^{+115} \lor \neg \left(y \leq 2.05 \cdot 10^{+49}\right):\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if y < -1.85e266Initial program 41.7%
associate-+l-41.7%
*-commutative41.7%
sub-neg41.7%
sub-neg41.7%
*-commutative41.7%
Simplified41.7%
add-cube-cbrt41.7%
pow341.7%
*-commutative41.7%
Applied egg-rr41.7%
Taylor expanded in y around inf 67.4%
neg-mul-167.4%
distribute-rgt-neg-in67.4%
*-commutative67.4%
distribute-rgt-neg-in67.4%
Simplified67.4%
Taylor expanded in j around 0 75.3%
if -1.85e266 < y < -3.10000000000000005e115 or 2.05e49 < y Initial program 64.9%
associate-+l-64.9%
*-commutative64.9%
sub-neg64.9%
sub-neg64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in z around inf 50.5%
Taylor expanded in y around inf 49.7%
if -3.10000000000000005e115 < y < 2.05e49Initial program 76.6%
associate-+l-76.6%
*-commutative76.6%
sub-neg76.6%
sub-neg76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in c around inf 54.8%
*-commutative54.8%
Simplified54.8%
Final simplification53.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -3.8e+113) (not (<= y 2.65e+47))) (* y (- (* x z) (* i j))) (* c (- (* a j) (* z b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -3.8e+113) || !(y <= 2.65e+47)) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((y <= (-3.8d+113)) .or. (.not. (y <= 2.65d+47))) then
tmp = y * ((x * z) - (i * j))
else
tmp = c * ((a * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -3.8e+113) || !(y <= 2.65e+47)) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -3.8e+113) or not (y <= 2.65e+47): tmp = y * ((x * z) - (i * j)) else: tmp = c * ((a * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -3.8e+113) || !(y <= 2.65e+47)) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((y <= -3.8e+113) || ~((y <= 2.65e+47))) tmp = y * ((x * z) - (i * j)); else tmp = c * ((a * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -3.8e+113], N[Not[LessEqual[y, 2.65e+47]], $MachinePrecision]], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.8 \cdot 10^{+113} \lor \neg \left(y \leq 2.65 \cdot 10^{+47}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if y < -3.8000000000000003e113 or 2.65e47 < y Initial program 62.3%
associate-+l-62.3%
*-commutative62.3%
sub-neg62.3%
sub-neg62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in y around inf 67.5%
*-commutative67.5%
mul-1-neg67.5%
unsub-neg67.5%
Simplified67.5%
if -3.8000000000000003e113 < y < 2.65e47Initial program 76.6%
associate-+l-76.6%
*-commutative76.6%
sub-neg76.6%
sub-neg76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in c around inf 54.8%
*-commutative54.8%
Simplified54.8%
Final simplification60.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -7.4e+74) (not (<= j 3.3e+138))) (* j (- (* a c) (* y i))) (* z (- (* x y) (* b c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -7.4e+74) || !(j <= 3.3e+138)) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-7.4d+74)) .or. (.not. (j <= 3.3d+138))) then
tmp = j * ((a * c) - (y * i))
else
tmp = z * ((x * y) - (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -7.4e+74) || !(j <= 3.3e+138)) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -7.4e+74) or not (j <= 3.3e+138): tmp = j * ((a * c) - (y * i)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -7.4e+74) || !(j <= 3.3e+138)) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -7.4e+74) || ~((j <= 3.3e+138))) tmp = j * ((a * c) - (y * i)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -7.4e+74], N[Not[LessEqual[j, 3.3e+138]], $MachinePrecision]], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -7.4 \cdot 10^{+74} \lor \neg \left(j \leq 3.3 \cdot 10^{+138}\right):\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if j < -7.4000000000000002e74 or 3.29999999999999978e138 < j Initial program 71.0%
associate-+l-71.0%
*-commutative71.0%
sub-neg71.0%
sub-neg71.0%
*-commutative71.0%
Simplified71.0%
add-cube-cbrt71.0%
pow371.0%
*-commutative71.0%
Applied egg-rr71.0%
Taylor expanded in j around -inf 73.6%
if -7.4000000000000002e74 < j < 3.29999999999999978e138Initial program 70.6%
associate-+l-70.6%
*-commutative70.6%
sub-neg70.6%
sub-neg70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in z around inf 55.2%
Final simplification61.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= x -2000000000.0)
t_1
(if (<= x 2.2e-277)
(* c (* a j))
(if (<= x 1.55e+58) (* i (* t b)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (x <= -2000000000.0) {
tmp = t_1;
} else if (x <= 2.2e-277) {
tmp = c * (a * j);
} else if (x <= 1.55e+58) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (x <= (-2000000000.0d0)) then
tmp = t_1
else if (x <= 2.2d-277) then
tmp = c * (a * j)
else if (x <= 1.55d+58) then
tmp = i * (t * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (x <= -2000000000.0) {
tmp = t_1;
} else if (x <= 2.2e-277) {
tmp = c * (a * j);
} else if (x <= 1.55e+58) {
tmp = i * (t * b);
} 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 <= -2000000000.0: tmp = t_1 elif x <= 2.2e-277: tmp = c * (a * j) elif x <= 1.55e+58: tmp = i * (t * b) 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 <= -2000000000.0) tmp = t_1; elseif (x <= 2.2e-277) tmp = Float64(c * Float64(a * j)); elseif (x <= 1.55e+58) tmp = Float64(i * Float64(t * b)); 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 <= -2000000000.0) tmp = t_1; elseif (x <= 2.2e-277) tmp = c * (a * j); elseif (x <= 1.55e+58) tmp = i * (t * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2000000000.0], t$95$1, If[LessEqual[x, 2.2e-277], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.55e+58], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;x \leq -2000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{-277}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{+58}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -2e9 or 1.55e58 < x Initial program 69.4%
associate-+l-69.4%
*-commutative69.4%
sub-neg69.4%
sub-neg69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in z around inf 54.4%
Taylor expanded in y around inf 43.7%
if -2e9 < x < 2.19999999999999996e-277Initial program 71.0%
associate-+l-71.0%
*-commutative71.0%
sub-neg71.0%
sub-neg71.0%
*-commutative71.0%
Simplified71.0%
add-cube-cbrt71.0%
pow371.0%
*-commutative71.0%
Applied egg-rr71.0%
Taylor expanded in a around inf 33.8%
if 2.19999999999999996e-277 < x < 1.55e58Initial program 72.6%
associate-+l-72.6%
*-commutative72.6%
sub-neg72.6%
sub-neg72.6%
*-commutative72.6%
Simplified72.6%
add-cube-cbrt72.5%
pow372.5%
*-commutative72.5%
Applied egg-rr72.5%
Taylor expanded in t around inf 35.4%
Final simplification38.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= x -50000000000000.0)
t_1
(if (<= x 2.05e-276)
(* c (* a j))
(if (<= x 5.3e+54) (* b (* t 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 = y * (x * z);
double tmp;
if (x <= -50000000000000.0) {
tmp = t_1;
} else if (x <= 2.05e-276) {
tmp = c * (a * j);
} else if (x <= 5.3e+54) {
tmp = b * (t * 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 = y * (x * z)
if (x <= (-50000000000000.0d0)) then
tmp = t_1
else if (x <= 2.05d-276) then
tmp = c * (a * j)
else if (x <= 5.3d+54) then
tmp = b * (t * 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 = y * (x * z);
double tmp;
if (x <= -50000000000000.0) {
tmp = t_1;
} else if (x <= 2.05e-276) {
tmp = c * (a * j);
} else if (x <= 5.3e+54) {
tmp = b * (t * i);
} 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 <= -50000000000000.0: tmp = t_1 elif x <= 2.05e-276: tmp = c * (a * j) elif x <= 5.3e+54: tmp = b * (t * i) 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 <= -50000000000000.0) tmp = t_1; elseif (x <= 2.05e-276) tmp = Float64(c * Float64(a * j)); elseif (x <= 5.3e+54) tmp = Float64(b * Float64(t * i)); 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 <= -50000000000000.0) tmp = t_1; elseif (x <= 2.05e-276) tmp = c * (a * j); elseif (x <= 5.3e+54) tmp = b * (t * 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -50000000000000.0], t$95$1, If[LessEqual[x, 2.05e-276], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.3e+54], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;x \leq -50000000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.05 \cdot 10^{-276}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;x \leq 5.3 \cdot 10^{+54}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -5e13 or 5.30000000000000018e54 < x Initial program 69.4%
associate-+l-69.4%
*-commutative69.4%
sub-neg69.4%
sub-neg69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in z around inf 54.4%
Taylor expanded in y around inf 43.7%
if -5e13 < x < 2.05e-276Initial program 71.0%
associate-+l-71.0%
*-commutative71.0%
sub-neg71.0%
sub-neg71.0%
*-commutative71.0%
Simplified71.0%
add-cube-cbrt71.0%
pow371.0%
*-commutative71.0%
Applied egg-rr71.0%
Taylor expanded in a around inf 33.8%
if 2.05e-276 < x < 5.30000000000000018e54Initial program 72.6%
associate-+l-72.6%
*-commutative72.6%
sub-neg72.6%
sub-neg72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around inf 52.9%
Taylor expanded in i around inf 35.4%
associate-*r*36.6%
*-commutative36.6%
Simplified36.6%
Final simplification39.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= x -850000.0)
t_1
(if (<= x 6.8e-277)
(* c (* a j))
(if (<= x 2.9e+60) (* b (* t 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 = z * (x * y);
double tmp;
if (x <= -850000.0) {
tmp = t_1;
} else if (x <= 6.8e-277) {
tmp = c * (a * j);
} else if (x <= 2.9e+60) {
tmp = b * (t * 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 = z * (x * y)
if (x <= (-850000.0d0)) then
tmp = t_1
else if (x <= 6.8d-277) then
tmp = c * (a * j)
else if (x <= 2.9d+60) then
tmp = b * (t * 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 = z * (x * y);
double tmp;
if (x <= -850000.0) {
tmp = t_1;
} else if (x <= 6.8e-277) {
tmp = c * (a * j);
} else if (x <= 2.9e+60) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) tmp = 0 if x <= -850000.0: tmp = t_1 elif x <= 6.8e-277: tmp = c * (a * j) elif x <= 2.9e+60: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -850000.0) tmp = t_1; elseif (x <= 6.8e-277) tmp = Float64(c * Float64(a * j)); elseif (x <= 2.9e+60) tmp = Float64(b * Float64(t * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); tmp = 0.0; if (x <= -850000.0) tmp = t_1; elseif (x <= 6.8e-277) tmp = c * (a * j); elseif (x <= 2.9e+60) tmp = b * (t * 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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -850000.0], t$95$1, If[LessEqual[x, 6.8e-277], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e+60], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -850000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 6.8 \cdot 10^{-277}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{+60}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -8.5e5 or 2.9e60 < x Initial program 69.4%
associate-+l-69.4%
*-commutative69.4%
sub-neg69.4%
sub-neg69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in z around inf 54.4%
Taylor expanded in y around inf 48.5%
if -8.5e5 < x < 6.79999999999999964e-277Initial program 71.0%
associate-+l-71.0%
*-commutative71.0%
sub-neg71.0%
sub-neg71.0%
*-commutative71.0%
Simplified71.0%
add-cube-cbrt71.0%
pow371.0%
*-commutative71.0%
Applied egg-rr71.0%
Taylor expanded in a around inf 33.8%
if 6.79999999999999964e-277 < x < 2.9e60Initial program 72.6%
associate-+l-72.6%
*-commutative72.6%
sub-neg72.6%
sub-neg72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around inf 52.9%
Taylor expanded in i around inf 35.4%
associate-*r*36.6%
*-commutative36.6%
Simplified36.6%
Final simplification41.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.25e+55) (not (<= a 1.32e+47))) (* c (* a j)) (* i (* t b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.25e+55) || !(a <= 1.32e+47)) {
tmp = c * (a * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-1.25d+55)) .or. (.not. (a <= 1.32d+47))) then
tmp = c * (a * j)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.25e+55) || !(a <= 1.32e+47)) {
tmp = c * (a * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.25e+55) or not (a <= 1.32e+47): tmp = c * (a * j) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.25e+55) || !(a <= 1.32e+47)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1.25e+55) || ~((a <= 1.32e+47))) tmp = c * (a * j); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.25e+55], N[Not[LessEqual[a, 1.32e+47]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.25 \cdot 10^{+55} \lor \neg \left(a \leq 1.32 \cdot 10^{+47}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if a < -1.25000000000000011e55 or 1.31999999999999992e47 < a Initial program 59.9%
associate-+l-59.9%
*-commutative59.9%
sub-neg59.9%
sub-neg59.9%
*-commutative59.9%
Simplified59.9%
add-cube-cbrt59.8%
pow359.8%
*-commutative59.8%
Applied egg-rr59.8%
Taylor expanded in a around inf 46.0%
if -1.25000000000000011e55 < a < 1.31999999999999992e47Initial program 79.7%
associate-+l-79.7%
*-commutative79.7%
sub-neg79.7%
sub-neg79.7%
*-commutative79.7%
Simplified79.7%
add-cube-cbrt79.5%
pow379.5%
*-commutative79.5%
Applied egg-rr79.5%
Taylor expanded in t around inf 26.5%
Final simplification35.3%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 70.7%
associate-+l-70.7%
*-commutative70.7%
sub-neg70.7%
sub-neg70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in a around inf 38.2%
+-commutative38.2%
mul-1-neg38.2%
unsub-neg38.2%
Simplified38.2%
Taylor expanded in c around inf 23.2%
*-commutative23.2%
Simplified23.2%
Final simplification23.2%
(FPCore (x y z t a b c i j) :precision binary64 (* c (* a j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (a * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = c * (a * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (a * j);
}
def code(x, y, z, t, a, b, c, i, j): return c * (a * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(c * Float64(a * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = c * (a * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(a \cdot j\right)
\end{array}
Initial program 70.7%
associate-+l-70.7%
*-commutative70.7%
sub-neg70.7%
sub-neg70.7%
*-commutative70.7%
Simplified70.7%
add-cube-cbrt70.6%
pow370.6%
*-commutative70.6%
Applied egg-rr70.6%
Taylor expanded in a around inf 24.3%
Final simplification24.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023309
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))