
(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 28 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 (- (* y z) (* t a)))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (- (* t c) (* y i))))
(if (<= (+ (* j t_3) (+ (* x t_1) t_2)) INFINITY)
(fma x t_1 (fma j t_3 t_2))
(+ (* y (- (* x z) (* i j))) (* t (- (* c j) (* x a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * z) - (t * a);
double t_2 = b * ((a * i) - (z * c));
double t_3 = (t * c) - (y * i);
double tmp;
if (((j * t_3) + ((x * t_1) + t_2)) <= ((double) INFINITY)) {
tmp = fma(x, t_1, fma(j, t_3, t_2));
} else {
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * z) - Float64(t * a)) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(j * t_3) + Float64(Float64(x * t_1) + t_2)) <= Inf) tmp = fma(x, t_1, fma(j, t_3, t_2)); else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(t * Float64(Float64(c * j) - Float64(x * a)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(j * t$95$3), $MachinePrecision] + N[(N[(x * t$95$1), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(x * t$95$1 + N[(j * t$95$3 + t$95$2), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot z - t \cdot a\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := t \cdot c - y \cdot i\\
\mathbf{if}\;j \cdot t_3 + \left(x \cdot t_1 + t_2\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(x, t_1, \mathsf{fma}\left(j, t_3, t_2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t \cdot \left(c \cdot j - x \cdot a\right)\\
\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 91.1%
sub-neg91.1%
associate-+l+91.1%
fma-def91.1%
+-commutative91.1%
fma-def91.1%
*-commutative91.1%
*-commutative91.1%
distribute-rgt-neg-in91.1%
sub-neg91.1%
+-commutative91.1%
distribute-neg-in91.1%
unsub-neg91.1%
remove-double-neg91.1%
*-commutative91.1%
*-commutative91.1%
Simplified91.1%
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%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in b around 0 40.7%
Taylor expanded in t around -inf 62.9%
+-commutative62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
mul-1-neg62.9%
distribute-rgt-neg-in62.9%
mul-1-neg62.9%
distribute-lft-in68.5%
mul-1-neg68.5%
unsub-neg68.5%
*-commutative68.5%
mul-1-neg68.5%
unsub-neg68.5%
*-commutative68.5%
Simplified68.5%
Final simplification86.3%
(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))) (* b (- (* a i) (* z c)))))))
(if (<= t_1 INFINITY)
t_1
(+ (* y (- (* x z) (* i j))) (* t (- (* c j) (* x a)))))))
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))) + (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)));
}
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 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)));
}
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))) + (b * ((a * i) - (z * c)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a))) 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(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(t * Float64(Float64(c * j) - Float64(x * a)))); 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))) + (b * ((a * i) - (z * c)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a))); 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[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t \cdot \left(c \cdot j - x \cdot a\right)\\
\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 91.1%
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%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in b around 0 40.7%
Taylor expanded in t around -inf 62.9%
+-commutative62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
mul-1-neg62.9%
distribute-rgt-neg-in62.9%
mul-1-neg62.9%
distribute-lft-in68.5%
mul-1-neg68.5%
unsub-neg68.5%
*-commutative68.5%
mul-1-neg68.5%
unsub-neg68.5%
*-commutative68.5%
Simplified68.5%
Final simplification86.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (+ t_1 (* b (- (* a i) (* z c)))))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= x -1.75e+180)
(- t_3 (* c (* z b)))
(if (<= x -1.46e+85)
(+ (* y (- (* x z) (* i j))) (* t (- (* c j) (* x a))))
(if (<= x -1600000000000.0)
(+ (* a (- (* b i) (* x t))) (* z (- (* x y) (* b c))))
(if (<= x 4.6e-262)
t_2
(if (<= x 1.45e-221)
(+ t_3 t_1)
(if (<= x 1e-47)
t_2
(+ t_3 (- (* a (* b i)) (* y (* i j))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t_1 + (b * ((a * i) - (z * c)));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.75e+180) {
tmp = t_3 - (c * (z * b));
} else if (x <= -1.46e+85) {
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)));
} else if (x <= -1600000000000.0) {
tmp = (a * ((b * i) - (x * t))) + (z * ((x * y) - (b * c)));
} else if (x <= 4.6e-262) {
tmp = t_2;
} else if (x <= 1.45e-221) {
tmp = t_3 + t_1;
} else if (x <= 1e-47) {
tmp = t_2;
} else {
tmp = t_3 + ((a * (b * i)) - (y * (i * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = t_1 + (b * ((a * i) - (z * c)))
t_3 = x * ((y * z) - (t * a))
if (x <= (-1.75d+180)) then
tmp = t_3 - (c * (z * b))
else if (x <= (-1.46d+85)) then
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)))
else if (x <= (-1600000000000.0d0)) then
tmp = (a * ((b * i) - (x * t))) + (z * ((x * y) - (b * c)))
else if (x <= 4.6d-262) then
tmp = t_2
else if (x <= 1.45d-221) then
tmp = t_3 + t_1
else if (x <= 1d-47) then
tmp = t_2
else
tmp = t_3 + ((a * (b * i)) - (y * (i * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t_1 + (b * ((a * i) - (z * c)));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.75e+180) {
tmp = t_3 - (c * (z * b));
} else if (x <= -1.46e+85) {
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)));
} else if (x <= -1600000000000.0) {
tmp = (a * ((b * i) - (x * t))) + (z * ((x * y) - (b * c)));
} else if (x <= 4.6e-262) {
tmp = t_2;
} else if (x <= 1.45e-221) {
tmp = t_3 + t_1;
} else if (x <= 1e-47) {
tmp = t_2;
} else {
tmp = t_3 + ((a * (b * i)) - (y * (i * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t_1 + (b * ((a * i) - (z * c))) t_3 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.75e+180: tmp = t_3 - (c * (z * b)) elif x <= -1.46e+85: tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a))) elif x <= -1600000000000.0: tmp = (a * ((b * i) - (x * t))) + (z * ((x * y) - (b * c))) elif x <= 4.6e-262: tmp = t_2 elif x <= 1.45e-221: tmp = t_3 + t_1 elif x <= 1e-47: tmp = t_2 else: tmp = t_3 + ((a * (b * i)) - (y * (i * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.75e+180) tmp = Float64(t_3 - Float64(c * Float64(z * b))); elseif (x <= -1.46e+85) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(t * Float64(Float64(c * j) - Float64(x * a)))); elseif (x <= -1600000000000.0) tmp = Float64(Float64(a * Float64(Float64(b * i) - Float64(x * t))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); elseif (x <= 4.6e-262) tmp = t_2; elseif (x <= 1.45e-221) tmp = Float64(t_3 + t_1); elseif (x <= 1e-47) tmp = t_2; else tmp = Float64(t_3 + Float64(Float64(a * Float64(b * i)) - Float64(y * Float64(i * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = t_1 + (b * ((a * i) - (z * c))); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -1.75e+180) tmp = t_3 - (c * (z * b)); elseif (x <= -1.46e+85) tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a))); elseif (x <= -1600000000000.0) tmp = (a * ((b * i) - (x * t))) + (z * ((x * y) - (b * c))); elseif (x <= 4.6e-262) tmp = t_2; elseif (x <= 1.45e-221) tmp = t_3 + t_1; elseif (x <= 1e-47) tmp = t_2; else tmp = t_3 + ((a * (b * i)) - (y * (i * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.75e+180], N[(t$95$3 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.46e+85], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1600000000000.0], N[(N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e-262], t$95$2, If[LessEqual[x, 1.45e-221], N[(t$95$3 + t$95$1), $MachinePrecision], If[LessEqual[x, 1e-47], t$95$2, N[(t$95$3 + N[(N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.75 \cdot 10^{+180}:\\
\;\;\;\;t_3 - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;x \leq -1.46 \cdot 10^{+85}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;x \leq -1600000000000:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-262}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{-221}:\\
\;\;\;\;t_3 + t_1\\
\mathbf{elif}\;x \leq 10^{-47}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3 + \left(a \cdot \left(b \cdot i\right) - y \cdot \left(i \cdot j\right)\right)\\
\end{array}
\end{array}
if x < -1.7499999999999999e180Initial program 67.7%
cancel-sign-sub67.7%
cancel-sign-sub-inv67.7%
*-commutative67.7%
*-commutative67.7%
remove-double-neg67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in i around 0 75.7%
Taylor expanded in j around 0 84.0%
if -1.7499999999999999e180 < x < -1.46e85Initial program 58.5%
cancel-sign-sub58.5%
cancel-sign-sub-inv58.5%
*-commutative58.5%
*-commutative58.5%
remove-double-neg58.5%
*-commutative58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in b around 0 76.3%
Taylor expanded in t around -inf 82.3%
+-commutative82.3%
+-commutative82.3%
mul-1-neg82.3%
unsub-neg82.3%
mul-1-neg82.3%
distribute-rgt-neg-in82.3%
mul-1-neg82.3%
distribute-lft-in82.3%
mul-1-neg82.3%
unsub-neg82.3%
*-commutative82.3%
mul-1-neg82.3%
unsub-neg82.3%
*-commutative82.3%
Simplified82.3%
if -1.46e85 < x < -1.6e12Initial program 71.2%
cancel-sign-sub71.2%
cancel-sign-sub-inv71.2%
*-commutative71.2%
*-commutative71.2%
remove-double-neg71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in z around -inf 71.7%
Simplified78.8%
Taylor expanded in j around 0 86.1%
if -1.6e12 < x < 4.6000000000000002e-262 or 1.44999999999999997e-221 < x < 9.9999999999999997e-48Initial program 71.9%
cancel-sign-sub71.9%
cancel-sign-sub-inv71.9%
*-commutative71.9%
*-commutative71.9%
remove-double-neg71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in x around 0 78.1%
if 4.6000000000000002e-262 < x < 1.44999999999999997e-221Initial program 70.0%
cancel-sign-sub70.0%
cancel-sign-sub-inv70.0%
*-commutative70.0%
*-commutative70.0%
remove-double-neg70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in b around 0 77.2%
if 9.9999999999999997e-48 < x Initial program 76.7%
sub-neg76.7%
associate-+l+76.7%
fma-def77.9%
+-commutative77.9%
fma-def77.9%
sub-neg77.9%
+-commutative77.9%
*-commutative77.9%
distribute-rgt-neg-in77.9%
fma-def77.9%
*-commutative77.9%
distribute-rgt-neg-in77.9%
sub-neg77.9%
distribute-neg-in77.9%
unsub-neg77.9%
Simplified79.1%
Taylor expanded in c around 0 75.6%
Final simplification78.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (+ t_1 t_2))
(t_4 (* x (- (* y z) (* t a))))
(t_5 (+ t_4 t_2)))
(if (<= x -1.02e+180)
(- t_4 (* c (* z b)))
(if (<= x -1.2e+84)
(+ (* y (- (* x z) (* i j))) (* t (- (* c j) (* x a))))
(if (<= x -1100000000000.0)
t_5
(if (<= x 4.6e-262)
t_3
(if (<= x 1.45e-221) (+ t_4 t_1) (if (<= x 2.6e-105) t_3 t_5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = t_1 + t_2;
double t_4 = x * ((y * z) - (t * a));
double t_5 = t_4 + t_2;
double tmp;
if (x <= -1.02e+180) {
tmp = t_4 - (c * (z * b));
} else if (x <= -1.2e+84) {
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)));
} else if (x <= -1100000000000.0) {
tmp = t_5;
} else if (x <= 4.6e-262) {
tmp = t_3;
} else if (x <= 1.45e-221) {
tmp = t_4 + t_1;
} else if (x <= 2.6e-105) {
tmp = t_3;
} else {
tmp = t_5;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
t_3 = t_1 + t_2
t_4 = x * ((y * z) - (t * a))
t_5 = t_4 + t_2
if (x <= (-1.02d+180)) then
tmp = t_4 - (c * (z * b))
else if (x <= (-1.2d+84)) then
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)))
else if (x <= (-1100000000000.0d0)) then
tmp = t_5
else if (x <= 4.6d-262) then
tmp = t_3
else if (x <= 1.45d-221) then
tmp = t_4 + t_1
else if (x <= 2.6d-105) then
tmp = t_3
else
tmp = t_5
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = t_1 + t_2;
double t_4 = x * ((y * z) - (t * a));
double t_5 = t_4 + t_2;
double tmp;
if (x <= -1.02e+180) {
tmp = t_4 - (c * (z * b));
} else if (x <= -1.2e+84) {
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)));
} else if (x <= -1100000000000.0) {
tmp = t_5;
} else if (x <= 4.6e-262) {
tmp = t_3;
} else if (x <= 1.45e-221) {
tmp = t_4 + t_1;
} else if (x <= 2.6e-105) {
tmp = t_3;
} else {
tmp = t_5;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) t_3 = t_1 + t_2 t_4 = x * ((y * z) - (t * a)) t_5 = t_4 + t_2 tmp = 0 if x <= -1.02e+180: tmp = t_4 - (c * (z * b)) elif x <= -1.2e+84: tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a))) elif x <= -1100000000000.0: tmp = t_5 elif x <= 4.6e-262: tmp = t_3 elif x <= 1.45e-221: tmp = t_4 + t_1 elif x <= 2.6e-105: tmp = t_3 else: tmp = t_5 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(t_1 + t_2) t_4 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_5 = Float64(t_4 + t_2) tmp = 0.0 if (x <= -1.02e+180) tmp = Float64(t_4 - Float64(c * Float64(z * b))); elseif (x <= -1.2e+84) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(t * Float64(Float64(c * j) - Float64(x * a)))); elseif (x <= -1100000000000.0) tmp = t_5; elseif (x <= 4.6e-262) tmp = t_3; elseif (x <= 1.45e-221) tmp = Float64(t_4 + t_1); elseif (x <= 2.6e-105) tmp = t_3; else tmp = t_5; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); t_3 = t_1 + t_2; t_4 = x * ((y * z) - (t * a)); t_5 = t_4 + t_2; tmp = 0.0; if (x <= -1.02e+180) tmp = t_4 - (c * (z * b)); elseif (x <= -1.2e+84) tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a))); elseif (x <= -1100000000000.0) tmp = t_5; elseif (x <= 4.6e-262) tmp = t_3; elseif (x <= 1.45e-221) tmp = t_4 + t_1; elseif (x <= 2.6e-105) tmp = t_3; else tmp = t_5; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$1 + t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(t$95$4 + t$95$2), $MachinePrecision]}, If[LessEqual[x, -1.02e+180], N[(t$95$4 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.2e+84], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1100000000000.0], t$95$5, If[LessEqual[x, 4.6e-262], t$95$3, If[LessEqual[x, 1.45e-221], N[(t$95$4 + t$95$1), $MachinePrecision], If[LessEqual[x, 2.6e-105], t$95$3, t$95$5]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := t_1 + t_2\\
t_4 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_5 := t_4 + t_2\\
\mathbf{if}\;x \leq -1.02 \cdot 10^{+180}:\\
\;\;\;\;t_4 - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;x \leq -1.2 \cdot 10^{+84}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;x \leq -1100000000000:\\
\;\;\;\;t_5\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-262}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{-221}:\\
\;\;\;\;t_4 + t_1\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-105}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_5\\
\end{array}
\end{array}
if x < -1.02e180Initial program 67.7%
cancel-sign-sub67.7%
cancel-sign-sub-inv67.7%
*-commutative67.7%
*-commutative67.7%
remove-double-neg67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in i around 0 75.7%
Taylor expanded in j around 0 84.0%
if -1.02e180 < x < -1.2e84Initial program 55.2%
cancel-sign-sub55.2%
cancel-sign-sub-inv55.2%
*-commutative55.2%
*-commutative55.2%
remove-double-neg55.2%
*-commutative55.2%
*-commutative55.2%
Simplified55.2%
Taylor expanded in b around 0 74.6%
Taylor expanded in t around -inf 80.3%
+-commutative80.3%
+-commutative80.3%
mul-1-neg80.3%
unsub-neg80.3%
mul-1-neg80.3%
distribute-rgt-neg-in80.3%
mul-1-neg80.3%
distribute-lft-in80.3%
mul-1-neg80.3%
unsub-neg80.3%
*-commutative80.3%
mul-1-neg80.3%
unsub-neg80.3%
*-commutative80.3%
Simplified80.3%
if -1.2e84 < x < -1.1e12 or 2.5999999999999999e-105 < x Initial program 77.1%
+-commutative77.1%
fma-def77.1%
*-commutative77.1%
*-commutative77.1%
*-commutative77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in j around 0 75.4%
if -1.1e12 < x < 4.6000000000000002e-262 or 1.44999999999999997e-221 < x < 2.5999999999999999e-105Initial program 71.1%
cancel-sign-sub71.1%
cancel-sign-sub-inv71.1%
*-commutative71.1%
*-commutative71.1%
remove-double-neg71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in x around 0 77.7%
if 4.6000000000000002e-262 < x < 1.44999999999999997e-221Initial program 70.0%
cancel-sign-sub70.0%
cancel-sign-sub-inv70.0%
*-commutative70.0%
*-commutative70.0%
remove-double-neg70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in b around 0 77.2%
Final simplification77.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (+ t_1 t_2))
(t_4 (* x (- (* y z) (* t a)))))
(if (<= x -1.9e+178)
(- t_4 (* c (* z b)))
(if (<= x -2.25e+84)
(+ (* y (- (* x z) (* i j))) (* t (- (* c j) (* x a))))
(if (<= x -2020000000000.0)
(+ (* a (- (* b i) (* x t))) (* z (- (* x y) (* b c))))
(if (<= x 4.6e-262)
t_3
(if (<= x 1.45e-221)
(+ t_4 t_1)
(if (<= x 3.3e-105) t_3 (+ t_4 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));
double t_2 = b * ((a * i) - (z * c));
double t_3 = t_1 + t_2;
double t_4 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.9e+178) {
tmp = t_4 - (c * (z * b));
} else if (x <= -2.25e+84) {
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)));
} else if (x <= -2020000000000.0) {
tmp = (a * ((b * i) - (x * t))) + (z * ((x * y) - (b * c)));
} else if (x <= 4.6e-262) {
tmp = t_3;
} else if (x <= 1.45e-221) {
tmp = t_4 + t_1;
} else if (x <= 3.3e-105) {
tmp = t_3;
} else {
tmp = t_4 + 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) :: t_4
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
t_3 = t_1 + t_2
t_4 = x * ((y * z) - (t * a))
if (x <= (-1.9d+178)) then
tmp = t_4 - (c * (z * b))
else if (x <= (-2.25d+84)) then
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)))
else if (x <= (-2020000000000.0d0)) then
tmp = (a * ((b * i) - (x * t))) + (z * ((x * y) - (b * c)))
else if (x <= 4.6d-262) then
tmp = t_3
else if (x <= 1.45d-221) then
tmp = t_4 + t_1
else if (x <= 3.3d-105) then
tmp = t_3
else
tmp = t_4 + 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));
double t_2 = b * ((a * i) - (z * c));
double t_3 = t_1 + t_2;
double t_4 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.9e+178) {
tmp = t_4 - (c * (z * b));
} else if (x <= -2.25e+84) {
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)));
} else if (x <= -2020000000000.0) {
tmp = (a * ((b * i) - (x * t))) + (z * ((x * y) - (b * c)));
} else if (x <= 4.6e-262) {
tmp = t_3;
} else if (x <= 1.45e-221) {
tmp = t_4 + t_1;
} else if (x <= 3.3e-105) {
tmp = t_3;
} else {
tmp = t_4 + t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) t_3 = t_1 + t_2 t_4 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.9e+178: tmp = t_4 - (c * (z * b)) elif x <= -2.25e+84: tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a))) elif x <= -2020000000000.0: tmp = (a * ((b * i) - (x * t))) + (z * ((x * y) - (b * c))) elif x <= 4.6e-262: tmp = t_3 elif x <= 1.45e-221: tmp = t_4 + t_1 elif x <= 3.3e-105: tmp = t_3 else: tmp = t_4 + t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(t_1 + t_2) t_4 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.9e+178) tmp = Float64(t_4 - Float64(c * Float64(z * b))); elseif (x <= -2.25e+84) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(t * Float64(Float64(c * j) - Float64(x * a)))); elseif (x <= -2020000000000.0) tmp = Float64(Float64(a * Float64(Float64(b * i) - Float64(x * t))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); elseif (x <= 4.6e-262) tmp = t_3; elseif (x <= 1.45e-221) tmp = Float64(t_4 + t_1); elseif (x <= 3.3e-105) tmp = t_3; else tmp = Float64(t_4 + 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)); t_2 = b * ((a * i) - (z * c)); t_3 = t_1 + t_2; t_4 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -1.9e+178) tmp = t_4 - (c * (z * b)); elseif (x <= -2.25e+84) tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a))); elseif (x <= -2020000000000.0) tmp = (a * ((b * i) - (x * t))) + (z * ((x * y) - (b * c))); elseif (x <= 4.6e-262) tmp = t_3; elseif (x <= 1.45e-221) tmp = t_4 + t_1; elseif (x <= 3.3e-105) tmp = t_3; else tmp = t_4 + t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$1 + t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.9e+178], N[(t$95$4 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.25e+84], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2020000000000.0], N[(N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e-262], t$95$3, If[LessEqual[x, 1.45e-221], N[(t$95$4 + t$95$1), $MachinePrecision], If[LessEqual[x, 3.3e-105], t$95$3, N[(t$95$4 + t$95$2), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := t_1 + t_2\\
t_4 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.9 \cdot 10^{+178}:\\
\;\;\;\;t_4 - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;x \leq -2.25 \cdot 10^{+84}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;x \leq -2020000000000:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-262}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{-221}:\\
\;\;\;\;t_4 + t_1\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{-105}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_4 + t_2\\
\end{array}
\end{array}
if x < -1.89999999999999999e178Initial program 67.7%
cancel-sign-sub67.7%
cancel-sign-sub-inv67.7%
*-commutative67.7%
*-commutative67.7%
remove-double-neg67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in i around 0 75.7%
Taylor expanded in j around 0 84.0%
if -1.89999999999999999e178 < x < -2.2499999999999999e84Initial program 58.5%
cancel-sign-sub58.5%
cancel-sign-sub-inv58.5%
*-commutative58.5%
*-commutative58.5%
remove-double-neg58.5%
*-commutative58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in b around 0 76.3%
Taylor expanded in t around -inf 82.3%
+-commutative82.3%
+-commutative82.3%
mul-1-neg82.3%
unsub-neg82.3%
mul-1-neg82.3%
distribute-rgt-neg-in82.3%
mul-1-neg82.3%
distribute-lft-in82.3%
mul-1-neg82.3%
unsub-neg82.3%
*-commutative82.3%
mul-1-neg82.3%
unsub-neg82.3%
*-commutative82.3%
Simplified82.3%
if -2.2499999999999999e84 < x < -2.02e12Initial program 71.2%
cancel-sign-sub71.2%
cancel-sign-sub-inv71.2%
*-commutative71.2%
*-commutative71.2%
remove-double-neg71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in z around -inf 71.7%
Simplified78.8%
Taylor expanded in j around 0 86.1%
if -2.02e12 < x < 4.6000000000000002e-262 or 1.44999999999999997e-221 < x < 3.2999999999999999e-105Initial program 71.1%
cancel-sign-sub71.1%
cancel-sign-sub-inv71.1%
*-commutative71.1%
*-commutative71.1%
remove-double-neg71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in x around 0 77.7%
if 4.6000000000000002e-262 < x < 1.44999999999999997e-221Initial program 70.0%
cancel-sign-sub70.0%
cancel-sign-sub-inv70.0%
*-commutative70.0%
*-commutative70.0%
remove-double-neg70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in b around 0 77.2%
if 3.2999999999999999e-105 < x Initial program 77.2%
+-commutative77.2%
fma-def77.2%
*-commutative77.2%
*-commutative77.2%
*-commutative77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in j around 0 75.2%
Final simplification78.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -6e+255)
t_2
(if (<= b -1.06e+110)
(+ (* y (- (* x z) (* i j))) (* t (- (* c j) (* x a))))
(if (<= b -6.4e-38)
(+ t_1 t_2)
(if (<= b 1.5e+75)
(+ (* x (- (* y z) (* t a))) t_1)
(+ (* z (- (* x y) (* b c))) (* i (* a b)))))))))
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));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -6e+255) {
tmp = t_2;
} else if (b <= -1.06e+110) {
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)));
} else if (b <= -6.4e-38) {
tmp = t_1 + t_2;
} else if (b <= 1.5e+75) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else {
tmp = (z * ((x * y) - (b * c))) + (i * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
if (b <= (-6d+255)) then
tmp = t_2
else if (b <= (-1.06d+110)) then
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)))
else if (b <= (-6.4d-38)) then
tmp = t_1 + t_2
else if (b <= 1.5d+75) then
tmp = (x * ((y * z) - (t * a))) + t_1
else
tmp = (z * ((x * y) - (b * c))) + (i * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -6e+255) {
tmp = t_2;
} else if (b <= -1.06e+110) {
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)));
} else if (b <= -6.4e-38) {
tmp = t_1 + t_2;
} else if (b <= 1.5e+75) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else {
tmp = (z * ((x * y) - (b * c))) + (i * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -6e+255: tmp = t_2 elif b <= -1.06e+110: tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a))) elif b <= -6.4e-38: tmp = t_1 + t_2 elif b <= 1.5e+75: tmp = (x * ((y * z) - (t * a))) + t_1 else: tmp = (z * ((x * y) - (b * c))) + (i * (a * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -6e+255) tmp = t_2; elseif (b <= -1.06e+110) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(t * Float64(Float64(c * j) - Float64(x * a)))); elseif (b <= -6.4e-38) tmp = Float64(t_1 + t_2); elseif (b <= 1.5e+75) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1); else tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + Float64(i * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -6e+255) tmp = t_2; elseif (b <= -1.06e+110) tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a))); elseif (b <= -6.4e-38) tmp = t_1 + t_2; elseif (b <= 1.5e+75) tmp = (x * ((y * z) - (t * a))) + t_1; else tmp = (z * ((x * y) - (b * c))) + (i * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6e+255], t$95$2, If[LessEqual[b, -1.06e+110], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.4e-38], N[(t$95$1 + t$95$2), $MachinePrecision], If[LessEqual[b, 1.5e+75], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -6 \cdot 10^{+255}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.06 \cdot 10^{+110}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq -6.4 \cdot 10^{-38}:\\
\;\;\;\;t_1 + t_2\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+75}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if b < -6.00000000000000035e255Initial program 66.4%
cancel-sign-sub66.4%
cancel-sign-sub-inv66.4%
*-commutative66.4%
*-commutative66.4%
remove-double-neg66.4%
*-commutative66.4%
*-commutative66.4%
Simplified66.4%
Taylor expanded in b around inf 83.1%
if -6.00000000000000035e255 < b < -1.06000000000000005e110Initial program 58.3%
cancel-sign-sub58.3%
cancel-sign-sub-inv58.3%
*-commutative58.3%
*-commutative58.3%
remove-double-neg58.3%
*-commutative58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in b around 0 51.5%
Taylor expanded in t around -inf 83.5%
+-commutative83.5%
+-commutative83.5%
mul-1-neg83.5%
unsub-neg83.5%
mul-1-neg83.5%
distribute-rgt-neg-in83.5%
mul-1-neg83.5%
distribute-lft-in87.7%
mul-1-neg87.7%
unsub-neg87.7%
*-commutative87.7%
mul-1-neg87.7%
unsub-neg87.7%
*-commutative87.7%
Simplified87.7%
if -1.06000000000000005e110 < b < -6.39999999999999955e-38Initial program 83.7%
cancel-sign-sub83.7%
cancel-sign-sub-inv83.7%
*-commutative83.7%
*-commutative83.7%
remove-double-neg83.7%
*-commutative83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in x around 0 80.5%
if -6.39999999999999955e-38 < b < 1.5e75Initial program 72.5%
cancel-sign-sub72.5%
cancel-sign-sub-inv72.5%
*-commutative72.5%
*-commutative72.5%
remove-double-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in b around 0 73.2%
if 1.5e75 < b Initial program 69.9%
cancel-sign-sub69.9%
cancel-sign-sub-inv69.9%
*-commutative69.9%
*-commutative69.9%
remove-double-neg69.9%
*-commutative69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in z around -inf 56.7%
Simplified60.7%
Taylor expanded in j around 0 67.2%
Taylor expanded in t around 0 76.6%
Final simplification76.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= x -8300000000000.0)
t_2
(if (<= x -4.5e-151)
t_1
(if (<= x 6.8e-261)
(* i (- (* a b) (* y j)))
(if (<= x 7e-112)
t_1
(if (<= x 3.6e+18)
t_3
(if (<= x 9.5e+52)
t_2
(if (<= x 7.8e+81)
t_3
(if (<= x 7.4e+175) (* y (- (* x z) (* i j))) t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (x <= -8300000000000.0) {
tmp = t_2;
} else if (x <= -4.5e-151) {
tmp = t_1;
} else if (x <= 6.8e-261) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 7e-112) {
tmp = t_1;
} else if (x <= 3.6e+18) {
tmp = t_3;
} else if (x <= 9.5e+52) {
tmp = t_2;
} else if (x <= 7.8e+81) {
tmp = t_3;
} else if (x <= 7.4e+175) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
t_3 = b * ((a * i) - (z * c))
if (x <= (-8300000000000.0d0)) then
tmp = t_2
else if (x <= (-4.5d-151)) then
tmp = t_1
else if (x <= 6.8d-261) then
tmp = i * ((a * b) - (y * j))
else if (x <= 7d-112) then
tmp = t_1
else if (x <= 3.6d+18) then
tmp = t_3
else if (x <= 9.5d+52) then
tmp = t_2
else if (x <= 7.8d+81) then
tmp = t_3
else if (x <= 7.4d+175) then
tmp = y * ((x * z) - (i * j))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (x <= -8300000000000.0) {
tmp = t_2;
} else if (x <= -4.5e-151) {
tmp = t_1;
} else if (x <= 6.8e-261) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 7e-112) {
tmp = t_1;
} else if (x <= 3.6e+18) {
tmp = t_3;
} else if (x <= 9.5e+52) {
tmp = t_2;
} else if (x <= 7.8e+81) {
tmp = t_3;
} else if (x <= 7.4e+175) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if x <= -8300000000000.0: tmp = t_2 elif x <= -4.5e-151: tmp = t_1 elif x <= 6.8e-261: tmp = i * ((a * b) - (y * j)) elif x <= 7e-112: tmp = t_1 elif x <= 3.6e+18: tmp = t_3 elif x <= 9.5e+52: tmp = t_2 elif x <= 7.8e+81: tmp = t_3 elif x <= 7.4e+175: tmp = y * ((x * z) - (i * j)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (x <= -8300000000000.0) tmp = t_2; elseif (x <= -4.5e-151) tmp = t_1; elseif (x <= 6.8e-261) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (x <= 7e-112) tmp = t_1; elseif (x <= 3.6e+18) tmp = t_3; elseif (x <= 9.5e+52) tmp = t_2; elseif (x <= 7.8e+81) tmp = t_3; elseif (x <= 7.4e+175) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); 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)); t_2 = x * ((y * z) - (t * a)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (x <= -8300000000000.0) tmp = t_2; elseif (x <= -4.5e-151) tmp = t_1; elseif (x <= 6.8e-261) tmp = i * ((a * b) - (y * j)); elseif (x <= 7e-112) tmp = t_1; elseif (x <= 3.6e+18) tmp = t_3; elseif (x <= 9.5e+52) tmp = t_2; elseif (x <= 7.8e+81) tmp = t_3; elseif (x <= 7.4e+175) tmp = y * ((x * z) - (i * j)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8300000000000.0], t$95$2, If[LessEqual[x, -4.5e-151], t$95$1, If[LessEqual[x, 6.8e-261], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e-112], t$95$1, If[LessEqual[x, 3.6e+18], t$95$3, If[LessEqual[x, 9.5e+52], t$95$2, If[LessEqual[x, 7.8e+81], t$95$3, If[LessEqual[x, 7.4e+175], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;x \leq -8300000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -4.5 \cdot 10^{-151}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 6.8 \cdot 10^{-261}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-112}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{+18}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+52}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{+81}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 7.4 \cdot 10^{+175}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -8.3e12 or 3.6e18 < x < 9.49999999999999994e52 or 7.39999999999999932e175 < x Initial program 69.9%
sub-neg69.9%
associate-+l+69.9%
fma-def71.7%
+-commutative71.7%
fma-def71.7%
sub-neg71.7%
+-commutative71.7%
*-commutative71.7%
distribute-rgt-neg-in71.7%
fma-def71.7%
*-commutative71.7%
distribute-rgt-neg-in71.7%
sub-neg71.7%
distribute-neg-in71.7%
unsub-neg71.7%
Simplified71.7%
Taylor expanded in x around inf 69.5%
if -8.3e12 < x < -4.5000000000000002e-151 or 6.8e-261 < x < 6.99999999999999988e-112Initial program 73.5%
cancel-sign-sub73.5%
cancel-sign-sub-inv73.5%
*-commutative73.5%
*-commutative73.5%
remove-double-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in z around -inf 81.1%
Simplified84.6%
Taylor expanded in j around inf 61.0%
if -4.5000000000000002e-151 < x < 6.8e-261Initial program 68.9%
cancel-sign-sub68.9%
cancel-sign-sub-inv68.9%
*-commutative68.9%
*-commutative68.9%
remove-double-neg68.9%
*-commutative68.9%
*-commutative68.9%
Simplified68.9%
Taylor expanded in z around -inf 76.9%
Simplified76.9%
Taylor expanded in i around inf 59.2%
mul-1-neg59.2%
unsub-neg59.2%
*-commutative59.2%
Simplified59.2%
if 6.99999999999999988e-112 < x < 3.6e18 or 9.49999999999999994e52 < x < 7.8000000000000002e81Initial program 75.8%
cancel-sign-sub75.8%
cancel-sign-sub-inv75.8%
*-commutative75.8%
*-commutative75.8%
remove-double-neg75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in b around inf 68.8%
if 7.8000000000000002e81 < x < 7.39999999999999932e175Initial program 77.5%
cancel-sign-sub77.5%
cancel-sign-sub-inv77.5%
*-commutative77.5%
*-commutative77.5%
remove-double-neg77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in z around -inf 68.7%
Simplified68.7%
Taylor expanded in y around inf 64.6%
+-commutative64.6%
mul-1-neg64.6%
unsub-neg64.6%
Simplified64.6%
Final simplification65.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (* x z)) (* a (- (* x t) (* b i)))))
(t_2 (- (* x (* t (- a))) (* z (* b c))))
(t_3 (* j (- (* t c) (* y i)))))
(if (<= j -2.9e+111)
t_3
(if (<= j -8.2e-21)
t_2
(if (<= j 4.6e-274)
t_1
(if (<= j 1.85e-175) t_2 (if (<= j 6.8e+75) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * (x * z)) - (a * ((x * t) - (b * i)));
double t_2 = (x * (t * -a)) - (z * (b * c));
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.9e+111) {
tmp = t_3;
} else if (j <= -8.2e-21) {
tmp = t_2;
} else if (j <= 4.6e-274) {
tmp = t_1;
} else if (j <= 1.85e-175) {
tmp = t_2;
} else if (j <= 6.8e+75) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (y * (x * z)) - (a * ((x * t) - (b * i)))
t_2 = (x * (t * -a)) - (z * (b * c))
t_3 = j * ((t * c) - (y * i))
if (j <= (-2.9d+111)) then
tmp = t_3
else if (j <= (-8.2d-21)) then
tmp = t_2
else if (j <= 4.6d-274) then
tmp = t_1
else if (j <= 1.85d-175) then
tmp = t_2
else if (j <= 6.8d+75) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * (x * z)) - (a * ((x * t) - (b * i)));
double t_2 = (x * (t * -a)) - (z * (b * c));
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.9e+111) {
tmp = t_3;
} else if (j <= -8.2e-21) {
tmp = t_2;
} else if (j <= 4.6e-274) {
tmp = t_1;
} else if (j <= 1.85e-175) {
tmp = t_2;
} else if (j <= 6.8e+75) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * (x * z)) - (a * ((x * t) - (b * i))) t_2 = (x * (t * -a)) - (z * (b * c)) t_3 = j * ((t * c) - (y * i)) tmp = 0 if j <= -2.9e+111: tmp = t_3 elif j <= -8.2e-21: tmp = t_2 elif j <= 4.6e-274: tmp = t_1 elif j <= 1.85e-175: tmp = t_2 elif j <= 6.8e+75: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(x * z)) - Float64(a * Float64(Float64(x * t) - Float64(b * i)))) t_2 = Float64(Float64(x * Float64(t * Float64(-a))) - Float64(z * Float64(b * c))) t_3 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.9e+111) tmp = t_3; elseif (j <= -8.2e-21) tmp = t_2; elseif (j <= 4.6e-274) tmp = t_1; elseif (j <= 1.85e-175) tmp = t_2; elseif (j <= 6.8e+75) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * (x * z)) - (a * ((x * t) - (b * i))); t_2 = (x * (t * -a)) - (z * (b * c)); t_3 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -2.9e+111) tmp = t_3; elseif (j <= -8.2e-21) tmp = t_2; elseif (j <= 4.6e-274) tmp = t_1; elseif (j <= 1.85e-175) tmp = t_2; elseif (j <= 6.8e+75) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.9e+111], t$95$3, If[LessEqual[j, -8.2e-21], t$95$2, If[LessEqual[j, 4.6e-274], t$95$1, If[LessEqual[j, 1.85e-175], t$95$2, If[LessEqual[j, 6.8e+75], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right) - a \cdot \left(x \cdot t - b \cdot i\right)\\
t_2 := x \cdot \left(t \cdot \left(-a\right)\right) - z \cdot \left(b \cdot c\right)\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.9 \cdot 10^{+111}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -8.2 \cdot 10^{-21}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 4.6 \cdot 10^{-274}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.85 \cdot 10^{-175}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 6.8 \cdot 10^{+75}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -2.9e111 or 6.80000000000000022e75 < j Initial program 65.0%
cancel-sign-sub65.0%
cancel-sign-sub-inv65.0%
*-commutative65.0%
*-commutative65.0%
remove-double-neg65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in z around -inf 71.5%
Simplified76.2%
Taylor expanded in j around inf 65.7%
if -2.9e111 < j < -8.19999999999999988e-21 or 4.59999999999999992e-274 < j < 1.84999999999999999e-175Initial program 68.0%
cancel-sign-sub68.0%
cancel-sign-sub-inv68.0%
*-commutative68.0%
*-commutative68.0%
remove-double-neg68.0%
*-commutative68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in i around 0 67.3%
Taylor expanded in j around 0 66.0%
Taylor expanded in y around 0 59.7%
mul-1-neg59.7%
associate-*r*68.4%
distribute-lft-neg-in68.4%
distribute-rgt-neg-in68.4%
associate-*r*70.8%
*-commutative70.8%
Simplified70.8%
if -8.19999999999999988e-21 < j < 4.59999999999999992e-274 or 1.84999999999999999e-175 < j < 6.80000000000000022e75Initial program 77.6%
cancel-sign-sub77.6%
cancel-sign-sub-inv77.6%
*-commutative77.6%
*-commutative77.6%
remove-double-neg77.6%
*-commutative77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in z around -inf 73.5%
Simplified75.8%
Taylor expanded in j around 0 67.0%
Taylor expanded in c around 0 65.6%
Final simplification66.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (* x z)) (* a (- (* x t) (* b i)))))
(t_2 (+ (* j (- (* t c) (* y i))) (* x (* y z))))
(t_3 (- (* x (* t (- a))) (* z (* b c)))))
(if (<= j -2.9e+111)
t_2
(if (<= j -7.2e-21)
t_3
(if (<= j 6.8e-274)
t_1
(if (<= j 6.3e-176) t_3 (if (<= j 7e-91) 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 * (x * z)) - (a * ((x * t) - (b * i)));
double t_2 = (j * ((t * c) - (y * i))) + (x * (y * z));
double t_3 = (x * (t * -a)) - (z * (b * c));
double tmp;
if (j <= -2.9e+111) {
tmp = t_2;
} else if (j <= -7.2e-21) {
tmp = t_3;
} else if (j <= 6.8e-274) {
tmp = t_1;
} else if (j <= 6.3e-176) {
tmp = t_3;
} else if (j <= 7e-91) {
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 = (y * (x * z)) - (a * ((x * t) - (b * i)))
t_2 = (j * ((t * c) - (y * i))) + (x * (y * z))
t_3 = (x * (t * -a)) - (z * (b * c))
if (j <= (-2.9d+111)) then
tmp = t_2
else if (j <= (-7.2d-21)) then
tmp = t_3
else if (j <= 6.8d-274) then
tmp = t_1
else if (j <= 6.3d-176) then
tmp = t_3
else if (j <= 7d-91) 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 * (x * z)) - (a * ((x * t) - (b * i)));
double t_2 = (j * ((t * c) - (y * i))) + (x * (y * z));
double t_3 = (x * (t * -a)) - (z * (b * c));
double tmp;
if (j <= -2.9e+111) {
tmp = t_2;
} else if (j <= -7.2e-21) {
tmp = t_3;
} else if (j <= 6.8e-274) {
tmp = t_1;
} else if (j <= 6.3e-176) {
tmp = t_3;
} else if (j <= 7e-91) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * (x * z)) - (a * ((x * t) - (b * i))) t_2 = (j * ((t * c) - (y * i))) + (x * (y * z)) t_3 = (x * (t * -a)) - (z * (b * c)) tmp = 0 if j <= -2.9e+111: tmp = t_2 elif j <= -7.2e-21: tmp = t_3 elif j <= 6.8e-274: tmp = t_1 elif j <= 6.3e-176: tmp = t_3 elif j <= 7e-91: 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 * Float64(x * z)) - Float64(a * Float64(Float64(x * t) - Float64(b * i)))) t_2 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(y * z))) t_3 = Float64(Float64(x * Float64(t * Float64(-a))) - Float64(z * Float64(b * c))) tmp = 0.0 if (j <= -2.9e+111) tmp = t_2; elseif (j <= -7.2e-21) tmp = t_3; elseif (j <= 6.8e-274) tmp = t_1; elseif (j <= 6.3e-176) tmp = t_3; elseif (j <= 7e-91) 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 * (x * z)) - (a * ((x * t) - (b * i))); t_2 = (j * ((t * c) - (y * i))) + (x * (y * z)); t_3 = (x * (t * -a)) - (z * (b * c)); tmp = 0.0; if (j <= -2.9e+111) tmp = t_2; elseif (j <= -7.2e-21) tmp = t_3; elseif (j <= 6.8e-274) tmp = t_1; elseif (j <= 6.3e-176) tmp = t_3; elseif (j <= 7e-91) 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 * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.9e+111], t$95$2, If[LessEqual[j, -7.2e-21], t$95$3, If[LessEqual[j, 6.8e-274], t$95$1, If[LessEqual[j, 6.3e-176], t$95$3, If[LessEqual[j, 7e-91], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right) - a \cdot \left(x \cdot t - b \cdot i\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
t_3 := x \cdot \left(t \cdot \left(-a\right)\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{if}\;j \leq -2.9 \cdot 10^{+111}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -7.2 \cdot 10^{-21}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 6.8 \cdot 10^{-274}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 6.3 \cdot 10^{-176}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 7 \cdot 10^{-91}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -2.9e111 or 6.9999999999999997e-91 < j Initial program 72.0%
cancel-sign-sub72.0%
cancel-sign-sub-inv72.0%
*-commutative72.0%
*-commutative72.0%
remove-double-neg72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in b around 0 71.6%
Taylor expanded in y around inf 65.7%
if -2.9e111 < j < -7.19999999999999979e-21 or 6.79999999999999962e-274 < j < 6.30000000000000011e-176Initial program 68.0%
cancel-sign-sub68.0%
cancel-sign-sub-inv68.0%
*-commutative68.0%
*-commutative68.0%
remove-double-neg68.0%
*-commutative68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in i around 0 67.3%
Taylor expanded in j around 0 66.0%
Taylor expanded in y around 0 59.7%
mul-1-neg59.7%
associate-*r*68.4%
distribute-lft-neg-in68.4%
distribute-rgt-neg-in68.4%
associate-*r*70.8%
*-commutative70.8%
Simplified70.8%
if -7.19999999999999979e-21 < j < 6.79999999999999962e-274 or 6.30000000000000011e-176 < j < 6.9999999999999997e-91Initial program 73.5%
cancel-sign-sub73.5%
cancel-sign-sub-inv73.5%
*-commutative73.5%
*-commutative73.5%
remove-double-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in z around -inf 70.6%
Simplified72.8%
Taylor expanded in j around 0 67.4%
Taylor expanded in c around 0 70.5%
Final simplification68.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= x -10500000000000.0)
(- (* x (- (* y z) (* t a))) (* c (* z b)))
(if (<= x -4.8e-152)
t_1
(if (<= x 4.6e-262)
(* i (- (* a b) (* y j)))
(if (<= x 6.4e-113)
(+ t_1 (* x (* y z)))
(if (<= x 2.5e-49)
(* b (- (* a i) (* z c)))
(- (* y (* x z)) (* a (- (* x t) (* b i)))))))))))
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));
double tmp;
if (x <= -10500000000000.0) {
tmp = (x * ((y * z) - (t * a))) - (c * (z * b));
} else if (x <= -4.8e-152) {
tmp = t_1;
} else if (x <= 4.6e-262) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 6.4e-113) {
tmp = t_1 + (x * (y * z));
} else if (x <= 2.5e-49) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (y * (x * z)) - (a * ((x * t) - (b * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (x <= (-10500000000000.0d0)) then
tmp = (x * ((y * z) - (t * a))) - (c * (z * b))
else if (x <= (-4.8d-152)) then
tmp = t_1
else if (x <= 4.6d-262) then
tmp = i * ((a * b) - (y * j))
else if (x <= 6.4d-113) then
tmp = t_1 + (x * (y * z))
else if (x <= 2.5d-49) then
tmp = b * ((a * i) - (z * c))
else
tmp = (y * (x * z)) - (a * ((x * t) - (b * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (x <= -10500000000000.0) {
tmp = (x * ((y * z) - (t * a))) - (c * (z * b));
} else if (x <= -4.8e-152) {
tmp = t_1;
} else if (x <= 4.6e-262) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 6.4e-113) {
tmp = t_1 + (x * (y * z));
} else if (x <= 2.5e-49) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (y * (x * z)) - (a * ((x * t) - (b * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if x <= -10500000000000.0: tmp = (x * ((y * z) - (t * a))) - (c * (z * b)) elif x <= -4.8e-152: tmp = t_1 elif x <= 4.6e-262: tmp = i * ((a * b) - (y * j)) elif x <= 6.4e-113: tmp = t_1 + (x * (y * z)) elif x <= 2.5e-49: tmp = b * ((a * i) - (z * c)) else: tmp = (y * (x * z)) - (a * ((x * t) - (b * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (x <= -10500000000000.0) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(c * Float64(z * b))); elseif (x <= -4.8e-152) tmp = t_1; elseif (x <= 4.6e-262) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (x <= 6.4e-113) tmp = Float64(t_1 + Float64(x * Float64(y * z))); elseif (x <= 2.5e-49) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(y * Float64(x * z)) - Float64(a * Float64(Float64(x * t) - Float64(b * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if (x <= -10500000000000.0) tmp = (x * ((y * z) - (t * a))) - (c * (z * b)); elseif (x <= -4.8e-152) tmp = t_1; elseif (x <= 4.6e-262) tmp = i * ((a * b) - (y * j)); elseif (x <= 6.4e-113) tmp = t_1 + (x * (y * z)); elseif (x <= 2.5e-49) tmp = b * ((a * i) - (z * c)); else tmp = (y * (x * z)) - (a * ((x * t) - (b * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -10500000000000.0], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.8e-152], t$95$1, If[LessEqual[x, 4.6e-262], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.4e-113], N[(t$95$1 + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e-49], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;x \leq -10500000000000:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{-152}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-262}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq 6.4 \cdot 10^{-113}:\\
\;\;\;\;t_1 + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-49}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) - a \cdot \left(x \cdot t - b \cdot i\right)\\
\end{array}
\end{array}
if x < -1.05e13Initial program 66.1%
cancel-sign-sub66.1%
cancel-sign-sub-inv66.1%
*-commutative66.1%
*-commutative66.1%
remove-double-neg66.1%
*-commutative66.1%
*-commutative66.1%
Simplified66.1%
Taylor expanded in i around 0 71.8%
Taylor expanded in j around 0 73.6%
if -1.05e13 < x < -4.8e-152Initial program 76.8%
cancel-sign-sub76.8%
cancel-sign-sub-inv76.8%
*-commutative76.8%
*-commutative76.8%
remove-double-neg76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in z around -inf 78.9%
Simplified82.5%
Taylor expanded in j around inf 60.9%
if -4.8e-152 < x < 4.6000000000000002e-262Initial program 70.0%
cancel-sign-sub70.0%
cancel-sign-sub-inv70.0%
*-commutative70.0%
*-commutative70.0%
remove-double-neg70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in z around -inf 81.0%
Simplified81.0%
Taylor expanded in i around inf 62.2%
mul-1-neg62.2%
unsub-neg62.2%
*-commutative62.2%
Simplified62.2%
if 4.6000000000000002e-262 < x < 6.4000000000000003e-113Initial program 69.1%
cancel-sign-sub69.1%
cancel-sign-sub-inv69.1%
*-commutative69.1%
*-commutative69.1%
remove-double-neg69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in b around 0 69.2%
Taylor expanded in y around inf 63.2%
if 6.4000000000000003e-113 < x < 2.4999999999999999e-49Initial program 71.4%
cancel-sign-sub71.4%
cancel-sign-sub-inv71.4%
*-commutative71.4%
*-commutative71.4%
remove-double-neg71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in b around inf 100.0%
if 2.4999999999999999e-49 < x Initial program 76.7%
cancel-sign-sub76.7%
cancel-sign-sub-inv76.7%
*-commutative76.7%
*-commutative76.7%
remove-double-neg76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in z around -inf 71.4%
Simplified73.7%
Taylor expanded in j around 0 72.7%
Taylor expanded in c around 0 72.5%
Final simplification69.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))))
(if (<= y -1.1e-135)
t_1
(if (<= y 7e-284)
(+ (* z (- (* x y) (* b c))) (* i (* a b)))
(if (<= y 1.4e-126)
t_1
(+ (* y (- (* x z) (* i j))) (* t (- (* c j) (* x a)))))))))
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))) + (j * ((t * c) - (y * i)));
double tmp;
if (y <= -1.1e-135) {
tmp = t_1;
} else if (y <= 7e-284) {
tmp = (z * ((x * y) - (b * c))) + (i * (a * b));
} else if (y <= 1.4e-126) {
tmp = t_1;
} else {
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
if (y <= (-1.1d-135)) then
tmp = t_1
else if (y <= 7d-284) then
tmp = (z * ((x * y) - (b * c))) + (i * (a * b))
else if (y <= 1.4d-126) then
tmp = t_1
else
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
double tmp;
if (y <= -1.1e-135) {
tmp = t_1;
} else if (y <= 7e-284) {
tmp = (z * ((x * y) - (b * c))) + (i * (a * b));
} else if (y <= 1.4e-126) {
tmp = t_1;
} else {
tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) tmp = 0 if y <= -1.1e-135: tmp = t_1 elif y <= 7e-284: tmp = (z * ((x * y) - (b * c))) + (i * (a * b)) elif y <= 1.4e-126: tmp = t_1 else: tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (y <= -1.1e-135) tmp = t_1; elseif (y <= 7e-284) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + Float64(i * Float64(a * b))); elseif (y <= 1.4e-126) tmp = t_1; else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(t * Float64(Float64(c * j) - Float64(x * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (y <= -1.1e-135) tmp = t_1; elseif (y <= 7e-284) tmp = (z * ((x * y) - (b * c))) + (i * (a * b)); elseif (y <= 1.4e-126) tmp = t_1; else tmp = (y * ((x * z) - (i * j))) + (t * ((c * j) - (x * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.1e-135], t$95$1, If[LessEqual[y, 7e-284], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e-126], t$95$1, N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;y \leq -1.1 \cdot 10^{-135}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-284}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-126}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t \cdot \left(c \cdot j - x \cdot a\right)\\
\end{array}
\end{array}
if y < -1.1e-135 or 6.99999999999999951e-284 < y < 1.39999999999999996e-126Initial program 74.8%
cancel-sign-sub74.8%
cancel-sign-sub-inv74.8%
*-commutative74.8%
*-commutative74.8%
remove-double-neg74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in b around 0 74.0%
if -1.1e-135 < y < 6.99999999999999951e-284Initial program 81.5%
cancel-sign-sub81.5%
cancel-sign-sub-inv81.5%
*-commutative81.5%
*-commutative81.5%
remove-double-neg81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in z around -inf 76.1%
Simplified81.1%
Taylor expanded in j around 0 78.6%
Taylor expanded in t around 0 71.8%
if 1.39999999999999996e-126 < y Initial program 63.3%
cancel-sign-sub63.3%
cancel-sign-sub-inv63.3%
*-commutative63.3%
*-commutative63.3%
remove-double-neg63.3%
*-commutative63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in b around 0 56.0%
Taylor expanded in t around -inf 68.2%
+-commutative68.2%
+-commutative68.2%
mul-1-neg68.2%
unsub-neg68.2%
mul-1-neg68.2%
distribute-rgt-neg-in68.2%
mul-1-neg68.2%
distribute-lft-in69.3%
mul-1-neg69.3%
unsub-neg69.3%
*-commutative69.3%
mul-1-neg69.3%
unsub-neg69.3%
*-commutative69.3%
Simplified69.3%
Final simplification72.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -16500000000000.0)
t_2
(if (<= x -1.1e-147)
t_1
(if (<= x 6.6e-261)
(* i (- (* a b) (* y j)))
(if (<= x 5e-112)
t_1
(if (<= x 1.82e+19)
(* b (- (* a i) (* z c)))
(if (<= x 1.4e+47)
(+ (* x (* y z)) (* j (* t c)))
(if (<= x 1.35e+90) (* a (- (* b i) (* x t))) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -16500000000000.0) {
tmp = t_2;
} else if (x <= -1.1e-147) {
tmp = t_1;
} else if (x <= 6.6e-261) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 5e-112) {
tmp = t_1;
} else if (x <= 1.82e+19) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 1.4e+47) {
tmp = (x * (y * z)) + (j * (t * c));
} else if (x <= 1.35e+90) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
if (x <= (-16500000000000.0d0)) then
tmp = t_2
else if (x <= (-1.1d-147)) then
tmp = t_1
else if (x <= 6.6d-261) then
tmp = i * ((a * b) - (y * j))
else if (x <= 5d-112) then
tmp = t_1
else if (x <= 1.82d+19) then
tmp = b * ((a * i) - (z * c))
else if (x <= 1.4d+47) then
tmp = (x * (y * z)) + (j * (t * c))
else if (x <= 1.35d+90) then
tmp = a * ((b * i) - (x * t))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -16500000000000.0) {
tmp = t_2;
} else if (x <= -1.1e-147) {
tmp = t_1;
} else if (x <= 6.6e-261) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 5e-112) {
tmp = t_1;
} else if (x <= 1.82e+19) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 1.4e+47) {
tmp = (x * (y * z)) + (j * (t * c));
} else if (x <= 1.35e+90) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if x <= -16500000000000.0: tmp = t_2 elif x <= -1.1e-147: tmp = t_1 elif x <= 6.6e-261: tmp = i * ((a * b) - (y * j)) elif x <= 5e-112: tmp = t_1 elif x <= 1.82e+19: tmp = b * ((a * i) - (z * c)) elif x <= 1.4e+47: tmp = (x * (y * z)) + (j * (t * c)) elif x <= 1.35e+90: tmp = a * ((b * i) - (x * t)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -16500000000000.0) tmp = t_2; elseif (x <= -1.1e-147) tmp = t_1; elseif (x <= 6.6e-261) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (x <= 5e-112) tmp = t_1; elseif (x <= 1.82e+19) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 1.4e+47) tmp = Float64(Float64(x * Float64(y * z)) + Float64(j * Float64(t * c))); elseif (x <= 1.35e+90) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); 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)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -16500000000000.0) tmp = t_2; elseif (x <= -1.1e-147) tmp = t_1; elseif (x <= 6.6e-261) tmp = i * ((a * b) - (y * j)); elseif (x <= 5e-112) tmp = t_1; elseif (x <= 1.82e+19) tmp = b * ((a * i) - (z * c)); elseif (x <= 1.4e+47) tmp = (x * (y * z)) + (j * (t * c)); elseif (x <= 1.35e+90) tmp = a * ((b * i) - (x * t)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -16500000000000.0], t$95$2, If[LessEqual[x, -1.1e-147], t$95$1, If[LessEqual[x, 6.6e-261], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5e-112], t$95$1, If[LessEqual[x, 1.82e+19], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+47], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.35e+90], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -16500000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.1 \cdot 10^{-147}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 6.6 \cdot 10^{-261}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq 5 \cdot 10^{-112}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.82 \cdot 10^{+19}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+47}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{+90}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -1.65e13 or 1.35e90 < x Initial program 70.9%
sub-neg70.9%
associate-+l+70.9%
fma-def72.6%
+-commutative72.6%
fma-def72.6%
sub-neg72.6%
+-commutative72.6%
*-commutative72.6%
distribute-rgt-neg-in72.6%
fma-def72.6%
*-commutative72.6%
distribute-rgt-neg-in72.6%
sub-neg72.6%
distribute-neg-in72.6%
unsub-neg72.6%
Simplified73.4%
Taylor expanded in x around inf 66.6%
if -1.65e13 < x < -1.1000000000000001e-147 or 6.5999999999999996e-261 < x < 5.00000000000000044e-112Initial program 73.5%
cancel-sign-sub73.5%
cancel-sign-sub-inv73.5%
*-commutative73.5%
*-commutative73.5%
remove-double-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in z around -inf 81.1%
Simplified84.6%
Taylor expanded in j around inf 61.0%
if -1.1000000000000001e-147 < x < 6.5999999999999996e-261Initial program 68.9%
cancel-sign-sub68.9%
cancel-sign-sub-inv68.9%
*-commutative68.9%
*-commutative68.9%
remove-double-neg68.9%
*-commutative68.9%
*-commutative68.9%
Simplified68.9%
Taylor expanded in z around -inf 76.9%
Simplified76.9%
Taylor expanded in i around inf 59.2%
mul-1-neg59.2%
unsub-neg59.2%
*-commutative59.2%
Simplified59.2%
if 5.00000000000000044e-112 < x < 1.82e19Initial program 75.6%
cancel-sign-sub75.6%
cancel-sign-sub-inv75.6%
*-commutative75.6%
*-commutative75.6%
remove-double-neg75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in b around inf 70.5%
if 1.82e19 < x < 1.39999999999999994e47Initial program 71.4%
cancel-sign-sub71.4%
cancel-sign-sub-inv71.4%
*-commutative71.4%
*-commutative71.4%
remove-double-neg71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in b around 0 100.0%
Taylor expanded in y around inf 86.5%
Taylor expanded in c around inf 86.5%
*-commutative58.2%
Simplified86.5%
if 1.39999999999999994e47 < x < 1.35e90Initial program 78.9%
sub-neg78.9%
associate-+l+78.9%
fma-def78.9%
+-commutative78.9%
fma-def78.9%
sub-neg78.9%
+-commutative78.9%
*-commutative78.9%
distribute-rgt-neg-in78.9%
fma-def78.9%
*-commutative78.9%
distribute-rgt-neg-in78.9%
sub-neg78.9%
distribute-neg-in78.9%
unsub-neg78.9%
Simplified78.9%
Taylor expanded in a around inf 67.0%
+-commutative67.0%
mul-1-neg67.0%
unsub-neg67.0%
Simplified67.0%
Final simplification65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))))
(if (<= t -1.5e+214)
t_1
(if (<= t -4.3e-67)
(- (* y (- (* x z) (* i j))) (* t (* x a)))
(if (<= t 1.85e-209)
(+ (* z (- (* x y) (* b c))) (* i (* a b)))
(if (<= t 1.35e+23)
(- (* x (- (* y z) (* t a))) (* y (* i j)))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.5e+214) {
tmp = t_1;
} else if (t <= -4.3e-67) {
tmp = (y * ((x * z) - (i * j))) - (t * (x * a));
} else if (t <= 1.85e-209) {
tmp = (z * ((x * y) - (b * c))) + (i * (a * b));
} else if (t <= 1.35e+23) {
tmp = (x * ((y * z) - (t * a))) - (y * (i * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
if (t <= (-1.5d+214)) then
tmp = t_1
else if (t <= (-4.3d-67)) then
tmp = (y * ((x * z) - (i * j))) - (t * (x * a))
else if (t <= 1.85d-209) then
tmp = (z * ((x * y) - (b * c))) + (i * (a * b))
else if (t <= 1.35d+23) then
tmp = (x * ((y * z) - (t * a))) - (y * (i * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.5e+214) {
tmp = t_1;
} else if (t <= -4.3e-67) {
tmp = (y * ((x * z) - (i * j))) - (t * (x * a));
} else if (t <= 1.85e-209) {
tmp = (z * ((x * y) - (b * c))) + (i * (a * b));
} else if (t <= 1.35e+23) {
tmp = (x * ((y * z) - (t * a))) - (y * (i * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) tmp = 0 if t <= -1.5e+214: tmp = t_1 elif t <= -4.3e-67: tmp = (y * ((x * z) - (i * j))) - (t * (x * a)) elif t <= 1.85e-209: tmp = (z * ((x * y) - (b * c))) + (i * (a * b)) elif t <= 1.35e+23: tmp = (x * ((y * z) - (t * a))) - (y * (i * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -1.5e+214) tmp = t_1; elseif (t <= -4.3e-67) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(t * Float64(x * a))); elseif (t <= 1.85e-209) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + Float64(i * Float64(a * b))); elseif (t <= 1.35e+23) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(y * Float64(i * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -1.5e+214) tmp = t_1; elseif (t <= -4.3e-67) tmp = (y * ((x * z) - (i * j))) - (t * (x * a)); elseif (t <= 1.85e-209) tmp = (z * ((x * y) - (b * c))) + (i * (a * b)); elseif (t <= 1.35e+23) tmp = (x * ((y * z) - (t * a))) - (y * (i * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.5e+214], t$95$1, If[LessEqual[t, -4.3e-67], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e-209], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e+23], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.5 \cdot 10^{+214}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -4.3 \cdot 10^{-67}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - t \cdot \left(x \cdot a\right)\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{-209}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+23}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.5000000000000001e214 or 1.3499999999999999e23 < t Initial program 58.9%
sub-neg58.9%
associate-+l+58.9%
fma-def60.2%
+-commutative60.2%
fma-def60.2%
sub-neg60.2%
+-commutative60.2%
*-commutative60.2%
distribute-rgt-neg-in60.2%
fma-def60.2%
*-commutative60.2%
distribute-rgt-neg-in60.2%
sub-neg60.2%
distribute-neg-in60.2%
unsub-neg60.2%
Simplified61.4%
Taylor expanded in t around inf 69.2%
*-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
Simplified69.2%
if -1.5000000000000001e214 < t < -4.30000000000000027e-67Initial program 74.3%
cancel-sign-sub74.3%
cancel-sign-sub-inv74.3%
*-commutative74.3%
*-commutative74.3%
remove-double-neg74.3%
*-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in b around 0 76.2%
Taylor expanded in t around -inf 70.1%
+-commutative70.1%
+-commutative70.1%
mul-1-neg70.1%
unsub-neg70.1%
mul-1-neg70.1%
distribute-rgt-neg-in70.1%
mul-1-neg70.1%
distribute-lft-in70.1%
mul-1-neg70.1%
unsub-neg70.1%
*-commutative70.1%
mul-1-neg70.1%
unsub-neg70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in x around inf 60.5%
*-commutative60.5%
associate-*l*70.2%
*-commutative70.2%
Simplified70.2%
if -4.30000000000000027e-67 < t < 1.8499999999999999e-209Initial program 76.4%
cancel-sign-sub76.4%
cancel-sign-sub-inv76.4%
*-commutative76.4%
*-commutative76.4%
remove-double-neg76.4%
*-commutative76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in z around -inf 80.0%
Simplified80.0%
Taylor expanded in j around 0 69.2%
Taylor expanded in t around 0 69.5%
if 1.8499999999999999e-209 < t < 1.3499999999999999e23Initial program 82.9%
cancel-sign-sub82.9%
cancel-sign-sub-inv82.9%
*-commutative82.9%
*-commutative82.9%
remove-double-neg82.9%
*-commutative82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in b around 0 70.6%
Taylor expanded in c around 0 68.6%
associate-*r*65.0%
*-commutative65.0%
associate-*r*68.7%
mul-1-neg68.7%
distribute-rgt-neg-in68.7%
*-commutative68.7%
distribute-rgt-neg-in68.7%
Simplified68.7%
Final simplification69.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -6.4e-154) (not (<= t 4.7e-212))) (+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i)))) (+ (* z (- (* x y) (* b c))) (* i (* a b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -6.4e-154) || !(t <= 4.7e-212)) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else {
tmp = (z * ((x * y) - (b * c))) + (i * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-6.4d-154)) .or. (.not. (t <= 4.7d-212))) then
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
else
tmp = (z * ((x * y) - (b * c))) + (i * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -6.4e-154) || !(t <= 4.7e-212)) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else {
tmp = (z * ((x * y) - (b * c))) + (i * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -6.4e-154) or not (t <= 4.7e-212): tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) else: tmp = (z * ((x * y) - (b * c))) + (i * (a * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -6.4e-154) || !(t <= 4.7e-212)) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + Float64(i * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -6.4e-154) || ~((t <= 4.7e-212))) tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); else tmp = (z * ((x * y) - (b * c))) + (i * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -6.4e-154], N[Not[LessEqual[t, 4.7e-212]], $MachinePrecision]], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.4 \cdot 10^{-154} \lor \neg \left(t \leq 4.7 \cdot 10^{-212}\right):\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if t < -6.40000000000000009e-154 or 4.69999999999999998e-212 < t Initial program 69.7%
cancel-sign-sub69.7%
cancel-sign-sub-inv69.7%
*-commutative69.7%
*-commutative69.7%
remove-double-neg69.7%
*-commutative69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in b around 0 68.4%
if -6.40000000000000009e-154 < t < 4.69999999999999998e-212Initial program 79.1%
cancel-sign-sub79.1%
cancel-sign-sub-inv79.1%
*-commutative79.1%
*-commutative79.1%
remove-double-neg79.1%
*-commutative79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in z around -inf 81.9%
Simplified81.9%
Taylor expanded in j around 0 71.8%
Taylor expanded in t around 0 73.7%
Final simplification69.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j))))
(t_2 (* a (- (* b i) (* x t))))
(t_3 (* c (- (* t j) (* z b)))))
(if (<= c -1e-55)
t_3
(if (<= c -6.5e-198)
t_2
(if (<= c -3.6e-287)
t_1
(if (<= c 5e-23)
t_2
(if (<= c 3e+91) t_1 (if (<= c 2.7e+104) (* y (* x z)) t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = a * ((b * i) - (x * t));
double t_3 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1e-55) {
tmp = t_3;
} else if (c <= -6.5e-198) {
tmp = t_2;
} else if (c <= -3.6e-287) {
tmp = t_1;
} else if (c <= 5e-23) {
tmp = t_2;
} else if (c <= 3e+91) {
tmp = t_1;
} else if (c <= 2.7e+104) {
tmp = y * (x * z);
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
t_2 = a * ((b * i) - (x * t))
t_3 = c * ((t * j) - (z * b))
if (c <= (-1d-55)) then
tmp = t_3
else if (c <= (-6.5d-198)) then
tmp = t_2
else if (c <= (-3.6d-287)) then
tmp = t_1
else if (c <= 5d-23) then
tmp = t_2
else if (c <= 3d+91) then
tmp = t_1
else if (c <= 2.7d+104) then
tmp = y * (x * z)
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = a * ((b * i) - (x * t));
double t_3 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1e-55) {
tmp = t_3;
} else if (c <= -6.5e-198) {
tmp = t_2;
} else if (c <= -3.6e-287) {
tmp = t_1;
} else if (c <= 5e-23) {
tmp = t_2;
} else if (c <= 3e+91) {
tmp = t_1;
} else if (c <= 2.7e+104) {
tmp = y * (x * z);
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) t_2 = a * ((b * i) - (x * t)) t_3 = c * ((t * j) - (z * b)) tmp = 0 if c <= -1e-55: tmp = t_3 elif c <= -6.5e-198: tmp = t_2 elif c <= -3.6e-287: tmp = t_1 elif c <= 5e-23: tmp = t_2 elif c <= 3e+91: tmp = t_1 elif c <= 2.7e+104: tmp = y * (x * z) else: tmp = t_3 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(a * Float64(Float64(b * i) - Float64(x * t))) t_3 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -1e-55) tmp = t_3; elseif (c <= -6.5e-198) tmp = t_2; elseif (c <= -3.6e-287) tmp = t_1; elseif (c <= 5e-23) tmp = t_2; elseif (c <= 3e+91) tmp = t_1; elseif (c <= 2.7e+104) tmp = Float64(y * Float64(x * z)); else tmp = t_3; 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 = a * ((b * i) - (x * t)); t_3 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -1e-55) tmp = t_3; elseif (c <= -6.5e-198) tmp = t_2; elseif (c <= -3.6e-287) tmp = t_1; elseif (c <= 5e-23) tmp = t_2; elseif (c <= 3e+91) tmp = t_1; elseif (c <= 2.7e+104) tmp = y * (x * z); else tmp = t_3; 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[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1e-55], t$95$3, If[LessEqual[c, -6.5e-198], t$95$2, If[LessEqual[c, -3.6e-287], t$95$1, If[LessEqual[c, 5e-23], t$95$2, If[LessEqual[c, 3e+91], t$95$1, If[LessEqual[c, 2.7e+104], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_3 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1 \cdot 10^{-55}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -6.5 \cdot 10^{-198}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -3.6 \cdot 10^{-287}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 5 \cdot 10^{-23}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 3 \cdot 10^{+91}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{+104}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -9.99999999999999995e-56 or 2.69999999999999985e104 < c Initial program 65.6%
+-commutative65.6%
fma-def66.5%
*-commutative66.5%
*-commutative66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in c around inf 58.2%
if -9.99999999999999995e-56 < c < -6.5000000000000004e-198 or -3.6000000000000001e-287 < c < 5.0000000000000002e-23Initial program 78.5%
sub-neg78.5%
associate-+l+78.5%
fma-def78.5%
+-commutative78.5%
fma-def78.5%
sub-neg78.5%
+-commutative78.5%
*-commutative78.5%
distribute-rgt-neg-in78.5%
fma-def78.5%
*-commutative78.5%
distribute-rgt-neg-in78.5%
sub-neg78.5%
distribute-neg-in78.5%
unsub-neg78.5%
Simplified78.5%
Taylor expanded in a around inf 55.9%
+-commutative55.9%
mul-1-neg55.9%
unsub-neg55.9%
Simplified55.9%
if -6.5000000000000004e-198 < c < -3.6000000000000001e-287 or 5.0000000000000002e-23 < c < 3.00000000000000006e91Initial program 76.9%
cancel-sign-sub76.9%
cancel-sign-sub-inv76.9%
*-commutative76.9%
*-commutative76.9%
remove-double-neg76.9%
*-commutative76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in z around -inf 72.9%
Simplified72.9%
Taylor expanded in i around inf 60.9%
mul-1-neg60.9%
unsub-neg60.9%
*-commutative60.9%
Simplified60.9%
if 3.00000000000000006e91 < c < 2.69999999999999985e104Initial program 50.0%
cancel-sign-sub50.0%
cancel-sign-sub-inv50.0%
*-commutative50.0%
*-commutative50.0%
remove-double-neg50.0%
*-commutative50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in z around -inf 26.3%
Simplified26.3%
Taylor expanded in j around 0 51.3%
Taylor expanded in y around inf 75.5%
Final simplification58.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -1.16e+35)
t_2
(if (<= y -1.95e-11)
(* i (- (* a b) (* y j)))
(if (<= y -4.6e-50)
(* c (- (* t j) (* z b)))
(if (<= y -8.5e-141)
t_1
(if (<= y 7.2e-284)
(* b (- (* a i) (* z c)))
(if (<= y 11.2) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.16e+35) {
tmp = t_2;
} else if (y <= -1.95e-11) {
tmp = i * ((a * b) - (y * j));
} else if (y <= -4.6e-50) {
tmp = c * ((t * j) - (z * b));
} else if (y <= -8.5e-141) {
tmp = t_1;
} else if (y <= 7.2e-284) {
tmp = b * ((a * i) - (z * c));
} else if (y <= 11.2) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-1.16d+35)) then
tmp = t_2
else if (y <= (-1.95d-11)) then
tmp = i * ((a * b) - (y * j))
else if (y <= (-4.6d-50)) then
tmp = c * ((t * j) - (z * b))
else if (y <= (-8.5d-141)) then
tmp = t_1
else if (y <= 7.2d-284) then
tmp = b * ((a * i) - (z * c))
else if (y <= 11.2d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.16e+35) {
tmp = t_2;
} else if (y <= -1.95e-11) {
tmp = i * ((a * b) - (y * j));
} else if (y <= -4.6e-50) {
tmp = c * ((t * j) - (z * b));
} else if (y <= -8.5e-141) {
tmp = t_1;
} else if (y <= 7.2e-284) {
tmp = b * ((a * i) - (z * c));
} else if (y <= 11.2) {
tmp = t_1;
} 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 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.16e+35: tmp = t_2 elif y <= -1.95e-11: tmp = i * ((a * b) - (y * j)) elif y <= -4.6e-50: tmp = c * ((t * j) - (z * b)) elif y <= -8.5e-141: tmp = t_1 elif y <= 7.2e-284: tmp = b * ((a * i) - (z * c)) elif y <= 11.2: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.16e+35) tmp = t_2; elseif (y <= -1.95e-11) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (y <= -4.6e-50) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= -8.5e-141) tmp = t_1; elseif (y <= 7.2e-284) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (y <= 11.2) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.16e+35) tmp = t_2; elseif (y <= -1.95e-11) tmp = i * ((a * b) - (y * j)); elseif (y <= -4.6e-50) tmp = c * ((t * j) - (z * b)); elseif (y <= -8.5e-141) tmp = t_1; elseif (y <= 7.2e-284) tmp = b * ((a * i) - (z * c)); elseif (y <= 11.2) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.16e+35], t$95$2, If[LessEqual[y, -1.95e-11], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.6e-50], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -8.5e-141], t$95$1, If[LessEqual[y, 7.2e-284], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 11.2], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.16 \cdot 10^{+35}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.95 \cdot 10^{-11}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;y \leq -4.6 \cdot 10^{-50}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{-141}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-284}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 11.2:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.1600000000000001e35 or 11.199999999999999 < y Initial program 62.9%
cancel-sign-sub62.9%
cancel-sign-sub-inv62.9%
*-commutative62.9%
*-commutative62.9%
remove-double-neg62.9%
*-commutative62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in z around -inf 64.0%
Simplified65.7%
Taylor expanded in y around inf 61.2%
+-commutative61.2%
mul-1-neg61.2%
unsub-neg61.2%
Simplified61.2%
if -1.1600000000000001e35 < y < -1.95000000000000005e-11Initial program 78.7%
cancel-sign-sub78.7%
cancel-sign-sub-inv78.7%
*-commutative78.7%
*-commutative78.7%
remove-double-neg78.7%
*-commutative78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in z around -inf 88.7%
Simplified88.7%
Taylor expanded in i around inf 88.8%
mul-1-neg88.8%
unsub-neg88.8%
*-commutative88.8%
Simplified88.8%
if -1.95000000000000005e-11 < y < -4.60000000000000039e-50Initial program 86.6%
+-commutative86.6%
fma-def86.6%
*-commutative86.6%
*-commutative86.6%
*-commutative86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in c around inf 54.4%
if -4.60000000000000039e-50 < y < -8.50000000000000021e-141 or 7.2000000000000004e-284 < y < 11.199999999999999Initial program 77.1%
sub-neg77.1%
associate-+l+77.1%
fma-def78.5%
+-commutative78.5%
fma-def78.5%
sub-neg78.5%
+-commutative78.5%
*-commutative78.5%
distribute-rgt-neg-in78.5%
fma-def78.5%
*-commutative78.5%
distribute-rgt-neg-in78.5%
sub-neg78.5%
distribute-neg-in78.5%
unsub-neg78.5%
Simplified79.9%
Taylor expanded in t around inf 59.3%
*-commutative59.3%
mul-1-neg59.3%
unsub-neg59.3%
Simplified59.3%
if -8.50000000000000021e-141 < y < 7.2000000000000004e-284Initial program 81.5%
cancel-sign-sub81.5%
cancel-sign-sub-inv81.5%
*-commutative81.5%
*-commutative81.5%
remove-double-neg81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in b around inf 70.9%
Final simplification62.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -85000000.0)
t_2
(if (<= y -1.9e-143)
t_1
(if (<= y 2.8e-284)
(* b (- (* a i) (* z c)))
(if (<= y 1e-95)
t_1
(if (<= y 1.05e+57)
(* a (- (* b i) (* x t)))
(if (<= y 8e+68) (* j (- (* t c) (* y 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -85000000.0) {
tmp = t_2;
} else if (y <= -1.9e-143) {
tmp = t_1;
} else if (y <= 2.8e-284) {
tmp = b * ((a * i) - (z * c));
} else if (y <= 1e-95) {
tmp = t_1;
} else if (y <= 1.05e+57) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 8e+68) {
tmp = j * ((t * c) - (y * 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 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-85000000.0d0)) then
tmp = t_2
else if (y <= (-1.9d-143)) then
tmp = t_1
else if (y <= 2.8d-284) then
tmp = b * ((a * i) - (z * c))
else if (y <= 1d-95) then
tmp = t_1
else if (y <= 1.05d+57) then
tmp = a * ((b * i) - (x * t))
else if (y <= 8d+68) then
tmp = j * ((t * c) - (y * 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -85000000.0) {
tmp = t_2;
} else if (y <= -1.9e-143) {
tmp = t_1;
} else if (y <= 2.8e-284) {
tmp = b * ((a * i) - (z * c));
} else if (y <= 1e-95) {
tmp = t_1;
} else if (y <= 1.05e+57) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 8e+68) {
tmp = j * ((t * c) - (y * i));
} 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 = y * ((x * z) - (i * j)) tmp = 0 if y <= -85000000.0: tmp = t_2 elif y <= -1.9e-143: tmp = t_1 elif y <= 2.8e-284: tmp = b * ((a * i) - (z * c)) elif y <= 1e-95: tmp = t_1 elif y <= 1.05e+57: tmp = a * ((b * i) - (x * t)) elif y <= 8e+68: tmp = j * ((t * c) - (y * i)) 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(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -85000000.0) tmp = t_2; elseif (y <= -1.9e-143) tmp = t_1; elseif (y <= 2.8e-284) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (y <= 1e-95) tmp = t_1; elseif (y <= 1.05e+57) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (y <= 8e+68) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); 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 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -85000000.0) tmp = t_2; elseif (y <= -1.9e-143) tmp = t_1; elseif (y <= 2.8e-284) tmp = b * ((a * i) - (z * c)); elseif (y <= 1e-95) tmp = t_1; elseif (y <= 1.05e+57) tmp = a * ((b * i) - (x * t)); elseif (y <= 8e+68) tmp = j * ((t * c) - (y * 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -85000000.0], t$95$2, If[LessEqual[y, -1.9e-143], t$95$1, If[LessEqual[y, 2.8e-284], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e-95], t$95$1, If[LessEqual[y, 1.05e+57], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e+68], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $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 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -85000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.9 \cdot 10^{-143}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-284}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 10^{-95}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{+57}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 8 \cdot 10^{+68}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -8.5e7 or 7.99999999999999962e68 < y Initial program 61.7%
cancel-sign-sub61.7%
cancel-sign-sub-inv61.7%
*-commutative61.7%
*-commutative61.7%
remove-double-neg61.7%
*-commutative61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in z around -inf 61.9%
Simplified63.8%
Taylor expanded in y around inf 63.3%
+-commutative63.3%
mul-1-neg63.3%
unsub-neg63.3%
Simplified63.3%
if -8.5e7 < y < -1.89999999999999991e-143 or 2.8000000000000003e-284 < y < 9.99999999999999989e-96Initial program 80.4%
sub-neg80.4%
associate-+l+80.4%
fma-def80.4%
+-commutative80.4%
fma-def80.4%
sub-neg80.4%
+-commutative80.4%
*-commutative80.4%
distribute-rgt-neg-in80.4%
fma-def80.4%
*-commutative80.4%
distribute-rgt-neg-in80.4%
sub-neg80.4%
distribute-neg-in80.4%
unsub-neg80.4%
Simplified80.4%
Taylor expanded in t around inf 57.7%
*-commutative57.7%
mul-1-neg57.7%
unsub-neg57.7%
Simplified57.7%
if -1.89999999999999991e-143 < y < 2.8000000000000003e-284Initial program 81.5%
cancel-sign-sub81.5%
cancel-sign-sub-inv81.5%
*-commutative81.5%
*-commutative81.5%
remove-double-neg81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in b around inf 70.9%
if 9.99999999999999989e-96 < y < 1.04999999999999995e57Initial program 75.7%
sub-neg75.7%
associate-+l+75.7%
fma-def78.8%
+-commutative78.8%
fma-def78.8%
sub-neg78.8%
+-commutative78.8%
*-commutative78.8%
distribute-rgt-neg-in78.8%
fma-def78.8%
*-commutative78.8%
distribute-rgt-neg-in78.8%
sub-neg78.8%
distribute-neg-in78.8%
unsub-neg78.8%
Simplified81.8%
Taylor expanded in a around inf 58.9%
+-commutative58.9%
mul-1-neg58.9%
unsub-neg58.9%
Simplified58.9%
if 1.04999999999999995e57 < y < 7.99999999999999962e68Initial program 66.7%
cancel-sign-sub66.7%
cancel-sign-sub-inv66.7%
*-commutative66.7%
*-commutative66.7%
remove-double-neg66.7%
*-commutative66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in z around -inf 100.0%
Simplified100.0%
Taylor expanded in j around inf 100.0%
Final simplification62.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* b c) (- z))) (t_2 (* t (* c j))))
(if (<= c -1.65e+165)
t_2
(if (<= c -5.3e+113)
t_1
(if (<= c -1.5e-55)
t_2
(if (<= c 4.9e-64)
(* x (* t (- a)))
(if (<= c 9.2e+114)
(* y (* x z))
(if (<= c 7.6e+171)
(* t (* x (- a)))
(if (<= c 2.1e+227) t_1 (* j (* t c)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * c) * -z;
double t_2 = t * (c * j);
double tmp;
if (c <= -1.65e+165) {
tmp = t_2;
} else if (c <= -5.3e+113) {
tmp = t_1;
} else if (c <= -1.5e-55) {
tmp = t_2;
} else if (c <= 4.9e-64) {
tmp = x * (t * -a);
} else if (c <= 9.2e+114) {
tmp = y * (x * z);
} else if (c <= 7.6e+171) {
tmp = t * (x * -a);
} else if (c <= 2.1e+227) {
tmp = t_1;
} else {
tmp = j * (t * 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) :: tmp
t_1 = (b * c) * -z
t_2 = t * (c * j)
if (c <= (-1.65d+165)) then
tmp = t_2
else if (c <= (-5.3d+113)) then
tmp = t_1
else if (c <= (-1.5d-55)) then
tmp = t_2
else if (c <= 4.9d-64) then
tmp = x * (t * -a)
else if (c <= 9.2d+114) then
tmp = y * (x * z)
else if (c <= 7.6d+171) then
tmp = t * (x * -a)
else if (c <= 2.1d+227) then
tmp = t_1
else
tmp = j * (t * 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 = (b * c) * -z;
double t_2 = t * (c * j);
double tmp;
if (c <= -1.65e+165) {
tmp = t_2;
} else if (c <= -5.3e+113) {
tmp = t_1;
} else if (c <= -1.5e-55) {
tmp = t_2;
} else if (c <= 4.9e-64) {
tmp = x * (t * -a);
} else if (c <= 9.2e+114) {
tmp = y * (x * z);
} else if (c <= 7.6e+171) {
tmp = t * (x * -a);
} else if (c <= 2.1e+227) {
tmp = t_1;
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * c) * -z t_2 = t * (c * j) tmp = 0 if c <= -1.65e+165: tmp = t_2 elif c <= -5.3e+113: tmp = t_1 elif c <= -1.5e-55: tmp = t_2 elif c <= 4.9e-64: tmp = x * (t * -a) elif c <= 9.2e+114: tmp = y * (x * z) elif c <= 7.6e+171: tmp = t * (x * -a) elif c <= 2.1e+227: tmp = t_1 else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * c) * Float64(-z)) t_2 = Float64(t * Float64(c * j)) tmp = 0.0 if (c <= -1.65e+165) tmp = t_2; elseif (c <= -5.3e+113) tmp = t_1; elseif (c <= -1.5e-55) tmp = t_2; elseif (c <= 4.9e-64) tmp = Float64(x * Float64(t * Float64(-a))); elseif (c <= 9.2e+114) tmp = Float64(y * Float64(x * z)); elseif (c <= 7.6e+171) tmp = Float64(t * Float64(x * Float64(-a))); elseif (c <= 2.1e+227) tmp = t_1; else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (b * c) * -z; t_2 = t * (c * j); tmp = 0.0; if (c <= -1.65e+165) tmp = t_2; elseif (c <= -5.3e+113) tmp = t_1; elseif (c <= -1.5e-55) tmp = t_2; elseif (c <= 4.9e-64) tmp = x * (t * -a); elseif (c <= 9.2e+114) tmp = y * (x * z); elseif (c <= 7.6e+171) tmp = t * (x * -a); elseif (c <= 2.1e+227) tmp = t_1; else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] * (-z)), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.65e+165], t$95$2, If[LessEqual[c, -5.3e+113], t$95$1, If[LessEqual[c, -1.5e-55], t$95$2, If[LessEqual[c, 4.9e-64], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.2e+114], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.6e+171], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.1e+227], t$95$1, N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot c\right) \cdot \left(-z\right)\\
t_2 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -1.65 \cdot 10^{+165}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -5.3 \cdot 10^{+113}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.5 \cdot 10^{-55}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 4.9 \cdot 10^{-64}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;c \leq 9.2 \cdot 10^{+114}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 7.6 \cdot 10^{+171}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;c \leq 2.1 \cdot 10^{+227}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if c < -1.6499999999999999e165 or -5.29999999999999967e113 < c < -1.50000000000000008e-55Initial program 69.6%
cancel-sign-sub69.6%
cancel-sign-sub-inv69.6%
*-commutative69.6%
*-commutative69.6%
remove-double-neg69.6%
*-commutative69.6%
*-commutative69.6%
Simplified69.6%
Taylor expanded in b around 0 64.3%
Taylor expanded in t around -inf 75.4%
+-commutative75.4%
+-commutative75.4%
mul-1-neg75.4%
unsub-neg75.4%
mul-1-neg75.4%
distribute-rgt-neg-in75.4%
mul-1-neg75.4%
distribute-lft-in77.3%
mul-1-neg77.3%
unsub-neg77.3%
*-commutative77.3%
mul-1-neg77.3%
unsub-neg77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in c around inf 47.8%
*-commutative47.8%
associate-*l*53.2%
*-commutative53.2%
Simplified53.2%
if -1.6499999999999999e165 < c < -5.29999999999999967e113 or 7.6000000000000004e171 < c < 2.10000000000000019e227Initial program 65.5%
cancel-sign-sub65.5%
cancel-sign-sub-inv65.5%
*-commutative65.5%
*-commutative65.5%
remove-double-neg65.5%
*-commutative65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in z around inf 69.1%
Taylor expanded in y around 0 51.4%
neg-mul-151.4%
distribute-rgt-neg-in51.4%
Simplified51.4%
if -1.50000000000000008e-55 < c < 4.9000000000000002e-64Initial program 78.3%
cancel-sign-sub78.3%
cancel-sign-sub-inv78.3%
*-commutative78.3%
*-commutative78.3%
remove-double-neg78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in b around 0 61.9%
Taylor expanded in t around -inf 61.4%
+-commutative61.4%
+-commutative61.4%
mul-1-neg61.4%
unsub-neg61.4%
mul-1-neg61.4%
distribute-rgt-neg-in61.4%
mul-1-neg61.4%
distribute-lft-in62.4%
mul-1-neg62.4%
unsub-neg62.4%
*-commutative62.4%
mul-1-neg62.4%
unsub-neg62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in a around inf 34.5%
mul-1-neg34.5%
associate-*r*37.4%
distribute-lft-neg-in37.4%
distribute-rgt-neg-in37.4%
Simplified37.4%
if 4.9000000000000002e-64 < c < 9.2000000000000001e114Initial program 72.6%
cancel-sign-sub72.6%
cancel-sign-sub-inv72.6%
*-commutative72.6%
*-commutative72.6%
remove-double-neg72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in z around -inf 64.6%
Simplified66.9%
Taylor expanded in j around 0 58.5%
Taylor expanded in y around inf 38.7%
if 9.2000000000000001e114 < c < 7.6000000000000004e171Initial program 76.6%
cancel-sign-sub76.6%
cancel-sign-sub-inv76.6%
*-commutative76.6%
*-commutative76.6%
remove-double-neg76.6%
*-commutative76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in z around -inf 77.0%
Simplified77.0%
Taylor expanded in t around inf 54.4%
*-commutative54.4%
mul-1-neg54.4%
unsub-neg54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in c around 0 48.2%
mul-1-neg48.2%
*-commutative48.2%
distribute-rgt-neg-in48.2%
Simplified48.2%
if 2.10000000000000019e227 < c Initial program 48.3%
cancel-sign-sub48.3%
cancel-sign-sub-inv48.3%
*-commutative48.3%
*-commutative48.3%
remove-double-neg48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in z around -inf 66.7%
Simplified71.4%
Taylor expanded in j around inf 64.1%
Taylor expanded in c around inf 64.2%
*-commutative64.2%
Simplified64.2%
Final simplification45.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* c j))))
(if (<= c -2.8e+165)
t_1
(if (<= c -6.8e+120)
(* z (* x y))
(if (<= c -2.6e-56)
t_1
(if (<= c 1.6e-57)
(* t (* x (- a)))
(if (<= c 4.7e+110) (* y (* x z)) (* j (* t c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (c <= -2.8e+165) {
tmp = t_1;
} else if (c <= -6.8e+120) {
tmp = z * (x * y);
} else if (c <= -2.6e-56) {
tmp = t_1;
} else if (c <= 1.6e-57) {
tmp = t * (x * -a);
} else if (c <= 4.7e+110) {
tmp = y * (x * z);
} else {
tmp = j * (t * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (c * j)
if (c <= (-2.8d+165)) then
tmp = t_1
else if (c <= (-6.8d+120)) then
tmp = z * (x * y)
else if (c <= (-2.6d-56)) then
tmp = t_1
else if (c <= 1.6d-57) then
tmp = t * (x * -a)
else if (c <= 4.7d+110) then
tmp = y * (x * z)
else
tmp = j * (t * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (c <= -2.8e+165) {
tmp = t_1;
} else if (c <= -6.8e+120) {
tmp = z * (x * y);
} else if (c <= -2.6e-56) {
tmp = t_1;
} else if (c <= 1.6e-57) {
tmp = t * (x * -a);
} else if (c <= 4.7e+110) {
tmp = y * (x * z);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (c * j) tmp = 0 if c <= -2.8e+165: tmp = t_1 elif c <= -6.8e+120: tmp = z * (x * y) elif c <= -2.6e-56: tmp = t_1 elif c <= 1.6e-57: tmp = t * (x * -a) elif c <= 4.7e+110: tmp = y * (x * z) else: tmp = j * (t * c) 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 <= -2.8e+165) tmp = t_1; elseif (c <= -6.8e+120) tmp = Float64(z * Float64(x * y)); elseif (c <= -2.6e-56) tmp = t_1; elseif (c <= 1.6e-57) tmp = Float64(t * Float64(x * Float64(-a))); elseif (c <= 4.7e+110) tmp = Float64(y * Float64(x * z)); else tmp = Float64(j * Float64(t * c)); 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 <= -2.8e+165) tmp = t_1; elseif (c <= -6.8e+120) tmp = z * (x * y); elseif (c <= -2.6e-56) tmp = t_1; elseif (c <= 1.6e-57) tmp = t * (x * -a); elseif (c <= 4.7e+110) tmp = y * (x * z); else tmp = j * (t * c); 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, -2.8e+165], t$95$1, If[LessEqual[c, -6.8e+120], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.6e-56], t$95$1, If[LessEqual[c, 1.6e-57], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.7e+110], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -2.8 \cdot 10^{+165}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -6.8 \cdot 10^{+120}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq -2.6 \cdot 10^{-56}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{-57}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;c \leq 4.7 \cdot 10^{+110}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if c < -2.7999999999999998e165 or -6.79999999999999998e120 < c < -2.59999999999999997e-56Initial program 70.7%
cancel-sign-sub70.7%
cancel-sign-sub-inv70.7%
*-commutative70.7%
*-commutative70.7%
remove-double-neg70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in b around 0 62.0%
Taylor expanded in t around -inf 72.7%
+-commutative72.7%
+-commutative72.7%
mul-1-neg72.7%
unsub-neg72.7%
mul-1-neg72.7%
distribute-rgt-neg-in72.7%
mul-1-neg72.7%
distribute-lft-in74.5%
mul-1-neg74.5%
unsub-neg74.5%
*-commutative74.5%
mul-1-neg74.5%
unsub-neg74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in c around inf 46.1%
*-commutative46.1%
associate-*l*51.4%
*-commutative51.4%
Simplified51.4%
if -2.7999999999999998e165 < c < -6.79999999999999998e120Initial program 59.0%
cancel-sign-sub59.0%
cancel-sign-sub-inv59.0%
*-commutative59.0%
*-commutative59.0%
remove-double-neg59.0%
*-commutative59.0%
*-commutative59.0%
Simplified59.0%
Taylor expanded in z around inf 67.9%
Taylor expanded in y around inf 44.4%
if -2.59999999999999997e-56 < c < 1.6e-57Initial program 78.3%
cancel-sign-sub78.3%
cancel-sign-sub-inv78.3%
*-commutative78.3%
*-commutative78.3%
remove-double-neg78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in z around -inf 71.2%
Simplified76.2%
Taylor expanded in t around inf 39.9%
*-commutative39.9%
mul-1-neg39.9%
unsub-neg39.9%
*-commutative39.9%
Simplified39.9%
Taylor expanded in c around 0 37.4%
mul-1-neg37.4%
*-commutative37.4%
distribute-rgt-neg-in37.4%
Simplified37.4%
if 1.6e-57 < c < 4.6999999999999998e110Initial program 74.3%
cancel-sign-sub74.3%
cancel-sign-sub-inv74.3%
*-commutative74.3%
*-commutative74.3%
remove-double-neg74.3%
*-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in z around -inf 66.1%
Simplified68.5%
Taylor expanded in j around 0 59.9%
Taylor expanded in y around inf 39.6%
if 4.6999999999999998e110 < c Initial program 60.8%
cancel-sign-sub60.8%
cancel-sign-sub-inv60.8%
*-commutative60.8%
*-commutative60.8%
remove-double-neg60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in z around -inf 73.1%
Simplified75.2%
Taylor expanded in j around inf 53.8%
Taylor expanded in c around inf 43.7%
*-commutative43.7%
Simplified43.7%
Final simplification42.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* c j))))
(if (<= c -1.55e+165)
t_1
(if (<= c -2.55e+119)
(* z (* x y))
(if (<= c -8.2e-56)
t_1
(if (<= c 8.5e-60)
(* x (* t (- a)))
(if (<= c 8.6e+111) (* y (* x z)) (* j (* t c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (c <= -1.55e+165) {
tmp = t_1;
} else if (c <= -2.55e+119) {
tmp = z * (x * y);
} else if (c <= -8.2e-56) {
tmp = t_1;
} else if (c <= 8.5e-60) {
tmp = x * (t * -a);
} else if (c <= 8.6e+111) {
tmp = y * (x * z);
} else {
tmp = j * (t * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (c * j)
if (c <= (-1.55d+165)) then
tmp = t_1
else if (c <= (-2.55d+119)) then
tmp = z * (x * y)
else if (c <= (-8.2d-56)) then
tmp = t_1
else if (c <= 8.5d-60) then
tmp = x * (t * -a)
else if (c <= 8.6d+111) then
tmp = y * (x * z)
else
tmp = j * (t * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (c <= -1.55e+165) {
tmp = t_1;
} else if (c <= -2.55e+119) {
tmp = z * (x * y);
} else if (c <= -8.2e-56) {
tmp = t_1;
} else if (c <= 8.5e-60) {
tmp = x * (t * -a);
} else if (c <= 8.6e+111) {
tmp = y * (x * z);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (c * j) tmp = 0 if c <= -1.55e+165: tmp = t_1 elif c <= -2.55e+119: tmp = z * (x * y) elif c <= -8.2e-56: tmp = t_1 elif c <= 8.5e-60: tmp = x * (t * -a) elif c <= 8.6e+111: tmp = y * (x * z) else: tmp = j * (t * c) 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.55e+165) tmp = t_1; elseif (c <= -2.55e+119) tmp = Float64(z * Float64(x * y)); elseif (c <= -8.2e-56) tmp = t_1; elseif (c <= 8.5e-60) tmp = Float64(x * Float64(t * Float64(-a))); elseif (c <= 8.6e+111) tmp = Float64(y * Float64(x * z)); else tmp = Float64(j * Float64(t * c)); 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.55e+165) tmp = t_1; elseif (c <= -2.55e+119) tmp = z * (x * y); elseif (c <= -8.2e-56) tmp = t_1; elseif (c <= 8.5e-60) tmp = x * (t * -a); elseif (c <= 8.6e+111) tmp = y * (x * z); else tmp = j * (t * c); 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.55e+165], t$95$1, If[LessEqual[c, -2.55e+119], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.2e-56], t$95$1, If[LessEqual[c, 8.5e-60], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8.6e+111], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -1.55 \cdot 10^{+165}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -2.55 \cdot 10^{+119}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq -8.2 \cdot 10^{-56}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{-60}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;c \leq 8.6 \cdot 10^{+111}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if c < -1.5500000000000001e165 or -2.54999999999999992e119 < c < -8.2000000000000003e-56Initial program 70.7%
cancel-sign-sub70.7%
cancel-sign-sub-inv70.7%
*-commutative70.7%
*-commutative70.7%
remove-double-neg70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in b around 0 62.0%
Taylor expanded in t around -inf 72.7%
+-commutative72.7%
+-commutative72.7%
mul-1-neg72.7%
unsub-neg72.7%
mul-1-neg72.7%
distribute-rgt-neg-in72.7%
mul-1-neg72.7%
distribute-lft-in74.5%
mul-1-neg74.5%
unsub-neg74.5%
*-commutative74.5%
mul-1-neg74.5%
unsub-neg74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in c around inf 46.1%
*-commutative46.1%
associate-*l*51.4%
*-commutative51.4%
Simplified51.4%
if -1.5500000000000001e165 < c < -2.54999999999999992e119Initial program 59.0%
cancel-sign-sub59.0%
cancel-sign-sub-inv59.0%
*-commutative59.0%
*-commutative59.0%
remove-double-neg59.0%
*-commutative59.0%
*-commutative59.0%
Simplified59.0%
Taylor expanded in z around inf 67.9%
Taylor expanded in y around inf 44.4%
if -8.2000000000000003e-56 < c < 8.50000000000000044e-60Initial program 78.3%
cancel-sign-sub78.3%
cancel-sign-sub-inv78.3%
*-commutative78.3%
*-commutative78.3%
remove-double-neg78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in b around 0 61.9%
Taylor expanded in t around -inf 61.4%
+-commutative61.4%
+-commutative61.4%
mul-1-neg61.4%
unsub-neg61.4%
mul-1-neg61.4%
distribute-rgt-neg-in61.4%
mul-1-neg61.4%
distribute-lft-in62.4%
mul-1-neg62.4%
unsub-neg62.4%
*-commutative62.4%
mul-1-neg62.4%
unsub-neg62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in a around inf 34.5%
mul-1-neg34.5%
associate-*r*37.4%
distribute-lft-neg-in37.4%
distribute-rgt-neg-in37.4%
Simplified37.4%
if 8.50000000000000044e-60 < c < 8.59999999999999987e111Initial program 74.3%
cancel-sign-sub74.3%
cancel-sign-sub-inv74.3%
*-commutative74.3%
*-commutative74.3%
remove-double-neg74.3%
*-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in z around -inf 66.1%
Simplified68.5%
Taylor expanded in j around 0 59.9%
Taylor expanded in y around inf 39.6%
if 8.59999999999999987e111 < c Initial program 60.8%
cancel-sign-sub60.8%
cancel-sign-sub-inv60.8%
*-commutative60.8%
*-commutative60.8%
remove-double-neg60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in z around -inf 73.1%
Simplified75.2%
Taylor expanded in j around inf 53.8%
Taylor expanded in c around inf 43.7%
*-commutative43.7%
Simplified43.7%
Final simplification42.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -4.6e-56) (not (<= c 1.05e+93))) (* c (- (* t j) (* z b))) (* a (- (* b i) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -4.6e-56) || !(c <= 1.05e+93)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-4.6d-56)) .or. (.not. (c <= 1.05d+93))) then
tmp = c * ((t * j) - (z * b))
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -4.6e-56) || !(c <= 1.05e+93)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -4.6e-56) or not (c <= 1.05e+93): tmp = c * ((t * j) - (z * b)) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -4.6e-56) || !(c <= 1.05e+93)) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -4.6e-56) || ~((c <= 1.05e+93))) tmp = c * ((t * j) - (z * b)); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -4.6e-56], N[Not[LessEqual[c, 1.05e+93]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.6 \cdot 10^{-56} \lor \neg \left(c \leq 1.05 \cdot 10^{+93}\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if c < -4.60000000000000005e-56 or 1.0499999999999999e93 < c Initial program 65.4%
+-commutative65.4%
fma-def66.2%
*-commutative66.2%
*-commutative66.2%
*-commutative66.2%
*-commutative66.2%
Simplified66.2%
Taylor expanded in c around inf 58.1%
if -4.60000000000000005e-56 < c < 1.0499999999999999e93Initial program 77.6%
sub-neg77.6%
associate-+l+77.6%
fma-def77.6%
+-commutative77.6%
fma-def77.6%
sub-neg77.6%
+-commutative77.6%
*-commutative77.6%
distribute-rgt-neg-in77.6%
fma-def77.6%
*-commutative77.6%
distribute-rgt-neg-in77.6%
sub-neg77.6%
distribute-neg-in77.6%
unsub-neg77.6%
Simplified77.6%
Taylor expanded in a around inf 50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
Simplified50.7%
Final simplification54.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -7.4e+21) (not (<= t 4.1e-32))) (* t (- (* c j) (* x a))) (* i (- (* a b) (* y j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -7.4e+21) || !(t <= 4.1e-32)) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-7.4d+21)) .or. (.not. (t <= 4.1d-32))) then
tmp = t * ((c * j) - (x * a))
else
tmp = i * ((a * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -7.4e+21) || !(t <= 4.1e-32)) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -7.4e+21) or not (t <= 4.1e-32): tmp = t * ((c * j) - (x * a)) else: tmp = i * ((a * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -7.4e+21) || !(t <= 4.1e-32)) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -7.4e+21) || ~((t <= 4.1e-32))) tmp = t * ((c * j) - (x * a)); else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -7.4e+21], N[Not[LessEqual[t, 4.1e-32]], $MachinePrecision]], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.4 \cdot 10^{+21} \lor \neg \left(t \leq 4.1 \cdot 10^{-32}\right):\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if t < -7.4e21 or 4.09999999999999975e-32 < t Initial program 64.1%
sub-neg64.1%
associate-+l+64.1%
fma-def65.7%
+-commutative65.7%
fma-def65.7%
sub-neg65.7%
+-commutative65.7%
*-commutative65.7%
distribute-rgt-neg-in65.7%
fma-def65.7%
*-commutative65.7%
distribute-rgt-neg-in65.7%
sub-neg65.7%
distribute-neg-in65.7%
unsub-neg65.7%
Simplified66.5%
Taylor expanded in t around inf 64.0%
*-commutative64.0%
mul-1-neg64.0%
unsub-neg64.0%
Simplified64.0%
if -7.4e21 < t < 4.09999999999999975e-32Initial program 79.6%
cancel-sign-sub79.6%
cancel-sign-sub-inv79.6%
*-commutative79.6%
*-commutative79.6%
remove-double-neg79.6%
*-commutative79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in z around -inf 81.8%
Simplified81.8%
Taylor expanded in i around inf 53.0%
mul-1-neg53.0%
unsub-neg53.0%
*-commutative53.0%
Simplified53.0%
Final simplification58.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= y -1.75e+186) (* z (* x y)) (if (<= y 1.4e+101) (* a (- (* b i) (* x t))) (* y (* x z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.75e+186) {
tmp = z * (x * y);
} else if (y <= 1.4e+101) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-1.75d+186)) then
tmp = z * (x * y)
else if (y <= 1.4d+101) then
tmp = a * ((b * i) - (x * t))
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.75e+186) {
tmp = z * (x * y);
} else if (y <= 1.4e+101) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.75e+186: tmp = z * (x * y) elif y <= 1.4e+101: tmp = a * ((b * i) - (x * t)) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.75e+186) tmp = Float64(z * Float64(x * y)); elseif (y <= 1.4e+101) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.75e+186) tmp = z * (x * y); elseif (y <= 1.4e+101) tmp = a * ((b * i) - (x * t)); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.75e+186], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e+101], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.75 \cdot 10^{+186}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{+101}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -1.74999999999999993e186Initial program 58.5%
cancel-sign-sub58.5%
cancel-sign-sub-inv58.5%
*-commutative58.5%
*-commutative58.5%
remove-double-neg58.5%
*-commutative58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in z around inf 52.9%
Taylor expanded in y around inf 49.6%
if -1.74999999999999993e186 < y < 1.39999999999999991e101Initial program 77.3%
sub-neg77.3%
associate-+l+77.3%
fma-def78.3%
+-commutative78.3%
fma-def78.3%
sub-neg78.3%
+-commutative78.3%
*-commutative78.3%
distribute-rgt-neg-in78.3%
fma-def78.3%
*-commutative78.3%
distribute-rgt-neg-in78.3%
sub-neg78.3%
distribute-neg-in78.3%
unsub-neg78.3%
Simplified78.9%
Taylor expanded in a around inf 47.7%
+-commutative47.7%
mul-1-neg47.7%
unsub-neg47.7%
Simplified47.7%
if 1.39999999999999991e101 < y Initial program 54.5%
cancel-sign-sub54.5%
cancel-sign-sub-inv54.5%
*-commutative54.5%
*-commutative54.5%
remove-double-neg54.5%
*-commutative54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in z around -inf 52.4%
Simplified52.4%
Taylor expanded in j around 0 55.4%
Taylor expanded in y around inf 48.1%
Final simplification47.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= t -1.75e+25)
t_1
(if (<= t -1.1e-222)
(* a (* b i))
(if (<= t 9.6e+21) (* y (* x z)) 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);
double tmp;
if (t <= -1.75e+25) {
tmp = t_1;
} else if (t <= -1.1e-222) {
tmp = a * (b * i);
} else if (t <= 9.6e+21) {
tmp = y * (x * z);
} 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)
if (t <= (-1.75d+25)) then
tmp = t_1
else if (t <= (-1.1d-222)) then
tmp = a * (b * i)
else if (t <= 9.6d+21) then
tmp = y * (x * z)
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);
double tmp;
if (t <= -1.75e+25) {
tmp = t_1;
} else if (t <= -1.1e-222) {
tmp = a * (b * i);
} else if (t <= 9.6e+21) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if t <= -1.75e+25: tmp = t_1 elif t <= -1.1e-222: tmp = a * (b * i) elif t <= 9.6e+21: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (t <= -1.75e+25) tmp = t_1; elseif (t <= -1.1e-222) tmp = Float64(a * Float64(b * i)); elseif (t <= 9.6e+21) tmp = Float64(y * Float64(x * z)); 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); tmp = 0.0; if (t <= -1.75e+25) tmp = t_1; elseif (t <= -1.1e-222) tmp = a * (b * i); elseif (t <= 9.6e+21) tmp = y * (x * z); 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[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.75e+25], t$95$1, If[LessEqual[t, -1.1e-222], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.6e+21], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;t \leq -1.75 \cdot 10^{+25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.1 \cdot 10^{-222}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq 9.6 \cdot 10^{+21}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.75e25 or 9.6e21 < t Initial program 61.9%
cancel-sign-sub61.9%
cancel-sign-sub-inv61.9%
*-commutative61.9%
*-commutative61.9%
remove-double-neg61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in b around 0 70.2%
Taylor expanded in t around -inf 68.4%
+-commutative68.4%
+-commutative68.4%
mul-1-neg68.4%
unsub-neg68.4%
mul-1-neg68.4%
distribute-rgt-neg-in68.4%
mul-1-neg68.4%
distribute-lft-in70.2%
mul-1-neg70.2%
unsub-neg70.2%
*-commutative70.2%
mul-1-neg70.2%
unsub-neg70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in c around inf 40.4%
if -1.75e25 < t < -1.1e-222Initial program 79.4%
sub-neg79.4%
associate-+l+79.4%
fma-def79.4%
+-commutative79.4%
fma-def79.4%
sub-neg79.4%
+-commutative79.4%
*-commutative79.4%
distribute-rgt-neg-in79.4%
fma-def79.4%
*-commutative79.4%
distribute-rgt-neg-in79.4%
sub-neg79.4%
distribute-neg-in79.4%
unsub-neg79.4%
Simplified79.4%
Taylor expanded in a around inf 50.0%
+-commutative50.0%
mul-1-neg50.0%
unsub-neg50.0%
Simplified50.0%
Taylor expanded in i around inf 48.0%
if -1.1e-222 < t < 9.6e21Initial program 79.3%
cancel-sign-sub79.3%
cancel-sign-sub-inv79.3%
*-commutative79.3%
*-commutative79.3%
remove-double-neg79.3%
*-commutative79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in z around -inf 82.4%
Simplified82.4%
Taylor expanded in j around 0 66.7%
Taylor expanded in y around inf 30.3%
Final simplification38.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -6.6e+26)
(* c (* t j))
(if (<= t -2.7e-223)
(* a (* b i))
(if (<= t 3.45e+22) (* y (* x z)) (* j (* t c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -6.6e+26) {
tmp = c * (t * j);
} else if (t <= -2.7e-223) {
tmp = a * (b * i);
} else if (t <= 3.45e+22) {
tmp = y * (x * z);
} else {
tmp = j * (t * 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 (t <= (-6.6d+26)) then
tmp = c * (t * j)
else if (t <= (-2.7d-223)) then
tmp = a * (b * i)
else if (t <= 3.45d+22) then
tmp = y * (x * z)
else
tmp = j * (t * 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 (t <= -6.6e+26) {
tmp = c * (t * j);
} else if (t <= -2.7e-223) {
tmp = a * (b * i);
} else if (t <= 3.45e+22) {
tmp = y * (x * z);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -6.6e+26: tmp = c * (t * j) elif t <= -2.7e-223: tmp = a * (b * i) elif t <= 3.45e+22: tmp = y * (x * z) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -6.6e+26) tmp = Float64(c * Float64(t * j)); elseif (t <= -2.7e-223) tmp = Float64(a * Float64(b * i)); elseif (t <= 3.45e+22) tmp = Float64(y * Float64(x * z)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -6.6e+26) tmp = c * (t * j); elseif (t <= -2.7e-223) tmp = a * (b * i); elseif (t <= 3.45e+22) tmp = y * (x * z); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -6.6e+26], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.7e-223], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.45e+22], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.6 \cdot 10^{+26}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq -2.7 \cdot 10^{-223}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq 3.45 \cdot 10^{+22}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if t < -6.59999999999999987e26Initial program 63.5%
cancel-sign-sub63.5%
cancel-sign-sub-inv63.5%
*-commutative63.5%
*-commutative63.5%
remove-double-neg63.5%
*-commutative63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in b around 0 78.9%
Taylor expanded in t around -inf 76.9%
+-commutative76.9%
+-commutative76.9%
mul-1-neg76.9%
unsub-neg76.9%
mul-1-neg76.9%
distribute-rgt-neg-in76.9%
mul-1-neg76.9%
distribute-lft-in76.9%
mul-1-neg76.9%
unsub-neg76.9%
*-commutative76.9%
mul-1-neg76.9%
unsub-neg76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in c around inf 43.7%
if -6.59999999999999987e26 < t < -2.69999999999999988e-223Initial program 79.4%
sub-neg79.4%
associate-+l+79.4%
fma-def79.4%
+-commutative79.4%
fma-def79.4%
sub-neg79.4%
+-commutative79.4%
*-commutative79.4%
distribute-rgt-neg-in79.4%
fma-def79.4%
*-commutative79.4%
distribute-rgt-neg-in79.4%
sub-neg79.4%
distribute-neg-in79.4%
unsub-neg79.4%
Simplified79.4%
Taylor expanded in a around inf 50.0%
+-commutative50.0%
mul-1-neg50.0%
unsub-neg50.0%
Simplified50.0%
Taylor expanded in i around inf 48.0%
if -2.69999999999999988e-223 < t < 3.4499999999999999e22Initial program 79.3%
cancel-sign-sub79.3%
cancel-sign-sub-inv79.3%
*-commutative79.3%
*-commutative79.3%
remove-double-neg79.3%
*-commutative79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in z around -inf 82.4%
Simplified82.4%
Taylor expanded in j around 0 66.7%
Taylor expanded in y around inf 30.3%
if 3.4499999999999999e22 < t Initial program 60.5%
cancel-sign-sub60.5%
cancel-sign-sub-inv60.5%
*-commutative60.5%
*-commutative60.5%
remove-double-neg60.5%
*-commutative60.5%
*-commutative60.5%
Simplified60.5%
Taylor expanded in z around -inf 60.9%
Simplified66.0%
Taylor expanded in j around inf 42.3%
Taylor expanded in c around inf 37.4%
*-commutative37.4%
Simplified37.4%
Final simplification38.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -8.5e+26) (not (<= t 1.55e-37))) (* c (* t j)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -8.5e+26) || !(t <= 1.55e-37)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-8.5d+26)) .or. (.not. (t <= 1.55d-37))) then
tmp = c * (t * j)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -8.5e+26) || !(t <= 1.55e-37)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -8.5e+26) or not (t <= 1.55e-37): tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -8.5e+26) || !(t <= 1.55e-37)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -8.5e+26) || ~((t <= 1.55e-37))) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -8.5e+26], N[Not[LessEqual[t, 1.55e-37]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.5 \cdot 10^{+26} \lor \neg \left(t \leq 1.55 \cdot 10^{-37}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if t < -8.5e26 or 1.54999999999999997e-37 < t Initial program 64.6%
cancel-sign-sub64.6%
cancel-sign-sub-inv64.6%
*-commutative64.6%
*-commutative64.6%
remove-double-neg64.6%
*-commutative64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in b around 0 71.8%
Taylor expanded in t around -inf 69.5%
+-commutative69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
mul-1-neg69.5%
distribute-rgt-neg-in69.5%
mul-1-neg69.5%
distribute-lft-in71.1%
mul-1-neg71.1%
unsub-neg71.1%
*-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in c around inf 37.6%
if -8.5e26 < t < 1.54999999999999997e-37Initial program 79.0%
sub-neg79.0%
associate-+l+79.0%
fma-def79.0%
+-commutative79.0%
fma-def79.0%
sub-neg79.0%
+-commutative79.0%
*-commutative79.0%
distribute-rgt-neg-in79.0%
fma-def79.0%
*-commutative79.0%
distribute-rgt-neg-in79.0%
sub-neg79.0%
distribute-neg-in79.0%
unsub-neg79.0%
Simplified79.0%
Taylor expanded in a around inf 39.3%
+-commutative39.3%
mul-1-neg39.3%
unsub-neg39.3%
Simplified39.3%
Taylor expanded in i around inf 35.5%
Final simplification36.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= x 2.2e-32) (* b (* a i)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= 2.2e-32) {
tmp = b * (a * i);
} else {
tmp = a * (b * 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 (x <= 2.2d-32) then
tmp = b * (a * i)
else
tmp = a * (b * 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 (x <= 2.2e-32) {
tmp = b * (a * i);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= 2.2e-32: tmp = b * (a * i) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= 2.2e-32) tmp = Float64(b * Float64(a * i)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= 2.2e-32) tmp = b * (a * i); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, 2.2e-32], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.2 \cdot 10^{-32}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if x < 2.2e-32Initial program 69.6%
sub-neg69.6%
associate-+l+69.6%
fma-def70.2%
+-commutative70.2%
fma-def70.2%
sub-neg70.2%
+-commutative70.2%
*-commutative70.2%
distribute-rgt-neg-in70.2%
fma-def70.2%
*-commutative70.2%
distribute-rgt-neg-in70.2%
sub-neg70.2%
distribute-neg-in70.2%
unsub-neg70.2%
Simplified70.2%
Taylor expanded in a around inf 37.6%
+-commutative37.6%
mul-1-neg37.6%
unsub-neg37.6%
Simplified37.6%
Taylor expanded in i around inf 19.5%
associate-*r*23.2%
*-commutative23.2%
Simplified23.2%
if 2.2e-32 < x Initial program 76.7%
sub-neg76.7%
associate-+l+76.7%
fma-def78.0%
+-commutative78.0%
fma-def78.0%
sub-neg78.0%
+-commutative78.0%
*-commutative78.0%
distribute-rgt-neg-in78.0%
fma-def78.0%
*-commutative78.0%
distribute-rgt-neg-in78.0%
sub-neg78.0%
distribute-neg-in78.0%
unsub-neg78.0%
Simplified79.2%
Taylor expanded in a around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
Simplified49.2%
Taylor expanded in i around inf 36.0%
Final simplification27.2%
(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 71.9%
sub-neg71.9%
associate-+l+71.9%
fma-def72.6%
+-commutative72.6%
fma-def72.6%
sub-neg72.6%
+-commutative72.6%
*-commutative72.6%
distribute-rgt-neg-in72.6%
fma-def72.6%
*-commutative72.6%
distribute-rgt-neg-in72.6%
sub-neg72.6%
distribute-neg-in72.6%
unsub-neg72.6%
Simplified73.0%
Taylor expanded in a around inf 41.3%
+-commutative41.3%
mul-1-neg41.3%
unsub-neg41.3%
Simplified41.3%
Taylor expanded in i around inf 24.7%
Final simplification24.7%
(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 2023257
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(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)))))