
(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 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* 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 (- (* a c) (* y i)))
(t_2
(+
(+ (* b (- (* t i) (* z c))) (* x (- (* y z) (* t a))))
(* j t_1))))
(if (<= t_2 INFINITY) t_2 (fma j 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) - (y * i);
double t_2 = ((b * ((t * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * t_1);
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = fma(j, t_1, (c * (z * -b)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * c) - Float64(y * i)) t_2 = Float64(Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) + Float64(j * t_1)) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = fma(j, t_1, Float64(c * Float64(z * Float64(-b)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(j * t$95$1 + N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot c - y \cdot i\\
t_2 := \left(b \cdot \left(t \cdot i - z \cdot c\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) + j \cdot t\_1\\
\mathbf{if}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, t\_1, c \cdot \left(z \cdot \left(-b\right)\right)\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 90.1%
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-define9.5%
*-commutative9.5%
sub-neg9.5%
*-commutative9.5%
sub-neg9.5%
*-commutative9.5%
*-commutative9.5%
Simplified9.5%
Taylor expanded in c around inf 45.5%
mul-1-neg45.5%
*-commutative45.5%
associate-*l*54.8%
*-commutative54.8%
distribute-rgt-neg-in54.8%
distribute-rgt-neg-in54.8%
Simplified54.8%
Final simplification84.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* b (- (* t i) (* z c))) (* x (- (* y z) (* t a))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY)
t_1
(- (* c (- (* a j) (* i (/ (* y j) c)))) (* z (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((b * ((t * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (c * ((a * j) - (i * ((y * j) / c)))) - (z * (b * c));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((b * ((t * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (c * ((a * j) - (i * ((y * j) / c)))) - (z * (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((b * ((t * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (c * ((a * j) - (i * ((y * j) / c)))) - (z * (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(c * Float64(Float64(a * j) - Float64(i * Float64(Float64(y * j) / c)))) - Float64(z * Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((b * ((t * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (c * ((a * j) - (i * ((y * j) / c)))) - (z * (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(c * N[(N[(a * j), $MachinePrecision] - N[(i * N[(N[(y * j), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot \left(t \cdot i - z \cdot c\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - i \cdot \frac{y \cdot j}{c}\right) - z \cdot \left(b \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 90.1%
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-define9.5%
*-commutative9.5%
sub-neg9.5%
*-commutative9.5%
sub-neg9.5%
*-commutative9.5%
*-commutative9.5%
Simplified9.5%
Taylor expanded in x around -inf 23.8%
mul-1-neg23.8%
distribute-rgt-neg-in23.8%
+-commutative23.8%
mul-1-neg23.8%
unsub-neg23.8%
associate-/l*28.6%
Simplified28.6%
Taylor expanded in x around 0 35.9%
+-commutative35.9%
*-commutative35.9%
sub-neg35.9%
sub-neg35.9%
mul-1-neg35.9%
unsub-neg35.9%
Simplified35.9%
Taylor expanded in c around inf 40.8%
associate-*r*47.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in c around inf 52.4%
+-commutative52.4%
mul-1-neg52.4%
unsub-neg52.4%
*-commutative52.4%
associate-/l*54.8%
Simplified54.8%
Final simplification84.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (* t (- (* b i) (* x a))))
(t_3 (* z (- (* x y) (* b c)))))
(if (<= t -1.05e+142)
t_2
(if (<= t -4.8e+98)
(* y (- (* x z) (* i j)))
(if (<= t -3.8e+63)
t_2
(if (<= t -3.2e+24)
t_1
(if (<= t -2.7e-69)
t_3
(if (<= t -3.8e-168)
(- (* a (* c j)) (* b (* z c)))
(if (<= t -4.4e-291)
t_3
(if (<= t 4.4e-250)
t_1
(if (<= t 1.8e-69)
(- (* (* z c) (- b)) (* i (* y j)))
(if (<= t 1.8e+161)
(* b (- (* t i) (* z c)))
t_2))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t * ((b * i) - (x * a));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (t <= -1.05e+142) {
tmp = t_2;
} else if (t <= -4.8e+98) {
tmp = y * ((x * z) - (i * j));
} else if (t <= -3.8e+63) {
tmp = t_2;
} else if (t <= -3.2e+24) {
tmp = t_1;
} else if (t <= -2.7e-69) {
tmp = t_3;
} else if (t <= -3.8e-168) {
tmp = (a * (c * j)) - (b * (z * c));
} else if (t <= -4.4e-291) {
tmp = t_3;
} else if (t <= 4.4e-250) {
tmp = t_1;
} else if (t <= 1.8e-69) {
tmp = ((z * c) * -b) - (i * (y * j));
} else if (t <= 1.8e+161) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = t * ((b * i) - (x * a))
t_3 = z * ((x * y) - (b * c))
if (t <= (-1.05d+142)) then
tmp = t_2
else if (t <= (-4.8d+98)) then
tmp = y * ((x * z) - (i * j))
else if (t <= (-3.8d+63)) then
tmp = t_2
else if (t <= (-3.2d+24)) then
tmp = t_1
else if (t <= (-2.7d-69)) then
tmp = t_3
else if (t <= (-3.8d-168)) then
tmp = (a * (c * j)) - (b * (z * c))
else if (t <= (-4.4d-291)) then
tmp = t_3
else if (t <= 4.4d-250) then
tmp = t_1
else if (t <= 1.8d-69) then
tmp = ((z * c) * -b) - (i * (y * j))
else if (t <= 1.8d+161) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t * ((b * i) - (x * a));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (t <= -1.05e+142) {
tmp = t_2;
} else if (t <= -4.8e+98) {
tmp = y * ((x * z) - (i * j));
} else if (t <= -3.8e+63) {
tmp = t_2;
} else if (t <= -3.2e+24) {
tmp = t_1;
} else if (t <= -2.7e-69) {
tmp = t_3;
} else if (t <= -3.8e-168) {
tmp = (a * (c * j)) - (b * (z * c));
} else if (t <= -4.4e-291) {
tmp = t_3;
} else if (t <= 4.4e-250) {
tmp = t_1;
} else if (t <= 1.8e-69) {
tmp = ((z * c) * -b) - (i * (y * j));
} else if (t <= 1.8e+161) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = t * ((b * i) - (x * a)) t_3 = z * ((x * y) - (b * c)) tmp = 0 if t <= -1.05e+142: tmp = t_2 elif t <= -4.8e+98: tmp = y * ((x * z) - (i * j)) elif t <= -3.8e+63: tmp = t_2 elif t <= -3.2e+24: tmp = t_1 elif t <= -2.7e-69: tmp = t_3 elif t <= -3.8e-168: tmp = (a * (c * j)) - (b * (z * c)) elif t <= -4.4e-291: tmp = t_3 elif t <= 4.4e-250: tmp = t_1 elif t <= 1.8e-69: tmp = ((z * c) * -b) - (i * (y * j)) elif t <= 1.8e+161: tmp = b * ((t * i) - (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (t <= -1.05e+142) tmp = t_2; elseif (t <= -4.8e+98) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= -3.8e+63) tmp = t_2; elseif (t <= -3.2e+24) tmp = t_1; elseif (t <= -2.7e-69) tmp = t_3; elseif (t <= -3.8e-168) tmp = Float64(Float64(a * Float64(c * j)) - Float64(b * Float64(z * c))); elseif (t <= -4.4e-291) tmp = t_3; elseif (t <= 4.4e-250) tmp = t_1; elseif (t <= 1.8e-69) tmp = Float64(Float64(Float64(z * c) * Float64(-b)) - Float64(i * Float64(y * j))); elseif (t <= 1.8e+161) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = t * ((b * i) - (x * a)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (t <= -1.05e+142) tmp = t_2; elseif (t <= -4.8e+98) tmp = y * ((x * z) - (i * j)); elseif (t <= -3.8e+63) tmp = t_2; elseif (t <= -3.2e+24) tmp = t_1; elseif (t <= -2.7e-69) tmp = t_3; elseif (t <= -3.8e-168) tmp = (a * (c * j)) - (b * (z * c)); elseif (t <= -4.4e-291) tmp = t_3; elseif (t <= 4.4e-250) tmp = t_1; elseif (t <= 1.8e-69) tmp = ((z * c) * -b) - (i * (y * j)); elseif (t <= 1.8e+161) tmp = b * ((t * i) - (z * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e+142], t$95$2, If[LessEqual[t, -4.8e+98], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.8e+63], t$95$2, If[LessEqual[t, -3.2e+24], t$95$1, If[LessEqual[t, -2.7e-69], t$95$3, If[LessEqual[t, -3.8e-168], N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.4e-291], t$95$3, If[LessEqual[t, 4.4e-250], t$95$1, If[LessEqual[t, 1.8e-69], N[(N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e+161], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+142}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -4.8 \cdot 10^{+98}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{+63}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -3.2 \cdot 10^{+24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.7 \cdot 10^{-69}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{-168}:\\
\;\;\;\;a \cdot \left(c \cdot j\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;t \leq -4.4 \cdot 10^{-291}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 4.4 \cdot 10^{-250}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-69}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{+161}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.05e142 or -4.7999999999999997e98 < t < -3.8000000000000001e63 or 1.79999999999999992e161 < t Initial program 71.1%
Taylor expanded in t around inf 81.7%
distribute-lft-out--81.7%
*-commutative81.7%
Simplified81.7%
if -1.05e142 < t < -4.7999999999999997e98Initial program 75.0%
Taylor expanded in y around inf 87.8%
+-commutative87.8%
mul-1-neg87.8%
unsub-neg87.8%
*-commutative87.8%
*-commutative87.8%
Simplified87.8%
if -3.8000000000000001e63 < t < -3.1999999999999997e24 or -4.40000000000000005e-291 < t < 4.4e-250Initial program 76.7%
+-commutative76.7%
fma-define76.7%
*-commutative76.7%
sub-neg76.7%
*-commutative76.7%
sub-neg76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in x around -inf 80.5%
mul-1-neg80.5%
distribute-rgt-neg-in80.5%
+-commutative80.5%
mul-1-neg80.5%
unsub-neg80.5%
associate-/l*76.9%
Simplified76.9%
Taylor expanded in j around inf 78.8%
*-commutative78.8%
sub-neg78.8%
sub-neg78.8%
Simplified78.8%
if -3.1999999999999997e24 < t < -2.6999999999999997e-69 or -3.8e-168 < t < -4.40000000000000005e-291Initial program 79.9%
Taylor expanded in z around inf 66.1%
*-commutative66.1%
*-commutative66.1%
Simplified66.1%
if -2.6999999999999997e-69 < t < -3.8e-168Initial program 84.9%
+-commutative84.9%
fma-define84.9%
*-commutative84.9%
sub-neg84.9%
*-commutative84.9%
sub-neg84.9%
*-commutative84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in x around -inf 76.1%
mul-1-neg76.1%
distribute-rgt-neg-in76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
associate-/l*71.3%
Simplified71.3%
Taylor expanded in x around 0 85.2%
+-commutative85.2%
*-commutative85.2%
sub-neg85.2%
sub-neg85.2%
mul-1-neg85.2%
unsub-neg85.2%
Simplified85.2%
Taylor expanded in i around 0 71.9%
if 4.4e-250 < t < 1.80000000000000009e-69Initial program 75.0%
+-commutative75.0%
fma-define77.1%
*-commutative77.1%
sub-neg77.1%
*-commutative77.1%
sub-neg77.1%
*-commutative77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in x around -inf 73.1%
mul-1-neg73.1%
distribute-rgt-neg-in73.1%
+-commutative73.1%
mul-1-neg73.1%
unsub-neg73.1%
associate-/l*73.1%
Simplified73.1%
Taylor expanded in x around 0 59.0%
+-commutative59.0%
*-commutative59.0%
sub-neg59.0%
sub-neg59.0%
mul-1-neg59.0%
unsub-neg59.0%
Simplified59.0%
Taylor expanded in c around inf 61.2%
associate-*r*65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in a around 0 56.7%
associate-*r*56.7%
neg-mul-156.7%
*-commutative56.7%
Simplified56.7%
if 1.80000000000000009e-69 < t < 1.79999999999999992e161Initial program 70.7%
Taylor expanded in b around inf 64.8%
Final simplification71.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c))))
(t_2 (+ (* j (- (* a c) (* y i))) (* x (* y z))))
(t_3 (* t (- (* b i) (* x a)))))
(if (<= t -7.2e+141)
t_3
(if (<= t -2e+98)
(* y (- (* x z) (* i j)))
(if (<= t -2.85e+64)
t_3
(if (<= t -4.5e+23)
t_2
(if (<= t -3e-73)
t_1
(if (<= t -3.7e-168)
(- (* a (* c j)) (* b (* z c)))
(if (<= t -3.3e-251)
t_1
(if (<= t 5.2e-69)
t_2
(if (<= t 1.55e+161)
(* b (- (* t i) (* z c)))
t_3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = (j * ((a * c) - (y * i))) + (x * (y * z));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -7.2e+141) {
tmp = t_3;
} else if (t <= -2e+98) {
tmp = y * ((x * z) - (i * j));
} else if (t <= -2.85e+64) {
tmp = t_3;
} else if (t <= -4.5e+23) {
tmp = t_2;
} else if (t <= -3e-73) {
tmp = t_1;
} else if (t <= -3.7e-168) {
tmp = (a * (c * j)) - (b * (z * c));
} else if (t <= -3.3e-251) {
tmp = t_1;
} else if (t <= 5.2e-69) {
tmp = t_2;
} else if (t <= 1.55e+161) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
t_2 = (j * ((a * c) - (y * i))) + (x * (y * z))
t_3 = t * ((b * i) - (x * a))
if (t <= (-7.2d+141)) then
tmp = t_3
else if (t <= (-2d+98)) then
tmp = y * ((x * z) - (i * j))
else if (t <= (-2.85d+64)) then
tmp = t_3
else if (t <= (-4.5d+23)) then
tmp = t_2
else if (t <= (-3d-73)) then
tmp = t_1
else if (t <= (-3.7d-168)) then
tmp = (a * (c * j)) - (b * (z * c))
else if (t <= (-3.3d-251)) then
tmp = t_1
else if (t <= 5.2d-69) then
tmp = t_2
else if (t <= 1.55d+161) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = (j * ((a * c) - (y * i))) + (x * (y * z));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -7.2e+141) {
tmp = t_3;
} else if (t <= -2e+98) {
tmp = y * ((x * z) - (i * j));
} else if (t <= -2.85e+64) {
tmp = t_3;
} else if (t <= -4.5e+23) {
tmp = t_2;
} else if (t <= -3e-73) {
tmp = t_1;
} else if (t <= -3.7e-168) {
tmp = (a * (c * j)) - (b * (z * c));
} else if (t <= -3.3e-251) {
tmp = t_1;
} else if (t <= 5.2e-69) {
tmp = t_2;
} else if (t <= 1.55e+161) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = (j * ((a * c) - (y * i))) + (x * (y * z)) t_3 = t * ((b * i) - (x * a)) tmp = 0 if t <= -7.2e+141: tmp = t_3 elif t <= -2e+98: tmp = y * ((x * z) - (i * j)) elif t <= -2.85e+64: tmp = t_3 elif t <= -4.5e+23: tmp = t_2 elif t <= -3e-73: tmp = t_1 elif t <= -3.7e-168: tmp = (a * (c * j)) - (b * (z * c)) elif t <= -3.3e-251: tmp = t_1 elif t <= 5.2e-69: tmp = t_2 elif t <= 1.55e+161: tmp = b * ((t * i) - (z * c)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(y * z))) t_3 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -7.2e+141) tmp = t_3; elseif (t <= -2e+98) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= -2.85e+64) tmp = t_3; elseif (t <= -4.5e+23) tmp = t_2; elseif (t <= -3e-73) tmp = t_1; elseif (t <= -3.7e-168) tmp = Float64(Float64(a * Float64(c * j)) - Float64(b * Float64(z * c))); elseif (t <= -3.3e-251) tmp = t_1; elseif (t <= 5.2e-69) tmp = t_2; elseif (t <= 1.55e+161) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = (j * ((a * c) - (y * i))) + (x * (y * z)); t_3 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -7.2e+141) tmp = t_3; elseif (t <= -2e+98) tmp = y * ((x * z) - (i * j)); elseif (t <= -2.85e+64) tmp = t_3; elseif (t <= -4.5e+23) tmp = t_2; elseif (t <= -3e-73) tmp = t_1; elseif (t <= -3.7e-168) tmp = (a * (c * j)) - (b * (z * c)); elseif (t <= -3.3e-251) tmp = t_1; elseif (t <= 5.2e-69) tmp = t_2; elseif (t <= 1.55e+161) tmp = b * ((t * i) - (z * c)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+141], t$95$3, If[LessEqual[t, -2e+98], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.85e+64], t$95$3, If[LessEqual[t, -4.5e+23], t$95$2, If[LessEqual[t, -3e-73], t$95$1, If[LessEqual[t, -3.7e-168], N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.3e-251], t$95$1, If[LessEqual[t, 5.2e-69], t$95$2, If[LessEqual[t, 1.55e+161], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
t_3 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+141}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -2 \cdot 10^{+98}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq -2.85 \cdot 10^{+64}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -4.5 \cdot 10^{+23}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -3 \cdot 10^{-73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.7 \cdot 10^{-168}:\\
\;\;\;\;a \cdot \left(c \cdot j\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;t \leq -3.3 \cdot 10^{-251}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{-69}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{+161}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if t < -7.2000000000000003e141 or -2e98 < t < -2.85000000000000008e64 or 1.55000000000000003e161 < t Initial program 71.1%
Taylor expanded in t around inf 81.7%
distribute-lft-out--81.7%
*-commutative81.7%
Simplified81.7%
if -7.2000000000000003e141 < t < -2e98Initial program 75.0%
Taylor expanded in y around inf 87.8%
+-commutative87.8%
mul-1-neg87.8%
unsub-neg87.8%
*-commutative87.8%
*-commutative87.8%
Simplified87.8%
if -2.85000000000000008e64 < t < -4.49999999999999979e23 or -3.3e-251 < t < 5.2000000000000004e-69Initial program 77.7%
Taylor expanded in b around 0 70.5%
Taylor expanded in t around 0 67.5%
if -4.49999999999999979e23 < t < -3e-73 or -3.69999999999999997e-168 < t < -3.3e-251Initial program 76.6%
Taylor expanded in z around inf 65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
if -3e-73 < t < -3.69999999999999997e-168Initial program 84.9%
+-commutative84.9%
fma-define84.9%
*-commutative84.9%
sub-neg84.9%
*-commutative84.9%
sub-neg84.9%
*-commutative84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in x around -inf 76.1%
mul-1-neg76.1%
distribute-rgt-neg-in76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
associate-/l*71.3%
Simplified71.3%
Taylor expanded in x around 0 85.2%
+-commutative85.2%
*-commutative85.2%
sub-neg85.2%
sub-neg85.2%
mul-1-neg85.2%
unsub-neg85.2%
Simplified85.2%
Taylor expanded in i around 0 71.9%
if 5.2000000000000004e-69 < t < 1.55000000000000003e161Initial program 70.7%
Taylor expanded in b around inf 64.8%
Final simplification71.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (* t (- (* b i) (* x a))))
(t_3 (* z (- (* x y) (* b c)))))
(if (<= t -8.8e+141)
t_2
(if (<= t -4.8e+98)
(* y (- (* x z) (* i j)))
(if (<= t -1.75e+62)
t_2
(if (<= t -8.6e+23)
t_1
(if (<= t -2.15e-72)
t_3
(if (<= t -3.8e-168)
(- (* a (* c j)) (* b (* z c)))
(if (<= t -3e-275)
t_3
(if (<= t 1.2e-69)
t_1
(if (<= t 1.3e+153) (* b (- (* t i) (* z c))) t_2)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t * ((b * i) - (x * a));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (t <= -8.8e+141) {
tmp = t_2;
} else if (t <= -4.8e+98) {
tmp = y * ((x * z) - (i * j));
} else if (t <= -1.75e+62) {
tmp = t_2;
} else if (t <= -8.6e+23) {
tmp = t_1;
} else if (t <= -2.15e-72) {
tmp = t_3;
} else if (t <= -3.8e-168) {
tmp = (a * (c * j)) - (b * (z * c));
} else if (t <= -3e-275) {
tmp = t_3;
} else if (t <= 1.2e-69) {
tmp = t_1;
} else if (t <= 1.3e+153) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = t * ((b * i) - (x * a))
t_3 = z * ((x * y) - (b * c))
if (t <= (-8.8d+141)) then
tmp = t_2
else if (t <= (-4.8d+98)) then
tmp = y * ((x * z) - (i * j))
else if (t <= (-1.75d+62)) then
tmp = t_2
else if (t <= (-8.6d+23)) then
tmp = t_1
else if (t <= (-2.15d-72)) then
tmp = t_3
else if (t <= (-3.8d-168)) then
tmp = (a * (c * j)) - (b * (z * c))
else if (t <= (-3d-275)) then
tmp = t_3
else if (t <= 1.2d-69) then
tmp = t_1
else if (t <= 1.3d+153) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t * ((b * i) - (x * a));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (t <= -8.8e+141) {
tmp = t_2;
} else if (t <= -4.8e+98) {
tmp = y * ((x * z) - (i * j));
} else if (t <= -1.75e+62) {
tmp = t_2;
} else if (t <= -8.6e+23) {
tmp = t_1;
} else if (t <= -2.15e-72) {
tmp = t_3;
} else if (t <= -3.8e-168) {
tmp = (a * (c * j)) - (b * (z * c));
} else if (t <= -3e-275) {
tmp = t_3;
} else if (t <= 1.2e-69) {
tmp = t_1;
} else if (t <= 1.3e+153) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = t * ((b * i) - (x * a)) t_3 = z * ((x * y) - (b * c)) tmp = 0 if t <= -8.8e+141: tmp = t_2 elif t <= -4.8e+98: tmp = y * ((x * z) - (i * j)) elif t <= -1.75e+62: tmp = t_2 elif t <= -8.6e+23: tmp = t_1 elif t <= -2.15e-72: tmp = t_3 elif t <= -3.8e-168: tmp = (a * (c * j)) - (b * (z * c)) elif t <= -3e-275: tmp = t_3 elif t <= 1.2e-69: tmp = t_1 elif t <= 1.3e+153: tmp = b * ((t * i) - (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (t <= -8.8e+141) tmp = t_2; elseif (t <= -4.8e+98) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= -1.75e+62) tmp = t_2; elseif (t <= -8.6e+23) tmp = t_1; elseif (t <= -2.15e-72) tmp = t_3; elseif (t <= -3.8e-168) tmp = Float64(Float64(a * Float64(c * j)) - Float64(b * Float64(z * c))); elseif (t <= -3e-275) tmp = t_3; elseif (t <= 1.2e-69) tmp = t_1; elseif (t <= 1.3e+153) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = t * ((b * i) - (x * a)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (t <= -8.8e+141) tmp = t_2; elseif (t <= -4.8e+98) tmp = y * ((x * z) - (i * j)); elseif (t <= -1.75e+62) tmp = t_2; elseif (t <= -8.6e+23) tmp = t_1; elseif (t <= -2.15e-72) tmp = t_3; elseif (t <= -3.8e-168) tmp = (a * (c * j)) - (b * (z * c)); elseif (t <= -3e-275) tmp = t_3; elseif (t <= 1.2e-69) tmp = t_1; elseif (t <= 1.3e+153) tmp = b * ((t * i) - (z * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.8e+141], t$95$2, If[LessEqual[t, -4.8e+98], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.75e+62], t$95$2, If[LessEqual[t, -8.6e+23], t$95$1, If[LessEqual[t, -2.15e-72], t$95$3, If[LessEqual[t, -3.8e-168], N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3e-275], t$95$3, If[LessEqual[t, 1.2e-69], t$95$1, If[LessEqual[t, 1.3e+153], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;t \leq -8.8 \cdot 10^{+141}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -4.8 \cdot 10^{+98}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq -1.75 \cdot 10^{+62}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -8.6 \cdot 10^{+23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.15 \cdot 10^{-72}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{-168}:\\
\;\;\;\;a \cdot \left(c \cdot j\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;t \leq -3 \cdot 10^{-275}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-69}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+153}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -8.8e141 or -4.7999999999999997e98 < t < -1.74999999999999992e62 or 1.2999999999999999e153 < t Initial program 71.1%
Taylor expanded in t around inf 81.7%
distribute-lft-out--81.7%
*-commutative81.7%
Simplified81.7%
if -8.8e141 < t < -4.7999999999999997e98Initial program 75.0%
Taylor expanded in y around inf 87.8%
+-commutative87.8%
mul-1-neg87.8%
unsub-neg87.8%
*-commutative87.8%
*-commutative87.8%
Simplified87.8%
if -1.74999999999999992e62 < t < -8.5999999999999997e23 or -3e-275 < t < 1.2000000000000001e-69Initial program 75.6%
+-commutative75.6%
fma-define77.0%
*-commutative77.0%
sub-neg77.0%
*-commutative77.0%
sub-neg77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in x around -inf 75.8%
mul-1-neg75.8%
distribute-rgt-neg-in75.8%
+-commutative75.8%
mul-1-neg75.8%
unsub-neg75.8%
associate-/l*74.4%
Simplified74.4%
Taylor expanded in j around inf 57.8%
*-commutative57.8%
sub-neg57.8%
sub-neg57.8%
Simplified57.8%
if -8.5999999999999997e23 < t < -2.1499999999999999e-72 or -3.8e-168 < t < -3e-275Initial program 79.9%
Taylor expanded in z around inf 66.1%
*-commutative66.1%
*-commutative66.1%
Simplified66.1%
if -2.1499999999999999e-72 < t < -3.8e-168Initial program 84.9%
+-commutative84.9%
fma-define84.9%
*-commutative84.9%
sub-neg84.9%
*-commutative84.9%
sub-neg84.9%
*-commutative84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in x around -inf 76.1%
mul-1-neg76.1%
distribute-rgt-neg-in76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
associate-/l*71.3%
Simplified71.3%
Taylor expanded in x around 0 85.2%
+-commutative85.2%
*-commutative85.2%
sub-neg85.2%
sub-neg85.2%
mul-1-neg85.2%
unsub-neg85.2%
Simplified85.2%
Taylor expanded in i around 0 71.9%
if 1.2000000000000001e-69 < t < 1.2999999999999999e153Initial program 70.7%
Taylor expanded in b around inf 64.8%
Final simplification69.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* z (* b (- c)))) (t_3 (* x (* y z))))
(if (<= y -5.9e+82)
t_3
(if (<= y -2.4e-127)
t_1
(if (<= y 7e-303)
(* i (* t b))
(if (<= y 6.7e-251)
t_1
(if (<= y 2.3e-96)
t_2
(if (<= y 1.12e-10)
(* b (* t i))
(if (<= y 1.15e+46)
t_2
(if (<= y 8.2e+158) t_3 (* (* y j) (- i))))))))))))
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 = z * (b * -c);
double t_3 = x * (y * z);
double tmp;
if (y <= -5.9e+82) {
tmp = t_3;
} else if (y <= -2.4e-127) {
tmp = t_1;
} else if (y <= 7e-303) {
tmp = i * (t * b);
} else if (y <= 6.7e-251) {
tmp = t_1;
} else if (y <= 2.3e-96) {
tmp = t_2;
} else if (y <= 1.12e-10) {
tmp = b * (t * i);
} else if (y <= 1.15e+46) {
tmp = t_2;
} else if (y <= 8.2e+158) {
tmp = t_3;
} else {
tmp = (y * j) * -i;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * (c * j)
t_2 = z * (b * -c)
t_3 = x * (y * z)
if (y <= (-5.9d+82)) then
tmp = t_3
else if (y <= (-2.4d-127)) then
tmp = t_1
else if (y <= 7d-303) then
tmp = i * (t * b)
else if (y <= 6.7d-251) then
tmp = t_1
else if (y <= 2.3d-96) then
tmp = t_2
else if (y <= 1.12d-10) then
tmp = b * (t * i)
else if (y <= 1.15d+46) then
tmp = t_2
else if (y <= 8.2d+158) then
tmp = t_3
else
tmp = (y * j) * -i
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = z * (b * -c);
double t_3 = x * (y * z);
double tmp;
if (y <= -5.9e+82) {
tmp = t_3;
} else if (y <= -2.4e-127) {
tmp = t_1;
} else if (y <= 7e-303) {
tmp = i * (t * b);
} else if (y <= 6.7e-251) {
tmp = t_1;
} else if (y <= 2.3e-96) {
tmp = t_2;
} else if (y <= 1.12e-10) {
tmp = b * (t * i);
} else if (y <= 1.15e+46) {
tmp = t_2;
} else if (y <= 8.2e+158) {
tmp = t_3;
} else {
tmp = (y * j) * -i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = z * (b * -c) t_3 = x * (y * z) tmp = 0 if y <= -5.9e+82: tmp = t_3 elif y <= -2.4e-127: tmp = t_1 elif y <= 7e-303: tmp = i * (t * b) elif y <= 6.7e-251: tmp = t_1 elif y <= 2.3e-96: tmp = t_2 elif y <= 1.12e-10: tmp = b * (t * i) elif y <= 1.15e+46: tmp = t_2 elif y <= 8.2e+158: tmp = t_3 else: tmp = (y * j) * -i return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(z * Float64(b * Float64(-c))) t_3 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -5.9e+82) tmp = t_3; elseif (y <= -2.4e-127) tmp = t_1; elseif (y <= 7e-303) tmp = Float64(i * Float64(t * b)); elseif (y <= 6.7e-251) tmp = t_1; elseif (y <= 2.3e-96) tmp = t_2; elseif (y <= 1.12e-10) tmp = Float64(b * Float64(t * i)); elseif (y <= 1.15e+46) tmp = t_2; elseif (y <= 8.2e+158) tmp = t_3; else tmp = Float64(Float64(y * j) * Float64(-i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = z * (b * -c); t_3 = x * (y * z); tmp = 0.0; if (y <= -5.9e+82) tmp = t_3; elseif (y <= -2.4e-127) tmp = t_1; elseif (y <= 7e-303) tmp = i * (t * b); elseif (y <= 6.7e-251) tmp = t_1; elseif (y <= 2.3e-96) tmp = t_2; elseif (y <= 1.12e-10) tmp = b * (t * i); elseif (y <= 1.15e+46) tmp = t_2; elseif (y <= 8.2e+158) tmp = t_3; else tmp = (y * j) * -i; 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[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.9e+82], t$95$3, If[LessEqual[y, -2.4e-127], t$95$1, If[LessEqual[y, 7e-303], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.7e-251], t$95$1, If[LessEqual[y, 2.3e-96], t$95$2, If[LessEqual[y, 1.12e-10], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.15e+46], t$95$2, If[LessEqual[y, 8.2e+158], t$95$3, N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := z \cdot \left(b \cdot \left(-c\right)\right)\\
t_3 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -5.9 \cdot 10^{+82}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -2.4 \cdot 10^{-127}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-303}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 6.7 \cdot 10^{-251}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-96}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.12 \cdot 10^{-10}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{+46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{+158}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\end{array}
\end{array}
if y < -5.8999999999999997e82 or 1.15e46 < y < 8.20000000000000008e158Initial program 68.7%
Taylor expanded in z around inf 59.4%
*-commutative59.4%
*-commutative59.4%
Simplified59.4%
Taylor expanded in y around 0 51.0%
Taylor expanded in b around 0 45.4%
if -5.8999999999999997e82 < y < -2.39999999999999982e-127 or 7e-303 < y < 6.69999999999999977e-251Initial program 75.4%
Taylor expanded in a around inf 57.8%
+-commutative57.8%
mul-1-neg57.8%
unsub-neg57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in j around inf 44.6%
if -2.39999999999999982e-127 < y < 7e-303Initial program 79.8%
+-commutative79.8%
fma-define84.8%
*-commutative84.8%
sub-neg84.8%
*-commutative84.8%
sub-neg84.8%
*-commutative84.8%
*-commutative84.8%
Simplified84.8%
Taylor expanded in x around -inf 85.1%
mul-1-neg85.1%
distribute-rgt-neg-in85.1%
+-commutative85.1%
mul-1-neg85.1%
unsub-neg85.1%
associate-/l*82.7%
Simplified82.7%
Taylor expanded in i around inf 60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in b around inf 57.7%
if 6.69999999999999977e-251 < y < 2.3e-96 or 1.12e-10 < y < 1.15e46Initial program 78.5%
Taylor expanded in z around inf 51.5%
*-commutative51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in y around 0 40.4%
neg-mul-140.4%
distribute-rgt-neg-in40.4%
Simplified40.4%
if 2.3e-96 < y < 1.12e-10Initial program 78.1%
+-commutative78.1%
fma-define78.1%
*-commutative78.1%
sub-neg78.1%
*-commutative78.1%
sub-neg78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in x around -inf 78.6%
mul-1-neg78.6%
distribute-rgt-neg-in78.6%
+-commutative78.6%
mul-1-neg78.6%
unsub-neg78.6%
associate-/l*74.3%
Simplified74.3%
Taylor expanded in x around 0 72.5%
+-commutative72.5%
*-commutative72.5%
sub-neg72.5%
sub-neg72.5%
mul-1-neg72.5%
unsub-neg72.5%
Simplified72.5%
Taylor expanded in t around inf 40.7%
if 8.20000000000000008e158 < y Initial program 74.9%
+-commutative74.9%
fma-define74.9%
*-commutative74.9%
sub-neg74.9%
*-commutative74.9%
sub-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in x around -inf 71.6%
mul-1-neg71.6%
distribute-rgt-neg-in71.6%
+-commutative71.6%
mul-1-neg71.6%
unsub-neg71.6%
associate-/l*68.1%
Simplified68.1%
Taylor expanded in i around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in b around 0 65.6%
neg-mul-165.6%
distribute-lft-neg-in65.6%
Simplified65.6%
Final simplification48.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* j (- (* a c) (* y i))) (* z (* b c)))))
(if (<= z -1.15e+119)
(* z (- (* x y) (* b c)))
(if (<= z -2.2e-60)
t_1
(if (<= z -2.56e-135)
(* (* x a) (- (* j (/ c x)) t))
(if (<= z 2.45e-255)
(* i (- (* t b) (* y j)))
(if (<= z 5e-157)
(- (* x (- (* y z) (* t a))) (* i (* y j)))
(if (<= z 6.5e-50) (* t (- (* b i) (* x a))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - (z * (b * c));
double tmp;
if (z <= -1.15e+119) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -2.2e-60) {
tmp = t_1;
} else if (z <= -2.56e-135) {
tmp = (x * a) * ((j * (c / x)) - t);
} else if (z <= 2.45e-255) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 5e-157) {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
} else if (z <= 6.5e-50) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (j * ((a * c) - (y * i))) - (z * (b * c))
if (z <= (-1.15d+119)) then
tmp = z * ((x * y) - (b * c))
else if (z <= (-2.2d-60)) then
tmp = t_1
else if (z <= (-2.56d-135)) then
tmp = (x * a) * ((j * (c / x)) - t)
else if (z <= 2.45d-255) then
tmp = i * ((t * b) - (y * j))
else if (z <= 5d-157) then
tmp = (x * ((y * z) - (t * a))) - (i * (y * j))
else if (z <= 6.5d-50) then
tmp = t * ((b * i) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - (z * (b * c));
double tmp;
if (z <= -1.15e+119) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -2.2e-60) {
tmp = t_1;
} else if (z <= -2.56e-135) {
tmp = (x * a) * ((j * (c / x)) - t);
} else if (z <= 2.45e-255) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 5e-157) {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
} else if (z <= 6.5e-50) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) - (z * (b * c)) tmp = 0 if z <= -1.15e+119: tmp = z * ((x * y) - (b * c)) elif z <= -2.2e-60: tmp = t_1 elif z <= -2.56e-135: tmp = (x * a) * ((j * (c / x)) - t) elif z <= 2.45e-255: tmp = i * ((t * b) - (y * j)) elif z <= 5e-157: tmp = (x * ((y * z) - (t * a))) - (i * (y * j)) elif z <= 6.5e-50: tmp = t * ((b * i) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(z * Float64(b * c))) tmp = 0.0 if (z <= -1.15e+119) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (z <= -2.2e-60) tmp = t_1; elseif (z <= -2.56e-135) tmp = Float64(Float64(x * a) * Float64(Float64(j * Float64(c / x)) - t)); elseif (z <= 2.45e-255) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (z <= 5e-157) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(i * Float64(y * j))); elseif (z <= 6.5e-50) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) - (z * (b * c)); tmp = 0.0; if (z <= -1.15e+119) tmp = z * ((x * y) - (b * c)); elseif (z <= -2.2e-60) tmp = t_1; elseif (z <= -2.56e-135) tmp = (x * a) * ((j * (c / x)) - t); elseif (z <= 2.45e-255) tmp = i * ((t * b) - (y * j)); elseif (z <= 5e-157) tmp = (x * ((y * z) - (t * a))) - (i * (y * j)); elseif (z <= 6.5e-50) tmp = t * ((b * i) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.15e+119], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.2e-60], t$95$1, If[LessEqual[z, -2.56e-135], N[(N[(x * a), $MachinePrecision] * N[(N[(j * N[(c / x), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.45e-255], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e-157], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e-50], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{if}\;z \leq -1.15 \cdot 10^{+119}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{-60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.56 \cdot 10^{-135}:\\
\;\;\;\;\left(x \cdot a\right) \cdot \left(j \cdot \frac{c}{x} - t\right)\\
\mathbf{elif}\;z \leq 2.45 \cdot 10^{-255}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-157}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-50}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.15e119Initial program 67.9%
Taylor expanded in z around inf 75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
if -1.15e119 < z < -2.1999999999999999e-60 or 6.49999999999999987e-50 < z Initial program 72.9%
+-commutative72.9%
fma-define72.9%
*-commutative72.9%
sub-neg72.9%
*-commutative72.9%
sub-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in x around -inf 69.7%
mul-1-neg69.7%
distribute-rgt-neg-in69.7%
+-commutative69.7%
mul-1-neg69.7%
unsub-neg69.7%
associate-/l*68.9%
Simplified68.9%
Taylor expanded in x around 0 68.5%
+-commutative68.5%
*-commutative68.5%
sub-neg68.5%
sub-neg68.5%
mul-1-neg68.5%
unsub-neg68.5%
Simplified68.5%
Taylor expanded in c around inf 63.8%
associate-*r*68.9%
*-commutative68.9%
Simplified68.9%
if -2.1999999999999999e-60 < z < -2.55999999999999994e-135Initial program 84.3%
Taylor expanded in a around inf 68.0%
+-commutative68.0%
mul-1-neg68.0%
unsub-neg68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in x around inf 60.5%
associate-/l*60.5%
Simplified60.5%
Taylor expanded in a around 0 60.5%
associate-*r*68.0%
*-commutative68.0%
associate-/l*68.0%
Simplified68.0%
if -2.55999999999999994e-135 < z < 2.4499999999999998e-255Initial program 83.9%
+-commutative83.9%
fma-define88.4%
*-commutative88.4%
sub-neg88.4%
*-commutative88.4%
sub-neg88.4%
*-commutative88.4%
*-commutative88.4%
Simplified88.4%
Taylor expanded in x around -inf 90.6%
mul-1-neg90.6%
distribute-rgt-neg-in90.6%
+-commutative90.6%
mul-1-neg90.6%
unsub-neg90.6%
associate-/l*90.6%
Simplified90.6%
Taylor expanded in i around inf 65.7%
+-commutative65.7%
mul-1-neg65.7%
unsub-neg65.7%
*-commutative65.7%
Simplified65.7%
if 2.4499999999999998e-255 < z < 5.0000000000000002e-157Initial program 70.8%
Taylor expanded in b around 0 76.0%
Taylor expanded in c around 0 80.3%
+-commutative80.3%
sub-neg80.3%
*-commutative80.3%
*-commutative80.3%
sub-neg80.3%
mul-1-neg80.3%
unsub-neg80.3%
*-commutative80.3%
Simplified80.3%
if 5.0000000000000002e-157 < z < 6.49999999999999987e-50Initial program 81.4%
Taylor expanded in t around inf 74.6%
distribute-lft-out--74.6%
*-commutative74.6%
Simplified74.6%
Final simplification70.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* a (- (* c j) (* x t))))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= y -5.4e+60)
t_1
(if (<= y -0.00012)
t_2
(if (<= y -6.5e-34)
t_1
(if (<= y -6.8e-141)
t_2
(if (<= y 4.5e-303)
t_3
(if (<= y 5.8e-226)
(* c (- (* a j) (* z b)))
(if (<= y 4.2e-16) 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 = y * ((x * z) - (i * j));
double t_2 = a * ((c * j) - (x * t));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (y <= -5.4e+60) {
tmp = t_1;
} else if (y <= -0.00012) {
tmp = t_2;
} else if (y <= -6.5e-34) {
tmp = t_1;
} else if (y <= -6.8e-141) {
tmp = t_2;
} else if (y <= 4.5e-303) {
tmp = t_3;
} else if (y <= 5.8e-226) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 4.2e-16) {
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 = y * ((x * z) - (i * j))
t_2 = a * ((c * j) - (x * t))
t_3 = b * ((t * i) - (z * c))
if (y <= (-5.4d+60)) then
tmp = t_1
else if (y <= (-0.00012d0)) then
tmp = t_2
else if (y <= (-6.5d-34)) then
tmp = t_1
else if (y <= (-6.8d-141)) then
tmp = t_2
else if (y <= 4.5d-303) then
tmp = t_3
else if (y <= 5.8d-226) then
tmp = c * ((a * j) - (z * b))
else if (y <= 4.2d-16) 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 = y * ((x * z) - (i * j));
double t_2 = a * ((c * j) - (x * t));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (y <= -5.4e+60) {
tmp = t_1;
} else if (y <= -0.00012) {
tmp = t_2;
} else if (y <= -6.5e-34) {
tmp = t_1;
} else if (y <= -6.8e-141) {
tmp = t_2;
} else if (y <= 4.5e-303) {
tmp = t_3;
} else if (y <= 5.8e-226) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 4.2e-16) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = a * ((c * j) - (x * t)) t_3 = b * ((t * i) - (z * c)) tmp = 0 if y <= -5.4e+60: tmp = t_1 elif y <= -0.00012: tmp = t_2 elif y <= -6.5e-34: tmp = t_1 elif y <= -6.8e-141: tmp = t_2 elif y <= 4.5e-303: tmp = t_3 elif y <= 5.8e-226: tmp = c * ((a * j) - (z * b)) elif y <= 4.2e-16: tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (y <= -5.4e+60) tmp = t_1; elseif (y <= -0.00012) tmp = t_2; elseif (y <= -6.5e-34) tmp = t_1; elseif (y <= -6.8e-141) tmp = t_2; elseif (y <= 4.5e-303) tmp = t_3; elseif (y <= 5.8e-226) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 4.2e-16) 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 = y * ((x * z) - (i * j)); t_2 = a * ((c * j) - (x * t)); t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (y <= -5.4e+60) tmp = t_1; elseif (y <= -0.00012) tmp = t_2; elseif (y <= -6.5e-34) tmp = t_1; elseif (y <= -6.8e-141) tmp = t_2; elseif (y <= 4.5e-303) tmp = t_3; elseif (y <= 5.8e-226) tmp = c * ((a * j) - (z * b)); elseif (y <= 4.2e-16) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.4e+60], t$95$1, If[LessEqual[y, -0.00012], t$95$2, If[LessEqual[y, -6.5e-34], t$95$1, If[LessEqual[y, -6.8e-141], t$95$2, If[LessEqual[y, 4.5e-303], t$95$3, If[LessEqual[y, 5.8e-226], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e-16], t$95$3, t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;y \leq -5.4 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -0.00012:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -6.5 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -6.8 \cdot 10^{-141}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{-303}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{-226}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-16}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.3999999999999999e60 or -1.20000000000000003e-4 < y < -6.49999999999999985e-34 or 4.2000000000000002e-16 < y Initial program 74.8%
Taylor expanded in y around inf 66.4%
+-commutative66.4%
mul-1-neg66.4%
unsub-neg66.4%
*-commutative66.4%
*-commutative66.4%
Simplified66.4%
if -5.3999999999999999e60 < y < -1.20000000000000003e-4 or -6.49999999999999985e-34 < y < -6.7999999999999997e-141Initial program 70.0%
Taylor expanded in a around inf 62.2%
+-commutative62.2%
mul-1-neg62.2%
unsub-neg62.2%
*-commutative62.2%
Simplified62.2%
if -6.7999999999999997e-141 < y < 4.5000000000000001e-303 or 5.80000000000000003e-226 < y < 4.2000000000000002e-16Initial program 79.5%
Taylor expanded in b around inf 60.6%
if 4.5000000000000001e-303 < y < 5.80000000000000003e-226Initial program 67.0%
Taylor expanded in c around inf 83.7%
*-commutative83.7%
Simplified83.7%
Final simplification64.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= y -4.5e+60)
t_1
(if (<= y -0.0116)
(* a (- (* c j) (* x t)))
(if (<= y -7e-34)
t_1
(if (<= y -4.2e-137)
(* a (* x (- (* c (/ j x)) t)))
(if (<= y 2.55e-303)
t_2
(if (<= y 1.7e-225)
(* c (- (* a j) (* z b)))
(if (<= y 4.8e-12) t_2 t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (y <= -4.5e+60) {
tmp = t_1;
} else if (y <= -0.0116) {
tmp = a * ((c * j) - (x * t));
} else if (y <= -7e-34) {
tmp = t_1;
} else if (y <= -4.2e-137) {
tmp = a * (x * ((c * (j / x)) - t));
} else if (y <= 2.55e-303) {
tmp = t_2;
} else if (y <= 1.7e-225) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 4.8e-12) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = b * ((t * i) - (z * c))
if (y <= (-4.5d+60)) then
tmp = t_1
else if (y <= (-0.0116d0)) then
tmp = a * ((c * j) - (x * t))
else if (y <= (-7d-34)) then
tmp = t_1
else if (y <= (-4.2d-137)) then
tmp = a * (x * ((c * (j / x)) - t))
else if (y <= 2.55d-303) then
tmp = t_2
else if (y <= 1.7d-225) then
tmp = c * ((a * j) - (z * b))
else if (y <= 4.8d-12) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (y <= -4.5e+60) {
tmp = t_1;
} else if (y <= -0.0116) {
tmp = a * ((c * j) - (x * t));
} else if (y <= -7e-34) {
tmp = t_1;
} else if (y <= -4.2e-137) {
tmp = a * (x * ((c * (j / x)) - t));
} else if (y <= 2.55e-303) {
tmp = t_2;
} else if (y <= 1.7e-225) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 4.8e-12) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if y <= -4.5e+60: tmp = t_1 elif y <= -0.0116: tmp = a * ((c * j) - (x * t)) elif y <= -7e-34: tmp = t_1 elif y <= -4.2e-137: tmp = a * (x * ((c * (j / x)) - t)) elif y <= 2.55e-303: tmp = t_2 elif y <= 1.7e-225: tmp = c * ((a * j) - (z * b)) elif y <= 4.8e-12: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (y <= -4.5e+60) tmp = t_1; elseif (y <= -0.0116) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (y <= -7e-34) tmp = t_1; elseif (y <= -4.2e-137) tmp = Float64(a * Float64(x * Float64(Float64(c * Float64(j / x)) - t))); elseif (y <= 2.55e-303) tmp = t_2; elseif (y <= 1.7e-225) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 4.8e-12) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (y <= -4.5e+60) tmp = t_1; elseif (y <= -0.0116) tmp = a * ((c * j) - (x * t)); elseif (y <= -7e-34) tmp = t_1; elseif (y <= -4.2e-137) tmp = a * (x * ((c * (j / x)) - t)); elseif (y <= 2.55e-303) tmp = t_2; elseif (y <= 1.7e-225) tmp = c * ((a * j) - (z * b)); elseif (y <= 4.8e-12) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.5e+60], t$95$1, If[LessEqual[y, -0.0116], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7e-34], t$95$1, If[LessEqual[y, -4.2e-137], N[(a * N[(x * N[(N[(c * N[(j / x), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.55e-303], t$95$2, If[LessEqual[y, 1.7e-225], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e-12], t$95$2, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;y \leq -4.5 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -0.0116:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq -7 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4.2 \cdot 10^{-137}:\\
\;\;\;\;a \cdot \left(x \cdot \left(c \cdot \frac{j}{x} - t\right)\right)\\
\mathbf{elif}\;y \leq 2.55 \cdot 10^{-303}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-225}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-12}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.50000000000000013e60 or -0.0116 < y < -7e-34 or 4.79999999999999974e-12 < y Initial program 74.8%
Taylor expanded in y around inf 66.4%
+-commutative66.4%
mul-1-neg66.4%
unsub-neg66.4%
*-commutative66.4%
*-commutative66.4%
Simplified66.4%
if -4.50000000000000013e60 < y < -0.0116Initial program 83.2%
Taylor expanded in a around inf 75.9%
+-commutative75.9%
mul-1-neg75.9%
unsub-neg75.9%
*-commutative75.9%
Simplified75.9%
if -7e-34 < y < -4.19999999999999983e-137Initial program 63.4%
Taylor expanded in a around inf 55.3%
+-commutative55.3%
mul-1-neg55.3%
unsub-neg55.3%
*-commutative55.3%
Simplified55.3%
Taylor expanded in x around inf 59.9%
associate-/l*56.1%
Simplified56.1%
if -4.19999999999999983e-137 < y < 2.55e-303 or 1.7e-225 < y < 4.79999999999999974e-12Initial program 79.5%
Taylor expanded in b around inf 60.6%
if 2.55e-303 < y < 1.7e-225Initial program 67.0%
Taylor expanded in c around inf 83.7%
*-commutative83.7%
Simplified83.7%
Final simplification65.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -5.2e+60)
t_2
(if (<= y -2.35e-11)
(* a (- (* c j) (* x t)))
(if (<= y -5e-34)
t_2
(if (<= y -2e-110)
t_1
(if (<= y 1.9e-303)
(* t (- (* b i) (* x a)))
(if (<= y 5.3e-225)
t_1
(if (<= y 6.8e-15) (* b (- (* t i) (* z c))) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -5.2e+60) {
tmp = t_2;
} else if (y <= -2.35e-11) {
tmp = a * ((c * j) - (x * t));
} else if (y <= -5e-34) {
tmp = t_2;
} else if (y <= -2e-110) {
tmp = t_1;
} else if (y <= 1.9e-303) {
tmp = t * ((b * i) - (x * a));
} else if (y <= 5.3e-225) {
tmp = t_1;
} else if (y <= 6.8e-15) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
t_2 = y * ((x * z) - (i * j))
if (y <= (-5.2d+60)) then
tmp = t_2
else if (y <= (-2.35d-11)) then
tmp = a * ((c * j) - (x * t))
else if (y <= (-5d-34)) then
tmp = t_2
else if (y <= (-2d-110)) then
tmp = t_1
else if (y <= 1.9d-303) then
tmp = t * ((b * i) - (x * a))
else if (y <= 5.3d-225) then
tmp = t_1
else if (y <= 6.8d-15) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -5.2e+60) {
tmp = t_2;
} else if (y <= -2.35e-11) {
tmp = a * ((c * j) - (x * t));
} else if (y <= -5e-34) {
tmp = t_2;
} else if (y <= -2e-110) {
tmp = t_1;
} else if (y <= 1.9e-303) {
tmp = t * ((b * i) - (x * a));
} else if (y <= 5.3e-225) {
tmp = t_1;
} else if (y <= 6.8e-15) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -5.2e+60: tmp = t_2 elif y <= -2.35e-11: tmp = a * ((c * j) - (x * t)) elif y <= -5e-34: tmp = t_2 elif y <= -2e-110: tmp = t_1 elif y <= 1.9e-303: tmp = t * ((b * i) - (x * a)) elif y <= 5.3e-225: tmp = t_1 elif y <= 6.8e-15: tmp = b * ((t * i) - (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -5.2e+60) tmp = t_2; elseif (y <= -2.35e-11) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (y <= -5e-34) tmp = t_2; elseif (y <= -2e-110) tmp = t_1; elseif (y <= 1.9e-303) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (y <= 5.3e-225) tmp = t_1; elseif (y <= 6.8e-15) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -5.2e+60) tmp = t_2; elseif (y <= -2.35e-11) tmp = a * ((c * j) - (x * t)); elseif (y <= -5e-34) tmp = t_2; elseif (y <= -2e-110) tmp = t_1; elseif (y <= 1.9e-303) tmp = t * ((b * i) - (x * a)); elseif (y <= 5.3e-225) tmp = t_1; elseif (y <= 6.8e-15) tmp = b * ((t * i) - (z * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.2e+60], t$95$2, If[LessEqual[y, -2.35e-11], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5e-34], t$95$2, If[LessEqual[y, -2e-110], t$95$1, If[LessEqual[y, 1.9e-303], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.3e-225], t$95$1, If[LessEqual[y, 6.8e-15], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -5.2 \cdot 10^{+60}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.35 \cdot 10^{-11}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq -5 \cdot 10^{-34}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2 \cdot 10^{-110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-303}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;y \leq 5.3 \cdot 10^{-225}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{-15}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -5.20000000000000016e60 or -2.34999999999999996e-11 < y < -5.0000000000000003e-34 or 6.8000000000000001e-15 < y Initial program 74.8%
Taylor expanded in y around inf 66.4%
+-commutative66.4%
mul-1-neg66.4%
unsub-neg66.4%
*-commutative66.4%
*-commutative66.4%
Simplified66.4%
if -5.20000000000000016e60 < y < -2.34999999999999996e-11Initial program 83.2%
Taylor expanded in a around inf 75.9%
+-commutative75.9%
mul-1-neg75.9%
unsub-neg75.9%
*-commutative75.9%
Simplified75.9%
if -5.0000000000000003e-34 < y < -2.0000000000000001e-110 or 1.90000000000000005e-303 < y < 5.30000000000000005e-225Initial program 63.2%
Taylor expanded in c around inf 70.5%
*-commutative70.5%
Simplified70.5%
if -2.0000000000000001e-110 < y < 1.90000000000000005e-303Initial program 80.3%
Taylor expanded in t around inf 69.5%
distribute-lft-out--69.5%
*-commutative69.5%
Simplified69.5%
if 5.30000000000000005e-225 < y < 6.8000000000000001e-15Initial program 79.7%
Taylor expanded in b around inf 53.1%
Final simplification65.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* b c)))
(t_2 (- (* y (- (* x z) (* i j))) t_1))
(t_3 (+ (* b (- (* t i) (* z c))) (* a (- (* c j) (* x t))))))
(if (<= y -8.2e+152)
t_2
(if (<= y -1.2e+113)
t_3
(if (<= y -1000000000000.0)
(- (* j (- (* a c) (* y i))) t_1)
(if (<= y -7.3e-34)
(- (* x (- (* y z) (* t a))) (* j (* y i)))
(if (<= y 5.5e-11) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (b * c);
double t_2 = (y * ((x * z) - (i * j))) - t_1;
double t_3 = (b * ((t * i) - (z * c))) + (a * ((c * j) - (x * t)));
double tmp;
if (y <= -8.2e+152) {
tmp = t_2;
} else if (y <= -1.2e+113) {
tmp = t_3;
} else if (y <= -1000000000000.0) {
tmp = (j * ((a * c) - (y * i))) - t_1;
} else if (y <= -7.3e-34) {
tmp = (x * ((y * z) - (t * a))) - (j * (y * i));
} else if (y <= 5.5e-11) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * (b * c)
t_2 = (y * ((x * z) - (i * j))) - t_1
t_3 = (b * ((t * i) - (z * c))) + (a * ((c * j) - (x * t)))
if (y <= (-8.2d+152)) then
tmp = t_2
else if (y <= (-1.2d+113)) then
tmp = t_3
else if (y <= (-1000000000000.0d0)) then
tmp = (j * ((a * c) - (y * i))) - t_1
else if (y <= (-7.3d-34)) then
tmp = (x * ((y * z) - (t * a))) - (j * (y * i))
else if (y <= 5.5d-11) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (b * c);
double t_2 = (y * ((x * z) - (i * j))) - t_1;
double t_3 = (b * ((t * i) - (z * c))) + (a * ((c * j) - (x * t)));
double tmp;
if (y <= -8.2e+152) {
tmp = t_2;
} else if (y <= -1.2e+113) {
tmp = t_3;
} else if (y <= -1000000000000.0) {
tmp = (j * ((a * c) - (y * i))) - t_1;
} else if (y <= -7.3e-34) {
tmp = (x * ((y * z) - (t * a))) - (j * (y * i));
} else if (y <= 5.5e-11) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (b * c) t_2 = (y * ((x * z) - (i * j))) - t_1 t_3 = (b * ((t * i) - (z * c))) + (a * ((c * j) - (x * t))) tmp = 0 if y <= -8.2e+152: tmp = t_2 elif y <= -1.2e+113: tmp = t_3 elif y <= -1000000000000.0: tmp = (j * ((a * c) - (y * i))) - t_1 elif y <= -7.3e-34: tmp = (x * ((y * z) - (t * a))) - (j * (y * i)) elif y <= 5.5e-11: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(b * c)) t_2 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - t_1) t_3 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) + Float64(a * Float64(Float64(c * j) - Float64(x * t)))) tmp = 0.0 if (y <= -8.2e+152) tmp = t_2; elseif (y <= -1.2e+113) tmp = t_3; elseif (y <= -1000000000000.0) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - t_1); elseif (y <= -7.3e-34) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(j * Float64(y * i))); elseif (y <= 5.5e-11) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (b * c); t_2 = (y * ((x * z) - (i * j))) - t_1; t_3 = (b * ((t * i) - (z * c))) + (a * ((c * j) - (x * t))); tmp = 0.0; if (y <= -8.2e+152) tmp = t_2; elseif (y <= -1.2e+113) tmp = t_3; elseif (y <= -1000000000000.0) tmp = (j * ((a * c) - (y * i))) - t_1; elseif (y <= -7.3e-34) tmp = (x * ((y * z) - (t * a))) - (j * (y * i)); elseif (y <= 5.5e-11) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8.2e+152], t$95$2, If[LessEqual[y, -1.2e+113], t$95$3, If[LessEqual[y, -1000000000000.0], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[y, -7.3e-34], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e-11], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(b \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right) - t\_1\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;y \leq -8.2 \cdot 10^{+152}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{+113}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -1000000000000:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - t\_1\\
\mathbf{elif}\;y \leq -7.3 \cdot 10^{-34}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - j \cdot \left(y \cdot i\right)\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-11}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -8.1999999999999996e152 or 5.49999999999999975e-11 < y Initial program 71.1%
Taylor expanded in a around 0 64.3%
Simplified71.7%
Taylor expanded in t around 0 76.5%
neg-mul-176.5%
+-commutative76.5%
*-commutative76.5%
*-commutative76.5%
sub-neg76.5%
sub-neg76.5%
unsub-neg76.5%
associate-*r*79.8%
*-commutative79.8%
Simplified79.8%
if -8.1999999999999996e152 < y < -1.19999999999999992e113 or -7.29999999999999996e-34 < y < 5.49999999999999975e-11Initial program 74.0%
Taylor expanded in y around 0 70.7%
cancel-sign-sub-inv70.7%
*-commutative70.7%
associate-*r*70.7%
*-commutative70.7%
distribute-rgt-in72.1%
+-commutative72.1%
mul-1-neg72.1%
unsub-neg72.1%
*-commutative72.1%
distribute-lft-neg-in72.1%
sub-neg72.1%
distribute-rgt-neg-out72.1%
distribute-lft-out69.3%
+-commutative69.3%
distribute-rgt-neg-out69.3%
distribute-rgt-neg-in69.3%
mul-1-neg69.3%
Simplified72.1%
if -1.19999999999999992e113 < y < -1e12Initial program 93.7%
+-commutative93.7%
fma-define93.7%
*-commutative93.7%
sub-neg93.7%
*-commutative93.7%
sub-neg93.7%
*-commutative93.7%
*-commutative93.7%
Simplified93.7%
Taylor expanded in x around -inf 93.7%
mul-1-neg93.7%
distribute-rgt-neg-in93.7%
+-commutative93.7%
mul-1-neg93.7%
unsub-neg93.7%
associate-/l*87.4%
Simplified87.4%
Taylor expanded in x around 0 87.6%
+-commutative87.6%
*-commutative87.6%
sub-neg87.6%
sub-neg87.6%
mul-1-neg87.6%
unsub-neg87.6%
Simplified87.6%
Taylor expanded in c around inf 81.5%
associate-*r*81.5%
*-commutative81.5%
Simplified81.5%
if -1e12 < y < -7.29999999999999996e-34Initial program 92.6%
Taylor expanded in b around 0 99.8%
Taylor expanded in a around 0 86.0%
neg-mul-186.0%
distribute-rgt-neg-in86.0%
Simplified86.0%
Final simplification76.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= i -3.7e+257)
(- t_2 (* z (* b c)))
(if (<= i -3.25e-34)
(+ (* y (- (* x z) (* i j))) t_1)
(if (<= i -6.5e-262)
(+ t_1 (* x (- (* y z) (* t a))))
(if (<= i 1.06e-82)
(+ t_1 (* a (- (* c j) (* x t))))
(if (<= i 4.3e+108) (+ t_2 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 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (i <= -3.7e+257) {
tmp = t_2 - (z * (b * c));
} else if (i <= -3.25e-34) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else if (i <= -6.5e-262) {
tmp = t_1 + (x * ((y * z) - (t * a)));
} else if (i <= 1.06e-82) {
tmp = t_1 + (a * ((c * j) - (x * t)));
} else if (i <= 4.3e+108) {
tmp = t_2 + 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) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = j * ((a * c) - (y * i))
if (i <= (-3.7d+257)) then
tmp = t_2 - (z * (b * c))
else if (i <= (-3.25d-34)) then
tmp = (y * ((x * z) - (i * j))) + t_1
else if (i <= (-6.5d-262)) then
tmp = t_1 + (x * ((y * z) - (t * a)))
else if (i <= 1.06d-82) then
tmp = t_1 + (a * ((c * j) - (x * t)))
else if (i <= 4.3d+108) then
tmp = t_2 + 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 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (i <= -3.7e+257) {
tmp = t_2 - (z * (b * c));
} else if (i <= -3.25e-34) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else if (i <= -6.5e-262) {
tmp = t_1 + (x * ((y * z) - (t * a)));
} else if (i <= 1.06e-82) {
tmp = t_1 + (a * ((c * j) - (x * t)));
} else if (i <= 4.3e+108) {
tmp = t_2 + t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if i <= -3.7e+257: tmp = t_2 - (z * (b * c)) elif i <= -3.25e-34: tmp = (y * ((x * z) - (i * j))) + t_1 elif i <= -6.5e-262: tmp = t_1 + (x * ((y * z) - (t * a))) elif i <= 1.06e-82: tmp = t_1 + (a * ((c * j) - (x * t))) elif i <= 4.3e+108: tmp = t_2 + 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(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (i <= -3.7e+257) tmp = Float64(t_2 - Float64(z * Float64(b * c))); elseif (i <= -3.25e-34) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1); elseif (i <= -6.5e-262) tmp = Float64(t_1 + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); elseif (i <= 1.06e-82) tmp = Float64(t_1 + Float64(a * Float64(Float64(c * j) - Float64(x * t)))); elseif (i <= 4.3e+108) tmp = Float64(t_2 + 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 = b * ((t * i) - (z * c)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (i <= -3.7e+257) tmp = t_2 - (z * (b * c)); elseif (i <= -3.25e-34) tmp = (y * ((x * z) - (i * j))) + t_1; elseif (i <= -6.5e-262) tmp = t_1 + (x * ((y * z) - (t * a))); elseif (i <= 1.06e-82) tmp = t_1 + (a * ((c * j) - (x * t))); elseif (i <= 4.3e+108) tmp = t_2 + 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.7e+257], N[(t$95$2 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.25e-34], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[i, -6.5e-262], N[(t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.06e-82], N[(t$95$1 + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.3e+108], N[(t$95$2 + t$95$1), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;i \leq -3.7 \cdot 10^{+257}:\\
\;\;\;\;t\_2 - z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;i \leq -3.25 \cdot 10^{-34}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t\_1\\
\mathbf{elif}\;i \leq -6.5 \cdot 10^{-262}:\\
\;\;\;\;t\_1 + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;i \leq 1.06 \cdot 10^{-82}:\\
\;\;\;\;t\_1 + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 4.3 \cdot 10^{+108}:\\
\;\;\;\;t\_2 + t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if i < -3.69999999999999991e257Initial program 51.3%
+-commutative51.3%
fma-define51.3%
*-commutative51.3%
sub-neg51.3%
*-commutative51.3%
sub-neg51.3%
*-commutative51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in x around -inf 51.3%
mul-1-neg51.3%
distribute-rgt-neg-in51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
associate-/l*51.3%
Simplified51.3%
Taylor expanded in x around 0 51.3%
+-commutative51.3%
*-commutative51.3%
sub-neg51.3%
sub-neg51.3%
mul-1-neg51.3%
unsub-neg51.3%
Simplified51.3%
Taylor expanded in c around inf 76.3%
associate-*r*99.8%
*-commutative99.8%
Simplified99.8%
if -3.69999999999999991e257 < i < -3.24999999999999993e-34Initial program 76.2%
Taylor expanded in a around 0 75.4%
Simplified78.4%
if -3.24999999999999993e-34 < i < -6.5000000000000003e-262Initial program 80.7%
Taylor expanded in j around 0 80.4%
if -6.5000000000000003e-262 < i < 1.06e-82Initial program 84.8%
Taylor expanded in y around 0 75.3%
cancel-sign-sub-inv75.3%
*-commutative75.3%
associate-*r*75.3%
*-commutative75.3%
distribute-rgt-in75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
*-commutative75.3%
distribute-lft-neg-in75.3%
sub-neg75.3%
distribute-rgt-neg-out75.3%
distribute-lft-out75.3%
+-commutative75.3%
distribute-rgt-neg-out75.3%
distribute-rgt-neg-in75.3%
mul-1-neg75.3%
Simplified75.3%
if 1.06e-82 < i < 4.29999999999999996e108Initial program 74.4%
Taylor expanded in x around 0 74.6%
if 4.29999999999999996e108 < i Initial program 54.2%
+-commutative54.2%
fma-define54.2%
*-commutative54.2%
sub-neg54.2%
*-commutative54.2%
sub-neg54.2%
*-commutative54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in x around -inf 57.5%
mul-1-neg57.5%
distribute-rgt-neg-in57.5%
+-commutative57.5%
mul-1-neg57.5%
unsub-neg57.5%
associate-/l*54.4%
Simplified54.4%
Taylor expanded in i around inf 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
*-commutative78.4%
Simplified78.4%
Final simplification78.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= a -3.8e+25)
(+ t_2 (* x (- (* y z) (* t a))))
(if (<= a -4.6e-59)
t_1
(if (<= a -8e-78)
t_2
(if (<= a 4.3e+108)
(+ (* y (- (* x z) (* i j))) t_1)
(+ t_1 (* a (- (* c j) (* x t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (a <= -3.8e+25) {
tmp = t_2 + (x * ((y * z) - (t * a)));
} else if (a <= -4.6e-59) {
tmp = t_1;
} else if (a <= -8e-78) {
tmp = t_2;
} else if (a <= 4.3e+108) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else {
tmp = t_1 + (a * ((c * j) - (x * t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = j * ((a * c) - (y * i))
if (a <= (-3.8d+25)) then
tmp = t_2 + (x * ((y * z) - (t * a)))
else if (a <= (-4.6d-59)) then
tmp = t_1
else if (a <= (-8d-78)) then
tmp = t_2
else if (a <= 4.3d+108) then
tmp = (y * ((x * z) - (i * j))) + t_1
else
tmp = t_1 + (a * ((c * j) - (x * t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (a <= -3.8e+25) {
tmp = t_2 + (x * ((y * z) - (t * a)));
} else if (a <= -4.6e-59) {
tmp = t_1;
} else if (a <= -8e-78) {
tmp = t_2;
} else if (a <= 4.3e+108) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else {
tmp = t_1 + (a * ((c * j) - (x * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if a <= -3.8e+25: tmp = t_2 + (x * ((y * z) - (t * a))) elif a <= -4.6e-59: tmp = t_1 elif a <= -8e-78: tmp = t_2 elif a <= 4.3e+108: tmp = (y * ((x * z) - (i * j))) + t_1 else: tmp = t_1 + (a * ((c * j) - (x * t))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (a <= -3.8e+25) tmp = Float64(t_2 + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); elseif (a <= -4.6e-59) tmp = t_1; elseif (a <= -8e-78) tmp = t_2; elseif (a <= 4.3e+108) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1); else tmp = Float64(t_1 + Float64(a * Float64(Float64(c * j) - Float64(x * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (a <= -3.8e+25) tmp = t_2 + (x * ((y * z) - (t * a))); elseif (a <= -4.6e-59) tmp = t_1; elseif (a <= -8e-78) tmp = t_2; elseif (a <= 4.3e+108) tmp = (y * ((x * z) - (i * j))) + t_1; else tmp = t_1 + (a * ((c * j) - (x * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.8e+25], N[(t$95$2 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.6e-59], t$95$1, If[LessEqual[a, -8e-78], t$95$2, If[LessEqual[a, 4.3e+108], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$1 + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;a \leq -3.8 \cdot 10^{+25}:\\
\;\;\;\;t\_2 + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-78}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 4.3 \cdot 10^{+108}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_1 + a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if a < -3.8e25Initial program 74.0%
Taylor expanded in b around 0 73.8%
if -3.8e25 < a < -4.59999999999999959e-59Initial program 84.3%
Taylor expanded in b around inf 84.9%
if -4.59999999999999959e-59 < a < -7.99999999999999999e-78Initial program 50.0%
+-commutative50.0%
fma-define50.0%
*-commutative50.0%
sub-neg50.0%
*-commutative50.0%
sub-neg50.0%
*-commutative50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in x around -inf 25.0%
mul-1-neg25.0%
distribute-rgt-neg-in25.0%
+-commutative25.0%
mul-1-neg25.0%
unsub-neg25.0%
associate-/l*25.0%
Simplified25.0%
Taylor expanded in j around inf 100.0%
*-commutative100.0%
sub-neg100.0%
sub-neg100.0%
Simplified100.0%
if -7.99999999999999999e-78 < a < 4.29999999999999996e108Initial program 79.8%
Taylor expanded in a around 0 75.4%
Simplified74.0%
if 4.29999999999999996e108 < a Initial program 60.9%
Taylor expanded in y around 0 77.9%
cancel-sign-sub-inv77.9%
*-commutative77.9%
associate-*r*77.9%
*-commutative77.9%
distribute-rgt-in80.4%
+-commutative80.4%
mul-1-neg80.4%
unsub-neg80.4%
*-commutative80.4%
distribute-lft-neg-in80.4%
sub-neg80.4%
distribute-rgt-neg-out80.4%
distribute-lft-out77.9%
+-commutative77.9%
distribute-rgt-neg-out77.9%
distribute-rgt-neg-in77.9%
mul-1-neg77.9%
Simplified80.4%
Final simplification75.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* x (* y z))))
(if (<= y -1.65e+83)
t_2
(if (<= y -6.5e-114)
t_1
(if (<= y 1.75e-304)
(* i (* t b))
(if (<= y 1.55e-247)
t_1
(if (<= y 2.25e+46)
(* (* z c) (- b))
(if (<= y 3.5e+158) t_2 (* (* y j) (- i))))))))))
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 = x * (y * z);
double tmp;
if (y <= -1.65e+83) {
tmp = t_2;
} else if (y <= -6.5e-114) {
tmp = t_1;
} else if (y <= 1.75e-304) {
tmp = i * (t * b);
} else if (y <= 1.55e-247) {
tmp = t_1;
} else if (y <= 2.25e+46) {
tmp = (z * c) * -b;
} else if (y <= 3.5e+158) {
tmp = t_2;
} else {
tmp = (y * j) * -i;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (c * j)
t_2 = x * (y * z)
if (y <= (-1.65d+83)) then
tmp = t_2
else if (y <= (-6.5d-114)) then
tmp = t_1
else if (y <= 1.75d-304) then
tmp = i * (t * b)
else if (y <= 1.55d-247) then
tmp = t_1
else if (y <= 2.25d+46) then
tmp = (z * c) * -b
else if (y <= 3.5d+158) then
tmp = t_2
else
tmp = (y * j) * -i
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = x * (y * z);
double tmp;
if (y <= -1.65e+83) {
tmp = t_2;
} else if (y <= -6.5e-114) {
tmp = t_1;
} else if (y <= 1.75e-304) {
tmp = i * (t * b);
} else if (y <= 1.55e-247) {
tmp = t_1;
} else if (y <= 2.25e+46) {
tmp = (z * c) * -b;
} else if (y <= 3.5e+158) {
tmp = t_2;
} else {
tmp = (y * j) * -i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = x * (y * z) tmp = 0 if y <= -1.65e+83: tmp = t_2 elif y <= -6.5e-114: tmp = t_1 elif y <= 1.75e-304: tmp = i * (t * b) elif y <= 1.55e-247: tmp = t_1 elif y <= 2.25e+46: tmp = (z * c) * -b elif y <= 3.5e+158: tmp = t_2 else: tmp = (y * j) * -i return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -1.65e+83) tmp = t_2; elseif (y <= -6.5e-114) tmp = t_1; elseif (y <= 1.75e-304) tmp = Float64(i * Float64(t * b)); elseif (y <= 1.55e-247) tmp = t_1; elseif (y <= 2.25e+46) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (y <= 3.5e+158) tmp = t_2; else tmp = Float64(Float64(y * j) * Float64(-i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = x * (y * z); tmp = 0.0; if (y <= -1.65e+83) tmp = t_2; elseif (y <= -6.5e-114) tmp = t_1; elseif (y <= 1.75e-304) tmp = i * (t * b); elseif (y <= 1.55e-247) tmp = t_1; elseif (y <= 2.25e+46) tmp = (z * c) * -b; elseif (y <= 3.5e+158) tmp = t_2; else tmp = (y * j) * -i; 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.65e+83], t$95$2, If[LessEqual[y, -6.5e-114], t$95$1, If[LessEqual[y, 1.75e-304], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.55e-247], t$95$1, If[LessEqual[y, 2.25e+46], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[y, 3.5e+158], t$95$2, N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -1.65 \cdot 10^{+83}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -6.5 \cdot 10^{-114}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.75 \cdot 10^{-304}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{-247}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.25 \cdot 10^{+46}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+158}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\end{array}
\end{array}
if y < -1.64999999999999992e83 or 2.25000000000000005e46 < y < 3.5000000000000001e158Initial program 68.7%
Taylor expanded in z around inf 59.4%
*-commutative59.4%
*-commutative59.4%
Simplified59.4%
Taylor expanded in y around 0 51.0%
Taylor expanded in b around 0 45.4%
if -1.64999999999999992e83 < y < -6.4999999999999998e-114 or 1.75e-304 < y < 1.55000000000000008e-247Initial program 75.4%
Taylor expanded in a around inf 57.8%
+-commutative57.8%
mul-1-neg57.8%
unsub-neg57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in j around inf 44.6%
if -6.4999999999999998e-114 < y < 1.75e-304Initial program 79.8%
+-commutative79.8%
fma-define84.8%
*-commutative84.8%
sub-neg84.8%
*-commutative84.8%
sub-neg84.8%
*-commutative84.8%
*-commutative84.8%
Simplified84.8%
Taylor expanded in x around -inf 85.1%
mul-1-neg85.1%
distribute-rgt-neg-in85.1%
+-commutative85.1%
mul-1-neg85.1%
unsub-neg85.1%
associate-/l*82.7%
Simplified82.7%
Taylor expanded in i around inf 60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in b around inf 57.7%
if 1.55000000000000008e-247 < y < 2.25000000000000005e46Initial program 78.4%
+-commutative78.4%
fma-define78.4%
*-commutative78.4%
sub-neg78.4%
*-commutative78.4%
sub-neg78.4%
*-commutative78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in x around -inf 73.0%
mul-1-neg73.0%
distribute-rgt-neg-in73.0%
+-commutative73.0%
mul-1-neg73.0%
unsub-neg73.0%
associate-/l*71.6%
Simplified71.6%
Taylor expanded in x around 0 66.6%
+-commutative66.6%
*-commutative66.6%
sub-neg66.6%
sub-neg66.6%
mul-1-neg66.6%
unsub-neg66.6%
Simplified66.6%
Taylor expanded in z around inf 29.7%
neg-mul-129.7%
distribute-rgt-neg-in29.7%
distribute-rgt-neg-in29.7%
Simplified29.7%
if 3.5000000000000001e158 < y Initial program 74.9%
+-commutative74.9%
fma-define74.9%
*-commutative74.9%
sub-neg74.9%
*-commutative74.9%
sub-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in x around -inf 71.6%
mul-1-neg71.6%
distribute-rgt-neg-in71.6%
+-commutative71.6%
mul-1-neg71.6%
unsub-neg71.6%
associate-/l*68.1%
Simplified68.1%
Taylor expanded in i around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in b around 0 65.6%
neg-mul-165.6%
distribute-lft-neg-in65.6%
Simplified65.6%
Final simplification45.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* z (* b (- c)))))
(if (<= b -5e-39)
t_2
(if (<= b 1.7e-82)
t_1
(if (<= b 2.25e-69)
t_2
(if (<= b 2.5e+68)
t_1
(if (<= b 3.7e+180)
(* b (* t i))
(if (<= b 1.35e+280) (* (* z c) (- b)) (* i (* t 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) - (x * t));
double t_2 = z * (b * -c);
double tmp;
if (b <= -5e-39) {
tmp = t_2;
} else if (b <= 1.7e-82) {
tmp = t_1;
} else if (b <= 2.25e-69) {
tmp = t_2;
} else if (b <= 2.5e+68) {
tmp = t_1;
} else if (b <= 3.7e+180) {
tmp = b * (t * i);
} else if (b <= 1.35e+280) {
tmp = (z * c) * -b;
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = z * (b * -c)
if (b <= (-5d-39)) then
tmp = t_2
else if (b <= 1.7d-82) then
tmp = t_1
else if (b <= 2.25d-69) then
tmp = t_2
else if (b <= 2.5d+68) then
tmp = t_1
else if (b <= 3.7d+180) then
tmp = b * (t * i)
else if (b <= 1.35d+280) then
tmp = (z * c) * -b
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = z * (b * -c);
double tmp;
if (b <= -5e-39) {
tmp = t_2;
} else if (b <= 1.7e-82) {
tmp = t_1;
} else if (b <= 2.25e-69) {
tmp = t_2;
} else if (b <= 2.5e+68) {
tmp = t_1;
} else if (b <= 3.7e+180) {
tmp = b * (t * i);
} else if (b <= 1.35e+280) {
tmp = (z * c) * -b;
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = z * (b * -c) tmp = 0 if b <= -5e-39: tmp = t_2 elif b <= 1.7e-82: tmp = t_1 elif b <= 2.25e-69: tmp = t_2 elif b <= 2.5e+68: tmp = t_1 elif b <= 3.7e+180: tmp = b * (t * i) elif b <= 1.35e+280: tmp = (z * c) * -b else: tmp = i * (t * b) 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(z * Float64(b * Float64(-c))) tmp = 0.0 if (b <= -5e-39) tmp = t_2; elseif (b <= 1.7e-82) tmp = t_1; elseif (b <= 2.25e-69) tmp = t_2; elseif (b <= 2.5e+68) tmp = t_1; elseif (b <= 3.7e+180) tmp = Float64(b * Float64(t * i)); elseif (b <= 1.35e+280) tmp = Float64(Float64(z * c) * Float64(-b)); else tmp = Float64(i * Float64(t * b)); 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 = z * (b * -c); tmp = 0.0; if (b <= -5e-39) tmp = t_2; elseif (b <= 1.7e-82) tmp = t_1; elseif (b <= 2.25e-69) tmp = t_2; elseif (b <= 2.5e+68) tmp = t_1; elseif (b <= 3.7e+180) tmp = b * (t * i); elseif (b <= 1.35e+280) tmp = (z * c) * -b; else tmp = i * (t * b); 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[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5e-39], t$95$2, If[LessEqual[b, 1.7e-82], t$95$1, If[LessEqual[b, 2.25e-69], t$95$2, If[LessEqual[b, 2.5e+68], t$95$1, If[LessEqual[b, 3.7e+180], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.35e+280], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{if}\;b \leq -5 \cdot 10^{-39}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-82}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.25 \cdot 10^{-69}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{+68}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{+180}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{+280}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if b < -4.9999999999999998e-39 or 1.69999999999999988e-82 < b < 2.25000000000000005e-69Initial program 71.8%
Taylor expanded in z around inf 54.3%
*-commutative54.3%
*-commutative54.3%
Simplified54.3%
Taylor expanded in y around 0 45.7%
neg-mul-145.7%
distribute-rgt-neg-in45.7%
Simplified45.7%
if -4.9999999999999998e-39 < b < 1.69999999999999988e-82 or 2.25000000000000005e-69 < b < 2.5000000000000002e68Initial program 77.5%
Taylor expanded in a around inf 48.3%
+-commutative48.3%
mul-1-neg48.3%
unsub-neg48.3%
*-commutative48.3%
Simplified48.3%
if 2.5000000000000002e68 < b < 3.7000000000000002e180Initial program 82.5%
+-commutative82.5%
fma-define82.5%
*-commutative82.5%
sub-neg82.5%
*-commutative82.5%
sub-neg82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in x around -inf 82.5%
mul-1-neg82.5%
distribute-rgt-neg-in82.5%
+-commutative82.5%
mul-1-neg82.5%
unsub-neg82.5%
associate-/l*82.4%
Simplified82.4%
Taylor expanded in x around 0 77.0%
+-commutative77.0%
*-commutative77.0%
sub-neg77.0%
sub-neg77.0%
mul-1-neg77.0%
unsub-neg77.0%
Simplified77.0%
Taylor expanded in t around inf 51.8%
if 3.7000000000000002e180 < b < 1.35000000000000008e280Initial program 70.7%
+-commutative70.7%
fma-define74.9%
*-commutative74.9%
sub-neg74.9%
*-commutative74.9%
sub-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in x around -inf 75.3%
mul-1-neg75.3%
distribute-rgt-neg-in75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
associate-/l*79.4%
Simplified79.4%
Taylor expanded in x around 0 62.7%
+-commutative62.7%
*-commutative62.7%
sub-neg62.7%
sub-neg62.7%
mul-1-neg62.7%
unsub-neg62.7%
Simplified62.7%
Taylor expanded in z around inf 53.5%
neg-mul-153.5%
distribute-rgt-neg-in53.5%
distribute-rgt-neg-in53.5%
Simplified53.5%
if 1.35000000000000008e280 < b Initial program 79.7%
+-commutative79.7%
fma-define99.7%
*-commutative99.7%
sub-neg99.7%
*-commutative99.7%
sub-neg99.7%
*-commutative99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around -inf 99.7%
mul-1-neg99.7%
distribute-rgt-neg-in99.7%
+-commutative99.7%
mul-1-neg99.7%
unsub-neg99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in i around inf 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in b around inf 100.0%
Final simplification49.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -7.2e+141)
t_1
(if (<= t -4.5e+97)
(* y (- (* x z) (* i j)))
(if (or (<= t -1.56e+57) (not (<= t 6e+172)))
t_1
(- (* j (- (* a c) (* y i))) (* z (* b c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -7.2e+141) {
tmp = t_1;
} else if (t <= -4.5e+97) {
tmp = y * ((x * z) - (i * j));
} else if ((t <= -1.56e+57) || !(t <= 6e+172)) {
tmp = t_1;
} else {
tmp = (j * ((a * c) - (y * i))) - (z * (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
if (t <= (-7.2d+141)) then
tmp = t_1
else if (t <= (-4.5d+97)) then
tmp = y * ((x * z) - (i * j))
else if ((t <= (-1.56d+57)) .or. (.not. (t <= 6d+172))) then
tmp = t_1
else
tmp = (j * ((a * c) - (y * i))) - (z * (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -7.2e+141) {
tmp = t_1;
} else if (t <= -4.5e+97) {
tmp = y * ((x * z) - (i * j));
} else if ((t <= -1.56e+57) || !(t <= 6e+172)) {
tmp = t_1;
} else {
tmp = (j * ((a * c) - (y * i))) - (z * (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -7.2e+141: tmp = t_1 elif t <= -4.5e+97: tmp = y * ((x * z) - (i * j)) elif (t <= -1.56e+57) or not (t <= 6e+172): tmp = t_1 else: tmp = (j * ((a * c) - (y * i))) - (z * (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -7.2e+141) tmp = t_1; elseif (t <= -4.5e+97) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif ((t <= -1.56e+57) || !(t <= 6e+172)) tmp = t_1; else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(z * Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -7.2e+141) tmp = t_1; elseif (t <= -4.5e+97) tmp = y * ((x * z) - (i * j)); elseif ((t <= -1.56e+57) || ~((t <= 6e+172))) tmp = t_1; else tmp = (j * ((a * c) - (y * i))) - (z * (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+141], t$95$1, If[LessEqual[t, -4.5e+97], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -1.56e+57], N[Not[LessEqual[t, 6e+172]], $MachinePrecision]], t$95$1, N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -4.5 \cdot 10^{+97}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq -1.56 \cdot 10^{+57} \lor \neg \left(t \leq 6 \cdot 10^{+172}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - z \cdot \left(b \cdot c\right)\\
\end{array}
\end{array}
if t < -7.2000000000000003e141 or -4.49999999999999976e97 < t < -1.55999999999999998e57 or 5.9999999999999998e172 < t Initial program 71.1%
Taylor expanded in t around inf 81.7%
distribute-lft-out--81.7%
*-commutative81.7%
Simplified81.7%
if -7.2000000000000003e141 < t < -4.49999999999999976e97Initial program 75.0%
Taylor expanded in y around inf 87.8%
+-commutative87.8%
mul-1-neg87.8%
unsub-neg87.8%
*-commutative87.8%
*-commutative87.8%
Simplified87.8%
if -1.55999999999999998e57 < t < 5.9999999999999998e172Initial program 77.0%
+-commutative77.0%
fma-define78.1%
*-commutative78.1%
sub-neg78.1%
*-commutative78.1%
sub-neg78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in x around -inf 75.0%
mul-1-neg75.0%
distribute-rgt-neg-in75.0%
+-commutative75.0%
mul-1-neg75.0%
unsub-neg75.0%
associate-/l*73.2%
Simplified73.2%
Taylor expanded in x around 0 67.0%
+-commutative67.0%
*-commutative67.0%
sub-neg67.0%
sub-neg67.0%
mul-1-neg67.0%
unsub-neg67.0%
Simplified67.0%
Taylor expanded in c around inf 61.0%
associate-*r*62.2%
*-commutative62.2%
Simplified62.2%
Final simplification68.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* i j))) (* z (* b c)))))
(if (<= y -4.5e+156)
t_1
(if (<= y -6.5e-34)
(+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))
(if (<= y 2.5e-12)
(+ (* b (- (* t i) (* z c))) (* a (- (* c j) (* x 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 = (y * ((x * z) - (i * j))) - (z * (b * c));
double tmp;
if (y <= -4.5e+156) {
tmp = t_1;
} else if (y <= -6.5e-34) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else if (y <= 2.5e-12) {
tmp = (b * ((t * i) - (z * c))) + (a * ((c * j) - (x * 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 = (y * ((x * z) - (i * j))) - (z * (b * c))
if (y <= (-4.5d+156)) then
tmp = t_1
else if (y <= (-6.5d-34)) then
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
else if (y <= 2.5d-12) then
tmp = (b * ((t * i) - (z * c))) + (a * ((c * j) - (x * 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 = (y * ((x * z) - (i * j))) - (z * (b * c));
double tmp;
if (y <= -4.5e+156) {
tmp = t_1;
} else if (y <= -6.5e-34) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else if (y <= 2.5e-12) {
tmp = (b * ((t * i) - (z * c))) + (a * ((c * j) - (x * t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) - (z * (b * c)) tmp = 0 if y <= -4.5e+156: tmp = t_1 elif y <= -6.5e-34: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) elif y <= 2.5e-12: tmp = (b * ((t * i) - (z * c))) + (a * ((c * j) - (x * t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(z * Float64(b * c))) tmp = 0.0 if (y <= -4.5e+156) tmp = t_1; elseif (y <= -6.5e-34) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); elseif (y <= 2.5e-12) tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) + Float64(a * Float64(Float64(c * j) - Float64(x * t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) - (z * (b * c)); tmp = 0.0; if (y <= -4.5e+156) tmp = t_1; elseif (y <= -6.5e-34) tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); elseif (y <= 2.5e-12) tmp = (b * ((t * i) - (z * c))) + (a * ((c * j) - (x * 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[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.5e+156], t$95$1, If[LessEqual[y, -6.5e-34], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e-12], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{if}\;y \leq -4.5 \cdot 10^{+156}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -6.5 \cdot 10^{-34}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{-12}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.50000000000000031e156 or 2.49999999999999985e-12 < y Initial program 71.1%
Taylor expanded in a around 0 64.3%
Simplified71.7%
Taylor expanded in t around 0 76.5%
neg-mul-176.5%
+-commutative76.5%
*-commutative76.5%
*-commutative76.5%
sub-neg76.5%
sub-neg76.5%
unsub-neg76.5%
associate-*r*79.8%
*-commutative79.8%
Simplified79.8%
if -4.50000000000000031e156 < y < -6.49999999999999985e-34Initial program 86.3%
Taylor expanded in b around 0 78.3%
if -6.49999999999999985e-34 < y < 2.49999999999999985e-12Initial program 75.0%
Taylor expanded in y around 0 70.1%
cancel-sign-sub-inv70.1%
*-commutative70.1%
associate-*r*70.1%
*-commutative70.1%
distribute-rgt-in71.6%
+-commutative71.6%
mul-1-neg71.6%
unsub-neg71.6%
*-commutative71.6%
distribute-lft-neg-in71.6%
sub-neg71.6%
distribute-rgt-neg-out71.6%
distribute-lft-out69.4%
+-commutative69.4%
distribute-rgt-neg-out69.4%
distribute-rgt-neg-in69.4%
mul-1-neg69.4%
Simplified71.6%
Final simplification75.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= a -3.1e+33)
(+ t_2 (* x (- (* y z) (* t a))))
(if (<= a -2.05e-84)
(+ t_2 t_1)
(if (<= a 8.2e+108)
(+ (* y (- (* x z) (* i j))) t_1)
(+ t_1 (* a (- (* c j) (* x t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (a <= -3.1e+33) {
tmp = t_2 + (x * ((y * z) - (t * a)));
} else if (a <= -2.05e-84) {
tmp = t_2 + t_1;
} else if (a <= 8.2e+108) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else {
tmp = t_1 + (a * ((c * j) - (x * t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = j * ((a * c) - (y * i))
if (a <= (-3.1d+33)) then
tmp = t_2 + (x * ((y * z) - (t * a)))
else if (a <= (-2.05d-84)) then
tmp = t_2 + t_1
else if (a <= 8.2d+108) then
tmp = (y * ((x * z) - (i * j))) + t_1
else
tmp = t_1 + (a * ((c * j) - (x * t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (a <= -3.1e+33) {
tmp = t_2 + (x * ((y * z) - (t * a)));
} else if (a <= -2.05e-84) {
tmp = t_2 + t_1;
} else if (a <= 8.2e+108) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else {
tmp = t_1 + (a * ((c * j) - (x * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if a <= -3.1e+33: tmp = t_2 + (x * ((y * z) - (t * a))) elif a <= -2.05e-84: tmp = t_2 + t_1 elif a <= 8.2e+108: tmp = (y * ((x * z) - (i * j))) + t_1 else: tmp = t_1 + (a * ((c * j) - (x * t))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (a <= -3.1e+33) tmp = Float64(t_2 + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); elseif (a <= -2.05e-84) tmp = Float64(t_2 + t_1); elseif (a <= 8.2e+108) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1); else tmp = Float64(t_1 + Float64(a * Float64(Float64(c * j) - Float64(x * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (a <= -3.1e+33) tmp = t_2 + (x * ((y * z) - (t * a))); elseif (a <= -2.05e-84) tmp = t_2 + t_1; elseif (a <= 8.2e+108) tmp = (y * ((x * z) - (i * j))) + t_1; else tmp = t_1 + (a * ((c * j) - (x * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.1e+33], N[(t$95$2 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.05e-84], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[a, 8.2e+108], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$1 + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;a \leq -3.1 \cdot 10^{+33}:\\
\;\;\;\;t\_2 + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;a \leq -2.05 \cdot 10^{-84}:\\
\;\;\;\;t\_2 + t\_1\\
\mathbf{elif}\;a \leq 8.2 \cdot 10^{+108}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_1 + a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if a < -3.1e33Initial program 73.1%
Taylor expanded in b around 0 73.4%
if -3.1e33 < a < -2.05000000000000003e-84Initial program 80.5%
Taylor expanded in x around 0 80.7%
if -2.05000000000000003e-84 < a < 8.1999999999999998e108Initial program 79.5%
Taylor expanded in a around 0 75.7%
Simplified74.3%
if 8.1999999999999998e108 < a Initial program 60.9%
Taylor expanded in y around 0 77.9%
cancel-sign-sub-inv77.9%
*-commutative77.9%
associate-*r*77.9%
*-commutative77.9%
distribute-rgt-in80.4%
+-commutative80.4%
mul-1-neg80.4%
unsub-neg80.4%
*-commutative80.4%
distribute-lft-neg-in80.4%
sub-neg80.4%
distribute-rgt-neg-out80.4%
distribute-lft-out77.9%
+-commutative77.9%
distribute-rgt-neg-out77.9%
distribute-rgt-neg-in77.9%
mul-1-neg77.9%
Simplified80.4%
Final simplification75.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* x (* y z))))
(if (<= y -3.9e+81)
t_2
(if (<= y -6.8e-119)
t_1
(if (<= y 8e-304)
(* i (* t b))
(if (<= y 6.2e-192) t_1 (if (<= y 1.1e-10) (* b (* t i)) 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);
double t_2 = x * (y * z);
double tmp;
if (y <= -3.9e+81) {
tmp = t_2;
} else if (y <= -6.8e-119) {
tmp = t_1;
} else if (y <= 8e-304) {
tmp = i * (t * b);
} else if (y <= 6.2e-192) {
tmp = t_1;
} else if (y <= 1.1e-10) {
tmp = b * (t * i);
} 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)
t_2 = x * (y * z)
if (y <= (-3.9d+81)) then
tmp = t_2
else if (y <= (-6.8d-119)) then
tmp = t_1
else if (y <= 8d-304) then
tmp = i * (t * b)
else if (y <= 6.2d-192) then
tmp = t_1
else if (y <= 1.1d-10) then
tmp = b * (t * i)
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);
double t_2 = x * (y * z);
double tmp;
if (y <= -3.9e+81) {
tmp = t_2;
} else if (y <= -6.8e-119) {
tmp = t_1;
} else if (y <= 8e-304) {
tmp = i * (t * b);
} else if (y <= 6.2e-192) {
tmp = t_1;
} else if (y <= 1.1e-10) {
tmp = b * (t * i);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = x * (y * z) tmp = 0 if y <= -3.9e+81: tmp = t_2 elif y <= -6.8e-119: tmp = t_1 elif y <= 8e-304: tmp = i * (t * b) elif y <= 6.2e-192: tmp = t_1 elif y <= 1.1e-10: tmp = b * (t * i) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -3.9e+81) tmp = t_2; elseif (y <= -6.8e-119) tmp = t_1; elseif (y <= 8e-304) tmp = Float64(i * Float64(t * b)); elseif (y <= 6.2e-192) tmp = t_1; elseif (y <= 1.1e-10) tmp = Float64(b * Float64(t * i)); 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); t_2 = x * (y * z); tmp = 0.0; if (y <= -3.9e+81) tmp = t_2; elseif (y <= -6.8e-119) tmp = t_1; elseif (y <= 8e-304) tmp = i * (t * b); elseif (y <= 6.2e-192) tmp = t_1; elseif (y <= 1.1e-10) tmp = b * (t * i); 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[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.9e+81], t$95$2, If[LessEqual[y, -6.8e-119], t$95$1, If[LessEqual[y, 8e-304], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e-192], t$95$1, If[LessEqual[y, 1.1e-10], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -3.9 \cdot 10^{+81}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -6.8 \cdot 10^{-119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-304}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-192}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-10}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -3.9000000000000001e81 or 1.09999999999999995e-10 < y Initial program 71.4%
Taylor expanded in z around inf 50.8%
*-commutative50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in y around 0 44.7%
Taylor expanded in b around 0 37.1%
if -3.9000000000000001e81 < y < -6.80000000000000047e-119 or 7.99999999999999977e-304 < y < 6.2000000000000001e-192Initial program 74.9%
Taylor expanded in a around inf 53.4%
+-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in j around inf 40.0%
if -6.80000000000000047e-119 < y < 7.99999999999999977e-304Initial program 79.8%
+-commutative79.8%
fma-define84.8%
*-commutative84.8%
sub-neg84.8%
*-commutative84.8%
sub-neg84.8%
*-commutative84.8%
*-commutative84.8%
Simplified84.8%
Taylor expanded in x around -inf 85.1%
mul-1-neg85.1%
distribute-rgt-neg-in85.1%
+-commutative85.1%
mul-1-neg85.1%
unsub-neg85.1%
associate-/l*82.7%
Simplified82.7%
Taylor expanded in i around inf 60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in b around inf 57.7%
if 6.2000000000000001e-192 < y < 1.09999999999999995e-10Initial program 80.1%
+-commutative80.1%
fma-define80.1%
*-commutative80.1%
sub-neg80.1%
*-commutative80.1%
sub-neg80.1%
*-commutative80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in x around -inf 74.3%
mul-1-neg74.3%
distribute-rgt-neg-in74.3%
+-commutative74.3%
mul-1-neg74.3%
unsub-neg74.3%
associate-/l*72.0%
Simplified72.0%
Taylor expanded in x around 0 68.7%
+-commutative68.7%
*-commutative68.7%
sub-neg68.7%
sub-neg68.7%
mul-1-neg68.7%
unsub-neg68.7%
Simplified68.7%
Taylor expanded in t around inf 32.9%
Final simplification40.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -2.3e+25)
t_2
(if (<= a 2.7e-92)
t_1
(if (<= a 1e-81) (* x (* y z)) (if (<= a 9.6e+107) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.3e+25) {
tmp = t_2;
} else if (a <= 2.7e-92) {
tmp = t_1;
} else if (a <= 1e-81) {
tmp = x * (y * z);
} else if (a <= 9.6e+107) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-2.3d+25)) then
tmp = t_2
else if (a <= 2.7d-92) then
tmp = t_1
else if (a <= 1d-81) then
tmp = x * (y * z)
else if (a <= 9.6d+107) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.3e+25) {
tmp = t_2;
} else if (a <= 2.7e-92) {
tmp = t_1;
} else if (a <= 1e-81) {
tmp = x * (y * z);
} else if (a <= 9.6e+107) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -2.3e+25: tmp = t_2 elif a <= 2.7e-92: tmp = t_1 elif a <= 1e-81: tmp = x * (y * z) elif a <= 9.6e+107: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -2.3e+25) tmp = t_2; elseif (a <= 2.7e-92) tmp = t_1; elseif (a <= 1e-81) tmp = Float64(x * Float64(y * z)); elseif (a <= 9.6e+107) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -2.3e+25) tmp = t_2; elseif (a <= 2.7e-92) tmp = t_1; elseif (a <= 1e-81) tmp = x * (y * z); elseif (a <= 9.6e+107) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.3e+25], t$95$2, If[LessEqual[a, 2.7e-92], t$95$1, If[LessEqual[a, 1e-81], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.6e+107], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.3 \cdot 10^{+25}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 10^{-81}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 9.6 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.2999999999999998e25 or 9.6000000000000002e107 < a Initial program 68.9%
Taylor expanded in a around inf 61.1%
+-commutative61.1%
mul-1-neg61.1%
unsub-neg61.1%
*-commutative61.1%
Simplified61.1%
if -2.2999999999999998e25 < a < 2.69999999999999995e-92 or 9.9999999999999996e-82 < a < 9.6000000000000002e107Initial program 79.1%
Taylor expanded in b around inf 54.2%
if 2.69999999999999995e-92 < a < 9.9999999999999996e-82Initial program 82.8%
Taylor expanded in z around inf 84.5%
*-commutative84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in y around 0 99.5%
Taylor expanded in b around 0 95.1%
Final simplification57.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -1.7e+25)
t_1
(if (<= i 8.5e-84)
(* c (- (* a j) (* z b)))
(if (<= i 1.75e+52) (* b (- (* t i) (* z c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.7e+25) {
tmp = t_1;
} else if (i <= 8.5e-84) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 1.75e+52) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-1.7d+25)) then
tmp = t_1
else if (i <= 8.5d-84) then
tmp = c * ((a * j) - (z * b))
else if (i <= 1.75d+52) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.7e+25) {
tmp = t_1;
} else if (i <= 8.5e-84) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 1.75e+52) {
tmp = b * ((t * i) - (z * c));
} 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 <= -1.7e+25: tmp = t_1 elif i <= 8.5e-84: tmp = c * ((a * j) - (z * b)) elif i <= 1.75e+52: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.7e+25) tmp = t_1; elseif (i <= 8.5e-84) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 1.75e+52) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1.7e+25) tmp = t_1; elseif (i <= 8.5e-84) tmp = c * ((a * j) - (z * b)); elseif (i <= 1.75e+52) tmp = b * ((t * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.7e+25], t$95$1, If[LessEqual[i, 8.5e-84], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.75e+52], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $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 -1.7 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{-84}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 1.75 \cdot 10^{+52}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.69999999999999992e25 or 1.75e52 < i Initial program 70.3%
+-commutative70.3%
fma-define72.3%
*-commutative72.3%
sub-neg72.3%
*-commutative72.3%
sub-neg72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in x around -inf 71.3%
mul-1-neg71.3%
distribute-rgt-neg-in71.3%
+-commutative71.3%
mul-1-neg71.3%
unsub-neg71.3%
associate-/l*70.3%
Simplified70.3%
Taylor expanded in i around inf 69.7%
+-commutative69.7%
mul-1-neg69.7%
unsub-neg69.7%
*-commutative69.7%
Simplified69.7%
if -1.69999999999999992e25 < i < 8.4999999999999994e-84Initial program 80.2%
Taylor expanded in c around inf 48.0%
*-commutative48.0%
Simplified48.0%
if 8.4999999999999994e-84 < i < 1.75e52Initial program 72.7%
Taylor expanded in b around inf 52.7%
Final simplification57.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z c) (- b))))
(if (<= z -2.6e-48)
t_1
(if (<= z -6.6e-136)
(* a (* c j))
(if (<= z 8.6e-66) (* i (* t b)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * c) * -b;
double tmp;
if (z <= -2.6e-48) {
tmp = t_1;
} else if (z <= -6.6e-136) {
tmp = a * (c * j);
} else if (z <= 8.6e-66) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (z * c) * -b
if (z <= (-2.6d-48)) then
tmp = t_1
else if (z <= (-6.6d-136)) then
tmp = a * (c * j)
else if (z <= 8.6d-66) then
tmp = i * (t * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * c) * -b;
double tmp;
if (z <= -2.6e-48) {
tmp = t_1;
} else if (z <= -6.6e-136) {
tmp = a * (c * j);
} else if (z <= 8.6e-66) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * c) * -b tmp = 0 if z <= -2.6e-48: tmp = t_1 elif z <= -6.6e-136: tmp = a * (c * j) elif z <= 8.6e-66: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * c) * Float64(-b)) tmp = 0.0 if (z <= -2.6e-48) tmp = t_1; elseif (z <= -6.6e-136) tmp = Float64(a * Float64(c * j)); elseif (z <= 8.6e-66) tmp = Float64(i * Float64(t * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * c) * -b; tmp = 0.0; if (z <= -2.6e-48) tmp = t_1; elseif (z <= -6.6e-136) tmp = a * (c * j); elseif (z <= 8.6e-66) tmp = i * (t * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]}, If[LessEqual[z, -2.6e-48], t$95$1, If[LessEqual[z, -6.6e-136], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.6e-66], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{if}\;z \leq -2.6 \cdot 10^{-48}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -6.6 \cdot 10^{-136}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 8.6 \cdot 10^{-66}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.59999999999999987e-48 or 8.60000000000000027e-66 < z Initial program 72.6%
+-commutative72.6%
fma-define73.9%
*-commutative73.9%
sub-neg73.9%
*-commutative73.9%
sub-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in x around -inf 71.0%
mul-1-neg71.0%
distribute-rgt-neg-in71.0%
+-commutative71.0%
mul-1-neg71.0%
unsub-neg71.0%
associate-/l*69.7%
Simplified69.7%
Taylor expanded in x around 0 64.2%
+-commutative64.2%
*-commutative64.2%
sub-neg64.2%
sub-neg64.2%
mul-1-neg64.2%
unsub-neg64.2%
Simplified64.2%
Taylor expanded in z around inf 36.8%
neg-mul-136.8%
distribute-rgt-neg-in36.8%
distribute-rgt-neg-in36.8%
Simplified36.8%
if -2.59999999999999987e-48 < z < -6.60000000000000035e-136Initial program 77.1%
Taylor expanded in a around inf 64.0%
+-commutative64.0%
mul-1-neg64.0%
unsub-neg64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in j around inf 45.5%
if -6.60000000000000035e-136 < z < 8.60000000000000027e-66Initial program 79.6%
+-commutative79.6%
fma-define81.9%
*-commutative81.9%
sub-neg81.9%
*-commutative81.9%
sub-neg81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in x around -inf 79.6%
mul-1-neg79.6%
distribute-rgt-neg-in79.6%
+-commutative79.6%
mul-1-neg79.6%
unsub-neg79.6%
associate-/l*78.4%
Simplified78.4%
Taylor expanded in i around inf 62.2%
+-commutative62.2%
mul-1-neg62.2%
unsub-neg62.2%
*-commutative62.2%
Simplified62.2%
Taylor expanded in b around inf 38.4%
Final simplification37.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2.9e-46)
(* (* z c) (- b))
(if (<= z -1.4e-137)
(* a (* c j))
(if (<= z 8.8e-66) (* i (* t b)) (* c (* z (- b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.9e-46) {
tmp = (z * c) * -b;
} else if (z <= -1.4e-137) {
tmp = a * (c * j);
} else if (z <= 8.8e-66) {
tmp = i * (t * b);
} 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) :: tmp
if (z <= (-2.9d-46)) then
tmp = (z * c) * -b
else if (z <= (-1.4d-137)) then
tmp = a * (c * j)
else if (z <= 8.8d-66) then
tmp = i * (t * b)
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 tmp;
if (z <= -2.9e-46) {
tmp = (z * c) * -b;
} else if (z <= -1.4e-137) {
tmp = a * (c * j);
} else if (z <= 8.8e-66) {
tmp = i * (t * b);
} else {
tmp = c * (z * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.9e-46: tmp = (z * c) * -b elif z <= -1.4e-137: tmp = a * (c * j) elif z <= 8.8e-66: tmp = i * (t * b) else: tmp = c * (z * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.9e-46) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (z <= -1.4e-137) tmp = Float64(a * Float64(c * j)); elseif (z <= 8.8e-66) tmp = Float64(i * Float64(t * b)); 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) tmp = 0.0; if (z <= -2.9e-46) tmp = (z * c) * -b; elseif (z <= -1.4e-137) tmp = a * (c * j); elseif (z <= 8.8e-66) tmp = i * (t * b); else tmp = c * (z * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.9e-46], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[z, -1.4e-137], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.8e-66], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{-46}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-137}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 8.8 \cdot 10^{-66}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if z < -2.90000000000000005e-46Initial program 76.9%
+-commutative76.9%
fma-define79.4%
*-commutative79.4%
sub-neg79.4%
*-commutative79.4%
sub-neg79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in x around -inf 77.1%
mul-1-neg77.1%
distribute-rgt-neg-in77.1%
+-commutative77.1%
mul-1-neg77.1%
unsub-neg77.1%
associate-/l*77.1%
Simplified77.1%
Taylor expanded in x around 0 64.6%
+-commutative64.6%
*-commutative64.6%
sub-neg64.6%
sub-neg64.6%
mul-1-neg64.6%
unsub-neg64.6%
Simplified64.6%
Taylor expanded in z around inf 39.5%
neg-mul-139.5%
distribute-rgt-neg-in39.5%
distribute-rgt-neg-in39.5%
Simplified39.5%
if -2.90000000000000005e-46 < z < -1.3999999999999999e-137Initial program 77.1%
Taylor expanded in a around inf 64.0%
+-commutative64.0%
mul-1-neg64.0%
unsub-neg64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in j around inf 45.5%
if -1.3999999999999999e-137 < z < 8.8000000000000004e-66Initial program 79.6%
+-commutative79.6%
fma-define81.9%
*-commutative81.9%
sub-neg81.9%
*-commutative81.9%
sub-neg81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in x around -inf 79.6%
mul-1-neg79.6%
distribute-rgt-neg-in79.6%
+-commutative79.6%
mul-1-neg79.6%
unsub-neg79.6%
associate-/l*78.4%
Simplified78.4%
Taylor expanded in i around inf 62.2%
+-commutative62.2%
mul-1-neg62.2%
unsub-neg62.2%
*-commutative62.2%
Simplified62.2%
Taylor expanded in b around inf 38.4%
if 8.8000000000000004e-66 < z Initial program 67.5%
+-commutative67.5%
fma-define67.5%
*-commutative67.5%
sub-neg67.5%
*-commutative67.5%
sub-neg67.5%
*-commutative67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in x around -inf 63.9%
mul-1-neg63.9%
distribute-rgt-neg-in63.9%
+-commutative63.9%
mul-1-neg63.9%
unsub-neg63.9%
associate-/l*61.1%
Simplified61.1%
Taylor expanded in x around 0 63.8%
+-commutative63.8%
*-commutative63.8%
sub-neg63.8%
sub-neg63.8%
mul-1-neg63.8%
unsub-neg63.8%
Simplified63.8%
Taylor expanded in c around inf 59.8%
associate-*r*66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in j around 0 33.6%
mul-1-neg33.6%
*-commutative33.6%
associate-*l*36.4%
*-commutative36.4%
distribute-rgt-neg-in36.4%
distribute-rgt-neg-in36.4%
Simplified36.4%
Final simplification38.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.55e-48) (not (<= t 2.6e-34))) (* b (* t i)) (* 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 ((t <= -1.55e-48) || !(t <= 2.6e-34)) {
tmp = b * (t * i);
} 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 ((t <= (-1.55d-48)) .or. (.not. (t <= 2.6d-34))) then
tmp = b * (t * i)
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 ((t <= -1.55e-48) || !(t <= 2.6e-34)) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.55e-48) or not (t <= 2.6e-34): tmp = b * (t * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.55e-48) || !(t <= 2.6e-34)) tmp = Float64(b * Float64(t * i)); 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 ((t <= -1.55e-48) || ~((t <= 2.6e-34))) tmp = b * (t * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.55e-48], N[Not[LessEqual[t, 2.6e-34]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.55 \cdot 10^{-48} \lor \neg \left(t \leq 2.6 \cdot 10^{-34}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -1.55000000000000008e-48 or 2.5999999999999999e-34 < t Initial program 75.2%
+-commutative75.2%
fma-define76.7%
*-commutative76.7%
sub-neg76.7%
*-commutative76.7%
sub-neg76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in x around -inf 74.1%
mul-1-neg74.1%
distribute-rgt-neg-in74.1%
+-commutative74.1%
mul-1-neg74.1%
unsub-neg74.1%
associate-/l*73.3%
Simplified73.3%
Taylor expanded in x around 0 62.5%
+-commutative62.5%
*-commutative62.5%
sub-neg62.5%
sub-neg62.5%
mul-1-neg62.5%
unsub-neg62.5%
Simplified62.5%
Taylor expanded in t around inf 34.8%
if -1.55000000000000008e-48 < t < 2.5999999999999999e-34Initial program 75.3%
Taylor expanded in a around inf 31.1%
+-commutative31.1%
mul-1-neg31.1%
unsub-neg31.1%
*-commutative31.1%
Simplified31.1%
Taylor expanded in j around inf 27.3%
Final simplification31.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -1.7e-48) (* i (* t b)) (if (<= t 5.1e-37) (* a (* c j)) (* b (* t i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.7e-48) {
tmp = i * (t * b);
} else if (t <= 5.1e-37) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-1.7d-48)) then
tmp = i * (t * b)
else if (t <= 5.1d-37) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.7e-48) {
tmp = i * (t * b);
} else if (t <= 5.1e-37) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.7e-48: tmp = i * (t * b) elif t <= 5.1e-37: tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.7e-48) tmp = Float64(i * Float64(t * b)); elseif (t <= 5.1e-37) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.7e-48) tmp = i * (t * b); elseif (t <= 5.1e-37) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.7e-48], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.1e-37], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{-48}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{-37}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -1.70000000000000014e-48Initial program 75.3%
+-commutative75.3%
fma-define75.3%
*-commutative75.3%
sub-neg75.3%
*-commutative75.3%
sub-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in x around -inf 73.0%
mul-1-neg73.0%
distribute-rgt-neg-in73.0%
+-commutative73.0%
mul-1-neg73.0%
unsub-neg73.0%
associate-/l*70.5%
Simplified70.5%
Taylor expanded in i around inf 44.9%
+-commutative44.9%
mul-1-neg44.9%
unsub-neg44.9%
*-commutative44.9%
Simplified44.9%
Taylor expanded in b around inf 33.5%
if -1.70000000000000014e-48 < t < 5.1000000000000001e-37Initial program 75.3%
Taylor expanded in a around inf 31.1%
+-commutative31.1%
mul-1-neg31.1%
unsub-neg31.1%
*-commutative31.1%
Simplified31.1%
Taylor expanded in j around inf 27.3%
if 5.1000000000000001e-37 < t Initial program 75.2%
+-commutative75.2%
fma-define78.5%
*-commutative78.5%
sub-neg78.5%
*-commutative78.5%
sub-neg78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in x around -inf 75.5%
mul-1-neg75.5%
distribute-rgt-neg-in75.5%
+-commutative75.5%
mul-1-neg75.5%
unsub-neg75.5%
associate-/l*77.0%
Simplified77.0%
Taylor expanded in x around 0 63.9%
+-commutative63.9%
*-commutative63.9%
sub-neg63.9%
sub-neg63.9%
mul-1-neg63.9%
unsub-neg63.9%
Simplified63.9%
Taylor expanded in t around inf 42.1%
Final simplification32.7%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 75.3%
Taylor expanded in a around inf 34.0%
+-commutative34.0%
mul-1-neg34.0%
unsub-neg34.0%
*-commutative34.0%
Simplified34.0%
Taylor expanded in j around inf 22.4%
Final simplification22.4%
(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 2024095
(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)))))