
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (+ t_1 (* x (- (* y z) (* t a)))))
(t_3 (+ t_2 (* j (- (* a c) (* y i))))))
(if (<= t_3 (- INFINITY))
(+ t_1 (+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* x t)))))
(if (<= t_3 INFINITY)
(+ t_2 (* j (fma a c (* y (- i)))))
(* i (cbrt (pow (- (* t b) (* y j)) 3.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = t_1 + (x * ((y * z) - (t * a)));
double t_3 = t_2 + (j * ((a * c) - (y * i)));
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = t_1 + ((y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))));
} else if (t_3 <= ((double) INFINITY)) {
tmp = t_2 + (j * fma(a, c, (y * -i)));
} else {
tmp = i * cbrt(pow(((t * b) - (y * j)), 3.0));
}
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(t_1 + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) t_3 = Float64(t_2 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = Float64(t_1 + Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t))))); elseif (t_3 <= Inf) tmp = Float64(t_2 + Float64(j * fma(a, c, Float64(y * Float64(-i))))); else tmp = Float64(i * cbrt((Float64(Float64(t * b) - Float64(y * j)) ^ 3.0))); end return 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[(t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, (-Infinity)], N[(t$95$1 + N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[(t$95$2 + N[(j * N[(a * c + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[Power[N[Power[N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := t\_1 + x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := t\_2 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_3 \leq -\infty:\\
\;\;\;\;t\_1 + \left(y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\right)\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;t\_2 + j \cdot \mathsf{fma}\left(a, c, y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \sqrt[3]{{\left(t \cdot b - y \cdot j\right)}^{3}}\\
\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 81.6%
Taylor expanded in a around -inf 83.8%
Simplified89.2%
if -inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.3%
sub-neg91.3%
sub-neg91.3%
*-commutative91.3%
sub-neg91.3%
*-commutative91.3%
fma-def91.3%
Simplified91.3%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in a around -inf 15.1%
Simplified20.1%
Taylor expanded in i around inf 47.9%
+-commutative47.9%
mul-1-neg47.9%
unsub-neg47.9%
*-commutative47.9%
Simplified47.9%
add-cbrt-cube52.7%
pow352.7%
*-commutative52.7%
Applied egg-rr52.7%
Final simplification84.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (+ t_1 (* x (- (* y z) (* t a)))))
(t_3 (+ t_2 (* j (- (* a c) (* y i))))))
(if (<= t_3 (- INFINITY))
(+ t_1 (+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* x t)))))
(if (<= t_3 INFINITY)
(+ t_2 (* j (fma a c (* y (- i)))))
(* i (- (* t b) (* y j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = t_1 + (x * ((y * z) - (t * a)));
double t_3 = t_2 + (j * ((a * c) - (y * i)));
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = t_1 + ((y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))));
} else if (t_3 <= ((double) INFINITY)) {
tmp = t_2 + (j * fma(a, c, (y * -i)));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(t_1 + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) t_3 = Float64(t_2 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = Float64(t_1 + Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t))))); elseif (t_3 <= Inf) tmp = Float64(t_2 + Float64(j * fma(a, c, Float64(y * Float64(-i))))); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return 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[(t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, (-Infinity)], N[(t$95$1 + N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[(t$95$2 + N[(j * N[(a * c + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := t\_1 + x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := t\_2 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_3 \leq -\infty:\\
\;\;\;\;t\_1 + \left(y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\right)\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;t\_2 + j \cdot \mathsf{fma}\left(a, c, y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\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 81.6%
Taylor expanded in a around -inf 83.8%
Simplified89.2%
if -inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.3%
sub-neg91.3%
sub-neg91.3%
*-commutative91.3%
sub-neg91.3%
*-commutative91.3%
fma-def91.3%
Simplified91.3%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in a around -inf 15.1%
Simplified20.1%
Taylor expanded in i around inf 47.9%
+-commutative47.9%
mul-1-neg47.9%
unsub-neg47.9%
*-commutative47.9%
Simplified47.9%
Final simplification83.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (+ (+ t_1 (* x (- (* y z) (* t a)))) (* j (- (* a c) (* y i))))))
(if (<= t_2 (- INFINITY))
(+ t_1 (+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* x t)))))
(if (<= t_2 INFINITY) t_2 (* i (- (* t b) (* y j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = (t_1 + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1 + ((y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))));
} else if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = (t_1 + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1 + ((y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))));
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = (t_1 + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_2 <= -math.inf: tmp = t_1 + ((y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)))) elif t_2 <= math.inf: tmp = t_2 else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(Float64(t_1 + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(t_1 + Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t))))); elseif (t_2 <= Inf) tmp = t_2; else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = (t_1 + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1 + ((y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)))); elseif (t_2 <= Inf) tmp = t_2; else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(t$95$1 + N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, Infinity], t$95$2, N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := \left(t\_1 + x \cdot \left(y \cdot z - t \cdot a\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1 + \left(y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\right)\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\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 81.6%
Taylor expanded in a around -inf 83.8%
Simplified89.2%
if -inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.3%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in a around -inf 15.1%
Simplified20.1%
Taylor expanded in i around inf 47.9%
+-commutative47.9%
mul-1-neg47.9%
unsub-neg47.9%
*-commutative47.9%
Simplified47.9%
Final simplification83.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* b (- (* t i) (* z c))) (* x (- (* y z) (* t a))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* i (- (* t b) (* y j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((b * ((t * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((b * ((t * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((b * ((t * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((b * ((t * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot \left(t \cdot i - z \cdot c\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\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 88.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in a around -inf 15.1%
Simplified20.1%
Taylor expanded in i around inf 47.9%
+-commutative47.9%
mul-1-neg47.9%
unsub-neg47.9%
*-commutative47.9%
Simplified47.9%
Final simplification81.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j))))
(t_2 (* a (- (* c j) (* x t))))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= b -7e+40)
t_3
(if (<= b -1.35e-120)
t_1
(if (<= b -5e-162)
(* y (* x z))
(if (<= b -5.9e-167)
t_1
(if (<= b 5e-141)
t_2
(if (<= b 4.8e-62)
(* i (* y (- j)))
(if (or (<= b 1.2e-18)
(and (not (<= b 1.8e+14)) (<= b 1.35e+66)))
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 = y * (i * -j);
double t_2 = a * ((c * j) - (x * t));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -7e+40) {
tmp = t_3;
} else if (b <= -1.35e-120) {
tmp = t_1;
} else if (b <= -5e-162) {
tmp = y * (x * z);
} else if (b <= -5.9e-167) {
tmp = t_1;
} else if (b <= 5e-141) {
tmp = t_2;
} else if (b <= 4.8e-62) {
tmp = i * (y * -j);
} else if ((b <= 1.2e-18) || (!(b <= 1.8e+14) && (b <= 1.35e+66))) {
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 = y * (i * -j)
t_2 = a * ((c * j) - (x * t))
t_3 = b * ((t * i) - (z * c))
if (b <= (-7d+40)) then
tmp = t_3
else if (b <= (-1.35d-120)) then
tmp = t_1
else if (b <= (-5d-162)) then
tmp = y * (x * z)
else if (b <= (-5.9d-167)) then
tmp = t_1
else if (b <= 5d-141) then
tmp = t_2
else if (b <= 4.8d-62) then
tmp = i * (y * -j)
else if ((b <= 1.2d-18) .or. (.not. (b <= 1.8d+14)) .and. (b <= 1.35d+66)) 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 = y * (i * -j);
double t_2 = a * ((c * j) - (x * t));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -7e+40) {
tmp = t_3;
} else if (b <= -1.35e-120) {
tmp = t_1;
} else if (b <= -5e-162) {
tmp = y * (x * z);
} else if (b <= -5.9e-167) {
tmp = t_1;
} else if (b <= 5e-141) {
tmp = t_2;
} else if (b <= 4.8e-62) {
tmp = i * (y * -j);
} else if ((b <= 1.2e-18) || (!(b <= 1.8e+14) && (b <= 1.35e+66))) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (i * -j) t_2 = a * ((c * j) - (x * t)) t_3 = b * ((t * i) - (z * c)) tmp = 0 if b <= -7e+40: tmp = t_3 elif b <= -1.35e-120: tmp = t_1 elif b <= -5e-162: tmp = y * (x * z) elif b <= -5.9e-167: tmp = t_1 elif b <= 5e-141: tmp = t_2 elif b <= 4.8e-62: tmp = i * (y * -j) elif (b <= 1.2e-18) or (not (b <= 1.8e+14) and (b <= 1.35e+66)): tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(i * Float64(-j))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -7e+40) tmp = t_3; elseif (b <= -1.35e-120) tmp = t_1; elseif (b <= -5e-162) tmp = Float64(y * Float64(x * z)); elseif (b <= -5.9e-167) tmp = t_1; elseif (b <= 5e-141) tmp = t_2; elseif (b <= 4.8e-62) tmp = Float64(i * Float64(y * Float64(-j))); elseif ((b <= 1.2e-18) || (!(b <= 1.8e+14) && (b <= 1.35e+66))) 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 = y * (i * -j); t_2 = a * ((c * j) - (x * t)); t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -7e+40) tmp = t_3; elseif (b <= -1.35e-120) tmp = t_1; elseif (b <= -5e-162) tmp = y * (x * z); elseif (b <= -5.9e-167) tmp = t_1; elseif (b <= 5e-141) tmp = t_2; elseif (b <= 4.8e-62) tmp = i * (y * -j); elseif ((b <= 1.2e-18) || (~((b <= 1.8e+14)) && (b <= 1.35e+66))) 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[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7e+40], t$95$3, If[LessEqual[b, -1.35e-120], t$95$1, If[LessEqual[b, -5e-162], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.9e-167], t$95$1, If[LessEqual[b, 5e-141], t$95$2, If[LessEqual[b, 4.8e-62], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 1.2e-18], And[N[Not[LessEqual[b, 1.8e+14]], $MachinePrecision], LessEqual[b, 1.35e+66]]], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot \left(-j\right)\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7 \cdot 10^{+40}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -1.35 \cdot 10^{-120}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5 \cdot 10^{-162}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq -5.9 \cdot 10^{-167}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-141}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-62}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-18} \lor \neg \left(b \leq 1.8 \cdot 10^{+14}\right) \land b \leq 1.35 \cdot 10^{+66}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -6.9999999999999998e40 or 1.19999999999999997e-18 < b < 1.8e14 or 1.35e66 < b Initial program 75.7%
Taylor expanded in b around inf 68.5%
if -6.9999999999999998e40 < b < -1.3499999999999999e-120 or -5.00000000000000014e-162 < b < -5.90000000000000022e-167Initial program 79.4%
Taylor expanded in y around inf 67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in x around 0 48.4%
mul-1-neg48.4%
*-commutative48.4%
distribute-rgt-neg-in48.4%
Simplified48.4%
if -1.3499999999999999e-120 < b < -5.00000000000000014e-162Initial program 76.1%
Taylor expanded in y around inf 87.3%
+-commutative87.3%
mul-1-neg87.3%
unsub-neg87.3%
*-commutative87.3%
Simplified87.3%
Taylor expanded in x around inf 75.0%
if -5.90000000000000022e-167 < b < 4.9999999999999999e-141 or 4.79999999999999967e-62 < b < 1.19999999999999997e-18 or 1.8e14 < b < 1.35e66Initial program 69.4%
Taylor expanded in a around inf 57.2%
+-commutative57.2%
mul-1-neg57.2%
unsub-neg57.2%
*-commutative57.2%
*-commutative57.2%
Simplified57.2%
if 4.9999999999999999e-141 < b < 4.79999999999999967e-62Initial program 77.6%
Taylor expanded in y around inf 61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in x around 0 54.7%
mul-1-neg54.7%
*-commutative54.7%
distribute-rgt-neg-in54.7%
Simplified54.7%
Final simplification61.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j))))
(t_2 (* a (- (* c j) (* x t))))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= b -5.2e+38)
t_3
(if (<= b -1.9e-117)
t_1
(if (<= b -7.2e-166)
(* y (* x z))
(if (<= b -5.8e-167)
t_1
(if (<= b 4.3e-141)
t_2
(if (<= b 6.5e-60)
(* i (* y (- j)))
(if (<= b 3.1e-19)
t_2
(if (<= b 3.1e+20)
(* c (- (* a j) (* z b)))
(if (<= b 2.55e+66) 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 = y * (i * -j);
double t_2 = a * ((c * j) - (x * t));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.2e+38) {
tmp = t_3;
} else if (b <= -1.9e-117) {
tmp = t_1;
} else if (b <= -7.2e-166) {
tmp = y * (x * z);
} else if (b <= -5.8e-167) {
tmp = t_1;
} else if (b <= 4.3e-141) {
tmp = t_2;
} else if (b <= 6.5e-60) {
tmp = i * (y * -j);
} else if (b <= 3.1e-19) {
tmp = t_2;
} else if (b <= 3.1e+20) {
tmp = c * ((a * j) - (z * b));
} else if (b <= 2.55e+66) {
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 = y * (i * -j)
t_2 = a * ((c * j) - (x * t))
t_3 = b * ((t * i) - (z * c))
if (b <= (-5.2d+38)) then
tmp = t_3
else if (b <= (-1.9d-117)) then
tmp = t_1
else if (b <= (-7.2d-166)) then
tmp = y * (x * z)
else if (b <= (-5.8d-167)) then
tmp = t_1
else if (b <= 4.3d-141) then
tmp = t_2
else if (b <= 6.5d-60) then
tmp = i * (y * -j)
else if (b <= 3.1d-19) then
tmp = t_2
else if (b <= 3.1d+20) then
tmp = c * ((a * j) - (z * b))
else if (b <= 2.55d+66) 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 = y * (i * -j);
double t_2 = a * ((c * j) - (x * t));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.2e+38) {
tmp = t_3;
} else if (b <= -1.9e-117) {
tmp = t_1;
} else if (b <= -7.2e-166) {
tmp = y * (x * z);
} else if (b <= -5.8e-167) {
tmp = t_1;
} else if (b <= 4.3e-141) {
tmp = t_2;
} else if (b <= 6.5e-60) {
tmp = i * (y * -j);
} else if (b <= 3.1e-19) {
tmp = t_2;
} else if (b <= 3.1e+20) {
tmp = c * ((a * j) - (z * b));
} else if (b <= 2.55e+66) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (i * -j) t_2 = a * ((c * j) - (x * t)) t_3 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5.2e+38: tmp = t_3 elif b <= -1.9e-117: tmp = t_1 elif b <= -7.2e-166: tmp = y * (x * z) elif b <= -5.8e-167: tmp = t_1 elif b <= 4.3e-141: tmp = t_2 elif b <= 6.5e-60: tmp = i * (y * -j) elif b <= 3.1e-19: tmp = t_2 elif b <= 3.1e+20: tmp = c * ((a * j) - (z * b)) elif b <= 2.55e+66: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(i * Float64(-j))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.2e+38) tmp = t_3; elseif (b <= -1.9e-117) tmp = t_1; elseif (b <= -7.2e-166) tmp = Float64(y * Float64(x * z)); elseif (b <= -5.8e-167) tmp = t_1; elseif (b <= 4.3e-141) tmp = t_2; elseif (b <= 6.5e-60) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= 3.1e-19) tmp = t_2; elseif (b <= 3.1e+20) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (b <= 2.55e+66) 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 = y * (i * -j); t_2 = a * ((c * j) - (x * t)); t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -5.2e+38) tmp = t_3; elseif (b <= -1.9e-117) tmp = t_1; elseif (b <= -7.2e-166) tmp = y * (x * z); elseif (b <= -5.8e-167) tmp = t_1; elseif (b <= 4.3e-141) tmp = t_2; elseif (b <= 6.5e-60) tmp = i * (y * -j); elseif (b <= 3.1e-19) tmp = t_2; elseif (b <= 3.1e+20) tmp = c * ((a * j) - (z * b)); elseif (b <= 2.55e+66) 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[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.2e+38], t$95$3, If[LessEqual[b, -1.9e-117], t$95$1, If[LessEqual[b, -7.2e-166], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.8e-167], t$95$1, If[LessEqual[b, 4.3e-141], t$95$2, If[LessEqual[b, 6.5e-60], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e-19], t$95$2, If[LessEqual[b, 3.1e+20], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.55e+66], t$95$2, t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot \left(-j\right)\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.2 \cdot 10^{+38}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -1.9 \cdot 10^{-117}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.2 \cdot 10^{-166}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq -5.8 \cdot 10^{-167}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.3 \cdot 10^{-141}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-60}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-19}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{+20}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq 2.55 \cdot 10^{+66}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -5.1999999999999998e38 or 2.55000000000000004e66 < b Initial program 75.7%
Taylor expanded in b around inf 68.8%
if -5.1999999999999998e38 < b < -1.89999999999999986e-117 or -7.2000000000000002e-166 < b < -5.80000000000000005e-167Initial program 79.4%
Taylor expanded in y around inf 67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in x around 0 48.4%
mul-1-neg48.4%
*-commutative48.4%
distribute-rgt-neg-in48.4%
Simplified48.4%
if -1.89999999999999986e-117 < b < -7.2000000000000002e-166Initial program 76.1%
Taylor expanded in y around inf 87.3%
+-commutative87.3%
mul-1-neg87.3%
unsub-neg87.3%
*-commutative87.3%
Simplified87.3%
Taylor expanded in x around inf 75.0%
if -5.80000000000000005e-167 < b < 4.29999999999999974e-141 or 6.49999999999999995e-60 < b < 3.0999999999999999e-19 or 3.1e20 < b < 2.55000000000000004e66Initial program 69.1%
Taylor expanded in a around inf 58.7%
+-commutative58.7%
mul-1-neg58.7%
unsub-neg58.7%
*-commutative58.7%
*-commutative58.7%
Simplified58.7%
if 4.29999999999999974e-141 < b < 6.49999999999999995e-60Initial program 77.6%
Taylor expanded in y around inf 61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in x around 0 54.7%
mul-1-neg54.7%
*-commutative54.7%
distribute-rgt-neg-in54.7%
Simplified54.7%
if 3.0999999999999999e-19 < b < 3.1e20Initial program 74.9%
Taylor expanded in c around inf 55.0%
Final simplification61.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (- (* z (* x y)) (* a (- (* x t) (* c j)))))
(t_3 (* i (- (* t b) (* y j)))))
(if (<= i -3.8e+164)
t_3
(if (<= i -4.8e+42)
(* y (- (* x z) (* i j)))
(if (<= i -1.25e+17)
t_1
(if (<= i -1.35e-91)
t_2
(if (<= i -4.4e-163)
t_1
(if (<= i 5e-178)
t_2
(if (<= i 2.8e+32)
(* z (- (* x y) (* b c)))
(if (<= i 5.2e+116)
(- (* a (* c j)) (* i (* y j)))
(if (<= i 2.3e+150) t_1 t_3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = (z * (x * y)) - (a * ((x * t) - (c * j)));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -3.8e+164) {
tmp = t_3;
} else if (i <= -4.8e+42) {
tmp = y * ((x * z) - (i * j));
} else if (i <= -1.25e+17) {
tmp = t_1;
} else if (i <= -1.35e-91) {
tmp = t_2;
} else if (i <= -4.4e-163) {
tmp = t_1;
} else if (i <= 5e-178) {
tmp = t_2;
} else if (i <= 2.8e+32) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 5.2e+116) {
tmp = (a * (c * j)) - (i * (y * j));
} else if (i <= 2.3e+150) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = (z * (x * y)) - (a * ((x * t) - (c * j)))
t_3 = i * ((t * b) - (y * j))
if (i <= (-3.8d+164)) then
tmp = t_3
else if (i <= (-4.8d+42)) then
tmp = y * ((x * z) - (i * j))
else if (i <= (-1.25d+17)) then
tmp = t_1
else if (i <= (-1.35d-91)) then
tmp = t_2
else if (i <= (-4.4d-163)) then
tmp = t_1
else if (i <= 5d-178) then
tmp = t_2
else if (i <= 2.8d+32) then
tmp = z * ((x * y) - (b * c))
else if (i <= 5.2d+116) then
tmp = (a * (c * j)) - (i * (y * j))
else if (i <= 2.3d+150) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = (z * (x * y)) - (a * ((x * t) - (c * j)));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -3.8e+164) {
tmp = t_3;
} else if (i <= -4.8e+42) {
tmp = y * ((x * z) - (i * j));
} else if (i <= -1.25e+17) {
tmp = t_1;
} else if (i <= -1.35e-91) {
tmp = t_2;
} else if (i <= -4.4e-163) {
tmp = t_1;
} else if (i <= 5e-178) {
tmp = t_2;
} else if (i <= 2.8e+32) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 5.2e+116) {
tmp = (a * (c * j)) - (i * (y * j));
} else if (i <= 2.3e+150) {
tmp = t_1;
} 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 = (z * (x * y)) - (a * ((x * t) - (c * j))) t_3 = i * ((t * b) - (y * j)) tmp = 0 if i <= -3.8e+164: tmp = t_3 elif i <= -4.8e+42: tmp = y * ((x * z) - (i * j)) elif i <= -1.25e+17: tmp = t_1 elif i <= -1.35e-91: tmp = t_2 elif i <= -4.4e-163: tmp = t_1 elif i <= 5e-178: tmp = t_2 elif i <= 2.8e+32: tmp = z * ((x * y) - (b * c)) elif i <= 5.2e+116: tmp = (a * (c * j)) - (i * (y * j)) elif i <= 2.3e+150: tmp = t_1 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(Float64(z * Float64(x * y)) - Float64(a * Float64(Float64(x * t) - Float64(c * j)))) t_3 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -3.8e+164) tmp = t_3; elseif (i <= -4.8e+42) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (i <= -1.25e+17) tmp = t_1; elseif (i <= -1.35e-91) tmp = t_2; elseif (i <= -4.4e-163) tmp = t_1; elseif (i <= 5e-178) tmp = t_2; elseif (i <= 2.8e+32) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= 5.2e+116) tmp = Float64(Float64(a * Float64(c * j)) - Float64(i * Float64(y * j))); elseif (i <= 2.3e+150) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = (z * (x * y)) - (a * ((x * t) - (c * j))); t_3 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -3.8e+164) tmp = t_3; elseif (i <= -4.8e+42) tmp = y * ((x * z) - (i * j)); elseif (i <= -1.25e+17) tmp = t_1; elseif (i <= -1.35e-91) tmp = t_2; elseif (i <= -4.4e-163) tmp = t_1; elseif (i <= 5e-178) tmp = t_2; elseif (i <= 2.8e+32) tmp = z * ((x * y) - (b * c)); elseif (i <= 5.2e+116) tmp = (a * (c * j)) - (i * (y * j)); elseif (i <= 2.3e+150) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.8e+164], t$95$3, If[LessEqual[i, -4.8e+42], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.25e+17], t$95$1, If[LessEqual[i, -1.35e-91], t$95$2, If[LessEqual[i, -4.4e-163], t$95$1, If[LessEqual[i, 5e-178], t$95$2, If[LessEqual[i, 2.8e+32], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.2e+116], N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.3e+150], t$95$1, t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := z \cdot \left(x \cdot y\right) - a \cdot \left(x \cdot t - c \cdot j\right)\\
t_3 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -3.8 \cdot 10^{+164}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq -4.8 \cdot 10^{+42}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;i \leq -1.25 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.35 \cdot 10^{-91}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -4.4 \cdot 10^{-163}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5 \cdot 10^{-178}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 2.8 \cdot 10^{+32}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{+116}:\\
\;\;\;\;a \cdot \left(c \cdot j\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{+150}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if i < -3.80000000000000021e164 or 2.30000000000000001e150 < i Initial program 65.2%
Taylor expanded in a around -inf 71.6%
Simplified66.4%
Taylor expanded in i around inf 85.2%
+-commutative85.2%
mul-1-neg85.2%
unsub-neg85.2%
*-commutative85.2%
Simplified85.2%
if -3.80000000000000021e164 < i < -4.7999999999999997e42Initial program 68.4%
Taylor expanded in y around inf 64.4%
+-commutative64.4%
mul-1-neg64.4%
unsub-neg64.4%
*-commutative64.4%
Simplified64.4%
if -4.7999999999999997e42 < i < -1.25e17 or -1.3499999999999999e-91 < i < -4.40000000000000022e-163 or 5.19999999999999973e116 < i < 2.30000000000000001e150Initial program 71.9%
Taylor expanded in b around inf 70.1%
if -1.25e17 < i < -1.3499999999999999e-91 or -4.40000000000000022e-163 < i < 4.99999999999999976e-178Initial program 81.7%
Taylor expanded in a around -inf 78.0%
Simplified85.8%
Taylor expanded in b around 0 73.5%
Taylor expanded in x around inf 66.1%
associate-*r*70.5%
Simplified70.5%
if 4.99999999999999976e-178 < i < 2.8e32Initial program 82.9%
Taylor expanded in z around inf 63.7%
*-commutative63.7%
*-commutative63.7%
Simplified63.7%
if 2.8e32 < i < 5.19999999999999973e116Initial program 61.9%
Taylor expanded in a around -inf 80.0%
Simplified90.0%
Taylor expanded in b around 0 90.0%
Taylor expanded in x around 0 81.2%
distribute-lft-out--81.2%
Simplified81.2%
Final simplification73.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j))))
(t_2 (* a (- (* c j) (* x t))))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= i -9.2e+93)
t_1
(if (<= i -2.1e+48)
t_2
(if (<= i -1.6e+41)
(* i (* y (- j)))
(if (<= i -3.7e-24)
t_3
(if (<= i -2.3e-85)
t_2
(if (<= i -1.14e-182)
t_3
(if (<= i 1.05e-177)
t_2
(if (<= i 1.3e+50) (* c (- (* a j) (* z b))) t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = a * ((c * j) - (x * t));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (i <= -9.2e+93) {
tmp = t_1;
} else if (i <= -2.1e+48) {
tmp = t_2;
} else if (i <= -1.6e+41) {
tmp = i * (y * -j);
} else if (i <= -3.7e-24) {
tmp = t_3;
} else if (i <= -2.3e-85) {
tmp = t_2;
} else if (i <= -1.14e-182) {
tmp = t_3;
} else if (i <= 1.05e-177) {
tmp = t_2;
} else if (i <= 1.3e+50) {
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) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = a * ((c * j) - (x * t))
t_3 = b * ((t * i) - (z * c))
if (i <= (-9.2d+93)) then
tmp = t_1
else if (i <= (-2.1d+48)) then
tmp = t_2
else if (i <= (-1.6d+41)) then
tmp = i * (y * -j)
else if (i <= (-3.7d-24)) then
tmp = t_3
else if (i <= (-2.3d-85)) then
tmp = t_2
else if (i <= (-1.14d-182)) then
tmp = t_3
else if (i <= 1.05d-177) then
tmp = t_2
else if (i <= 1.3d+50) then
tmp = c * ((a * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = a * ((c * j) - (x * t));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (i <= -9.2e+93) {
tmp = t_1;
} else if (i <= -2.1e+48) {
tmp = t_2;
} else if (i <= -1.6e+41) {
tmp = i * (y * -j);
} else if (i <= -3.7e-24) {
tmp = t_3;
} else if (i <= -2.3e-85) {
tmp = t_2;
} else if (i <= -1.14e-182) {
tmp = t_3;
} else if (i <= 1.05e-177) {
tmp = t_2;
} else if (i <= 1.3e+50) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = a * ((c * j) - (x * t)) t_3 = b * ((t * i) - (z * c)) tmp = 0 if i <= -9.2e+93: tmp = t_1 elif i <= -2.1e+48: tmp = t_2 elif i <= -1.6e+41: tmp = i * (y * -j) elif i <= -3.7e-24: tmp = t_3 elif i <= -2.3e-85: tmp = t_2 elif i <= -1.14e-182: tmp = t_3 elif i <= 1.05e-177: tmp = t_2 elif i <= 1.3e+50: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (i <= -9.2e+93) tmp = t_1; elseif (i <= -2.1e+48) tmp = t_2; elseif (i <= -1.6e+41) tmp = Float64(i * Float64(y * Float64(-j))); elseif (i <= -3.7e-24) tmp = t_3; elseif (i <= -2.3e-85) tmp = t_2; elseif (i <= -1.14e-182) tmp = t_3; elseif (i <= 1.05e-177) tmp = t_2; elseif (i <= 1.3e+50) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = a * ((c * j) - (x * t)); t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (i <= -9.2e+93) tmp = t_1; elseif (i <= -2.1e+48) tmp = t_2; elseif (i <= -1.6e+41) tmp = i * (y * -j); elseif (i <= -3.7e-24) tmp = t_3; elseif (i <= -2.3e-85) tmp = t_2; elseif (i <= -1.14e-182) tmp = t_3; elseif (i <= 1.05e-177) tmp = t_2; elseif (i <= 1.3e+50) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -9.2e+93], t$95$1, If[LessEqual[i, -2.1e+48], t$95$2, If[LessEqual[i, -1.6e+41], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.7e-24], t$95$3, If[LessEqual[i, -2.3e-85], t$95$2, If[LessEqual[i, -1.14e-182], t$95$3, If[LessEqual[i, 1.05e-177], t$95$2, If[LessEqual[i, 1.3e+50], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;i \leq -9.2 \cdot 10^{+93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.1 \cdot 10^{+48}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.6 \cdot 10^{+41}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;i \leq -3.7 \cdot 10^{-24}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq -2.3 \cdot 10^{-85}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.14 \cdot 10^{-182}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq 1.05 \cdot 10^{-177}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 1.3 \cdot 10^{+50}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -9.2000000000000006e93 or 1.3000000000000001e50 < i Initial program 64.0%
Taylor expanded in a around -inf 70.7%
Simplified67.9%
Taylor expanded in i around inf 78.1%
+-commutative78.1%
mul-1-neg78.1%
unsub-neg78.1%
*-commutative78.1%
Simplified78.1%
if -9.2000000000000006e93 < i < -2.0999999999999998e48 or -3.69999999999999981e-24 < i < -2.3e-85 or -1.14000000000000006e-182 < i < 1.05e-177Initial program 80.6%
Taylor expanded in a around inf 55.4%
+-commutative55.4%
mul-1-neg55.4%
unsub-neg55.4%
*-commutative55.4%
*-commutative55.4%
Simplified55.4%
if -2.0999999999999998e48 < i < -1.60000000000000005e41Initial program 50.0%
Taylor expanded in y around inf 99.2%
+-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
*-commutative99.2%
Simplified99.2%
Taylor expanded in x around 0 100.0%
mul-1-neg100.0%
*-commutative100.0%
distribute-rgt-neg-in100.0%
Simplified100.0%
if -1.60000000000000005e41 < i < -3.69999999999999981e-24 or -2.3e-85 < i < -1.14000000000000006e-182Initial program 81.6%
Taylor expanded in b around inf 56.6%
if 1.05e-177 < i < 1.3000000000000001e50Initial program 81.6%
Taylor expanded in c around inf 55.9%
Final simplification64.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* j (- (* a c) (* y i))) (* x (- (* t a) (* y z)))))
(t_2 (* b (- (* t i) (* z c)))))
(if (<= b -1.7e+151)
t_2
(if (<= b -1.2e-47)
t_1
(if (<= b -1.6e-150)
(* y (- (* x z) (* i j)))
(if (<= b 1960000.0)
t_1
(if (<= b 2.3e+14)
(* b (* z (- c)))
(if (<= b 1.2e+67) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1.7e+151) {
tmp = t_2;
} else if (b <= -1.2e-47) {
tmp = t_1;
} else if (b <= -1.6e-150) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 1960000.0) {
tmp = t_1;
} else if (b <= 2.3e+14) {
tmp = b * (z * -c);
} else if (b <= 1.2e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)))
t_2 = b * ((t * i) - (z * c))
if (b <= (-1.7d+151)) then
tmp = t_2
else if (b <= (-1.2d-47)) then
tmp = t_1
else if (b <= (-1.6d-150)) then
tmp = y * ((x * z) - (i * j))
else if (b <= 1960000.0d0) then
tmp = t_1
else if (b <= 2.3d+14) then
tmp = b * (z * -c)
else if (b <= 1.2d+67) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1.7e+151) {
tmp = t_2;
} else if (b <= -1.2e-47) {
tmp = t_1;
} else if (b <= -1.6e-150) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 1960000.0) {
tmp = t_1;
} else if (b <= 2.3e+14) {
tmp = b * (z * -c);
} else if (b <= 1.2e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z))) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -1.7e+151: tmp = t_2 elif b <= -1.2e-47: tmp = t_1 elif b <= -1.6e-150: tmp = y * ((x * z) - (i * j)) elif b <= 1960000.0: tmp = t_1 elif b <= 2.3e+14: tmp = b * (z * -c) elif b <= 1.2e+67: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.7e+151) tmp = t_2; elseif (b <= -1.2e-47) tmp = t_1; elseif (b <= -1.6e-150) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 1960000.0) tmp = t_1; elseif (b <= 2.3e+14) tmp = Float64(b * Float64(z * Float64(-c))); elseif (b <= 1.2e+67) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z))); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -1.7e+151) tmp = t_2; elseif (b <= -1.2e-47) tmp = t_1; elseif (b <= -1.6e-150) tmp = y * ((x * z) - (i * j)); elseif (b <= 1960000.0) tmp = t_1; elseif (b <= 2.3e+14) tmp = b * (z * -c); elseif (b <= 1.2e+67) 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.7e+151], t$95$2, If[LessEqual[b, -1.2e-47], t$95$1, If[LessEqual[b, -1.6e-150], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1960000.0], t$95$1, If[LessEqual[b, 2.3e+14], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e+67], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.7 \cdot 10^{+151}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{-47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.6 \cdot 10^{-150}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 1960000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{+14}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.7e151 or 1.20000000000000001e67 < b Initial program 72.1%
Taylor expanded in b around inf 77.4%
if -1.7e151 < b < -1.2e-47 or -1.5999999999999999e-150 < b < 1.96e6 or 2.3e14 < b < 1.20000000000000001e67Initial program 79.2%
Taylor expanded in b around 0 70.3%
if -1.2e-47 < b < -1.5999999999999999e-150Initial program 57.6%
Taylor expanded in y around inf 82.8%
+-commutative82.8%
mul-1-neg82.8%
unsub-neg82.8%
*-commutative82.8%
Simplified82.8%
if 1.96e6 < b < 2.3e14Initial program 40.0%
prod-diff40.0%
*-commutative40.0%
fma-neg40.0%
distribute-rgt-in40.0%
*-commutative40.0%
fma-neg40.0%
distribute-rgt-neg-in40.0%
Applied egg-rr40.0%
Taylor expanded in b around inf 80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in t around 0 81.0%
mul-1-neg81.0%
*-commutative81.0%
distribute-rgt-neg-in81.0%
Simplified81.0%
Final simplification73.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -2.35e-6)
t_2
(if (<= z -1.6e-96)
(* x (- (* y z) (* t a)))
(if (<= z -2.6e-288)
(* i (- (* t b) (* y j)))
(if (<= z 9e-219)
t_1
(if (<= z 2.1e-100)
(* t (- (* b i) (* x a)))
(if (<= z 7.2e-44) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -2.35e-6) {
tmp = t_2;
} else if (z <= -1.6e-96) {
tmp = x * ((y * z) - (t * a));
} else if (z <= -2.6e-288) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 9e-219) {
tmp = t_1;
} else if (z <= 2.1e-100) {
tmp = t * ((b * i) - (x * a));
} else if (z <= 7.2e-44) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = z * ((x * y) - (b * c))
if (z <= (-2.35d-6)) then
tmp = t_2
else if (z <= (-1.6d-96)) then
tmp = x * ((y * z) - (t * a))
else if (z <= (-2.6d-288)) then
tmp = i * ((t * b) - (y * j))
else if (z <= 9d-219) then
tmp = t_1
else if (z <= 2.1d-100) then
tmp = t * ((b * i) - (x * a))
else if (z <= 7.2d-44) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -2.35e-6) {
tmp = t_2;
} else if (z <= -1.6e-96) {
tmp = x * ((y * z) - (t * a));
} else if (z <= -2.6e-288) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 9e-219) {
tmp = t_1;
} else if (z <= 2.1e-100) {
tmp = t * ((b * i) - (x * a));
} else if (z <= 7.2e-44) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -2.35e-6: tmp = t_2 elif z <= -1.6e-96: tmp = x * ((y * z) - (t * a)) elif z <= -2.6e-288: tmp = i * ((t * b) - (y * j)) elif z <= 9e-219: tmp = t_1 elif z <= 2.1e-100: tmp = t * ((b * i) - (x * a)) elif z <= 7.2e-44: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -2.35e-6) tmp = t_2; elseif (z <= -1.6e-96) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (z <= -2.6e-288) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (z <= 9e-219) tmp = t_1; elseif (z <= 2.1e-100) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (z <= 7.2e-44) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -2.35e-6) tmp = t_2; elseif (z <= -1.6e-96) tmp = x * ((y * z) - (t * a)); elseif (z <= -2.6e-288) tmp = i * ((t * b) - (y * j)); elseif (z <= 9e-219) tmp = t_1; elseif (z <= 2.1e-100) tmp = t * ((b * i) - (x * a)); elseif (z <= 7.2e-44) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.35e-6], t$95$2, If[LessEqual[z, -1.6e-96], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.6e-288], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e-219], t$95$1, If[LessEqual[z, 2.1e-100], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.2e-44], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -2.35 \cdot 10^{-6}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.6 \cdot 10^{-96}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-288}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-219}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-100}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -2.34999999999999995e-6 or 7.1999999999999998e-44 < z Initial program 65.3%
Taylor expanded in z around inf 67.0%
*-commutative67.0%
*-commutative67.0%
Simplified67.0%
if -2.34999999999999995e-6 < z < -1.60000000000000006e-96Initial program 88.9%
Taylor expanded in a around -inf 83.7%
Simplified83.7%
Taylor expanded in x around inf 62.4%
if -1.60000000000000006e-96 < z < -2.59999999999999989e-288Initial program 81.1%
Taylor expanded in a around -inf 89.1%
Simplified84.9%
Taylor expanded in i around inf 74.2%
+-commutative74.2%
mul-1-neg74.2%
unsub-neg74.2%
*-commutative74.2%
Simplified74.2%
if -2.59999999999999989e-288 < z < 9.00000000000000029e-219 or 2.10000000000000009e-100 < z < 7.1999999999999998e-44Initial program 90.3%
prod-diff85.2%
*-commutative85.2%
fma-neg85.2%
distribute-rgt-in82.7%
*-commutative82.7%
fma-neg82.7%
distribute-rgt-neg-in82.7%
Applied egg-rr82.7%
Taylor expanded in j around inf 70.9%
sub-neg70.9%
*-commutative70.9%
sub-neg70.9%
Simplified70.9%
if 9.00000000000000029e-219 < z < 2.10000000000000009e-100Initial program 71.4%
Taylor expanded in a around -inf 90.1%
Simplified90.0%
Taylor expanded in t around inf 65.6%
*-commutative65.6%
Simplified65.6%
Final simplification68.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (+ (* b (- (* t i) (* z c))) t_1)))
(if (<= y -2.5e-87)
(- t_1 (* x (- (* t a) (* y z))))
(if (<= y 1.12e-117)
t_2
(if (<= y 6.2e-30)
(* t (- (* b i) (* x a)))
(if (<= y 1.16e+122) t_2 (* y (- (* x z) (* i j)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = (b * ((t * i) - (z * c))) + t_1;
double tmp;
if (y <= -2.5e-87) {
tmp = t_1 - (x * ((t * a) - (y * z)));
} else if (y <= 1.12e-117) {
tmp = t_2;
} else if (y <= 6.2e-30) {
tmp = t * ((b * i) - (x * a));
} else if (y <= 1.16e+122) {
tmp = t_2;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = (b * ((t * i) - (z * c))) + t_1
if (y <= (-2.5d-87)) then
tmp = t_1 - (x * ((t * a) - (y * z)))
else if (y <= 1.12d-117) then
tmp = t_2
else if (y <= 6.2d-30) then
tmp = t * ((b * i) - (x * a))
else if (y <= 1.16d+122) then
tmp = t_2
else
tmp = y * ((x * z) - (i * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = (b * ((t * i) - (z * c))) + t_1;
double tmp;
if (y <= -2.5e-87) {
tmp = t_1 - (x * ((t * a) - (y * z)));
} else if (y <= 1.12e-117) {
tmp = t_2;
} else if (y <= 6.2e-30) {
tmp = t * ((b * i) - (x * a));
} else if (y <= 1.16e+122) {
tmp = t_2;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = (b * ((t * i) - (z * c))) + t_1 tmp = 0 if y <= -2.5e-87: tmp = t_1 - (x * ((t * a) - (y * z))) elif y <= 1.12e-117: tmp = t_2 elif y <= 6.2e-30: tmp = t * ((b * i) - (x * a)) elif y <= 1.16e+122: tmp = t_2 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) + t_1) tmp = 0.0 if (y <= -2.5e-87) tmp = Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); elseif (y <= 1.12e-117) tmp = t_2; elseif (y <= 6.2e-30) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (y <= 1.16e+122) tmp = t_2; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = (b * ((t * i) - (z * c))) + t_1; tmp = 0.0; if (y <= -2.5e-87) tmp = t_1 - (x * ((t * a) - (y * z))); elseif (y <= 1.12e-117) tmp = t_2; elseif (y <= 6.2e-30) tmp = t * ((b * i) - (x * a)); elseif (y <= 1.16e+122) tmp = t_2; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[y, -2.5e-87], N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.12e-117], t$95$2, If[LessEqual[y, 6.2e-30], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.16e+122], t$95$2, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right) + t\_1\\
\mathbf{if}\;y \leq -2.5 \cdot 10^{-87}:\\
\;\;\;\;t\_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{elif}\;y \leq 1.12 \cdot 10^{-117}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-30}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;y \leq 1.16 \cdot 10^{+122}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if y < -2.50000000000000021e-87Initial program 76.9%
Taylor expanded in b around 0 70.5%
if -2.50000000000000021e-87 < y < 1.12e-117 or 6.19999999999999982e-30 < y < 1.16e122Initial program 78.9%
Taylor expanded in x around 0 69.5%
if 1.12e-117 < y < 6.19999999999999982e-30Initial program 67.7%
Taylor expanded in a around -inf 80.2%
Simplified73.6%
Taylor expanded in t around inf 74.5%
*-commutative74.5%
Simplified74.5%
if 1.16e122 < y Initial program 61.4%
Taylor expanded in y around inf 82.3%
+-commutative82.3%
mul-1-neg82.3%
unsub-neg82.3%
*-commutative82.3%
Simplified82.3%
Final simplification72.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* j (- (* a c) (* y i))))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= b -4.4e+153)
t_3
(if (<= b -1.3e-47)
(- t_2 (* x (- (* t a) (* y z))))
(if (<= b -4.8e-132)
t_1
(if (<= b 9e+63) (+ t_1 (* a (- (* c j) (* x t)))) (+ t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = j * ((a * c) - (y * i));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.4e+153) {
tmp = t_3;
} else if (b <= -1.3e-47) {
tmp = t_2 - (x * ((t * a) - (y * z)));
} else if (b <= -4.8e-132) {
tmp = t_1;
} else if (b <= 9e+63) {
tmp = t_1 + (a * ((c * j) - (x * t)));
} else {
tmp = t_3 + t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = j * ((a * c) - (y * i))
t_3 = b * ((t * i) - (z * c))
if (b <= (-4.4d+153)) then
tmp = t_3
else if (b <= (-1.3d-47)) then
tmp = t_2 - (x * ((t * a) - (y * z)))
else if (b <= (-4.8d-132)) then
tmp = t_1
else if (b <= 9d+63) then
tmp = t_1 + (a * ((c * j) - (x * t)))
else
tmp = t_3 + t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = j * ((a * c) - (y * i));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.4e+153) {
tmp = t_3;
} else if (b <= -1.3e-47) {
tmp = t_2 - (x * ((t * a) - (y * z)));
} else if (b <= -4.8e-132) {
tmp = t_1;
} else if (b <= 9e+63) {
tmp = t_1 + (a * ((c * j) - (x * t)));
} else {
tmp = t_3 + t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = j * ((a * c) - (y * i)) t_3 = b * ((t * i) - (z * c)) tmp = 0 if b <= -4.4e+153: tmp = t_3 elif b <= -1.3e-47: tmp = t_2 - (x * ((t * a) - (y * z))) elif b <= -4.8e-132: tmp = t_1 elif b <= 9e+63: tmp = t_1 + (a * ((c * j) - (x * t))) else: tmp = t_3 + t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.4e+153) tmp = t_3; elseif (b <= -1.3e-47) tmp = Float64(t_2 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); elseif (b <= -4.8e-132) tmp = t_1; elseif (b <= 9e+63) tmp = Float64(t_1 + Float64(a * Float64(Float64(c * j) - Float64(x * t)))); else tmp = Float64(t_3 + t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = j * ((a * c) - (y * i)); t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -4.4e+153) tmp = t_3; elseif (b <= -1.3e-47) tmp = t_2 - (x * ((t * a) - (y * z))); elseif (b <= -4.8e-132) tmp = t_1; elseif (b <= 9e+63) tmp = t_1 + (a * ((c * j) - (x * t))); else tmp = t_3 + t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.4e+153], t$95$3, If[LessEqual[b, -1.3e-47], N[(t$95$2 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.8e-132], t$95$1, If[LessEqual[b, 9e+63], N[(t$95$1 + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$3 + t$95$2), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.4 \cdot 10^{+153}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{-47}:\\
\;\;\;\;t\_2 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{elif}\;b \leq -4.8 \cdot 10^{-132}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+63}:\\
\;\;\;\;t\_1 + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3 + t\_2\\
\end{array}
\end{array}
if b < -4.3999999999999999e153Initial program 55.6%
Taylor expanded in b around inf 81.7%
if -4.3999999999999999e153 < b < -1.3e-47Initial program 91.6%
Taylor expanded in b around 0 71.3%
if -1.3e-47 < b < -4.80000000000000031e-132Initial program 55.8%
Taylor expanded in y around inf 80.3%
+-commutative80.3%
mul-1-neg80.3%
unsub-neg80.3%
*-commutative80.3%
Simplified80.3%
if -4.80000000000000031e-132 < b < 9.00000000000000034e63Initial program 72.0%
Taylor expanded in a around -inf 73.5%
Simplified79.0%
Taylor expanded in b around 0 74.7%
if 9.00000000000000034e63 < b Initial program 79.9%
Taylor expanded in x around 0 81.4%
Final simplification76.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* z (- c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= i -7.2e+106)
(* y (* i (- j)))
(if (<= i 1.7e-177)
t_2
(if (<= i 1.95e+31)
t_1
(if (<= i 5e+124)
t_2
(if (<= i 1.2e+150)
t_1
(if (<= i 1.02e+226) (* i (* t b)) (* i (* y (- j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (z * -c);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (i <= -7.2e+106) {
tmp = y * (i * -j);
} else if (i <= 1.7e-177) {
tmp = t_2;
} else if (i <= 1.95e+31) {
tmp = t_1;
} else if (i <= 5e+124) {
tmp = t_2;
} else if (i <= 1.2e+150) {
tmp = t_1;
} else if (i <= 1.02e+226) {
tmp = i * (t * b);
} else {
tmp = i * (y * -j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (z * -c)
t_2 = a * ((c * j) - (x * t))
if (i <= (-7.2d+106)) then
tmp = y * (i * -j)
else if (i <= 1.7d-177) then
tmp = t_2
else if (i <= 1.95d+31) then
tmp = t_1
else if (i <= 5d+124) then
tmp = t_2
else if (i <= 1.2d+150) then
tmp = t_1
else if (i <= 1.02d+226) then
tmp = i * (t * b)
else
tmp = i * (y * -j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (z * -c);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (i <= -7.2e+106) {
tmp = y * (i * -j);
} else if (i <= 1.7e-177) {
tmp = t_2;
} else if (i <= 1.95e+31) {
tmp = t_1;
} else if (i <= 5e+124) {
tmp = t_2;
} else if (i <= 1.2e+150) {
tmp = t_1;
} else if (i <= 1.02e+226) {
tmp = i * (t * b);
} else {
tmp = i * (y * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (z * -c) t_2 = a * ((c * j) - (x * t)) tmp = 0 if i <= -7.2e+106: tmp = y * (i * -j) elif i <= 1.7e-177: tmp = t_2 elif i <= 1.95e+31: tmp = t_1 elif i <= 5e+124: tmp = t_2 elif i <= 1.2e+150: tmp = t_1 elif i <= 1.02e+226: tmp = i * (t * b) else: tmp = i * (y * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(z * Float64(-c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (i <= -7.2e+106) tmp = Float64(y * Float64(i * Float64(-j))); elseif (i <= 1.7e-177) tmp = t_2; elseif (i <= 1.95e+31) tmp = t_1; elseif (i <= 5e+124) tmp = t_2; elseif (i <= 1.2e+150) tmp = t_1; elseif (i <= 1.02e+226) tmp = Float64(i * Float64(t * b)); else tmp = Float64(i * Float64(y * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (z * -c); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (i <= -7.2e+106) tmp = y * (i * -j); elseif (i <= 1.7e-177) tmp = t_2; elseif (i <= 1.95e+31) tmp = t_1; elseif (i <= 5e+124) tmp = t_2; elseif (i <= 1.2e+150) tmp = t_1; elseif (i <= 1.02e+226) tmp = i * (t * b); else tmp = i * (y * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -7.2e+106], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.7e-177], t$95$2, If[LessEqual[i, 1.95e+31], t$95$1, If[LessEqual[i, 5e+124], t$95$2, If[LessEqual[i, 1.2e+150], t$95$1, If[LessEqual[i, 1.02e+226], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot \left(-c\right)\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;i \leq -7.2 \cdot 10^{+106}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;i \leq 1.7 \cdot 10^{-177}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 1.95 \cdot 10^{+31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5 \cdot 10^{+124}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 1.2 \cdot 10^{+150}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.02 \cdot 10^{+226}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if i < -7.2000000000000002e106Initial program 70.2%
Taylor expanded in y around inf 70.3%
+-commutative70.3%
mul-1-neg70.3%
unsub-neg70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in x around 0 68.2%
mul-1-neg68.2%
*-commutative68.2%
distribute-rgt-neg-in68.2%
Simplified68.2%
if -7.2000000000000002e106 < i < 1.7e-177 or 1.95e31 < i < 4.9999999999999996e124Initial program 78.4%
Taylor expanded in a around inf 47.0%
+-commutative47.0%
mul-1-neg47.0%
unsub-neg47.0%
*-commutative47.0%
*-commutative47.0%
Simplified47.0%
if 1.7e-177 < i < 1.95e31 or 4.9999999999999996e124 < i < 1.20000000000000001e150Initial program 77.7%
prod-diff71.1%
*-commutative71.1%
fma-neg71.1%
distribute-rgt-in66.6%
*-commutative66.6%
fma-neg66.6%
distribute-rgt-neg-in66.6%
Applied egg-rr66.6%
Taylor expanded in b around inf 56.7%
*-commutative56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in t around 0 46.8%
mul-1-neg46.8%
*-commutative46.8%
distribute-rgt-neg-in46.8%
Simplified46.8%
if 1.20000000000000001e150 < i < 1.02e226Initial program 59.2%
Taylor expanded in a around -inf 65.3%
Simplified48.6%
Taylor expanded in i around inf 88.6%
+-commutative88.6%
mul-1-neg88.6%
unsub-neg88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in t around inf 54.3%
*-commutative54.3%
Simplified54.3%
if 1.02e226 < i Initial program 63.1%
Taylor expanded in y around inf 53.3%
+-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
*-commutative53.3%
Simplified53.3%
Taylor expanded in x around 0 53.0%
mul-1-neg53.0%
*-commutative53.0%
distribute-rgt-neg-in53.0%
Simplified53.0%
Final simplification51.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -9.8e+102)
t_2
(if (<= j -2.6e+44)
t_1
(if (<= j -1.05e-32)
(* i (- (* t b) (* y j)))
(if (<= j 2.4e-222)
(* x (- (* y z) (* t a)))
(if (<= j 1.15e+52) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -9.8e+102) {
tmp = t_2;
} else if (j <= -2.6e+44) {
tmp = t_1;
} else if (j <= -1.05e-32) {
tmp = i * ((t * b) - (y * j));
} else if (j <= 2.4e-222) {
tmp = x * ((y * z) - (t * a));
} else if (j <= 1.15e+52) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = j * ((a * c) - (y * i))
if (j <= (-9.8d+102)) then
tmp = t_2
else if (j <= (-2.6d+44)) then
tmp = t_1
else if (j <= (-1.05d-32)) then
tmp = i * ((t * b) - (y * j))
else if (j <= 2.4d-222) then
tmp = x * ((y * z) - (t * a))
else if (j <= 1.15d+52) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -9.8e+102) {
tmp = t_2;
} else if (j <= -2.6e+44) {
tmp = t_1;
} else if (j <= -1.05e-32) {
tmp = i * ((t * b) - (y * j));
} else if (j <= 2.4e-222) {
tmp = x * ((y * z) - (t * a));
} else if (j <= 1.15e+52) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if j <= -9.8e+102: tmp = t_2 elif j <= -2.6e+44: tmp = t_1 elif j <= -1.05e-32: tmp = i * ((t * b) - (y * j)) elif j <= 2.4e-222: tmp = x * ((y * z) - (t * a)) elif j <= 1.15e+52: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -9.8e+102) tmp = t_2; elseif (j <= -2.6e+44) tmp = t_1; elseif (j <= -1.05e-32) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (j <= 2.4e-222) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (j <= 1.15e+52) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -9.8e+102) tmp = t_2; elseif (j <= -2.6e+44) tmp = t_1; elseif (j <= -1.05e-32) tmp = i * ((t * b) - (y * j)); elseif (j <= 2.4e-222) tmp = x * ((y * z) - (t * a)); elseif (j <= 1.15e+52) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9.8e+102], t$95$2, If[LessEqual[j, -2.6e+44], t$95$1, If[LessEqual[j, -1.05e-32], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.4e-222], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e+52], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -9.8 \cdot 10^{+102}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -2.6 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -1.05 \cdot 10^{-32}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;j \leq 2.4 \cdot 10^{-222}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -9.80000000000000089e102 or 1.15e52 < j Initial program 75.1%
prod-diff72.8%
*-commutative72.8%
fma-neg72.8%
distribute-rgt-in72.8%
*-commutative72.8%
fma-neg72.8%
distribute-rgt-neg-in72.8%
Applied egg-rr72.8%
Taylor expanded in j around inf 72.4%
sub-neg72.4%
*-commutative72.4%
sub-neg72.4%
Simplified72.4%
if -9.80000000000000089e102 < j < -2.5999999999999999e44 or 2.39999999999999993e-222 < j < 1.15e52Initial program 70.6%
Taylor expanded in b around inf 56.3%
if -2.5999999999999999e44 < j < -1.05e-32Initial program 91.7%
Taylor expanded in a around -inf 91.5%
Simplified91.5%
Taylor expanded in i around inf 83.6%
+-commutative83.6%
mul-1-neg83.6%
unsub-neg83.6%
*-commutative83.6%
Simplified83.6%
if -1.05e-32 < j < 2.39999999999999993e-222Initial program 74.3%
Taylor expanded in a around -inf 78.5%
Simplified79.5%
Taylor expanded in x around inf 50.8%
Final simplification61.0%
(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 (* y (- (* x z) (* i j)))))
(if (<= y -2.35e+30)
t_3
(if (<= y -4.6e-86)
t_2
(if (<= y 1.65e-100)
t_1
(if (<= y 8.2e-71) t_2 (if (<= y 6.5e+49) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.35e+30) {
tmp = t_3;
} else if (y <= -4.6e-86) {
tmp = t_2;
} else if (y <= 1.65e-100) {
tmp = t_1;
} else if (y <= 8.2e-71) {
tmp = t_2;
} else if (y <= 6.5e+49) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = x * ((y * z) - (t * a))
t_3 = y * ((x * z) - (i * j))
if (y <= (-2.35d+30)) then
tmp = t_3
else if (y <= (-4.6d-86)) then
tmp = t_2
else if (y <= 1.65d-100) then
tmp = t_1
else if (y <= 8.2d-71) then
tmp = t_2
else if (y <= 6.5d+49) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.35e+30) {
tmp = t_3;
} else if (y <= -4.6e-86) {
tmp = t_2;
} else if (y <= 1.65e-100) {
tmp = t_1;
} else if (y <= 8.2e-71) {
tmp = t_2;
} else if (y <= 6.5e+49) {
tmp = t_1;
} 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 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2.35e+30: tmp = t_3 elif y <= -4.6e-86: tmp = t_2 elif y <= 1.65e-100: tmp = t_1 elif y <= 8.2e-71: tmp = t_2 elif y <= 6.5e+49: tmp = t_1 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(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2.35e+30) tmp = t_3; elseif (y <= -4.6e-86) tmp = t_2; elseif (y <= 1.65e-100) tmp = t_1; elseif (y <= 8.2e-71) tmp = t_2; elseif (y <= 6.5e+49) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = x * ((y * z) - (t * a)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2.35e+30) tmp = t_3; elseif (y <= -4.6e-86) tmp = t_2; elseif (y <= 1.65e-100) tmp = t_1; elseif (y <= 8.2e-71) tmp = t_2; elseif (y <= 6.5e+49) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.35e+30], t$95$3, If[LessEqual[y, -4.6e-86], t$95$2, If[LessEqual[y, 1.65e-100], t$95$1, If[LessEqual[y, 8.2e-71], t$95$2, If[LessEqual[y, 6.5e+49], t$95$1, 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 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2.35 \cdot 10^{+30}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -4.6 \cdot 10^{-86}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{-100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{-71}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -2.34999999999999995e30 or 6.5000000000000005e49 < y Initial program 68.9%
Taylor expanded in y around inf 70.0%
+-commutative70.0%
mul-1-neg70.0%
unsub-neg70.0%
*-commutative70.0%
Simplified70.0%
if -2.34999999999999995e30 < y < -4.59999999999999992e-86 or 1.64999999999999998e-100 < y < 8.19999999999999987e-71Initial program 86.2%
Taylor expanded in a around -inf 83.3%
Simplified80.2%
Taylor expanded in x around inf 63.7%
if -4.59999999999999992e-86 < y < 1.64999999999999998e-100 or 8.19999999999999987e-71 < y < 6.5000000000000005e49Initial program 77.7%
Taylor expanded in b around inf 58.9%
Final simplification64.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j)))) (t_2 (* b (* z (- c)))))
(if (<= i -2.25e+17)
t_1
(if (<= i -4.5e-74)
(* a (* t (- x)))
(if (<= i -1.25e-298)
t_2
(if (<= i 4.8e-234) (* y (* x z)) (if (<= i 5.5e+47) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (i * -j);
double t_2 = b * (z * -c);
double tmp;
if (i <= -2.25e+17) {
tmp = t_1;
} else if (i <= -4.5e-74) {
tmp = a * (t * -x);
} else if (i <= -1.25e-298) {
tmp = t_2;
} else if (i <= 4.8e-234) {
tmp = y * (x * z);
} else if (i <= 5.5e+47) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (i * -j)
t_2 = b * (z * -c)
if (i <= (-2.25d+17)) then
tmp = t_1
else if (i <= (-4.5d-74)) then
tmp = a * (t * -x)
else if (i <= (-1.25d-298)) then
tmp = t_2
else if (i <= 4.8d-234) then
tmp = y * (x * z)
else if (i <= 5.5d+47) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (i * -j);
double t_2 = b * (z * -c);
double tmp;
if (i <= -2.25e+17) {
tmp = t_1;
} else if (i <= -4.5e-74) {
tmp = a * (t * -x);
} else if (i <= -1.25e-298) {
tmp = t_2;
} else if (i <= 4.8e-234) {
tmp = y * (x * z);
} else if (i <= 5.5e+47) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (i * -j) t_2 = b * (z * -c) tmp = 0 if i <= -2.25e+17: tmp = t_1 elif i <= -4.5e-74: tmp = a * (t * -x) elif i <= -1.25e-298: tmp = t_2 elif i <= 4.8e-234: tmp = y * (x * z) elif i <= 5.5e+47: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(i * Float64(-j))) t_2 = Float64(b * Float64(z * Float64(-c))) tmp = 0.0 if (i <= -2.25e+17) tmp = t_1; elseif (i <= -4.5e-74) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= -1.25e-298) tmp = t_2; elseif (i <= 4.8e-234) tmp = Float64(y * Float64(x * z)); elseif (i <= 5.5e+47) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (i * -j); t_2 = b * (z * -c); tmp = 0.0; if (i <= -2.25e+17) tmp = t_1; elseif (i <= -4.5e-74) tmp = a * (t * -x); elseif (i <= -1.25e-298) tmp = t_2; elseif (i <= 4.8e-234) tmp = y * (x * z); elseif (i <= 5.5e+47) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.25e+17], t$95$1, If[LessEqual[i, -4.5e-74], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.25e-298], t$95$2, If[LessEqual[i, 4.8e-234], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.5e+47], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot \left(-j\right)\right)\\
t_2 := b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{if}\;i \leq -2.25 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -4.5 \cdot 10^{-74}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq -1.25 \cdot 10^{-298}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{-234}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 5.5 \cdot 10^{+47}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.25e17 or 5.4999999999999998e47 < i Initial program 65.2%
Taylor expanded in y around inf 54.1%
+-commutative54.1%
mul-1-neg54.1%
unsub-neg54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in x around 0 50.5%
mul-1-neg50.5%
*-commutative50.5%
distribute-rgt-neg-in50.5%
Simplified50.5%
if -2.25e17 < i < -4.4999999999999999e-74Initial program 88.2%
Taylor expanded in a around inf 67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in j around 0 54.6%
associate-*r*54.6%
mul-1-neg54.6%
Simplified54.6%
if -4.4999999999999999e-74 < i < -1.25000000000000005e-298 or 4.7999999999999998e-234 < i < 5.4999999999999998e47Initial program 82.8%
prod-diff78.8%
*-commutative78.8%
fma-neg78.8%
distribute-rgt-in76.8%
*-commutative76.8%
fma-neg76.8%
distribute-rgt-neg-in76.8%
Applied egg-rr76.8%
Taylor expanded in b around inf 47.0%
*-commutative47.0%
*-commutative47.0%
Simplified47.0%
Taylor expanded in t around 0 37.2%
mul-1-neg37.2%
*-commutative37.2%
distribute-rgt-neg-in37.2%
Simplified37.2%
if -1.25000000000000005e-298 < i < 4.7999999999999998e-234Initial program 59.7%
Taylor expanded in y around inf 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in x around inf 58.1%
Final simplification46.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* z (- c)))))
(if (<= i -4e+14)
(* y (* i (- j)))
(if (<= i -6.4e-74)
(* a (* t (- x)))
(if (<= i -6e-300)
t_1
(if (<= i 7.5e-236)
(* y (* x z))
(if (<= i 5.2e+49) t_1 (* i (* y (- j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (z * -c);
double tmp;
if (i <= -4e+14) {
tmp = y * (i * -j);
} else if (i <= -6.4e-74) {
tmp = a * (t * -x);
} else if (i <= -6e-300) {
tmp = t_1;
} else if (i <= 7.5e-236) {
tmp = y * (x * z);
} else if (i <= 5.2e+49) {
tmp = t_1;
} else {
tmp = i * (y * -j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (z * -c)
if (i <= (-4d+14)) then
tmp = y * (i * -j)
else if (i <= (-6.4d-74)) then
tmp = a * (t * -x)
else if (i <= (-6d-300)) then
tmp = t_1
else if (i <= 7.5d-236) then
tmp = y * (x * z)
else if (i <= 5.2d+49) then
tmp = t_1
else
tmp = i * (y * -j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (z * -c);
double tmp;
if (i <= -4e+14) {
tmp = y * (i * -j);
} else if (i <= -6.4e-74) {
tmp = a * (t * -x);
} else if (i <= -6e-300) {
tmp = t_1;
} else if (i <= 7.5e-236) {
tmp = y * (x * z);
} else if (i <= 5.2e+49) {
tmp = t_1;
} else {
tmp = i * (y * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (z * -c) tmp = 0 if i <= -4e+14: tmp = y * (i * -j) elif i <= -6.4e-74: tmp = a * (t * -x) elif i <= -6e-300: tmp = t_1 elif i <= 7.5e-236: tmp = y * (x * z) elif i <= 5.2e+49: tmp = t_1 else: tmp = i * (y * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(z * Float64(-c))) tmp = 0.0 if (i <= -4e+14) tmp = Float64(y * Float64(i * Float64(-j))); elseif (i <= -6.4e-74) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= -6e-300) tmp = t_1; elseif (i <= 7.5e-236) tmp = Float64(y * Float64(x * z)); elseif (i <= 5.2e+49) tmp = t_1; else tmp = Float64(i * Float64(y * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (z * -c); tmp = 0.0; if (i <= -4e+14) tmp = y * (i * -j); elseif (i <= -6.4e-74) tmp = a * (t * -x); elseif (i <= -6e-300) tmp = t_1; elseif (i <= 7.5e-236) tmp = y * (x * z); elseif (i <= 5.2e+49) tmp = t_1; else tmp = i * (y * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4e+14], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -6.4e-74], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -6e-300], t$95$1, If[LessEqual[i, 7.5e-236], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.2e+49], t$95$1, N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{if}\;i \leq -4 \cdot 10^{+14}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;i \leq -6.4 \cdot 10^{-74}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq -6 \cdot 10^{-300}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 7.5 \cdot 10^{-236}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if i < -4e14Initial program 71.0%
Taylor expanded in y around inf 63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in x around 0 58.2%
mul-1-neg58.2%
*-commutative58.2%
distribute-rgt-neg-in58.2%
Simplified58.2%
if -4e14 < i < -6.3999999999999997e-74Initial program 88.2%
Taylor expanded in a around inf 67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in j around 0 54.6%
associate-*r*54.6%
mul-1-neg54.6%
Simplified54.6%
if -6.3999999999999997e-74 < i < -6.00000000000000048e-300 or 7.4999999999999997e-236 < i < 5.19999999999999977e49Initial program 82.8%
prod-diff78.8%
*-commutative78.8%
fma-neg78.8%
distribute-rgt-in76.8%
*-commutative76.8%
fma-neg76.8%
distribute-rgt-neg-in76.8%
Applied egg-rr76.8%
Taylor expanded in b around inf 47.0%
*-commutative47.0%
*-commutative47.0%
Simplified47.0%
Taylor expanded in t around 0 37.2%
mul-1-neg37.2%
*-commutative37.2%
distribute-rgt-neg-in37.2%
Simplified37.2%
if -6.00000000000000048e-300 < i < 7.4999999999999997e-236Initial program 59.7%
Taylor expanded in y around inf 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in x around inf 58.1%
if 5.19999999999999977e49 < i Initial program 58.4%
Taylor expanded in y around inf 43.6%
+-commutative43.6%
mul-1-neg43.6%
unsub-neg43.6%
*-commutative43.6%
Simplified43.6%
Taylor expanded in x around 0 43.3%
mul-1-neg43.3%
*-commutative43.3%
distribute-rgt-neg-in43.3%
Simplified43.3%
Final simplification46.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -4.1e+46)
(+ t_1 (* a (- (* c j) (* x t))))
(if (<= y 9e+120)
(+ (* b (- (* t i) (* z c))) (- (* a (* c j)) (* a (* x t))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4.1e+46) {
tmp = t_1 + (a * ((c * j) - (x * t)));
} else if (y <= 9e+120) {
tmp = (b * ((t * i) - (z * c))) + ((a * (c * j)) - (a * (x * t)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-4.1d+46)) then
tmp = t_1 + (a * ((c * j) - (x * t)))
else if (y <= 9d+120) then
tmp = (b * ((t * i) - (z * c))) + ((a * (c * j)) - (a * (x * t)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4.1e+46) {
tmp = t_1 + (a * ((c * j) - (x * t)));
} else if (y <= 9e+120) {
tmp = (b * ((t * i) - (z * c))) + ((a * (c * j)) - (a * (x * t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -4.1e+46: tmp = t_1 + (a * ((c * j) - (x * t))) elif y <= 9e+120: tmp = (b * ((t * i) - (z * c))) + ((a * (c * j)) - (a * (x * t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -4.1e+46) tmp = Float64(t_1 + Float64(a * Float64(Float64(c * j) - Float64(x * t)))); elseif (y <= 9e+120) tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) + Float64(Float64(a * Float64(c * j)) - Float64(a * Float64(x * t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -4.1e+46) tmp = t_1 + (a * ((c * j) - (x * t))); elseif (y <= 9e+120) tmp = (b * ((t * i) - (z * c))) + ((a * (c * j)) - (a * (x * t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.1e+46], N[(t$95$1 + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e+120], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -4.1 \cdot 10^{+46}:\\
\;\;\;\;t\_1 + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+120}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) + \left(a \cdot \left(c \cdot j\right) - a \cdot \left(x \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.1e46Initial program 72.9%
Taylor expanded in a around -inf 69.3%
Simplified80.5%
Taylor expanded in b around 0 79.2%
if -4.1e46 < y < 8.99999999999999953e120Initial program 79.1%
Taylor expanded in y around 0 70.1%
if 8.99999999999999953e120 < y Initial program 61.4%
Taylor expanded in y around inf 82.3%
+-commutative82.3%
mul-1-neg82.3%
unsub-neg82.3%
*-commutative82.3%
Simplified82.3%
Final simplification74.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j)))))
(if (<= j -5e-37)
t_1
(if (<= j -2.35e-153)
(* y (* x z))
(if (<= j 4.4e-102)
(* x (* t (- a)))
(if (<= j 2.1e+52) (* 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 = y * (i * -j);
double tmp;
if (j <= -5e-37) {
tmp = t_1;
} else if (j <= -2.35e-153) {
tmp = y * (x * z);
} else if (j <= 4.4e-102) {
tmp = x * (t * -a);
} else if (j <= 2.1e+52) {
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 = y * (i * -j)
if (j <= (-5d-37)) then
tmp = t_1
else if (j <= (-2.35d-153)) then
tmp = y * (x * z)
else if (j <= 4.4d-102) then
tmp = x * (t * -a)
else if (j <= 2.1d+52) 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 = y * (i * -j);
double tmp;
if (j <= -5e-37) {
tmp = t_1;
} else if (j <= -2.35e-153) {
tmp = y * (x * z);
} else if (j <= 4.4e-102) {
tmp = x * (t * -a);
} else if (j <= 2.1e+52) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (i * -j) tmp = 0 if j <= -5e-37: tmp = t_1 elif j <= -2.35e-153: tmp = y * (x * z) elif j <= 4.4e-102: tmp = x * (t * -a) elif j <= 2.1e+52: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(i * Float64(-j))) tmp = 0.0 if (j <= -5e-37) tmp = t_1; elseif (j <= -2.35e-153) tmp = Float64(y * Float64(x * z)); elseif (j <= 4.4e-102) tmp = Float64(x * Float64(t * Float64(-a))); elseif (j <= 2.1e+52) 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 = y * (i * -j); tmp = 0.0; if (j <= -5e-37) tmp = t_1; elseif (j <= -2.35e-153) tmp = y * (x * z); elseif (j <= 4.4e-102) tmp = x * (t * -a); elseif (j <= 2.1e+52) 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[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5e-37], t$95$1, If[LessEqual[j, -2.35e-153], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.4e-102], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.1e+52], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;j \leq -5 \cdot 10^{-37}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -2.35 \cdot 10^{-153}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{-102}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;j \leq 2.1 \cdot 10^{+52}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -4.9999999999999997e-37 or 2.1e52 < j Initial program 76.2%
Taylor expanded in y around inf 58.6%
+-commutative58.6%
mul-1-neg58.6%
unsub-neg58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in x around 0 51.3%
mul-1-neg51.3%
*-commutative51.3%
distribute-rgt-neg-in51.3%
Simplified51.3%
if -4.9999999999999997e-37 < j < -2.35e-153Initial program 79.1%
Taylor expanded in y around inf 49.3%
+-commutative49.3%
mul-1-neg49.3%
unsub-neg49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in x around inf 42.1%
if -2.35e-153 < j < 4.40000000000000026e-102Initial program 71.2%
Taylor expanded in a around -inf 78.2%
Simplified78.1%
Taylor expanded in x around inf 46.3%
Taylor expanded in y around 0 32.7%
neg-mul-132.7%
distribute-rgt-neg-in32.7%
Simplified32.7%
if 4.40000000000000026e-102 < j < 2.1e52Initial program 72.2%
Taylor expanded in a around -inf 74.5%
Simplified77.1%
Taylor expanded in i around inf 42.6%
+-commutative42.6%
mul-1-neg42.6%
unsub-neg42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in t around inf 30.8%
*-commutative30.8%
Simplified30.8%
Final simplification41.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= z -2.8e+35)
t_1
(if (<= z 2.25e-99)
(* b (* t i))
(if (<= z 3.6e+36)
(* a (* c j))
(if (<= z 3.2e+82) (* 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 = x * (y * z);
double tmp;
if (z <= -2.8e+35) {
tmp = t_1;
} else if (z <= 2.25e-99) {
tmp = b * (t * i);
} else if (z <= 3.6e+36) {
tmp = a * (c * j);
} else if (z <= 3.2e+82) {
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 = x * (y * z)
if (z <= (-2.8d+35)) then
tmp = t_1
else if (z <= 2.25d-99) then
tmp = b * (t * i)
else if (z <= 3.6d+36) then
tmp = a * (c * j)
else if (z <= 3.2d+82) 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 = x * (y * z);
double tmp;
if (z <= -2.8e+35) {
tmp = t_1;
} else if (z <= 2.25e-99) {
tmp = b * (t * i);
} else if (z <= 3.6e+36) {
tmp = a * (c * j);
} else if (z <= 3.2e+82) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if z <= -2.8e+35: tmp = t_1 elif z <= 2.25e-99: tmp = b * (t * i) elif z <= 3.6e+36: tmp = a * (c * j) elif z <= 3.2e+82: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -2.8e+35) tmp = t_1; elseif (z <= 2.25e-99) tmp = Float64(b * Float64(t * i)); elseif (z <= 3.6e+36) tmp = Float64(a * Float64(c * j)); elseif (z <= 3.2e+82) 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 = x * (y * z); tmp = 0.0; if (z <= -2.8e+35) tmp = t_1; elseif (z <= 2.25e-99) tmp = b * (t * i); elseif (z <= 3.6e+36) tmp = a * (c * j); elseif (z <= 3.2e+82) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.8e+35], t$95$1, If[LessEqual[z, 2.25e-99], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.6e+36], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e+82], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -2.8 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.25 \cdot 10^{-99}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+36}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{+82}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.79999999999999999e35 or 3.19999999999999975e82 < z Initial program 65.5%
Taylor expanded in y around inf 50.4%
+-commutative50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in x around inf 40.6%
if -2.79999999999999999e35 < z < 2.2500000000000001e-99Initial program 81.4%
Taylor expanded in a around -inf 83.5%
Simplified82.6%
Taylor expanded in i around inf 55.9%
+-commutative55.9%
mul-1-neg55.9%
unsub-neg55.9%
*-commutative55.9%
Simplified55.9%
Taylor expanded in t around inf 31.8%
*-commutative31.8%
Simplified31.8%
if 2.2500000000000001e-99 < z < 3.5999999999999997e36Initial program 77.0%
Taylor expanded in a around inf 44.2%
+-commutative44.2%
mul-1-neg44.2%
unsub-neg44.2%
*-commutative44.2%
*-commutative44.2%
Simplified44.2%
Taylor expanded in j around inf 33.3%
if 3.5999999999999997e36 < z < 3.19999999999999975e82Initial program 70.7%
Taylor expanded in a around -inf 70.7%
Simplified80.8%
Taylor expanded in i around inf 51.0%
+-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in t around inf 41.0%
*-commutative41.0%
Simplified41.0%
Final simplification35.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= z -3.1e+35)
t_1
(if (<= z 1.2e-99)
(* t (* b i))
(if (<= z 6.4e+35)
(* a (* c j))
(if (<= z 1.8e+82) (* 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 = x * (y * z);
double tmp;
if (z <= -3.1e+35) {
tmp = t_1;
} else if (z <= 1.2e-99) {
tmp = t * (b * i);
} else if (z <= 6.4e+35) {
tmp = a * (c * j);
} else if (z <= 1.8e+82) {
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 = x * (y * z)
if (z <= (-3.1d+35)) then
tmp = t_1
else if (z <= 1.2d-99) then
tmp = t * (b * i)
else if (z <= 6.4d+35) then
tmp = a * (c * j)
else if (z <= 1.8d+82) 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 = x * (y * z);
double tmp;
if (z <= -3.1e+35) {
tmp = t_1;
} else if (z <= 1.2e-99) {
tmp = t * (b * i);
} else if (z <= 6.4e+35) {
tmp = a * (c * j);
} else if (z <= 1.8e+82) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if z <= -3.1e+35: tmp = t_1 elif z <= 1.2e-99: tmp = t * (b * i) elif z <= 6.4e+35: tmp = a * (c * j) elif z <= 1.8e+82: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -3.1e+35) tmp = t_1; elseif (z <= 1.2e-99) tmp = Float64(t * Float64(b * i)); elseif (z <= 6.4e+35) tmp = Float64(a * Float64(c * j)); elseif (z <= 1.8e+82) 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 = x * (y * z); tmp = 0.0; if (z <= -3.1e+35) tmp = t_1; elseif (z <= 1.2e-99) tmp = t * (b * i); elseif (z <= 6.4e+35) tmp = a * (c * j); elseif (z <= 1.8e+82) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.1e+35], t$95$1, If[LessEqual[z, 1.2e-99], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.4e+35], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+82], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -3.1 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{-99}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{+35}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+82}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.09999999999999987e35 or 1.80000000000000007e82 < z Initial program 65.5%
Taylor expanded in y around inf 50.4%
+-commutative50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in x around inf 40.6%
if -3.09999999999999987e35 < z < 1.2e-99Initial program 81.4%
Taylor expanded in a around -inf 83.5%
Simplified82.6%
Taylor expanded in i around inf 55.9%
+-commutative55.9%
mul-1-neg55.9%
unsub-neg55.9%
*-commutative55.9%
Simplified55.9%
Taylor expanded in t around inf 31.8%
associate-*r*32.6%
*-commutative32.6%
Simplified32.6%
if 1.2e-99 < z < 6.39999999999999965e35Initial program 77.0%
Taylor expanded in a around inf 44.2%
+-commutative44.2%
mul-1-neg44.2%
unsub-neg44.2%
*-commutative44.2%
*-commutative44.2%
Simplified44.2%
Taylor expanded in j around inf 33.3%
if 6.39999999999999965e35 < z < 1.80000000000000007e82Initial program 70.7%
Taylor expanded in a around -inf 70.7%
Simplified80.8%
Taylor expanded in i around inf 51.0%
+-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in t around inf 41.0%
*-commutative41.0%
Simplified41.0%
Final simplification36.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -1.95e+90)
t_1
(if (<= t 3.8e-34)
(* c (- (* a j) (* z b)))
(if (<= t 5.8e+23) (* i (- (* t b) (* y j))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.95e+90) {
tmp = t_1;
} else if (t <= 3.8e-34) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 5.8e+23) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
if (t <= (-1.95d+90)) then
tmp = t_1
else if (t <= 3.8d-34) then
tmp = c * ((a * j) - (z * b))
else if (t <= 5.8d+23) then
tmp = i * ((t * b) - (y * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.95e+90) {
tmp = t_1;
} else if (t <= 3.8e-34) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 5.8e+23) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -1.95e+90: tmp = t_1 elif t <= 3.8e-34: tmp = c * ((a * j) - (z * b)) elif t <= 5.8e+23: tmp = i * ((t * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -1.95e+90) tmp = t_1; elseif (t <= 3.8e-34) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (t <= 5.8e+23) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -1.95e+90) tmp = t_1; elseif (t <= 3.8e-34) tmp = c * ((a * j) - (z * b)); elseif (t <= 5.8e+23) tmp = i * ((t * b) - (y * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.95e+90], t$95$1, If[LessEqual[t, 3.8e-34], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e+23], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.95 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-34}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+23}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.9500000000000001e90 or 5.80000000000000025e23 < t Initial program 62.9%
Taylor expanded in a around -inf 62.8%
Simplified63.6%
Taylor expanded in t around inf 67.1%
*-commutative67.1%
Simplified67.1%
if -1.9500000000000001e90 < t < 3.8000000000000001e-34Initial program 83.6%
Taylor expanded in c around inf 46.6%
if 3.8000000000000001e-34 < t < 5.80000000000000025e23Initial program 62.3%
Taylor expanded in a around -inf 68.6%
Simplified81.0%
Taylor expanded in i around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
Simplified63.7%
Final simplification55.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j)))))
(if (<= j -2.4e-33)
t_1
(if (<= j -3.7e-159)
(* y (* x z))
(if (<= j 3.5e-25) (* a (* t (- x))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (i * -j);
double tmp;
if (j <= -2.4e-33) {
tmp = t_1;
} else if (j <= -3.7e-159) {
tmp = y * (x * z);
} else if (j <= 3.5e-25) {
tmp = a * (t * -x);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (i * -j)
if (j <= (-2.4d-33)) then
tmp = t_1
else if (j <= (-3.7d-159)) then
tmp = y * (x * z)
else if (j <= 3.5d-25) then
tmp = a * (t * -x)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (i * -j);
double tmp;
if (j <= -2.4e-33) {
tmp = t_1;
} else if (j <= -3.7e-159) {
tmp = y * (x * z);
} else if (j <= 3.5e-25) {
tmp = a * (t * -x);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (i * -j) tmp = 0 if j <= -2.4e-33: tmp = t_1 elif j <= -3.7e-159: tmp = y * (x * z) elif j <= 3.5e-25: tmp = a * (t * -x) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(i * Float64(-j))) tmp = 0.0 if (j <= -2.4e-33) tmp = t_1; elseif (j <= -3.7e-159) tmp = Float64(y * Float64(x * z)); elseif (j <= 3.5e-25) tmp = Float64(a * Float64(t * Float64(-x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (i * -j); tmp = 0.0; if (j <= -2.4e-33) tmp = t_1; elseif (j <= -3.7e-159) tmp = y * (x * z); elseif (j <= 3.5e-25) tmp = a * (t * -x); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.4e-33], t$95$1, If[LessEqual[j, -3.7e-159], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.5e-25], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;j \leq -2.4 \cdot 10^{-33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -3.7 \cdot 10^{-159}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 3.5 \cdot 10^{-25}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2.4e-33 or 3.5000000000000002e-25 < j Initial program 75.7%
Taylor expanded in y around inf 56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in x around 0 47.3%
mul-1-neg47.3%
*-commutative47.3%
distribute-rgt-neg-in47.3%
Simplified47.3%
if -2.4e-33 < j < -3.6999999999999999e-159Initial program 79.1%
Taylor expanded in y around inf 49.3%
+-commutative49.3%
mul-1-neg49.3%
unsub-neg49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in x around inf 42.1%
if -3.6999999999999999e-159 < j < 3.5000000000000002e-25Initial program 71.4%
Taylor expanded in a around inf 35.5%
+-commutative35.5%
mul-1-neg35.5%
unsub-neg35.5%
*-commutative35.5%
*-commutative35.5%
Simplified35.5%
Taylor expanded in j around 0 31.9%
associate-*r*31.9%
mul-1-neg31.9%
Simplified31.9%
Final simplification40.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -520000000000.0) (not (<= t 2.9e-21))) (* b (* t i)) (* a (* c j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -520000000000.0) || !(t <= 2.9e-21)) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-520000000000.0d0)) .or. (.not. (t <= 2.9d-21))) then
tmp = b * (t * i)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -520000000000.0) || !(t <= 2.9e-21)) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -520000000000.0) or not (t <= 2.9e-21): tmp = b * (t * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -520000000000.0) || !(t <= 2.9e-21)) tmp = Float64(b * Float64(t * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -520000000000.0) || ~((t <= 2.9e-21))) tmp = b * (t * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -520000000000.0], N[Not[LessEqual[t, 2.9e-21]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -520000000000 \lor \neg \left(t \leq 2.9 \cdot 10^{-21}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -5.2e11 or 2.9e-21 < t Initial program 66.9%
Taylor expanded in a around -inf 67.6%
Simplified69.0%
Taylor expanded in i around inf 45.9%
+-commutative45.9%
mul-1-neg45.9%
unsub-neg45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in t around inf 34.0%
*-commutative34.0%
Simplified34.0%
if -5.2e11 < t < 2.9e-21Initial program 81.7%
Taylor expanded in a around inf 29.3%
+-commutative29.3%
mul-1-neg29.3%
unsub-neg29.3%
*-commutative29.3%
*-commutative29.3%
Simplified29.3%
Taylor expanded in j around inf 26.0%
Final simplification30.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -65000000000000.0) (* i (* t b)) (if (<= t 6.1e-21) (* a (* c j)) (* b (* t i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -65000000000000.0) {
tmp = i * (t * b);
} else if (t <= 6.1e-21) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-65000000000000.0d0)) then
tmp = i * (t * b)
else if (t <= 6.1d-21) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -65000000000000.0) {
tmp = i * (t * b);
} else if (t <= 6.1e-21) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -65000000000000.0: tmp = i * (t * b) elif t <= 6.1e-21: tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -65000000000000.0) tmp = Float64(i * Float64(t * b)); elseif (t <= 6.1e-21) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -65000000000000.0) tmp = i * (t * b); elseif (t <= 6.1e-21) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -65000000000000.0], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.1e-21], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -65000000000000:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq 6.1 \cdot 10^{-21}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -6.5e13Initial program 72.5%
Taylor expanded in a around -inf 72.4%
Simplified72.2%
Taylor expanded in i around inf 39.6%
+-commutative39.6%
mul-1-neg39.6%
unsub-neg39.6%
*-commutative39.6%
Simplified39.6%
Taylor expanded in t around inf 29.3%
*-commutative29.3%
Simplified29.3%
if -6.5e13 < t < 6.10000000000000013e-21Initial program 81.7%
Taylor expanded in a around inf 29.3%
+-commutative29.3%
mul-1-neg29.3%
unsub-neg29.3%
*-commutative29.3%
*-commutative29.3%
Simplified29.3%
Taylor expanded in j around inf 26.0%
if 6.10000000000000013e-21 < t Initial program 63.0%
Taylor expanded in a around -inf 64.2%
Simplified66.8%
Taylor expanded in i around inf 50.4%
+-commutative50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in t around inf 38.6%
*-commutative38.6%
Simplified38.6%
Final simplification30.4%
(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 74.3%
Taylor expanded in a around inf 35.1%
+-commutative35.1%
mul-1-neg35.1%
unsub-neg35.1%
*-commutative35.1%
*-commutative35.1%
Simplified35.1%
Taylor expanded in j around inf 18.9%
Final simplification18.9%
(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 2024027
(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)))))