
(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 21 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 (- (* i j) (* x z)))
(t_2
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_2 INFINITY)
t_2
(* y (cbrt (* (- (* x z) (* i j)) (* 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 = (i * j) - (x * z);
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 = y * cbrt((((x * z) - (i * j)) * (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 = (i * j) - (x * z);
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 = y * Math.cbrt((((x * z) - (i * j)) * (t_1 * t_1)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * j) - Float64(x * z)) 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(y * cbrt(Float64(Float64(Float64(x * z) - Float64(i * j)) * 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[(i * j), $MachinePrecision] - N[(x * z), $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[(y * N[Power[N[(N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision] * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot j - x \cdot z\\
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}:\\
\;\;\;\;y \cdot \sqrt[3]{\left(x \cdot z - i \cdot j\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 89.6%
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%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in y around inf 46.4%
*-commutative46.4%
mul-1-neg46.4%
unsub-neg46.4%
*-commutative46.4%
Simplified46.4%
add-cbrt-cube57.1%
Applied egg-rr57.1%
associate-*l*57.1%
*-commutative57.1%
*-commutative57.1%
*-commutative57.1%
Simplified57.1%
Final simplification82.9%
(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 (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
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 = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * ((x * y) - (b * c)) 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(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $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}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\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 89.6%
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%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around inf 55.3%
Final simplification82.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -6.5e+200) (and (not (<= c -1.4e-19)) (<= c 2.1e+105))) (+ (* i (* t b)) (- (* x (- (* y z) (* t a))) (* y (* i j)))) (- (* j (- (* a c) (* y i))) (* c (* 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 ((c <= -6.5e+200) || (!(c <= -1.4e-19) && (c <= 2.1e+105))) {
tmp = (i * (t * b)) + ((x * ((y * z) - (t * a))) - (y * (i * j)));
} else {
tmp = (j * ((a * c) - (y * i))) - (c * (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 ((c <= (-6.5d+200)) .or. (.not. (c <= (-1.4d-19))) .and. (c <= 2.1d+105)) then
tmp = (i * (t * b)) + ((x * ((y * z) - (t * a))) - (y * (i * j)))
else
tmp = (j * ((a * c) - (y * i))) - (c * (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 ((c <= -6.5e+200) || (!(c <= -1.4e-19) && (c <= 2.1e+105))) {
tmp = (i * (t * b)) + ((x * ((y * z) - (t * a))) - (y * (i * j)));
} else {
tmp = (j * ((a * c) - (y * i))) - (c * (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -6.5e+200) or (not (c <= -1.4e-19) and (c <= 2.1e+105)): tmp = (i * (t * b)) + ((x * ((y * z) - (t * a))) - (y * (i * j))) else: tmp = (j * ((a * c) - (y * i))) - (c * (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -6.5e+200) || (!(c <= -1.4e-19) && (c <= 2.1e+105))) tmp = Float64(Float64(i * Float64(t * b)) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(y * Float64(i * j)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(c * Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -6.5e+200) || (~((c <= -1.4e-19)) && (c <= 2.1e+105))) tmp = (i * (t * b)) + ((x * ((y * z) - (t * a))) - (y * (i * j))); else tmp = (j * ((a * c) - (y * i))) - (c * (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -6.5e+200], And[N[Not[LessEqual[c, -1.4e-19]], $MachinePrecision], LessEqual[c, 2.1e+105]]], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -6.5 \cdot 10^{+200} \lor \neg \left(c \leq -1.4 \cdot 10^{-19}\right) \land c \leq 2.1 \cdot 10^{+105}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - y \cdot \left(i \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\
\end{array}
\end{array}
if c < -6.49999999999999963e200 or -1.40000000000000001e-19 < c < 2.1000000000000001e105Initial program 75.7%
sub-neg75.7%
+-commutative75.7%
associate-+l+75.7%
distribute-rgt-neg-in75.7%
+-commutative75.7%
fma-def77.5%
sub-neg77.5%
+-commutative77.5%
distribute-neg-in77.5%
unsub-neg77.5%
remove-double-neg77.5%
*-commutative77.5%
Simplified78.1%
Taylor expanded in c around 0 73.9%
if -6.49999999999999963e200 < c < -1.40000000000000001e-19 or 2.1000000000000001e105 < c Initial program 62.5%
cancel-sign-sub62.5%
cancel-sign-sub-inv62.5%
*-commutative62.5%
remove-double-neg62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in c around inf 71.7%
mul-1-neg71.7%
*-commutative71.7%
Simplified71.7%
Final simplification73.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -2.85e-73) (not (<= c 3.1e+102))) (+ (- (* y (* x z)) (* a (* x t))) (* c (- (* a j) (* z b)))) (+ (* i (* t b)) (- (* x (- (* y z) (* t a))) (* y (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.85e-73) || !(c <= 3.1e+102)) {
tmp = ((y * (x * z)) - (a * (x * t))) + (c * ((a * j) - (z * b)));
} else {
tmp = (i * (t * b)) + ((x * ((y * z) - (t * a))) - (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) :: tmp
if ((c <= (-2.85d-73)) .or. (.not. (c <= 3.1d+102))) then
tmp = ((y * (x * z)) - (a * (x * t))) + (c * ((a * j) - (z * b)))
else
tmp = (i * (t * b)) + ((x * ((y * z) - (t * a))) - (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 tmp;
if ((c <= -2.85e-73) || !(c <= 3.1e+102)) {
tmp = ((y * (x * z)) - (a * (x * t))) + (c * ((a * j) - (z * b)));
} else {
tmp = (i * (t * b)) + ((x * ((y * z) - (t * a))) - (y * (i * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.85e-73) or not (c <= 3.1e+102): tmp = ((y * (x * z)) - (a * (x * t))) + (c * ((a * j) - (z * b))) else: tmp = (i * (t * b)) + ((x * ((y * z) - (t * a))) - (y * (i * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.85e-73) || !(c <= 3.1e+102)) tmp = Float64(Float64(Float64(y * Float64(x * z)) - Float64(a * Float64(x * t))) + Float64(c * Float64(Float64(a * j) - Float64(z * b)))); else tmp = Float64(Float64(i * Float64(t * b)) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(y * Float64(i * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -2.85e-73) || ~((c <= 3.1e+102))) tmp = ((y * (x * z)) - (a * (x * t))) + (c * ((a * j) - (z * b))); else tmp = (i * (t * b)) + ((x * ((y * z) - (t * a))) - (y * (i * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.85e-73], N[Not[LessEqual[c, 3.1e+102]], $MachinePrecision]], N[(N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.85 \cdot 10^{-73} \lor \neg \left(c \leq 3.1 \cdot 10^{+102}\right):\\
\;\;\;\;\left(y \cdot \left(x \cdot z\right) - a \cdot \left(x \cdot t\right)\right) + c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - y \cdot \left(i \cdot j\right)\right)\\
\end{array}
\end{array}
if c < -2.8499999999999999e-73 or 3.09999999999999987e102 < c Initial program 61.7%
cancel-sign-sub61.7%
cancel-sign-sub-inv61.7%
*-commutative61.7%
remove-double-neg61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in c around -inf 68.1%
Simplified74.9%
Taylor expanded in y around 0 71.1%
Taylor expanded in i around 0 70.1%
if -2.8499999999999999e-73 < c < 3.09999999999999987e102Initial program 81.4%
sub-neg81.4%
+-commutative81.4%
associate-+l+81.4%
distribute-rgt-neg-in81.4%
+-commutative81.4%
fma-def83.0%
sub-neg83.0%
+-commutative83.0%
distribute-neg-in83.0%
unsub-neg83.0%
remove-double-neg83.0%
*-commutative83.0%
Simplified83.0%
Taylor expanded in c around 0 75.7%
Final simplification72.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c))))
(t_2 (* j (- (* a c) (* y i))))
(t_3 (* t (- (* b i) (* x a)))))
(if (<= t -1.75e+52)
t_3
(if (<= t -5.2e-233)
(- t_2 (* c (* z b)))
(if (<= t -2.9e-292)
t_1
(if (<= t 1.75e-248)
(+ (* i (* t b)) t_2)
(if (<= t 3.9e-85)
t_1
(if (<= t 1.05e+90) (* a (- (* c j) (* x t))) 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 = z * ((x * y) - (b * c));
double t_2 = j * ((a * c) - (y * i));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.75e+52) {
tmp = t_3;
} else if (t <= -5.2e-233) {
tmp = t_2 - (c * (z * b));
} else if (t <= -2.9e-292) {
tmp = t_1;
} else if (t <= 1.75e-248) {
tmp = (i * (t * b)) + t_2;
} else if (t <= 3.9e-85) {
tmp = t_1;
} else if (t <= 1.05e+90) {
tmp = a * ((c * j) - (x * t));
} 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 = z * ((x * y) - (b * c))
t_2 = j * ((a * c) - (y * i))
t_3 = t * ((b * i) - (x * a))
if (t <= (-1.75d+52)) then
tmp = t_3
else if (t <= (-5.2d-233)) then
tmp = t_2 - (c * (z * b))
else if (t <= (-2.9d-292)) then
tmp = t_1
else if (t <= 1.75d-248) then
tmp = (i * (t * b)) + t_2
else if (t <= 3.9d-85) then
tmp = t_1
else if (t <= 1.05d+90) then
tmp = a * ((c * j) - (x * t))
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 = z * ((x * y) - (b * c));
double t_2 = j * ((a * c) - (y * i));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.75e+52) {
tmp = t_3;
} else if (t <= -5.2e-233) {
tmp = t_2 - (c * (z * b));
} else if (t <= -2.9e-292) {
tmp = t_1;
} else if (t <= 1.75e-248) {
tmp = (i * (t * b)) + t_2;
} else if (t <= 3.9e-85) {
tmp = t_1;
} else if (t <= 1.05e+90) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = j * ((a * c) - (y * i)) t_3 = t * ((b * i) - (x * a)) tmp = 0 if t <= -1.75e+52: tmp = t_3 elif t <= -5.2e-233: tmp = t_2 - (c * (z * b)) elif t <= -2.9e-292: tmp = t_1 elif t <= 1.75e-248: tmp = (i * (t * b)) + t_2 elif t <= 3.9e-85: tmp = t_1 elif t <= 1.05e+90: tmp = a * ((c * j) - (x * t)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_3 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -1.75e+52) tmp = t_3; elseif (t <= -5.2e-233) tmp = Float64(t_2 - Float64(c * Float64(z * b))); elseif (t <= -2.9e-292) tmp = t_1; elseif (t <= 1.75e-248) tmp = Float64(Float64(i * Float64(t * b)) + t_2); elseif (t <= 3.9e-85) tmp = t_1; elseif (t <= 1.05e+90) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = j * ((a * c) - (y * i)); t_3 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -1.75e+52) tmp = t_3; elseif (t <= -5.2e-233) tmp = t_2 - (c * (z * b)); elseif (t <= -2.9e-292) tmp = t_1; elseif (t <= 1.75e-248) tmp = (i * (t * b)) + t_2; elseif (t <= 3.9e-85) tmp = t_1; elseif (t <= 1.05e+90) tmp = a * ((c * j) - (x * t)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.75e+52], t$95$3, If[LessEqual[t, -5.2e-233], N[(t$95$2 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.9e-292], t$95$1, If[LessEqual[t, 1.75e-248], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[t, 3.9e-85], t$95$1, If[LessEqual[t, 1.05e+90], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.75 \cdot 10^{+52}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{-233}:\\
\;\;\;\;t_2 - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;t \leq -2.9 \cdot 10^{-292}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-248}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) + t_2\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{-85}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+90}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -1.75e52 or 1.0499999999999999e90 < t Initial program 60.1%
cancel-sign-sub60.1%
cancel-sign-sub-inv60.1%
*-commutative60.1%
remove-double-neg60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in t around inf 70.0%
*-commutative70.0%
associate-*r*70.0%
neg-mul-170.0%
cancel-sign-sub70.0%
+-commutative70.0%
mul-1-neg70.0%
unsub-neg70.0%
Simplified70.0%
if -1.75e52 < t < -5.1999999999999996e-233Initial program 75.4%
cancel-sign-sub75.4%
cancel-sign-sub-inv75.4%
*-commutative75.4%
remove-double-neg75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in c around inf 64.7%
mul-1-neg64.7%
*-commutative64.7%
Simplified64.7%
if -5.1999999999999996e-233 < t < -2.89999999999999993e-292 or 1.74999999999999991e-248 < t < 3.89999999999999988e-85Initial program 75.1%
cancel-sign-sub75.1%
cancel-sign-sub-inv75.1%
*-commutative75.1%
remove-double-neg75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in z around inf 68.8%
if -2.89999999999999993e-292 < t < 1.74999999999999991e-248Initial program 83.3%
cancel-sign-sub83.3%
cancel-sign-sub-inv83.3%
*-commutative83.3%
remove-double-neg83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in i around inf 79.0%
if 3.89999999999999988e-85 < t < 1.0499999999999999e90Initial program 82.6%
cancel-sign-sub82.6%
cancel-sign-sub-inv82.6%
*-commutative82.6%
remove-double-neg82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in a around inf 56.8%
+-commutative56.8%
mul-1-neg56.8%
unsub-neg56.8%
*-commutative56.8%
Simplified56.8%
Final simplification66.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= c -0.06)
t_3
(if (<= c -1.7e-92)
t_2
(if (<= c -3.35e-195)
t_1
(if (<= c -7.6e-248)
(* i (- (* t b) (* y j)))
(if (<= c 7.2e-158) t_1 (if (<= c 8.4e+110) 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 = y * ((x * z) - (i * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -0.06) {
tmp = t_3;
} else if (c <= -1.7e-92) {
tmp = t_2;
} else if (c <= -3.35e-195) {
tmp = t_1;
} else if (c <= -7.6e-248) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 7.2e-158) {
tmp = t_1;
} else if (c <= 8.4e+110) {
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 = y * ((x * z) - (i * j))
t_3 = c * ((a * j) - (z * b))
if (c <= (-0.06d0)) then
tmp = t_3
else if (c <= (-1.7d-92)) then
tmp = t_2
else if (c <= (-3.35d-195)) then
tmp = t_1
else if (c <= (-7.6d-248)) then
tmp = i * ((t * b) - (y * j))
else if (c <= 7.2d-158) then
tmp = t_1
else if (c <= 8.4d+110) 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 = y * ((x * z) - (i * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -0.06) {
tmp = t_3;
} else if (c <= -1.7e-92) {
tmp = t_2;
} else if (c <= -3.35e-195) {
tmp = t_1;
} else if (c <= -7.6e-248) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 7.2e-158) {
tmp = t_1;
} else if (c <= 8.4e+110) {
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 = y * ((x * z) - (i * j)) t_3 = c * ((a * j) - (z * b)) tmp = 0 if c <= -0.06: tmp = t_3 elif c <= -1.7e-92: tmp = t_2 elif c <= -3.35e-195: tmp = t_1 elif c <= -7.6e-248: tmp = i * ((t * b) - (y * j)) elif c <= 7.2e-158: tmp = t_1 elif c <= 8.4e+110: 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(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -0.06) tmp = t_3; elseif (c <= -1.7e-92) tmp = t_2; elseif (c <= -3.35e-195) tmp = t_1; elseif (c <= -7.6e-248) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 7.2e-158) tmp = t_1; elseif (c <= 8.4e+110) 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 = y * ((x * z) - (i * j)); t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -0.06) tmp = t_3; elseif (c <= -1.7e-92) tmp = t_2; elseif (c <= -3.35e-195) tmp = t_1; elseif (c <= -7.6e-248) tmp = i * ((t * b) - (y * j)); elseif (c <= 7.2e-158) tmp = t_1; elseif (c <= 8.4e+110) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -0.06], t$95$3, If[LessEqual[c, -1.7e-92], t$95$2, If[LessEqual[c, -3.35e-195], t$95$1, If[LessEqual[c, -7.6e-248], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.2e-158], t$95$1, If[LessEqual[c, 8.4e+110], 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 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -0.06:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -1.7 \cdot 10^{-92}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -3.35 \cdot 10^{-195}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -7.6 \cdot 10^{-248}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{-158}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 8.4 \cdot 10^{+110}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -0.059999999999999998 or 8.4000000000000006e110 < c Initial program 62.1%
cancel-sign-sub62.1%
cancel-sign-sub-inv62.1%
*-commutative62.1%
remove-double-neg62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in c around inf 63.5%
*-commutative63.5%
Simplified63.5%
if -0.059999999999999998 < c < -1.7000000000000001e-92 or 7.19999999999999982e-158 < c < 8.4000000000000006e110Initial program 73.6%
cancel-sign-sub73.6%
cancel-sign-sub-inv73.6%
*-commutative73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in y around inf 54.7%
*-commutative54.7%
mul-1-neg54.7%
unsub-neg54.7%
*-commutative54.7%
Simplified54.7%
if -1.7000000000000001e-92 < c < -3.3500000000000001e-195 or -7.5999999999999998e-248 < c < 7.19999999999999982e-158Initial program 83.0%
cancel-sign-sub83.0%
cancel-sign-sub-inv83.0%
*-commutative83.0%
remove-double-neg83.0%
*-commutative83.0%
Simplified83.0%
Taylor expanded in t around inf 67.5%
*-commutative67.5%
associate-*r*67.5%
neg-mul-167.5%
cancel-sign-sub67.5%
+-commutative67.5%
mul-1-neg67.5%
unsub-neg67.5%
Simplified67.5%
if -3.3500000000000001e-195 < c < -7.5999999999999998e-248Initial program 80.7%
cancel-sign-sub80.7%
cancel-sign-sub-inv80.7%
*-commutative80.7%
remove-double-neg80.7%
*-commutative80.7%
Simplified80.7%
Taylor expanded in i around inf 80.1%
cancel-sign-sub-inv80.1%
metadata-eval80.1%
*-lft-identity80.1%
+-commutative80.1%
mul-1-neg80.1%
unsub-neg80.1%
*-commutative80.1%
Simplified80.1%
Final simplification62.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* i (- (* t b) (* y j)))))
(if (<= i -4.2e+205)
t_2
(if (<= i -2.6e-8)
(+ (* i (* t b)) (* j (- (* a c) (* y i))))
(if (<= i -4.4e-293)
t_1
(if (<= i 4.6e-281)
(* z (- (* x y) (* b c)))
(if (<= i 1.45e-179)
t_1
(if (<= i 8.7e+15) (* c (- (* a j) (* z b))) 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.2e+205) {
tmp = t_2;
} else if (i <= -2.6e-8) {
tmp = (i * (t * b)) + (j * ((a * c) - (y * i)));
} else if (i <= -4.4e-293) {
tmp = t_1;
} else if (i <= 4.6e-281) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 1.45e-179) {
tmp = t_1;
} else if (i <= 8.7e+15) {
tmp = c * ((a * j) - (z * b));
} 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 = i * ((t * b) - (y * j))
if (i <= (-4.2d+205)) then
tmp = t_2
else if (i <= (-2.6d-8)) then
tmp = (i * (t * b)) + (j * ((a * c) - (y * i)))
else if (i <= (-4.4d-293)) then
tmp = t_1
else if (i <= 4.6d-281) then
tmp = z * ((x * y) - (b * c))
else if (i <= 1.45d-179) then
tmp = t_1
else if (i <= 8.7d+15) then
tmp = c * ((a * j) - (z * b))
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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.2e+205) {
tmp = t_2;
} else if (i <= -2.6e-8) {
tmp = (i * (t * b)) + (j * ((a * c) - (y * i)));
} else if (i <= -4.4e-293) {
tmp = t_1;
} else if (i <= 4.6e-281) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 1.45e-179) {
tmp = t_1;
} else if (i <= 8.7e+15) {
tmp = c * ((a * j) - (z * b));
} 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 = i * ((t * b) - (y * j)) tmp = 0 if i <= -4.2e+205: tmp = t_2 elif i <= -2.6e-8: tmp = (i * (t * b)) + (j * ((a * c) - (y * i))) elif i <= -4.4e-293: tmp = t_1 elif i <= 4.6e-281: tmp = z * ((x * y) - (b * c)) elif i <= 1.45e-179: tmp = t_1 elif i <= 8.7e+15: tmp = c * ((a * j) - (z * b)) 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(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -4.2e+205) tmp = t_2; elseif (i <= -2.6e-8) tmp = Float64(Float64(i * Float64(t * b)) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); elseif (i <= -4.4e-293) tmp = t_1; elseif (i <= 4.6e-281) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= 1.45e-179) tmp = t_1; elseif (i <= 8.7e+15) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); 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 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -4.2e+205) tmp = t_2; elseif (i <= -2.6e-8) tmp = (i * (t * b)) + (j * ((a * c) - (y * i))); elseif (i <= -4.4e-293) tmp = t_1; elseif (i <= 4.6e-281) tmp = z * ((x * y) - (b * c)); elseif (i <= 1.45e-179) tmp = t_1; elseif (i <= 8.7e+15) tmp = c * ((a * j) - (z * b)); 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.2e+205], t$95$2, If[LessEqual[i, -2.6e-8], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.4e-293], t$95$1, If[LessEqual[i, 4.6e-281], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.45e-179], t$95$1, If[LessEqual[i, 8.7e+15], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -4.2 \cdot 10^{+205}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -2.6 \cdot 10^{-8}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;i \leq -4.4 \cdot 10^{-293}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 4.6 \cdot 10^{-281}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq 1.45 \cdot 10^{-179}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 8.7 \cdot 10^{+15}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -4.2000000000000001e205 or 8.7e15 < i Initial program 46.5%
cancel-sign-sub46.5%
cancel-sign-sub-inv46.5%
*-commutative46.5%
remove-double-neg46.5%
*-commutative46.5%
Simplified46.5%
Taylor expanded in i around inf 74.2%
cancel-sign-sub-inv74.2%
metadata-eval74.2%
*-lft-identity74.2%
+-commutative74.2%
mul-1-neg74.2%
unsub-neg74.2%
*-commutative74.2%
Simplified74.2%
if -4.2000000000000001e205 < i < -2.6000000000000001e-8Initial program 72.9%
cancel-sign-sub72.9%
cancel-sign-sub-inv72.9%
*-commutative72.9%
remove-double-neg72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in i around inf 69.9%
if -2.6000000000000001e-8 < i < -4.4e-293 or 4.59999999999999978e-281 < i < 1.4499999999999999e-179Initial program 83.4%
cancel-sign-sub83.4%
cancel-sign-sub-inv83.4%
*-commutative83.4%
remove-double-neg83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in x around inf 61.5%
if -4.4e-293 < i < 4.59999999999999978e-281Initial program 100.0%
cancel-sign-sub100.0%
cancel-sign-sub-inv100.0%
*-commutative100.0%
remove-double-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in z around inf 89.7%
if 1.4499999999999999e-179 < i < 8.7e15Initial program 76.2%
cancel-sign-sub76.2%
cancel-sign-sub-inv76.2%
*-commutative76.2%
remove-double-neg76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in c around inf 57.6%
*-commutative57.6%
Simplified57.6%
Final simplification66.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b))))
(t_2 (* a (- (* c j) (* x t))))
(t_3 (* i (- (* t b) (* y j)))))
(if (<= i -1.9e+53)
t_3
(if (<= i -2.9e-137)
t_2
(if (<= i 1.7e-281)
t_1
(if (<= i 1.05e-185) t_2 (if (<= i 5.2e+18) 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 = a * ((c * j) - (x * t));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.9e+53) {
tmp = t_3;
} else if (i <= -2.9e-137) {
tmp = t_2;
} else if (i <= 1.7e-281) {
tmp = t_1;
} else if (i <= 1.05e-185) {
tmp = t_2;
} else if (i <= 5.2e+18) {
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 = a * ((c * j) - (x * t))
t_3 = i * ((t * b) - (y * j))
if (i <= (-1.9d+53)) then
tmp = t_3
else if (i <= (-2.9d-137)) then
tmp = t_2
else if (i <= 1.7d-281) then
tmp = t_1
else if (i <= 1.05d-185) then
tmp = t_2
else if (i <= 5.2d+18) 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 = a * ((c * j) - (x * t));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.9e+53) {
tmp = t_3;
} else if (i <= -2.9e-137) {
tmp = t_2;
} else if (i <= 1.7e-281) {
tmp = t_1;
} else if (i <= 1.05e-185) {
tmp = t_2;
} else if (i <= 5.2e+18) {
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 = a * ((c * j) - (x * t)) t_3 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1.9e+53: tmp = t_3 elif i <= -2.9e-137: tmp = t_2 elif i <= 1.7e-281: tmp = t_1 elif i <= 1.05e-185: tmp = t_2 elif i <= 5.2e+18: 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(a * Float64(Float64(c * j) - Float64(x * t))) t_3 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.9e+53) tmp = t_3; elseif (i <= -2.9e-137) tmp = t_2; elseif (i <= 1.7e-281) tmp = t_1; elseif (i <= 1.05e-185) tmp = t_2; elseif (i <= 5.2e+18) 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 = a * ((c * j) - (x * t)); t_3 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1.9e+53) tmp = t_3; elseif (i <= -2.9e-137) tmp = t_2; elseif (i <= 1.7e-281) tmp = t_1; elseif (i <= 1.05e-185) tmp = t_2; elseif (i <= 5.2e+18) 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.9e+53], t$95$3, If[LessEqual[i, -2.9e-137], t$95$2, If[LessEqual[i, 1.7e-281], t$95$1, If[LessEqual[i, 1.05e-185], t$95$2, If[LessEqual[i, 5.2e+18], 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 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_3 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.9 \cdot 10^{+53}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;i \leq -2.9 \cdot 10^{-137}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 1.7 \cdot 10^{-281}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.05 \cdot 10^{-185}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{+18}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if i < -1.89999999999999999e53 or 5.2e18 < i Initial program 53.9%
cancel-sign-sub53.9%
cancel-sign-sub-inv53.9%
*-commutative53.9%
remove-double-neg53.9%
*-commutative53.9%
Simplified53.9%
Taylor expanded in i around inf 70.5%
cancel-sign-sub-inv70.5%
metadata-eval70.5%
*-lft-identity70.5%
+-commutative70.5%
mul-1-neg70.5%
unsub-neg70.5%
*-commutative70.5%
Simplified70.5%
if -1.89999999999999999e53 < i < -2.89999999999999985e-137 or 1.7e-281 < i < 1.05e-185Initial program 79.4%
cancel-sign-sub79.4%
cancel-sign-sub-inv79.4%
*-commutative79.4%
remove-double-neg79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in a around inf 54.1%
+-commutative54.1%
mul-1-neg54.1%
unsub-neg54.1%
*-commutative54.1%
Simplified54.1%
if -2.89999999999999985e-137 < i < 1.7e-281 or 1.05e-185 < i < 5.2e18Initial program 83.1%
cancel-sign-sub83.1%
cancel-sign-sub-inv83.1%
*-commutative83.1%
remove-double-neg83.1%
*-commutative83.1%
Simplified83.1%
Taylor expanded in c around inf 54.3%
*-commutative54.3%
Simplified54.3%
Final simplification60.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* i (- (* t b) (* y j)))))
(if (<= i -2.6e+63)
t_2
(if (<= i 8.2e-280)
(* z (- (* x y) (* b c)))
(if (<= i 8.8e-181)
t_1
(if (<= i 3.5e-19)
(* c (- (* a j) (* z b)))
(if (<= i 4.6e+22) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.6e+63) {
tmp = t_2;
} else if (i <= 8.2e-280) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 8.8e-181) {
tmp = t_1;
} else if (i <= 3.5e-19) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 4.6e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = i * ((t * b) - (y * j))
if (i <= (-2.6d+63)) then
tmp = t_2
else if (i <= 8.2d-280) then
tmp = z * ((x * y) - (b * c))
else if (i <= 8.8d-181) then
tmp = t_1
else if (i <= 3.5d-19) then
tmp = c * ((a * j) - (z * b))
else if (i <= 4.6d+22) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.6e+63) {
tmp = t_2;
} else if (i <= 8.2e-280) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 8.8e-181) {
tmp = t_1;
} else if (i <= 3.5e-19) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 4.6e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = i * ((t * b) - (y * j)) tmp = 0 if i <= -2.6e+63: tmp = t_2 elif i <= 8.2e-280: tmp = z * ((x * y) - (b * c)) elif i <= 8.8e-181: tmp = t_1 elif i <= 3.5e-19: tmp = c * ((a * j) - (z * b)) elif i <= 4.6e+22: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.6e+63) tmp = t_2; elseif (i <= 8.2e-280) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= 8.8e-181) tmp = t_1; elseif (i <= 3.5e-19) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 4.6e+22) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -2.6e+63) tmp = t_2; elseif (i <= 8.2e-280) tmp = z * ((x * y) - (b * c)); elseif (i <= 8.8e-181) tmp = t_1; elseif (i <= 3.5e-19) tmp = c * ((a * j) - (z * b)); elseif (i <= 4.6e+22) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.6e+63], t$95$2, If[LessEqual[i, 8.2e-280], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.8e-181], t$95$1, If[LessEqual[i, 3.5e-19], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.6e+22], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.6 \cdot 10^{+63}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 8.2 \cdot 10^{-280}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq 8.8 \cdot 10^{-181}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{-19}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 4.6 \cdot 10^{+22}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -2.6000000000000001e63 or 4.6000000000000004e22 < i Initial program 56.1%
cancel-sign-sub56.1%
cancel-sign-sub-inv56.1%
*-commutative56.1%
remove-double-neg56.1%
*-commutative56.1%
Simplified56.1%
Taylor expanded in i around inf 72.5%
cancel-sign-sub-inv72.5%
metadata-eval72.5%
*-lft-identity72.5%
+-commutative72.5%
mul-1-neg72.5%
unsub-neg72.5%
*-commutative72.5%
Simplified72.5%
if -2.6000000000000001e63 < i < 8.2000000000000003e-280Initial program 77.4%
cancel-sign-sub77.4%
cancel-sign-sub-inv77.4%
*-commutative77.4%
remove-double-neg77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in z around inf 51.0%
if 8.2000000000000003e-280 < i < 8.79999999999999988e-181 or 3.50000000000000015e-19 < i < 4.6000000000000004e22Initial program 84.0%
cancel-sign-sub84.0%
cancel-sign-sub-inv84.0%
*-commutative84.0%
remove-double-neg84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in a around inf 65.9%
+-commutative65.9%
mul-1-neg65.9%
unsub-neg65.9%
*-commutative65.9%
Simplified65.9%
if 8.79999999999999988e-181 < i < 3.50000000000000015e-19Initial program 80.9%
cancel-sign-sub80.9%
cancel-sign-sub-inv80.9%
*-commutative80.9%
remove-double-neg80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in c around inf 57.9%
*-commutative57.9%
Simplified57.9%
Final simplification61.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* i (- (* t b) (* y j)))))
(if (<= i -4.7e+64)
t_2
(if (<= i -3.8e-293)
t_1
(if (<= i 1.85e-279)
(* z (- (* x y) (* b c)))
(if (<= i 1.7e-178)
t_1
(if (<= i 1.45e+21) (* c (- (* a j) (* z b))) 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.7e+64) {
tmp = t_2;
} else if (i <= -3.8e-293) {
tmp = t_1;
} else if (i <= 1.85e-279) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 1.7e-178) {
tmp = t_1;
} else if (i <= 1.45e+21) {
tmp = c * ((a * j) - (z * b));
} 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 = i * ((t * b) - (y * j))
if (i <= (-4.7d+64)) then
tmp = t_2
else if (i <= (-3.8d-293)) then
tmp = t_1
else if (i <= 1.85d-279) then
tmp = z * ((x * y) - (b * c))
else if (i <= 1.7d-178) then
tmp = t_1
else if (i <= 1.45d+21) then
tmp = c * ((a * j) - (z * b))
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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.7e+64) {
tmp = t_2;
} else if (i <= -3.8e-293) {
tmp = t_1;
} else if (i <= 1.85e-279) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 1.7e-178) {
tmp = t_1;
} else if (i <= 1.45e+21) {
tmp = c * ((a * j) - (z * b));
} 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 = i * ((t * b) - (y * j)) tmp = 0 if i <= -4.7e+64: tmp = t_2 elif i <= -3.8e-293: tmp = t_1 elif i <= 1.85e-279: tmp = z * ((x * y) - (b * c)) elif i <= 1.7e-178: tmp = t_1 elif i <= 1.45e+21: tmp = c * ((a * j) - (z * b)) 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(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -4.7e+64) tmp = t_2; elseif (i <= -3.8e-293) tmp = t_1; elseif (i <= 1.85e-279) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= 1.7e-178) tmp = t_1; elseif (i <= 1.45e+21) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); 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 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -4.7e+64) tmp = t_2; elseif (i <= -3.8e-293) tmp = t_1; elseif (i <= 1.85e-279) tmp = z * ((x * y) - (b * c)); elseif (i <= 1.7e-178) tmp = t_1; elseif (i <= 1.45e+21) tmp = c * ((a * j) - (z * b)); 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.7e+64], t$95$2, If[LessEqual[i, -3.8e-293], t$95$1, If[LessEqual[i, 1.85e-279], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.7e-178], t$95$1, If[LessEqual[i, 1.45e+21], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -4.7 \cdot 10^{+64}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -3.8 \cdot 10^{-293}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.85 \cdot 10^{-279}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq 1.7 \cdot 10^{-178}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.45 \cdot 10^{+21}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -4.70000000000000029e64 or 1.45e21 < i Initial program 56.1%
cancel-sign-sub56.1%
cancel-sign-sub-inv56.1%
*-commutative56.1%
remove-double-neg56.1%
*-commutative56.1%
Simplified56.1%
Taylor expanded in i around inf 72.5%
cancel-sign-sub-inv72.5%
metadata-eval72.5%
*-lft-identity72.5%
+-commutative72.5%
mul-1-neg72.5%
unsub-neg72.5%
*-commutative72.5%
Simplified72.5%
if -4.70000000000000029e64 < i < -3.8e-293 or 1.85000000000000019e-279 < i < 1.69999999999999986e-178Initial program 79.1%
cancel-sign-sub79.1%
cancel-sign-sub-inv79.1%
*-commutative79.1%
remove-double-neg79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in x around inf 56.7%
if -3.8e-293 < i < 1.85000000000000019e-279Initial program 100.0%
cancel-sign-sub100.0%
cancel-sign-sub-inv100.0%
*-commutative100.0%
remove-double-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in z around inf 89.7%
if 1.69999999999999986e-178 < i < 1.45e21Initial program 76.2%
cancel-sign-sub76.2%
cancel-sign-sub-inv76.2%
*-commutative76.2%
remove-double-neg76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in c around inf 57.6%
*-commutative57.6%
Simplified57.6%
Final simplification63.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* t i))))
(if (<= i -1.2e+142)
t_1
(if (<= i -5.1e+73)
(* j (* y (- i)))
(if (<= i -5e+27)
t_1
(if (<= i -4.3e-266)
(* x (* y z))
(if (<= i 1.95e+17)
(* a (* x (- t)))
(if (<= i 1.62e+143) 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);
double tmp;
if (i <= -1.2e+142) {
tmp = t_1;
} else if (i <= -5.1e+73) {
tmp = j * (y * -i);
} else if (i <= -5e+27) {
tmp = t_1;
} else if (i <= -4.3e-266) {
tmp = x * (y * z);
} else if (i <= 1.95e+17) {
tmp = a * (x * -t);
} else if (i <= 1.62e+143) {
tmp = t_1;
} else {
tmp = 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) :: tmp
t_1 = b * (t * i)
if (i <= (-1.2d+142)) then
tmp = t_1
else if (i <= (-5.1d+73)) then
tmp = j * (y * -i)
else if (i <= (-5d+27)) then
tmp = t_1
else if (i <= (-4.3d-266)) then
tmp = x * (y * z)
else if (i <= 1.95d+17) then
tmp = a * (x * -t)
else if (i <= 1.62d+143) then
tmp = t_1
else
tmp = 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);
double tmp;
if (i <= -1.2e+142) {
tmp = t_1;
} else if (i <= -5.1e+73) {
tmp = j * (y * -i);
} else if (i <= -5e+27) {
tmp = t_1;
} else if (i <= -4.3e-266) {
tmp = x * (y * z);
} else if (i <= 1.95e+17) {
tmp = a * (x * -t);
} else if (i <= 1.62e+143) {
tmp = t_1;
} else {
tmp = y * (i * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (t * i) tmp = 0 if i <= -1.2e+142: tmp = t_1 elif i <= -5.1e+73: tmp = j * (y * -i) elif i <= -5e+27: tmp = t_1 elif i <= -4.3e-266: tmp = x * (y * z) elif i <= 1.95e+17: tmp = a * (x * -t) elif i <= 1.62e+143: tmp = t_1 else: tmp = y * (i * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(t * i)) tmp = 0.0 if (i <= -1.2e+142) tmp = t_1; elseif (i <= -5.1e+73) tmp = Float64(j * Float64(y * Float64(-i))); elseif (i <= -5e+27) tmp = t_1; elseif (i <= -4.3e-266) tmp = Float64(x * Float64(y * z)); elseif (i <= 1.95e+17) tmp = Float64(a * Float64(x * Float64(-t))); elseif (i <= 1.62e+143) tmp = t_1; else tmp = Float64(y * Float64(i * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (t * i); tmp = 0.0; if (i <= -1.2e+142) tmp = t_1; elseif (i <= -5.1e+73) tmp = j * (y * -i); elseif (i <= -5e+27) tmp = t_1; elseif (i <= -4.3e-266) tmp = x * (y * z); elseif (i <= 1.95e+17) tmp = a * (x * -t); elseif (i <= 1.62e+143) tmp = t_1; else tmp = 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[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.2e+142], t$95$1, If[LessEqual[i, -5.1e+73], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -5e+27], t$95$1, If[LessEqual[i, -4.3e-266], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.95e+17], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.62e+143], t$95$1, N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;i \leq -1.2 \cdot 10^{+142}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -5.1 \cdot 10^{+73}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;i \leq -5 \cdot 10^{+27}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -4.3 \cdot 10^{-266}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 1.95 \cdot 10^{+17}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;i \leq 1.62 \cdot 10^{+143}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if i < -1.2e142 or -5.10000000000000024e73 < i < -4.99999999999999979e27 or 1.95e17 < i < 1.62e143Initial program 58.1%
cancel-sign-sub58.1%
cancel-sign-sub-inv58.1%
*-commutative58.1%
remove-double-neg58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in b around inf 57.2%
Taylor expanded in i around inf 46.3%
associate-*r*51.7%
*-commutative51.7%
Simplified51.7%
if -1.2e142 < i < -5.10000000000000024e73Initial program 84.9%
cancel-sign-sub84.9%
cancel-sign-sub-inv84.9%
*-commutative84.9%
remove-double-neg84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in y around inf 63.4%
*-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in z around 0 41.1%
mul-1-neg41.1%
*-commutative41.1%
distribute-rgt-neg-in41.1%
Simplified41.1%
Taylor expanded in y around 0 41.1%
mul-1-neg41.1%
distribute-rgt-neg-in41.1%
*-commutative41.1%
distribute-rgt-neg-out41.1%
associate-*r*55.1%
*-commutative55.1%
associate-*l*55.1%
Simplified55.1%
if -4.99999999999999979e27 < i < -4.30000000000000028e-266Initial program 77.5%
cancel-sign-sub77.5%
cancel-sign-sub-inv77.5%
*-commutative77.5%
remove-double-neg77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in y around inf 44.4%
*-commutative44.4%
mul-1-neg44.4%
unsub-neg44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in z around inf 35.9%
*-commutative35.9%
*-commutative35.9%
associate-*l*38.5%
Simplified38.5%
if -4.30000000000000028e-266 < i < 1.95e17Initial program 83.4%
cancel-sign-sub83.4%
cancel-sign-sub-inv83.4%
*-commutative83.4%
remove-double-neg83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in a around inf 48.9%
+-commutative48.9%
mul-1-neg48.9%
unsub-neg48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in j around 0 30.9%
neg-mul-130.9%
distribute-rgt-neg-in30.9%
Simplified30.9%
if 1.62e143 < i Initial program 41.1%
cancel-sign-sub41.1%
cancel-sign-sub-inv41.1%
*-commutative41.1%
remove-double-neg41.1%
*-commutative41.1%
Simplified41.1%
Taylor expanded in y around inf 60.7%
*-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in z around 0 57.3%
mul-1-neg57.3%
*-commutative57.3%
distribute-rgt-neg-in57.3%
Simplified57.3%
Final simplification42.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* t i))))
(if (<= i -2.1e+142)
t_1
(if (<= i -8.8e+73)
(* j (* y (- i)))
(if (<= i -4.8e+27)
t_1
(if (<= i -8e-269)
(* x (* y z))
(if (<= i 1.08e+18)
(* x (* t (- a)))
(if (<= i 3.45e+137) 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);
double tmp;
if (i <= -2.1e+142) {
tmp = t_1;
} else if (i <= -8.8e+73) {
tmp = j * (y * -i);
} else if (i <= -4.8e+27) {
tmp = t_1;
} else if (i <= -8e-269) {
tmp = x * (y * z);
} else if (i <= 1.08e+18) {
tmp = x * (t * -a);
} else if (i <= 3.45e+137) {
tmp = t_1;
} else {
tmp = 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) :: tmp
t_1 = b * (t * i)
if (i <= (-2.1d+142)) then
tmp = t_1
else if (i <= (-8.8d+73)) then
tmp = j * (y * -i)
else if (i <= (-4.8d+27)) then
tmp = t_1
else if (i <= (-8d-269)) then
tmp = x * (y * z)
else if (i <= 1.08d+18) then
tmp = x * (t * -a)
else if (i <= 3.45d+137) then
tmp = t_1
else
tmp = 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);
double tmp;
if (i <= -2.1e+142) {
tmp = t_1;
} else if (i <= -8.8e+73) {
tmp = j * (y * -i);
} else if (i <= -4.8e+27) {
tmp = t_1;
} else if (i <= -8e-269) {
tmp = x * (y * z);
} else if (i <= 1.08e+18) {
tmp = x * (t * -a);
} else if (i <= 3.45e+137) {
tmp = t_1;
} else {
tmp = y * (i * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (t * i) tmp = 0 if i <= -2.1e+142: tmp = t_1 elif i <= -8.8e+73: tmp = j * (y * -i) elif i <= -4.8e+27: tmp = t_1 elif i <= -8e-269: tmp = x * (y * z) elif i <= 1.08e+18: tmp = x * (t * -a) elif i <= 3.45e+137: tmp = t_1 else: tmp = y * (i * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(t * i)) tmp = 0.0 if (i <= -2.1e+142) tmp = t_1; elseif (i <= -8.8e+73) tmp = Float64(j * Float64(y * Float64(-i))); elseif (i <= -4.8e+27) tmp = t_1; elseif (i <= -8e-269) tmp = Float64(x * Float64(y * z)); elseif (i <= 1.08e+18) tmp = Float64(x * Float64(t * Float64(-a))); elseif (i <= 3.45e+137) tmp = t_1; else tmp = Float64(y * Float64(i * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (t * i); tmp = 0.0; if (i <= -2.1e+142) tmp = t_1; elseif (i <= -8.8e+73) tmp = j * (y * -i); elseif (i <= -4.8e+27) tmp = t_1; elseif (i <= -8e-269) tmp = x * (y * z); elseif (i <= 1.08e+18) tmp = x * (t * -a); elseif (i <= 3.45e+137) tmp = t_1; else tmp = 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[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.1e+142], t$95$1, If[LessEqual[i, -8.8e+73], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.8e+27], t$95$1, If[LessEqual[i, -8e-269], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.08e+18], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.45e+137], t$95$1, N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;i \leq -2.1 \cdot 10^{+142}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -8.8 \cdot 10^{+73}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;i \leq -4.8 \cdot 10^{+27}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -8 \cdot 10^{-269}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 1.08 \cdot 10^{+18}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;i \leq 3.45 \cdot 10^{+137}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if i < -2.1e142 or -8.8e73 < i < -4.79999999999999995e27 or 1.08e18 < i < 3.4500000000000002e137Initial program 58.1%
cancel-sign-sub58.1%
cancel-sign-sub-inv58.1%
*-commutative58.1%
remove-double-neg58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in b around inf 57.2%
Taylor expanded in i around inf 46.3%
associate-*r*51.7%
*-commutative51.7%
Simplified51.7%
if -2.1e142 < i < -8.8e73Initial program 84.9%
cancel-sign-sub84.9%
cancel-sign-sub-inv84.9%
*-commutative84.9%
remove-double-neg84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in y around inf 63.4%
*-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in z around 0 41.1%
mul-1-neg41.1%
*-commutative41.1%
distribute-rgt-neg-in41.1%
Simplified41.1%
Taylor expanded in y around 0 41.1%
mul-1-neg41.1%
distribute-rgt-neg-in41.1%
*-commutative41.1%
distribute-rgt-neg-out41.1%
associate-*r*55.1%
*-commutative55.1%
associate-*l*55.1%
Simplified55.1%
if -4.79999999999999995e27 < i < -7.9999999999999997e-269Initial program 77.5%
cancel-sign-sub77.5%
cancel-sign-sub-inv77.5%
*-commutative77.5%
remove-double-neg77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in y around inf 44.4%
*-commutative44.4%
mul-1-neg44.4%
unsub-neg44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in z around inf 35.9%
*-commutative35.9%
*-commutative35.9%
associate-*l*38.5%
Simplified38.5%
if -7.9999999999999997e-269 < i < 1.08e18Initial program 83.4%
cancel-sign-sub83.4%
cancel-sign-sub-inv83.4%
*-commutative83.4%
remove-double-neg83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in c around -inf 78.9%
Simplified81.2%
Taylor expanded in y around 0 77.7%
Taylor expanded in i around 0 73.2%
Taylor expanded in t around inf 30.9%
neg-mul-130.9%
associate-*r*34.2%
distribute-lft-neg-in34.2%
distribute-rgt-neg-in34.2%
Simplified34.2%
if 3.4500000000000002e137 < i Initial program 41.1%
cancel-sign-sub41.1%
cancel-sign-sub-inv41.1%
*-commutative41.1%
remove-double-neg41.1%
*-commutative41.1%
Simplified41.1%
Taylor expanded in y around inf 60.7%
*-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in z around 0 57.3%
mul-1-neg57.3%
*-commutative57.3%
distribute-rgt-neg-in57.3%
Simplified57.3%
Final simplification43.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* t i))))
(if (<= i -4.5e+142)
t_1
(if (<= i -7.8e+73)
(* j (* y (- i)))
(if (<= i -7.5e+27)
t_1
(if (<= i -1.6e-265)
(* x (* y z))
(if (<= i 69000000000000.0)
(* x (* t (- a)))
(if (<= i 6.4e+137) t_1 (* i (* y (- j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double tmp;
if (i <= -4.5e+142) {
tmp = t_1;
} else if (i <= -7.8e+73) {
tmp = j * (y * -i);
} else if (i <= -7.5e+27) {
tmp = t_1;
} else if (i <= -1.6e-265) {
tmp = x * (y * z);
} else if (i <= 69000000000000.0) {
tmp = x * (t * -a);
} else if (i <= 6.4e+137) {
tmp = t_1;
} else {
tmp = i * (y * -j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (t * i)
if (i <= (-4.5d+142)) then
tmp = t_1
else if (i <= (-7.8d+73)) then
tmp = j * (y * -i)
else if (i <= (-7.5d+27)) then
tmp = t_1
else if (i <= (-1.6d-265)) then
tmp = x * (y * z)
else if (i <= 69000000000000.0d0) then
tmp = x * (t * -a)
else if (i <= 6.4d+137) then
tmp = t_1
else
tmp = i * (y * -j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double tmp;
if (i <= -4.5e+142) {
tmp = t_1;
} else if (i <= -7.8e+73) {
tmp = j * (y * -i);
} else if (i <= -7.5e+27) {
tmp = t_1;
} else if (i <= -1.6e-265) {
tmp = x * (y * z);
} else if (i <= 69000000000000.0) {
tmp = x * (t * -a);
} else if (i <= 6.4e+137) {
tmp = t_1;
} else {
tmp = i * (y * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (t * i) tmp = 0 if i <= -4.5e+142: tmp = t_1 elif i <= -7.8e+73: tmp = j * (y * -i) elif i <= -7.5e+27: tmp = t_1 elif i <= -1.6e-265: tmp = x * (y * z) elif i <= 69000000000000.0: tmp = x * (t * -a) elif i <= 6.4e+137: tmp = t_1 else: tmp = i * (y * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(t * i)) tmp = 0.0 if (i <= -4.5e+142) tmp = t_1; elseif (i <= -7.8e+73) tmp = Float64(j * Float64(y * Float64(-i))); elseif (i <= -7.5e+27) tmp = t_1; elseif (i <= -1.6e-265) tmp = Float64(x * Float64(y * z)); elseif (i <= 69000000000000.0) tmp = Float64(x * Float64(t * Float64(-a))); elseif (i <= 6.4e+137) tmp = t_1; else tmp = Float64(i * Float64(y * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (t * i); tmp = 0.0; if (i <= -4.5e+142) tmp = t_1; elseif (i <= -7.8e+73) tmp = j * (y * -i); elseif (i <= -7.5e+27) tmp = t_1; elseif (i <= -1.6e-265) tmp = x * (y * z); elseif (i <= 69000000000000.0) tmp = x * (t * -a); elseif (i <= 6.4e+137) tmp = t_1; else tmp = i * (y * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.5e+142], t$95$1, If[LessEqual[i, -7.8e+73], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7.5e+27], t$95$1, If[LessEqual[i, -1.6e-265], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 69000000000000.0], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.4e+137], t$95$1, N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;i \leq -4.5 \cdot 10^{+142}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -7.8 \cdot 10^{+73}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;i \leq -7.5 \cdot 10^{+27}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -1.6 \cdot 10^{-265}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 69000000000000:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;i \leq 6.4 \cdot 10^{+137}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if i < -4.4999999999999999e142 or -7.8000000000000002e73 < i < -7.5000000000000002e27 or 6.9e13 < i < 6.40000000000000038e137Initial program 58.1%
cancel-sign-sub58.1%
cancel-sign-sub-inv58.1%
*-commutative58.1%
remove-double-neg58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in b around inf 57.2%
Taylor expanded in i around inf 46.3%
associate-*r*51.7%
*-commutative51.7%
Simplified51.7%
if -4.4999999999999999e142 < i < -7.8000000000000002e73Initial program 84.9%
cancel-sign-sub84.9%
cancel-sign-sub-inv84.9%
*-commutative84.9%
remove-double-neg84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in y around inf 63.4%
*-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in z around 0 41.1%
mul-1-neg41.1%
*-commutative41.1%
distribute-rgt-neg-in41.1%
Simplified41.1%
Taylor expanded in y around 0 41.1%
mul-1-neg41.1%
distribute-rgt-neg-in41.1%
*-commutative41.1%
distribute-rgt-neg-out41.1%
associate-*r*55.1%
*-commutative55.1%
associate-*l*55.1%
Simplified55.1%
if -7.5000000000000002e27 < i < -1.6e-265Initial program 77.5%
cancel-sign-sub77.5%
cancel-sign-sub-inv77.5%
*-commutative77.5%
remove-double-neg77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in y around inf 44.4%
*-commutative44.4%
mul-1-neg44.4%
unsub-neg44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in z around inf 35.9%
*-commutative35.9%
*-commutative35.9%
associate-*l*38.5%
Simplified38.5%
if -1.6e-265 < i < 6.9e13Initial program 83.4%
cancel-sign-sub83.4%
cancel-sign-sub-inv83.4%
*-commutative83.4%
remove-double-neg83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in c around -inf 78.9%
Simplified81.2%
Taylor expanded in y around 0 77.7%
Taylor expanded in i around 0 73.2%
Taylor expanded in t around inf 30.9%
neg-mul-130.9%
associate-*r*34.2%
distribute-lft-neg-in34.2%
distribute-rgt-neg-in34.2%
Simplified34.2%
if 6.40000000000000038e137 < i Initial program 41.1%
cancel-sign-sub41.1%
cancel-sign-sub-inv41.1%
*-commutative41.1%
remove-double-neg41.1%
*-commutative41.1%
Simplified41.1%
Taylor expanded in c around -inf 50.4%
Simplified51.1%
Taylor expanded in i around inf 80.4%
Taylor expanded in t around 0 57.4%
neg-mul-157.4%
distribute-rgt-neg-in57.4%
Simplified57.4%
Final simplification43.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* c (* a j))))
(if (<= z -1e+152)
(* b (* z (- c)))
(if (<= z -3.9e-7)
t_1
(if (<= z -3e-111)
t_2
(if (<= z -1.35e-223) (* b (* t i)) (if (<= z 8.2e+16) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = c * (a * j);
double tmp;
if (z <= -1e+152) {
tmp = b * (z * -c);
} else if (z <= -3.9e-7) {
tmp = t_1;
} else if (z <= -3e-111) {
tmp = t_2;
} else if (z <= -1.35e-223) {
tmp = b * (t * i);
} else if (z <= 8.2e+16) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (x * z)
t_2 = c * (a * j)
if (z <= (-1d+152)) then
tmp = b * (z * -c)
else if (z <= (-3.9d-7)) then
tmp = t_1
else if (z <= (-3d-111)) then
tmp = t_2
else if (z <= (-1.35d-223)) then
tmp = b * (t * i)
else if (z <= 8.2d+16) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = c * (a * j);
double tmp;
if (z <= -1e+152) {
tmp = b * (z * -c);
} else if (z <= -3.9e-7) {
tmp = t_1;
} else if (z <= -3e-111) {
tmp = t_2;
} else if (z <= -1.35e-223) {
tmp = b * (t * i);
} else if (z <= 8.2e+16) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = c * (a * j) tmp = 0 if z <= -1e+152: tmp = b * (z * -c) elif z <= -3.9e-7: tmp = t_1 elif z <= -3e-111: tmp = t_2 elif z <= -1.35e-223: tmp = b * (t * i) elif z <= 8.2e+16: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(c * Float64(a * j)) tmp = 0.0 if (z <= -1e+152) tmp = Float64(b * Float64(z * Float64(-c))); elseif (z <= -3.9e-7) tmp = t_1; elseif (z <= -3e-111) tmp = t_2; elseif (z <= -1.35e-223) tmp = Float64(b * Float64(t * i)); elseif (z <= 8.2e+16) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = c * (a * j); tmp = 0.0; if (z <= -1e+152) tmp = b * (z * -c); elseif (z <= -3.9e-7) tmp = t_1; elseif (z <= -3e-111) tmp = t_2; elseif (z <= -1.35e-223) tmp = b * (t * i); elseif (z <= 8.2e+16) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1e+152], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.9e-7], t$95$1, If[LessEqual[z, -3e-111], t$95$2, If[LessEqual[z, -1.35e-223], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e+16], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;z \leq -1 \cdot 10^{+152}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;z \leq -3.9 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-111}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-223}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{+16}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -1e152Initial program 58.6%
cancel-sign-sub58.6%
cancel-sign-sub-inv58.6%
*-commutative58.6%
remove-double-neg58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in b around inf 61.5%
Taylor expanded in i around 0 53.6%
mul-1-neg53.6%
distribute-lft-neg-out53.6%
*-commutative53.6%
Simplified53.6%
if -1e152 < z < -3.90000000000000025e-7 or 8.2e16 < z Initial program 68.4%
cancel-sign-sub68.4%
cancel-sign-sub-inv68.4%
*-commutative68.4%
remove-double-neg68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in y around inf 57.1%
*-commutative57.1%
mul-1-neg57.1%
unsub-neg57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in z around inf 44.2%
if -3.90000000000000025e-7 < z < -3.00000000000000008e-111 or -1.34999999999999994e-223 < z < 8.2e16Initial program 78.7%
cancel-sign-sub78.7%
cancel-sign-sub-inv78.7%
*-commutative78.7%
remove-double-neg78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in a around inf 54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in j around inf 37.3%
if -3.00000000000000008e-111 < z < -1.34999999999999994e-223Initial program 66.2%
cancel-sign-sub66.2%
cancel-sign-sub-inv66.2%
*-commutative66.2%
remove-double-neg66.2%
*-commutative66.2%
Simplified66.2%
Taylor expanded in b around inf 41.0%
Taylor expanded in i around inf 32.9%
associate-*r*41.0%
*-commutative41.0%
Simplified41.0%
Final simplification42.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -3.2e+254)
(* i (* t b))
(if (<= b -3.8e+157)
(* b (* z (- c)))
(if (<= b 2.1e+187) (* a (- (* c j) (* x t))) (* t (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3.2e+254) {
tmp = i * (t * b);
} else if (b <= -3.8e+157) {
tmp = b * (z * -c);
} else if (b <= 2.1e+187) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-3.2d+254)) then
tmp = i * (t * b)
else if (b <= (-3.8d+157)) then
tmp = b * (z * -c)
else if (b <= 2.1d+187) then
tmp = a * ((c * j) - (x * t))
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3.2e+254) {
tmp = i * (t * b);
} else if (b <= -3.8e+157) {
tmp = b * (z * -c);
} else if (b <= 2.1e+187) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -3.2e+254: tmp = i * (t * b) elif b <= -3.8e+157: tmp = b * (z * -c) elif b <= 2.1e+187: tmp = a * ((c * j) - (x * t)) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -3.2e+254) tmp = Float64(i * Float64(t * b)); elseif (b <= -3.8e+157) tmp = Float64(b * Float64(z * Float64(-c))); elseif (b <= 2.1e+187) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -3.2e+254) tmp = i * (t * b); elseif (b <= -3.8e+157) tmp = b * (z * -c); elseif (b <= 2.1e+187) tmp = a * ((c * j) - (x * t)); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -3.2e+254], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.8e+157], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e+187], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.2 \cdot 10^{+254}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{+157}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{+187}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -3.1999999999999998e254Initial program 50.5%
cancel-sign-sub50.5%
cancel-sign-sub-inv50.5%
*-commutative50.5%
remove-double-neg50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in i around inf 55.0%
Taylor expanded in t around inf 55.3%
if -3.1999999999999998e254 < b < -3.8000000000000001e157Initial program 86.8%
cancel-sign-sub86.8%
cancel-sign-sub-inv86.8%
*-commutative86.8%
remove-double-neg86.8%
*-commutative86.8%
Simplified86.8%
Taylor expanded in b around inf 84.8%
Taylor expanded in i around 0 55.4%
mul-1-neg55.4%
distribute-lft-neg-out55.4%
*-commutative55.4%
Simplified55.4%
if -3.8000000000000001e157 < b < 2.1e187Initial program 72.3%
cancel-sign-sub72.3%
cancel-sign-sub-inv72.3%
*-commutative72.3%
remove-double-neg72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in a around inf 48.0%
+-commutative48.0%
mul-1-neg48.0%
unsub-neg48.0%
*-commutative48.0%
Simplified48.0%
if 2.1e187 < b Initial program 58.2%
cancel-sign-sub58.2%
cancel-sign-sub-inv58.2%
*-commutative58.2%
remove-double-neg58.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in i around inf 44.5%
Taylor expanded in t around inf 49.5%
*-commutative49.5%
associate-*r*51.8%
Simplified51.8%
Final simplification49.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* a j))) (t_2 (* x (* y z))))
(if (<= z -2.35e-7)
t_2
(if (<= z -4.5e-170)
t_1
(if (<= z -4.2e-223) (* t (* b i)) (if (<= z 2.05e+17) 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 = c * (a * j);
double t_2 = x * (y * z);
double tmp;
if (z <= -2.35e-7) {
tmp = t_2;
} else if (z <= -4.5e-170) {
tmp = t_1;
} else if (z <= -4.2e-223) {
tmp = t * (b * i);
} else if (z <= 2.05e+17) {
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 = c * (a * j)
t_2 = x * (y * z)
if (z <= (-2.35d-7)) then
tmp = t_2
else if (z <= (-4.5d-170)) then
tmp = t_1
else if (z <= (-4.2d-223)) then
tmp = t * (b * i)
else if (z <= 2.05d+17) 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 = c * (a * j);
double t_2 = x * (y * z);
double tmp;
if (z <= -2.35e-7) {
tmp = t_2;
} else if (z <= -4.5e-170) {
tmp = t_1;
} else if (z <= -4.2e-223) {
tmp = t * (b * i);
} else if (z <= 2.05e+17) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (a * j) t_2 = x * (y * z) tmp = 0 if z <= -2.35e-7: tmp = t_2 elif z <= -4.5e-170: tmp = t_1 elif z <= -4.2e-223: tmp = t * (b * i) elif z <= 2.05e+17: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(a * j)) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -2.35e-7) tmp = t_2; elseif (z <= -4.5e-170) tmp = t_1; elseif (z <= -4.2e-223) tmp = Float64(t * Float64(b * i)); elseif (z <= 2.05e+17) 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 = c * (a * j); t_2 = x * (y * z); tmp = 0.0; if (z <= -2.35e-7) tmp = t_2; elseif (z <= -4.5e-170) tmp = t_1; elseif (z <= -4.2e-223) tmp = t * (b * i); elseif (z <= 2.05e+17) 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[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.35e-7], t$95$2, If[LessEqual[z, -4.5e-170], t$95$1, If[LessEqual[z, -4.2e-223], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e+17], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -2.35 \cdot 10^{-7}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{-170}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{-223}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -2.35e-7 or 2.05e17 < z Initial program 65.6%
cancel-sign-sub65.6%
cancel-sign-sub-inv65.6%
*-commutative65.6%
remove-double-neg65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in y around inf 54.4%
*-commutative54.4%
mul-1-neg54.4%
unsub-neg54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in z around inf 40.5%
*-commutative40.5%
*-commutative40.5%
associate-*l*41.3%
Simplified41.3%
if -2.35e-7 < z < -4.50000000000000002e-170 or -4.19999999999999965e-223 < z < 2.05e17Initial program 76.6%
cancel-sign-sub76.6%
cancel-sign-sub-inv76.6%
*-commutative76.6%
remove-double-neg76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in a around inf 52.7%
+-commutative52.7%
mul-1-neg52.7%
unsub-neg52.7%
*-commutative52.7%
Simplified52.7%
Taylor expanded in j around inf 36.3%
if -4.50000000000000002e-170 < z < -4.19999999999999965e-223Initial program 74.8%
cancel-sign-sub74.8%
cancel-sign-sub-inv74.8%
*-commutative74.8%
remove-double-neg74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in i around inf 51.7%
Taylor expanded in t around inf 52.2%
*-commutative52.2%
associate-*r*63.2%
Simplified63.2%
Final simplification39.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* a j))))
(if (<= z -3.3e-7)
(* x (* y z))
(if (<= z -1.55e-171)
t_1
(if (<= z -9.8e-226)
(* t (* b i))
(if (<= z 5.2e+16) t_1 (* y (* x z))))))))
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);
double tmp;
if (z <= -3.3e-7) {
tmp = x * (y * z);
} else if (z <= -1.55e-171) {
tmp = t_1;
} else if (z <= -9.8e-226) {
tmp = t * (b * i);
} else if (z <= 5.2e+16) {
tmp = t_1;
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (a * j)
if (z <= (-3.3d-7)) then
tmp = x * (y * z)
else if (z <= (-1.55d-171)) then
tmp = t_1
else if (z <= (-9.8d-226)) then
tmp = t * (b * i)
else if (z <= 5.2d+16) then
tmp = t_1
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (a * j);
double tmp;
if (z <= -3.3e-7) {
tmp = x * (y * z);
} else if (z <= -1.55e-171) {
tmp = t_1;
} else if (z <= -9.8e-226) {
tmp = t * (b * i);
} else if (z <= 5.2e+16) {
tmp = t_1;
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (a * j) tmp = 0 if z <= -3.3e-7: tmp = x * (y * z) elif z <= -1.55e-171: tmp = t_1 elif z <= -9.8e-226: tmp = t * (b * i) elif z <= 5.2e+16: tmp = t_1 else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(a * j)) tmp = 0.0 if (z <= -3.3e-7) tmp = Float64(x * Float64(y * z)); elseif (z <= -1.55e-171) tmp = t_1; elseif (z <= -9.8e-226) tmp = Float64(t * Float64(b * i)); elseif (z <= 5.2e+16) tmp = t_1; else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (a * j); tmp = 0.0; if (z <= -3.3e-7) tmp = x * (y * z); elseif (z <= -1.55e-171) tmp = t_1; elseif (z <= -9.8e-226) tmp = t * (b * i); elseif (z <= 5.2e+16) tmp = t_1; else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.3e-7], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.55e-171], t$95$1, If[LessEqual[z, -9.8e-226], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e+16], t$95$1, N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;z \leq -3.3 \cdot 10^{-7}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq -1.55 \cdot 10^{-171}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -9.8 \cdot 10^{-226}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{+16}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -3.3000000000000002e-7Initial program 63.4%
cancel-sign-sub63.4%
cancel-sign-sub-inv63.4%
*-commutative63.4%
remove-double-neg63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in y around inf 57.4%
*-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in z around inf 39.3%
*-commutative39.3%
*-commutative39.3%
associate-*l*42.2%
Simplified42.2%
if -3.3000000000000002e-7 < z < -1.55e-171 or -9.79999999999999972e-226 < z < 5.2e16Initial program 76.6%
cancel-sign-sub76.6%
cancel-sign-sub-inv76.6%
*-commutative76.6%
remove-double-neg76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in a around inf 52.7%
+-commutative52.7%
mul-1-neg52.7%
unsub-neg52.7%
*-commutative52.7%
Simplified52.7%
Taylor expanded in j around inf 36.3%
if -1.55e-171 < z < -9.79999999999999972e-226Initial program 74.8%
cancel-sign-sub74.8%
cancel-sign-sub-inv74.8%
*-commutative74.8%
remove-double-neg74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in i around inf 51.7%
Taylor expanded in t around inf 52.2%
*-commutative52.2%
associate-*r*63.2%
Simplified63.2%
if 5.2e16 < z Initial program 67.9%
cancel-sign-sub67.9%
cancel-sign-sub-inv67.9%
*-commutative67.9%
remove-double-neg67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in y around inf 51.2%
*-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
*-commutative51.2%
Simplified51.2%
Taylor expanded in z around inf 41.7%
Final simplification39.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* a j))))
(if (<= z -3.9e-7)
(* x (* y z))
(if (<= z -6e-113)
t_1
(if (<= z -1.7e-226)
(* b (* t i))
(if (<= z 1.8e+17) t_1 (* y (* x z))))))))
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);
double tmp;
if (z <= -3.9e-7) {
tmp = x * (y * z);
} else if (z <= -6e-113) {
tmp = t_1;
} else if (z <= -1.7e-226) {
tmp = b * (t * i);
} else if (z <= 1.8e+17) {
tmp = t_1;
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (a * j)
if (z <= (-3.9d-7)) then
tmp = x * (y * z)
else if (z <= (-6d-113)) then
tmp = t_1
else if (z <= (-1.7d-226)) then
tmp = b * (t * i)
else if (z <= 1.8d+17) then
tmp = t_1
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (a * j);
double tmp;
if (z <= -3.9e-7) {
tmp = x * (y * z);
} else if (z <= -6e-113) {
tmp = t_1;
} else if (z <= -1.7e-226) {
tmp = b * (t * i);
} else if (z <= 1.8e+17) {
tmp = t_1;
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (a * j) tmp = 0 if z <= -3.9e-7: tmp = x * (y * z) elif z <= -6e-113: tmp = t_1 elif z <= -1.7e-226: tmp = b * (t * i) elif z <= 1.8e+17: tmp = t_1 else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(a * j)) tmp = 0.0 if (z <= -3.9e-7) tmp = Float64(x * Float64(y * z)); elseif (z <= -6e-113) tmp = t_1; elseif (z <= -1.7e-226) tmp = Float64(b * Float64(t * i)); elseif (z <= 1.8e+17) tmp = t_1; else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (a * j); tmp = 0.0; if (z <= -3.9e-7) tmp = x * (y * z); elseif (z <= -6e-113) tmp = t_1; elseif (z <= -1.7e-226) tmp = b * (t * i); elseif (z <= 1.8e+17) tmp = t_1; else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.9e-7], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6e-113], t$95$1, If[LessEqual[z, -1.7e-226], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+17], t$95$1, N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;z \leq -3.9 \cdot 10^{-7}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq -6 \cdot 10^{-113}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{-226}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -3.90000000000000025e-7Initial program 63.4%
cancel-sign-sub63.4%
cancel-sign-sub-inv63.4%
*-commutative63.4%
remove-double-neg63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in y around inf 57.4%
*-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in z around inf 39.3%
*-commutative39.3%
*-commutative39.3%
associate-*l*42.2%
Simplified42.2%
if -3.90000000000000025e-7 < z < -6.0000000000000002e-113 or -1.70000000000000004e-226 < z < 1.8e17Initial program 78.7%
cancel-sign-sub78.7%
cancel-sign-sub-inv78.7%
*-commutative78.7%
remove-double-neg78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in a around inf 54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in j around inf 37.3%
if -6.0000000000000002e-113 < z < -1.70000000000000004e-226Initial program 66.2%
cancel-sign-sub66.2%
cancel-sign-sub-inv66.2%
*-commutative66.2%
remove-double-neg66.2%
*-commutative66.2%
Simplified66.2%
Taylor expanded in b around inf 41.0%
Taylor expanded in i around inf 32.9%
associate-*r*41.0%
*-commutative41.0%
Simplified41.0%
if 1.8e17 < z Initial program 67.9%
cancel-sign-sub67.9%
cancel-sign-sub-inv67.9%
*-commutative67.9%
remove-double-neg67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in y around inf 51.2%
*-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
*-commutative51.2%
Simplified51.2%
Taylor expanded in z around inf 41.7%
Final simplification40.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -7.5e+256) (not (<= t 5.8e-86))) (* a (- (* c j) (* x t))) (* 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 ((t <= -7.5e+256) || !(t <= 5.8e-86)) {
tmp = a * ((c * j) - (x * t));
} 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 ((t <= (-7.5d+256)) .or. (.not. (t <= 5.8d-86))) then
tmp = a * ((c * j) - (x * t))
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 ((t <= -7.5e+256) || !(t <= 5.8e-86)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -7.5e+256) or not (t <= 5.8e-86): tmp = a * ((c * j) - (x * t)) else: tmp = c * ((a * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -7.5e+256) || !(t <= 5.8e-86)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); 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 ((t <= -7.5e+256) || ~((t <= 5.8e-86))) tmp = a * ((c * j) - (x * t)); 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[t, -7.5e+256], N[Not[LessEqual[t, 5.8e-86]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.5 \cdot 10^{+256} \lor \neg \left(t \leq 5.8 \cdot 10^{-86}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if t < -7.4999999999999999e256 or 5.7999999999999998e-86 < t Initial program 68.8%
cancel-sign-sub68.8%
cancel-sign-sub-inv68.8%
*-commutative68.8%
remove-double-neg68.8%
*-commutative68.8%
Simplified68.8%
Taylor expanded in a around inf 57.7%
+-commutative57.7%
mul-1-neg57.7%
unsub-neg57.7%
*-commutative57.7%
Simplified57.7%
if -7.4999999999999999e256 < t < 5.7999999999999998e-86Initial program 72.6%
cancel-sign-sub72.6%
cancel-sign-sub-inv72.6%
*-commutative72.6%
remove-double-neg72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in c around inf 44.1%
*-commutative44.1%
Simplified44.1%
Final simplification49.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -1.06e+171) (* c (* a j)) (if (<= j 4e-105) (* i (* t b)) (* a (* c j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.06e+171) {
tmp = c * (a * j);
} else if (j <= 4e-105) {
tmp = i * (t * b);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-1.06d+171)) then
tmp = c * (a * j)
else if (j <= 4d-105) then
tmp = i * (t * b)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.06e+171) {
tmp = c * (a * j);
} else if (j <= 4e-105) {
tmp = i * (t * b);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.06e+171: tmp = c * (a * j) elif j <= 4e-105: tmp = i * (t * b) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.06e+171) tmp = Float64(c * Float64(a * j)); elseif (j <= 4e-105) tmp = Float64(i * Float64(t * b)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.06e+171) tmp = c * (a * j); elseif (j <= 4e-105) tmp = i * (t * b); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.06e+171], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4e-105], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.06 \cdot 10^{+171}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq 4 \cdot 10^{-105}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -1.06000000000000001e171Initial program 66.7%
cancel-sign-sub66.7%
cancel-sign-sub-inv66.7%
*-commutative66.7%
remove-double-neg66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in a around inf 53.2%
+-commutative53.2%
mul-1-neg53.2%
unsub-neg53.2%
*-commutative53.2%
Simplified53.2%
Taylor expanded in j around inf 45.6%
if -1.06000000000000001e171 < j < 3.99999999999999986e-105Initial program 68.7%
cancel-sign-sub68.7%
cancel-sign-sub-inv68.7%
*-commutative68.7%
remove-double-neg68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in i around inf 30.9%
Taylor expanded in t around inf 25.1%
if 3.99999999999999986e-105 < j Initial program 75.5%
cancel-sign-sub75.5%
cancel-sign-sub-inv75.5%
*-commutative75.5%
remove-double-neg75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in a around inf 46.5%
+-commutative46.5%
mul-1-neg46.5%
unsub-neg46.5%
*-commutative46.5%
Simplified46.5%
Taylor expanded in j around inf 34.5%
*-commutative34.5%
associate-*l*36.4%
*-commutative36.4%
Simplified36.4%
Final simplification31.6%
(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 71.1%
cancel-sign-sub71.1%
cancel-sign-sub-inv71.1%
*-commutative71.1%
remove-double-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in a around inf 40.9%
+-commutative40.9%
mul-1-neg40.9%
unsub-neg40.9%
*-commutative40.9%
Simplified40.9%
Taylor expanded in j around inf 22.5%
*-commutative22.5%
associate-*l*23.3%
*-commutative23.3%
Simplified23.3%
Final simplification23.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 2023224
(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)))))