
(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 23 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 (fma (- a) x (* i b))))
(if (<= z -1.5e-107)
(*
z
(-
(+ (fma x y (* (- (* c a) (* y i)) (/ j z))) (/ (* t t_1) z))
(* c b)))
(if (<= z 6.4e-158)
(- (* t (- (* i b) (* x a))) (* j (- (* y i) (* c a))))
(if (<= z 6.8e-50)
(+ (- (* a (* c j)) (* a (* x t))) (* b (- (* i t) (* z c))))
(pow
(cbrt
(*
z
(-
(fma t (/ t_1 z) (fma x y (* (/ j z) (fma c a (* i (- y))))))
(* c b))))
3.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, x, (i * b));
double tmp;
if (z <= -1.5e-107) {
tmp = z * ((fma(x, y, (((c * a) - (y * i)) * (j / z))) + ((t * t_1) / z)) - (c * b));
} else if (z <= 6.4e-158) {
tmp = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a)));
} else if (z <= 6.8e-50) {
tmp = ((a * (c * j)) - (a * (x * t))) + (b * ((i * t) - (z * c)));
} else {
tmp = pow(cbrt((z * (fma(t, (t_1 / z), fma(x, y, ((j / z) * fma(c, a, (i * -y))))) - (c * b)))), 3.0);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-a), x, Float64(i * b)) tmp = 0.0 if (z <= -1.5e-107) tmp = Float64(z * Float64(Float64(fma(x, y, Float64(Float64(Float64(c * a) - Float64(y * i)) * Float64(j / z))) + Float64(Float64(t * t_1) / z)) - Float64(c * b))); elseif (z <= 6.4e-158) tmp = Float64(Float64(t * Float64(Float64(i * b) - Float64(x * a))) - Float64(j * Float64(Float64(y * i) - Float64(c * a)))); elseif (z <= 6.8e-50) tmp = Float64(Float64(Float64(a * Float64(c * j)) - Float64(a * Float64(x * t))) + Float64(b * Float64(Float64(i * t) - Float64(z * c)))); else tmp = cbrt(Float64(z * Float64(fma(t, Float64(t_1 / z), fma(x, y, Float64(Float64(j / z) * fma(c, a, Float64(i * Float64(-y)))))) - Float64(c * b)))) ^ 3.0; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.5e-107], N[(z * N[(N[(N[(x * y + N[(N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * N[(j / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t * t$95$1), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.4e-158], N[(N[(t * N[(N[(i * b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.8e-50], N[(N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(i * t), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[Power[N[(z * N[(N[(t * N[(t$95$1 / z), $MachinePrecision] + N[(x * y + N[(N[(j / z), $MachinePrecision] * N[(c * a + N[(i * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right)\\
\mathbf{if}\;z \leq -1.5 \cdot 10^{-107}:\\
\;\;\;\;z \cdot \left(\left(\mathsf{fma}\left(x, y, \left(c \cdot a - y \cdot i\right) \cdot \frac{j}{z}\right) + \frac{t \cdot t\_1}{z}\right) - c \cdot b\right)\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{-158}:\\
\;\;\;\;t \cdot \left(i \cdot b - x \cdot a\right) - j \cdot \left(y \cdot i - c \cdot a\right)\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{-50}:\\
\;\;\;\;\left(a \cdot \left(c \cdot j\right) - a \cdot \left(x \cdot t\right)\right) + b \cdot \left(i \cdot t - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;{\left(\sqrt[3]{z \cdot \left(\mathsf{fma}\left(t, \frac{t\_1}{z}, \mathsf{fma}\left(x, y, \frac{j}{z} \cdot \mathsf{fma}\left(c, a, i \cdot \left(-y\right)\right)\right)\right) - c \cdot b\right)}\right)}^{3}\\
\end{array}
\end{array}
if z < -1.4999999999999999e-107Initial program 63.9%
+-commutative63.9%
fma-define65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in z around inf 73.6%
Simplified81.1%
if -1.4999999999999999e-107 < z < 6.39999999999999993e-158Initial program 73.4%
Taylor expanded in t around -inf 84.5%
if 6.39999999999999993e-158 < z < 6.80000000000000029e-50Initial program 77.2%
+-commutative77.2%
fma-define77.2%
*-commutative77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in y around 0 90.4%
if 6.80000000000000029e-50 < z Initial program 60.7%
+-commutative60.7%
fma-define62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in z around inf 70.4%
Simplified75.4%
add-cube-cbrt75.0%
pow375.0%
Applied egg-rr80.2%
Final simplification82.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- (* c a) (* y i)) j))
(t_2 (- t_1 (+ (* b (- (* z c) (* i t))) (* x (- (* a t) (* z y)))))))
(if (<= t_2 (- INFINITY))
(+
t_1
(+ (* x (- (* z y) (* a t))) (* t (- (* i b) (* c (/ (* z b) t))))))
(if (<= t_2 INFINITY)
t_2
(* z (- (* j (- (/ (* c a) z) (/ (* y i) z))) (* c b)))))))
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) - (y * i)) * j;
double t_2 = t_1 - ((b * ((z * c) - (i * t))) + (x * ((a * t) - (z * y))));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1 + ((x * ((z * y) - (a * t))) + (t * ((i * b) - (c * ((z * b) / t)))));
} else if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * 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 = ((c * a) - (y * i)) * j;
double t_2 = t_1 - ((b * ((z * c) - (i * t))) + (x * ((a * t) - (z * y))));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1 + ((x * ((z * y) - (a * t))) + (t * ((i * b) - (c * ((z * b) / t)))));
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((c * a) - (y * i)) * j t_2 = t_1 - ((b * ((z * c) - (i * t))) + (x * ((a * t) - (z * y)))) tmp = 0 if t_2 <= -math.inf: tmp = t_1 + ((x * ((z * y) - (a * t))) + (t * ((i * b) - (c * ((z * b) / t))))) elif t_2 <= math.inf: tmp = t_2 else: tmp = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(c * a) - Float64(y * i)) * j) t_2 = Float64(t_1 - Float64(Float64(b * Float64(Float64(z * c) - Float64(i * t))) + Float64(x * Float64(Float64(a * t) - Float64(z * y))))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(t_1 + Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) + Float64(t * Float64(Float64(i * b) - Float64(c * Float64(Float64(z * b) / t)))))); elseif (t_2 <= Inf) tmp = t_2; else tmp = Float64(z * Float64(Float64(j * Float64(Float64(Float64(c * a) / z) - Float64(Float64(y * i) / z))) - Float64(c * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((c * a) - (y * i)) * j; t_2 = t_1 - ((b * ((z * c) - (i * t))) + (x * ((a * t) - (z * y)))); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1 + ((x * ((z * y) - (a * t))) + (t * ((i * b) - (c * ((z * b) / t))))); elseif (t_2 <= Inf) tmp = t_2; else tmp = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(i * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(t$95$1 + N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(i * b), $MachinePrecision] - N[(c * N[(N[(z * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, Infinity], t$95$2, N[(z * N[(N[(j * N[(N[(N[(c * a), $MachinePrecision] / z), $MachinePrecision] - N[(N[(y * i), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot a - y \cdot i\right) \cdot j\\
t_2 := t\_1 - \left(b \cdot \left(z \cdot c - i \cdot t\right) + x \cdot \left(a \cdot t - z \cdot y\right)\right)\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1 + \left(x \cdot \left(z \cdot y - a \cdot t\right) + t \cdot \left(i \cdot b - c \cdot \frac{z \cdot b}{t}\right)\right)\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(j \cdot \left(\frac{c \cdot a}{z} - \frac{y \cdot i}{z}\right) - c \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 78.2%
Taylor expanded in t around inf 84.6%
mul-1-neg84.6%
+-commutative84.6%
unsub-neg84.6%
*-commutative84.6%
associate-*l*85.9%
*-commutative85.9%
associate-/l*85.9%
Simplified85.9%
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)))) < +inf.0Initial program 86.3%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
+-commutative0.0%
fma-define3.8%
*-commutative3.8%
*-commutative3.8%
Simplified3.8%
Taylor expanded in z around inf 26.9%
Simplified46.2%
Taylor expanded in j around inf 52.1%
Final simplification79.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* (- (* c a) (* y i)) j)
(+ (* b (- (* z c) (* i t))) (* x (- (* a t) (* z y)))))))
(if (<= t_1 INFINITY)
t_1
(* z (- (* j (- (/ (* c a) z) (/ (* y i) z))) (* c b))))))
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) - (y * i)) * j) - ((b * ((z * c) - (i * t))) + (x * ((a * t) - (z * y))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * 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 = (((c * a) - (y * i)) * j) - ((b * ((z * c) - (i * t))) + (x * ((a * t) - (z * y))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (((c * a) - (y * i)) * j) - ((b * ((z * c) - (i * t))) + (x * ((a * t) - (z * y)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(Float64(c * a) - Float64(y * i)) * j) - Float64(Float64(b * Float64(Float64(z * c) - Float64(i * t))) + Float64(x * Float64(Float64(a * t) - Float64(z * y))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(Float64(j * Float64(Float64(Float64(c * a) / z) - Float64(Float64(y * i) / z))) - Float64(c * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (((c * a) - (y * i)) * j) - ((b * ((z * c) - (i * t))) + (x * ((a * t) - (z * y)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(i * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[(N[(j * N[(N[(N[(c * a), $MachinePrecision] / z), $MachinePrecision] - N[(N[(y * i), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot a - y \cdot i\right) \cdot j - \left(b \cdot \left(z \cdot c - i \cdot t\right) + x \cdot \left(a \cdot t - z \cdot y\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(j \cdot \left(\frac{c \cdot a}{z} - \frac{y \cdot i}{z}\right) - c \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 83.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
+-commutative0.0%
fma-define3.8%
*-commutative3.8%
*-commutative3.8%
Simplified3.8%
Taylor expanded in z around inf 26.9%
Simplified46.2%
Taylor expanded in j around inf 52.1%
Final simplification77.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- (* c a) (* y i)) j))
(t_2 (+ t_1 (* b (- (* i t) (* z c))))))
(if (<= x -5.8e+140)
(+ t_1 (* x (- (* z y) (* a t))))
(if (<= x -6.8e-277)
t_2
(if (<= x 9.5e-121)
(+ t_1 (* z (- (* x y) (* c b))))
(if (<= x 2.3e-46)
(* t (- (* i b) (* b (* c (/ z t)))))
(if (<= x 4.3e+122) t_2 (* x (* z (- y (* a (/ t 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) - (y * i)) * j;
double t_2 = t_1 + (b * ((i * t) - (z * c)));
double tmp;
if (x <= -5.8e+140) {
tmp = t_1 + (x * ((z * y) - (a * t)));
} else if (x <= -6.8e-277) {
tmp = t_2;
} else if (x <= 9.5e-121) {
tmp = t_1 + (z * ((x * y) - (c * b)));
} else if (x <= 2.3e-46) {
tmp = t * ((i * b) - (b * (c * (z / t))));
} else if (x <= 4.3e+122) {
tmp = t_2;
} else {
tmp = x * (z * (y - (a * (t / 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) :: t_2
real(8) :: tmp
t_1 = ((c * a) - (y * i)) * j
t_2 = t_1 + (b * ((i * t) - (z * c)))
if (x <= (-5.8d+140)) then
tmp = t_1 + (x * ((z * y) - (a * t)))
else if (x <= (-6.8d-277)) then
tmp = t_2
else if (x <= 9.5d-121) then
tmp = t_1 + (z * ((x * y) - (c * b)))
else if (x <= 2.3d-46) then
tmp = t * ((i * b) - (b * (c * (z / t))))
else if (x <= 4.3d+122) then
tmp = t_2
else
tmp = x * (z * (y - (a * (t / 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) - (y * i)) * j;
double t_2 = t_1 + (b * ((i * t) - (z * c)));
double tmp;
if (x <= -5.8e+140) {
tmp = t_1 + (x * ((z * y) - (a * t)));
} else if (x <= -6.8e-277) {
tmp = t_2;
} else if (x <= 9.5e-121) {
tmp = t_1 + (z * ((x * y) - (c * b)));
} else if (x <= 2.3e-46) {
tmp = t * ((i * b) - (b * (c * (z / t))));
} else if (x <= 4.3e+122) {
tmp = t_2;
} else {
tmp = x * (z * (y - (a * (t / z))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((c * a) - (y * i)) * j t_2 = t_1 + (b * ((i * t) - (z * c))) tmp = 0 if x <= -5.8e+140: tmp = t_1 + (x * ((z * y) - (a * t))) elif x <= -6.8e-277: tmp = t_2 elif x <= 9.5e-121: tmp = t_1 + (z * ((x * y) - (c * b))) elif x <= 2.3e-46: tmp = t * ((i * b) - (b * (c * (z / t)))) elif x <= 4.3e+122: tmp = t_2 else: tmp = x * (z * (y - (a * (t / z)))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(c * a) - Float64(y * i)) * j) t_2 = Float64(t_1 + Float64(b * Float64(Float64(i * t) - Float64(z * c)))) tmp = 0.0 if (x <= -5.8e+140) tmp = Float64(t_1 + Float64(x * Float64(Float64(z * y) - Float64(a * t)))); elseif (x <= -6.8e-277) tmp = t_2; elseif (x <= 9.5e-121) tmp = Float64(t_1 + Float64(z * Float64(Float64(x * y) - Float64(c * b)))); elseif (x <= 2.3e-46) tmp = Float64(t * Float64(Float64(i * b) - Float64(b * Float64(c * Float64(z / t))))); elseif (x <= 4.3e+122) tmp = t_2; else tmp = Float64(x * Float64(z * Float64(y - Float64(a * Float64(t / z))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((c * a) - (y * i)) * j; t_2 = t_1 + (b * ((i * t) - (z * c))); tmp = 0.0; if (x <= -5.8e+140) tmp = t_1 + (x * ((z * y) - (a * t))); elseif (x <= -6.8e-277) tmp = t_2; elseif (x <= 9.5e-121) tmp = t_1 + (z * ((x * y) - (c * b))); elseif (x <= 2.3e-46) tmp = t * ((i * b) - (b * (c * (z / t)))); elseif (x <= 4.3e+122) tmp = t_2; else tmp = x * (z * (y - (a * (t / z)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(b * N[(N[(i * t), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.8e+140], N[(t$95$1 + N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.8e-277], t$95$2, If[LessEqual[x, 9.5e-121], N[(t$95$1 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.3e-46], N[(t * N[(N[(i * b), $MachinePrecision] - N[(b * N[(c * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.3e+122], t$95$2, N[(x * N[(z * N[(y - N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot a - y \cdot i\right) \cdot j\\
t_2 := t\_1 + b \cdot \left(i \cdot t - z \cdot c\right)\\
\mathbf{if}\;x \leq -5.8 \cdot 10^{+140}:\\
\;\;\;\;t\_1 + x \cdot \left(z \cdot y - a \cdot t\right)\\
\mathbf{elif}\;x \leq -6.8 \cdot 10^{-277}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{-121}:\\
\;\;\;\;t\_1 + z \cdot \left(x \cdot y - c \cdot b\right)\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-46}:\\
\;\;\;\;t \cdot \left(i \cdot b - b \cdot \left(c \cdot \frac{z}{t}\right)\right)\\
\mathbf{elif}\;x \leq 4.3 \cdot 10^{+122}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z \cdot \left(y - a \cdot \frac{t}{z}\right)\right)\\
\end{array}
\end{array}
if x < -5.7999999999999998e140Initial program 74.0%
+-commutative74.0%
fma-define74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in b around 0 85.6%
if -5.7999999999999998e140 < x < -6.79999999999999964e-277 or 2.2999999999999999e-46 < x < 4.29999999999999971e122Initial program 73.9%
+-commutative73.9%
fma-define74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in x around 0 72.1%
*-commutative72.1%
Simplified72.1%
if -6.79999999999999964e-277 < x < 9.4999999999999994e-121Initial program 60.6%
Taylor expanded in z around inf 75.3%
*-commutative75.3%
Simplified75.3%
if 9.4999999999999994e-121 < x < 2.2999999999999999e-46Initial program 42.4%
+-commutative42.4%
fma-define42.4%
*-commutative42.4%
*-commutative42.4%
Simplified42.4%
Taylor expanded in z around inf 73.7%
Simplified92.7%
Taylor expanded in b around inf 67.5%
Taylor expanded in t around -inf 61.9%
mul-1-neg61.9%
*-commutative61.9%
distribute-rgt-neg-in61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
associate-/l*61.9%
associate-/l*80.6%
Simplified80.6%
if 4.29999999999999971e122 < x Initial program 55.9%
+-commutative55.9%
fma-define58.7%
*-commutative58.7%
*-commutative58.7%
Simplified58.7%
Taylor expanded in z around inf 51.9%
Simplified60.5%
Taylor expanded in x around -inf 66.5%
mul-1-neg66.5%
*-commutative66.5%
distribute-rgt-neg-in66.5%
+-commutative66.5%
neg-mul-166.5%
unsub-neg66.5%
associate-/l*72.2%
Simplified72.2%
Final simplification74.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* j (- (/ (* c a) z) (/ (* y i) z))) (* c b))))
(t_2 (* (- (* c a) (* y i)) j))
(t_3 (* t (- (* i b) (* x a)))))
(if (<= t -9.2e+107)
t_3
(if (<= t -5e+36)
t_1
(if (<= t -1e-100)
(+ t_2 (* x (- (* z y) (* a t))))
(if (<= t 9e+109)
(+ t_2 (* z (- (* x y) (* c b))))
(if (<= t 1.05e+264) t_3 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b));
double t_2 = ((c * a) - (y * i)) * j;
double t_3 = t * ((i * b) - (x * a));
double tmp;
if (t <= -9.2e+107) {
tmp = t_3;
} else if (t <= -5e+36) {
tmp = t_1;
} else if (t <= -1e-100) {
tmp = t_2 + (x * ((z * y) - (a * t)));
} else if (t <= 9e+109) {
tmp = t_2 + (z * ((x * y) - (c * b)));
} else if (t <= 1.05e+264) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b))
t_2 = ((c * a) - (y * i)) * j
t_3 = t * ((i * b) - (x * a))
if (t <= (-9.2d+107)) then
tmp = t_3
else if (t <= (-5d+36)) then
tmp = t_1
else if (t <= (-1d-100)) then
tmp = t_2 + (x * ((z * y) - (a * t)))
else if (t <= 9d+109) then
tmp = t_2 + (z * ((x * y) - (c * b)))
else if (t <= 1.05d+264) then
tmp = t_3
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b));
double t_2 = ((c * a) - (y * i)) * j;
double t_3 = t * ((i * b) - (x * a));
double tmp;
if (t <= -9.2e+107) {
tmp = t_3;
} else if (t <= -5e+36) {
tmp = t_1;
} else if (t <= -1e-100) {
tmp = t_2 + (x * ((z * y) - (a * t)));
} else if (t <= 9e+109) {
tmp = t_2 + (z * ((x * y) - (c * b)));
} else if (t <= 1.05e+264) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b)) t_2 = ((c * a) - (y * i)) * j t_3 = t * ((i * b) - (x * a)) tmp = 0 if t <= -9.2e+107: tmp = t_3 elif t <= -5e+36: tmp = t_1 elif t <= -1e-100: tmp = t_2 + (x * ((z * y) - (a * t))) elif t <= 9e+109: tmp = t_2 + (z * ((x * y) - (c * b))) elif t <= 1.05e+264: tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(j * Float64(Float64(Float64(c * a) / z) - Float64(Float64(y * i) / z))) - Float64(c * b))) t_2 = Float64(Float64(Float64(c * a) - Float64(y * i)) * j) t_3 = Float64(t * Float64(Float64(i * b) - Float64(x * a))) tmp = 0.0 if (t <= -9.2e+107) tmp = t_3; elseif (t <= -5e+36) tmp = t_1; elseif (t <= -1e-100) tmp = Float64(t_2 + Float64(x * Float64(Float64(z * y) - Float64(a * t)))); elseif (t <= 9e+109) tmp = Float64(t_2 + Float64(z * Float64(Float64(x * y) - Float64(c * b)))); elseif (t <= 1.05e+264) tmp = t_3; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b)); t_2 = ((c * a) - (y * i)) * j; t_3 = t * ((i * b) - (x * a)); tmp = 0.0; if (t <= -9.2e+107) tmp = t_3; elseif (t <= -5e+36) tmp = t_1; elseif (t <= -1e-100) tmp = t_2 + (x * ((z * y) - (a * t))); elseif (t <= 9e+109) tmp = t_2 + (z * ((x * y) - (c * b))); elseif (t <= 1.05e+264) tmp = t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(j * N[(N[(N[(c * a), $MachinePrecision] / z), $MachinePrecision] - N[(N[(y * i), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(i * b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9.2e+107], t$95$3, If[LessEqual[t, -5e+36], t$95$1, If[LessEqual[t, -1e-100], N[(t$95$2 + N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e+109], N[(t$95$2 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+264], t$95$3, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(j \cdot \left(\frac{c \cdot a}{z} - \frac{y \cdot i}{z}\right) - c \cdot b\right)\\
t_2 := \left(c \cdot a - y \cdot i\right) \cdot j\\
t_3 := t \cdot \left(i \cdot b - x \cdot a\right)\\
\mathbf{if}\;t \leq -9.2 \cdot 10^{+107}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -5 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-100}:\\
\;\;\;\;t\_2 + x \cdot \left(z \cdot y - a \cdot t\right)\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+109}:\\
\;\;\;\;t\_2 + z \cdot \left(x \cdot y - c \cdot b\right)\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+264}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -9.2000000000000001e107 or 8.9999999999999992e109 < t < 1.05000000000000005e264Initial program 53.3%
+-commutative53.3%
fma-define54.7%
*-commutative54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in z around inf 50.4%
Simplified62.5%
Taylor expanded in t around -inf 71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
*-commutative71.1%
Simplified71.1%
if -9.2000000000000001e107 < t < -4.99999999999999977e36 or 1.05000000000000005e264 < t Initial program 44.6%
+-commutative44.6%
fma-define44.6%
*-commutative44.6%
*-commutative44.6%
Simplified44.6%
Taylor expanded in z around inf 48.9%
Simplified76.5%
Taylor expanded in j around inf 73.3%
if -4.99999999999999977e36 < t < -1e-100Initial program 74.0%
+-commutative74.0%
fma-define74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in b around 0 66.3%
if -1e-100 < t < 8.9999999999999992e109Initial program 76.2%
Taylor expanded in z around inf 74.1%
*-commutative74.1%
Simplified74.1%
Final simplification72.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* (- (* c a) (* y i)) j) (* x (- (* z y) (* a t))))))
(if (<= b -4.1e+79)
(* b (- (* i t) (* z c)))
(if (<= b -320000000.0)
t_1
(if (<= b -5.7e-61)
(* t (- (* i b) (* x a)))
(if (<= b 3.1e-166)
t_1
(if (<= b 6.4e+158)
(* z (- (* j (- (/ (* c a) z) (/ (* y i) z))) (* c b)))
(* (* z b) (- (* i (/ t z)) 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) - (y * i)) * j) + (x * ((z * y) - (a * t)));
double tmp;
if (b <= -4.1e+79) {
tmp = b * ((i * t) - (z * c));
} else if (b <= -320000000.0) {
tmp = t_1;
} else if (b <= -5.7e-61) {
tmp = t * ((i * b) - (x * a));
} else if (b <= 3.1e-166) {
tmp = t_1;
} else if (b <= 6.4e+158) {
tmp = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b));
} else {
tmp = (z * b) * ((i * (t / 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) :: t_1
real(8) :: tmp
t_1 = (((c * a) - (y * i)) * j) + (x * ((z * y) - (a * t)))
if (b <= (-4.1d+79)) then
tmp = b * ((i * t) - (z * c))
else if (b <= (-320000000.0d0)) then
tmp = t_1
else if (b <= (-5.7d-61)) then
tmp = t * ((i * b) - (x * a))
else if (b <= 3.1d-166) then
tmp = t_1
else if (b <= 6.4d+158) then
tmp = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b))
else
tmp = (z * b) * ((i * (t / 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 t_1 = (((c * a) - (y * i)) * j) + (x * ((z * y) - (a * t)));
double tmp;
if (b <= -4.1e+79) {
tmp = b * ((i * t) - (z * c));
} else if (b <= -320000000.0) {
tmp = t_1;
} else if (b <= -5.7e-61) {
tmp = t * ((i * b) - (x * a));
} else if (b <= 3.1e-166) {
tmp = t_1;
} else if (b <= 6.4e+158) {
tmp = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b));
} else {
tmp = (z * b) * ((i * (t / z)) - c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (((c * a) - (y * i)) * j) + (x * ((z * y) - (a * t))) tmp = 0 if b <= -4.1e+79: tmp = b * ((i * t) - (z * c)) elif b <= -320000000.0: tmp = t_1 elif b <= -5.7e-61: tmp = t * ((i * b) - (x * a)) elif b <= 3.1e-166: tmp = t_1 elif b <= 6.4e+158: tmp = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b)) else: tmp = (z * b) * ((i * (t / z)) - c) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(Float64(c * a) - Float64(y * i)) * j) + Float64(x * Float64(Float64(z * y) - Float64(a * t)))) tmp = 0.0 if (b <= -4.1e+79) tmp = Float64(b * Float64(Float64(i * t) - Float64(z * c))); elseif (b <= -320000000.0) tmp = t_1; elseif (b <= -5.7e-61) tmp = Float64(t * Float64(Float64(i * b) - Float64(x * a))); elseif (b <= 3.1e-166) tmp = t_1; elseif (b <= 6.4e+158) tmp = Float64(z * Float64(Float64(j * Float64(Float64(Float64(c * a) / z) - Float64(Float64(y * i) / z))) - Float64(c * b))); else tmp = Float64(Float64(z * b) * Float64(Float64(i * Float64(t / z)) - c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (((c * a) - (y * i)) * j) + (x * ((z * y) - (a * t))); tmp = 0.0; if (b <= -4.1e+79) tmp = b * ((i * t) - (z * c)); elseif (b <= -320000000.0) tmp = t_1; elseif (b <= -5.7e-61) tmp = t * ((i * b) - (x * a)); elseif (b <= 3.1e-166) tmp = t_1; elseif (b <= 6.4e+158) tmp = z * ((j * (((c * a) / z) - ((y * i) / z))) - (c * b)); else tmp = (z * b) * ((i * (t / z)) - c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] + N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.1e+79], N[(b * N[(N[(i * t), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -320000000.0], t$95$1, If[LessEqual[b, -5.7e-61], N[(t * N[(N[(i * b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e-166], t$95$1, If[LessEqual[b, 6.4e+158], N[(z * N[(N[(j * N[(N[(N[(c * a), $MachinePrecision] / z), $MachinePrecision] - N[(N[(y * i), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * b), $MachinePrecision] * N[(N[(i * N[(t / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot a - y \cdot i\right) \cdot j + x \cdot \left(z \cdot y - a \cdot t\right)\\
\mathbf{if}\;b \leq -4.1 \cdot 10^{+79}:\\
\;\;\;\;b \cdot \left(i \cdot t - z \cdot c\right)\\
\mathbf{elif}\;b \leq -320000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.7 \cdot 10^{-61}:\\
\;\;\;\;t \cdot \left(i \cdot b - x \cdot a\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-166}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{+158}:\\
\;\;\;\;z \cdot \left(j \cdot \left(\frac{c \cdot a}{z} - \frac{y \cdot i}{z}\right) - c \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(i \cdot \frac{t}{z} - c\right)\\
\end{array}
\end{array}
if b < -4.1e79Initial program 81.0%
+-commutative81.0%
fma-define83.1%
*-commutative83.1%
*-commutative83.1%
Simplified83.1%
Taylor expanded in x around 0 85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in b around inf 73.3%
*-commutative73.3%
Simplified73.3%
if -4.1e79 < b < -3.2e8 or -5.70000000000000005e-61 < b < 3.09999999999999984e-166Initial program 62.3%
+-commutative62.3%
fma-define62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in b around 0 67.6%
if -3.2e8 < b < -5.70000000000000005e-61Initial program 53.8%
+-commutative53.8%
fma-define53.8%
*-commutative53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in z around inf 57.4%
Simplified61.3%
Taylor expanded in t around -inf 60.9%
+-commutative60.9%
mul-1-neg60.9%
unsub-neg60.9%
*-commutative60.9%
Simplified60.9%
if 3.09999999999999984e-166 < b < 6.39999999999999989e158Initial program 69.2%
+-commutative69.2%
fma-define71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in z around inf 80.6%
Simplified76.3%
Taylor expanded in j around inf 64.6%
if 6.39999999999999989e158 < b Initial program 65.0%
+-commutative65.0%
fma-define65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in z around inf 42.9%
Simplified50.5%
Taylor expanded in b around inf 73.1%
associate-*r*77.9%
*-commutative77.9%
associate-/l*77.9%
Simplified77.9%
Final simplification69.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* i t) (* z c))))
(t_2 (+ (* (- (* c a) (* y i)) j) (* z (- (* x y) (* c b))))))
(if (<= j -3.6e-31)
t_2
(if (<= j -1.05e-209)
(- t_1 (- (* i (* y j)) (* x (* z y))))
(if (<= j 1.15e-89)
(+ (- (* a (* c j)) (* a (* x t))) t_1)
(if (<= j 6.4e+110)
t_2
(- (* t (- (* i b) (* x a))) (* j (- (* y i) (* c a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((i * t) - (z * c));
double t_2 = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * b)));
double tmp;
if (j <= -3.6e-31) {
tmp = t_2;
} else if (j <= -1.05e-209) {
tmp = t_1 - ((i * (y * j)) - (x * (z * y)));
} else if (j <= 1.15e-89) {
tmp = ((a * (c * j)) - (a * (x * t))) + t_1;
} else if (j <= 6.4e+110) {
tmp = t_2;
} else {
tmp = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((i * t) - (z * c))
t_2 = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * b)))
if (j <= (-3.6d-31)) then
tmp = t_2
else if (j <= (-1.05d-209)) then
tmp = t_1 - ((i * (y * j)) - (x * (z * y)))
else if (j <= 1.15d-89) then
tmp = ((a * (c * j)) - (a * (x * t))) + t_1
else if (j <= 6.4d+110) then
tmp = t_2
else
tmp = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((i * t) - (z * c));
double t_2 = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * b)));
double tmp;
if (j <= -3.6e-31) {
tmp = t_2;
} else if (j <= -1.05e-209) {
tmp = t_1 - ((i * (y * j)) - (x * (z * y)));
} else if (j <= 1.15e-89) {
tmp = ((a * (c * j)) - (a * (x * t))) + t_1;
} else if (j <= 6.4e+110) {
tmp = t_2;
} else {
tmp = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((i * t) - (z * c)) t_2 = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * b))) tmp = 0 if j <= -3.6e-31: tmp = t_2 elif j <= -1.05e-209: tmp = t_1 - ((i * (y * j)) - (x * (z * y))) elif j <= 1.15e-89: tmp = ((a * (c * j)) - (a * (x * t))) + t_1 elif j <= 6.4e+110: tmp = t_2 else: tmp = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(i * t) - Float64(z * c))) t_2 = Float64(Float64(Float64(Float64(c * a) - Float64(y * i)) * j) + Float64(z * Float64(Float64(x * y) - Float64(c * b)))) tmp = 0.0 if (j <= -3.6e-31) tmp = t_2; elseif (j <= -1.05e-209) tmp = Float64(t_1 - Float64(Float64(i * Float64(y * j)) - Float64(x * Float64(z * y)))); elseif (j <= 1.15e-89) tmp = Float64(Float64(Float64(a * Float64(c * j)) - Float64(a * Float64(x * t))) + t_1); elseif (j <= 6.4e+110) tmp = t_2; else tmp = Float64(Float64(t * Float64(Float64(i * b) - Float64(x * a))) - Float64(j * Float64(Float64(y * i) - Float64(c * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((i * t) - (z * c)); t_2 = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * b))); tmp = 0.0; if (j <= -3.6e-31) tmp = t_2; elseif (j <= -1.05e-209) tmp = t_1 - ((i * (y * j)) - (x * (z * y))); elseif (j <= 1.15e-89) tmp = ((a * (c * j)) - (a * (x * t))) + t_1; elseif (j <= 6.4e+110) tmp = t_2; else tmp = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(i * t), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.6e-31], t$95$2, If[LessEqual[j, -1.05e-209], N[(t$95$1 - N[(N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision] - N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e-89], N[(N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[j, 6.4e+110], t$95$2, N[(N[(t * N[(N[(i * b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(i \cdot t - z \cdot c\right)\\
t_2 := \left(c \cdot a - y \cdot i\right) \cdot j + z \cdot \left(x \cdot y - c \cdot b\right)\\
\mathbf{if}\;j \leq -3.6 \cdot 10^{-31}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -1.05 \cdot 10^{-209}:\\
\;\;\;\;t\_1 - \left(i \cdot \left(y \cdot j\right) - x \cdot \left(z \cdot y\right)\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{-89}:\\
\;\;\;\;\left(a \cdot \left(c \cdot j\right) - a \cdot \left(x \cdot t\right)\right) + t\_1\\
\mathbf{elif}\;j \leq 6.4 \cdot 10^{+110}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(i \cdot b - x \cdot a\right) - j \cdot \left(y \cdot i - c \cdot a\right)\\
\end{array}
\end{array}
if j < -3.60000000000000004e-31 or 1.15e-89 < j < 6.39999999999999988e110Initial program 71.7%
Taylor expanded in z around inf 81.7%
*-commutative81.7%
Simplified81.7%
if -3.60000000000000004e-31 < j < -1.04999999999999998e-209Initial program 62.1%
+-commutative62.1%
fma-define62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in a around 0 71.9%
if -1.04999999999999998e-209 < j < 1.15e-89Initial program 61.8%
+-commutative61.8%
fma-define61.8%
*-commutative61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in y around 0 75.2%
if 6.39999999999999988e110 < j Initial program 61.5%
Taylor expanded in t around -inf 75.9%
Final simplification77.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t (- (* i b) (* x a))) (* j (- (* y i) (* c a))))))
(if (<= i -2.1e-15)
t_1
(if (<= i 5.6e-307)
(+ (- (* a (* c j)) (* a (* x t))) (* b (- (* i t) (* z c))))
(if (<= i 38000.0)
(+ (* (- (* c a) (* y i)) j) (* z (- (* x y) (* c b))))
(if (<= i 1.65e+205) t_1 (* i (- (* t b) (* y j)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a)));
double tmp;
if (i <= -2.1e-15) {
tmp = t_1;
} else if (i <= 5.6e-307) {
tmp = ((a * (c * j)) - (a * (x * t))) + (b * ((i * t) - (z * c)));
} else if (i <= 38000.0) {
tmp = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * b)));
} else if (i <= 1.65e+205) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (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 = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a)))
if (i <= (-2.1d-15)) then
tmp = t_1
else if (i <= 5.6d-307) then
tmp = ((a * (c * j)) - (a * (x * t))) + (b * ((i * t) - (z * c)))
else if (i <= 38000.0d0) then
tmp = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * b)))
else if (i <= 1.65d+205) then
tmp = t_1
else
tmp = i * ((t * b) - (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 = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a)));
double tmp;
if (i <= -2.1e-15) {
tmp = t_1;
} else if (i <= 5.6e-307) {
tmp = ((a * (c * j)) - (a * (x * t))) + (b * ((i * t) - (z * c)));
} else if (i <= 38000.0) {
tmp = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * b)));
} else if (i <= 1.65e+205) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a))) tmp = 0 if i <= -2.1e-15: tmp = t_1 elif i <= 5.6e-307: tmp = ((a * (c * j)) - (a * (x * t))) + (b * ((i * t) - (z * c))) elif i <= 38000.0: tmp = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * b))) elif i <= 1.65e+205: tmp = t_1 else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * Float64(Float64(i * b) - Float64(x * a))) - Float64(j * Float64(Float64(y * i) - Float64(c * a)))) tmp = 0.0 if (i <= -2.1e-15) tmp = t_1; elseif (i <= 5.6e-307) tmp = Float64(Float64(Float64(a * Float64(c * j)) - Float64(a * Float64(x * t))) + Float64(b * Float64(Float64(i * t) - Float64(z * c)))); elseif (i <= 38000.0) tmp = Float64(Float64(Float64(Float64(c * a) - Float64(y * i)) * j) + Float64(z * Float64(Float64(x * y) - Float64(c * b)))); elseif (i <= 1.65e+205) tmp = t_1; else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a))); tmp = 0.0; if (i <= -2.1e-15) tmp = t_1; elseif (i <= 5.6e-307) tmp = ((a * (c * j)) - (a * (x * t))) + (b * ((i * t) - (z * c))); elseif (i <= 38000.0) tmp = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * b))); elseif (i <= 1.65e+205) tmp = t_1; else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * N[(N[(i * b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.1e-15], t$95$1, If[LessEqual[i, 5.6e-307], N[(N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(i * t), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 38000.0], N[(N[(N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.65e+205], t$95$1, N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot b - x \cdot a\right) - j \cdot \left(y \cdot i - c \cdot a\right)\\
\mathbf{if}\;i \leq -2.1 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5.6 \cdot 10^{-307}:\\
\;\;\;\;\left(a \cdot \left(c \cdot j\right) - a \cdot \left(x \cdot t\right)\right) + b \cdot \left(i \cdot t - z \cdot c\right)\\
\mathbf{elif}\;i \leq 38000:\\
\;\;\;\;\left(c \cdot a - y \cdot i\right) \cdot j + z \cdot \left(x \cdot y - c \cdot b\right)\\
\mathbf{elif}\;i \leq 1.65 \cdot 10^{+205}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if i < -2.09999999999999981e-15 or 38000 < i < 1.6500000000000001e205Initial program 66.4%
Taylor expanded in t around -inf 72.3%
if -2.09999999999999981e-15 < i < 5.6e-307Initial program 75.5%
+-commutative75.5%
fma-define75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in y around 0 79.4%
if 5.6e-307 < i < 38000Initial program 68.2%
Taylor expanded in z around inf 76.4%
*-commutative76.4%
Simplified76.4%
if 1.6500000000000001e205 < i Initial program 47.2%
+-commutative47.2%
fma-define47.2%
*-commutative47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in i around inf 84.2%
distribute-lft-out--84.2%
Simplified84.2%
Final simplification76.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -5.2e+92)
(* (* y i) (- j))
(if (<= i -110000.0)
(* a (* x (- t)))
(if (<= i 2.2e-184)
(* z (* c (- b)))
(if (<= i 2.4e-167)
(* (* c a) j)
(if (<= i 1.65e-85)
(* c (* z (- b)))
(if (<= i 8.4e+166) (* b (* i t)) (* i (* y (- j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -5.2e+92) {
tmp = (y * i) * -j;
} else if (i <= -110000.0) {
tmp = a * (x * -t);
} else if (i <= 2.2e-184) {
tmp = z * (c * -b);
} else if (i <= 2.4e-167) {
tmp = (c * a) * j;
} else if (i <= 1.65e-85) {
tmp = c * (z * -b);
} else if (i <= 8.4e+166) {
tmp = b * (i * t);
} 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) :: tmp
if (i <= (-5.2d+92)) then
tmp = (y * i) * -j
else if (i <= (-110000.0d0)) then
tmp = a * (x * -t)
else if (i <= 2.2d-184) then
tmp = z * (c * -b)
else if (i <= 2.4d-167) then
tmp = (c * a) * j
else if (i <= 1.65d-85) then
tmp = c * (z * -b)
else if (i <= 8.4d+166) then
tmp = b * (i * t)
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 tmp;
if (i <= -5.2e+92) {
tmp = (y * i) * -j;
} else if (i <= -110000.0) {
tmp = a * (x * -t);
} else if (i <= 2.2e-184) {
tmp = z * (c * -b);
} else if (i <= 2.4e-167) {
tmp = (c * a) * j;
} else if (i <= 1.65e-85) {
tmp = c * (z * -b);
} else if (i <= 8.4e+166) {
tmp = b * (i * t);
} else {
tmp = i * (y * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -5.2e+92: tmp = (y * i) * -j elif i <= -110000.0: tmp = a * (x * -t) elif i <= 2.2e-184: tmp = z * (c * -b) elif i <= 2.4e-167: tmp = (c * a) * j elif i <= 1.65e-85: tmp = c * (z * -b) elif i <= 8.4e+166: tmp = b * (i * t) else: tmp = i * (y * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -5.2e+92) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (i <= -110000.0) tmp = Float64(a * Float64(x * Float64(-t))); elseif (i <= 2.2e-184) tmp = Float64(z * Float64(c * Float64(-b))); elseif (i <= 2.4e-167) tmp = Float64(Float64(c * a) * j); elseif (i <= 1.65e-85) tmp = Float64(c * Float64(z * Float64(-b))); elseif (i <= 8.4e+166) tmp = Float64(b * Float64(i * t)); 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) tmp = 0.0; if (i <= -5.2e+92) tmp = (y * i) * -j; elseif (i <= -110000.0) tmp = a * (x * -t); elseif (i <= 2.2e-184) tmp = z * (c * -b); elseif (i <= 2.4e-167) tmp = (c * a) * j; elseif (i <= 1.65e-85) tmp = c * (z * -b); elseif (i <= 8.4e+166) tmp = b * (i * t); else tmp = i * (y * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -5.2e+92], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[i, -110000.0], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.2e-184], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.4e-167], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[i, 1.65e-85], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.4e+166], N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -5.2 \cdot 10^{+92}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;i \leq -110000:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;i \leq 2.2 \cdot 10^{-184}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{-167}:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\
\mathbf{elif}\;i \leq 1.65 \cdot 10^{-85}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 8.4 \cdot 10^{+166}:\\
\;\;\;\;b \cdot \left(i \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if i < -5.1999999999999998e92Initial program 71.0%
Taylor expanded in i around inf 66.1%
Taylor expanded in y around inf 42.6%
associate-*r*42.6%
neg-mul-142.6%
Simplified42.6%
Taylor expanded in i around 0 42.6%
associate-*r*42.6%
neg-mul-142.6%
*-commutative42.6%
associate-*r*43.7%
*-commutative43.7%
Simplified43.7%
if -5.1999999999999998e92 < i < -1.1e5Initial program 41.3%
+-commutative41.3%
fma-define51.3%
*-commutative51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in a around inf 51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
Simplified51.1%
Taylor expanded in c around 0 41.4%
associate-*r*41.4%
neg-mul-141.4%
Simplified41.4%
if -1.1e5 < i < 2.19999999999999992e-184Initial program 72.4%
+-commutative72.4%
fma-define72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in z around inf 76.1%
Simplified76.1%
Taylor expanded in b around inf 44.7%
Taylor expanded in i around 0 43.0%
associate-*r*43.0%
mul-1-neg43.0%
Simplified43.0%
if 2.19999999999999992e-184 < i < 2.39999999999999993e-167Initial program 56.9%
+-commutative56.9%
fma-define56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in a around inf 72.0%
+-commutative72.0%
mul-1-neg72.0%
unsub-neg72.0%
Simplified72.0%
Taylor expanded in c around inf 72.5%
associate-*r*72.5%
Simplified72.5%
if 2.39999999999999993e-167 < i < 1.64999999999999986e-85Initial program 72.1%
+-commutative72.1%
fma-define72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in x around 0 56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in z around inf 33.8%
mul-1-neg33.8%
*-commutative33.8%
associate-*r*42.6%
*-commutative42.6%
distribute-rgt-neg-in42.6%
distribute-rgt-neg-in42.6%
Simplified42.6%
if 1.64999999999999986e-85 < i < 8.4000000000000002e166Initial program 76.9%
Taylor expanded in i around inf 60.1%
Taylor expanded in b around inf 36.7%
if 8.4000000000000002e166 < i Initial program 48.6%
Taylor expanded in i around inf 56.3%
Taylor expanded in y around inf 51.2%
associate-*r*51.2%
neg-mul-151.2%
Simplified51.2%
Final simplification43.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= i -5.5e+92)
t_1
(if (<= i -550.0)
(* a (* x (- t)))
(if (<= i 4.4e-184)
(* z (* c (- b)))
(if (<= i 6.6e-169)
(* (* c a) j)
(if (<= i 9.5e-86)
(* c (* z (- b)))
(if (<= i 1.62e+168) (* b (* i t)) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (i <= -5.5e+92) {
tmp = t_1;
} else if (i <= -550.0) {
tmp = a * (x * -t);
} else if (i <= 4.4e-184) {
tmp = z * (c * -b);
} else if (i <= 6.6e-169) {
tmp = (c * a) * j;
} else if (i <= 9.5e-86) {
tmp = c * (z * -b);
} else if (i <= 1.62e+168) {
tmp = b * (i * t);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y * -j)
if (i <= (-5.5d+92)) then
tmp = t_1
else if (i <= (-550.0d0)) then
tmp = a * (x * -t)
else if (i <= 4.4d-184) then
tmp = z * (c * -b)
else if (i <= 6.6d-169) then
tmp = (c * a) * j
else if (i <= 9.5d-86) then
tmp = c * (z * -b)
else if (i <= 1.62d+168) then
tmp = b * (i * t)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (i <= -5.5e+92) {
tmp = t_1;
} else if (i <= -550.0) {
tmp = a * (x * -t);
} else if (i <= 4.4e-184) {
tmp = z * (c * -b);
} else if (i <= 6.6e-169) {
tmp = (c * a) * j;
} else if (i <= 9.5e-86) {
tmp = c * (z * -b);
} else if (i <= 1.62e+168) {
tmp = b * (i * t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if i <= -5.5e+92: tmp = t_1 elif i <= -550.0: tmp = a * (x * -t) elif i <= 4.4e-184: tmp = z * (c * -b) elif i <= 6.6e-169: tmp = (c * a) * j elif i <= 9.5e-86: tmp = c * (z * -b) elif i <= 1.62e+168: tmp = b * (i * t) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (i <= -5.5e+92) tmp = t_1; elseif (i <= -550.0) tmp = Float64(a * Float64(x * Float64(-t))); elseif (i <= 4.4e-184) tmp = Float64(z * Float64(c * Float64(-b))); elseif (i <= 6.6e-169) tmp = Float64(Float64(c * a) * j); elseif (i <= 9.5e-86) tmp = Float64(c * Float64(z * Float64(-b))); elseif (i <= 1.62e+168) tmp = Float64(b * Float64(i * t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (i <= -5.5e+92) tmp = t_1; elseif (i <= -550.0) tmp = a * (x * -t); elseif (i <= 4.4e-184) tmp = z * (c * -b); elseif (i <= 6.6e-169) tmp = (c * a) * j; elseif (i <= 9.5e-86) tmp = c * (z * -b); elseif (i <= 1.62e+168) tmp = b * (i * t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5.5e+92], t$95$1, If[LessEqual[i, -550.0], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.4e-184], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.6e-169], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[i, 9.5e-86], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.62e+168], N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;i \leq -5.5 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -550:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;i \leq 4.4 \cdot 10^{-184}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 6.6 \cdot 10^{-169}:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\
\mathbf{elif}\;i \leq 9.5 \cdot 10^{-86}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 1.62 \cdot 10^{+168}:\\
\;\;\;\;b \cdot \left(i \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -5.50000000000000053e92 or 1.6199999999999999e168 < i Initial program 59.7%
Taylor expanded in i around inf 61.1%
Taylor expanded in y around inf 46.9%
associate-*r*46.9%
neg-mul-146.9%
Simplified46.9%
if -5.50000000000000053e92 < i < -550Initial program 41.3%
+-commutative41.3%
fma-define51.3%
*-commutative51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in a around inf 51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
Simplified51.1%
Taylor expanded in c around 0 41.4%
associate-*r*41.4%
neg-mul-141.4%
Simplified41.4%
if -550 < i < 4.39999999999999984e-184Initial program 72.4%
+-commutative72.4%
fma-define72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in z around inf 76.1%
Simplified76.1%
Taylor expanded in b around inf 44.7%
Taylor expanded in i around 0 43.0%
associate-*r*43.0%
mul-1-neg43.0%
Simplified43.0%
if 4.39999999999999984e-184 < i < 6.60000000000000052e-169Initial program 56.9%
+-commutative56.9%
fma-define56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in a around inf 72.0%
+-commutative72.0%
mul-1-neg72.0%
unsub-neg72.0%
Simplified72.0%
Taylor expanded in c around inf 72.5%
associate-*r*72.5%
Simplified72.5%
if 6.60000000000000052e-169 < i < 9.4999999999999996e-86Initial program 72.1%
+-commutative72.1%
fma-define72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in x around 0 56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in z around inf 33.8%
mul-1-neg33.8%
*-commutative33.8%
associate-*r*42.6%
*-commutative42.6%
distribute-rgt-neg-in42.6%
distribute-rgt-neg-in42.6%
Simplified42.6%
if 9.4999999999999996e-86 < i < 1.6199999999999999e168Initial program 76.9%
Taylor expanded in i around inf 60.1%
Taylor expanded in b around inf 36.7%
Final simplification43.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* b (* i t))))
(if (<= z -3.5e+33)
(* y (* z x))
(if (<= z -9e-79)
t_1
(if (<= z -1.05e-218)
t_2
(if (<= z 7.2e-264)
t_1
(if (<= z 1.7e-150)
t_2
(if (<= z 2.9e+141) t_1 (* c (* 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 = a * (c * j);
double t_2 = b * (i * t);
double tmp;
if (z <= -3.5e+33) {
tmp = y * (z * x);
} else if (z <= -9e-79) {
tmp = t_1;
} else if (z <= -1.05e-218) {
tmp = t_2;
} else if (z <= 7.2e-264) {
tmp = t_1;
} else if (z <= 1.7e-150) {
tmp = t_2;
} else if (z <= 2.9e+141) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (c * j)
t_2 = b * (i * t)
if (z <= (-3.5d+33)) then
tmp = y * (z * x)
else if (z <= (-9d-79)) then
tmp = t_1
else if (z <= (-1.05d-218)) then
tmp = t_2
else if (z <= 7.2d-264) then
tmp = t_1
else if (z <= 1.7d-150) then
tmp = t_2
else if (z <= 2.9d+141) then
tmp = t_1
else
tmp = 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 t_1 = a * (c * j);
double t_2 = b * (i * t);
double tmp;
if (z <= -3.5e+33) {
tmp = y * (z * x);
} else if (z <= -9e-79) {
tmp = t_1;
} else if (z <= -1.05e-218) {
tmp = t_2;
} else if (z <= 7.2e-264) {
tmp = t_1;
} else if (z <= 1.7e-150) {
tmp = t_2;
} else if (z <= 2.9e+141) {
tmp = t_1;
} else {
tmp = c * (z * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = b * (i * t) tmp = 0 if z <= -3.5e+33: tmp = y * (z * x) elif z <= -9e-79: tmp = t_1 elif z <= -1.05e-218: tmp = t_2 elif z <= 7.2e-264: tmp = t_1 elif z <= 1.7e-150: tmp = t_2 elif z <= 2.9e+141: tmp = t_1 else: tmp = c * (z * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(b * Float64(i * t)) tmp = 0.0 if (z <= -3.5e+33) tmp = Float64(y * Float64(z * x)); elseif (z <= -9e-79) tmp = t_1; elseif (z <= -1.05e-218) tmp = t_2; elseif (z <= 7.2e-264) tmp = t_1; elseif (z <= 1.7e-150) tmp = t_2; elseif (z <= 2.9e+141) tmp = t_1; else tmp = Float64(c * Float64(z * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = b * (i * t); tmp = 0.0; if (z <= -3.5e+33) tmp = y * (z * x); elseif (z <= -9e-79) tmp = t_1; elseif (z <= -1.05e-218) tmp = t_2; elseif (z <= 7.2e-264) tmp = t_1; elseif (z <= 1.7e-150) tmp = t_2; elseif (z <= 2.9e+141) tmp = t_1; else tmp = c * (z * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.5e+33], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -9e-79], t$95$1, If[LessEqual[z, -1.05e-218], t$95$2, If[LessEqual[z, 7.2e-264], t$95$1, If[LessEqual[z, 1.7e-150], t$95$2, If[LessEqual[z, 2.9e+141], t$95$1, N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := b \cdot \left(i \cdot t\right)\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+33}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\
\mathbf{elif}\;z \leq -9 \cdot 10^{-79}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.05 \cdot 10^{-218}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-264}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-150}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if z < -3.5000000000000001e33Initial program 58.0%
+-commutative58.0%
fma-define59.9%
*-commutative59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in y around inf 44.9%
+-commutative44.9%
mul-1-neg44.9%
unsub-neg44.9%
*-commutative44.9%
Simplified44.9%
Taylor expanded in z around inf 36.9%
if -3.5000000000000001e33 < z < -9.0000000000000006e-79 or -1.04999999999999997e-218 < z < 7.2000000000000004e-264 or 1.7e-150 < z < 2.90000000000000007e141Initial program 70.1%
+-commutative70.1%
fma-define71.0%
*-commutative71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in a around inf 48.2%
+-commutative48.2%
mul-1-neg48.2%
unsub-neg48.2%
Simplified48.2%
Taylor expanded in c around inf 38.0%
*-commutative38.0%
Simplified38.0%
if -9.0000000000000006e-79 < z < -1.04999999999999997e-218 or 7.2000000000000004e-264 < z < 1.7e-150Initial program 73.2%
Taylor expanded in i around inf 66.2%
Taylor expanded in b around inf 36.4%
if 2.90000000000000007e141 < z Initial program 58.9%
+-commutative58.9%
fma-define58.9%
*-commutative58.9%
*-commutative58.9%
Simplified58.9%
Taylor expanded in x around 0 56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in z around inf 58.9%
mul-1-neg58.9%
*-commutative58.9%
associate-*r*59.0%
*-commutative59.0%
distribute-rgt-neg-in59.0%
distribute-rgt-neg-in59.0%
Simplified59.0%
Final simplification40.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* i b) (* x a)))))
(if (<= i -4.6e-15)
t_1
(if (<= i 2.7e-44)
(* c (- (* a j) (* z b)))
(if (<= i 4.6e+86)
t_1
(if (<= i 3.9e+96)
(* (- (* c a) (* y i)) j)
(if (<= i 6.8e+166)
(* b (- (* i t) (* z c)))
(* y (- (* z x) (* i j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((i * b) - (x * a));
double tmp;
if (i <= -4.6e-15) {
tmp = t_1;
} else if (i <= 2.7e-44) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 4.6e+86) {
tmp = t_1;
} else if (i <= 3.9e+96) {
tmp = ((c * a) - (y * i)) * j;
} else if (i <= 6.8e+166) {
tmp = b * ((i * t) - (z * c));
} else {
tmp = y * ((z * x) - (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 = t * ((i * b) - (x * a))
if (i <= (-4.6d-15)) then
tmp = t_1
else if (i <= 2.7d-44) then
tmp = c * ((a * j) - (z * b))
else if (i <= 4.6d+86) then
tmp = t_1
else if (i <= 3.9d+96) then
tmp = ((c * a) - (y * i)) * j
else if (i <= 6.8d+166) then
tmp = b * ((i * t) - (z * c))
else
tmp = y * ((z * x) - (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 = t * ((i * b) - (x * a));
double tmp;
if (i <= -4.6e-15) {
tmp = t_1;
} else if (i <= 2.7e-44) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 4.6e+86) {
tmp = t_1;
} else if (i <= 3.9e+96) {
tmp = ((c * a) - (y * i)) * j;
} else if (i <= 6.8e+166) {
tmp = b * ((i * t) - (z * c));
} else {
tmp = y * ((z * x) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((i * b) - (x * a)) tmp = 0 if i <= -4.6e-15: tmp = t_1 elif i <= 2.7e-44: tmp = c * ((a * j) - (z * b)) elif i <= 4.6e+86: tmp = t_1 elif i <= 3.9e+96: tmp = ((c * a) - (y * i)) * j elif i <= 6.8e+166: tmp = b * ((i * t) - (z * c)) else: tmp = y * ((z * x) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(i * b) - Float64(x * a))) tmp = 0.0 if (i <= -4.6e-15) tmp = t_1; elseif (i <= 2.7e-44) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 4.6e+86) tmp = t_1; elseif (i <= 3.9e+96) tmp = Float64(Float64(Float64(c * a) - Float64(y * i)) * j); elseif (i <= 6.8e+166) tmp = Float64(b * Float64(Float64(i * t) - Float64(z * c))); else tmp = Float64(y * Float64(Float64(z * x) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((i * b) - (x * a)); tmp = 0.0; if (i <= -4.6e-15) tmp = t_1; elseif (i <= 2.7e-44) tmp = c * ((a * j) - (z * b)); elseif (i <= 4.6e+86) tmp = t_1; elseif (i <= 3.9e+96) tmp = ((c * a) - (y * i)) * j; elseif (i <= 6.8e+166) tmp = b * ((i * t) - (z * c)); else tmp = y * ((z * x) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(i * b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.6e-15], t$95$1, If[LessEqual[i, 2.7e-44], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.6e+86], t$95$1, If[LessEqual[i, 3.9e+96], N[(N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[i, 6.8e+166], N[(b * N[(N[(i * t), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z * x), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot b - x \cdot a\right)\\
\mathbf{if}\;i \leq -4.6 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.7 \cdot 10^{-44}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 4.6 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.9 \cdot 10^{+96}:\\
\;\;\;\;\left(c \cdot a - y \cdot i\right) \cdot j\\
\mathbf{elif}\;i \leq 6.8 \cdot 10^{+166}:\\
\;\;\;\;b \cdot \left(i \cdot t - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(z \cdot x - i \cdot j\right)\\
\end{array}
\end{array}
if i < -4.59999999999999981e-15 or 2.6999999999999999e-44 < i < 4.59999999999999979e86Initial program 65.8%
+-commutative65.8%
fma-define68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in z around inf 56.9%
Simplified65.2%
Taylor expanded in t around -inf 53.9%
+-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
*-commutative53.9%
Simplified53.9%
if -4.59999999999999981e-15 < i < 2.6999999999999999e-44Initial program 71.8%
+-commutative71.8%
fma-define71.8%
*-commutative71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in c around inf 71.1%
*-commutative71.1%
Simplified71.1%
if 4.59999999999999979e86 < i < 3.9e96Initial program 76.7%
+-commutative76.7%
fma-define76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in z around inf 53.3%
Simplified76.6%
Taylor expanded in j around -inf 99.6%
if 3.9e96 < i < 6.8000000000000001e166Initial program 74.3%
+-commutative74.3%
fma-define74.3%
*-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in x around 0 70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in b around inf 58.1%
*-commutative58.1%
Simplified58.1%
if 6.8000000000000001e166 < i Initial program 48.6%
+-commutative48.6%
fma-define48.6%
*-commutative48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in y around inf 59.9%
+-commutative59.9%
mul-1-neg59.9%
unsub-neg59.9%
*-commutative59.9%
Simplified59.9%
Final simplification63.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* i t) (* z c)))))
(if (<= b -1.35e+49)
t_2
(if (<= b -65000000000000.0)
t_1
(if (<= b -8e-74)
t_2
(if (<= b 4.1e-39) t_1 (if (<= b 5.2e+53) (* (* y i) (- j)) 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 = b * ((i * t) - (z * c));
double tmp;
if (b <= -1.35e+49) {
tmp = t_2;
} else if (b <= -65000000000000.0) {
tmp = t_1;
} else if (b <= -8e-74) {
tmp = t_2;
} else if (b <= 4.1e-39) {
tmp = t_1;
} else if (b <= 5.2e+53) {
tmp = (y * i) * -j;
} 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 = b * ((i * t) - (z * c))
if (b <= (-1.35d+49)) then
tmp = t_2
else if (b <= (-65000000000000.0d0)) then
tmp = t_1
else if (b <= (-8d-74)) then
tmp = t_2
else if (b <= 4.1d-39) then
tmp = t_1
else if (b <= 5.2d+53) then
tmp = (y * i) * -j
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 = b * ((i * t) - (z * c));
double tmp;
if (b <= -1.35e+49) {
tmp = t_2;
} else if (b <= -65000000000000.0) {
tmp = t_1;
} else if (b <= -8e-74) {
tmp = t_2;
} else if (b <= 4.1e-39) {
tmp = t_1;
} else if (b <= 5.2e+53) {
tmp = (y * i) * -j;
} 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 = b * ((i * t) - (z * c)) tmp = 0 if b <= -1.35e+49: tmp = t_2 elif b <= -65000000000000.0: tmp = t_1 elif b <= -8e-74: tmp = t_2 elif b <= 4.1e-39: tmp = t_1 elif b <= 5.2e+53: tmp = (y * i) * -j 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(b * Float64(Float64(i * t) - Float64(z * c))) tmp = 0.0 if (b <= -1.35e+49) tmp = t_2; elseif (b <= -65000000000000.0) tmp = t_1; elseif (b <= -8e-74) tmp = t_2; elseif (b <= 4.1e-39) tmp = t_1; elseif (b <= 5.2e+53) tmp = Float64(Float64(y * i) * Float64(-j)); 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 = b * ((i * t) - (z * c)); tmp = 0.0; if (b <= -1.35e+49) tmp = t_2; elseif (b <= -65000000000000.0) tmp = t_1; elseif (b <= -8e-74) tmp = t_2; elseif (b <= 4.1e-39) tmp = t_1; elseif (b <= 5.2e+53) tmp = (y * i) * -j; 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[(b * N[(N[(i * t), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.35e+49], t$95$2, If[LessEqual[b, -65000000000000.0], t$95$1, If[LessEqual[b, -8e-74], t$95$2, If[LessEqual[b, 4.1e-39], t$95$1, If[LessEqual[b, 5.2e+53], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(i \cdot t - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.35 \cdot 10^{+49}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -65000000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-74}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+53}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.35000000000000005e49 or -6.5e13 < b < -7.99999999999999966e-74 or 5.19999999999999996e53 < b Initial program 71.4%
+-commutative71.4%
fma-define72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in x around 0 72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in b around inf 64.5%
*-commutative64.5%
Simplified64.5%
if -1.35000000000000005e49 < b < -6.5e13 or -7.99999999999999966e-74 < b < 4.1e-39Initial program 59.7%
+-commutative59.7%
fma-define60.7%
*-commutative60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in a around inf 45.1%
+-commutative45.1%
mul-1-neg45.1%
unsub-neg45.1%
Simplified45.1%
if 4.1e-39 < b < 5.19999999999999996e53Initial program 71.4%
Taylor expanded in i around inf 79.9%
Taylor expanded in y around inf 63.9%
associate-*r*63.9%
neg-mul-163.9%
Simplified63.9%
Taylor expanded in i around 0 63.9%
associate-*r*63.9%
neg-mul-163.9%
*-commutative63.9%
associate-*r*71.9%
*-commutative71.9%
Simplified71.9%
Final simplification56.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* y i) (- j))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -3.2e-64)
t_2
(if (<= a -3e-253)
t_1
(if (<= a 5.5e-287)
(* z (* c (- b)))
(if (<= a 1.02e-153) t_1 (if (<= a 1.78e-62) (* b (* i t)) 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 = (y * i) * -j;
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -3.2e-64) {
tmp = t_2;
} else if (a <= -3e-253) {
tmp = t_1;
} else if (a <= 5.5e-287) {
tmp = z * (c * -b);
} else if (a <= 1.02e-153) {
tmp = t_1;
} else if (a <= 1.78e-62) {
tmp = b * (i * t);
} 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 = (y * i) * -j
t_2 = a * ((c * j) - (x * t))
if (a <= (-3.2d-64)) then
tmp = t_2
else if (a <= (-3d-253)) then
tmp = t_1
else if (a <= 5.5d-287) then
tmp = z * (c * -b)
else if (a <= 1.02d-153) then
tmp = t_1
else if (a <= 1.78d-62) then
tmp = b * (i * t)
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 = (y * i) * -j;
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -3.2e-64) {
tmp = t_2;
} else if (a <= -3e-253) {
tmp = t_1;
} else if (a <= 5.5e-287) {
tmp = z * (c * -b);
} else if (a <= 1.02e-153) {
tmp = t_1;
} else if (a <= 1.78e-62) {
tmp = b * (i * t);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * i) * -j t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -3.2e-64: tmp = t_2 elif a <= -3e-253: tmp = t_1 elif a <= 5.5e-287: tmp = z * (c * -b) elif a <= 1.02e-153: tmp = t_1 elif a <= 1.78e-62: tmp = b * (i * t) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * i) * Float64(-j)) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -3.2e-64) tmp = t_2; elseif (a <= -3e-253) tmp = t_1; elseif (a <= 5.5e-287) tmp = Float64(z * Float64(c * Float64(-b))); elseif (a <= 1.02e-153) tmp = t_1; elseif (a <= 1.78e-62) tmp = Float64(b * Float64(i * t)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * i) * -j; t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -3.2e-64) tmp = t_2; elseif (a <= -3e-253) tmp = t_1; elseif (a <= 5.5e-287) tmp = z * (c * -b); elseif (a <= 1.02e-153) tmp = t_1; elseif (a <= 1.78e-62) tmp = b * (i * t); 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[(y * i), $MachinePrecision] * (-j)), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.2e-64], t$95$2, If[LessEqual[a, -3e-253], t$95$1, If[LessEqual[a, 5.5e-287], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.02e-153], t$95$1, If[LessEqual[a, 1.78e-62], N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y \cdot i\right) \cdot \left(-j\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -3.2 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -3 \cdot 10^{-253}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{-287}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;a \leq 1.02 \cdot 10^{-153}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.78 \cdot 10^{-62}:\\
\;\;\;\;b \cdot \left(i \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -3.19999999999999975e-64 or 1.77999999999999998e-62 < a Initial program 62.0%
+-commutative62.0%
fma-define63.3%
*-commutative63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in a around inf 53.1%
+-commutative53.1%
mul-1-neg53.1%
unsub-neg53.1%
Simplified53.1%
if -3.19999999999999975e-64 < a < -3.0000000000000002e-253 or 5.4999999999999998e-287 < a < 1.02e-153Initial program 67.5%
Taylor expanded in i around inf 57.4%
Taylor expanded in y around inf 38.5%
associate-*r*38.5%
neg-mul-138.5%
Simplified38.5%
Taylor expanded in i around 0 38.5%
associate-*r*38.5%
neg-mul-138.5%
*-commutative38.5%
associate-*r*42.2%
*-commutative42.2%
Simplified42.2%
if -3.0000000000000002e-253 < a < 5.4999999999999998e-287Initial program 86.1%
+-commutative86.1%
fma-define86.1%
*-commutative86.1%
*-commutative86.1%
Simplified86.1%
Taylor expanded in z around inf 76.4%
Simplified71.4%
Taylor expanded in b around inf 58.3%
Taylor expanded in i around 0 48.8%
associate-*r*48.8%
mul-1-neg48.8%
Simplified48.8%
if 1.02e-153 < a < 1.77999999999999998e-62Initial program 74.4%
Taylor expanded in i around inf 51.6%
Taylor expanded in b around inf 44.3%
Final simplification49.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* z x))))
(if (<= x -5.2e+161)
t_1
(if (<= x -4.8e-77)
(* c (* z (- b)))
(if (<= x -5.3e-278)
(* (* c a) j)
(if (<= x 2.7e-279)
(* z (* c (- b)))
(if (<= x 1.15e+96) (* a (* c j)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (z * x);
double tmp;
if (x <= -5.2e+161) {
tmp = t_1;
} else if (x <= -4.8e-77) {
tmp = c * (z * -b);
} else if (x <= -5.3e-278) {
tmp = (c * a) * j;
} else if (x <= 2.7e-279) {
tmp = z * (c * -b);
} else if (x <= 1.15e+96) {
tmp = a * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (z * x)
if (x <= (-5.2d+161)) then
tmp = t_1
else if (x <= (-4.8d-77)) then
tmp = c * (z * -b)
else if (x <= (-5.3d-278)) then
tmp = (c * a) * j
else if (x <= 2.7d-279) then
tmp = z * (c * -b)
else if (x <= 1.15d+96) then
tmp = a * (c * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (z * x);
double tmp;
if (x <= -5.2e+161) {
tmp = t_1;
} else if (x <= -4.8e-77) {
tmp = c * (z * -b);
} else if (x <= -5.3e-278) {
tmp = (c * a) * j;
} else if (x <= 2.7e-279) {
tmp = z * (c * -b);
} else if (x <= 1.15e+96) {
tmp = a * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (z * x) tmp = 0 if x <= -5.2e+161: tmp = t_1 elif x <= -4.8e-77: tmp = c * (z * -b) elif x <= -5.3e-278: tmp = (c * a) * j elif x <= 2.7e-279: tmp = z * (c * -b) elif x <= 1.15e+96: tmp = a * (c * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(z * x)) tmp = 0.0 if (x <= -5.2e+161) tmp = t_1; elseif (x <= -4.8e-77) tmp = Float64(c * Float64(z * Float64(-b))); elseif (x <= -5.3e-278) tmp = Float64(Float64(c * a) * j); elseif (x <= 2.7e-279) tmp = Float64(z * Float64(c * Float64(-b))); elseif (x <= 1.15e+96) tmp = Float64(a * Float64(c * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (z * x); tmp = 0.0; if (x <= -5.2e+161) tmp = t_1; elseif (x <= -4.8e-77) tmp = c * (z * -b); elseif (x <= -5.3e-278) tmp = (c * a) * j; elseif (x <= 2.7e-279) tmp = z * (c * -b); elseif (x <= 1.15e+96) tmp = a * (c * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.2e+161], t$95$1, If[LessEqual[x, -4.8e-77], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.3e-278], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[x, 2.7e-279], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e+96], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(z \cdot x\right)\\
\mathbf{if}\;x \leq -5.2 \cdot 10^{+161}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{-77}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;x \leq -5.3 \cdot 10^{-278}:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-279}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{+96}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -5.1999999999999996e161 or 1.15000000000000008e96 < x Initial program 65.4%
+-commutative65.4%
fma-define67.0%
*-commutative67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in y around inf 58.0%
+-commutative58.0%
mul-1-neg58.0%
unsub-neg58.0%
*-commutative58.0%
Simplified58.0%
Taylor expanded in z around inf 49.2%
if -5.1999999999999996e161 < x < -4.7999999999999998e-77Initial program 72.6%
+-commutative72.6%
fma-define72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in x around 0 67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in z around inf 36.0%
mul-1-neg36.0%
*-commutative36.0%
associate-*r*38.6%
*-commutative38.6%
distribute-rgt-neg-in38.6%
distribute-rgt-neg-in38.6%
Simplified38.6%
if -4.7999999999999998e-77 < x < -5.3e-278Initial program 67.7%
+-commutative67.7%
fma-define67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in a around inf 40.8%
+-commutative40.8%
mul-1-neg40.8%
unsub-neg40.8%
Simplified40.8%
Taylor expanded in c around inf 32.3%
associate-*r*34.7%
Simplified34.7%
if -5.3e-278 < x < 2.7000000000000001e-279Initial program 71.2%
+-commutative71.2%
fma-define71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in z around inf 70.3%
Simplified60.4%
Taylor expanded in b around inf 51.1%
Taylor expanded in i around 0 65.9%
associate-*r*65.9%
mul-1-neg65.9%
Simplified65.9%
if 2.7000000000000001e-279 < x < 1.15000000000000008e96Initial program 63.5%
+-commutative63.5%
fma-define64.5%
*-commutative64.5%
*-commutative64.5%
Simplified64.5%
Taylor expanded in a around inf 39.1%
+-commutative39.1%
mul-1-neg39.1%
unsub-neg39.1%
Simplified39.1%
Taylor expanded in c around inf 32.2%
*-commutative32.2%
Simplified32.2%
Final simplification40.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -7.8e+71)
t_1
(if (<= i -6.6e+45)
(* x (* y (- z (/ (* a t) y))))
(if (<= i -2.6e-13)
(* t (- (* i b) (* x a)))
(if (<= i 1.08e-41) (* 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -7.8e+71) {
tmp = t_1;
} else if (i <= -6.6e+45) {
tmp = x * (y * (z - ((a * t) / y)));
} else if (i <= -2.6e-13) {
tmp = t * ((i * b) - (x * a));
} else if (i <= 1.08e-41) {
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 = i * ((t * b) - (y * j))
if (i <= (-7.8d+71)) then
tmp = t_1
else if (i <= (-6.6d+45)) then
tmp = x * (y * (z - ((a * t) / y)))
else if (i <= (-2.6d-13)) then
tmp = t * ((i * b) - (x * a))
else if (i <= 1.08d-41) 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -7.8e+71) {
tmp = t_1;
} else if (i <= -6.6e+45) {
tmp = x * (y * (z - ((a * t) / y)));
} else if (i <= -2.6e-13) {
tmp = t * ((i * b) - (x * a));
} else if (i <= 1.08e-41) {
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 = i * ((t * b) - (y * j)) tmp = 0 if i <= -7.8e+71: tmp = t_1 elif i <= -6.6e+45: tmp = x * (y * (z - ((a * t) / y))) elif i <= -2.6e-13: tmp = t * ((i * b) - (x * a)) elif i <= 1.08e-41: 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(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -7.8e+71) tmp = t_1; elseif (i <= -6.6e+45) tmp = Float64(x * Float64(y * Float64(z - Float64(Float64(a * t) / y)))); elseif (i <= -2.6e-13) tmp = Float64(t * Float64(Float64(i * b) - Float64(x * a))); elseif (i <= 1.08e-41) 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 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -7.8e+71) tmp = t_1; elseif (i <= -6.6e+45) tmp = x * (y * (z - ((a * t) / y))); elseif (i <= -2.6e-13) tmp = t * ((i * b) - (x * a)); elseif (i <= 1.08e-41) 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -7.8e+71], t$95$1, If[LessEqual[i, -6.6e+45], N[(x * N[(y * N[(z - N[(N[(a * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.6e-13], N[(t * N[(N[(i * b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.08e-41], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -7.8 \cdot 10^{+71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -6.6 \cdot 10^{+45}:\\
\;\;\;\;x \cdot \left(y \cdot \left(z - \frac{a \cdot t}{y}\right)\right)\\
\mathbf{elif}\;i \leq -2.6 \cdot 10^{-13}:\\
\;\;\;\;t \cdot \left(i \cdot b - x \cdot a\right)\\
\mathbf{elif}\;i \leq 1.08 \cdot 10^{-41}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -7.8000000000000002e71 or 1.08e-41 < i Initial program 65.2%
+-commutative65.2%
fma-define65.2%
*-commutative65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in i around inf 67.2%
distribute-lft-out--67.2%
Simplified67.2%
if -7.8000000000000002e71 < i < -6.6000000000000001e45Initial program 44.3%
+-commutative44.3%
fma-define55.4%
*-commutative55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in z around inf 44.3%
Simplified77.6%
Taylor expanded in x around -inf 67.6%
mul-1-neg67.6%
*-commutative67.6%
distribute-rgt-neg-in67.6%
+-commutative67.6%
neg-mul-167.6%
unsub-neg67.6%
associate-/l*67.6%
Simplified67.6%
Taylor expanded in y around inf 78.4%
if -6.6000000000000001e45 < i < -2.6e-13Initial program 46.8%
+-commutative46.8%
fma-define57.9%
*-commutative57.9%
*-commutative57.9%
Simplified57.9%
Taylor expanded in z around inf 35.9%
Simplified47.3%
Taylor expanded in t around -inf 55.9%
+-commutative55.9%
mul-1-neg55.9%
unsub-neg55.9%
*-commutative55.9%
Simplified55.9%
if -2.6e-13 < i < 1.08e-41Initial program 71.8%
+-commutative71.8%
fma-define71.8%
*-commutative71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in c around inf 71.1%
*-commutative71.1%
Simplified71.1%
Final simplification68.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -5.2e+92)
t_1
(if (<= i -1.8e+49)
(* a (- (* c j) (* x t)))
(if (<= i -6.4e-16)
(* t (- (* i b) (* x a)))
(if (<= i 1.26e-51) (* 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -5.2e+92) {
tmp = t_1;
} else if (i <= -1.8e+49) {
tmp = a * ((c * j) - (x * t));
} else if (i <= -6.4e-16) {
tmp = t * ((i * b) - (x * a));
} else if (i <= 1.26e-51) {
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 = i * ((t * b) - (y * j))
if (i <= (-5.2d+92)) then
tmp = t_1
else if (i <= (-1.8d+49)) then
tmp = a * ((c * j) - (x * t))
else if (i <= (-6.4d-16)) then
tmp = t * ((i * b) - (x * a))
else if (i <= 1.26d-51) 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -5.2e+92) {
tmp = t_1;
} else if (i <= -1.8e+49) {
tmp = a * ((c * j) - (x * t));
} else if (i <= -6.4e-16) {
tmp = t * ((i * b) - (x * a));
} else if (i <= 1.26e-51) {
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 = i * ((t * b) - (y * j)) tmp = 0 if i <= -5.2e+92: tmp = t_1 elif i <= -1.8e+49: tmp = a * ((c * j) - (x * t)) elif i <= -6.4e-16: tmp = t * ((i * b) - (x * a)) elif i <= 1.26e-51: 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(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -5.2e+92) tmp = t_1; elseif (i <= -1.8e+49) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= -6.4e-16) tmp = Float64(t * Float64(Float64(i * b) - Float64(x * a))); elseif (i <= 1.26e-51) 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 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -5.2e+92) tmp = t_1; elseif (i <= -1.8e+49) tmp = a * ((c * j) - (x * t)); elseif (i <= -6.4e-16) tmp = t * ((i * b) - (x * a)); elseif (i <= 1.26e-51) 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5.2e+92], t$95$1, If[LessEqual[i, -1.8e+49], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -6.4e-16], N[(t * N[(N[(i * b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.26e-51], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -5.2 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.8 \cdot 10^{+49}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq -6.4 \cdot 10^{-16}:\\
\;\;\;\;t \cdot \left(i \cdot b - x \cdot a\right)\\
\mathbf{elif}\;i \leq 1.26 \cdot 10^{-51}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -5.1999999999999998e92 or 1.2600000000000001e-51 < i Initial program 65.9%
+-commutative65.9%
fma-define65.9%
*-commutative65.9%
*-commutative65.9%
Simplified65.9%
Taylor expanded in i around inf 67.9%
distribute-lft-out--67.9%
Simplified67.9%
if -5.1999999999999998e92 < i < -1.79999999999999998e49Initial program 36.8%
+-commutative36.8%
fma-define45.8%
*-commutative45.8%
*-commutative45.8%
Simplified45.8%
Taylor expanded in a around inf 73.5%
+-commutative73.5%
mul-1-neg73.5%
unsub-neg73.5%
Simplified73.5%
if -1.79999999999999998e49 < i < -6.40000000000000046e-16Initial program 52.1%
+-commutative52.1%
fma-define62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in z around inf 42.3%
Simplified52.5%
Taylor expanded in t around -inf 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
*-commutative50.6%
Simplified50.6%
if -6.40000000000000046e-16 < i < 1.2600000000000001e-51Initial program 71.8%
+-commutative71.8%
fma-define71.8%
*-commutative71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in c around inf 71.1%
*-commutative71.1%
Simplified71.1%
Final simplification68.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* i t) (* z c)))))
(if (<= i -4.2e+92)
t_1
(if (<= i -3.2e+14)
(* a (- (* c j) (* x t)))
(if (<= i 1.45e-62)
(* c (- (* a j) (* z b)))
(if (<= i 1.06e+168) 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 * ((i * t) - (z * c));
double tmp;
if (i <= -4.2e+92) {
tmp = t_1;
} else if (i <= -3.2e+14) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.45e-62) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 1.06e+168) {
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 * ((i * t) - (z * c))
if (i <= (-4.2d+92)) then
tmp = t_1
else if (i <= (-3.2d+14)) then
tmp = a * ((c * j) - (x * t))
else if (i <= 1.45d-62) then
tmp = c * ((a * j) - (z * b))
else if (i <= 1.06d+168) 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 * ((i * t) - (z * c));
double tmp;
if (i <= -4.2e+92) {
tmp = t_1;
} else if (i <= -3.2e+14) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.45e-62) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 1.06e+168) {
tmp = t_1;
} else {
tmp = i * (y * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((i * t) - (z * c)) tmp = 0 if i <= -4.2e+92: tmp = t_1 elif i <= -3.2e+14: tmp = a * ((c * j) - (x * t)) elif i <= 1.45e-62: tmp = c * ((a * j) - (z * b)) elif i <= 1.06e+168: 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(Float64(i * t) - Float64(z * c))) tmp = 0.0 if (i <= -4.2e+92) tmp = t_1; elseif (i <= -3.2e+14) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 1.45e-62) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 1.06e+168) 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 * ((i * t) - (z * c)); tmp = 0.0; if (i <= -4.2e+92) tmp = t_1; elseif (i <= -3.2e+14) tmp = a * ((c * j) - (x * t)); elseif (i <= 1.45e-62) tmp = c * ((a * j) - (z * b)); elseif (i <= 1.06e+168) 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[(N[(i * t), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.2e+92], t$95$1, If[LessEqual[i, -3.2e+14], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.45e-62], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.06e+168], t$95$1, N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(i \cdot t - z \cdot c\right)\\
\mathbf{if}\;i \leq -4.2 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -3.2 \cdot 10^{+14}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 1.45 \cdot 10^{-62}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 1.06 \cdot 10^{+168}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if i < -4.19999999999999972e92 or 1.44999999999999993e-62 < i < 1.0599999999999999e168Initial program 74.0%
+-commutative74.0%
fma-define74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in x around 0 71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in b around inf 51.0%
*-commutative51.0%
Simplified51.0%
if -4.19999999999999972e92 < i < -3.2e14Initial program 40.3%
+-commutative40.3%
fma-define51.4%
*-commutative51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in a around inf 56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
Simplified56.5%
if -3.2e14 < i < 1.44999999999999993e-62Initial program 71.4%
+-commutative71.4%
fma-define71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in c around inf 69.8%
*-commutative69.8%
Simplified69.8%
if 1.0599999999999999e168 < i Initial program 48.6%
Taylor expanded in i around inf 56.3%
Taylor expanded in y around inf 51.2%
associate-*r*51.2%
neg-mul-151.2%
Simplified51.2%
Final simplification59.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.5e-16) (not (<= t 3e+69))) (- (* t (- (* i b) (* x a))) (* j (- (* y i) (* c a)))) (+ (* (- (* c a) (* y i)) j) (* z (- (* x y) (* c 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 <= -1.5e-16) || !(t <= 3e+69)) {
tmp = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a)));
} else {
tmp = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * 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 <= (-1.5d-16)) .or. (.not. (t <= 3d+69))) then
tmp = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a)))
else
tmp = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * 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 <= -1.5e-16) || !(t <= 3e+69)) {
tmp = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a)));
} else {
tmp = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.5e-16) or not (t <= 3e+69): tmp = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a))) else: tmp = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * b))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.5e-16) || !(t <= 3e+69)) tmp = Float64(Float64(t * Float64(Float64(i * b) - Float64(x * a))) - Float64(j * Float64(Float64(y * i) - Float64(c * a)))); else tmp = Float64(Float64(Float64(Float64(c * a) - Float64(y * i)) * j) + Float64(z * Float64(Float64(x * y) - Float64(c * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -1.5e-16) || ~((t <= 3e+69))) tmp = (t * ((i * b) - (x * a))) - (j * ((y * i) - (c * a))); else tmp = (((c * a) - (y * i)) * j) + (z * ((x * y) - (c * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.5e-16], N[Not[LessEqual[t, 3e+69]], $MachinePrecision]], N[(N[(t * N[(N[(i * b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.5 \cdot 10^{-16} \lor \neg \left(t \leq 3 \cdot 10^{+69}\right):\\
\;\;\;\;t \cdot \left(i \cdot b - x \cdot a\right) - j \cdot \left(y \cdot i - c \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot a - y \cdot i\right) \cdot j + z \cdot \left(x \cdot y - c \cdot b\right)\\
\end{array}
\end{array}
if t < -1.49999999999999997e-16 or 2.99999999999999983e69 < t Initial program 55.8%
Taylor expanded in t around -inf 71.6%
if -1.49999999999999997e-16 < t < 2.99999999999999983e69Initial program 74.8%
Taylor expanded in z around inf 73.5%
*-commutative73.5%
Simplified73.5%
Final simplification72.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* i t))))
(if (<= i -6e+71)
t_1
(if (<= i 1.5e-62)
(* a (* c j))
(if (or (<= i 5.1e+219) (not (<= i 7.8e+285))) t_1 (* x (* z y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (i * t);
double tmp;
if (i <= -6e+71) {
tmp = t_1;
} else if (i <= 1.5e-62) {
tmp = a * (c * j);
} else if ((i <= 5.1e+219) || !(i <= 7.8e+285)) {
tmp = t_1;
} else {
tmp = x * (z * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (i * t)
if (i <= (-6d+71)) then
tmp = t_1
else if (i <= 1.5d-62) then
tmp = a * (c * j)
else if ((i <= 5.1d+219) .or. (.not. (i <= 7.8d+285))) then
tmp = t_1
else
tmp = x * (z * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (i * t);
double tmp;
if (i <= -6e+71) {
tmp = t_1;
} else if (i <= 1.5e-62) {
tmp = a * (c * j);
} else if ((i <= 5.1e+219) || !(i <= 7.8e+285)) {
tmp = t_1;
} else {
tmp = x * (z * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (i * t) tmp = 0 if i <= -6e+71: tmp = t_1 elif i <= 1.5e-62: tmp = a * (c * j) elif (i <= 5.1e+219) or not (i <= 7.8e+285): tmp = t_1 else: tmp = x * (z * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(i * t)) tmp = 0.0 if (i <= -6e+71) tmp = t_1; elseif (i <= 1.5e-62) tmp = Float64(a * Float64(c * j)); elseif ((i <= 5.1e+219) || !(i <= 7.8e+285)) tmp = t_1; else tmp = Float64(x * Float64(z * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (i * t); tmp = 0.0; if (i <= -6e+71) tmp = t_1; elseif (i <= 1.5e-62) tmp = a * (c * j); elseif ((i <= 5.1e+219) || ~((i <= 7.8e+285))) tmp = t_1; else tmp = x * (z * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -6e+71], t$95$1, If[LessEqual[i, 1.5e-62], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[i, 5.1e+219], N[Not[LessEqual[i, 7.8e+285]], $MachinePrecision]], t$95$1, N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(i \cdot t\right)\\
\mathbf{if}\;i \leq -6 \cdot 10^{+71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.5 \cdot 10^{-62}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 5.1 \cdot 10^{+219} \lor \neg \left(i \leq 7.8 \cdot 10^{+285}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z \cdot y\right)\\
\end{array}
\end{array}
if i < -6.00000000000000025e71 or 1.5000000000000001e-62 < i < 5.09999999999999993e219 or 7.7999999999999998e285 < i Initial program 67.8%
Taylor expanded in i around inf 60.0%
Taylor expanded in b around inf 37.9%
if -6.00000000000000025e71 < i < 1.5000000000000001e-62Initial program 67.7%
+-commutative67.7%
fma-define69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in a around inf 46.7%
+-commutative46.7%
mul-1-neg46.7%
unsub-neg46.7%
Simplified46.7%
Taylor expanded in c around inf 34.1%
*-commutative34.1%
Simplified34.1%
if 5.09999999999999993e219 < i < 7.7999999999999998e285Initial program 47.4%
+-commutative47.4%
fma-define47.4%
*-commutative47.4%
*-commutative47.4%
Simplified47.4%
Taylor expanded in y around inf 89.1%
+-commutative89.1%
mul-1-neg89.1%
unsub-neg89.1%
*-commutative89.1%
Simplified89.1%
Taylor expanded in z around inf 47.7%
Final simplification36.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -4.6e-64) (* (- (* c a) (* y i)) j) (if (<= j 4e-85) (* b (- (* i t) (* z c))) (* 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 (j <= -4.6e-64) {
tmp = ((c * a) - (y * i)) * j;
} else if (j <= 4e-85) {
tmp = b * ((i * t) - (z * c));
} 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 (j <= (-4.6d-64)) then
tmp = ((c * a) - (y * i)) * j
else if (j <= 4d-85) then
tmp = b * ((i * t) - (z * c))
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 (j <= -4.6e-64) {
tmp = ((c * a) - (y * i)) * j;
} else if (j <= 4e-85) {
tmp = b * ((i * t) - (z * c));
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -4.6e-64: tmp = ((c * a) - (y * i)) * j elif j <= 4e-85: tmp = b * ((i * t) - (z * c)) else: tmp = c * ((a * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -4.6e-64) tmp = Float64(Float64(Float64(c * a) - Float64(y * i)) * j); elseif (j <= 4e-85) tmp = Float64(b * Float64(Float64(i * t) - Float64(z * c))); 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 (j <= -4.6e-64) tmp = ((c * a) - (y * i)) * j; elseif (j <= 4e-85) tmp = b * ((i * t) - (z * c)); else tmp = c * ((a * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -4.6e-64], N[(N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[j, 4e-85], N[(b * N[(N[(i * t), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.6 \cdot 10^{-64}:\\
\;\;\;\;\left(c \cdot a - y \cdot i\right) \cdot j\\
\mathbf{elif}\;j \leq 4 \cdot 10^{-85}:\\
\;\;\;\;b \cdot \left(i \cdot t - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if j < -4.6000000000000003e-64Initial program 70.8%
+-commutative70.8%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in z around inf 67.5%
Simplified73.0%
Taylor expanded in j around -inf 66.1%
if -4.6000000000000003e-64 < j < 3.9999999999999999e-85Initial program 61.6%
+-commutative61.6%
fma-define61.6%
*-commutative61.6%
*-commutative61.6%
Simplified61.6%
Taylor expanded in x around 0 52.4%
*-commutative52.4%
Simplified52.4%
Taylor expanded in b around inf 53.5%
*-commutative53.5%
Simplified53.5%
if 3.9999999999999999e-85 < j Initial program 67.8%
+-commutative67.8%
fma-define69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in c around inf 56.2%
*-commutative56.2%
Simplified56.2%
Final simplification58.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -4.2e+72) (not (<= i 5.1e-61))) (* b (* i t)) (* 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 ((i <= -4.2e+72) || !(i <= 5.1e-61)) {
tmp = b * (i * t);
} 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 ((i <= (-4.2d+72)) .or. (.not. (i <= 5.1d-61))) then
tmp = b * (i * t)
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 ((i <= -4.2e+72) || !(i <= 5.1e-61)) {
tmp = b * (i * t);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -4.2e+72) or not (i <= 5.1e-61): tmp = b * (i * t) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -4.2e+72) || !(i <= 5.1e-61)) tmp = Float64(b * Float64(i * t)); 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 ((i <= -4.2e+72) || ~((i <= 5.1e-61))) tmp = b * (i * t); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -4.2e+72], N[Not[LessEqual[i, 5.1e-61]], $MachinePrecision]], N[(b * N[(i * t), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -4.2 \cdot 10^{+72} \lor \neg \left(i \leq 5.1 \cdot 10^{-61}\right):\\
\;\;\;\;b \cdot \left(i \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -4.2000000000000003e72 or 5.09999999999999968e-61 < i Initial program 65.5%
Taylor expanded in i around inf 60.1%
Taylor expanded in b around inf 35.4%
if -4.2000000000000003e72 < i < 5.09999999999999968e-61Initial program 67.7%
+-commutative67.7%
fma-define69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in a around inf 46.7%
+-commutative46.7%
mul-1-neg46.7%
unsub-neg46.7%
Simplified46.7%
Taylor expanded in c around inf 34.1%
*-commutative34.1%
Simplified34.1%
Final simplification34.8%
(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 66.6%
+-commutative66.6%
fma-define67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in a around inf 36.1%
+-commutative36.1%
mul-1-neg36.1%
unsub-neg36.1%
Simplified36.1%
Taylor expanded in c around inf 23.8%
*-commutative23.8%
Simplified23.8%
Final simplification23.8%
(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 2024087
(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)))))