
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= (+ t_2 (+ t_1 (* x (- (* y z) (* t a))))) INFINITY)
(+ t_2 (+ (* x (fma y z (* t (- a)))) t_1))
t_1)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if ((t_2 + (t_1 + (x * ((y * z) - (t * a))))) <= ((double) INFINITY)) {
tmp = t_2 + ((x * fma(y, z, (t * -a))) + t_1);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (Float64(t_2 + Float64(t_1 + Float64(x * Float64(Float64(y * z) - Float64(t * a))))) <= Inf) tmp = Float64(t_2 + Float64(Float64(x * fma(y, z, Float64(t * Float64(-a)))) + t_1)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$2 + N[(t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(t$95$2 + N[(N[(x * N[(y * z + N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_2 + \left(t\_1 + x \cdot \left(y \cdot z - t \cdot a\right)\right) \leq \infty:\\
\;\;\;\;t\_2 + \left(x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.9%
cancel-sign-sub-inv90.9%
cancel-sign-sub90.9%
*-commutative90.9%
fma-neg90.9%
distribute-rgt-neg-in90.9%
remove-double-neg90.9%
*-commutative90.9%
*-commutative90.9%
sub-neg90.9%
sub-neg90.9%
*-commutative90.9%
*-commutative90.9%
Simplified90.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in b around inf 57.7%
*-commutative57.7%
Simplified57.7%
Final simplification84.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (+ (* j (- (* t c) (* y i))) (+ t_1 (* x (- (* y z) (* t a)))))))
(if (<= t_2 INFINITY) t_2 t_1)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = (j * ((t * c) - (y * i))) + (t_1 + (x * ((y * z) - (t * a))));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = t_1;
}
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 * ((a * i) - (z * c));
double t_2 = (j * ((t * c) - (y * i))) + (t_1 + (x * ((y * z) - (t * a))));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = (j * ((t * c) - (y * i))) + (t_1 + (x * ((y * z) - (t * a)))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(t_1 + Float64(x * Float64(Float64(y * z) - Float64(t * a))))) tmp = 0.0 if (t_2 <= Inf) 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 = b * ((a * i) - (z * c)); t_2 = (j * ((t * c) - (y * i))) + (t_1 + (x * ((y * z) - (t * a)))); tmp = 0.0; if (t_2 <= Inf) 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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right) + \left(t\_1 + x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\mathbf{if}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in b around inf 57.7%
*-commutative57.7%
Simplified57.7%
Final simplification84.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a)))))
(t_2 (* b (- (* a i) (* z c)))))
(if (<= b -9.2e+167)
t_2
(if (<= b -3.8e+129)
t_1
(if (<= b -5e+88)
t_2
(if (<= b -3.45e+72)
t_1
(if (<= b -132000000.0)
(* c (- (* t j) (* z b)))
(if (<= b -6400.0)
(* a (- (* b i) (* x t)))
(if (<= b 3.9e+57)
t_1
(if (<= b 1.35e+95)
(* i (- (* a b) (* y j)))
(if (<= b 1.05e+138)
(* z (* b (- (* x (/ y b)) c)))
t_2)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -9.2e+167) {
tmp = t_2;
} else if (b <= -3.8e+129) {
tmp = t_1;
} else if (b <= -5e+88) {
tmp = t_2;
} else if (b <= -3.45e+72) {
tmp = t_1;
} else if (b <= -132000000.0) {
tmp = c * ((t * j) - (z * b));
} else if (b <= -6400.0) {
tmp = a * ((b * i) - (x * t));
} else if (b <= 3.9e+57) {
tmp = t_1;
} else if (b <= 1.35e+95) {
tmp = i * ((a * b) - (y * j));
} else if (b <= 1.05e+138) {
tmp = z * (b * ((x * (y / b)) - c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
t_2 = b * ((a * i) - (z * c))
if (b <= (-9.2d+167)) then
tmp = t_2
else if (b <= (-3.8d+129)) then
tmp = t_1
else if (b <= (-5d+88)) then
tmp = t_2
else if (b <= (-3.45d+72)) then
tmp = t_1
else if (b <= (-132000000.0d0)) then
tmp = c * ((t * j) - (z * b))
else if (b <= (-6400.0d0)) then
tmp = a * ((b * i) - (x * t))
else if (b <= 3.9d+57) then
tmp = t_1
else if (b <= 1.35d+95) then
tmp = i * ((a * b) - (y * j))
else if (b <= 1.05d+138) then
tmp = z * (b * ((x * (y / b)) - c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -9.2e+167) {
tmp = t_2;
} else if (b <= -3.8e+129) {
tmp = t_1;
} else if (b <= -5e+88) {
tmp = t_2;
} else if (b <= -3.45e+72) {
tmp = t_1;
} else if (b <= -132000000.0) {
tmp = c * ((t * j) - (z * b));
} else if (b <= -6400.0) {
tmp = a * ((b * i) - (x * t));
} else if (b <= 3.9e+57) {
tmp = t_1;
} else if (b <= 1.35e+95) {
tmp = i * ((a * b) - (y * j));
} else if (b <= 1.05e+138) {
tmp = z * (b * ((x * (y / b)) - c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -9.2e+167: tmp = t_2 elif b <= -3.8e+129: tmp = t_1 elif b <= -5e+88: tmp = t_2 elif b <= -3.45e+72: tmp = t_1 elif b <= -132000000.0: tmp = c * ((t * j) - (z * b)) elif b <= -6400.0: tmp = a * ((b * i) - (x * t)) elif b <= 3.9e+57: tmp = t_1 elif b <= 1.35e+95: tmp = i * ((a * b) - (y * j)) elif b <= 1.05e+138: tmp = z * (b * ((x * (y / b)) - c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -9.2e+167) tmp = t_2; elseif (b <= -3.8e+129) tmp = t_1; elseif (b <= -5e+88) tmp = t_2; elseif (b <= -3.45e+72) tmp = t_1; elseif (b <= -132000000.0) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (b <= -6400.0) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (b <= 3.9e+57) tmp = t_1; elseif (b <= 1.35e+95) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (b <= 1.05e+138) tmp = Float64(z * Float64(b * Float64(Float64(x * Float64(y / b)) - c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -9.2e+167) tmp = t_2; elseif (b <= -3.8e+129) tmp = t_1; elseif (b <= -5e+88) tmp = t_2; elseif (b <= -3.45e+72) tmp = t_1; elseif (b <= -132000000.0) tmp = c * ((t * j) - (z * b)); elseif (b <= -6400.0) tmp = a * ((b * i) - (x * t)); elseif (b <= 3.9e+57) tmp = t_1; elseif (b <= 1.35e+95) tmp = i * ((a * b) - (y * j)); elseif (b <= 1.05e+138) tmp = z * (b * ((x * (y / b)) - c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.2e+167], t$95$2, If[LessEqual[b, -3.8e+129], t$95$1, If[LessEqual[b, -5e+88], t$95$2, If[LessEqual[b, -3.45e+72], t$95$1, If[LessEqual[b, -132000000.0], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6400.0], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.9e+57], t$95$1, If[LessEqual[b, 1.35e+95], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e+138], N[(z * N[(b * N[(N[(x * N[(y / b), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -9.2 \cdot 10^{+167}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{+129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5 \cdot 10^{+88}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.45 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -132000000:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq -6400:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;b \leq 3.9 \cdot 10^{+57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{+95}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+138}:\\
\;\;\;\;z \cdot \left(b \cdot \left(x \cdot \frac{y}{b} - c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -9.19999999999999952e167 or -3.80000000000000005e129 < b < -4.99999999999999997e88 or 1.05000000000000003e138 < b Initial program 69.0%
Taylor expanded in b around inf 75.0%
*-commutative75.0%
Simplified75.0%
if -9.19999999999999952e167 < b < -3.80000000000000005e129 or -4.99999999999999997e88 < b < -3.45000000000000017e72 or -6400 < b < 3.89999999999999968e57Initial program 78.2%
Taylor expanded in b around 0 80.4%
if -3.45000000000000017e72 < b < -1.32e8Initial program 79.8%
Taylor expanded in c around inf 70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
if -1.32e8 < b < -6400Initial program 0.0%
Taylor expanded in a around inf 100.0%
distribute-lft-out--100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
if 3.89999999999999968e57 < b < 1.35e95Initial program 80.3%
Taylor expanded in y around 0 79.8%
Taylor expanded in x around inf 80.3%
+-commutative80.3%
mul-1-neg80.3%
unsub-neg80.3%
associate-/l*70.7%
Simplified70.7%
Taylor expanded in y around 0 60.6%
Simplified59.7%
Taylor expanded in i around inf 89.5%
sub-neg89.5%
neg-mul-189.5%
mul-1-neg89.5%
remove-double-neg89.5%
+-commutative89.5%
unsub-neg89.5%
*-commutative89.5%
Simplified89.5%
if 1.35e95 < b < 1.05000000000000003e138Initial program 71.4%
Taylor expanded in z around inf 86.4%
*-commutative86.4%
Simplified86.4%
Taylor expanded in b around inf 86.4%
associate-/l*86.4%
Simplified86.4%
Final simplification79.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -3.1e+232)
t_2
(if (<= b -2.2e+132)
t_1
(if (<= b -1.3e-52)
t_2
(if (<= b 2.4e-160)
(* x (- (* y z) (* t a)))
(if (<= b 5.5e+56)
(* t (- (* c j) (* x a)))
(if (<= b 4.4e+96)
t_1
(if (<= b 1.5e+132) (* c (- (* t j) (* z b))) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.1e+232) {
tmp = t_2;
} else if (b <= -2.2e+132) {
tmp = t_1;
} else if (b <= -1.3e-52) {
tmp = t_2;
} else if (b <= 2.4e-160) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 5.5e+56) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 4.4e+96) {
tmp = t_1;
} else if (b <= 1.5e+132) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
t_2 = b * ((a * i) - (z * c))
if (b <= (-3.1d+232)) then
tmp = t_2
else if (b <= (-2.2d+132)) then
tmp = t_1
else if (b <= (-1.3d-52)) then
tmp = t_2
else if (b <= 2.4d-160) then
tmp = x * ((y * z) - (t * a))
else if (b <= 5.5d+56) then
tmp = t * ((c * j) - (x * a))
else if (b <= 4.4d+96) then
tmp = t_1
else if (b <= 1.5d+132) then
tmp = c * ((t * j) - (z * b))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.1e+232) {
tmp = t_2;
} else if (b <= -2.2e+132) {
tmp = t_1;
} else if (b <= -1.3e-52) {
tmp = t_2;
} else if (b <= 2.4e-160) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 5.5e+56) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 4.4e+96) {
tmp = t_1;
} else if (b <= 1.5e+132) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -3.1e+232: tmp = t_2 elif b <= -2.2e+132: tmp = t_1 elif b <= -1.3e-52: tmp = t_2 elif b <= 2.4e-160: tmp = x * ((y * z) - (t * a)) elif b <= 5.5e+56: tmp = t * ((c * j) - (x * a)) elif b <= 4.4e+96: tmp = t_1 elif b <= 1.5e+132: tmp = c * ((t * j) - (z * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.1e+232) tmp = t_2; elseif (b <= -2.2e+132) tmp = t_1; elseif (b <= -1.3e-52) tmp = t_2; elseif (b <= 2.4e-160) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 5.5e+56) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 4.4e+96) tmp = t_1; elseif (b <= 1.5e+132) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -3.1e+232) tmp = t_2; elseif (b <= -2.2e+132) tmp = t_1; elseif (b <= -1.3e-52) tmp = t_2; elseif (b <= 2.4e-160) tmp = x * ((y * z) - (t * a)); elseif (b <= 5.5e+56) tmp = t * ((c * j) - (x * a)); elseif (b <= 4.4e+96) tmp = t_1; elseif (b <= 1.5e+132) tmp = c * ((t * j) - (z * b)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.1e+232], t$95$2, If[LessEqual[b, -2.2e+132], t$95$1, If[LessEqual[b, -1.3e-52], t$95$2, If[LessEqual[b, 2.4e-160], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e+56], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.4e+96], t$95$1, If[LessEqual[b, 1.5e+132], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.1 \cdot 10^{+232}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{+132}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{-52}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{-160}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{+56}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+132}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -3.09999999999999983e232 or -2.19999999999999989e132 < b < -1.2999999999999999e-52 or 1.4999999999999999e132 < b Initial program 71.1%
Taylor expanded in b around inf 69.0%
*-commutative69.0%
Simplified69.0%
if -3.09999999999999983e232 < b < -2.19999999999999989e132 or 5.5000000000000002e56 < b < 4.3999999999999998e96Initial program 73.6%
Taylor expanded in y around 0 70.8%
Taylor expanded in x around inf 65.0%
+-commutative65.0%
mul-1-neg65.0%
unsub-neg65.0%
associate-/l*62.2%
Simplified62.2%
Taylor expanded in y around 0 59.4%
Simplified53.1%
Taylor expanded in i around inf 73.7%
sub-neg73.7%
neg-mul-173.7%
mul-1-neg73.7%
remove-double-neg73.7%
+-commutative73.7%
unsub-neg73.7%
*-commutative73.7%
Simplified73.7%
if -1.2999999999999999e-52 < b < 2.39999999999999991e-160Initial program 73.6%
Taylor expanded in y around 0 76.0%
Taylor expanded in x around inf 57.9%
mul-1-neg57.9%
*-commutative57.9%
+-commutative57.9%
sub-neg57.9%
Simplified57.9%
if 2.39999999999999991e-160 < b < 5.5000000000000002e56Initial program 86.0%
Taylor expanded in t around inf 60.5%
+-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
*-commutative60.5%
*-commutative60.5%
Simplified60.5%
if 4.3999999999999998e96 < b < 1.4999999999999999e132Initial program 70.0%
Taylor expanded in c around inf 80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
Final simplification65.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.45e+235)
t_1
(if (<= b -2.4e+132)
(* i (- (* a b) (* y j)))
(if (<= b -1.25e-52)
t_1
(if (<= b 3.7e-160)
(* x (- (* y z) (* t a)))
(if (<= b 8.5e+31)
(* t (- (* c j) (* x a)))
(if (<= b 3.8e+107)
(* y (- (* x z) (* i j)))
(if (<= b 3.4e+135) (* c (- (* t j) (* z b))) t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.45e+235) {
tmp = t_1;
} else if (b <= -2.4e+132) {
tmp = i * ((a * b) - (y * j));
} else if (b <= -1.25e-52) {
tmp = t_1;
} else if (b <= 3.7e-160) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 8.5e+31) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 3.8e+107) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 3.4e+135) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-1.45d+235)) then
tmp = t_1
else if (b <= (-2.4d+132)) then
tmp = i * ((a * b) - (y * j))
else if (b <= (-1.25d-52)) then
tmp = t_1
else if (b <= 3.7d-160) then
tmp = x * ((y * z) - (t * a))
else if (b <= 8.5d+31) then
tmp = t * ((c * j) - (x * a))
else if (b <= 3.8d+107) then
tmp = y * ((x * z) - (i * j))
else if (b <= 3.4d+135) then
tmp = c * ((t * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.45e+235) {
tmp = t_1;
} else if (b <= -2.4e+132) {
tmp = i * ((a * b) - (y * j));
} else if (b <= -1.25e-52) {
tmp = t_1;
} else if (b <= 3.7e-160) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 8.5e+31) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 3.8e+107) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 3.4e+135) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.45e+235: tmp = t_1 elif b <= -2.4e+132: tmp = i * ((a * b) - (y * j)) elif b <= -1.25e-52: tmp = t_1 elif b <= 3.7e-160: tmp = x * ((y * z) - (t * a)) elif b <= 8.5e+31: tmp = t * ((c * j) - (x * a)) elif b <= 3.8e+107: tmp = y * ((x * z) - (i * j)) elif b <= 3.4e+135: tmp = c * ((t * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.45e+235) tmp = t_1; elseif (b <= -2.4e+132) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (b <= -1.25e-52) tmp = t_1; elseif (b <= 3.7e-160) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 8.5e+31) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 3.8e+107) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 3.4e+135) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.45e+235) tmp = t_1; elseif (b <= -2.4e+132) tmp = i * ((a * b) - (y * j)); elseif (b <= -1.25e-52) tmp = t_1; elseif (b <= 3.7e-160) tmp = x * ((y * z) - (t * a)); elseif (b <= 8.5e+31) tmp = t * ((c * j) - (x * a)); elseif (b <= 3.8e+107) tmp = y * ((x * z) - (i * j)); elseif (b <= 3.4e+135) tmp = c * ((t * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.45e+235], t$95$1, If[LessEqual[b, -2.4e+132], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.25e-52], t$95$1, If[LessEqual[b, 3.7e-160], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e+31], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e+107], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.4e+135], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.45 \cdot 10^{+235}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{+132}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq -1.25 \cdot 10^{-52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-160}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{+31}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{+107}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{+135}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.45000000000000011e235 or -2.4000000000000001e132 < b < -1.25e-52 or 3.4000000000000001e135 < b Initial program 71.1%
Taylor expanded in b around inf 69.0%
*-commutative69.0%
Simplified69.0%
if -1.45000000000000011e235 < b < -2.4000000000000001e132Initial program 72.7%
Taylor expanded in y around 0 64.0%
Taylor expanded in x around inf 54.9%
+-commutative54.9%
mul-1-neg54.9%
unsub-neg54.9%
associate-/l*54.9%
Simplified54.9%
Taylor expanded in y around 0 55.2%
Simplified50.3%
Taylor expanded in i around inf 68.6%
sub-neg68.6%
neg-mul-168.6%
mul-1-neg68.6%
remove-double-neg68.6%
+-commutative68.6%
unsub-neg68.6%
*-commutative68.6%
Simplified68.6%
if -1.25e-52 < b < 3.69999999999999977e-160Initial program 73.6%
Taylor expanded in y around 0 76.0%
Taylor expanded in x around inf 57.9%
mul-1-neg57.9%
*-commutative57.9%
+-commutative57.9%
sub-neg57.9%
Simplified57.9%
if 3.69999999999999977e-160 < b < 8.49999999999999947e31Initial program 86.1%
Taylor expanded in t around inf 63.6%
+-commutative63.6%
mul-1-neg63.6%
unsub-neg63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
if 8.49999999999999947e31 < b < 3.7999999999999998e107Initial program 73.9%
Taylor expanded in y around 0 74.0%
Taylor expanded in y around inf 66.3%
+-commutative66.3%
mul-1-neg66.3%
unsub-neg66.3%
*-commutative66.3%
Simplified66.3%
if 3.7999999999999998e107 < b < 3.4000000000000001e135Initial program 83.3%
Taylor expanded in c around inf 100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Final simplification65.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -8.4e+138)
t_2
(if (<= z -1.4e-100)
t_1
(if (<= z -1.2e-269)
(* i (- (* a b) (* y j)))
(if (<= z 5.4e-297)
t_1
(if (<= z 3.05e-78)
(* j (- (* t c) (* y i)))
(if (<= z 5e-24)
t_1
(if (<= z 6.2e+108) (* b (- (* a i) (* z c))) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -8.4e+138) {
tmp = t_2;
} else if (z <= -1.4e-100) {
tmp = t_1;
} else if (z <= -1.2e-269) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 5.4e-297) {
tmp = t_1;
} else if (z <= 3.05e-78) {
tmp = j * ((t * c) - (y * i));
} else if (z <= 5e-24) {
tmp = t_1;
} else if (z <= 6.2e+108) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = z * ((x * y) - (b * c))
if (z <= (-8.4d+138)) then
tmp = t_2
else if (z <= (-1.4d-100)) then
tmp = t_1
else if (z <= (-1.2d-269)) then
tmp = i * ((a * b) - (y * j))
else if (z <= 5.4d-297) then
tmp = t_1
else if (z <= 3.05d-78) then
tmp = j * ((t * c) - (y * i))
else if (z <= 5d-24) then
tmp = t_1
else if (z <= 6.2d+108) then
tmp = b * ((a * i) - (z * c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -8.4e+138) {
tmp = t_2;
} else if (z <= -1.4e-100) {
tmp = t_1;
} else if (z <= -1.2e-269) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 5.4e-297) {
tmp = t_1;
} else if (z <= 3.05e-78) {
tmp = j * ((t * c) - (y * i));
} else if (z <= 5e-24) {
tmp = t_1;
} else if (z <= 6.2e+108) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -8.4e+138: tmp = t_2 elif z <= -1.4e-100: tmp = t_1 elif z <= -1.2e-269: tmp = i * ((a * b) - (y * j)) elif z <= 5.4e-297: tmp = t_1 elif z <= 3.05e-78: tmp = j * ((t * c) - (y * i)) elif z <= 5e-24: tmp = t_1 elif z <= 6.2e+108: tmp = b * ((a * i) - (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -8.4e+138) tmp = t_2; elseif (z <= -1.4e-100) tmp = t_1; elseif (z <= -1.2e-269) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 5.4e-297) tmp = t_1; elseif (z <= 3.05e-78) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (z <= 5e-24) tmp = t_1; elseif (z <= 6.2e+108) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -8.4e+138) tmp = t_2; elseif (z <= -1.4e-100) tmp = t_1; elseif (z <= -1.2e-269) tmp = i * ((a * b) - (y * j)); elseif (z <= 5.4e-297) tmp = t_1; elseif (z <= 3.05e-78) tmp = j * ((t * c) - (y * i)); elseif (z <= 5e-24) tmp = t_1; elseif (z <= 6.2e+108) tmp = b * ((a * i) - (z * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.4e+138], t$95$2, If[LessEqual[z, -1.4e-100], t$95$1, If[LessEqual[z, -1.2e-269], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.4e-297], t$95$1, If[LessEqual[z, 3.05e-78], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e-24], t$95$1, If[LessEqual[z, 6.2e+108], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -8.4 \cdot 10^{+138}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{-269}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{-297}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.05 \cdot 10^{-78}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+108}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -8.40000000000000028e138 or 6.2000000000000003e108 < z Initial program 54.2%
Taylor expanded in z around inf 77.2%
*-commutative77.2%
Simplified77.2%
if -8.40000000000000028e138 < z < -1.39999999999999998e-100 or -1.20000000000000005e-269 < z < 5.4000000000000002e-297 or 3.05000000000000003e-78 < z < 4.9999999999999998e-24Initial program 77.6%
Taylor expanded in t around inf 62.3%
+-commutative62.3%
mul-1-neg62.3%
unsub-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
if -1.39999999999999998e-100 < z < -1.20000000000000005e-269Initial program 81.4%
Taylor expanded in y around 0 85.5%
Taylor expanded in x around inf 81.5%
+-commutative81.5%
mul-1-neg81.5%
unsub-neg81.5%
associate-/l*81.5%
Simplified81.5%
Taylor expanded in y around 0 79.5%
Simplified75.1%
Taylor expanded in i around inf 64.1%
sub-neg64.1%
neg-mul-164.1%
mul-1-neg64.1%
remove-double-neg64.1%
+-commutative64.1%
unsub-neg64.1%
*-commutative64.1%
Simplified64.1%
if 5.4000000000000002e-297 < z < 3.05000000000000003e-78Initial program 88.4%
Taylor expanded in j around inf 62.8%
if 4.9999999999999998e-24 < z < 6.2000000000000003e108Initial program 86.4%
Taylor expanded in b around inf 63.1%
*-commutative63.1%
Simplified63.1%
Final simplification67.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* t (- (* c j) (* x a))) (* z (- (* x y) (* b c)))))
(t_2 (* j (- (* t c) (* y i))))
(t_3 (+ t_2 (* x (- (* y z) (* t a))))))
(if (<= j -5.1e+15)
t_3
(if (<= j 2.4e-216)
t_1
(if (<= j 5.8e-93)
(* b (- (* a i) (* z c)))
(if (<= j 4.5e+19) t_1 (if (<= j 2.5e+205) 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 = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c)));
double t_2 = j * ((t * c) - (y * i));
double t_3 = t_2 + (x * ((y * z) - (t * a)));
double tmp;
if (j <= -5.1e+15) {
tmp = t_3;
} else if (j <= 2.4e-216) {
tmp = t_1;
} else if (j <= 5.8e-93) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 4.5e+19) {
tmp = t_1;
} else if (j <= 2.5e+205) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c)))
t_2 = j * ((t * c) - (y * i))
t_3 = t_2 + (x * ((y * z) - (t * a)))
if (j <= (-5.1d+15)) then
tmp = t_3
else if (j <= 2.4d-216) then
tmp = t_1
else if (j <= 5.8d-93) then
tmp = b * ((a * i) - (z * c))
else if (j <= 4.5d+19) then
tmp = t_1
else if (j <= 2.5d+205) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c)));
double t_2 = j * ((t * c) - (y * i));
double t_3 = t_2 + (x * ((y * z) - (t * a)));
double tmp;
if (j <= -5.1e+15) {
tmp = t_3;
} else if (j <= 2.4e-216) {
tmp = t_1;
} else if (j <= 5.8e-93) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 4.5e+19) {
tmp = t_1;
} else if (j <= 2.5e+205) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c))) t_2 = j * ((t * c) - (y * i)) t_3 = t_2 + (x * ((y * z) - (t * a))) tmp = 0 if j <= -5.1e+15: tmp = t_3 elif j <= 2.4e-216: tmp = t_1 elif j <= 5.8e-93: tmp = b * ((a * i) - (z * c)) elif j <= 4.5e+19: tmp = t_1 elif j <= 2.5e+205: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_3 = Float64(t_2 + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) tmp = 0.0 if (j <= -5.1e+15) tmp = t_3; elseif (j <= 2.4e-216) tmp = t_1; elseif (j <= 5.8e-93) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (j <= 4.5e+19) tmp = t_1; elseif (j <= 2.5e+205) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c))); t_2 = j * ((t * c) - (y * i)); t_3 = t_2 + (x * ((y * z) - (t * a))); tmp = 0.0; if (j <= -5.1e+15) tmp = t_3; elseif (j <= 2.4e-216) tmp = t_1; elseif (j <= 5.8e-93) tmp = b * ((a * i) - (z * c)); elseif (j <= 4.5e+19) tmp = t_1; elseif (j <= 2.5e+205) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5.1e+15], t$95$3, If[LessEqual[j, 2.4e-216], t$95$1, If[LessEqual[j, 5.8e-93], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.5e+19], t$95$1, If[LessEqual[j, 2.5e+205], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_3 := t\_2 + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;j \leq -5.1 \cdot 10^{+15}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 2.4 \cdot 10^{-216}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 5.8 \cdot 10^{-93}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 4.5 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.5 \cdot 10^{+205}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -5.1e15 or 4.5e19 < j < 2.5000000000000001e205Initial program 78.5%
Taylor expanded in b around 0 77.1%
if -5.1e15 < j < 2.40000000000000004e-216 or 5.7999999999999997e-93 < j < 4.5e19Initial program 74.8%
Taylor expanded in y around 0 82.7%
Taylor expanded in x around inf 79.7%
+-commutative79.7%
mul-1-neg79.7%
unsub-neg79.7%
associate-/l*79.7%
Simplified79.7%
Taylor expanded in i around 0 65.6%
sub-neg65.6%
associate-+r+65.6%
associate-+l+65.6%
+-commutative65.6%
mul-1-neg65.6%
associate-*r*65.3%
*-commutative65.3%
associate-*r*67.4%
distribute-lft-neg-in67.4%
mul-1-neg67.4%
distribute-rgt-in67.4%
mul-1-neg67.4%
unsub-neg67.4%
*-commutative67.4%
*-commutative67.4%
Simplified78.3%
if 2.40000000000000004e-216 < j < 5.7999999999999997e-93Initial program 63.8%
Taylor expanded in b around inf 69.1%
*-commutative69.1%
Simplified69.1%
if 2.5000000000000001e205 < j Initial program 68.0%
Taylor expanded in j around inf 70.1%
Final simplification76.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (* j (- (* t c) (* y i))) t_1))
(t_3 (+ (* b (- (* a i) (* z c))) t_1)))
(if (<= z -1.32e+138)
(* z (* b (- (* x (/ y b)) c)))
(if (<= z -3700000.0)
t_2
(if (<= z -6.6e-111)
t_3
(if (<= z 1.25e-20)
t_2
(if (<= z 4.9e+153) t_3 (* z (- (* x y) (* b c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (j * ((t * c) - (y * i))) + t_1;
double t_3 = (b * ((a * i) - (z * c))) + t_1;
double tmp;
if (z <= -1.32e+138) {
tmp = z * (b * ((x * (y / b)) - c));
} else if (z <= -3700000.0) {
tmp = t_2;
} else if (z <= -6.6e-111) {
tmp = t_3;
} else if (z <= 1.25e-20) {
tmp = t_2;
} else if (z <= 4.9e+153) {
tmp = t_3;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = (j * ((t * c) - (y * i))) + t_1
t_3 = (b * ((a * i) - (z * c))) + t_1
if (z <= (-1.32d+138)) then
tmp = z * (b * ((x * (y / b)) - c))
else if (z <= (-3700000.0d0)) then
tmp = t_2
else if (z <= (-6.6d-111)) then
tmp = t_3
else if (z <= 1.25d-20) then
tmp = t_2
else if (z <= 4.9d+153) then
tmp = t_3
else
tmp = z * ((x * y) - (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (j * ((t * c) - (y * i))) + t_1;
double t_3 = (b * ((a * i) - (z * c))) + t_1;
double tmp;
if (z <= -1.32e+138) {
tmp = z * (b * ((x * (y / b)) - c));
} else if (z <= -3700000.0) {
tmp = t_2;
} else if (z <= -6.6e-111) {
tmp = t_3;
} else if (z <= 1.25e-20) {
tmp = t_2;
} else if (z <= 4.9e+153) {
tmp = t_3;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (j * ((t * c) - (y * i))) + t_1 t_3 = (b * ((a * i) - (z * c))) + t_1 tmp = 0 if z <= -1.32e+138: tmp = z * (b * ((x * (y / b)) - c)) elif z <= -3700000.0: tmp = t_2 elif z <= -6.6e-111: tmp = t_3 elif z <= 1.25e-20: tmp = t_2 elif z <= 4.9e+153: tmp = t_3 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + t_1) t_3 = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) + t_1) tmp = 0.0 if (z <= -1.32e+138) tmp = Float64(z * Float64(b * Float64(Float64(x * Float64(y / b)) - c))); elseif (z <= -3700000.0) tmp = t_2; elseif (z <= -6.6e-111) tmp = t_3; elseif (z <= 1.25e-20) tmp = t_2; elseif (z <= 4.9e+153) tmp = t_3; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = (j * ((t * c) - (y * i))) + t_1; t_3 = (b * ((a * i) - (z * c))) + t_1; tmp = 0.0; if (z <= -1.32e+138) tmp = z * (b * ((x * (y / b)) - c)); elseif (z <= -3700000.0) tmp = t_2; elseif (z <= -6.6e-111) tmp = t_3; elseif (z <= 1.25e-20) tmp = t_2; elseif (z <= 4.9e+153) tmp = t_3; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[z, -1.32e+138], N[(z * N[(b * N[(N[(x * N[(y / b), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3700000.0], t$95$2, If[LessEqual[z, -6.6e-111], t$95$3, If[LessEqual[z, 1.25e-20], t$95$2, If[LessEqual[z, 4.9e+153], t$95$3, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right) + t\_1\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right) + t\_1\\
\mathbf{if}\;z \leq -1.32 \cdot 10^{+138}:\\
\;\;\;\;z \cdot \left(b \cdot \left(x \cdot \frac{y}{b} - c\right)\right)\\
\mathbf{elif}\;z \leq -3700000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -6.6 \cdot 10^{-111}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-20}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 4.9 \cdot 10^{+153}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -1.32000000000000001e138Initial program 57.8%
Taylor expanded in z around inf 84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in b around inf 87.4%
associate-/l*85.4%
Simplified85.4%
if -1.32000000000000001e138 < z < -3.7e6 or -6.6e-111 < z < 1.25e-20Initial program 78.3%
Taylor expanded in b around 0 72.4%
if -3.7e6 < z < -6.6e-111 or 1.25e-20 < z < 4.90000000000000002e153Initial program 90.6%
Taylor expanded in j around 0 79.7%
*-commutative79.7%
Simplified79.7%
if 4.90000000000000002e153 < z Initial program 46.3%
Taylor expanded in z around inf 69.6%
*-commutative69.6%
Simplified69.6%
Final simplification75.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b (- (* a i) (* z c))) (- (* i (* y j)) (* c (* t j)))))
(t_2 (+ (* t (- (* c j) (* x a))) (* z (- (* x y) (* b c))))))
(if (<= x -1.6e-45)
t_2
(if (<= x 1.4e-61)
t_1
(if (<= x 5.6e+101)
(+ (- (* y (- (* x z) (* i j))) (* a (* x t))) (* a (* b i)))
(if (<= x 1.15e+145)
t_1
(if (<= x 1.08e+182)
t_2
(+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * ((a * i) - (z * c))) - ((i * (y * j)) - (c * (t * j)));
double t_2 = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c)));
double tmp;
if (x <= -1.6e-45) {
tmp = t_2;
} else if (x <= 1.4e-61) {
tmp = t_1;
} else if (x <= 5.6e+101) {
tmp = ((y * ((x * z) - (i * j))) - (a * (x * t))) + (a * (b * i));
} else if (x <= 1.15e+145) {
tmp = t_1;
} else if (x <= 1.08e+182) {
tmp = t_2;
} else {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * ((a * i) - (z * c))) - ((i * (y * j)) - (c * (t * j)))
t_2 = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c)))
if (x <= (-1.6d-45)) then
tmp = t_2
else if (x <= 1.4d-61) then
tmp = t_1
else if (x <= 5.6d+101) then
tmp = ((y * ((x * z) - (i * j))) - (a * (x * t))) + (a * (b * i))
else if (x <= 1.15d+145) then
tmp = t_1
else if (x <= 1.08d+182) then
tmp = t_2
else
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * ((a * i) - (z * c))) - ((i * (y * j)) - (c * (t * j)));
double t_2 = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c)));
double tmp;
if (x <= -1.6e-45) {
tmp = t_2;
} else if (x <= 1.4e-61) {
tmp = t_1;
} else if (x <= 5.6e+101) {
tmp = ((y * ((x * z) - (i * j))) - (a * (x * t))) + (a * (b * i));
} else if (x <= 1.15e+145) {
tmp = t_1;
} else if (x <= 1.08e+182) {
tmp = t_2;
} else {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * ((a * i) - (z * c))) - ((i * (y * j)) - (c * (t * j))) t_2 = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c))) tmp = 0 if x <= -1.6e-45: tmp = t_2 elif x <= 1.4e-61: tmp = t_1 elif x <= 5.6e+101: tmp = ((y * ((x * z) - (i * j))) - (a * (x * t))) + (a * (b * i)) elif x <= 1.15e+145: tmp = t_1 elif x <= 1.08e+182: tmp = t_2 else: tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(Float64(i * Float64(y * j)) - Float64(c * Float64(t * j)))) t_2 = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))) tmp = 0.0 if (x <= -1.6e-45) tmp = t_2; elseif (x <= 1.4e-61) tmp = t_1; elseif (x <= 5.6e+101) tmp = Float64(Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(a * Float64(x * t))) + Float64(a * Float64(b * i))); elseif (x <= 1.15e+145) tmp = t_1; elseif (x <= 1.08e+182) tmp = t_2; else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (b * ((a * i) - (z * c))) - ((i * (y * j)) - (c * (t * j))); t_2 = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c))); tmp = 0.0; if (x <= -1.6e-45) tmp = t_2; elseif (x <= 1.4e-61) tmp = t_1; elseif (x <= 5.6e+101) tmp = ((y * ((x * z) - (i * j))) - (a * (x * t))) + (a * (b * i)); elseif (x <= 1.15e+145) tmp = t_1; elseif (x <= 1.08e+182) tmp = t_2; else tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision] - N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.6e-45], t$95$2, If[LessEqual[x, 1.4e-61], t$95$1, If[LessEqual[x, 5.6e+101], N[(N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e+145], t$95$1, If[LessEqual[x, 1.08e+182], t$95$2, N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right) - \left(i \cdot \left(y \cdot j\right) - c \cdot \left(t \cdot j\right)\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;x \leq -1.6 \cdot 10^{-45}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{-61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{+101}:\\
\;\;\;\;\left(y \cdot \left(x \cdot z - i \cdot j\right) - a \cdot \left(x \cdot t\right)\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{+145}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.08 \cdot 10^{+182}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if x < -1.60000000000000004e-45 or 1.15e145 < x < 1.08000000000000003e182Initial program 67.9%
Taylor expanded in y around 0 66.4%
Taylor expanded in x around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
associate-/l*67.8%
Simplified67.8%
Taylor expanded in i around 0 63.5%
sub-neg63.5%
associate-+r+63.5%
associate-+l+63.5%
+-commutative63.5%
mul-1-neg63.5%
associate-*r*65.1%
*-commutative65.1%
associate-*r*68.1%
distribute-lft-neg-in68.1%
mul-1-neg68.1%
distribute-rgt-in69.6%
mul-1-neg69.6%
unsub-neg69.6%
*-commutative69.6%
*-commutative69.6%
Simplified74.2%
if -1.60000000000000004e-45 < x < 1.4000000000000001e-61 or 5.59999999999999962e101 < x < 1.15e145Initial program 72.0%
Taylor expanded in y around 0 83.8%
Taylor expanded in x around 0 77.6%
if 1.4000000000000001e-61 < x < 5.59999999999999962e101Initial program 78.1%
Taylor expanded in y around 0 77.6%
Taylor expanded in c around 0 82.3%
if 1.08000000000000003e182 < x Initial program 96.3%
Taylor expanded in b around 0 92.4%
Final simplification79.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -7.5e-51)
(+ (* t (- (* c j) (* x a))) (* z (- (* x y) (* b c))))
(if (or (<= x 2.55e-64) (and (not (<= x 1.6e+32)) (<= x 4.6e+143)))
(- (* b (- (* a i) (* z c))) (- (* i (* y j)) (* c (* t j))))
(+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -7.5e-51) {
tmp = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c)));
} else if ((x <= 2.55e-64) || (!(x <= 1.6e+32) && (x <= 4.6e+143))) {
tmp = (b * ((a * i) - (z * c))) - ((i * (y * j)) - (c * (t * j)));
} else {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-7.5d-51)) then
tmp = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c)))
else if ((x <= 2.55d-64) .or. (.not. (x <= 1.6d+32)) .and. (x <= 4.6d+143)) then
tmp = (b * ((a * i) - (z * c))) - ((i * (y * j)) - (c * (t * j)))
else
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -7.5e-51) {
tmp = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c)));
} else if ((x <= 2.55e-64) || (!(x <= 1.6e+32) && (x <= 4.6e+143))) {
tmp = (b * ((a * i) - (z * c))) - ((i * (y * j)) - (c * (t * j)));
} else {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -7.5e-51: tmp = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c))) elif (x <= 2.55e-64) or (not (x <= 1.6e+32) and (x <= 4.6e+143)): tmp = (b * ((a * i) - (z * c))) - ((i * (y * j)) - (c * (t * j))) else: tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -7.5e-51) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); elseif ((x <= 2.55e-64) || (!(x <= 1.6e+32) && (x <= 4.6e+143))) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(Float64(i * Float64(y * j)) - Float64(c * Float64(t * j)))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -7.5e-51) tmp = (t * ((c * j) - (x * a))) + (z * ((x * y) - (b * c))); elseif ((x <= 2.55e-64) || (~((x <= 1.6e+32)) && (x <= 4.6e+143))) tmp = (b * ((a * i) - (z * c))) - ((i * (y * j)) - (c * (t * j))); else tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -7.5e-51], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, 2.55e-64], And[N[Not[LessEqual[x, 1.6e+32]], $MachinePrecision], LessEqual[x, 4.6e+143]]], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision] - N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.5 \cdot 10^{-51}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;x \leq 2.55 \cdot 10^{-64} \lor \neg \left(x \leq 1.6 \cdot 10^{+32}\right) \land x \leq 4.6 \cdot 10^{+143}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - \left(i \cdot \left(y \cdot j\right) - c \cdot \left(t \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if x < -7.49999999999999976e-51Initial program 66.9%
Taylor expanded in y around 0 65.2%
Taylor expanded in x around inf 66.8%
+-commutative66.8%
mul-1-neg66.8%
unsub-neg66.8%
associate-/l*66.7%
Simplified66.7%
Taylor expanded in i around 0 62.1%
sub-neg62.1%
associate-+r+62.1%
associate-+l+62.1%
+-commutative62.1%
mul-1-neg62.1%
associate-*r*63.8%
*-commutative63.8%
associate-*r*65.5%
distribute-lft-neg-in65.5%
mul-1-neg65.5%
distribute-rgt-in67.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
*-commutative67.1%
Simplified72.1%
if -7.49999999999999976e-51 < x < 2.54999999999999992e-64 or 1.5999999999999999e32 < x < 4.5999999999999999e143Initial program 71.8%
Taylor expanded in y around 0 82.5%
Taylor expanded in x around 0 76.7%
if 2.54999999999999992e-64 < x < 1.5999999999999999e32 or 4.5999999999999999e143 < x Initial program 90.8%
Taylor expanded in b around 0 86.5%
Final simplification77.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (* z (* x y)))
(t_3 (* (* y j) (- i))))
(if (<= x -2.9e-25)
t_2
(if (<= x 2.2e-300)
t_1
(if (<= x 1.6e-236)
t_3
(if (<= x 4.45e-7)
t_1
(if (<= x 7.1e+78) t_3 (if (<= x 5.8e+143) 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 * ((a * i) - (z * c));
double t_2 = z * (x * y);
double t_3 = (y * j) * -i;
double tmp;
if (x <= -2.9e-25) {
tmp = t_2;
} else if (x <= 2.2e-300) {
tmp = t_1;
} else if (x <= 1.6e-236) {
tmp = t_3;
} else if (x <= 4.45e-7) {
tmp = t_1;
} else if (x <= 7.1e+78) {
tmp = t_3;
} else if (x <= 5.8e+143) {
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) :: t_3
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = z * (x * y)
t_3 = (y * j) * -i
if (x <= (-2.9d-25)) then
tmp = t_2
else if (x <= 2.2d-300) then
tmp = t_1
else if (x <= 1.6d-236) then
tmp = t_3
else if (x <= 4.45d-7) then
tmp = t_1
else if (x <= 7.1d+78) then
tmp = t_3
else if (x <= 5.8d+143) 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 * ((a * i) - (z * c));
double t_2 = z * (x * y);
double t_3 = (y * j) * -i;
double tmp;
if (x <= -2.9e-25) {
tmp = t_2;
} else if (x <= 2.2e-300) {
tmp = t_1;
} else if (x <= 1.6e-236) {
tmp = t_3;
} else if (x <= 4.45e-7) {
tmp = t_1;
} else if (x <= 7.1e+78) {
tmp = t_3;
} else if (x <= 5.8e+143) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = z * (x * y) t_3 = (y * j) * -i tmp = 0 if x <= -2.9e-25: tmp = t_2 elif x <= 2.2e-300: tmp = t_1 elif x <= 1.6e-236: tmp = t_3 elif x <= 4.45e-7: tmp = t_1 elif x <= 7.1e+78: tmp = t_3 elif x <= 5.8e+143: 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(a * i) - Float64(z * c))) t_2 = Float64(z * Float64(x * y)) t_3 = Float64(Float64(y * j) * Float64(-i)) tmp = 0.0 if (x <= -2.9e-25) tmp = t_2; elseif (x <= 2.2e-300) tmp = t_1; elseif (x <= 1.6e-236) tmp = t_3; elseif (x <= 4.45e-7) tmp = t_1; elseif (x <= 7.1e+78) tmp = t_3; elseif (x <= 5.8e+143) 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 * ((a * i) - (z * c)); t_2 = z * (x * y); t_3 = (y * j) * -i; tmp = 0.0; if (x <= -2.9e-25) tmp = t_2; elseif (x <= 2.2e-300) tmp = t_1; elseif (x <= 1.6e-236) tmp = t_3; elseif (x <= 4.45e-7) tmp = t_1; elseif (x <= 7.1e+78) tmp = t_3; elseif (x <= 5.8e+143) 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[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision]}, If[LessEqual[x, -2.9e-25], t$95$2, If[LessEqual[x, 2.2e-300], t$95$1, If[LessEqual[x, 1.6e-236], t$95$3, If[LessEqual[x, 4.45e-7], t$95$1, If[LessEqual[x, 7.1e+78], t$95$3, If[LessEqual[x, 5.8e+143], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
t_3 := \left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{if}\;x \leq -2.9 \cdot 10^{-25}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{-300}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{-236}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq 4.45 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 7.1 \cdot 10^{+78}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{+143}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -2.9000000000000001e-25 or 5.7999999999999996e143 < x Initial program 77.5%
Taylor expanded in z around inf 54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in x around inf 51.1%
*-commutative51.1%
Simplified51.1%
if -2.9000000000000001e-25 < x < 2.20000000000000002e-300 or 1.6e-236 < x < 4.45e-7 or 7.09999999999999992e78 < x < 5.7999999999999996e143Initial program 71.9%
Taylor expanded in b around inf 54.6%
*-commutative54.6%
Simplified54.6%
if 2.20000000000000002e-300 < x < 1.6e-236 or 4.45e-7 < x < 7.09999999999999992e78Initial program 76.8%
Taylor expanded in y around 0 81.6%
Taylor expanded in x around inf 71.4%
+-commutative71.4%
mul-1-neg71.4%
unsub-neg71.4%
associate-/l*71.4%
Simplified71.4%
Taylor expanded in i around inf 68.0%
sub-neg68.0%
associate-*r*68.0%
mul-1-neg68.0%
neg-mul-168.0%
remove-double-neg68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in j around inf 56.9%
neg-mul-156.9%
*-commutative56.9%
Simplified56.9%
Final simplification53.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -3.1e+232)
t_2
(if (<= b -1.5e+131)
t_1
(if (<= b -3.3e-80)
t_2
(if (<= b 5.8e+51)
(* t (- (* c j) (* x a)))
(if (<= b 4e+96)
t_1
(if (<= b 5.4e+132) (* c (- (* t j) (* z b))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.1e+232) {
tmp = t_2;
} else if (b <= -1.5e+131) {
tmp = t_1;
} else if (b <= -3.3e-80) {
tmp = t_2;
} else if (b <= 5.8e+51) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 4e+96) {
tmp = t_1;
} else if (b <= 5.4e+132) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
t_2 = b * ((a * i) - (z * c))
if (b <= (-3.1d+232)) then
tmp = t_2
else if (b <= (-1.5d+131)) then
tmp = t_1
else if (b <= (-3.3d-80)) then
tmp = t_2
else if (b <= 5.8d+51) then
tmp = t * ((c * j) - (x * a))
else if (b <= 4d+96) then
tmp = t_1
else if (b <= 5.4d+132) then
tmp = c * ((t * j) - (z * b))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.1e+232) {
tmp = t_2;
} else if (b <= -1.5e+131) {
tmp = t_1;
} else if (b <= -3.3e-80) {
tmp = t_2;
} else if (b <= 5.8e+51) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 4e+96) {
tmp = t_1;
} else if (b <= 5.4e+132) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -3.1e+232: tmp = t_2 elif b <= -1.5e+131: tmp = t_1 elif b <= -3.3e-80: tmp = t_2 elif b <= 5.8e+51: tmp = t * ((c * j) - (x * a)) elif b <= 4e+96: tmp = t_1 elif b <= 5.4e+132: tmp = c * ((t * j) - (z * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.1e+232) tmp = t_2; elseif (b <= -1.5e+131) tmp = t_1; elseif (b <= -3.3e-80) tmp = t_2; elseif (b <= 5.8e+51) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 4e+96) tmp = t_1; elseif (b <= 5.4e+132) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -3.1e+232) tmp = t_2; elseif (b <= -1.5e+131) tmp = t_1; elseif (b <= -3.3e-80) tmp = t_2; elseif (b <= 5.8e+51) tmp = t * ((c * j) - (x * a)); elseif (b <= 4e+96) tmp = t_1; elseif (b <= 5.4e+132) tmp = c * ((t * j) - (z * b)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.1e+232], t$95$2, If[LessEqual[b, -1.5e+131], t$95$1, If[LessEqual[b, -3.3e-80], t$95$2, If[LessEqual[b, 5.8e+51], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4e+96], t$95$1, If[LessEqual[b, 5.4e+132], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.1 \cdot 10^{+232}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{+131}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.3 \cdot 10^{-80}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{+51}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.4 \cdot 10^{+132}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -3.09999999999999983e232 or -1.5000000000000001e131 < b < -3.3e-80 or 5.3999999999999999e132 < b Initial program 70.3%
Taylor expanded in b around inf 67.4%
*-commutative67.4%
Simplified67.4%
if -3.09999999999999983e232 < b < -1.5000000000000001e131 or 5.7999999999999997e51 < b < 4.0000000000000002e96Initial program 73.6%
Taylor expanded in y around 0 70.8%
Taylor expanded in x around inf 65.0%
+-commutative65.0%
mul-1-neg65.0%
unsub-neg65.0%
associate-/l*62.2%
Simplified62.2%
Taylor expanded in y around 0 59.4%
Simplified53.1%
Taylor expanded in i around inf 73.7%
sub-neg73.7%
neg-mul-173.7%
mul-1-neg73.7%
remove-double-neg73.7%
+-commutative73.7%
unsub-neg73.7%
*-commutative73.7%
Simplified73.7%
if -3.3e-80 < b < 5.7999999999999997e51Initial program 78.9%
Taylor expanded in t around inf 55.9%
+-commutative55.9%
mul-1-neg55.9%
unsub-neg55.9%
*-commutative55.9%
*-commutative55.9%
Simplified55.9%
if 4.0000000000000002e96 < b < 5.3999999999999999e132Initial program 70.0%
Taylor expanded in c around inf 80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
Final simplification63.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -1.25e+52)
(* c (- (* t j) (* z b)))
(if (<= c -61.0)
(* t (- (* c j) (* x a)))
(if (<= c -6.5e-147)
(* y (- (* x z) (* i j)))
(if (<= c 8.2e-66)
(* a (- (* b i) (* x t)))
(if (<= c 2.2e+31)
(* i (- (* a b) (* y j)))
(* c (* b (- (* j (/ t b)) z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.25e+52) {
tmp = c * ((t * j) - (z * b));
} else if (c <= -61.0) {
tmp = t * ((c * j) - (x * a));
} else if (c <= -6.5e-147) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 8.2e-66) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 2.2e+31) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = c * (b * ((j * (t / b)) - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-1.25d+52)) then
tmp = c * ((t * j) - (z * b))
else if (c <= (-61.0d0)) then
tmp = t * ((c * j) - (x * a))
else if (c <= (-6.5d-147)) then
tmp = y * ((x * z) - (i * j))
else if (c <= 8.2d-66) then
tmp = a * ((b * i) - (x * t))
else if (c <= 2.2d+31) then
tmp = i * ((a * b) - (y * j))
else
tmp = c * (b * ((j * (t / b)) - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.25e+52) {
tmp = c * ((t * j) - (z * b));
} else if (c <= -61.0) {
tmp = t * ((c * j) - (x * a));
} else if (c <= -6.5e-147) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 8.2e-66) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 2.2e+31) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = c * (b * ((j * (t / b)) - z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -1.25e+52: tmp = c * ((t * j) - (z * b)) elif c <= -61.0: tmp = t * ((c * j) - (x * a)) elif c <= -6.5e-147: tmp = y * ((x * z) - (i * j)) elif c <= 8.2e-66: tmp = a * ((b * i) - (x * t)) elif c <= 2.2e+31: tmp = i * ((a * b) - (y * j)) else: tmp = c * (b * ((j * (t / b)) - z)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.25e+52) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (c <= -61.0) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (c <= -6.5e-147) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 8.2e-66) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (c <= 2.2e+31) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = Float64(c * Float64(b * Float64(Float64(j * Float64(t / b)) - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -1.25e+52) tmp = c * ((t * j) - (z * b)); elseif (c <= -61.0) tmp = t * ((c * j) - (x * a)); elseif (c <= -6.5e-147) tmp = y * ((x * z) - (i * j)); elseif (c <= 8.2e-66) tmp = a * ((b * i) - (x * t)); elseif (c <= 2.2e+31) tmp = i * ((a * b) - (y * j)); else tmp = c * (b * ((j * (t / b)) - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.25e+52], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -61.0], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -6.5e-147], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8.2e-66], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.2e+31], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(b * N[(N[(j * N[(t / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.25 \cdot 10^{+52}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;c \leq -61:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;c \leq -6.5 \cdot 10^{-147}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 8.2 \cdot 10^{-66}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq 2.2 \cdot 10^{+31}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(b \cdot \left(j \cdot \frac{t}{b} - z\right)\right)\\
\end{array}
\end{array}
if c < -1.25e52Initial program 63.0%
Taylor expanded in c around inf 65.9%
*-commutative65.9%
*-commutative65.9%
Simplified65.9%
if -1.25e52 < c < -61Initial program 78.3%
Taylor expanded in t around inf 66.1%
+-commutative66.1%
mul-1-neg66.1%
unsub-neg66.1%
*-commutative66.1%
*-commutative66.1%
Simplified66.1%
if -61 < c < -6.49999999999999967e-147Initial program 79.6%
Taylor expanded in y around 0 82.8%
Taylor expanded in y around inf 70.6%
+-commutative70.6%
mul-1-neg70.6%
unsub-neg70.6%
*-commutative70.6%
Simplified70.6%
if -6.49999999999999967e-147 < c < 8.19999999999999996e-66Initial program 77.4%
Taylor expanded in a around inf 59.8%
distribute-lft-out--59.8%
*-commutative59.8%
*-commutative59.8%
Simplified59.8%
if 8.19999999999999996e-66 < c < 2.2000000000000001e31Initial program 87.8%
Taylor expanded in y around 0 71.6%
Taylor expanded in x around inf 75.8%
+-commutative75.8%
mul-1-neg75.8%
unsub-neg75.8%
associate-/l*75.8%
Simplified75.8%
Taylor expanded in y around 0 64.0%
Simplified71.4%
Taylor expanded in i around inf 70.2%
sub-neg70.2%
neg-mul-170.2%
mul-1-neg70.2%
remove-double-neg70.2%
+-commutative70.2%
unsub-neg70.2%
*-commutative70.2%
Simplified70.2%
if 2.2000000000000001e31 < c Initial program 71.1%
Taylor expanded in c around inf 66.8%
*-commutative66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in b around inf 66.8%
associate-/l*68.6%
Simplified68.6%
Final simplification65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))))
(if (<= c -2e+53)
t_1
(if (<= c -57.0)
(* t (- (* c j) (* x a)))
(if (<= c -1.66e-146)
(* y (- (* x z) (* i j)))
(if (<= c 2.9e-65)
(* a (- (* b i) (* x t)))
(if (<= c 3.4e+32) (* i (- (* a 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -2e+53) {
tmp = t_1;
} else if (c <= -57.0) {
tmp = t * ((c * j) - (x * a));
} else if (c <= -1.66e-146) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 2.9e-65) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 3.4e+32) {
tmp = i * ((a * 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 = c * ((t * j) - (z * b))
if (c <= (-2d+53)) then
tmp = t_1
else if (c <= (-57.0d0)) then
tmp = t * ((c * j) - (x * a))
else if (c <= (-1.66d-146)) then
tmp = y * ((x * z) - (i * j))
else if (c <= 2.9d-65) then
tmp = a * ((b * i) - (x * t))
else if (c <= 3.4d+32) then
tmp = i * ((a * 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -2e+53) {
tmp = t_1;
} else if (c <= -57.0) {
tmp = t * ((c * j) - (x * a));
} else if (c <= -1.66e-146) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 2.9e-65) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 3.4e+32) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) tmp = 0 if c <= -2e+53: tmp = t_1 elif c <= -57.0: tmp = t * ((c * j) - (x * a)) elif c <= -1.66e-146: tmp = y * ((x * z) - (i * j)) elif c <= 2.9e-65: tmp = a * ((b * i) - (x * t)) elif c <= 3.4e+32: tmp = i * ((a * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -2e+53) tmp = t_1; elseif (c <= -57.0) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (c <= -1.66e-146) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 2.9e-65) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (c <= 3.4e+32) tmp = Float64(i * Float64(Float64(a * 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 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -2e+53) tmp = t_1; elseif (c <= -57.0) tmp = t * ((c * j) - (x * a)); elseif (c <= -1.66e-146) tmp = y * ((x * z) - (i * j)); elseif (c <= 2.9e-65) tmp = a * ((b * i) - (x * t)); elseif (c <= 3.4e+32) tmp = i * ((a * 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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2e+53], t$95$1, If[LessEqual[c, -57.0], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.66e-146], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.9e-65], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.4e+32], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2 \cdot 10^{+53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -57:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;c \leq -1.66 \cdot 10^{-146}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 2.9 \cdot 10^{-65}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq 3.4 \cdot 10^{+32}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -2e53 or 3.39999999999999979e32 < c Initial program 67.3%
Taylor expanded in c around inf 66.4%
*-commutative66.4%
*-commutative66.4%
Simplified66.4%
if -2e53 < c < -57Initial program 78.3%
Taylor expanded in t around inf 66.1%
+-commutative66.1%
mul-1-neg66.1%
unsub-neg66.1%
*-commutative66.1%
*-commutative66.1%
Simplified66.1%
if -57 < c < -1.66e-146Initial program 79.6%
Taylor expanded in y around 0 82.8%
Taylor expanded in y around inf 70.6%
+-commutative70.6%
mul-1-neg70.6%
unsub-neg70.6%
*-commutative70.6%
Simplified70.6%
if -1.66e-146 < c < 2.8999999999999998e-65Initial program 77.4%
Taylor expanded in a around inf 59.8%
distribute-lft-out--59.8%
*-commutative59.8%
*-commutative59.8%
Simplified59.8%
if 2.8999999999999998e-65 < c < 3.39999999999999979e32Initial program 87.8%
Taylor expanded in y around 0 71.6%
Taylor expanded in x around inf 75.8%
+-commutative75.8%
mul-1-neg75.8%
unsub-neg75.8%
associate-/l*75.8%
Simplified75.8%
Taylor expanded in y around 0 64.0%
Simplified71.4%
Taylor expanded in i around inf 70.2%
sub-neg70.2%
neg-mul-170.2%
mul-1-neg70.2%
remove-double-neg70.2%
+-commutative70.2%
unsub-neg70.2%
*-commutative70.2%
Simplified70.2%
Final simplification64.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* c j))))
(if (<= c -1.9e+137)
t_1
(if (<= c -3.3e-155)
(* z (* x y))
(if (<= c 4.8e+69)
(* b (* a i))
(if (or (<= c 6.2e+209) (not (<= c 7.2e+267)))
(* c (* z (- b)))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (c <= -1.9e+137) {
tmp = t_1;
} else if (c <= -3.3e-155) {
tmp = z * (x * y);
} else if (c <= 4.8e+69) {
tmp = b * (a * i);
} else if ((c <= 6.2e+209) || !(c <= 7.2e+267)) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (c * j)
if (c <= (-1.9d+137)) then
tmp = t_1
else if (c <= (-3.3d-155)) then
tmp = z * (x * y)
else if (c <= 4.8d+69) then
tmp = b * (a * i)
else if ((c <= 6.2d+209) .or. (.not. (c <= 7.2d+267))) then
tmp = c * (z * -b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (c <= -1.9e+137) {
tmp = t_1;
} else if (c <= -3.3e-155) {
tmp = z * (x * y);
} else if (c <= 4.8e+69) {
tmp = b * (a * i);
} else if ((c <= 6.2e+209) || !(c <= 7.2e+267)) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (c * j) tmp = 0 if c <= -1.9e+137: tmp = t_1 elif c <= -3.3e-155: tmp = z * (x * y) elif c <= 4.8e+69: tmp = b * (a * i) elif (c <= 6.2e+209) or not (c <= 7.2e+267): tmp = c * (z * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(c * j)) tmp = 0.0 if (c <= -1.9e+137) tmp = t_1; elseif (c <= -3.3e-155) tmp = Float64(z * Float64(x * y)); elseif (c <= 4.8e+69) tmp = Float64(b * Float64(a * i)); elseif ((c <= 6.2e+209) || !(c <= 7.2e+267)) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (c * j); tmp = 0.0; if (c <= -1.9e+137) tmp = t_1; elseif (c <= -3.3e-155) tmp = z * (x * y); elseif (c <= 4.8e+69) tmp = b * (a * i); elseif ((c <= 6.2e+209) || ~((c <= 7.2e+267))) tmp = c * (z * -b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.9e+137], t$95$1, If[LessEqual[c, -3.3e-155], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.8e+69], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 6.2e+209], N[Not[LessEqual[c, 7.2e+267]], $MachinePrecision]], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -1.9 \cdot 10^{+137}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -3.3 \cdot 10^{-155}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 4.8 \cdot 10^{+69}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;c \leq 6.2 \cdot 10^{+209} \lor \neg \left(c \leq 7.2 \cdot 10^{+267}\right):\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.89999999999999981e137 or 6.2000000000000002e209 < c < 7.19999999999999999e267Initial program 61.4%
Taylor expanded in c around inf 73.1%
*-commutative73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in t around inf 53.9%
associate-*r*57.9%
*-commutative57.9%
Simplified57.9%
if -1.89999999999999981e137 < c < -3.29999999999999986e-155Initial program 80.1%
Taylor expanded in z around inf 46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in x around inf 32.4%
*-commutative32.4%
Simplified32.4%
if -3.29999999999999986e-155 < c < 4.8000000000000003e69Initial program 79.7%
Taylor expanded in b around inf 39.0%
*-commutative39.0%
Simplified39.0%
Taylor expanded in a around inf 34.9%
*-commutative34.9%
Simplified34.9%
if 4.8000000000000003e69 < c < 6.2000000000000002e209 or 7.19999999999999999e267 < c Initial program 66.9%
Taylor expanded in c around inf 63.0%
*-commutative63.0%
*-commutative63.0%
Simplified63.0%
Taylor expanded in t around 0 55.0%
mul-1-neg55.0%
*-commutative55.0%
distribute-rgt-neg-in55.0%
Simplified55.0%
Final simplification41.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* y j) (- i))) (t_2 (* z (* x y))))
(if (<= x -8.4e-26)
t_2
(if (<= x 3.6e-265)
(* c (* t j))
(if (<= x 4.7e-170)
t_1
(if (<= x 6.9e-59) (* b (* a i)) (if (<= x 3.9e+88) 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 = (y * j) * -i;
double t_2 = z * (x * y);
double tmp;
if (x <= -8.4e-26) {
tmp = t_2;
} else if (x <= 3.6e-265) {
tmp = c * (t * j);
} else if (x <= 4.7e-170) {
tmp = t_1;
} else if (x <= 6.9e-59) {
tmp = b * (a * i);
} else if (x <= 3.9e+88) {
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 = (y * j) * -i
t_2 = z * (x * y)
if (x <= (-8.4d-26)) then
tmp = t_2
else if (x <= 3.6d-265) then
tmp = c * (t * j)
else if (x <= 4.7d-170) then
tmp = t_1
else if (x <= 6.9d-59) then
tmp = b * (a * i)
else if (x <= 3.9d+88) 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 = (y * j) * -i;
double t_2 = z * (x * y);
double tmp;
if (x <= -8.4e-26) {
tmp = t_2;
} else if (x <= 3.6e-265) {
tmp = c * (t * j);
} else if (x <= 4.7e-170) {
tmp = t_1;
} else if (x <= 6.9e-59) {
tmp = b * (a * i);
} else if (x <= 3.9e+88) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * j) * -i t_2 = z * (x * y) tmp = 0 if x <= -8.4e-26: tmp = t_2 elif x <= 3.6e-265: tmp = c * (t * j) elif x <= 4.7e-170: tmp = t_1 elif x <= 6.9e-59: tmp = b * (a * i) elif x <= 3.9e+88: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * j) * Float64(-i)) t_2 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -8.4e-26) tmp = t_2; elseif (x <= 3.6e-265) tmp = Float64(c * Float64(t * j)); elseif (x <= 4.7e-170) tmp = t_1; elseif (x <= 6.9e-59) tmp = Float64(b * Float64(a * i)); elseif (x <= 3.9e+88) 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 = (y * j) * -i; t_2 = z * (x * y); tmp = 0.0; if (x <= -8.4e-26) tmp = t_2; elseif (x <= 3.6e-265) tmp = c * (t * j); elseif (x <= 4.7e-170) tmp = t_1; elseif (x <= 6.9e-59) tmp = b * (a * i); elseif (x <= 3.9e+88) 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[(y * j), $MachinePrecision] * (-i)), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8.4e-26], t$95$2, If[LessEqual[x, 3.6e-265], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.7e-170], t$95$1, If[LessEqual[x, 6.9e-59], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.9e+88], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y \cdot j\right) \cdot \left(-i\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -8.4 \cdot 10^{-26}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-265}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 4.7 \cdot 10^{-170}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 6.9 \cdot 10^{-59}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq 3.9 \cdot 10^{+88}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -8.40000000000000032e-26 or 3.9000000000000001e88 < x Initial program 75.2%
Taylor expanded in z around inf 54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in x around inf 48.2%
*-commutative48.2%
Simplified48.2%
if -8.40000000000000032e-26 < x < 3.6000000000000002e-265Initial program 72.2%
Taylor expanded in b around 0 48.7%
Taylor expanded in c around inf 35.3%
if 3.6000000000000002e-265 < x < 4.7000000000000002e-170 or 6.89999999999999982e-59 < x < 3.9000000000000001e88Initial program 76.4%
Taylor expanded in y around 0 79.0%
Taylor expanded in x around inf 74.6%
+-commutative74.6%
mul-1-neg74.6%
unsub-neg74.6%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in i around inf 57.5%
sub-neg57.5%
associate-*r*57.5%
mul-1-neg57.5%
neg-mul-157.5%
remove-double-neg57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in j around inf 44.4%
neg-mul-144.4%
*-commutative44.4%
Simplified44.4%
if 4.7000000000000002e-170 < x < 6.89999999999999982e-59Initial program 73.7%
Taylor expanded in b around inf 54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in a around inf 44.5%
*-commutative44.5%
Simplified44.5%
Final simplification43.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* z (* x y))))
(if (<= x -8.8e-28)
t_2
(if (<= x 4.8e-118)
t_1
(if (<= x 1.3e+40)
(* a (* b i))
(if (<= x 1.55e+72) t_1 (if (<= x 3.1e+140) (* b (* a i)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = z * (x * y);
double tmp;
if (x <= -8.8e-28) {
tmp = t_2;
} else if (x <= 4.8e-118) {
tmp = t_1;
} else if (x <= 1.3e+40) {
tmp = a * (b * i);
} else if (x <= 1.55e+72) {
tmp = t_1;
} else if (x <= 3.1e+140) {
tmp = b * (a * i);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (t * j)
t_2 = z * (x * y)
if (x <= (-8.8d-28)) then
tmp = t_2
else if (x <= 4.8d-118) then
tmp = t_1
else if (x <= 1.3d+40) then
tmp = a * (b * i)
else if (x <= 1.55d+72) then
tmp = t_1
else if (x <= 3.1d+140) then
tmp = b * (a * i)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = z * (x * y);
double tmp;
if (x <= -8.8e-28) {
tmp = t_2;
} else if (x <= 4.8e-118) {
tmp = t_1;
} else if (x <= 1.3e+40) {
tmp = a * (b * i);
} else if (x <= 1.55e+72) {
tmp = t_1;
} else if (x <= 3.1e+140) {
tmp = b * (a * i);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = z * (x * y) tmp = 0 if x <= -8.8e-28: tmp = t_2 elif x <= 4.8e-118: tmp = t_1 elif x <= 1.3e+40: tmp = a * (b * i) elif x <= 1.55e+72: tmp = t_1 elif x <= 3.1e+140: tmp = b * (a * i) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -8.8e-28) tmp = t_2; elseif (x <= 4.8e-118) tmp = t_1; elseif (x <= 1.3e+40) tmp = Float64(a * Float64(b * i)); elseif (x <= 1.55e+72) tmp = t_1; elseif (x <= 3.1e+140) tmp = Float64(b * Float64(a * i)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = z * (x * y); tmp = 0.0; if (x <= -8.8e-28) tmp = t_2; elseif (x <= 4.8e-118) tmp = t_1; elseif (x <= 1.3e+40) tmp = a * (b * i); elseif (x <= 1.55e+72) tmp = t_1; elseif (x <= 3.1e+140) tmp = b * (a * i); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8.8e-28], t$95$2, If[LessEqual[x, 4.8e-118], t$95$1, If[LessEqual[x, 1.3e+40], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.55e+72], t$95$1, If[LessEqual[x, 3.1e+140], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -8.8 \cdot 10^{-28}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{+40}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{+140}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -8.79999999999999984e-28 or 3.1e140 < x Initial program 76.9%
Taylor expanded in z around inf 54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in x around inf 51.1%
*-commutative51.1%
Simplified51.1%
if -8.79999999999999984e-28 < x < 4.8000000000000003e-118 or 1.3e40 < x < 1.54999999999999994e72Initial program 71.3%
Taylor expanded in b around 0 52.9%
Taylor expanded in c around inf 35.1%
if 4.8000000000000003e-118 < x < 1.3e40Initial program 83.2%
Taylor expanded in b around inf 47.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in a around inf 38.9%
*-commutative38.9%
Simplified38.9%
if 1.54999999999999994e72 < x < 3.1e140Initial program 66.6%
Taylor expanded in b around inf 56.4%
*-commutative56.4%
Simplified56.4%
Taylor expanded in a around inf 29.3%
*-commutative29.3%
Simplified29.3%
Final simplification40.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= i -3.3e+103)
(and (not (<= i -2.7e+51)) (or (<= i -1.9e-33) (not (<= i 3e+75)))))
(* i (- (* a b) (* y j)))
(* c (- (* t j) (* z b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -3.3e+103) || (!(i <= -2.7e+51) && ((i <= -1.9e-33) || !(i <= 3e+75)))) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-3.3d+103)) .or. (.not. (i <= (-2.7d+51))) .and. (i <= (-1.9d-33)) .or. (.not. (i <= 3d+75))) then
tmp = i * ((a * b) - (y * j))
else
tmp = c * ((t * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -3.3e+103) || (!(i <= -2.7e+51) && ((i <= -1.9e-33) || !(i <= 3e+75)))) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -3.3e+103) or (not (i <= -2.7e+51) and ((i <= -1.9e-33) or not (i <= 3e+75))): tmp = i * ((a * b) - (y * j)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -3.3e+103) || (!(i <= -2.7e+51) && ((i <= -1.9e-33) || !(i <= 3e+75)))) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -3.3e+103) || (~((i <= -2.7e+51)) && ((i <= -1.9e-33) || ~((i <= 3e+75))))) tmp = i * ((a * b) - (y * j)); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -3.3e+103], And[N[Not[LessEqual[i, -2.7e+51]], $MachinePrecision], Or[LessEqual[i, -1.9e-33], N[Not[LessEqual[i, 3e+75]], $MachinePrecision]]]], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.3 \cdot 10^{+103} \lor \neg \left(i \leq -2.7 \cdot 10^{+51}\right) \land \left(i \leq -1.9 \cdot 10^{-33} \lor \neg \left(i \leq 3 \cdot 10^{+75}\right)\right):\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if i < -3.30000000000000009e103 or -2.69999999999999992e51 < i < -1.89999999999999997e-33 or 3e75 < i Initial program 69.9%
Taylor expanded in y around 0 67.2%
Taylor expanded in x around inf 62.8%
+-commutative62.8%
mul-1-neg62.8%
unsub-neg62.8%
associate-/l*62.8%
Simplified62.8%
Taylor expanded in y around 0 61.3%
Simplified64.7%
Taylor expanded in i around inf 64.7%
sub-neg64.7%
neg-mul-164.7%
mul-1-neg64.7%
remove-double-neg64.7%
+-commutative64.7%
unsub-neg64.7%
*-commutative64.7%
Simplified64.7%
if -3.30000000000000009e103 < i < -2.69999999999999992e51 or -1.89999999999999997e-33 < i < 3e75Initial program 78.2%
Taylor expanded in c around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
Final simplification56.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2.45e-101)
(* c (- (* t j) (* z b)))
(if (<= z -8.2e-269)
(* i (- (* a b) (* y j)))
(if (<= z 1.05e-21)
(* j (- (* t c) (* y i)))
(if (<= z 1.5e+186) (* b (- (* a i) (* z c))) (* z (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.45e-101) {
tmp = c * ((t * j) - (z * b));
} else if (z <= -8.2e-269) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 1.05e-21) {
tmp = j * ((t * c) - (y * i));
} else if (z <= 1.5e+186) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-2.45d-101)) then
tmp = c * ((t * j) - (z * b))
else if (z <= (-8.2d-269)) then
tmp = i * ((a * b) - (y * j))
else if (z <= 1.05d-21) then
tmp = j * ((t * c) - (y * i))
else if (z <= 1.5d+186) then
tmp = b * ((a * i) - (z * c))
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.45e-101) {
tmp = c * ((t * j) - (z * b));
} else if (z <= -8.2e-269) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 1.05e-21) {
tmp = j * ((t * c) - (y * i));
} else if (z <= 1.5e+186) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.45e-101: tmp = c * ((t * j) - (z * b)) elif z <= -8.2e-269: tmp = i * ((a * b) - (y * j)) elif z <= 1.05e-21: tmp = j * ((t * c) - (y * i)) elif z <= 1.5e+186: tmp = b * ((a * i) - (z * c)) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.45e-101) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (z <= -8.2e-269) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 1.05e-21) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (z <= 1.5e+186) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2.45e-101) tmp = c * ((t * j) - (z * b)); elseif (z <= -8.2e-269) tmp = i * ((a * b) - (y * j)); elseif (z <= 1.05e-21) tmp = j * ((t * c) - (y * i)); elseif (z <= 1.5e+186) tmp = b * ((a * i) - (z * c)); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.45e-101], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8.2e-269], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e-21], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e+186], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.45 \cdot 10^{-101}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;z \leq -8.2 \cdot 10^{-269}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-21}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+186}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if z < -2.45e-101Initial program 70.0%
Taylor expanded in c around inf 51.0%
*-commutative51.0%
*-commutative51.0%
Simplified51.0%
if -2.45e-101 < z < -8.2000000000000006e-269Initial program 80.6%
Taylor expanded in y around 0 87.0%
Taylor expanded in x around inf 80.7%
+-commutative80.7%
mul-1-neg80.7%
unsub-neg80.7%
associate-/l*80.7%
Simplified80.7%
Taylor expanded in y around 0 80.7%
Simplified76.1%
Taylor expanded in i around inf 65.2%
sub-neg65.2%
neg-mul-165.2%
mul-1-neg65.2%
remove-double-neg65.2%
+-commutative65.2%
unsub-neg65.2%
*-commutative65.2%
Simplified65.2%
if -8.2000000000000006e-269 < z < 1.05000000000000006e-21Initial program 85.4%
Taylor expanded in j around inf 56.7%
if 1.05000000000000006e-21 < z < 1.49999999999999991e186Initial program 76.8%
Taylor expanded in b around inf 61.5%
*-commutative61.5%
Simplified61.5%
if 1.49999999999999991e186 < z Initial program 52.6%
Taylor expanded in z around inf 72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in x around inf 54.9%
*-commutative54.9%
Simplified54.9%
Final simplification56.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -1.55e-65) (not (<= c 2.4e+38))) (* c (- (* t j) (* z b))) (* b (- (* a i) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.55e-65) || !(c <= 2.4e+38)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-1.55d-65)) .or. (.not. (c <= 2.4d+38))) then
tmp = c * ((t * j) - (z * b))
else
tmp = b * ((a * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.55e-65) || !(c <= 2.4e+38)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -1.55e-65) or not (c <= 2.4e+38): tmp = c * ((t * j) - (z * b)) else: tmp = b * ((a * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -1.55e-65) || !(c <= 2.4e+38)) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -1.55e-65) || ~((c <= 2.4e+38))) tmp = c * ((t * j) - (z * b)); else tmp = b * ((a * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1.55e-65], N[Not[LessEqual[c, 2.4e+38]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.55 \cdot 10^{-65} \lor \neg \left(c \leq 2.4 \cdot 10^{+38}\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if c < -1.55000000000000008e-65 or 2.40000000000000017e38 < c Initial program 71.3%
Taylor expanded in c around inf 60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
if -1.55000000000000008e-65 < c < 2.40000000000000017e38Initial program 77.8%
Taylor expanded in b around inf 38.9%
*-commutative38.9%
Simplified38.9%
Final simplification49.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -2.5e-64) (not (<= c 3.2e+41))) (* c (* t j)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.5e-64) || !(c <= 3.2e+41)) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-2.5d-64)) .or. (.not. (c <= 3.2d+41))) then
tmp = c * (t * j)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.5e-64) || !(c <= 3.2e+41)) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.5e-64) or not (c <= 3.2e+41): tmp = c * (t * j) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.5e-64) || !(c <= 3.2e+41)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -2.5e-64) || ~((c <= 3.2e+41))) tmp = c * (t * j); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.5e-64], N[Not[LessEqual[c, 3.2e+41]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.5 \cdot 10^{-64} \lor \neg \left(c \leq 3.2 \cdot 10^{+41}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if c < -2.50000000000000017e-64 or 3.2000000000000001e41 < c Initial program 71.3%
Taylor expanded in b around 0 64.7%
Taylor expanded in c around inf 33.3%
if -2.50000000000000017e-64 < c < 3.2000000000000001e41Initial program 77.8%
Taylor expanded in b around inf 38.9%
*-commutative38.9%
Simplified38.9%
Taylor expanded in a around inf 32.9%
*-commutative32.9%
Simplified32.9%
Final simplification33.1%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * 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 = a * (b * 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 a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 74.6%
Taylor expanded in b around inf 39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in a around inf 21.1%
*-commutative21.1%
Simplified21.1%
Final simplification21.1%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * 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 = b * (a * 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 b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 74.6%
Taylor expanded in b around inf 39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in a around inf 22.1%
*-commutative22.1%
Simplified22.1%
Final simplification22.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) 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[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024096
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))