
(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 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* t i))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* 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 t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = c * ((a * j) - (z * b));
}
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 * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = c * ((a * j) - (z * b)) 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(z * c) - Float64(t * i)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; 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) t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = c * ((a * j) - (z * b)); 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[(z * c), $MachinePrecision] - N[(t * i), $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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $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(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\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 92.7%
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%
Taylor expanded in c around inf 55.0%
*-commutative55.0%
Simplified55.0%
Final simplification85.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* a j))))
(if (<= z -1460000000.0)
(* b (* z (- c)))
(if (<= z -4e-72)
t_1
(if (<= z -8.6e-264)
(* i (* t b))
(if (<= z 8.5e-233)
(* x (* t (- a)))
(if (<= z 5.6e-136)
t_1
(if (<= z 5.5e-105)
(* t (* x (- a)))
(if (<= z 3.4e+135) (* j (* y (- i))) (* z (* 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 = c * (a * j);
double tmp;
if (z <= -1460000000.0) {
tmp = b * (z * -c);
} else if (z <= -4e-72) {
tmp = t_1;
} else if (z <= -8.6e-264) {
tmp = i * (t * b);
} else if (z <= 8.5e-233) {
tmp = x * (t * -a);
} else if (z <= 5.6e-136) {
tmp = t_1;
} else if (z <= 5.5e-105) {
tmp = t * (x * -a);
} else if (z <= 3.4e+135) {
tmp = j * (y * -i);
} else {
tmp = z * (b * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (a * j)
if (z <= (-1460000000.0d0)) then
tmp = b * (z * -c)
else if (z <= (-4d-72)) then
tmp = t_1
else if (z <= (-8.6d-264)) then
tmp = i * (t * b)
else if (z <= 8.5d-233) then
tmp = x * (t * -a)
else if (z <= 5.6d-136) then
tmp = t_1
else if (z <= 5.5d-105) then
tmp = t * (x * -a)
else if (z <= 3.4d+135) then
tmp = j * (y * -i)
else
tmp = z * (b * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (a * j);
double tmp;
if (z <= -1460000000.0) {
tmp = b * (z * -c);
} else if (z <= -4e-72) {
tmp = t_1;
} else if (z <= -8.6e-264) {
tmp = i * (t * b);
} else if (z <= 8.5e-233) {
tmp = x * (t * -a);
} else if (z <= 5.6e-136) {
tmp = t_1;
} else if (z <= 5.5e-105) {
tmp = t * (x * -a);
} else if (z <= 3.4e+135) {
tmp = j * (y * -i);
} else {
tmp = z * (b * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (a * j) tmp = 0 if z <= -1460000000.0: tmp = b * (z * -c) elif z <= -4e-72: tmp = t_1 elif z <= -8.6e-264: tmp = i * (t * b) elif z <= 8.5e-233: tmp = x * (t * -a) elif z <= 5.6e-136: tmp = t_1 elif z <= 5.5e-105: tmp = t * (x * -a) elif z <= 3.4e+135: tmp = j * (y * -i) else: tmp = z * (b * -c) 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 <= -1460000000.0) tmp = Float64(b * Float64(z * Float64(-c))); elseif (z <= -4e-72) tmp = t_1; elseif (z <= -8.6e-264) tmp = Float64(i * Float64(t * b)); elseif (z <= 8.5e-233) tmp = Float64(x * Float64(t * Float64(-a))); elseif (z <= 5.6e-136) tmp = t_1; elseif (z <= 5.5e-105) tmp = Float64(t * Float64(x * Float64(-a))); elseif (z <= 3.4e+135) tmp = Float64(j * Float64(y * Float64(-i))); else tmp = Float64(z * Float64(b * Float64(-c))); 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 <= -1460000000.0) tmp = b * (z * -c); elseif (z <= -4e-72) tmp = t_1; elseif (z <= -8.6e-264) tmp = i * (t * b); elseif (z <= 8.5e-233) tmp = x * (t * -a); elseif (z <= 5.6e-136) tmp = t_1; elseif (z <= 5.5e-105) tmp = t * (x * -a); elseif (z <= 3.4e+135) tmp = j * (y * -i); else tmp = z * (b * -c); 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, -1460000000.0], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4e-72], t$95$1, If[LessEqual[z, -8.6e-264], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.5e-233], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e-136], t$95$1, If[LessEqual[z, 5.5e-105], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.4e+135], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;z \leq -1460000000:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;z \leq -4 \cdot 10^{-72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -8.6 \cdot 10^{-264}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-233}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{-136}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{-105}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{+135}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if z < -1.46e9Initial program 72.8%
Taylor expanded in z around inf 72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in x around 0 53.4%
mul-1-neg53.4%
Simplified53.4%
if -1.46e9 < z < -3.9999999999999999e-72 or 8.5000000000000005e-233 < z < 5.6000000000000002e-136Initial program 83.5%
Taylor expanded in c around inf 58.0%
*-commutative58.0%
Simplified58.0%
Taylor expanded in a around inf 49.8%
*-commutative49.8%
Simplified49.8%
if -3.9999999999999999e-72 < z < -8.5999999999999994e-264Initial program 76.5%
Taylor expanded in i around inf 64.1%
distribute-lft-out--64.1%
*-commutative64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in y around 0 38.8%
*-commutative38.8%
associate-*l*41.3%
*-commutative41.3%
Simplified41.3%
if -8.5999999999999994e-264 < z < 8.5000000000000005e-233Initial program 81.2%
Taylor expanded in a around inf 51.7%
+-commutative51.7%
mul-1-neg51.7%
unsub-neg51.7%
*-commutative51.7%
*-commutative51.7%
Simplified51.7%
Taylor expanded in j around 0 40.3%
mul-1-neg40.3%
associate-*r*43.8%
Simplified43.8%
if 5.6000000000000002e-136 < z < 5.50000000000000029e-105Initial program 62.1%
Taylor expanded in a around inf 63.0%
+-commutative63.0%
mul-1-neg63.0%
unsub-neg63.0%
*-commutative63.0%
*-commutative63.0%
Simplified63.0%
Taylor expanded in j around 0 50.7%
mul-1-neg50.7%
associate-*r*50.7%
Simplified50.7%
Taylor expanded in a around 0 50.7%
associate-*r*50.7%
*-commutative50.7%
associate-*l*50.9%
Simplified50.9%
if 5.50000000000000029e-105 < z < 3.4000000000000001e135Initial program 86.8%
Taylor expanded in y around inf 46.1%
+-commutative46.1%
mul-1-neg46.1%
unsub-neg46.1%
*-commutative46.1%
Simplified46.1%
Taylor expanded in x around 0 33.7%
neg-mul-133.7%
distribute-lft-neg-in33.7%
*-commutative33.7%
Simplified33.7%
Taylor expanded in y around 0 35.4%
*-commutative35.4%
associate-*r*35.4%
neg-mul-135.4%
distribute-lft-neg-in35.4%
associate-*r*37.1%
Simplified37.1%
if 3.4000000000000001e135 < z Initial program 58.8%
Taylor expanded in z around inf 68.8%
*-commutative68.8%
Simplified68.8%
Taylor expanded in x around 0 45.2%
mul-1-neg45.2%
associate-*r*47.3%
*-commutative47.3%
distribute-rgt-neg-in47.3%
Simplified47.3%
Final simplification45.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -3.2e+117)
t_1
(if (<= b 1.3e-228)
(* j (- (* a c) (* y i)))
(if (<= b 3.1e-87)
(* a (- (* c j) (* x t)))
(if (<= b 1.06e-34)
(* y (- (* x z) (* i j)))
(if (<= b 0.00047)
(* a (* x (- t)))
(if (<= b 2.85e+66) (* c (- (* a j) (* z b))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.2e+117) {
tmp = t_1;
} else if (b <= 1.3e-228) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 3.1e-87) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 1.06e-34) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 0.00047) {
tmp = a * (x * -t);
} else if (b <= 2.85e+66) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-3.2d+117)) then
tmp = t_1
else if (b <= 1.3d-228) then
tmp = j * ((a * c) - (y * i))
else if (b <= 3.1d-87) then
tmp = a * ((c * j) - (x * t))
else if (b <= 1.06d-34) then
tmp = y * ((x * z) - (i * j))
else if (b <= 0.00047d0) then
tmp = a * (x * -t)
else if (b <= 2.85d+66) then
tmp = c * ((a * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.2e+117) {
tmp = t_1;
} else if (b <= 1.3e-228) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 3.1e-87) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 1.06e-34) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 0.00047) {
tmp = a * (x * -t);
} else if (b <= 2.85e+66) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.2e+117: tmp = t_1 elif b <= 1.3e-228: tmp = j * ((a * c) - (y * i)) elif b <= 3.1e-87: tmp = a * ((c * j) - (x * t)) elif b <= 1.06e-34: tmp = y * ((x * z) - (i * j)) elif b <= 0.00047: tmp = a * (x * -t) elif b <= 2.85e+66: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.2e+117) tmp = t_1; elseif (b <= 1.3e-228) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 3.1e-87) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 1.06e-34) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 0.00047) tmp = Float64(a * Float64(x * Float64(-t))); elseif (b <= 2.85e+66) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.2e+117) tmp = t_1; elseif (b <= 1.3e-228) tmp = j * ((a * c) - (y * i)); elseif (b <= 3.1e-87) tmp = a * ((c * j) - (x * t)); elseif (b <= 1.06e-34) tmp = y * ((x * z) - (i * j)); elseif (b <= 0.00047) tmp = a * (x * -t); elseif (b <= 2.85e+66) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.2e+117], t$95$1, If[LessEqual[b, 1.3e-228], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e-87], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.06e-34], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.00047], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.85e+66], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.2 \cdot 10^{+117}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{-228}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-87}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 1.06 \cdot 10^{-34}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 0.00047:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;b \leq 2.85 \cdot 10^{+66}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.20000000000000005e117 or 2.8500000000000002e66 < b Initial program 75.7%
Taylor expanded in b around inf 73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
if -3.20000000000000005e117 < b < 1.3e-228Initial program 78.2%
Taylor expanded in j around inf 54.3%
*-commutative54.3%
Simplified54.3%
if 1.3e-228 < b < 3.09999999999999998e-87Initial program 84.1%
Taylor expanded in a around inf 65.0%
+-commutative65.0%
mul-1-neg65.0%
unsub-neg65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
if 3.09999999999999998e-87 < b < 1.06000000000000006e-34Initial program 60.5%
Taylor expanded in y around inf 71.7%
+-commutative71.7%
mul-1-neg71.7%
unsub-neg71.7%
*-commutative71.7%
Simplified71.7%
if 1.06000000000000006e-34 < b < 4.69999999999999986e-4Initial program 61.4%
Taylor expanded in a around inf 54.7%
+-commutative54.7%
mul-1-neg54.7%
unsub-neg54.7%
*-commutative54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in j around 0 54.7%
mul-1-neg54.7%
distribute-rgt-neg-in54.7%
*-commutative54.7%
distribute-rgt-neg-in54.7%
Simplified54.7%
if 4.69999999999999986e-4 < b < 2.8500000000000002e66Initial program 62.3%
Taylor expanded in c around inf 69.4%
*-commutative69.4%
Simplified69.4%
Final simplification63.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* y z) (* t a))) (* b (- (* z c) (* t i)))))
(t_2 (* c (- (* a j) (* z b)))))
(if (<= c -1.4e+54)
t_2
(if (<= c -1.9e-112)
t_1
(if (<= c -5.5e-153)
(* i (- (* t b) (* y j)))
(if (<= c 2.7e+101) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.4e+54) {
tmp = t_2;
} else if (c <= -1.9e-112) {
tmp = t_1;
} else if (c <= -5.5e-153) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 2.7e+101) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))
t_2 = c * ((a * j) - (z * b))
if (c <= (-1.4d+54)) then
tmp = t_2
else if (c <= (-1.9d-112)) then
tmp = t_1
else if (c <= (-5.5d-153)) then
tmp = i * ((t * b) - (y * j))
else if (c <= 2.7d+101) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.4e+54) {
tmp = t_2;
} else if (c <= -1.9e-112) {
tmp = t_1;
} else if (c <= -5.5e-153) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 2.7e+101) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i))) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.4e+54: tmp = t_2 elif c <= -1.9e-112: tmp = t_1 elif c <= -5.5e-153: tmp = i * ((t * b) - (y * j)) elif c <= 2.7e+101: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.4e+54) tmp = t_2; elseif (c <= -1.9e-112) tmp = t_1; elseif (c <= -5.5e-153) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 2.7e+101) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i))); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.4e+54) tmp = t_2; elseif (c <= -1.9e-112) tmp = t_1; elseif (c <= -5.5e-153) tmp = i * ((t * b) - (y * j)); elseif (c <= 2.7e+101) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.4e+54], t$95$2, If[LessEqual[c, -1.9e-112], t$95$1, If[LessEqual[c, -5.5e-153], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.7e+101], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.4 \cdot 10^{+54}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -1.9 \cdot 10^{-112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{-153}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -1.40000000000000008e54 or 2.70000000000000006e101 < c Initial program 59.5%
Taylor expanded in c around inf 73.7%
*-commutative73.7%
Simplified73.7%
if -1.40000000000000008e54 < c < -1.89999999999999997e-112 or -5.49999999999999962e-153 < c < 2.70000000000000006e101Initial program 85.0%
Taylor expanded in j around 0 69.2%
*-commutative69.2%
*-commutative69.2%
Simplified69.2%
if -1.89999999999999997e-112 < c < -5.49999999999999962e-153Initial program 99.5%
Taylor expanded in i around inf 89.0%
distribute-lft-out--89.0%
*-commutative89.0%
*-commutative89.0%
Simplified89.0%
Final simplification71.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -3.1e-57)
t_2
(if (<= a -5.3e-204)
t_1
(if (<= a -6.8e-269)
(* b (* t i))
(if (<= a 3.8e-222)
t_1
(if (<= a 1.15e+79) (* b (* z (- c))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -3.1e-57) {
tmp = t_2;
} else if (a <= -5.3e-204) {
tmp = t_1;
} else if (a <= -6.8e-269) {
tmp = b * (t * i);
} else if (a <= 3.8e-222) {
tmp = t_1;
} else if (a <= 1.15e+79) {
tmp = b * (z * -c);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * (y * -j)
t_2 = a * ((c * j) - (x * t))
if (a <= (-3.1d-57)) then
tmp = t_2
else if (a <= (-5.3d-204)) then
tmp = t_1
else if (a <= (-6.8d-269)) then
tmp = b * (t * i)
else if (a <= 3.8d-222) then
tmp = t_1
else if (a <= 1.15d+79) then
tmp = b * (z * -c)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -3.1e-57) {
tmp = t_2;
} else if (a <= -5.3e-204) {
tmp = t_1;
} else if (a <= -6.8e-269) {
tmp = b * (t * i);
} else if (a <= 3.8e-222) {
tmp = t_1;
} else if (a <= 1.15e+79) {
tmp = b * (z * -c);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -3.1e-57: tmp = t_2 elif a <= -5.3e-204: tmp = t_1 elif a <= -6.8e-269: tmp = b * (t * i) elif a <= 3.8e-222: tmp = t_1 elif a <= 1.15e+79: tmp = b * (z * -c) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -3.1e-57) tmp = t_2; elseif (a <= -5.3e-204) tmp = t_1; elseif (a <= -6.8e-269) tmp = Float64(b * Float64(t * i)); elseif (a <= 3.8e-222) tmp = t_1; elseif (a <= 1.15e+79) tmp = Float64(b * Float64(z * Float64(-c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -3.1e-57) tmp = t_2; elseif (a <= -5.3e-204) tmp = t_1; elseif (a <= -6.8e-269) tmp = b * (t * i); elseif (a <= 3.8e-222) tmp = t_1; elseif (a <= 1.15e+79) tmp = b * (z * -c); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.1e-57], t$95$2, If[LessEqual[a, -5.3e-204], t$95$1, If[LessEqual[a, -6.8e-269], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.8e-222], t$95$1, If[LessEqual[a, 1.15e+79], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -3.1 \cdot 10^{-57}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -5.3 \cdot 10^{-204}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -6.8 \cdot 10^{-269}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{-222}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{+79}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -3.09999999999999976e-57 or 1.15e79 < a Initial program 70.2%
Taylor expanded in a around inf 62.3%
+-commutative62.3%
mul-1-neg62.3%
unsub-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
if -3.09999999999999976e-57 < a < -5.2999999999999997e-204 or -6.7999999999999994e-269 < a < 3.79999999999999997e-222Initial program 88.2%
Taylor expanded in y around inf 51.8%
+-commutative51.8%
mul-1-neg51.8%
unsub-neg51.8%
*-commutative51.8%
Simplified51.8%
Taylor expanded in x around 0 38.3%
neg-mul-138.3%
distribute-lft-neg-in38.3%
*-commutative38.3%
Simplified38.3%
Taylor expanded in y around 0 45.8%
mul-1-neg45.8%
*-commutative45.8%
distribute-rgt-neg-in45.8%
Simplified45.8%
if -5.2999999999999997e-204 < a < -6.7999999999999994e-269Initial program 66.7%
Taylor expanded in i around inf 59.0%
distribute-lft-out--59.0%
*-commutative59.0%
*-commutative59.0%
Simplified59.0%
Taylor expanded in y around 0 50.6%
if 3.79999999999999997e-222 < a < 1.15e79Initial program 80.1%
Taylor expanded in z around inf 55.3%
*-commutative55.3%
Simplified55.3%
Taylor expanded in x around 0 36.5%
mul-1-neg36.5%
Simplified36.5%
Final simplification52.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -6.8e+135)
t_2
(if (<= a -1.25e-20)
(* j (- (* a c) (* y i)))
(if (<= a -6e-53)
t_1
(if (<= a -8.6e-308)
(* i (- (* t b) (* y j)))
(if (<= a 9.5e+79) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -6.8e+135) {
tmp = t_2;
} else if (a <= -1.25e-20) {
tmp = j * ((a * c) - (y * i));
} else if (a <= -6e-53) {
tmp = t_1;
} else if (a <= -8.6e-308) {
tmp = i * ((t * b) - (y * j));
} else if (a <= 9.5e+79) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-6.8d+135)) then
tmp = t_2
else if (a <= (-1.25d-20)) then
tmp = j * ((a * c) - (y * i))
else if (a <= (-6d-53)) then
tmp = t_1
else if (a <= (-8.6d-308)) then
tmp = i * ((t * b) - (y * j))
else if (a <= 9.5d+79) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -6.8e+135) {
tmp = t_2;
} else if (a <= -1.25e-20) {
tmp = j * ((a * c) - (y * i));
} else if (a <= -6e-53) {
tmp = t_1;
} else if (a <= -8.6e-308) {
tmp = i * ((t * b) - (y * j));
} else if (a <= 9.5e+79) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -6.8e+135: tmp = t_2 elif a <= -1.25e-20: tmp = j * ((a * c) - (y * i)) elif a <= -6e-53: tmp = t_1 elif a <= -8.6e-308: tmp = i * ((t * b) - (y * j)) elif a <= 9.5e+79: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -6.8e+135) tmp = t_2; elseif (a <= -1.25e-20) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (a <= -6e-53) tmp = t_1; elseif (a <= -8.6e-308) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (a <= 9.5e+79) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -6.8e+135) tmp = t_2; elseif (a <= -1.25e-20) tmp = j * ((a * c) - (y * i)); elseif (a <= -6e-53) tmp = t_1; elseif (a <= -8.6e-308) tmp = i * ((t * b) - (y * j)); elseif (a <= 9.5e+79) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.8e+135], t$95$2, If[LessEqual[a, -1.25e-20], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6e-53], t$95$1, If[LessEqual[a, -8.6e-308], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+79], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -6.8 \cdot 10^{+135}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.25 \cdot 10^{-20}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq -6 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -8.6 \cdot 10^{-308}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+79}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -6.80000000000000019e135 or 9.49999999999999994e79 < a Initial program 68.2%
Taylor expanded in a around inf 74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
if -6.80000000000000019e135 < a < -1.25e-20Initial program 73.0%
Taylor expanded in j around inf 57.6%
*-commutative57.6%
Simplified57.6%
if -1.25e-20 < a < -6.0000000000000004e-53 or -8.60000000000000041e-308 < a < 9.49999999999999994e79Initial program 82.5%
Taylor expanded in z around inf 55.2%
*-commutative55.2%
Simplified55.2%
if -6.0000000000000004e-53 < a < -8.60000000000000041e-308Initial program 80.1%
Taylor expanded in i around inf 63.3%
distribute-lft-out--63.3%
*-commutative63.3%
*-commutative63.3%
Simplified63.3%
Final simplification63.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -4.5e+207) (not (<= y 9e+160))) (* y (- (* x z) (* i j))) (+ (- (- (* c (* a j)) (* b (* z c))) (* a (* x t))) (* b (* t i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -4.5e+207) || !(y <= 9e+160)) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = (((c * (a * j)) - (b * (z * c))) - (a * (x * t))) + (b * (t * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((y <= (-4.5d+207)) .or. (.not. (y <= 9d+160))) then
tmp = y * ((x * z) - (i * j))
else
tmp = (((c * (a * j)) - (b * (z * c))) - (a * (x * t))) + (b * (t * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -4.5e+207) || !(y <= 9e+160)) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = (((c * (a * j)) - (b * (z * c))) - (a * (x * t))) + (b * (t * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -4.5e+207) or not (y <= 9e+160): tmp = y * ((x * z) - (i * j)) else: tmp = (((c * (a * j)) - (b * (z * c))) - (a * (x * t))) + (b * (t * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -4.5e+207) || !(y <= 9e+160)) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = Float64(Float64(Float64(Float64(c * Float64(a * j)) - Float64(b * Float64(z * c))) - Float64(a * Float64(x * t))) + Float64(b * Float64(t * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((y <= -4.5e+207) || ~((y <= 9e+160))) tmp = y * ((x * z) - (i * j)); else tmp = (((c * (a * j)) - (b * (z * c))) - (a * (x * t))) + (b * (t * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -4.5e+207], N[Not[LessEqual[y, 9e+160]], $MachinePrecision]], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.5 \cdot 10^{+207} \lor \neg \left(y \leq 9 \cdot 10^{+160}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(c \cdot \left(a \cdot j\right) - b \cdot \left(z \cdot c\right)\right) - a \cdot \left(x \cdot t\right)\right) + b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if y < -4.50000000000000003e207 or 8.99999999999999959e160 < y Initial program 69.0%
Taylor expanded in y around inf 75.5%
+-commutative75.5%
mul-1-neg75.5%
unsub-neg75.5%
*-commutative75.5%
Simplified75.5%
if -4.50000000000000003e207 < y < 8.99999999999999959e160Initial program 77.7%
Taylor expanded in z around 0 79.5%
Taylor expanded in a around inf 74.8%
associate-*r*74.5%
*-commutative74.5%
associate-*l*77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in x around 0 70.1%
mul-1-neg70.1%
*-commutative70.1%
distribute-rgt-neg-in70.1%
Simplified70.1%
Final simplification71.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* y (- i)))) (t_2 (* c (* a j))))
(if (<= a -2.7)
t_2
(if (<= a -2.8e-208)
t_1
(if (<= a -7e-268)
(* b (* t i))
(if (<= a 2e-229) t_1 (if (<= a 1.9e+93) (* b (* z (- c))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (y * -i);
double t_2 = c * (a * j);
double tmp;
if (a <= -2.7) {
tmp = t_2;
} else if (a <= -2.8e-208) {
tmp = t_1;
} else if (a <= -7e-268) {
tmp = b * (t * i);
} else if (a <= 2e-229) {
tmp = t_1;
} else if (a <= 1.9e+93) {
tmp = b * (z * -c);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * (y * -i)
t_2 = c * (a * j)
if (a <= (-2.7d0)) then
tmp = t_2
else if (a <= (-2.8d-208)) then
tmp = t_1
else if (a <= (-7d-268)) then
tmp = b * (t * i)
else if (a <= 2d-229) then
tmp = t_1
else if (a <= 1.9d+93) then
tmp = b * (z * -c)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (y * -i);
double t_2 = c * (a * j);
double tmp;
if (a <= -2.7) {
tmp = t_2;
} else if (a <= -2.8e-208) {
tmp = t_1;
} else if (a <= -7e-268) {
tmp = b * (t * i);
} else if (a <= 2e-229) {
tmp = t_1;
} else if (a <= 1.9e+93) {
tmp = b * (z * -c);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (y * -i) t_2 = c * (a * j) tmp = 0 if a <= -2.7: tmp = t_2 elif a <= -2.8e-208: tmp = t_1 elif a <= -7e-268: tmp = b * (t * i) elif a <= 2e-229: tmp = t_1 elif a <= 1.9e+93: tmp = b * (z * -c) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(y * Float64(-i))) t_2 = Float64(c * Float64(a * j)) tmp = 0.0 if (a <= -2.7) tmp = t_2; elseif (a <= -2.8e-208) tmp = t_1; elseif (a <= -7e-268) tmp = Float64(b * Float64(t * i)); elseif (a <= 2e-229) tmp = t_1; elseif (a <= 1.9e+93) tmp = Float64(b * Float64(z * Float64(-c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (y * -i); t_2 = c * (a * j); tmp = 0.0; if (a <= -2.7) tmp = t_2; elseif (a <= -2.8e-208) tmp = t_1; elseif (a <= -7e-268) tmp = b * (t * i); elseif (a <= 2e-229) tmp = t_1; elseif (a <= 1.9e+93) tmp = b * (z * -c); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.7], t$95$2, If[LessEqual[a, -2.8e-208], t$95$1, If[LessEqual[a, -7e-268], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2e-229], t$95$1, If[LessEqual[a, 1.9e+93], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y \cdot \left(-i\right)\right)\\
t_2 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;a \leq -2.7:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2.8 \cdot 10^{-208}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -7 \cdot 10^{-268}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-229}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{+93}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.7000000000000002 or 1.8999999999999999e93 < a Initial program 68.9%
Taylor expanded in c around inf 54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in a around inf 46.4%
*-commutative46.4%
Simplified46.4%
if -2.7000000000000002 < a < -2.80000000000000001e-208 or -7.00000000000000011e-268 < a < 2.00000000000000014e-229Initial program 85.6%
Taylor expanded in y around inf 48.4%
+-commutative48.4%
mul-1-neg48.4%
unsub-neg48.4%
*-commutative48.4%
Simplified48.4%
Taylor expanded in x around 0 34.5%
neg-mul-134.5%
distribute-lft-neg-in34.5%
*-commutative34.5%
Simplified34.5%
Taylor expanded in y around 0 40.6%
*-commutative40.6%
associate-*r*40.6%
neg-mul-140.6%
distribute-lft-neg-in40.6%
associate-*r*39.1%
Simplified39.1%
if -2.80000000000000001e-208 < a < -7.00000000000000011e-268Initial program 66.7%
Taylor expanded in i around inf 59.0%
distribute-lft-out--59.0%
*-commutative59.0%
*-commutative59.0%
Simplified59.0%
Taylor expanded in y around 0 50.6%
if 2.00000000000000014e-229 < a < 1.8999999999999999e93Initial program 80.9%
Taylor expanded in z around inf 54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in x around 0 36.4%
mul-1-neg36.4%
Simplified36.4%
Final simplification42.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* c (* a j))))
(if (<= a -2.5)
t_2
(if (<= a -4.9e-203)
t_1
(if (<= a -1.3e-266)
(* b (* t i))
(if (<= a 1.25e-221) t_1 (if (<= a 4e+93) (* b (* z (- c))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = c * (a * j);
double tmp;
if (a <= -2.5) {
tmp = t_2;
} else if (a <= -4.9e-203) {
tmp = t_1;
} else if (a <= -1.3e-266) {
tmp = b * (t * i);
} else if (a <= 1.25e-221) {
tmp = t_1;
} else if (a <= 4e+93) {
tmp = b * (z * -c);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * (y * -j)
t_2 = c * (a * j)
if (a <= (-2.5d0)) then
tmp = t_2
else if (a <= (-4.9d-203)) then
tmp = t_1
else if (a <= (-1.3d-266)) then
tmp = b * (t * i)
else if (a <= 1.25d-221) then
tmp = t_1
else if (a <= 4d+93) then
tmp = b * (z * -c)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = c * (a * j);
double tmp;
if (a <= -2.5) {
tmp = t_2;
} else if (a <= -4.9e-203) {
tmp = t_1;
} else if (a <= -1.3e-266) {
tmp = b * (t * i);
} else if (a <= 1.25e-221) {
tmp = t_1;
} else if (a <= 4e+93) {
tmp = b * (z * -c);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = c * (a * j) tmp = 0 if a <= -2.5: tmp = t_2 elif a <= -4.9e-203: tmp = t_1 elif a <= -1.3e-266: tmp = b * (t * i) elif a <= 1.25e-221: tmp = t_1 elif a <= 4e+93: tmp = b * (z * -c) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(c * Float64(a * j)) tmp = 0.0 if (a <= -2.5) tmp = t_2; elseif (a <= -4.9e-203) tmp = t_1; elseif (a <= -1.3e-266) tmp = Float64(b * Float64(t * i)); elseif (a <= 1.25e-221) tmp = t_1; elseif (a <= 4e+93) tmp = Float64(b * Float64(z * Float64(-c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = c * (a * j); tmp = 0.0; if (a <= -2.5) tmp = t_2; elseif (a <= -4.9e-203) tmp = t_1; elseif (a <= -1.3e-266) tmp = b * (t * i); elseif (a <= 1.25e-221) tmp = t_1; elseif (a <= 4e+93) tmp = b * (z * -c); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.5], t$95$2, If[LessEqual[a, -4.9e-203], t$95$1, If[LessEqual[a, -1.3e-266], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e-221], t$95$1, If[LessEqual[a, 4e+93], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;a \leq -2.5:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -4.9 \cdot 10^{-203}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{-266}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-221}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+93}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.5 or 4.00000000000000017e93 < a Initial program 68.9%
Taylor expanded in c around inf 54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in a around inf 46.4%
*-commutative46.4%
Simplified46.4%
if -2.5 < a < -4.9e-203 or -1.3e-266 < a < 1.24999999999999999e-221Initial program 86.0%
Taylor expanded in y around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in x around 0 35.0%
neg-mul-135.0%
distribute-lft-neg-in35.0%
*-commutative35.0%
Simplified35.0%
Taylor expanded in y around 0 40.9%
mul-1-neg40.9%
*-commutative40.9%
distribute-rgt-neg-in40.9%
Simplified40.9%
if -4.9e-203 < a < -1.3e-266Initial program 66.7%
Taylor expanded in i around inf 59.0%
distribute-lft-out--59.0%
*-commutative59.0%
*-commutative59.0%
Simplified59.0%
Taylor expanded in y around 0 50.6%
if 1.24999999999999999e-221 < a < 4.00000000000000017e93Initial program 80.4%
Taylor expanded in z around inf 54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in x around 0 35.9%
mul-1-neg35.9%
Simplified35.9%
Final simplification42.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -3.5e+116)
t_1
(if (<= b -1e+104)
(* a (* c j))
(if (or (<= b -3.3e-108) (not (<= b 3.1e-32)))
t_1
(* a (- (* c j) (* x t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.5e+116) {
tmp = t_1;
} else if (b <= -1e+104) {
tmp = a * (c * j);
} else if ((b <= -3.3e-108) || !(b <= 3.1e-32)) {
tmp = t_1;
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-3.5d+116)) then
tmp = t_1
else if (b <= (-1d+104)) then
tmp = a * (c * j)
else if ((b <= (-3.3d-108)) .or. (.not. (b <= 3.1d-32))) then
tmp = t_1
else
tmp = a * ((c * j) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.5e+116) {
tmp = t_1;
} else if (b <= -1e+104) {
tmp = a * (c * j);
} else if ((b <= -3.3e-108) || !(b <= 3.1e-32)) {
tmp = t_1;
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.5e+116: tmp = t_1 elif b <= -1e+104: tmp = a * (c * j) elif (b <= -3.3e-108) or not (b <= 3.1e-32): tmp = t_1 else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.5e+116) tmp = t_1; elseif (b <= -1e+104) tmp = Float64(a * Float64(c * j)); elseif ((b <= -3.3e-108) || !(b <= 3.1e-32)) tmp = t_1; else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.5e+116) tmp = t_1; elseif (b <= -1e+104) tmp = a * (c * j); elseif ((b <= -3.3e-108) || ~((b <= 3.1e-32))) tmp = t_1; else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.5e+116], t$95$1, If[LessEqual[b, -1e+104], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, -3.3e-108], N[Not[LessEqual[b, 3.1e-32]], $MachinePrecision]], t$95$1, N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.5 \cdot 10^{+116}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1 \cdot 10^{+104}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq -3.3 \cdot 10^{-108} \lor \neg \left(b \leq 3.1 \cdot 10^{-32}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if b < -3.49999999999999997e116 or -1e104 < b < -3.3000000000000002e-108 or 3.10000000000000011e-32 < b Initial program 73.0%
Taylor expanded in b around inf 61.5%
*-commutative61.5%
*-commutative61.5%
Simplified61.5%
if -3.49999999999999997e116 < b < -1e104Initial program 83.3%
Taylor expanded in a around inf 83.5%
+-commutative83.5%
mul-1-neg83.5%
unsub-neg83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in j around inf 83.5%
*-commutative83.5%
Simplified83.5%
if -3.3000000000000002e-108 < b < 3.10000000000000011e-32Initial program 80.1%
Taylor expanded in a around inf 51.4%
+-commutative51.4%
mul-1-neg51.4%
unsub-neg51.4%
*-commutative51.4%
*-commutative51.4%
Simplified51.4%
Final simplification58.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -3.8e+116)
t_2
(if (<= b -1.26e-132)
t_1
(if (<= b 0.0011)
(* a (- (* c j) (* x t)))
(if (<= b 1.05e+66) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.8e+116) {
tmp = t_2;
} else if (b <= -1.26e-132) {
tmp = t_1;
} else if (b <= 0.0011) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 1.05e+66) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
t_2 = b * ((t * i) - (z * c))
if (b <= (-3.8d+116)) then
tmp = t_2
else if (b <= (-1.26d-132)) then
tmp = t_1
else if (b <= 0.0011d0) then
tmp = a * ((c * j) - (x * t))
else if (b <= 1.05d+66) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.8e+116) {
tmp = t_2;
} else if (b <= -1.26e-132) {
tmp = t_1;
} else if (b <= 0.0011) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 1.05e+66) {
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) - (z * b)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.8e+116: tmp = t_2 elif b <= -1.26e-132: tmp = t_1 elif b <= 0.0011: tmp = a * ((c * j) - (x * t)) elif b <= 1.05e+66: 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(Float64(a * j) - Float64(z * b))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.8e+116) tmp = t_2; elseif (b <= -1.26e-132) tmp = t_1; elseif (b <= 0.0011) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 1.05e+66) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.8e+116) tmp = t_2; elseif (b <= -1.26e-132) tmp = t_1; elseif (b <= 0.0011) tmp = a * ((c * j) - (x * t)); elseif (b <= 1.05e+66) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.8e+116], t$95$2, If[LessEqual[b, -1.26e-132], t$95$1, If[LessEqual[b, 0.0011], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e+66], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.8 \cdot 10^{+116}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.26 \cdot 10^{-132}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 0.0011:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -3.7999999999999999e116 or 1.05000000000000003e66 < b Initial program 75.7%
Taylor expanded in b around inf 73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
if -3.7999999999999999e116 < b < -1.2600000000000001e-132 or 0.00110000000000000007 < b < 1.05000000000000003e66Initial program 72.4%
Taylor expanded in c around inf 54.1%
*-commutative54.1%
Simplified54.1%
if -1.2600000000000001e-132 < b < 0.00110000000000000007Initial program 78.9%
Taylor expanded in a around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Final simplification59.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -2.7e+118)
t_1
(if (<= b 2.6e-229)
(* j (- (* a c) (* y i)))
(if (<= b 0.0032)
(* a (- (* c j) (* x t)))
(if (<= b 3.3e+66) (* c (- (* a j) (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.7e+118) {
tmp = t_1;
} else if (b <= 2.6e-229) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 0.0032) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 3.3e+66) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-2.7d+118)) then
tmp = t_1
else if (b <= 2.6d-229) then
tmp = j * ((a * c) - (y * i))
else if (b <= 0.0032d0) then
tmp = a * ((c * j) - (x * t))
else if (b <= 3.3d+66) then
tmp = c * ((a * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.7e+118) {
tmp = t_1;
} else if (b <= 2.6e-229) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 0.0032) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 3.3e+66) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -2.7e+118: tmp = t_1 elif b <= 2.6e-229: tmp = j * ((a * c) - (y * i)) elif b <= 0.0032: tmp = a * ((c * j) - (x * t)) elif b <= 3.3e+66: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.7e+118) tmp = t_1; elseif (b <= 2.6e-229) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 0.0032) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 3.3e+66) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -2.7e+118) tmp = t_1; elseif (b <= 2.6e-229) tmp = j * ((a * c) - (y * i)); elseif (b <= 0.0032) tmp = a * ((c * j) - (x * t)); elseif (b <= 3.3e+66) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.7e+118], t$95$1, If[LessEqual[b, 2.6e-229], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.0032], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.3e+66], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.7 \cdot 10^{+118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-229}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 0.0032:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 3.3 \cdot 10^{+66}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.7e118 or 3.3000000000000001e66 < b Initial program 75.7%
Taylor expanded in b around inf 73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
if -2.7e118 < b < 2.6000000000000001e-229Initial program 78.2%
Taylor expanded in j around inf 54.3%
*-commutative54.3%
Simplified54.3%
if 2.6000000000000001e-229 < b < 0.00320000000000000015Initial program 76.3%
Taylor expanded in a around inf 56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
*-commutative56.4%
*-commutative56.4%
Simplified56.4%
if 0.00320000000000000015 < b < 3.3000000000000001e66Initial program 62.3%
Taylor expanded in c around inf 69.4%
*-commutative69.4%
Simplified69.4%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -1250000000.0)
t_2
(if (<= z -6.2e-300)
t_1
(if (<= z 1.75e-104)
(* a (- (* c j) (* x t)))
(if (<= z 2.2e+134) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1250000000.0) {
tmp = t_2;
} else if (z <= -6.2e-300) {
tmp = t_1;
} else if (z <= 1.75e-104) {
tmp = a * ((c * j) - (x * t));
} else if (z <= 2.2e+134) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = z * ((x * y) - (b * c))
if (z <= (-1250000000.0d0)) then
tmp = t_2
else if (z <= (-6.2d-300)) then
tmp = t_1
else if (z <= 1.75d-104) then
tmp = a * ((c * j) - (x * t))
else if (z <= 2.2d+134) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1250000000.0) {
tmp = t_2;
} else if (z <= -6.2e-300) {
tmp = t_1;
} else if (z <= 1.75e-104) {
tmp = a * ((c * j) - (x * t));
} else if (z <= 2.2e+134) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1250000000.0: tmp = t_2 elif z <= -6.2e-300: tmp = t_1 elif z <= 1.75e-104: tmp = a * ((c * j) - (x * t)) elif z <= 2.2e+134: tmp = 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(a * c) - Float64(y * i))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1250000000.0) tmp = t_2; elseif (z <= -6.2e-300) tmp = t_1; elseif (z <= 1.75e-104) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (z <= 2.2e+134) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1250000000.0) tmp = t_2; elseif (z <= -6.2e-300) tmp = t_1; elseif (z <= 1.75e-104) tmp = a * ((c * j) - (x * t)); elseif (z <= 2.2e+134) 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1250000000.0], t$95$2, If[LessEqual[z, -6.2e-300], t$95$1, If[LessEqual[z, 1.75e-104], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+134], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1250000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -6.2 \cdot 10^{-300}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{-104}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+134}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.25e9 or 2.2e134 < z Initial program 67.1%
Taylor expanded in z around inf 71.4%
*-commutative71.4%
Simplified71.4%
if -1.25e9 < z < -6.2000000000000005e-300 or 1.75000000000000014e-104 < z < 2.2e134Initial program 84.9%
Taylor expanded in j around inf 53.9%
*-commutative53.9%
Simplified53.9%
if -6.2000000000000005e-300 < z < 1.75000000000000014e-104Initial program 73.0%
Taylor expanded in a around inf 54.7%
+-commutative54.7%
mul-1-neg54.7%
unsub-neg54.7%
*-commutative54.7%
*-commutative54.7%
Simplified54.7%
Final simplification60.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -4.5e-21) (not (<= a 2.05e+93))) (* c (* a j)) (* b (* z (- c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -4.5e-21) || !(a <= 2.05e+93)) {
tmp = c * (a * j);
} else {
tmp = b * (z * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-4.5d-21)) .or. (.not. (a <= 2.05d+93))) then
tmp = c * (a * j)
else
tmp = b * (z * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -4.5e-21) || !(a <= 2.05e+93)) {
tmp = c * (a * j);
} else {
tmp = b * (z * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -4.5e-21) or not (a <= 2.05e+93): tmp = c * (a * j) else: tmp = b * (z * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -4.5e-21) || !(a <= 2.05e+93)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(b * Float64(z * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -4.5e-21) || ~((a <= 2.05e+93))) tmp = c * (a * j); else tmp = b * (z * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -4.5e-21], N[Not[LessEqual[a, 2.05e+93]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.5 \cdot 10^{-21} \lor \neg \left(a \leq 2.05 \cdot 10^{+93}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if a < -4.49999999999999968e-21 or 2.0500000000000001e93 < a Initial program 69.4%
Taylor expanded in c around inf 52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in a around inf 45.4%
*-commutative45.4%
Simplified45.4%
if -4.49999999999999968e-21 < a < 2.0500000000000001e93Initial program 81.8%
Taylor expanded in z around inf 50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in x around 0 31.0%
mul-1-neg31.0%
Simplified31.0%
Final simplification37.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -3e-54) (not (<= c 4.5e-122))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3e-54) || !(c <= 4.5e-122)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-3d-54)) .or. (.not. (c <= 4.5d-122))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3e-54) || !(c <= 4.5e-122)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -3e-54) or not (c <= 4.5e-122): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -3e-54) || !(c <= 4.5e-122)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -3e-54) || ~((c <= 4.5e-122))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -3e-54], N[Not[LessEqual[c, 4.5e-122]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3 \cdot 10^{-54} \lor \neg \left(c \leq 4.5 \cdot 10^{-122}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -3.00000000000000009e-54 or 4.4999999999999998e-122 < c Initial program 69.4%
Taylor expanded in a around inf 45.7%
+-commutative45.7%
mul-1-neg45.7%
unsub-neg45.7%
*-commutative45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in j around inf 38.2%
*-commutative38.2%
Simplified38.2%
if -3.00000000000000009e-54 < c < 4.4999999999999998e-122Initial program 87.4%
Taylor expanded in i around inf 53.0%
distribute-lft-out--53.0%
*-commutative53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in y around 0 28.4%
Final simplification34.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -8.8e-97) (not (<= j 4.8e+78))) (* c (* a j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -8.8e-97) || !(j <= 4.8e+78)) {
tmp = c * (a * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-8.8d-97)) .or. (.not. (j <= 4.8d+78))) then
tmp = c * (a * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -8.8e-97) || !(j <= 4.8e+78)) {
tmp = c * (a * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -8.8e-97) or not (j <= 4.8e+78): tmp = c * (a * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -8.8e-97) || !(j <= 4.8e+78)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -8.8e-97) || ~((j <= 4.8e+78))) tmp = c * (a * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -8.8e-97], N[Not[LessEqual[j, 4.8e+78]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -8.8 \cdot 10^{-97} \lor \neg \left(j \leq 4.8 \cdot 10^{+78}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if j < -8.7999999999999996e-97 or 4.7999999999999997e78 < j Initial program 75.6%
Taylor expanded in c around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in a around inf 40.9%
*-commutative40.9%
Simplified40.9%
if -8.7999999999999996e-97 < j < 4.7999999999999997e78Initial program 76.6%
Taylor expanded in i around inf 33.7%
distribute-lft-out--33.7%
*-commutative33.7%
*-commutative33.7%
Simplified33.7%
Taylor expanded in y around 0 26.5%
Final simplification33.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -2.36e-41) (not (<= a 3.5e+103))) (* c (* a j)) (* x (* y z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -2.36e-41) || !(a <= 3.5e+103)) {
tmp = c * (a * j);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-2.36d-41)) .or. (.not. (a <= 3.5d+103))) then
tmp = c * (a * j)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -2.36e-41) || !(a <= 3.5e+103)) {
tmp = c * (a * j);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -2.36e-41) or not (a <= 3.5e+103): tmp = c * (a * j) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -2.36e-41) || !(a <= 3.5e+103)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -2.36e-41) || ~((a <= 3.5e+103))) tmp = c * (a * j); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -2.36e-41], N[Not[LessEqual[a, 3.5e+103]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.36 \cdot 10^{-41} \lor \neg \left(a \leq 3.5 \cdot 10^{+103}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if a < -2.35999999999999997e-41 or 3.5e103 < a Initial program 69.6%
Taylor expanded in c around inf 52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in a around inf 44.0%
*-commutative44.0%
Simplified44.0%
if -2.35999999999999997e-41 < a < 3.5e103Initial program 82.1%
Taylor expanded in y around inf 44.0%
+-commutative44.0%
mul-1-neg44.0%
unsub-neg44.0%
*-commutative44.0%
Simplified44.0%
Taylor expanded in x around inf 25.4%
*-commutative25.4%
Simplified25.4%
Taylor expanded in y around 0 26.1%
Final simplification34.7%
(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 76.1%
Taylor expanded in a around inf 38.8%
+-commutative38.8%
mul-1-neg38.8%
unsub-neg38.8%
*-commutative38.8%
*-commutative38.8%
Simplified38.8%
Taylor expanded in j around inf 25.3%
*-commutative25.3%
Simplified25.3%
Final simplification25.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 2024053
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(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)))))