
(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 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))))
(if (<= (+ t_1 (* j (- (* a c) (* y i)))) INFINITY)
(+ t_1 (* j (fma a c (* y (- i)))))
(* a (- (* c j) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
double tmp;
if ((t_1 + (j * ((a * c) - (y * i)))) <= ((double) INFINITY)) {
tmp = t_1 + (j * fma(a, c, (y * -i)));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) <= Inf) tmp = Float64(t_1 + Float64(j * fma(a, c, Float64(y * Float64(-i))))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(t$95$1 + N[(j * N[(a * c + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;t_1 + j \cdot \left(a \cdot c - y \cdot i\right) \leq \infty:\\
\;\;\;\;t_1 + j \cdot \mathsf{fma}\left(a, c, y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.5%
cancel-sign-sub91.5%
cancel-sign-sub-inv91.5%
*-commutative91.5%
remove-double-neg91.5%
*-commutative91.5%
Simplified91.5%
fma-neg91.5%
*-commutative91.5%
Applied egg-rr91.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
sub-neg0.0%
+-commutative0.0%
associate-+l+0.0%
distribute-rgt-neg-in0.0%
+-commutative0.0%
fma-def9.3%
sub-neg9.3%
+-commutative9.3%
distribute-neg-in9.3%
unsub-neg9.3%
remove-double-neg9.3%
*-commutative9.3%
Simplified20.9%
Taylor expanded in a around inf 49.3%
+-commutative49.3%
mul-1-neg49.3%
unsub-neg49.3%
Simplified49.3%
Final simplification84.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* a (- (* c j) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
sub-neg0.0%
+-commutative0.0%
associate-+l+0.0%
distribute-rgt-neg-in0.0%
+-commutative0.0%
fma-def9.3%
sub-neg9.3%
+-commutative9.3%
distribute-neg-in9.3%
unsub-neg9.3%
remove-double-neg9.3%
*-commutative9.3%
Simplified20.9%
Taylor expanded in a around inf 49.3%
+-commutative49.3%
mul-1-neg49.3%
unsub-neg49.3%
Simplified49.3%
Final simplification84.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* a j)))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (+ t_2 t_1))
(t_4 (* b (- (* t i) (* z c))))
(t_5 (* c (- (* a j) (* z b)))))
(if (<= c -2.2e+258)
t_5
(if (<= c -4.4e+169)
t_3
(if (<= c -4.2e+128)
t_5
(if (<= c -1.5e+27)
t_3
(if (<= c -1.25e-200)
(+ t_4 (* y (* x z)))
(if (<= c 5.8e-290)
(* t (- (* b i) (* x a)))
(if (<= c 9.5e-24)
(- t_2 (* i (* y j)))
(if (<= c 1.6e+162) (+ t_1 t_4) t_5))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (a * j);
double t_2 = x * ((y * z) - (t * a));
double t_3 = t_2 + t_1;
double t_4 = b * ((t * i) - (z * c));
double t_5 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.2e+258) {
tmp = t_5;
} else if (c <= -4.4e+169) {
tmp = t_3;
} else if (c <= -4.2e+128) {
tmp = t_5;
} else if (c <= -1.5e+27) {
tmp = t_3;
} else if (c <= -1.25e-200) {
tmp = t_4 + (y * (x * z));
} else if (c <= 5.8e-290) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 9.5e-24) {
tmp = t_2 - (i * (y * j));
} else if (c <= 1.6e+162) {
tmp = t_1 + t_4;
} else {
tmp = t_5;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = c * (a * j)
t_2 = x * ((y * z) - (t * a))
t_3 = t_2 + t_1
t_4 = b * ((t * i) - (z * c))
t_5 = c * ((a * j) - (z * b))
if (c <= (-2.2d+258)) then
tmp = t_5
else if (c <= (-4.4d+169)) then
tmp = t_3
else if (c <= (-4.2d+128)) then
tmp = t_5
else if (c <= (-1.5d+27)) then
tmp = t_3
else if (c <= (-1.25d-200)) then
tmp = t_4 + (y * (x * z))
else if (c <= 5.8d-290) then
tmp = t * ((b * i) - (x * a))
else if (c <= 9.5d-24) then
tmp = t_2 - (i * (y * j))
else if (c <= 1.6d+162) then
tmp = t_1 + t_4
else
tmp = t_5
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (a * j);
double t_2 = x * ((y * z) - (t * a));
double t_3 = t_2 + t_1;
double t_4 = b * ((t * i) - (z * c));
double t_5 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.2e+258) {
tmp = t_5;
} else if (c <= -4.4e+169) {
tmp = t_3;
} else if (c <= -4.2e+128) {
tmp = t_5;
} else if (c <= -1.5e+27) {
tmp = t_3;
} else if (c <= -1.25e-200) {
tmp = t_4 + (y * (x * z));
} else if (c <= 5.8e-290) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 9.5e-24) {
tmp = t_2 - (i * (y * j));
} else if (c <= 1.6e+162) {
tmp = t_1 + t_4;
} else {
tmp = t_5;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (a * j) t_2 = x * ((y * z) - (t * a)) t_3 = t_2 + t_1 t_4 = b * ((t * i) - (z * c)) t_5 = c * ((a * j) - (z * b)) tmp = 0 if c <= -2.2e+258: tmp = t_5 elif c <= -4.4e+169: tmp = t_3 elif c <= -4.2e+128: tmp = t_5 elif c <= -1.5e+27: tmp = t_3 elif c <= -1.25e-200: tmp = t_4 + (y * (x * z)) elif c <= 5.8e-290: tmp = t * ((b * i) - (x * a)) elif c <= 9.5e-24: tmp = t_2 - (i * (y * j)) elif c <= 1.6e+162: tmp = t_1 + t_4 else: tmp = t_5 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(a * j)) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(t_2 + t_1) t_4 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_5 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.2e+258) tmp = t_5; elseif (c <= -4.4e+169) tmp = t_3; elseif (c <= -4.2e+128) tmp = t_5; elseif (c <= -1.5e+27) tmp = t_3; elseif (c <= -1.25e-200) tmp = Float64(t_4 + Float64(y * Float64(x * z))); elseif (c <= 5.8e-290) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 9.5e-24) tmp = Float64(t_2 - Float64(i * Float64(y * j))); elseif (c <= 1.6e+162) tmp = Float64(t_1 + t_4); else tmp = t_5; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (a * j); t_2 = x * ((y * z) - (t * a)); t_3 = t_2 + t_1; t_4 = b * ((t * i) - (z * c)); t_5 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -2.2e+258) tmp = t_5; elseif (c <= -4.4e+169) tmp = t_3; elseif (c <= -4.2e+128) tmp = t_5; elseif (c <= -1.5e+27) tmp = t_3; elseif (c <= -1.25e-200) tmp = t_4 + (y * (x * z)); elseif (c <= 5.8e-290) tmp = t * ((b * i) - (x * a)); elseif (c <= 9.5e-24) tmp = t_2 - (i * (y * j)); elseif (c <= 1.6e+162) tmp = t_1 + t_4; else tmp = t_5; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + t$95$1), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.2e+258], t$95$5, If[LessEqual[c, -4.4e+169], t$95$3, If[LessEqual[c, -4.2e+128], t$95$5, If[LessEqual[c, -1.5e+27], t$95$3, If[LessEqual[c, -1.25e-200], N[(t$95$4 + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.8e-290], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.5e-24], N[(t$95$2 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.6e+162], N[(t$95$1 + t$95$4), $MachinePrecision], t$95$5]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := t_2 + t_1\\
t_4 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_5 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.2 \cdot 10^{+258}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;c \leq -4.4 \cdot 10^{+169}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -4.2 \cdot 10^{+128}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;c \leq -1.5 \cdot 10^{+27}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -1.25 \cdot 10^{-200}:\\
\;\;\;\;t_4 + y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 5.8 \cdot 10^{-290}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{-24}:\\
\;\;\;\;t_2 - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{+162}:\\
\;\;\;\;t_1 + t_4\\
\mathbf{else}:\\
\;\;\;\;t_5\\
\end{array}
\end{array}
if c < -2.19999999999999983e258 or -4.4e169 < c < -4.1999999999999999e128 or 1.6000000000000001e162 < c Initial program 55.0%
sub-neg55.0%
+-commutative55.0%
associate-+l+55.0%
distribute-rgt-neg-in55.0%
+-commutative55.0%
fma-def58.6%
sub-neg58.6%
+-commutative58.6%
distribute-neg-in58.6%
unsub-neg58.6%
remove-double-neg58.6%
*-commutative58.6%
Simplified65.9%
Taylor expanded in c around inf 82.1%
distribute-rgt-in74.9%
*-commutative74.9%
mul-1-neg74.9%
cancel-sign-sub-inv74.9%
*-commutative74.9%
distribute-lft-out--82.1%
Simplified82.1%
if -2.19999999999999983e258 < c < -4.4e169 or -4.1999999999999999e128 < c < -1.49999999999999988e27Initial program 66.5%
+-commutative66.5%
fma-def66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in i around 0 79.5%
Taylor expanded in b around 0 86.6%
if -1.49999999999999988e27 < c < -1.24999999999999998e-200Initial program 89.6%
sub-neg89.6%
+-commutative89.6%
associate-+l+89.6%
distribute-rgt-neg-in89.6%
+-commutative89.6%
fma-def89.6%
sub-neg89.6%
+-commutative89.6%
distribute-neg-in89.6%
unsub-neg89.6%
remove-double-neg89.6%
*-commutative89.6%
Simplified89.6%
Taylor expanded in a around 0 84.3%
associate-+r+84.3%
mul-1-neg84.3%
distribute-rgt-neg-in84.3%
mul-1-neg84.3%
distribute-lft-in87.0%
mul-1-neg87.0%
unsub-neg87.0%
*-commutative87.0%
Simplified87.0%
Taylor expanded in j around 0 72.3%
if -1.24999999999999998e-200 < c < 5.79999999999999989e-290Initial program 84.1%
sub-neg84.1%
+-commutative84.1%
associate-+l+84.1%
distribute-rgt-neg-in84.1%
+-commutative84.1%
fma-def84.1%
sub-neg84.1%
+-commutative84.1%
distribute-neg-in84.1%
unsub-neg84.1%
remove-double-neg84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in t around inf 74.1%
Taylor expanded in i around 0 51.8%
mul-1-neg51.8%
unsub-neg51.8%
*-commutative51.8%
associate-*r*61.7%
cancel-sign-sub-inv61.7%
*-commutative61.7%
associate-*l*74.1%
distribute-rgt-in74.1%
unsub-neg74.1%
Simplified74.1%
if 5.79999999999999989e-290 < c < 9.50000000000000029e-24Initial program 87.3%
sub-neg87.3%
+-commutative87.3%
associate-+l+87.3%
distribute-rgt-neg-in87.3%
+-commutative87.3%
fma-def88.9%
sub-neg88.9%
+-commutative88.9%
distribute-neg-in88.9%
unsub-neg88.9%
remove-double-neg88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in c around 0 81.0%
+-commutative81.0%
remove-double-neg81.0%
mul-1-neg81.0%
associate-+l+81.0%
+-commutative81.0%
mul-1-neg81.0%
remove-double-neg81.0%
mul-1-neg81.0%
associate-*r*82.6%
*-commutative82.6%
associate-*r*81.1%
distribute-rgt-neg-in81.1%
mul-1-neg81.1%
distribute-lft-in82.7%
mul-1-neg82.7%
unsub-neg82.7%
Simplified82.7%
Taylor expanded in b around 0 71.8%
*-commutative71.8%
mul-1-neg71.8%
associate-*r*73.4%
distribute-lft-neg-in73.4%
cancel-sign-sub-inv73.4%
associate-*r*71.8%
Simplified71.8%
if 9.50000000000000029e-24 < c < 1.6000000000000001e162Initial program 76.2%
sub-neg76.2%
+-commutative76.2%
associate-+l+76.2%
distribute-rgt-neg-in76.2%
+-commutative76.2%
fma-def76.3%
sub-neg76.3%
+-commutative76.3%
distribute-neg-in76.3%
unsub-neg76.3%
remove-double-neg76.3%
*-commutative76.3%
Simplified78.7%
Taylor expanded in y around 0 67.2%
+-commutative67.2%
associate-+r+67.2%
+-commutative67.2%
*-commutative67.2%
associate-*r*67.2%
*-commutative67.2%
associate-*r*67.2%
distribute-rgt-in74.3%
mul-1-neg74.3%
unsub-neg74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in x around 0 69.7%
Final simplification75.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (- t_2 (* i (* y j))))
(t_4 (+ (* a (- (* c j) (* x t))) t_1)))
(if (<= x -7.5e+208)
t_3
(if (<= x -1.55e+88)
(+ t_2 (* c (* a j)))
(if (<= x -7e+44)
(- t_1 (* j (* y i)))
(if (<= x 520000000.0)
t_4
(if (<= x 1.02e+99)
(* y (- (* x z) (* i j)))
(if (<= x 7.8e+148) t_4 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 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = t_2 - (i * (y * j));
double t_4 = (a * ((c * j) - (x * t))) + t_1;
double tmp;
if (x <= -7.5e+208) {
tmp = t_3;
} else if (x <= -1.55e+88) {
tmp = t_2 + (c * (a * j));
} else if (x <= -7e+44) {
tmp = t_1 - (j * (y * i));
} else if (x <= 520000000.0) {
tmp = t_4;
} else if (x <= 1.02e+99) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 7.8e+148) {
tmp = t_4;
} 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) :: t_4
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = x * ((y * z) - (t * a))
t_3 = t_2 - (i * (y * j))
t_4 = (a * ((c * j) - (x * t))) + t_1
if (x <= (-7.5d+208)) then
tmp = t_3
else if (x <= (-1.55d+88)) then
tmp = t_2 + (c * (a * j))
else if (x <= (-7d+44)) then
tmp = t_1 - (j * (y * i))
else if (x <= 520000000.0d0) then
tmp = t_4
else if (x <= 1.02d+99) then
tmp = y * ((x * z) - (i * j))
else if (x <= 7.8d+148) then
tmp = t_4
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 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = t_2 - (i * (y * j));
double t_4 = (a * ((c * j) - (x * t))) + t_1;
double tmp;
if (x <= -7.5e+208) {
tmp = t_3;
} else if (x <= -1.55e+88) {
tmp = t_2 + (c * (a * j));
} else if (x <= -7e+44) {
tmp = t_1 - (j * (y * i));
} else if (x <= 520000000.0) {
tmp = t_4;
} else if (x <= 1.02e+99) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 7.8e+148) {
tmp = t_4;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = x * ((y * z) - (t * a)) t_3 = t_2 - (i * (y * j)) t_4 = (a * ((c * j) - (x * t))) + t_1 tmp = 0 if x <= -7.5e+208: tmp = t_3 elif x <= -1.55e+88: tmp = t_2 + (c * (a * j)) elif x <= -7e+44: tmp = t_1 - (j * (y * i)) elif x <= 520000000.0: tmp = t_4 elif x <= 1.02e+99: tmp = y * ((x * z) - (i * j)) elif x <= 7.8e+148: tmp = t_4 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(t_2 - Float64(i * Float64(y * j))) t_4 = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + t_1) tmp = 0.0 if (x <= -7.5e+208) tmp = t_3; elseif (x <= -1.55e+88) tmp = Float64(t_2 + Float64(c * Float64(a * j))); elseif (x <= -7e+44) tmp = Float64(t_1 - Float64(j * Float64(y * i))); elseif (x <= 520000000.0) tmp = t_4; elseif (x <= 1.02e+99) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (x <= 7.8e+148) tmp = t_4; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = x * ((y * z) - (t * a)); t_3 = t_2 - (i * (y * j)); t_4 = (a * ((c * j) - (x * t))) + t_1; tmp = 0.0; if (x <= -7.5e+208) tmp = t_3; elseif (x <= -1.55e+88) tmp = t_2 + (c * (a * j)); elseif (x <= -7e+44) tmp = t_1 - (j * (y * i)); elseif (x <= 520000000.0) tmp = t_4; elseif (x <= 1.02e+99) tmp = y * ((x * z) - (i * j)); elseif (x <= 7.8e+148) tmp = t_4; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[x, -7.5e+208], t$95$3, If[LessEqual[x, -1.55e+88], N[(t$95$2 + N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7e+44], N[(t$95$1 - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 520000000.0], t$95$4, If[LessEqual[x, 1.02e+99], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e+148], t$95$4, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := t_2 - i \cdot \left(y \cdot j\right)\\
t_4 := a \cdot \left(c \cdot j - x \cdot t\right) + t_1\\
\mathbf{if}\;x \leq -7.5 \cdot 10^{+208}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.55 \cdot 10^{+88}:\\
\;\;\;\;t_2 + c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;x \leq -7 \cdot 10^{+44}:\\
\;\;\;\;t_1 - j \cdot \left(y \cdot i\right)\\
\mathbf{elif}\;x \leq 520000000:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq 1.02 \cdot 10^{+99}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{+148}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -7.49999999999999964e208 or 7.80000000000000004e148 < x Initial program 76.0%
sub-neg76.0%
+-commutative76.0%
associate-+l+76.0%
distribute-rgt-neg-in76.0%
+-commutative76.0%
fma-def77.8%
sub-neg77.8%
+-commutative77.8%
distribute-neg-in77.8%
unsub-neg77.8%
remove-double-neg77.8%
*-commutative77.8%
Simplified79.6%
Taylor expanded in c around 0 78.3%
+-commutative78.3%
remove-double-neg78.3%
mul-1-neg78.3%
associate-+l+78.3%
+-commutative78.3%
mul-1-neg78.3%
remove-double-neg78.3%
mul-1-neg78.3%
associate-*r*81.9%
*-commutative81.9%
associate-*r*83.5%
distribute-rgt-neg-in83.5%
mul-1-neg83.5%
distribute-lft-in83.5%
mul-1-neg83.5%
unsub-neg83.5%
Simplified83.5%
Taylor expanded in b around 0 82.5%
*-commutative82.5%
mul-1-neg82.5%
associate-*r*81.9%
distribute-lft-neg-in81.9%
cancel-sign-sub-inv81.9%
associate-*r*82.5%
Simplified82.5%
if -7.49999999999999964e208 < x < -1.5500000000000001e88Initial program 71.1%
+-commutative71.1%
fma-def71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in i around 0 64.9%
Taylor expanded in b around 0 71.5%
if -1.5500000000000001e88 < x < -6.9999999999999998e44Initial program 77.6%
sub-neg77.6%
+-commutative77.6%
associate-+l+77.6%
distribute-rgt-neg-in77.6%
+-commutative77.6%
fma-def77.6%
sub-neg77.6%
+-commutative77.6%
distribute-neg-in77.6%
unsub-neg77.6%
remove-double-neg77.6%
*-commutative77.6%
Simplified88.7%
Taylor expanded in a around 0 67.9%
associate-+r+67.9%
mul-1-neg67.9%
distribute-rgt-neg-in67.9%
mul-1-neg67.9%
distribute-lft-in67.9%
mul-1-neg67.9%
unsub-neg67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in x around 0 79.0%
+-commutative79.0%
*-commutative79.0%
mul-1-neg79.0%
unsub-neg79.0%
*-commutative79.0%
associate-*r*79.0%
*-commutative79.0%
Simplified79.0%
if -6.9999999999999998e44 < x < 5.2e8 or 1.01999999999999998e99 < x < 7.80000000000000004e148Initial program 78.9%
sub-neg78.9%
+-commutative78.9%
associate-+l+78.9%
distribute-rgt-neg-in78.9%
+-commutative78.9%
fma-def78.9%
sub-neg78.9%
+-commutative78.9%
distribute-neg-in78.9%
unsub-neg78.9%
remove-double-neg78.9%
*-commutative78.9%
Simplified79.6%
Taylor expanded in y around 0 72.1%
+-commutative72.1%
associate-+r+72.1%
+-commutative72.1%
*-commutative72.1%
associate-*r*70.6%
*-commutative70.6%
associate-*r*70.6%
distribute-rgt-in72.0%
mul-1-neg72.0%
unsub-neg72.0%
*-commutative72.0%
Simplified72.0%
if 5.2e8 < x < 1.01999999999999998e99Initial program 63.7%
sub-neg63.7%
+-commutative63.7%
associate-+l+63.7%
distribute-rgt-neg-in63.7%
+-commutative63.7%
fma-def74.2%
sub-neg74.2%
+-commutative74.2%
distribute-neg-in74.2%
unsub-neg74.2%
remove-double-neg74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in y around inf 74.7%
*-commutative74.7%
mul-1-neg74.7%
unsub-neg74.7%
Simplified74.7%
Final simplification74.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a))))
(t_2 (* b (- (* t i) (* z c))))
(t_3 (+ t_2 (* y (* x z))))
(t_4 (* c (- (* a j) (* z b)))))
(if (<= c -8.2e+105)
t_4
(if (<= c -8.2e-199)
t_3
(if (<= c 1.3e-216)
t_1
(if (<= c 7.2e-111)
t_3
(if (<= c 6e-98)
t_1
(if (<= c 2.1e-25)
(* x (- (* y z) (* t a)))
(if (<= c 9.6e+160) (+ (* c (* a j)) t_2) t_4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = b * ((t * i) - (z * c));
double t_3 = t_2 + (y * (x * z));
double t_4 = c * ((a * j) - (z * b));
double tmp;
if (c <= -8.2e+105) {
tmp = t_4;
} else if (c <= -8.2e-199) {
tmp = t_3;
} else if (c <= 1.3e-216) {
tmp = t_1;
} else if (c <= 7.2e-111) {
tmp = t_3;
} else if (c <= 6e-98) {
tmp = t_1;
} else if (c <= 2.1e-25) {
tmp = x * ((y * z) - (t * a));
} else if (c <= 9.6e+160) {
tmp = (c * (a * j)) + t_2;
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
t_2 = b * ((t * i) - (z * c))
t_3 = t_2 + (y * (x * z))
t_4 = c * ((a * j) - (z * b))
if (c <= (-8.2d+105)) then
tmp = t_4
else if (c <= (-8.2d-199)) then
tmp = t_3
else if (c <= 1.3d-216) then
tmp = t_1
else if (c <= 7.2d-111) then
tmp = t_3
else if (c <= 6d-98) then
tmp = t_1
else if (c <= 2.1d-25) then
tmp = x * ((y * z) - (t * a))
else if (c <= 9.6d+160) then
tmp = (c * (a * j)) + t_2
else
tmp = t_4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = b * ((t * i) - (z * c));
double t_3 = t_2 + (y * (x * z));
double t_4 = c * ((a * j) - (z * b));
double tmp;
if (c <= -8.2e+105) {
tmp = t_4;
} else if (c <= -8.2e-199) {
tmp = t_3;
} else if (c <= 1.3e-216) {
tmp = t_1;
} else if (c <= 7.2e-111) {
tmp = t_3;
} else if (c <= 6e-98) {
tmp = t_1;
} else if (c <= 2.1e-25) {
tmp = x * ((y * z) - (t * a));
} else if (c <= 9.6e+160) {
tmp = (c * (a * j)) + t_2;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = b * ((t * i) - (z * c)) t_3 = t_2 + (y * (x * z)) t_4 = c * ((a * j) - (z * b)) tmp = 0 if c <= -8.2e+105: tmp = t_4 elif c <= -8.2e-199: tmp = t_3 elif c <= 1.3e-216: tmp = t_1 elif c <= 7.2e-111: tmp = t_3 elif c <= 6e-98: tmp = t_1 elif c <= 2.1e-25: tmp = x * ((y * z) - (t * a)) elif c <= 9.6e+160: tmp = (c * (a * j)) + t_2 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_3 = Float64(t_2 + Float64(y * Float64(x * z))) t_4 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -8.2e+105) tmp = t_4; elseif (c <= -8.2e-199) tmp = t_3; elseif (c <= 1.3e-216) tmp = t_1; elseif (c <= 7.2e-111) tmp = t_3; elseif (c <= 6e-98) tmp = t_1; elseif (c <= 2.1e-25) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (c <= 9.6e+160) tmp = Float64(Float64(c * Float64(a * j)) + t_2); else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); t_2 = b * ((t * i) - (z * c)); t_3 = t_2 + (y * (x * z)); t_4 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -8.2e+105) tmp = t_4; elseif (c <= -8.2e-199) tmp = t_3; elseif (c <= 1.3e-216) tmp = t_1; elseif (c <= 7.2e-111) tmp = t_3; elseif (c <= 6e-98) tmp = t_1; elseif (c <= 2.1e-25) tmp = x * ((y * z) - (t * a)); elseif (c <= 9.6e+160) tmp = (c * (a * j)) + t_2; else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8.2e+105], t$95$4, If[LessEqual[c, -8.2e-199], t$95$3, If[LessEqual[c, 1.3e-216], t$95$1, If[LessEqual[c, 7.2e-111], t$95$3, If[LessEqual[c, 6e-98], t$95$1, If[LessEqual[c, 2.1e-25], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.6e+160], N[(N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], t$95$4]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := t_2 + y \cdot \left(x \cdot z\right)\\
t_4 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -8.2 \cdot 10^{+105}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;c \leq -8.2 \cdot 10^{-199}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq 1.3 \cdot 10^{-216}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{-111}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq 6 \cdot 10^{-98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.1 \cdot 10^{-25}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;c \leq 9.6 \cdot 10^{+160}:\\
\;\;\;\;c \cdot \left(a \cdot j\right) + t_2\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\end{array}
if c < -8.2000000000000005e105 or 9.6000000000000006e160 < c Initial program 56.2%
sub-neg56.2%
+-commutative56.2%
associate-+l+56.2%
distribute-rgt-neg-in56.2%
+-commutative56.2%
fma-def60.4%
sub-neg60.4%
+-commutative60.4%
distribute-neg-in60.4%
unsub-neg60.4%
remove-double-neg60.4%
*-commutative60.4%
Simplified65.9%
Taylor expanded in c around inf 74.8%
distribute-rgt-in69.2%
*-commutative69.2%
mul-1-neg69.2%
cancel-sign-sub-inv69.2%
*-commutative69.2%
distribute-lft-out--74.8%
Simplified74.8%
if -8.2000000000000005e105 < c < -8.20000000000000043e-199 or 1.2999999999999999e-216 < c < 7.20000000000000019e-111Initial program 87.6%
sub-neg87.6%
+-commutative87.6%
associate-+l+87.6%
distribute-rgt-neg-in87.6%
+-commutative87.6%
fma-def89.0%
sub-neg89.0%
+-commutative89.0%
distribute-neg-in89.0%
unsub-neg89.0%
remove-double-neg89.0%
*-commutative89.0%
Simplified89.0%
Taylor expanded in a around 0 76.5%
associate-+r+76.5%
mul-1-neg76.5%
distribute-rgt-neg-in76.5%
mul-1-neg76.5%
distribute-lft-in77.8%
mul-1-neg77.8%
unsub-neg77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in j around 0 67.4%
if -8.20000000000000043e-199 < c < 1.2999999999999999e-216 or 7.20000000000000019e-111 < c < 6e-98Initial program 80.5%
sub-neg80.5%
+-commutative80.5%
associate-+l+80.5%
distribute-rgt-neg-in80.5%
+-commutative80.5%
fma-def80.5%
sub-neg80.5%
+-commutative80.5%
distribute-neg-in80.5%
unsub-neg80.5%
remove-double-neg80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in t around inf 70.3%
Taylor expanded in i around 0 50.7%
mul-1-neg50.7%
unsub-neg50.7%
*-commutative50.7%
associate-*r*60.7%
cancel-sign-sub-inv60.7%
*-commutative60.7%
associate-*l*68.3%
distribute-rgt-in70.3%
unsub-neg70.3%
Simplified70.3%
if 6e-98 < c < 2.10000000000000002e-25Initial program 94.9%
sub-neg94.9%
+-commutative94.9%
associate-+l+94.9%
distribute-rgt-neg-in94.9%
+-commutative94.9%
fma-def94.9%
sub-neg94.9%
+-commutative94.9%
distribute-neg-in94.9%
unsub-neg94.9%
remove-double-neg94.9%
*-commutative94.9%
Simplified94.8%
Taylor expanded in x around inf 76.5%
if 2.10000000000000002e-25 < c < 9.6000000000000006e160Initial program 76.2%
sub-neg76.2%
+-commutative76.2%
associate-+l+76.2%
distribute-rgt-neg-in76.2%
+-commutative76.2%
fma-def76.3%
sub-neg76.3%
+-commutative76.3%
distribute-neg-in76.3%
unsub-neg76.3%
remove-double-neg76.3%
*-commutative76.3%
Simplified78.7%
Taylor expanded in y around 0 67.2%
+-commutative67.2%
associate-+r+67.2%
+-commutative67.2%
*-commutative67.2%
associate-*r*67.2%
*-commutative67.2%
associate-*r*67.2%
distribute-rgt-in74.3%
mul-1-neg74.3%
unsub-neg74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in x around 0 69.7%
Final simplification71.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* c (* z b)))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= c -2.7e+27)
(- (+ t_3 (* c (* a j))) t_2)
(if (<= c -1.75e-228)
(+ (* y (- (* x z) (* i j))) t_1)
(if (<= c 1.7e-7)
(+ t_3 (* i (- (* t b) (* y j))))
(if (<= c 3.8e+15)
(- (* j (- (* a c) (* y i))) t_2)
(if (<= c 8.6e+97)
(+ (* a (- (* c j) (* x t))) t_1)
(* c (- (* a j) (* z b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = c * (z * b);
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (c <= -2.7e+27) {
tmp = (t_3 + (c * (a * j))) - t_2;
} else if (c <= -1.75e-228) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else if (c <= 1.7e-7) {
tmp = t_3 + (i * ((t * b) - (y * j)));
} else if (c <= 3.8e+15) {
tmp = (j * ((a * c) - (y * i))) - t_2;
} else if (c <= 8.6e+97) {
tmp = (a * ((c * j) - (x * t))) + t_1;
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = c * (z * b)
t_3 = x * ((y * z) - (t * a))
if (c <= (-2.7d+27)) then
tmp = (t_3 + (c * (a * j))) - t_2
else if (c <= (-1.75d-228)) then
tmp = (y * ((x * z) - (i * j))) + t_1
else if (c <= 1.7d-7) then
tmp = t_3 + (i * ((t * b) - (y * j)))
else if (c <= 3.8d+15) then
tmp = (j * ((a * c) - (y * i))) - t_2
else if (c <= 8.6d+97) then
tmp = (a * ((c * j) - (x * t))) + t_1
else
tmp = c * ((a * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = c * (z * b);
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (c <= -2.7e+27) {
tmp = (t_3 + (c * (a * j))) - t_2;
} else if (c <= -1.75e-228) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else if (c <= 1.7e-7) {
tmp = t_3 + (i * ((t * b) - (y * j)));
} else if (c <= 3.8e+15) {
tmp = (j * ((a * c) - (y * i))) - t_2;
} else if (c <= 8.6e+97) {
tmp = (a * ((c * j) - (x * t))) + t_1;
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = c * (z * b) t_3 = x * ((y * z) - (t * a)) tmp = 0 if c <= -2.7e+27: tmp = (t_3 + (c * (a * j))) - t_2 elif c <= -1.75e-228: tmp = (y * ((x * z) - (i * j))) + t_1 elif c <= 1.7e-7: tmp = t_3 + (i * ((t * b) - (y * j))) elif c <= 3.8e+15: tmp = (j * ((a * c) - (y * i))) - t_2 elif c <= 8.6e+97: tmp = (a * ((c * j) - (x * t))) + t_1 else: tmp = c * ((a * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(c * Float64(z * b)) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (c <= -2.7e+27) tmp = Float64(Float64(t_3 + Float64(c * Float64(a * j))) - t_2); elseif (c <= -1.75e-228) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1); elseif (c <= 1.7e-7) tmp = Float64(t_3 + Float64(i * Float64(Float64(t * b) - Float64(y * j)))); elseif (c <= 3.8e+15) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - t_2); elseif (c <= 8.6e+97) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + t_1); else tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = c * (z * b); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (c <= -2.7e+27) tmp = (t_3 + (c * (a * j))) - t_2; elseif (c <= -1.75e-228) tmp = (y * ((x * z) - (i * j))) + t_1; elseif (c <= 1.7e-7) tmp = t_3 + (i * ((t * b) - (y * j))); elseif (c <= 3.8e+15) tmp = (j * ((a * c) - (y * i))) - t_2; elseif (c <= 8.6e+97) tmp = (a * ((c * j) - (x * t))) + t_1; else tmp = c * ((a * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.7e+27], N[(N[(t$95$3 + N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[c, -1.75e-228], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[c, 1.7e-7], N[(t$95$3 + N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.8e+15], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[c, 8.6e+97], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := c \cdot \left(z \cdot b\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;c \leq -2.7 \cdot 10^{+27}:\\
\;\;\;\;\left(t_3 + c \cdot \left(a \cdot j\right)\right) - t_2\\
\mathbf{elif}\;c \leq -1.75 \cdot 10^{-228}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t_1\\
\mathbf{elif}\;c \leq 1.7 \cdot 10^{-7}:\\
\;\;\;\;t_3 + i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 3.8 \cdot 10^{+15}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - t_2\\
\mathbf{elif}\;c \leq 8.6 \cdot 10^{+97}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + t_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if c < -2.6999999999999997e27Initial program 64.7%
+-commutative64.7%
fma-def64.7%
*-commutative64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in i around 0 74.4%
if -2.6999999999999997e27 < c < -1.74999999999999987e-228Initial program 87.4%
sub-neg87.4%
+-commutative87.4%
associate-+l+87.4%
distribute-rgt-neg-in87.4%
+-commutative87.4%
fma-def87.4%
sub-neg87.4%
+-commutative87.4%
distribute-neg-in87.4%
unsub-neg87.4%
remove-double-neg87.4%
*-commutative87.4%
Simplified87.4%
Taylor expanded in a around 0 79.2%
associate-+r+79.2%
mul-1-neg79.2%
distribute-rgt-neg-in79.2%
mul-1-neg79.2%
distribute-lft-in81.3%
mul-1-neg81.3%
unsub-neg81.3%
*-commutative81.3%
Simplified81.3%
if -1.74999999999999987e-228 < c < 1.69999999999999987e-7Initial program 87.4%
sub-neg87.4%
+-commutative87.4%
associate-+l+87.4%
distribute-rgt-neg-in87.4%
+-commutative87.4%
fma-def88.6%
sub-neg88.6%
+-commutative88.6%
distribute-neg-in88.6%
unsub-neg88.6%
remove-double-neg88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in c around 0 82.1%
+-commutative82.1%
remove-double-neg82.1%
mul-1-neg82.1%
associate-+l+82.1%
+-commutative82.1%
mul-1-neg82.1%
remove-double-neg82.1%
mul-1-neg82.1%
associate-*r*83.3%
*-commutative83.3%
associate-*r*82.2%
distribute-rgt-neg-in82.2%
mul-1-neg82.2%
distribute-lft-in83.3%
mul-1-neg83.3%
unsub-neg83.3%
Simplified83.3%
if 1.69999999999999987e-7 < c < 3.8e15Initial program 99.8%
cancel-sign-sub99.8%
cancel-sign-sub-inv99.8%
*-commutative99.8%
remove-double-neg99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in c around inf 99.8%
associate-*r*99.8%
neg-mul-199.8%
*-commutative99.8%
Simplified99.8%
if 3.8e15 < c < 8.5999999999999996e97Initial program 57.6%
sub-neg57.6%
+-commutative57.6%
associate-+l+57.6%
distribute-rgt-neg-in57.6%
+-commutative57.6%
fma-def57.6%
sub-neg57.6%
+-commutative57.6%
distribute-neg-in57.6%
unsub-neg57.6%
remove-double-neg57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in y around 0 57.8%
+-commutative57.8%
associate-+r+57.8%
+-commutative57.8%
*-commutative57.8%
associate-*r*57.8%
*-commutative57.8%
associate-*r*57.8%
distribute-rgt-in72.1%
mul-1-neg72.1%
unsub-neg72.1%
*-commutative72.1%
Simplified72.1%
if 8.5999999999999996e97 < c Initial program 60.7%
sub-neg60.7%
+-commutative60.7%
associate-+l+60.7%
distribute-rgt-neg-in60.7%
+-commutative60.7%
fma-def62.6%
sub-neg62.6%
+-commutative62.6%
distribute-neg-in62.6%
unsub-neg62.6%
remove-double-neg62.6%
*-commutative62.6%
Simplified72.0%
Taylor expanded in c around inf 81.5%
distribute-rgt-in77.7%
*-commutative77.7%
mul-1-neg77.7%
cancel-sign-sub-inv77.7%
*-commutative77.7%
distribute-lft-out--81.5%
Simplified81.5%
Final simplification80.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* b (- (* t i) (* z c))) (* y (* x z))))
(t_2 (* c (- (* a j) (* z b)))))
(if (<= c -2.4e+97)
t_2
(if (<= c -3.8e-199)
t_1
(if (<= c 4.6e-219)
(* t (- (* b i) (* x a)))
(if (<= c 1.05e-149)
t_1
(if (<= c 3e-72)
(* x (- (* y z) (* t a)))
(if (<= c 2.9e+94) 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))) + (y * (x * z));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.4e+97) {
tmp = t_2;
} else if (c <= -3.8e-199) {
tmp = t_1;
} else if (c <= 4.6e-219) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 1.05e-149) {
tmp = t_1;
} else if (c <= 3e-72) {
tmp = x * ((y * z) - (t * a));
} else if (c <= 2.9e+94) {
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))) + (y * (x * z))
t_2 = c * ((a * j) - (z * b))
if (c <= (-2.4d+97)) then
tmp = t_2
else if (c <= (-3.8d-199)) then
tmp = t_1
else if (c <= 4.6d-219) then
tmp = t * ((b * i) - (x * a))
else if (c <= 1.05d-149) then
tmp = t_1
else if (c <= 3d-72) then
tmp = x * ((y * z) - (t * a))
else if (c <= 2.9d+94) 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))) + (y * (x * z));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.4e+97) {
tmp = t_2;
} else if (c <= -3.8e-199) {
tmp = t_1;
} else if (c <= 4.6e-219) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 1.05e-149) {
tmp = t_1;
} else if (c <= 3e-72) {
tmp = x * ((y * z) - (t * a));
} else if (c <= 2.9e+94) {
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))) + (y * (x * z)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -2.4e+97: tmp = t_2 elif c <= -3.8e-199: tmp = t_1 elif c <= 4.6e-219: tmp = t * ((b * i) - (x * a)) elif c <= 1.05e-149: tmp = t_1 elif c <= 3e-72: tmp = x * ((y * z) - (t * a)) elif c <= 2.9e+94: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) + Float64(y * Float64(x * z))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.4e+97) tmp = t_2; elseif (c <= -3.8e-199) tmp = t_1; elseif (c <= 4.6e-219) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 1.05e-149) tmp = t_1; elseif (c <= 3e-72) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (c <= 2.9e+94) 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))) + (y * (x * z)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -2.4e+97) tmp = t_2; elseif (c <= -3.8e-199) tmp = t_1; elseif (c <= 4.6e-219) tmp = t * ((b * i) - (x * a)); elseif (c <= 1.05e-149) tmp = t_1; elseif (c <= 3e-72) tmp = x * ((y * z) - (t * a)); elseif (c <= 2.9e+94) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.4e+97], t$95$2, If[LessEqual[c, -3.8e-199], t$95$1, If[LessEqual[c, 4.6e-219], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.05e-149], t$95$1, If[LessEqual[c, 3e-72], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.9e+94], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right) + y \cdot \left(x \cdot z\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.4 \cdot 10^{+97}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -3.8 \cdot 10^{-199}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 4.6 \cdot 10^{-219}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{-149}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 3 \cdot 10^{-72}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;c \leq 2.9 \cdot 10^{+94}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -2.4e97 or 2.8999999999999998e94 < c Initial program 60.1%
sub-neg60.1%
+-commutative60.1%
associate-+l+60.1%
distribute-rgt-neg-in60.1%
+-commutative60.1%
fma-def63.3%
sub-neg63.3%
+-commutative63.3%
distribute-neg-in63.3%
unsub-neg63.3%
remove-double-neg63.3%
*-commutative63.3%
Simplified68.6%
Taylor expanded in c around inf 73.4%
distribute-rgt-in69.2%
*-commutative69.2%
mul-1-neg69.2%
cancel-sign-sub-inv69.2%
*-commutative69.2%
distribute-lft-out--73.4%
Simplified73.4%
if -2.4e97 < c < -3.7999999999999998e-199 or 4.59999999999999977e-219 < c < 1.05000000000000005e-149 or 3e-72 < c < 2.8999999999999998e94Initial program 87.0%
sub-neg87.0%
+-commutative87.0%
associate-+l+87.0%
distribute-rgt-neg-in87.0%
+-commutative87.0%
fma-def87.0%
sub-neg87.0%
+-commutative87.0%
distribute-neg-in87.0%
unsub-neg87.0%
remove-double-neg87.0%
*-commutative87.0%
Simplified87.0%
Taylor expanded in a around 0 73.2%
associate-+r+73.2%
mul-1-neg73.2%
distribute-rgt-neg-in73.2%
mul-1-neg73.2%
distribute-lft-in74.2%
mul-1-neg74.2%
unsub-neg74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in j around 0 67.9%
if -3.7999999999999998e-199 < c < 4.59999999999999977e-219Initial program 82.2%
sub-neg82.2%
+-commutative82.2%
associate-+l+82.2%
distribute-rgt-neg-in82.2%
+-commutative82.2%
fma-def82.2%
sub-neg82.2%
+-commutative82.2%
distribute-neg-in82.2%
unsub-neg82.2%
remove-double-neg82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in t around inf 68.5%
Taylor expanded in i around 0 50.5%
mul-1-neg50.5%
unsub-neg50.5%
*-commutative50.5%
associate-*r*59.8%
cancel-sign-sub-inv59.8%
*-commutative59.8%
associate-*l*68.5%
distribute-rgt-in68.5%
unsub-neg68.5%
Simplified68.5%
if 1.05000000000000005e-149 < c < 3e-72Initial program 84.6%
sub-neg84.6%
+-commutative84.6%
associate-+l+84.6%
distribute-rgt-neg-in84.6%
+-commutative84.6%
fma-def89.9%
sub-neg89.9%
+-commutative89.9%
distribute-neg-in89.9%
unsub-neg89.9%
remove-double-neg89.9%
*-commutative89.9%
Simplified89.9%
Taylor expanded in x around inf 64.5%
Final simplification69.8%
(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 -7.2e+124)
t_2
(if (or (<= a -8e+102) (and (not (<= a -3.05e+63)) (<= a 8.2e-13)))
(+ (* y (- (* x z) (* i j))) t_1)
(+ 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 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -7.2e+124) {
tmp = t_2;
} else if ((a <= -8e+102) || (!(a <= -3.05e+63) && (a <= 8.2e-13))) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else {
tmp = t_2 + 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 = b * ((t * i) - (z * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-7.2d+124)) then
tmp = t_2
else if ((a <= (-8d+102)) .or. (.not. (a <= (-3.05d+63))) .and. (a <= 8.2d-13)) then
tmp = (y * ((x * z) - (i * j))) + t_1
else
tmp = t_2 + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -7.2e+124) {
tmp = t_2;
} else if ((a <= -8e+102) || (!(a <= -3.05e+63) && (a <= 8.2e-13))) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else {
tmp = t_2 + t_1;
}
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 <= -7.2e+124: tmp = t_2 elif (a <= -8e+102) or (not (a <= -3.05e+63) and (a <= 8.2e-13)): tmp = (y * ((x * z) - (i * j))) + t_1 else: tmp = t_2 + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -7.2e+124) tmp = t_2; elseif ((a <= -8e+102) || (!(a <= -3.05e+63) && (a <= 8.2e-13))) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1); else tmp = Float64(t_2 + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -7.2e+124) tmp = t_2; elseif ((a <= -8e+102) || (~((a <= -3.05e+63)) && (a <= 8.2e-13))) tmp = (y * ((x * z) - (i * j))) + t_1; else tmp = t_2 + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.2e+124], t$95$2, If[Or[LessEqual[a, -8e+102], And[N[Not[LessEqual[a, -3.05e+63]], $MachinePrecision], LessEqual[a, 8.2e-13]]], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$2 + t$95$1), $MachinePrecision]]]]]
\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 -7.2 \cdot 10^{+124}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -8 \cdot 10^{+102} \lor \neg \left(a \leq -3.05 \cdot 10^{+63}\right) \land a \leq 8.2 \cdot 10^{-13}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t_1\\
\mathbf{else}:\\
\;\;\;\;t_2 + t_1\\
\end{array}
\end{array}
if a < -7.19999999999999972e124Initial program 66.1%
sub-neg66.1%
+-commutative66.1%
associate-+l+66.1%
distribute-rgt-neg-in66.1%
+-commutative66.1%
fma-def66.1%
sub-neg66.1%
+-commutative66.1%
distribute-neg-in66.1%
unsub-neg66.1%
remove-double-neg66.1%
*-commutative66.1%
Simplified69.6%
Taylor expanded in a around inf 84.8%
+-commutative84.8%
mul-1-neg84.8%
unsub-neg84.8%
Simplified84.8%
if -7.19999999999999972e124 < a < -7.99999999999999982e102 or -3.04999999999999984e63 < a < 8.2000000000000004e-13Initial program 81.6%
sub-neg81.6%
+-commutative81.6%
associate-+l+81.6%
distribute-rgt-neg-in81.6%
+-commutative81.6%
fma-def83.8%
sub-neg83.8%
+-commutative83.8%
distribute-neg-in83.8%
unsub-neg83.8%
remove-double-neg83.8%
*-commutative83.8%
Simplified85.2%
Taylor expanded in a around 0 75.4%
associate-+r+75.4%
mul-1-neg75.4%
distribute-rgt-neg-in75.4%
mul-1-neg75.4%
distribute-lft-in76.1%
mul-1-neg76.1%
unsub-neg76.1%
*-commutative76.1%
Simplified76.1%
if -7.99999999999999982e102 < a < -3.04999999999999984e63 or 8.2000000000000004e-13 < a Initial program 70.7%
sub-neg70.7%
+-commutative70.7%
associate-+l+70.7%
distribute-rgt-neg-in70.7%
+-commutative70.7%
fma-def71.8%
sub-neg71.8%
+-commutative71.8%
distribute-neg-in71.8%
unsub-neg71.8%
remove-double-neg71.8%
*-commutative71.8%
Simplified74.1%
Taylor expanded in y around 0 68.0%
+-commutative68.0%
associate-+r+68.0%
+-commutative68.0%
*-commutative68.0%
associate-*r*69.3%
*-commutative69.3%
associate-*r*69.3%
distribute-rgt-in73.8%
mul-1-neg73.8%
unsub-neg73.8%
*-commutative73.8%
Simplified73.8%
Final simplification76.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -1.45e+113)
t_2
(if (<= c -0.42)
t_1
(if (<= c -1.4e-139)
(* b (- (* t i) (* z c)))
(if (<= c -7.5e-181)
(* y (- (* x z) (* i j)))
(if (<= c -2.9e-210)
(* i (- (* t b) (* y j)))
(if (<= c 5.6e-150)
(* t (- (* b i) (* x a)))
(if (<= c 0.095) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.45e+113) {
tmp = t_2;
} else if (c <= -0.42) {
tmp = t_1;
} else if (c <= -1.4e-139) {
tmp = b * ((t * i) - (z * c));
} else if (c <= -7.5e-181) {
tmp = y * ((x * z) - (i * j));
} else if (c <= -2.9e-210) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 5.6e-150) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 0.095) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = c * ((a * j) - (z * b))
if (c <= (-1.45d+113)) then
tmp = t_2
else if (c <= (-0.42d0)) then
tmp = t_1
else if (c <= (-1.4d-139)) then
tmp = b * ((t * i) - (z * c))
else if (c <= (-7.5d-181)) then
tmp = y * ((x * z) - (i * j))
else if (c <= (-2.9d-210)) then
tmp = i * ((t * b) - (y * j))
else if (c <= 5.6d-150) then
tmp = t * ((b * i) - (x * a))
else if (c <= 0.095d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.45e+113) {
tmp = t_2;
} else if (c <= -0.42) {
tmp = t_1;
} else if (c <= -1.4e-139) {
tmp = b * ((t * i) - (z * c));
} else if (c <= -7.5e-181) {
tmp = y * ((x * z) - (i * j));
} else if (c <= -2.9e-210) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 5.6e-150) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 0.095) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.45e+113: tmp = t_2 elif c <= -0.42: tmp = t_1 elif c <= -1.4e-139: tmp = b * ((t * i) - (z * c)) elif c <= -7.5e-181: tmp = y * ((x * z) - (i * j)) elif c <= -2.9e-210: tmp = i * ((t * b) - (y * j)) elif c <= 5.6e-150: tmp = t * ((b * i) - (x * a)) elif c <= 0.095: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.45e+113) tmp = t_2; elseif (c <= -0.42) tmp = t_1; elseif (c <= -1.4e-139) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (c <= -7.5e-181) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= -2.9e-210) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 5.6e-150) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 0.095) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.45e+113) tmp = t_2; elseif (c <= -0.42) tmp = t_1; elseif (c <= -1.4e-139) tmp = b * ((t * i) - (z * c)); elseif (c <= -7.5e-181) tmp = y * ((x * z) - (i * j)); elseif (c <= -2.9e-210) tmp = i * ((t * b) - (y * j)); elseif (c <= 5.6e-150) tmp = t * ((b * i) - (x * a)); elseif (c <= 0.095) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.45e+113], t$95$2, If[LessEqual[c, -0.42], t$95$1, If[LessEqual[c, -1.4e-139], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -7.5e-181], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.9e-210], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.6e-150], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 0.095], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.45 \cdot 10^{+113}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -0.42:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.4 \cdot 10^{-139}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;c \leq -7.5 \cdot 10^{-181}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq -2.9 \cdot 10^{-210}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 5.6 \cdot 10^{-150}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 0.095:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -1.44999999999999992e113 or 0.095000000000000001 < c Initial program 62.8%
sub-neg62.8%
+-commutative62.8%
associate-+l+62.8%
distribute-rgt-neg-in62.8%
+-commutative62.8%
fma-def65.5%
sub-neg65.5%
+-commutative65.5%
distribute-neg-in65.5%
unsub-neg65.5%
remove-double-neg65.5%
*-commutative65.5%
Simplified70.1%
Taylor expanded in c around inf 68.9%
distribute-rgt-in65.3%
*-commutative65.3%
mul-1-neg65.3%
cancel-sign-sub-inv65.3%
*-commutative65.3%
distribute-lft-out--68.9%
Simplified68.9%
if -1.44999999999999992e113 < c < -0.419999999999999984 or 5.59999999999999993e-150 < c < 0.095000000000000001Initial program 84.0%
sub-neg84.0%
+-commutative84.0%
associate-+l+84.0%
distribute-rgt-neg-in84.0%
+-commutative84.0%
fma-def85.8%
sub-neg85.8%
+-commutative85.8%
distribute-neg-in85.8%
unsub-neg85.8%
remove-double-neg85.8%
*-commutative85.8%
Simplified85.7%
Taylor expanded in x around inf 69.1%
if -0.419999999999999984 < c < -1.3999999999999999e-139Initial program 95.6%
sub-neg95.6%
+-commutative95.6%
associate-+l+95.6%
distribute-rgt-neg-in95.6%
+-commutative95.6%
fma-def95.6%
sub-neg95.6%
+-commutative95.6%
distribute-neg-in95.6%
unsub-neg95.6%
remove-double-neg95.6%
*-commutative95.6%
Simplified95.6%
Taylor expanded in b around inf 61.2%
if -1.3999999999999999e-139 < c < -7.5000000000000002e-181Initial program 89.0%
sub-neg89.0%
+-commutative89.0%
associate-+l+89.0%
distribute-rgt-neg-in89.0%
+-commutative89.0%
fma-def89.0%
sub-neg89.0%
+-commutative89.0%
distribute-neg-in89.0%
unsub-neg89.0%
remove-double-neg89.0%
*-commutative89.0%
Simplified89.0%
Taylor expanded in y around inf 78.1%
*-commutative78.1%
mul-1-neg78.1%
unsub-neg78.1%
Simplified78.1%
if -7.5000000000000002e-181 < c < -2.90000000000000006e-210Initial program 72.3%
sub-neg72.3%
+-commutative72.3%
associate-+l+72.3%
distribute-rgt-neg-in72.3%
+-commutative72.3%
fma-def72.3%
sub-neg72.3%
+-commutative72.3%
distribute-neg-in72.3%
unsub-neg72.3%
remove-double-neg72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in i around inf 73.3%
mul-1-neg73.3%
unsub-neg73.3%
Simplified73.3%
if -2.90000000000000006e-210 < c < 5.59999999999999993e-150Initial program 85.7%
sub-neg85.7%
+-commutative85.7%
associate-+l+85.7%
distribute-rgt-neg-in85.7%
+-commutative85.7%
fma-def85.7%
sub-neg85.7%
+-commutative85.7%
distribute-neg-in85.7%
unsub-neg85.7%
remove-double-neg85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in t around inf 64.2%
Taylor expanded in i around 0 49.7%
mul-1-neg49.7%
unsub-neg49.7%
*-commutative49.7%
associate-*r*57.1%
cancel-sign-sub-inv57.1%
*-commutative57.1%
associate-*l*62.4%
distribute-rgt-in64.2%
unsub-neg64.2%
Simplified64.2%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* c (* a j)))
(t_3 (+ t_2 t_1))
(t_4 (+ (* x (- (* y z) (* t a))) t_2)))
(if (<= b -3e+73)
t_3
(if (<= b 1.7e-98)
t_4
(if (<= b 110000000.0)
t_3
(if (<= b 9e+76) t_4 (+ t_1 (* y (* x z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = c * (a * j);
double t_3 = t_2 + t_1;
double t_4 = (x * ((y * z) - (t * a))) + t_2;
double tmp;
if (b <= -3e+73) {
tmp = t_3;
} else if (b <= 1.7e-98) {
tmp = t_4;
} else if (b <= 110000000.0) {
tmp = t_3;
} else if (b <= 9e+76) {
tmp = t_4;
} else {
tmp = t_1 + (y * (x * z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = c * (a * j)
t_3 = t_2 + t_1
t_4 = (x * ((y * z) - (t * a))) + t_2
if (b <= (-3d+73)) then
tmp = t_3
else if (b <= 1.7d-98) then
tmp = t_4
else if (b <= 110000000.0d0) then
tmp = t_3
else if (b <= 9d+76) then
tmp = t_4
else
tmp = t_1 + (y * (x * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = c * (a * j);
double t_3 = t_2 + t_1;
double t_4 = (x * ((y * z) - (t * a))) + t_2;
double tmp;
if (b <= -3e+73) {
tmp = t_3;
} else if (b <= 1.7e-98) {
tmp = t_4;
} else if (b <= 110000000.0) {
tmp = t_3;
} else if (b <= 9e+76) {
tmp = t_4;
} else {
tmp = t_1 + (y * (x * z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = c * (a * j) t_3 = t_2 + t_1 t_4 = (x * ((y * z) - (t * a))) + t_2 tmp = 0 if b <= -3e+73: tmp = t_3 elif b <= 1.7e-98: tmp = t_4 elif b <= 110000000.0: tmp = t_3 elif b <= 9e+76: tmp = t_4 else: tmp = t_1 + (y * (x * z)) 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(c * Float64(a * j)) t_3 = Float64(t_2 + t_1) t_4 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_2) tmp = 0.0 if (b <= -3e+73) tmp = t_3; elseif (b <= 1.7e-98) tmp = t_4; elseif (b <= 110000000.0) tmp = t_3; elseif (b <= 9e+76) tmp = t_4; else tmp = Float64(t_1 + Float64(y * Float64(x * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = c * (a * j); t_3 = t_2 + t_1; t_4 = (x * ((y * z) - (t * a))) + t_2; tmp = 0.0; if (b <= -3e+73) tmp = t_3; elseif (b <= 1.7e-98) tmp = t_4; elseif (b <= 110000000.0) tmp = t_3; elseif (b <= 9e+76) tmp = t_4; else tmp = t_1 + (y * (x * z)); 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[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + t$95$1), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]}, If[LessEqual[b, -3e+73], t$95$3, If[LessEqual[b, 1.7e-98], t$95$4, If[LessEqual[b, 110000000.0], t$95$3, If[LessEqual[b, 9e+76], t$95$4, N[(t$95$1 + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := c \cdot \left(a \cdot j\right)\\
t_3 := t_2 + t_1\\
t_4 := x \cdot \left(y \cdot z - t \cdot a\right) + t_2\\
\mathbf{if}\;b \leq -3 \cdot 10^{+73}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-98}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq 110000000:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+76}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_1 + y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if b < -3.00000000000000011e73 or 1.7000000000000001e-98 < b < 1.1e8Initial program 76.7%
sub-neg76.7%
+-commutative76.7%
associate-+l+76.7%
distribute-rgt-neg-in76.7%
+-commutative76.7%
fma-def79.3%
sub-neg79.3%
+-commutative79.3%
distribute-neg-in79.3%
unsub-neg79.3%
remove-double-neg79.3%
*-commutative79.3%
Simplified83.3%
Taylor expanded in y around 0 70.6%
+-commutative70.6%
associate-+r+70.6%
+-commutative70.6%
*-commutative70.6%
associate-*r*64.2%
*-commutative64.2%
associate-*r*64.2%
distribute-rgt-in64.2%
mul-1-neg64.2%
unsub-neg64.2%
*-commutative64.2%
Simplified64.2%
Taylor expanded in x around 0 68.2%
if -3.00000000000000011e73 < b < 1.7000000000000001e-98 or 1.1e8 < b < 8.9999999999999995e76Initial program 75.7%
+-commutative75.7%
fma-def77.2%
*-commutative77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in i around 0 67.3%
Taylor expanded in b around 0 66.0%
if 8.9999999999999995e76 < b Initial program 76.7%
sub-neg76.7%
+-commutative76.7%
associate-+l+76.7%
distribute-rgt-neg-in76.7%
+-commutative76.7%
fma-def80.9%
sub-neg80.9%
+-commutative80.9%
distribute-neg-in80.9%
unsub-neg80.9%
remove-double-neg80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in a around 0 72.9%
associate-+r+72.9%
mul-1-neg72.9%
distribute-rgt-neg-in72.9%
mul-1-neg72.9%
distribute-lft-in72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in j around 0 72.9%
Final simplification67.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* c (* a j)))
(t_3 (+ (* x (- (* y z) (* t a))) t_2)))
(if (<= b -1.4e+74)
(+ t_2 t_1)
(if (<= b 2.25e-71)
t_3
(if (<= b 88000000.0)
(- t_1 (* j (* y i)))
(if (<= b 1.7e+77) t_3 (+ t_1 (* y (* x z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = c * (a * j);
double t_3 = (x * ((y * z) - (t * a))) + t_2;
double tmp;
if (b <= -1.4e+74) {
tmp = t_2 + t_1;
} else if (b <= 2.25e-71) {
tmp = t_3;
} else if (b <= 88000000.0) {
tmp = t_1 - (j * (y * i));
} else if (b <= 1.7e+77) {
tmp = t_3;
} else {
tmp = t_1 + (y * (x * z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = c * (a * j)
t_3 = (x * ((y * z) - (t * a))) + t_2
if (b <= (-1.4d+74)) then
tmp = t_2 + t_1
else if (b <= 2.25d-71) then
tmp = t_3
else if (b <= 88000000.0d0) then
tmp = t_1 - (j * (y * i))
else if (b <= 1.7d+77) then
tmp = t_3
else
tmp = t_1 + (y * (x * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = c * (a * j);
double t_3 = (x * ((y * z) - (t * a))) + t_2;
double tmp;
if (b <= -1.4e+74) {
tmp = t_2 + t_1;
} else if (b <= 2.25e-71) {
tmp = t_3;
} else if (b <= 88000000.0) {
tmp = t_1 - (j * (y * i));
} else if (b <= 1.7e+77) {
tmp = t_3;
} else {
tmp = t_1 + (y * (x * z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = c * (a * j) t_3 = (x * ((y * z) - (t * a))) + t_2 tmp = 0 if b <= -1.4e+74: tmp = t_2 + t_1 elif b <= 2.25e-71: tmp = t_3 elif b <= 88000000.0: tmp = t_1 - (j * (y * i)) elif b <= 1.7e+77: tmp = t_3 else: tmp = t_1 + (y * (x * z)) 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(c * Float64(a * j)) t_3 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_2) tmp = 0.0 if (b <= -1.4e+74) tmp = Float64(t_2 + t_1); elseif (b <= 2.25e-71) tmp = t_3; elseif (b <= 88000000.0) tmp = Float64(t_1 - Float64(j * Float64(y * i))); elseif (b <= 1.7e+77) tmp = t_3; else tmp = Float64(t_1 + Float64(y * Float64(x * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = c * (a * j); t_3 = (x * ((y * z) - (t * a))) + t_2; tmp = 0.0; if (b <= -1.4e+74) tmp = t_2 + t_1; elseif (b <= 2.25e-71) tmp = t_3; elseif (b <= 88000000.0) tmp = t_1 - (j * (y * i)); elseif (b <= 1.7e+77) tmp = t_3; else tmp = t_1 + (y * (x * z)); 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[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]}, If[LessEqual[b, -1.4e+74], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[b, 2.25e-71], t$95$3, If[LessEqual[b, 88000000.0], N[(t$95$1 - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e+77], t$95$3, N[(t$95$1 + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := c \cdot \left(a \cdot j\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right) + t_2\\
\mathbf{if}\;b \leq -1.4 \cdot 10^{+74}:\\
\;\;\;\;t_2 + t_1\\
\mathbf{elif}\;b \leq 2.25 \cdot 10^{-71}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 88000000:\\
\;\;\;\;t_1 - j \cdot \left(y \cdot i\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+77}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1 + y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if b < -1.40000000000000001e74Initial program 72.6%
sub-neg72.6%
+-commutative72.6%
associate-+l+72.6%
distribute-rgt-neg-in72.6%
+-commutative72.6%
fma-def76.3%
sub-neg76.3%
+-commutative76.3%
distribute-neg-in76.3%
unsub-neg76.3%
remove-double-neg76.3%
*-commutative76.3%
Simplified80.0%
Taylor expanded in y around 0 69.2%
+-commutative69.2%
associate-+r+69.2%
+-commutative69.2%
*-commutative69.2%
associate-*r*61.8%
*-commutative61.8%
associate-*r*61.8%
distribute-rgt-in61.8%
mul-1-neg61.8%
unsub-neg61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in x around 0 69.6%
if -1.40000000000000001e74 < b < 2.2500000000000001e-71 or 8.8e7 < b < 1.69999999999999998e77Initial program 76.2%
+-commutative76.2%
fma-def77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in i around 0 68.0%
Taylor expanded in b around 0 66.0%
if 2.2500000000000001e-71 < b < 8.8e7Initial program 84.7%
sub-neg84.7%
+-commutative84.7%
associate-+l+84.7%
distribute-rgt-neg-in84.7%
+-commutative84.7%
fma-def84.7%
sub-neg84.7%
+-commutative84.7%
distribute-neg-in84.7%
unsub-neg84.7%
remove-double-neg84.7%
*-commutative84.7%
Simplified90.0%
Taylor expanded in a around 0 59.2%
associate-+r+59.2%
mul-1-neg59.2%
distribute-rgt-neg-in59.2%
mul-1-neg59.2%
distribute-lft-in59.2%
mul-1-neg59.2%
unsub-neg59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in x around 0 74.3%
+-commutative74.3%
*-commutative74.3%
mul-1-neg74.3%
unsub-neg74.3%
*-commutative74.3%
associate-*r*74.3%
*-commutative74.3%
Simplified74.3%
if 1.69999999999999998e77 < b Initial program 76.7%
sub-neg76.7%
+-commutative76.7%
associate-+l+76.7%
distribute-rgt-neg-in76.7%
+-commutative76.7%
fma-def80.9%
sub-neg80.9%
+-commutative80.9%
distribute-neg-in80.9%
unsub-neg80.9%
remove-double-neg80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in a around 0 72.9%
associate-+r+72.9%
mul-1-neg72.9%
distribute-rgt-neg-in72.9%
mul-1-neg72.9%
distribute-lft-in72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in j around 0 72.9%
Final simplification68.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -7.4e-22)
t_2
(if (<= c -6.6e-230)
t_1
(if (<= c 4e-295)
(* t (* x (- a)))
(if (<= c 4.1e-75)
t_1
(if (<= c 1.46e-34) (* x (* y z)) (if (<= c 5.9e-9) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -7.4e-22) {
tmp = t_2;
} else if (c <= -6.6e-230) {
tmp = t_1;
} else if (c <= 4e-295) {
tmp = t * (x * -a);
} else if (c <= 4.1e-75) {
tmp = t_1;
} else if (c <= 1.46e-34) {
tmp = x * (y * z);
} else if (c <= 5.9e-9) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = c * ((a * j) - (z * b))
if (c <= (-7.4d-22)) then
tmp = t_2
else if (c <= (-6.6d-230)) then
tmp = t_1
else if (c <= 4d-295) then
tmp = t * (x * -a)
else if (c <= 4.1d-75) then
tmp = t_1
else if (c <= 1.46d-34) then
tmp = x * (y * z)
else if (c <= 5.9d-9) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -7.4e-22) {
tmp = t_2;
} else if (c <= -6.6e-230) {
tmp = t_1;
} else if (c <= 4e-295) {
tmp = t * (x * -a);
} else if (c <= 4.1e-75) {
tmp = t_1;
} else if (c <= 1.46e-34) {
tmp = x * (y * z);
} else if (c <= 5.9e-9) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -7.4e-22: tmp = t_2 elif c <= -6.6e-230: tmp = t_1 elif c <= 4e-295: tmp = t * (x * -a) elif c <= 4.1e-75: tmp = t_1 elif c <= 1.46e-34: tmp = x * (y * z) elif c <= 5.9e-9: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -7.4e-22) tmp = t_2; elseif (c <= -6.6e-230) tmp = t_1; elseif (c <= 4e-295) tmp = Float64(t * Float64(x * Float64(-a))); elseif (c <= 4.1e-75) tmp = t_1; elseif (c <= 1.46e-34) tmp = Float64(x * Float64(y * z)); elseif (c <= 5.9e-9) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -7.4e-22) tmp = t_2; elseif (c <= -6.6e-230) tmp = t_1; elseif (c <= 4e-295) tmp = t * (x * -a); elseif (c <= 4.1e-75) tmp = t_1; elseif (c <= 1.46e-34) tmp = x * (y * z); elseif (c <= 5.9e-9) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7.4e-22], t$95$2, If[LessEqual[c, -6.6e-230], t$95$1, If[LessEqual[c, 4e-295], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.1e-75], t$95$1, If[LessEqual[c, 1.46e-34], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.9e-9], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -7.4 \cdot 10^{-22}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -6.6 \cdot 10^{-230}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 4 \cdot 10^{-295}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;c \leq 4.1 \cdot 10^{-75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.46 \cdot 10^{-34}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 5.9 \cdot 10^{-9}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -7.4e-22 or 5.8999999999999999e-9 < c Initial program 65.8%
sub-neg65.8%
+-commutative65.8%
associate-+l+65.8%
distribute-rgt-neg-in65.8%
+-commutative65.8%
fma-def68.1%
sub-neg68.1%
+-commutative68.1%
distribute-neg-in68.1%
unsub-neg68.1%
remove-double-neg68.1%
*-commutative68.1%
Simplified71.8%
Taylor expanded in c around inf 63.8%
distribute-rgt-in60.8%
*-commutative60.8%
mul-1-neg60.8%
cancel-sign-sub-inv60.8%
*-commutative60.8%
distribute-lft-out--63.8%
Simplified63.8%
if -7.4e-22 < c < -6.59999999999999987e-230 or 4.00000000000000024e-295 < c < 4.10000000000000002e-75 or 1.4599999999999999e-34 < c < 5.8999999999999999e-9Initial program 85.7%
sub-neg85.7%
+-commutative85.7%
associate-+l+85.7%
distribute-rgt-neg-in85.7%
+-commutative85.7%
fma-def86.8%
sub-neg86.8%
+-commutative86.8%
distribute-neg-in86.8%
unsub-neg86.8%
remove-double-neg86.8%
*-commutative86.8%
Simplified86.8%
Taylor expanded in i around inf 55.2%
mul-1-neg55.2%
unsub-neg55.2%
Simplified55.2%
if -6.59999999999999987e-230 < c < 4.00000000000000024e-295Initial program 85.9%
sub-neg85.9%
+-commutative85.9%
associate-+l+85.9%
distribute-rgt-neg-in85.9%
+-commutative85.9%
fma-def85.9%
sub-neg85.9%
+-commutative85.9%
distribute-neg-in85.9%
unsub-neg85.9%
remove-double-neg85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in a around inf 59.2%
+-commutative59.2%
mul-1-neg59.2%
unsub-neg59.2%
Simplified59.2%
Taylor expanded in c around 0 59.2%
mul-1-neg59.2%
associate-*r*59.7%
distribute-rgt-neg-in59.7%
*-commutative59.7%
associate-*r*64.1%
Simplified64.1%
if 4.10000000000000002e-75 < c < 1.4599999999999999e-34Initial program 99.7%
sub-neg99.7%
+-commutative99.7%
associate-+l+99.7%
distribute-rgt-neg-in99.7%
+-commutative99.7%
fma-def99.7%
sub-neg99.7%
+-commutative99.7%
distribute-neg-in99.7%
unsub-neg99.7%
remove-double-neg99.7%
*-commutative99.7%
Simplified99.6%
Taylor expanded in y around inf 50.5%
*-commutative50.5%
mul-1-neg50.5%
unsub-neg50.5%
Simplified50.5%
Taylor expanded in z around inf 51.1%
associate-*r*57.5%
*-commutative57.5%
Simplified57.5%
Final simplification60.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c))))
(t_2 (* j (- (* a c) (* y i))))
(t_3 (* t (- (* b i) (* x a)))))
(if (<= t -3.2e+44)
t_3
(if (<= t -1.4e-73)
t_2
(if (<= t 5.5e-306)
t_1
(if (<= t 5.5e-267)
t_2
(if (<= t 5.5e+35) t_1 (if (<= t 3.1e+120) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = j * ((a * c) - (y * i));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -3.2e+44) {
tmp = t_3;
} else if (t <= -1.4e-73) {
tmp = t_2;
} else if (t <= 5.5e-306) {
tmp = t_1;
} else if (t <= 5.5e-267) {
tmp = t_2;
} else if (t <= 5.5e+35) {
tmp = t_1;
} else if (t <= 3.1e+120) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
t_2 = j * ((a * c) - (y * i))
t_3 = t * ((b * i) - (x * a))
if (t <= (-3.2d+44)) then
tmp = t_3
else if (t <= (-1.4d-73)) then
tmp = t_2
else if (t <= 5.5d-306) then
tmp = t_1
else if (t <= 5.5d-267) then
tmp = t_2
else if (t <= 5.5d+35) then
tmp = t_1
else if (t <= 3.1d+120) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = j * ((a * c) - (y * i));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -3.2e+44) {
tmp = t_3;
} else if (t <= -1.4e-73) {
tmp = t_2;
} else if (t <= 5.5e-306) {
tmp = t_1;
} else if (t <= 5.5e-267) {
tmp = t_2;
} else if (t <= 5.5e+35) {
tmp = t_1;
} else if (t <= 3.1e+120) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = j * ((a * c) - (y * i)) t_3 = t * ((b * i) - (x * a)) tmp = 0 if t <= -3.2e+44: tmp = t_3 elif t <= -1.4e-73: tmp = t_2 elif t <= 5.5e-306: tmp = t_1 elif t <= 5.5e-267: tmp = t_2 elif t <= 5.5e+35: tmp = t_1 elif t <= 3.1e+120: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_3 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -3.2e+44) tmp = t_3; elseif (t <= -1.4e-73) tmp = t_2; elseif (t <= 5.5e-306) tmp = t_1; elseif (t <= 5.5e-267) tmp = t_2; elseif (t <= 5.5e+35) tmp = t_1; elseif (t <= 3.1e+120) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = j * ((a * c) - (y * i)); t_3 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -3.2e+44) tmp = t_3; elseif (t <= -1.4e-73) tmp = t_2; elseif (t <= 5.5e-306) tmp = t_1; elseif (t <= 5.5e-267) tmp = t_2; elseif (t <= 5.5e+35) tmp = t_1; elseif (t <= 3.1e+120) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.2e+44], t$95$3, If[LessEqual[t, -1.4e-73], t$95$2, If[LessEqual[t, 5.5e-306], t$95$1, If[LessEqual[t, 5.5e-267], t$95$2, If[LessEqual[t, 5.5e+35], t$95$1, If[LessEqual[t, 3.1e+120], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -3.2 \cdot 10^{+44}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -1.4 \cdot 10^{-73}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-306}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-267}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{+35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{+120}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -3.20000000000000004e44 or 3.09999999999999974e120 < t Initial program 63.5%
sub-neg63.5%
+-commutative63.5%
associate-+l+63.5%
distribute-rgt-neg-in63.5%
+-commutative63.5%
fma-def65.8%
sub-neg65.8%
+-commutative65.8%
distribute-neg-in65.8%
unsub-neg65.8%
remove-double-neg65.8%
*-commutative65.8%
Simplified68.2%
Taylor expanded in t around inf 75.5%
Taylor expanded in i around 0 60.4%
mul-1-neg60.4%
unsub-neg60.4%
*-commutative60.4%
associate-*r*67.0%
cancel-sign-sub-inv67.0%
*-commutative67.0%
associate-*l*72.0%
distribute-rgt-in75.5%
unsub-neg75.5%
Simplified75.5%
if -3.20000000000000004e44 < t < -1.40000000000000006e-73 or 5.49999999999999992e-306 < t < 5.4999999999999999e-267 or 5.50000000000000001e35 < t < 3.09999999999999974e120Initial program 73.8%
sub-neg73.8%
+-commutative73.8%
associate-+l+73.8%
distribute-rgt-neg-in73.8%
+-commutative73.8%
fma-def75.6%
sub-neg75.6%
+-commutative75.6%
distribute-neg-in75.6%
unsub-neg75.6%
remove-double-neg75.6%
*-commutative75.6%
Simplified77.4%
Taylor expanded in j around inf 61.6%
*-commutative61.6%
neg-mul-161.6%
sub-neg61.6%
Simplified61.6%
if -1.40000000000000006e-73 < t < 5.49999999999999992e-306 or 5.4999999999999999e-267 < t < 5.50000000000000001e35Initial program 86.8%
sub-neg86.8%
+-commutative86.8%
associate-+l+86.8%
distribute-rgt-neg-in86.8%
+-commutative86.8%
fma-def87.7%
sub-neg87.7%
+-commutative87.7%
distribute-neg-in87.7%
unsub-neg87.7%
remove-double-neg87.7%
*-commutative87.7%
Simplified89.4%
Taylor expanded in z around inf 59.2%
*-commutative59.2%
mul-1-neg59.2%
sub-neg59.2%
Simplified59.2%
Final simplification65.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -9e-21)
t_2
(if (<= c -1.46e-210)
(* i (- (* t b) (* y j)))
(if (<= c 7.7e-150)
t_1
(if (<= c 4.5e-110)
(* y (- (* x z) (* i j)))
(if (<= c 0.00078) 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 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -9e-21) {
tmp = t_2;
} else if (c <= -1.46e-210) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 7.7e-150) {
tmp = t_1;
} else if (c <= 4.5e-110) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 0.00078) {
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 = t * ((b * i) - (x * a))
t_2 = c * ((a * j) - (z * b))
if (c <= (-9d-21)) then
tmp = t_2
else if (c <= (-1.46d-210)) then
tmp = i * ((t * b) - (y * j))
else if (c <= 7.7d-150) then
tmp = t_1
else if (c <= 4.5d-110) then
tmp = y * ((x * z) - (i * j))
else if (c <= 0.00078d0) 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 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -9e-21) {
tmp = t_2;
} else if (c <= -1.46e-210) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 7.7e-150) {
tmp = t_1;
} else if (c <= 4.5e-110) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 0.00078) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -9e-21: tmp = t_2 elif c <= -1.46e-210: tmp = i * ((t * b) - (y * j)) elif c <= 7.7e-150: tmp = t_1 elif c <= 4.5e-110: tmp = y * ((x * z) - (i * j)) elif c <= 0.00078: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -9e-21) tmp = t_2; elseif (c <= -1.46e-210) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 7.7e-150) tmp = t_1; elseif (c <= 4.5e-110) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 0.00078) 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 = t * ((b * i) - (x * a)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -9e-21) tmp = t_2; elseif (c <= -1.46e-210) tmp = i * ((t * b) - (y * j)); elseif (c <= 7.7e-150) tmp = t_1; elseif (c <= 4.5e-110) tmp = y * ((x * z) - (i * j)); elseif (c <= 0.00078) 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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -9e-21], t$95$2, If[LessEqual[c, -1.46e-210], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.7e-150], t$95$1, If[LessEqual[c, 4.5e-110], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 0.00078], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -9 \cdot 10^{-21}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.46 \cdot 10^{-210}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 7.7 \cdot 10^{-150}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 4.5 \cdot 10^{-110}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 0.00078:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -8.99999999999999936e-21 or 7.79999999999999986e-4 < c Initial program 65.8%
sub-neg65.8%
+-commutative65.8%
associate-+l+65.8%
distribute-rgt-neg-in65.8%
+-commutative65.8%
fma-def68.1%
sub-neg68.1%
+-commutative68.1%
distribute-neg-in68.1%
unsub-neg68.1%
remove-double-neg68.1%
*-commutative68.1%
Simplified71.8%
Taylor expanded in c around inf 63.8%
distribute-rgt-in60.8%
*-commutative60.8%
mul-1-neg60.8%
cancel-sign-sub-inv60.8%
*-commutative60.8%
distribute-lft-out--63.8%
Simplified63.8%
if -8.99999999999999936e-21 < c < -1.45999999999999994e-210Initial program 88.3%
sub-neg88.3%
+-commutative88.3%
associate-+l+88.3%
distribute-rgt-neg-in88.3%
+-commutative88.3%
fma-def88.3%
sub-neg88.3%
+-commutative88.3%
distribute-neg-in88.3%
unsub-neg88.3%
remove-double-neg88.3%
*-commutative88.3%
Simplified88.3%
Taylor expanded in i around inf 59.1%
mul-1-neg59.1%
unsub-neg59.1%
Simplified59.1%
if -1.45999999999999994e-210 < c < 7.70000000000000003e-150 or 4.5000000000000001e-110 < c < 7.79999999999999986e-4Initial program 86.9%
sub-neg86.9%
+-commutative86.9%
associate-+l+86.9%
distribute-rgt-neg-in86.9%
+-commutative86.9%
fma-def86.9%
sub-neg86.9%
+-commutative86.9%
distribute-neg-in86.9%
unsub-neg86.9%
remove-double-neg86.9%
*-commutative86.9%
Simplified86.9%
Taylor expanded in t around inf 61.9%
Taylor expanded in i around 0 50.1%
mul-1-neg50.1%
unsub-neg50.1%
*-commutative50.1%
associate-*r*56.0%
cancel-sign-sub-inv56.0%
*-commutative56.0%
associate-*l*59.5%
distribute-rgt-in61.9%
unsub-neg61.9%
Simplified61.9%
if 7.70000000000000003e-150 < c < 4.5000000000000001e-110Initial program 87.5%
sub-neg87.5%
+-commutative87.5%
associate-+l+87.5%
distribute-rgt-neg-in87.5%
+-commutative87.5%
fma-def100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
unsub-neg100.0%
remove-double-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y around inf 74.8%
*-commutative74.8%
mul-1-neg74.8%
unsub-neg74.8%
Simplified74.8%
Final simplification62.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* t (- x)))))
(if (<= a -8.2e+217)
t_1
(if (<= a -6.2e+77)
(* a (* c j))
(if (<= a -5e+63)
t_1
(if (<= a 8.6e-178)
(* x (* y z))
(if (<= a 3.8e+24) (* 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 = a * (t * -x);
double tmp;
if (a <= -8.2e+217) {
tmp = t_1;
} else if (a <= -6.2e+77) {
tmp = a * (c * j);
} else if (a <= -5e+63) {
tmp = t_1;
} else if (a <= 8.6e-178) {
tmp = x * (y * z);
} else if (a <= 3.8e+24) {
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 = a * (t * -x)
if (a <= (-8.2d+217)) then
tmp = t_1
else if (a <= (-6.2d+77)) then
tmp = a * (c * j)
else if (a <= (-5d+63)) then
tmp = t_1
else if (a <= 8.6d-178) then
tmp = x * (y * z)
else if (a <= 3.8d+24) 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 = a * (t * -x);
double tmp;
if (a <= -8.2e+217) {
tmp = t_1;
} else if (a <= -6.2e+77) {
tmp = a * (c * j);
} else if (a <= -5e+63) {
tmp = t_1;
} else if (a <= 8.6e-178) {
tmp = x * (y * z);
} else if (a <= 3.8e+24) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (t * -x) tmp = 0 if a <= -8.2e+217: tmp = t_1 elif a <= -6.2e+77: tmp = a * (c * j) elif a <= -5e+63: tmp = t_1 elif a <= 8.6e-178: tmp = x * (y * z) elif a <= 3.8e+24: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(t * Float64(-x))) tmp = 0.0 if (a <= -8.2e+217) tmp = t_1; elseif (a <= -6.2e+77) tmp = Float64(a * Float64(c * j)); elseif (a <= -5e+63) tmp = t_1; elseif (a <= 8.6e-178) tmp = Float64(x * Float64(y * z)); elseif (a <= 3.8e+24) 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 = a * (t * -x); tmp = 0.0; if (a <= -8.2e+217) tmp = t_1; elseif (a <= -6.2e+77) tmp = a * (c * j); elseif (a <= -5e+63) tmp = t_1; elseif (a <= 8.6e-178) tmp = x * (y * z); elseif (a <= 3.8e+24) 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[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.2e+217], t$95$1, If[LessEqual[a, -6.2e+77], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5e+63], t$95$1, If[LessEqual[a, 8.6e-178], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.8e+24], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{if}\;a \leq -8.2 \cdot 10^{+217}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -6.2 \cdot 10^{+77}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq -5 \cdot 10^{+63}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 8.6 \cdot 10^{-178}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{+24}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -8.2000000000000005e217 or -6.19999999999999997e77 < a < -5.00000000000000011e63 or 3.80000000000000015e24 < a Initial program 68.7%
sub-neg68.7%
+-commutative68.7%
associate-+l+68.7%
distribute-rgt-neg-in68.7%
+-commutative68.7%
fma-def69.8%
sub-neg69.8%
+-commutative69.8%
distribute-neg-in69.8%
unsub-neg69.8%
remove-double-neg69.8%
*-commutative69.8%
Simplified73.1%
Taylor expanded in a around inf 63.0%
+-commutative63.0%
mul-1-neg63.0%
unsub-neg63.0%
Simplified63.0%
Taylor expanded in c around 0 44.3%
neg-mul-144.3%
distribute-lft-neg-in44.3%
*-commutative44.3%
Simplified44.3%
if -8.2000000000000005e217 < a < -6.19999999999999997e77Initial program 79.6%
sub-neg79.6%
+-commutative79.6%
associate-+l+79.6%
distribute-rgt-neg-in79.6%
+-commutative79.6%
fma-def79.6%
sub-neg79.6%
+-commutative79.6%
distribute-neg-in79.6%
unsub-neg79.6%
remove-double-neg79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in a around inf 61.2%
+-commutative61.2%
mul-1-neg61.2%
unsub-neg61.2%
Simplified61.2%
Taylor expanded in c around inf 44.2%
if -5.00000000000000011e63 < a < 8.6e-178Initial program 85.1%
sub-neg85.1%
+-commutative85.1%
associate-+l+85.1%
distribute-rgt-neg-in85.1%
+-commutative85.1%
fma-def87.0%
sub-neg87.0%
+-commutative87.0%
distribute-neg-in87.0%
unsub-neg87.0%
remove-double-neg87.0%
*-commutative87.0%
Simplified88.9%
Taylor expanded in y around inf 52.0%
*-commutative52.0%
mul-1-neg52.0%
unsub-neg52.0%
Simplified52.0%
Taylor expanded in z around inf 37.5%
associate-*r*38.3%
*-commutative38.3%
Simplified38.3%
if 8.6e-178 < a < 3.80000000000000015e24Initial program 63.7%
sub-neg63.7%
+-commutative63.7%
associate-+l+63.7%
distribute-rgt-neg-in63.7%
+-commutative63.7%
fma-def67.1%
sub-neg67.1%
+-commutative67.1%
distribute-neg-in67.1%
unsub-neg67.1%
remove-double-neg67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in t around inf 38.3%
Taylor expanded in i around inf 35.3%
Final simplification40.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* t (- x)))))
(if (<= a -1.1e+216)
t_1
(if (<= a -4.5e+76)
(* a (* c j))
(if (<= a -8e+64)
t_1
(if (<= a -3.35e-158)
(* y (* x z))
(if (<= a 4.5e+159) (* c (* z (- b))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (t * -x);
double tmp;
if (a <= -1.1e+216) {
tmp = t_1;
} else if (a <= -4.5e+76) {
tmp = a * (c * j);
} else if (a <= -8e+64) {
tmp = t_1;
} else if (a <= -3.35e-158) {
tmp = y * (x * z);
} else if (a <= 4.5e+159) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (t * -x)
if (a <= (-1.1d+216)) then
tmp = t_1
else if (a <= (-4.5d+76)) then
tmp = a * (c * j)
else if (a <= (-8d+64)) then
tmp = t_1
else if (a <= (-3.35d-158)) then
tmp = y * (x * z)
else if (a <= 4.5d+159) then
tmp = c * (z * -b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (t * -x);
double tmp;
if (a <= -1.1e+216) {
tmp = t_1;
} else if (a <= -4.5e+76) {
tmp = a * (c * j);
} else if (a <= -8e+64) {
tmp = t_1;
} else if (a <= -3.35e-158) {
tmp = y * (x * z);
} else if (a <= 4.5e+159) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (t * -x) tmp = 0 if a <= -1.1e+216: tmp = t_1 elif a <= -4.5e+76: tmp = a * (c * j) elif a <= -8e+64: tmp = t_1 elif a <= -3.35e-158: tmp = y * (x * z) elif a <= 4.5e+159: tmp = c * (z * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(t * Float64(-x))) tmp = 0.0 if (a <= -1.1e+216) tmp = t_1; elseif (a <= -4.5e+76) tmp = Float64(a * Float64(c * j)); elseif (a <= -8e+64) tmp = t_1; elseif (a <= -3.35e-158) tmp = Float64(y * Float64(x * z)); elseif (a <= 4.5e+159) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (t * -x); tmp = 0.0; if (a <= -1.1e+216) tmp = t_1; elseif (a <= -4.5e+76) tmp = a * (c * j); elseif (a <= -8e+64) tmp = t_1; elseif (a <= -3.35e-158) tmp = y * (x * z); elseif (a <= 4.5e+159) tmp = c * (z * -b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.1e+216], t$95$1, If[LessEqual[a, -4.5e+76], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8e+64], t$95$1, If[LessEqual[a, -3.35e-158], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.5e+159], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{if}\;a \leq -1.1 \cdot 10^{+216}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.5 \cdot 10^{+76}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq -8 \cdot 10^{+64}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -3.35 \cdot 10^{-158}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{+159}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.1e216 or -4.4999999999999997e76 < a < -8.00000000000000017e64 or 4.50000000000000026e159 < a Initial program 67.3%
sub-neg67.3%
+-commutative67.3%
associate-+l+67.3%
distribute-rgt-neg-in67.3%
+-commutative67.3%
fma-def69.1%
sub-neg69.1%
+-commutative69.1%
distribute-neg-in69.1%
unsub-neg69.1%
remove-double-neg69.1%
*-commutative69.1%
Simplified70.9%
Taylor expanded in a around inf 72.0%
+-commutative72.0%
mul-1-neg72.0%
unsub-neg72.0%
Simplified72.0%
Taylor expanded in c around 0 55.7%
neg-mul-155.7%
distribute-lft-neg-in55.7%
*-commutative55.7%
Simplified55.7%
if -1.1e216 < a < -4.4999999999999997e76Initial program 79.6%
sub-neg79.6%
+-commutative79.6%
associate-+l+79.6%
distribute-rgt-neg-in79.6%
+-commutative79.6%
fma-def79.6%
sub-neg79.6%
+-commutative79.6%
distribute-neg-in79.6%
unsub-neg79.6%
remove-double-neg79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in a around inf 61.2%
+-commutative61.2%
mul-1-neg61.2%
unsub-neg61.2%
Simplified61.2%
Taylor expanded in c around inf 44.2%
if -8.00000000000000017e64 < a < -3.35e-158Initial program 83.0%
sub-neg83.0%
+-commutative83.0%
associate-+l+83.0%
distribute-rgt-neg-in83.0%
+-commutative83.0%
fma-def87.3%
sub-neg87.3%
+-commutative87.3%
distribute-neg-in87.3%
unsub-neg87.3%
remove-double-neg87.3%
*-commutative87.3%
Simplified87.3%
Taylor expanded in y around inf 57.8%
*-commutative57.8%
mul-1-neg57.8%
unsub-neg57.8%
Simplified57.8%
Taylor expanded in z around inf 45.2%
if -3.35e-158 < a < 4.50000000000000026e159Initial program 76.8%
sub-neg76.8%
+-commutative76.8%
associate-+l+76.8%
distribute-rgt-neg-in76.8%
+-commutative76.8%
fma-def77.7%
sub-neg77.7%
+-commutative77.7%
distribute-neg-in77.7%
unsub-neg77.7%
remove-double-neg77.7%
*-commutative77.7%
Simplified80.9%
Taylor expanded in b around inf 51.7%
Taylor expanded in i around 0 36.7%
neg-mul-136.7%
distribute-rgt-neg-in36.7%
*-commutative36.7%
distribute-rgt-neg-in36.7%
Simplified36.7%
Final simplification43.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* x (- a)))))
(if (<= a -8.5e+211)
t_1
(if (<= a -8e+76)
(* a (* c j))
(if (<= a -6.5e+63)
(* a (* t (- x)))
(if (<= a -1.1e-160)
(* y (* x z))
(if (<= a 9.5e+65) (* c (* z (- b))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (x * -a);
double tmp;
if (a <= -8.5e+211) {
tmp = t_1;
} else if (a <= -8e+76) {
tmp = a * (c * j);
} else if (a <= -6.5e+63) {
tmp = a * (t * -x);
} else if (a <= -1.1e-160) {
tmp = y * (x * z);
} else if (a <= 9.5e+65) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (x * -a)
if (a <= (-8.5d+211)) then
tmp = t_1
else if (a <= (-8d+76)) then
tmp = a * (c * j)
else if (a <= (-6.5d+63)) then
tmp = a * (t * -x)
else if (a <= (-1.1d-160)) then
tmp = y * (x * z)
else if (a <= 9.5d+65) then
tmp = c * (z * -b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (x * -a);
double tmp;
if (a <= -8.5e+211) {
tmp = t_1;
} else if (a <= -8e+76) {
tmp = a * (c * j);
} else if (a <= -6.5e+63) {
tmp = a * (t * -x);
} else if (a <= -1.1e-160) {
tmp = y * (x * z);
} else if (a <= 9.5e+65) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (x * -a) tmp = 0 if a <= -8.5e+211: tmp = t_1 elif a <= -8e+76: tmp = a * (c * j) elif a <= -6.5e+63: tmp = a * (t * -x) elif a <= -1.1e-160: tmp = y * (x * z) elif a <= 9.5e+65: tmp = c * (z * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(x * Float64(-a))) tmp = 0.0 if (a <= -8.5e+211) tmp = t_1; elseif (a <= -8e+76) tmp = Float64(a * Float64(c * j)); elseif (a <= -6.5e+63) tmp = Float64(a * Float64(t * Float64(-x))); elseif (a <= -1.1e-160) tmp = Float64(y * Float64(x * z)); elseif (a <= 9.5e+65) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (x * -a); tmp = 0.0; if (a <= -8.5e+211) tmp = t_1; elseif (a <= -8e+76) tmp = a * (c * j); elseif (a <= -6.5e+63) tmp = a * (t * -x); elseif (a <= -1.1e-160) tmp = y * (x * z); elseif (a <= 9.5e+65) tmp = c * (z * -b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.5e+211], t$95$1, If[LessEqual[a, -8e+76], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.5e+63], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.1e-160], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+65], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{if}\;a \leq -8.5 \cdot 10^{+211}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -8 \cdot 10^{+76}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq -6.5 \cdot 10^{+63}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;a \leq -1.1 \cdot 10^{-160}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+65}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -8.50000000000000091e211 or 9.5000000000000005e65 < a Initial program 62.4%
sub-neg62.4%
+-commutative62.4%
associate-+l+62.4%
distribute-rgt-neg-in62.4%
+-commutative62.4%
fma-def63.8%
sub-neg63.8%
+-commutative63.8%
distribute-neg-in63.8%
unsub-neg63.8%
remove-double-neg63.8%
*-commutative63.8%
Simplified66.5%
Taylor expanded in a around inf 66.6%
+-commutative66.6%
mul-1-neg66.6%
unsub-neg66.6%
Simplified66.6%
Taylor expanded in c around 0 46.1%
mul-1-neg46.1%
associate-*r*45.1%
distribute-rgt-neg-in45.1%
*-commutative45.1%
associate-*r*47.4%
Simplified47.4%
if -8.50000000000000091e211 < a < -8.0000000000000004e76Initial program 79.6%
sub-neg79.6%
+-commutative79.6%
associate-+l+79.6%
distribute-rgt-neg-in79.6%
+-commutative79.6%
fma-def79.6%
sub-neg79.6%
+-commutative79.6%
distribute-neg-in79.6%
unsub-neg79.6%
remove-double-neg79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in a around inf 61.2%
+-commutative61.2%
mul-1-neg61.2%
unsub-neg61.2%
Simplified61.2%
Taylor expanded in c around inf 44.2%
if -8.0000000000000004e76 < a < -6.49999999999999992e63Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
associate-+l+100.0%
distribute-rgt-neg-in100.0%
+-commutative100.0%
fma-def100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
unsub-neg100.0%
remove-double-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in a around inf 58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
Simplified58.5%
Taylor expanded in c around 0 57.6%
neg-mul-157.6%
distribute-lft-neg-in57.6%
*-commutative57.6%
Simplified57.6%
if -6.49999999999999992e63 < a < -1.1e-160Initial program 83.0%
sub-neg83.0%
+-commutative83.0%
associate-+l+83.0%
distribute-rgt-neg-in83.0%
+-commutative83.0%
fma-def87.3%
sub-neg87.3%
+-commutative87.3%
distribute-neg-in87.3%
unsub-neg87.3%
remove-double-neg87.3%
*-commutative87.3%
Simplified87.3%
Taylor expanded in y around inf 57.8%
*-commutative57.8%
mul-1-neg57.8%
unsub-neg57.8%
Simplified57.8%
Taylor expanded in z around inf 45.2%
if -1.1e-160 < a < 9.5000000000000005e65Initial program 80.1%
sub-neg80.1%
+-commutative80.1%
associate-+l+80.1%
distribute-rgt-neg-in80.1%
+-commutative80.1%
fma-def81.1%
sub-neg81.1%
+-commutative81.1%
distribute-neg-in81.1%
unsub-neg81.1%
remove-double-neg81.1%
*-commutative81.1%
Simplified84.1%
Taylor expanded in b around inf 53.1%
Taylor expanded in i around 0 38.2%
neg-mul-138.2%
distribute-rgt-neg-in38.2%
*-commutative38.2%
distribute-rgt-neg-in38.2%
Simplified38.2%
Final simplification43.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.3e+217)
(* x (* t (- a)))
(if (<= a -6.8e+75)
(* a (* c j))
(if (<= a -1.7e+64)
(* a (* t (- x)))
(if (<= a -3e-161)
(* y (* x z))
(if (<= a 7.5e+66) (* c (* z (- b))) (* t (* x (- a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.3e+217) {
tmp = x * (t * -a);
} else if (a <= -6.8e+75) {
tmp = a * (c * j);
} else if (a <= -1.7e+64) {
tmp = a * (t * -x);
} else if (a <= -3e-161) {
tmp = y * (x * z);
} else if (a <= 7.5e+66) {
tmp = c * (z * -b);
} else {
tmp = t * (x * -a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1.3d+217)) then
tmp = x * (t * -a)
else if (a <= (-6.8d+75)) then
tmp = a * (c * j)
else if (a <= (-1.7d+64)) then
tmp = a * (t * -x)
else if (a <= (-3d-161)) then
tmp = y * (x * z)
else if (a <= 7.5d+66) then
tmp = c * (z * -b)
else
tmp = t * (x * -a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.3e+217) {
tmp = x * (t * -a);
} else if (a <= -6.8e+75) {
tmp = a * (c * j);
} else if (a <= -1.7e+64) {
tmp = a * (t * -x);
} else if (a <= -3e-161) {
tmp = y * (x * z);
} else if (a <= 7.5e+66) {
tmp = c * (z * -b);
} else {
tmp = t * (x * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.3e+217: tmp = x * (t * -a) elif a <= -6.8e+75: tmp = a * (c * j) elif a <= -1.7e+64: tmp = a * (t * -x) elif a <= -3e-161: tmp = y * (x * z) elif a <= 7.5e+66: tmp = c * (z * -b) else: tmp = t * (x * -a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.3e+217) tmp = Float64(x * Float64(t * Float64(-a))); elseif (a <= -6.8e+75) tmp = Float64(a * Float64(c * j)); elseif (a <= -1.7e+64) tmp = Float64(a * Float64(t * Float64(-x))); elseif (a <= -3e-161) tmp = Float64(y * Float64(x * z)); elseif (a <= 7.5e+66) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = Float64(t * Float64(x * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.3e+217) tmp = x * (t * -a); elseif (a <= -6.8e+75) tmp = a * (c * j); elseif (a <= -1.7e+64) tmp = a * (t * -x); elseif (a <= -3e-161) tmp = y * (x * z); elseif (a <= 7.5e+66) tmp = c * (z * -b); else tmp = t * (x * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.3e+217], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.8e+75], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.7e+64], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3e-161], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.5e+66], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.3 \cdot 10^{+217}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;a \leq -6.8 \cdot 10^{+75}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq -1.7 \cdot 10^{+64}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;a \leq -3 \cdot 10^{-161}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{+66}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if a < -1.30000000000000006e217Initial program 65.1%
sub-neg65.1%
+-commutative65.1%
associate-+l+65.1%
distribute-rgt-neg-in65.1%
+-commutative65.1%
fma-def65.1%
sub-neg65.1%
+-commutative65.1%
distribute-neg-in65.1%
unsub-neg65.1%
remove-double-neg65.1%
*-commutative65.1%
Simplified71.0%
Taylor expanded in a around inf 82.9%
+-commutative82.9%
mul-1-neg82.9%
unsub-neg82.9%
Simplified82.9%
Taylor expanded in c around 0 57.4%
mul-1-neg57.4%
associate-*r*68.5%
distribute-rgt-neg-in68.5%
*-commutative68.5%
associate-*r*57.6%
Simplified57.6%
Taylor expanded in t around 0 57.4%
mul-1-neg57.4%
*-commutative57.4%
*-commutative57.4%
associate-*l*68.5%
distribute-rgt-neg-in68.5%
*-commutative68.5%
Simplified68.5%
if -1.30000000000000006e217 < a < -6.80000000000000022e75Initial program 79.6%
sub-neg79.6%
+-commutative79.6%
associate-+l+79.6%
distribute-rgt-neg-in79.6%
+-commutative79.6%
fma-def79.6%
sub-neg79.6%
+-commutative79.6%
distribute-neg-in79.6%
unsub-neg79.6%
remove-double-neg79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in a around inf 61.2%
+-commutative61.2%
mul-1-neg61.2%
unsub-neg61.2%
Simplified61.2%
Taylor expanded in c around inf 44.2%
if -6.80000000000000022e75 < a < -1.7000000000000001e64Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
associate-+l+100.0%
distribute-rgt-neg-in100.0%
+-commutative100.0%
fma-def100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
unsub-neg100.0%
remove-double-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in a around inf 58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
Simplified58.5%
Taylor expanded in c around 0 57.6%
neg-mul-157.6%
distribute-lft-neg-in57.6%
*-commutative57.6%
Simplified57.6%
if -1.7000000000000001e64 < a < -2.99999999999999989e-161Initial program 83.0%
sub-neg83.0%
+-commutative83.0%
associate-+l+83.0%
distribute-rgt-neg-in83.0%
+-commutative83.0%
fma-def87.3%
sub-neg87.3%
+-commutative87.3%
distribute-neg-in87.3%
unsub-neg87.3%
remove-double-neg87.3%
*-commutative87.3%
Simplified87.3%
Taylor expanded in y around inf 57.8%
*-commutative57.8%
mul-1-neg57.8%
unsub-neg57.8%
Simplified57.8%
Taylor expanded in z around inf 45.2%
if -2.99999999999999989e-161 < a < 7.50000000000000024e66Initial program 80.1%
sub-neg80.1%
+-commutative80.1%
associate-+l+80.1%
distribute-rgt-neg-in80.1%
+-commutative80.1%
fma-def81.1%
sub-neg81.1%
+-commutative81.1%
distribute-neg-in81.1%
unsub-neg81.1%
remove-double-neg81.1%
*-commutative81.1%
Simplified84.1%
Taylor expanded in b around inf 53.1%
Taylor expanded in i around 0 38.2%
neg-mul-138.2%
distribute-rgt-neg-in38.2%
*-commutative38.2%
distribute-rgt-neg-in38.2%
Simplified38.2%
if 7.50000000000000024e66 < a Initial program 61.6%
sub-neg61.6%
+-commutative61.6%
associate-+l+61.6%
distribute-rgt-neg-in61.6%
+-commutative61.6%
fma-def63.4%
sub-neg63.4%
+-commutative63.4%
distribute-neg-in63.4%
unsub-neg63.4%
remove-double-neg63.4%
*-commutative63.4%
Simplified65.2%
Taylor expanded in a around inf 61.6%
+-commutative61.6%
mul-1-neg61.6%
unsub-neg61.6%
Simplified61.6%
Taylor expanded in c around 0 42.6%
mul-1-neg42.6%
associate-*r*38.0%
distribute-rgt-neg-in38.0%
*-commutative38.0%
associate-*r*44.3%
Simplified44.3%
Final simplification44.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -4.5e+46)
t_1
(if (<= a -1.9e-158)
(* y (* x z))
(if (<= a 9.5e+27) (* c (* z (- b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4.5e+46) {
tmp = t_1;
} else if (a <= -1.9e-158) {
tmp = y * (x * z);
} else if (a <= 9.5e+27) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-4.5d+46)) then
tmp = t_1
else if (a <= (-1.9d-158)) then
tmp = y * (x * z)
else if (a <= 9.5d+27) then
tmp = c * (z * -b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4.5e+46) {
tmp = t_1;
} else if (a <= -1.9e-158) {
tmp = y * (x * z);
} else if (a <= 9.5e+27) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -4.5e+46: tmp = t_1 elif a <= -1.9e-158: tmp = y * (x * z) elif a <= 9.5e+27: tmp = c * (z * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -4.5e+46) tmp = t_1; elseif (a <= -1.9e-158) tmp = Float64(y * Float64(x * z)); elseif (a <= 9.5e+27) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -4.5e+46) tmp = t_1; elseif (a <= -1.9e-158) tmp = y * (x * z); elseif (a <= 9.5e+27) tmp = c * (z * -b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.5e+46], t$95$1, If[LessEqual[a, -1.9e-158], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+27], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -4.5 \cdot 10^{+46}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{-158}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+27}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -4.5000000000000001e46 or 9.4999999999999997e27 < a Initial program 70.4%
sub-neg70.4%
+-commutative70.4%
associate-+l+70.4%
distribute-rgt-neg-in70.4%
+-commutative70.4%
fma-def72.0%
sub-neg72.0%
+-commutative72.0%
distribute-neg-in72.0%
unsub-neg72.0%
remove-double-neg72.0%
*-commutative72.0%
Simplified74.5%
Taylor expanded in a around inf 62.7%
+-commutative62.7%
mul-1-neg62.7%
unsub-neg62.7%
Simplified62.7%
if -4.5000000000000001e46 < a < -1.8999999999999999e-158Initial program 86.5%
sub-neg86.5%
+-commutative86.5%
associate-+l+86.5%
distribute-rgt-neg-in86.5%
+-commutative86.5%
fma-def88.8%
sub-neg88.8%
+-commutative88.8%
distribute-neg-in88.8%
unsub-neg88.8%
remove-double-neg88.8%
*-commutative88.8%
Simplified88.8%
Taylor expanded in y around inf 59.4%
*-commutative59.4%
mul-1-neg59.4%
unsub-neg59.4%
Simplified59.4%
Taylor expanded in z around inf 45.9%
if -1.8999999999999999e-158 < a < 9.4999999999999997e27Initial program 79.1%
sub-neg79.1%
+-commutative79.1%
associate-+l+79.1%
distribute-rgt-neg-in79.1%
+-commutative79.1%
fma-def80.2%
sub-neg80.2%
+-commutative80.2%
distribute-neg-in80.2%
unsub-neg80.2%
remove-double-neg80.2%
*-commutative80.2%
Simplified82.4%
Taylor expanded in b around inf 56.7%
Taylor expanded in i around 0 40.1%
neg-mul-140.1%
distribute-rgt-neg-in40.1%
*-commutative40.1%
distribute-rgt-neg-in40.1%
Simplified40.1%
Final simplification51.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -3.8e+46)
t_1
(if (<= a -1.2e-158)
(* y (* x z))
(if (<= a 8.8e+58) (* c (- (* a j) (* z b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -3.8e+46) {
tmp = t_1;
} else if (a <= -1.2e-158) {
tmp = y * (x * z);
} else if (a <= 8.8e+58) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-3.8d+46)) then
tmp = t_1
else if (a <= (-1.2d-158)) then
tmp = y * (x * z)
else if (a <= 8.8d+58) then
tmp = c * ((a * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -3.8e+46) {
tmp = t_1;
} else if (a <= -1.2e-158) {
tmp = y * (x * z);
} else if (a <= 8.8e+58) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -3.8e+46: tmp = t_1 elif a <= -1.2e-158: tmp = y * (x * z) elif a <= 8.8e+58: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -3.8e+46) tmp = t_1; elseif (a <= -1.2e-158) tmp = Float64(y * Float64(x * z)); elseif (a <= 8.8e+58) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -3.8e+46) tmp = t_1; elseif (a <= -1.2e-158) tmp = y * (x * z); elseif (a <= 8.8e+58) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.8e+46], t$95$1, If[LessEqual[a, -1.2e-158], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.8e+58], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -3.8 \cdot 10^{+46}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.2 \cdot 10^{-158}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 8.8 \cdot 10^{+58}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -3.7999999999999999e46 or 8.8000000000000003e58 < a Initial program 69.0%
sub-neg69.0%
+-commutative69.0%
associate-+l+69.0%
distribute-rgt-neg-in69.0%
+-commutative69.0%
fma-def70.7%
sub-neg70.7%
+-commutative70.7%
distribute-neg-in70.7%
unsub-neg70.7%
remove-double-neg70.7%
*-commutative70.7%
Simplified72.5%
Taylor expanded in a around inf 64.9%
+-commutative64.9%
mul-1-neg64.9%
unsub-neg64.9%
Simplified64.9%
if -3.7999999999999999e46 < a < -1.20000000000000004e-158Initial program 86.5%
sub-neg86.5%
+-commutative86.5%
associate-+l+86.5%
distribute-rgt-neg-in86.5%
+-commutative86.5%
fma-def88.8%
sub-neg88.8%
+-commutative88.8%
distribute-neg-in88.8%
unsub-neg88.8%
remove-double-neg88.8%
*-commutative88.8%
Simplified88.8%
Taylor expanded in y around inf 59.4%
*-commutative59.4%
mul-1-neg59.4%
unsub-neg59.4%
Simplified59.4%
Taylor expanded in z around inf 45.9%
if -1.20000000000000004e-158 < a < 8.8000000000000003e58Initial program 79.9%
sub-neg79.9%
+-commutative79.9%
associate-+l+79.9%
distribute-rgt-neg-in79.9%
+-commutative79.9%
fma-def80.9%
sub-neg80.9%
+-commutative80.9%
distribute-neg-in80.9%
unsub-neg80.9%
remove-double-neg80.9%
*-commutative80.9%
Simplified83.9%
Taylor expanded in c around inf 41.8%
distribute-rgt-in40.7%
*-commutative40.7%
mul-1-neg40.7%
cancel-sign-sub-inv40.7%
*-commutative40.7%
distribute-lft-out--41.8%
Simplified41.8%
Final simplification52.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -3.15e-21)
t_1
(if (<= c -2.3e-208)
(* i (- (* t b) (* y j)))
(if (<= c 6.5e-8) (* 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 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.15e-21) {
tmp = t_1;
} else if (c <= -2.3e-208) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 6.5e-8) {
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 = c * ((a * j) - (z * b))
if (c <= (-3.15d-21)) then
tmp = t_1
else if (c <= (-2.3d-208)) then
tmp = i * ((t * b) - (y * j))
else if (c <= 6.5d-8) 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 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.15e-21) {
tmp = t_1;
} else if (c <= -2.3e-208) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 6.5e-8) {
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 = c * ((a * j) - (z * b)) tmp = 0 if c <= -3.15e-21: tmp = t_1 elif c <= -2.3e-208: tmp = i * ((t * b) - (y * j)) elif c <= 6.5e-8: 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(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -3.15e-21) tmp = t_1; elseif (c <= -2.3e-208) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 6.5e-8) 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 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -3.15e-21) tmp = t_1; elseif (c <= -2.3e-208) tmp = i * ((t * b) - (y * j)); elseif (c <= 6.5e-8) 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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.15e-21], t$95$1, If[LessEqual[c, -2.3e-208], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.5e-8], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -3.15 \cdot 10^{-21}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -2.3 \cdot 10^{-208}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 6.5 \cdot 10^{-8}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -3.15e-21 or 6.49999999999999997e-8 < c Initial program 65.8%
sub-neg65.8%
+-commutative65.8%
associate-+l+65.8%
distribute-rgt-neg-in65.8%
+-commutative65.8%
fma-def68.1%
sub-neg68.1%
+-commutative68.1%
distribute-neg-in68.1%
unsub-neg68.1%
remove-double-neg68.1%
*-commutative68.1%
Simplified71.8%
Taylor expanded in c around inf 63.8%
distribute-rgt-in60.8%
*-commutative60.8%
mul-1-neg60.8%
cancel-sign-sub-inv60.8%
*-commutative60.8%
distribute-lft-out--63.8%
Simplified63.8%
if -3.15e-21 < c < -2.29999999999999997e-208Initial program 88.3%
sub-neg88.3%
+-commutative88.3%
associate-+l+88.3%
distribute-rgt-neg-in88.3%
+-commutative88.3%
fma-def88.3%
sub-neg88.3%
+-commutative88.3%
distribute-neg-in88.3%
unsub-neg88.3%
remove-double-neg88.3%
*-commutative88.3%
Simplified88.3%
Taylor expanded in i around inf 59.1%
mul-1-neg59.1%
unsub-neg59.1%
Simplified59.1%
if -2.29999999999999997e-208 < c < 6.49999999999999997e-8Initial program 87.0%
sub-neg87.0%
+-commutative87.0%
associate-+l+87.0%
distribute-rgt-neg-in87.0%
+-commutative87.0%
fma-def88.1%
sub-neg88.1%
+-commutative88.1%
distribute-neg-in88.1%
unsub-neg88.1%
remove-double-neg88.1%
*-commutative88.1%
Simplified88.1%
Taylor expanded in t around inf 57.7%
Taylor expanded in i around 0 47.0%
mul-1-neg47.0%
unsub-neg47.0%
*-commutative47.0%
associate-*r*52.4%
cancel-sign-sub-inv52.4%
*-commutative52.4%
associate-*l*55.5%
distribute-rgt-in57.7%
unsub-neg57.7%
Simplified57.7%
Final simplification61.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.7e+65) (not (<= b 3.5e-61))) (* i (* t b)) (* a (* c j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.7e+65) || !(b <= 3.5e-61)) {
tmp = i * (t * b);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-2.7d+65)) .or. (.not. (b <= 3.5d-61))) then
tmp = i * (t * b)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.7e+65) || !(b <= 3.5e-61)) {
tmp = i * (t * b);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -2.7e+65) or not (b <= 3.5e-61): tmp = i * (t * b) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -2.7e+65) || !(b <= 3.5e-61)) tmp = Float64(i * Float64(t * b)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -2.7e+65) || ~((b <= 3.5e-61))) tmp = i * (t * b); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -2.7e+65], N[Not[LessEqual[b, 3.5e-61]], $MachinePrecision]], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.7 \cdot 10^{+65} \lor \neg \left(b \leq 3.5 \cdot 10^{-61}\right):\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if b < -2.70000000000000019e65 or 3.5000000000000003e-61 < b Initial program 77.1%
sub-neg77.1%
+-commutative77.1%
associate-+l+77.1%
distribute-rgt-neg-in77.1%
+-commutative77.1%
fma-def80.0%
sub-neg80.0%
+-commutative80.0%
distribute-neg-in80.0%
unsub-neg80.0%
remove-double-neg80.0%
*-commutative80.0%
Simplified82.2%
Taylor expanded in t around inf 44.8%
Taylor expanded in i around inf 33.7%
if -2.70000000000000019e65 < b < 3.5000000000000003e-61Initial program 75.0%
sub-neg75.0%
+-commutative75.0%
associate-+l+75.0%
distribute-rgt-neg-in75.0%
+-commutative75.0%
fma-def75.0%
sub-neg75.0%
+-commutative75.0%
distribute-neg-in75.0%
unsub-neg75.0%
remove-double-neg75.0%
*-commutative75.0%
Simplified76.7%
Taylor expanded in a around inf 46.2%
+-commutative46.2%
mul-1-neg46.2%
unsub-neg46.2%
Simplified46.2%
Taylor expanded in c around inf 29.6%
Final simplification31.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -4500.0) (* t (* b i)) (if (<= t 3.4e+46) (* x (* y z)) (* i (* t b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -4500.0) {
tmp = t * (b * i);
} else if (t <= 3.4e+46) {
tmp = x * (y * z);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-4500.0d0)) then
tmp = t * (b * i)
else if (t <= 3.4d+46) then
tmp = x * (y * z)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -4500.0) {
tmp = t * (b * i);
} else if (t <= 3.4e+46) {
tmp = x * (y * z);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -4500.0: tmp = t * (b * i) elif t <= 3.4e+46: tmp = x * (y * z) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -4500.0) tmp = Float64(t * Float64(b * i)); elseif (t <= 3.4e+46) tmp = Float64(x * Float64(y * z)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -4500.0) tmp = t * (b * i); elseif (t <= 3.4e+46) tmp = x * (y * z); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -4500.0], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e+46], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4500:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{+46}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -4500Initial program 72.4%
sub-neg72.4%
+-commutative72.4%
associate-+l+72.4%
distribute-rgt-neg-in72.4%
+-commutative72.4%
fma-def74.0%
sub-neg74.0%
+-commutative74.0%
distribute-neg-in74.0%
unsub-neg74.0%
remove-double-neg74.0%
*-commutative74.0%
Simplified75.7%
Taylor expanded in t around inf 67.4%
Taylor expanded in i around inf 30.6%
if -4500 < t < 3.3999999999999998e46Initial program 85.5%
sub-neg85.5%
+-commutative85.5%
associate-+l+85.5%
distribute-rgt-neg-in85.5%
+-commutative85.5%
fma-def86.2%
sub-neg86.2%
+-commutative86.2%
distribute-neg-in86.2%
unsub-neg86.2%
remove-double-neg86.2%
*-commutative86.2%
Simplified87.5%
Taylor expanded in y around inf 41.1%
*-commutative41.1%
mul-1-neg41.1%
unsub-neg41.1%
Simplified41.1%
Taylor expanded in z around inf 29.5%
associate-*r*32.8%
*-commutative32.8%
Simplified32.8%
if 3.3999999999999998e46 < t Initial program 55.0%
sub-neg55.0%
+-commutative55.0%
associate-+l+55.0%
distribute-rgt-neg-in55.0%
+-commutative55.0%
fma-def58.8%
sub-neg58.8%
+-commutative58.8%
distribute-neg-in58.8%
unsub-neg58.8%
remove-double-neg58.8%
*-commutative58.8%
Simplified62.7%
Taylor expanded in t around inf 64.9%
Taylor expanded in i around inf 45.7%
Final simplification34.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -105000.0) (* b (* t i)) (if (<= t 1.15e+47) (* x (* y z)) (* i (* t b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -105000.0) {
tmp = b * (t * i);
} else if (t <= 1.15e+47) {
tmp = x * (y * z);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-105000.0d0)) then
tmp = b * (t * i)
else if (t <= 1.15d+47) then
tmp = x * (y * z)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -105000.0) {
tmp = b * (t * i);
} else if (t <= 1.15e+47) {
tmp = x * (y * z);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -105000.0: tmp = b * (t * i) elif t <= 1.15e+47: tmp = x * (y * z) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -105000.0) tmp = Float64(b * Float64(t * i)); elseif (t <= 1.15e+47) tmp = Float64(x * Float64(y * z)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -105000.0) tmp = b * (t * i); elseif (t <= 1.15e+47) tmp = x * (y * z); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -105000.0], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e+47], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -105000:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{+47}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -105000Initial program 72.4%
sub-neg72.4%
+-commutative72.4%
associate-+l+72.4%
distribute-rgt-neg-in72.4%
+-commutative72.4%
fma-def74.0%
sub-neg74.0%
+-commutative74.0%
distribute-neg-in74.0%
unsub-neg74.0%
remove-double-neg74.0%
*-commutative74.0%
Simplified75.7%
Taylor expanded in t around inf 67.4%
Taylor expanded in i around inf 28.1%
associate-*r*35.3%
*-commutative35.3%
Simplified35.3%
if -105000 < t < 1.1499999999999999e47Initial program 85.5%
sub-neg85.5%
+-commutative85.5%
associate-+l+85.5%
distribute-rgt-neg-in85.5%
+-commutative85.5%
fma-def86.2%
sub-neg86.2%
+-commutative86.2%
distribute-neg-in86.2%
unsub-neg86.2%
remove-double-neg86.2%
*-commutative86.2%
Simplified87.5%
Taylor expanded in y around inf 41.1%
*-commutative41.1%
mul-1-neg41.1%
unsub-neg41.1%
Simplified41.1%
Taylor expanded in z around inf 29.5%
associate-*r*32.8%
*-commutative32.8%
Simplified32.8%
if 1.1499999999999999e47 < t Initial program 55.0%
sub-neg55.0%
+-commutative55.0%
associate-+l+55.0%
distribute-rgt-neg-in55.0%
+-commutative55.0%
fma-def58.8%
sub-neg58.8%
+-commutative58.8%
distribute-neg-in58.8%
unsub-neg58.8%
remove-double-neg58.8%
*-commutative58.8%
Simplified62.7%
Taylor expanded in t around inf 64.9%
Taylor expanded in i around inf 45.7%
Final simplification36.0%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 76.1%
sub-neg76.1%
+-commutative76.1%
associate-+l+76.1%
distribute-rgt-neg-in76.1%
+-commutative76.1%
fma-def77.7%
sub-neg77.7%
+-commutative77.7%
distribute-neg-in77.7%
unsub-neg77.7%
remove-double-neg77.7%
*-commutative77.7%
Simplified79.7%
Taylor expanded in a around inf 37.8%
+-commutative37.8%
mul-1-neg37.8%
unsub-neg37.8%
Simplified37.8%
Taylor expanded in c around inf 18.8%
Final simplification18.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023238
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))