
(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 33 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 (* x (- (* y z) (* t a))))
(t_2 (+ (+ t_1 (* b (- (* a i) (* z c)))) (* j (- (* t c) (* y i))))))
(if (<= t_2 5e+295)
t_2
(* i (+ (* a b) (- (/ (fma c (- (* t j) (* z b)) t_1) i) (* y j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (t_1 + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_2 <= 5e+295) {
tmp = t_2;
} else {
tmp = i * ((a * b) + ((fma(c, ((t * j) - (z * b)), t_1) / i) - (y * j)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_2 <= 5e+295) tmp = t_2; else tmp = Float64(i * Float64(Float64(a * b) + Float64(Float64(fma(c, Float64(Float64(t * j) - Float64(z * b)), t_1) / i) - Float64(y * j)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, 5e+295], t$95$2, N[(i * N[(N[(a * b), $MachinePrecision] + N[(N[(N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] / i), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := \left(t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_2 \leq 5 \cdot 10^{+295}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b + \left(\frac{\mathsf{fma}\left(c, t \cdot j - z \cdot b, t\_1\right)}{i} - y \cdot j\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < 4.99999999999999991e295Initial program 91.6%
if 4.99999999999999991e295 < (+.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 38.7%
+-commutative38.7%
fma-define42.5%
*-commutative42.5%
*-commutative42.5%
cancel-sign-sub-inv42.5%
cancel-sign-sub42.5%
sub-neg42.5%
sub-neg42.5%
*-commutative42.5%
fma-neg42.5%
*-commutative42.5%
distribute-rgt-neg-out42.5%
remove-double-neg42.5%
*-commutative42.5%
*-commutative42.5%
Simplified42.5%
Taylor expanded in i around -inf 59.3%
Simplified69.7%
Final simplification82.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* z (* c (- (/ (* x y) c) b))))))
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 * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * (c * (((x * y) / c) - b));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * (c * (((x * y) / c) - b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * (c * (((x * y) / c) - b)) 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(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(c * Float64(Float64(Float64(x * y) / c) - b))); 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 * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * (c * (((x * y) / c) - b)); 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[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[(c * N[(N[(N[(x * y), $MachinePrecision] / c), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(c \cdot \left(\frac{x \cdot y}{c} - b\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 89.5%
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%
+-commutative0.0%
fma-define7.1%
*-commutative7.1%
*-commutative7.1%
cancel-sign-sub-inv7.1%
cancel-sign-sub7.1%
sub-neg7.1%
sub-neg7.1%
*-commutative7.1%
fma-neg7.1%
*-commutative7.1%
distribute-rgt-neg-out7.1%
remove-double-neg7.1%
*-commutative7.1%
*-commutative7.1%
Simplified7.1%
Taylor expanded in t around 0 32.2%
associate-*r*30.4%
associate-*r*30.4%
*-commutative30.4%
associate-*r*34.0%
distribute-rgt-in37.5%
+-commutative37.5%
mul-1-neg37.5%
unsub-neg37.5%
*-commutative37.5%
*-commutative37.5%
Simplified37.5%
Taylor expanded in z around inf 51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in c around inf 52.7%
Final simplification81.4%
(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 (* z (- (* x y) (* b c)))))
(if (<= z -1.6e+102)
t_3
(if (<= z -5e+40)
t_1
(if (<= z -10600000000000.0)
t_3
(if (<= z -4.9e-119)
(* y (- (* x z) (* i j)))
(if (<= z -4.1e-206)
t_2
(if (<= z 5e-260)
t_1
(if (<= z 1.5e-211)
(* a (- (* b i) (* x t)))
(if (<= z 1.45e-174)
(* i (- (* a b) (* y j)))
(if (<= z 2.2e+16)
(* t (- (* c j) (* x a)))
(if (<= z 3.8e+147) t_2 t_3))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.6e+102) {
tmp = t_3;
} else if (z <= -5e+40) {
tmp = t_1;
} else if (z <= -10600000000000.0) {
tmp = t_3;
} else if (z <= -4.9e-119) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -4.1e-206) {
tmp = t_2;
} else if (z <= 5e-260) {
tmp = t_1;
} else if (z <= 1.5e-211) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.45e-174) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 2.2e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.8e+147) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
t_3 = z * ((x * y) - (b * c))
if (z <= (-1.6d+102)) then
tmp = t_3
else if (z <= (-5d+40)) then
tmp = t_1
else if (z <= (-10600000000000.0d0)) then
tmp = t_3
else if (z <= (-4.9d-119)) then
tmp = y * ((x * z) - (i * j))
else if (z <= (-4.1d-206)) then
tmp = t_2
else if (z <= 5d-260) then
tmp = t_1
else if (z <= 1.5d-211) then
tmp = a * ((b * i) - (x * t))
else if (z <= 1.45d-174) then
tmp = i * ((a * b) - (y * j))
else if (z <= 2.2d+16) then
tmp = t * ((c * j) - (x * a))
else if (z <= 3.8d+147) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.6e+102) {
tmp = t_3;
} else if (z <= -5e+40) {
tmp = t_1;
} else if (z <= -10600000000000.0) {
tmp = t_3;
} else if (z <= -4.9e-119) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -4.1e-206) {
tmp = t_2;
} else if (z <= 5e-260) {
tmp = t_1;
} else if (z <= 1.5e-211) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.45e-174) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 2.2e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.8e+147) {
tmp = t_2;
} else {
tmp = t_3;
}
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 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.6e+102: tmp = t_3 elif z <= -5e+40: tmp = t_1 elif z <= -10600000000000.0: tmp = t_3 elif z <= -4.9e-119: tmp = y * ((x * z) - (i * j)) elif z <= -4.1e-206: tmp = t_2 elif z <= 5e-260: tmp = t_1 elif z <= 1.5e-211: tmp = a * ((b * i) - (x * t)) elif z <= 1.45e-174: tmp = i * ((a * b) - (y * j)) elif z <= 2.2e+16: tmp = t * ((c * j) - (x * a)) elif z <= 3.8e+147: tmp = t_2 else: tmp = t_3 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(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.6e+102) tmp = t_3; elseif (z <= -5e+40) tmp = t_1; elseif (z <= -10600000000000.0) tmp = t_3; elseif (z <= -4.9e-119) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (z <= -4.1e-206) tmp = t_2; elseif (z <= 5e-260) tmp = t_1; elseif (z <= 1.5e-211) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= 1.45e-174) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 2.2e+16) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 3.8e+147) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1.6e+102) tmp = t_3; elseif (z <= -5e+40) tmp = t_1; elseif (z <= -10600000000000.0) tmp = t_3; elseif (z <= -4.9e-119) tmp = y * ((x * z) - (i * j)); elseif (z <= -4.1e-206) tmp = t_2; elseif (z <= 5e-260) tmp = t_1; elseif (z <= 1.5e-211) tmp = a * ((b * i) - (x * t)); elseif (z <= 1.45e-174) tmp = i * ((a * b) - (y * j)); elseif (z <= 2.2e+16) tmp = t * ((c * j) - (x * a)); elseif (z <= 3.8e+147) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.6e+102], t$95$3, If[LessEqual[z, -5e+40], t$95$1, If[LessEqual[z, -10600000000000.0], t$95$3, If[LessEqual[z, -4.9e-119], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.1e-206], t$95$2, If[LessEqual[z, 5e-260], t$95$1, If[LessEqual[z, 1.5e-211], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.45e-174], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+16], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+147], t$95$2, t$95$3]]]]]]]]]]]]]
\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 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.6 \cdot 10^{+102}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -5 \cdot 10^{+40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -10600000000000:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -4.9 \cdot 10^{-119}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;z \leq -4.1 \cdot 10^{-206}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-260}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-211}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{-174}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+16}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+147}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -1.6e102 or -5.00000000000000003e40 < z < -1.06e13 or 3.7999999999999997e147 < z Initial program 56.0%
+-commutative56.0%
fma-define59.7%
*-commutative59.7%
*-commutative59.7%
cancel-sign-sub-inv59.7%
cancel-sign-sub59.7%
sub-neg59.7%
sub-neg59.7%
*-commutative59.7%
fma-neg59.7%
*-commutative59.7%
distribute-rgt-neg-out59.7%
remove-double-neg59.7%
*-commutative59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in t around 0 51.3%
associate-*r*48.8%
associate-*r*48.8%
*-commutative48.8%
associate-*r*51.3%
distribute-rgt-in52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in z around inf 73.3%
*-commutative73.3%
Simplified73.3%
if -1.6e102 < z < -5.00000000000000003e40 or -4.10000000000000016e-206 < z < 5.0000000000000003e-260Initial program 70.8%
Taylor expanded in t around inf 66.4%
Taylor expanded in a around 0 66.4%
if -1.06e13 < z < -4.9e-119Initial program 84.1%
+-commutative84.1%
fma-define84.1%
*-commutative84.1%
*-commutative84.1%
cancel-sign-sub-inv84.1%
cancel-sign-sub84.1%
sub-neg84.1%
sub-neg84.1%
*-commutative84.1%
fma-neg84.1%
*-commutative84.1%
distribute-rgt-neg-out84.1%
remove-double-neg84.1%
*-commutative84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in y around inf 61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
*-commutative61.9%
Simplified61.9%
if -4.9e-119 < z < -4.10000000000000016e-206 or 2.2e16 < z < 3.7999999999999997e147Initial program 73.1%
+-commutative73.1%
fma-define75.0%
*-commutative75.0%
*-commutative75.0%
cancel-sign-sub-inv75.0%
cancel-sign-sub75.0%
sub-neg75.0%
sub-neg75.0%
*-commutative75.0%
fma-neg75.0%
*-commutative75.0%
distribute-rgt-neg-out75.0%
remove-double-neg75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in t around 0 74.9%
associate-*r*74.8%
associate-*r*74.8%
*-commutative74.8%
associate-*r*74.7%
distribute-rgt-in76.7%
+-commutative76.7%
mul-1-neg76.7%
unsub-neg76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in b around inf 64.1%
*-commutative64.1%
*-commutative64.1%
Simplified64.1%
if 5.0000000000000003e-260 < z < 1.50000000000000002e-211Initial program 88.9%
Taylor expanded in a around -inf 100.0%
Taylor expanded in a around inf 76.5%
associate-*r*76.5%
neg-mul-176.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
if 1.50000000000000002e-211 < z < 1.45000000000000005e-174Initial program 30.6%
Taylor expanded in a around -inf 86.5%
Taylor expanded in t around 0 85.6%
mul-1-neg85.6%
*-commutative85.6%
distribute-lft-neg-in85.6%
mul-1-neg85.6%
associate-*r*85.8%
distribute-rgt-in85.8%
+-commutative85.8%
mul-1-neg85.8%
unsub-neg85.8%
*-commutative85.8%
Simplified85.8%
if 1.45000000000000005e-174 < z < 2.2e16Initial program 86.3%
+-commutative86.3%
fma-define86.3%
*-commutative86.3%
*-commutative86.3%
cancel-sign-sub-inv86.3%
cancel-sign-sub86.3%
sub-neg86.3%
sub-neg86.3%
*-commutative86.3%
fma-neg86.3%
*-commutative86.3%
distribute-rgt-neg-out86.3%
remove-double-neg86.3%
*-commutative86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in t around inf 68.9%
+-commutative68.9%
mul-1-neg68.9%
unsub-neg68.9%
*-commutative68.9%
Simplified68.9%
Final simplification68.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -5.1e+101)
t_2
(if (<= z -6.8e+39)
(* j (- (* t c) (* y i)))
(if (<= z -5900000000000.0)
t_2
(if (<= z -1.75e-118)
(* y (- (* x z) (* i j)))
(if (<= z -1.1e-206)
t_1
(if (<= z 3e-261)
(* j (* i (- (/ (* t c) i) y)))
(if (<= z 1.55e-211)
(* a (- (* b i) (* x t)))
(if (<= z 1.9e-175)
(* i (- (* a b) (* y j)))
(if (<= z 2.4e+16)
(* t (- (* c j) (* x a)))
(if (<= z 3.8e+147) t_1 t_2))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -5.1e+101) {
tmp = t_2;
} else if (z <= -6.8e+39) {
tmp = j * ((t * c) - (y * i));
} else if (z <= -5900000000000.0) {
tmp = t_2;
} else if (z <= -1.75e-118) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -1.1e-206) {
tmp = t_1;
} else if (z <= 3e-261) {
tmp = j * (i * (((t * c) / i) - y));
} else if (z <= 1.55e-211) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.9e-175) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 2.4e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.8e+147) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = z * ((x * y) - (b * c))
if (z <= (-5.1d+101)) then
tmp = t_2
else if (z <= (-6.8d+39)) then
tmp = j * ((t * c) - (y * i))
else if (z <= (-5900000000000.0d0)) then
tmp = t_2
else if (z <= (-1.75d-118)) then
tmp = y * ((x * z) - (i * j))
else if (z <= (-1.1d-206)) then
tmp = t_1
else if (z <= 3d-261) then
tmp = j * (i * (((t * c) / i) - y))
else if (z <= 1.55d-211) then
tmp = a * ((b * i) - (x * t))
else if (z <= 1.9d-175) then
tmp = i * ((a * b) - (y * j))
else if (z <= 2.4d+16) then
tmp = t * ((c * j) - (x * a))
else if (z <= 3.8d+147) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -5.1e+101) {
tmp = t_2;
} else if (z <= -6.8e+39) {
tmp = j * ((t * c) - (y * i));
} else if (z <= -5900000000000.0) {
tmp = t_2;
} else if (z <= -1.75e-118) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -1.1e-206) {
tmp = t_1;
} else if (z <= 3e-261) {
tmp = j * (i * (((t * c) / i) - y));
} else if (z <= 1.55e-211) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.9e-175) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 2.4e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.8e+147) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -5.1e+101: tmp = t_2 elif z <= -6.8e+39: tmp = j * ((t * c) - (y * i)) elif z <= -5900000000000.0: tmp = t_2 elif z <= -1.75e-118: tmp = y * ((x * z) - (i * j)) elif z <= -1.1e-206: tmp = t_1 elif z <= 3e-261: tmp = j * (i * (((t * c) / i) - y)) elif z <= 1.55e-211: tmp = a * ((b * i) - (x * t)) elif z <= 1.9e-175: tmp = i * ((a * b) - (y * j)) elif z <= 2.4e+16: tmp = t * ((c * j) - (x * a)) elif z <= 3.8e+147: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -5.1e+101) tmp = t_2; elseif (z <= -6.8e+39) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (z <= -5900000000000.0) tmp = t_2; elseif (z <= -1.75e-118) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (z <= -1.1e-206) tmp = t_1; elseif (z <= 3e-261) tmp = Float64(j * Float64(i * Float64(Float64(Float64(t * c) / i) - y))); elseif (z <= 1.55e-211) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= 1.9e-175) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 2.4e+16) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 3.8e+147) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -5.1e+101) tmp = t_2; elseif (z <= -6.8e+39) tmp = j * ((t * c) - (y * i)); elseif (z <= -5900000000000.0) tmp = t_2; elseif (z <= -1.75e-118) tmp = y * ((x * z) - (i * j)); elseif (z <= -1.1e-206) tmp = t_1; elseif (z <= 3e-261) tmp = j * (i * (((t * c) / i) - y)); elseif (z <= 1.55e-211) tmp = a * ((b * i) - (x * t)); elseif (z <= 1.9e-175) tmp = i * ((a * b) - (y * j)); elseif (z <= 2.4e+16) tmp = t * ((c * j) - (x * a)); elseif (z <= 3.8e+147) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.1e+101], t$95$2, If[LessEqual[z, -6.8e+39], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5900000000000.0], t$95$2, If[LessEqual[z, -1.75e-118], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.1e-206], t$95$1, If[LessEqual[z, 3e-261], N[(j * N[(i * N[(N[(N[(t * c), $MachinePrecision] / i), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.55e-211], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e-175], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e+16], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+147], t$95$1, t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -5.1 \cdot 10^{+101}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{+39}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq -5900000000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.75 \cdot 10^{-118}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;z \leq -1.1 \cdot 10^{-206}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-261}:\\
\;\;\;\;j \cdot \left(i \cdot \left(\frac{t \cdot c}{i} - y\right)\right)\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{-211}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{-175}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+16}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+147}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -5.09999999999999995e101 or -6.7999999999999998e39 < z < -5.9e12 or 3.7999999999999997e147 < z Initial program 56.0%
+-commutative56.0%
fma-define59.7%
*-commutative59.7%
*-commutative59.7%
cancel-sign-sub-inv59.7%
cancel-sign-sub59.7%
sub-neg59.7%
sub-neg59.7%
*-commutative59.7%
fma-neg59.7%
*-commutative59.7%
distribute-rgt-neg-out59.7%
remove-double-neg59.7%
*-commutative59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in t around 0 51.3%
associate-*r*48.8%
associate-*r*48.8%
*-commutative48.8%
associate-*r*51.3%
distribute-rgt-in52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in z around inf 73.3%
*-commutative73.3%
Simplified73.3%
if -5.09999999999999995e101 < z < -6.7999999999999998e39Initial program 37.5%
Taylor expanded in t around inf 87.6%
Taylor expanded in a around 0 75.2%
if -5.9e12 < z < -1.75e-118Initial program 84.1%
+-commutative84.1%
fma-define84.1%
*-commutative84.1%
*-commutative84.1%
cancel-sign-sub-inv84.1%
cancel-sign-sub84.1%
sub-neg84.1%
sub-neg84.1%
*-commutative84.1%
fma-neg84.1%
*-commutative84.1%
distribute-rgt-neg-out84.1%
remove-double-neg84.1%
*-commutative84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in y around inf 61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
*-commutative61.9%
Simplified61.9%
if -1.75e-118 < z < -1.0999999999999999e-206 or 2.4e16 < z < 3.7999999999999997e147Initial program 73.1%
+-commutative73.1%
fma-define75.0%
*-commutative75.0%
*-commutative75.0%
cancel-sign-sub-inv75.0%
cancel-sign-sub75.0%
sub-neg75.0%
sub-neg75.0%
*-commutative75.0%
fma-neg75.0%
*-commutative75.0%
distribute-rgt-neg-out75.0%
remove-double-neg75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in t around 0 74.9%
associate-*r*74.8%
associate-*r*74.8%
*-commutative74.8%
associate-*r*74.7%
distribute-rgt-in76.7%
+-commutative76.7%
mul-1-neg76.7%
unsub-neg76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in b around inf 64.1%
*-commutative64.1%
*-commutative64.1%
Simplified64.1%
if -1.0999999999999999e-206 < z < 3.0000000000000001e-261Initial program 78.9%
Taylor expanded in t around inf 61.3%
Taylor expanded in a around 0 64.3%
Taylor expanded in i around inf 64.5%
if 3.0000000000000001e-261 < z < 1.54999999999999998e-211Initial program 88.9%
Taylor expanded in a around -inf 100.0%
Taylor expanded in a around inf 76.5%
associate-*r*76.5%
neg-mul-176.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
if 1.54999999999999998e-211 < z < 1.9e-175Initial program 30.6%
Taylor expanded in a around -inf 86.5%
Taylor expanded in t around 0 85.6%
mul-1-neg85.6%
*-commutative85.6%
distribute-lft-neg-in85.6%
mul-1-neg85.6%
associate-*r*85.8%
distribute-rgt-in85.8%
+-commutative85.8%
mul-1-neg85.8%
unsub-neg85.8%
*-commutative85.8%
Simplified85.8%
if 1.9e-175 < z < 2.4e16Initial program 86.3%
+-commutative86.3%
fma-define86.3%
*-commutative86.3%
*-commutative86.3%
cancel-sign-sub-inv86.3%
cancel-sign-sub86.3%
sub-neg86.3%
sub-neg86.3%
*-commutative86.3%
fma-neg86.3%
*-commutative86.3%
distribute-rgt-neg-out86.3%
remove-double-neg86.3%
*-commutative86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in t around inf 68.9%
+-commutative68.9%
mul-1-neg68.9%
unsub-neg68.9%
*-commutative68.9%
Simplified68.9%
Final simplification68.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -2.25e+102)
t_1
(if (<= z -1.65e+43)
(* j (- (* t c) (* y i)))
(if (<= z -9000000000000.0)
t_1
(if (<= z -4e-118)
(* y (- (* x z) (* i j)))
(if (<= z -1.02e-206)
(* (* b i) (- a (/ (* z c) i)))
(if (<= z 8.5e-261)
(* j (* i (- (/ (* t c) i) y)))
(if (<= z 1.5e-211)
(* a (- (* b i) (* x t)))
(if (<= z 4.2e-168)
(* i (- (* a b) (* y j)))
(if (<= z 2.55e+16)
(* t (- (* c j) (* x a)))
(if (<= z 3.8e+147)
(* b (- (* a i) (* z c)))
t_1))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -2.25e+102) {
tmp = t_1;
} else if (z <= -1.65e+43) {
tmp = j * ((t * c) - (y * i));
} else if (z <= -9000000000000.0) {
tmp = t_1;
} else if (z <= -4e-118) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -1.02e-206) {
tmp = (b * i) * (a - ((z * c) / i));
} else if (z <= 8.5e-261) {
tmp = j * (i * (((t * c) / i) - y));
} else if (z <= 1.5e-211) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 4.2e-168) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 2.55e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.8e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-2.25d+102)) then
tmp = t_1
else if (z <= (-1.65d+43)) then
tmp = j * ((t * c) - (y * i))
else if (z <= (-9000000000000.0d0)) then
tmp = t_1
else if (z <= (-4d-118)) then
tmp = y * ((x * z) - (i * j))
else if (z <= (-1.02d-206)) then
tmp = (b * i) * (a - ((z * c) / i))
else if (z <= 8.5d-261) then
tmp = j * (i * (((t * c) / i) - y))
else if (z <= 1.5d-211) then
tmp = a * ((b * i) - (x * t))
else if (z <= 4.2d-168) then
tmp = i * ((a * b) - (y * j))
else if (z <= 2.55d+16) then
tmp = t * ((c * j) - (x * a))
else if (z <= 3.8d+147) then
tmp = b * ((a * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -2.25e+102) {
tmp = t_1;
} else if (z <= -1.65e+43) {
tmp = j * ((t * c) - (y * i));
} else if (z <= -9000000000000.0) {
tmp = t_1;
} else if (z <= -4e-118) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -1.02e-206) {
tmp = (b * i) * (a - ((z * c) / i));
} else if (z <= 8.5e-261) {
tmp = j * (i * (((t * c) / i) - y));
} else if (z <= 1.5e-211) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 4.2e-168) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 2.55e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.8e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -2.25e+102: tmp = t_1 elif z <= -1.65e+43: tmp = j * ((t * c) - (y * i)) elif z <= -9000000000000.0: tmp = t_1 elif z <= -4e-118: tmp = y * ((x * z) - (i * j)) elif z <= -1.02e-206: tmp = (b * i) * (a - ((z * c) / i)) elif z <= 8.5e-261: tmp = j * (i * (((t * c) / i) - y)) elif z <= 1.5e-211: tmp = a * ((b * i) - (x * t)) elif z <= 4.2e-168: tmp = i * ((a * b) - (y * j)) elif z <= 2.55e+16: tmp = t * ((c * j) - (x * a)) elif z <= 3.8e+147: tmp = b * ((a * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -2.25e+102) tmp = t_1; elseif (z <= -1.65e+43) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (z <= -9000000000000.0) tmp = t_1; elseif (z <= -4e-118) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (z <= -1.02e-206) tmp = Float64(Float64(b * i) * Float64(a - Float64(Float64(z * c) / i))); elseif (z <= 8.5e-261) tmp = Float64(j * Float64(i * Float64(Float64(Float64(t * c) / i) - y))); elseif (z <= 1.5e-211) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= 4.2e-168) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 2.55e+16) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 3.8e+147) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -2.25e+102) tmp = t_1; elseif (z <= -1.65e+43) tmp = j * ((t * c) - (y * i)); elseif (z <= -9000000000000.0) tmp = t_1; elseif (z <= -4e-118) tmp = y * ((x * z) - (i * j)); elseif (z <= -1.02e-206) tmp = (b * i) * (a - ((z * c) / i)); elseif (z <= 8.5e-261) tmp = j * (i * (((t * c) / i) - y)); elseif (z <= 1.5e-211) tmp = a * ((b * i) - (x * t)); elseif (z <= 4.2e-168) tmp = i * ((a * b) - (y * j)); elseif (z <= 2.55e+16) tmp = t * ((c * j) - (x * a)); elseif (z <= 3.8e+147) tmp = b * ((a * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.25e+102], t$95$1, If[LessEqual[z, -1.65e+43], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -9000000000000.0], t$95$1, If[LessEqual[z, -4e-118], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.02e-206], N[(N[(b * i), $MachinePrecision] * N[(a - N[(N[(z * c), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.5e-261], N[(j * N[(i * N[(N[(N[(t * c), $MachinePrecision] / i), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e-211], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e-168], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.55e+16], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+147], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -2.25 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.65 \cdot 10^{+43}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq -9000000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -4 \cdot 10^{-118}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;z \leq -1.02 \cdot 10^{-206}:\\
\;\;\;\;\left(b \cdot i\right) \cdot \left(a - \frac{z \cdot c}{i}\right)\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-261}:\\
\;\;\;\;j \cdot \left(i \cdot \left(\frac{t \cdot c}{i} - y\right)\right)\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-211}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-168}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{+16}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+147}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.2500000000000001e102 or -1.6500000000000001e43 < z < -9e12 or 3.7999999999999997e147 < z Initial program 56.0%
+-commutative56.0%
fma-define59.7%
*-commutative59.7%
*-commutative59.7%
cancel-sign-sub-inv59.7%
cancel-sign-sub59.7%
sub-neg59.7%
sub-neg59.7%
*-commutative59.7%
fma-neg59.7%
*-commutative59.7%
distribute-rgt-neg-out59.7%
remove-double-neg59.7%
*-commutative59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in t around 0 51.3%
associate-*r*48.8%
associate-*r*48.8%
*-commutative48.8%
associate-*r*51.3%
distribute-rgt-in52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in z around inf 73.3%
*-commutative73.3%
Simplified73.3%
if -2.2500000000000001e102 < z < -1.6500000000000001e43Initial program 37.5%
Taylor expanded in t around inf 87.6%
Taylor expanded in a around 0 75.2%
if -9e12 < z < -3.99999999999999994e-118Initial program 84.1%
+-commutative84.1%
fma-define84.1%
*-commutative84.1%
*-commutative84.1%
cancel-sign-sub-inv84.1%
cancel-sign-sub84.1%
sub-neg84.1%
sub-neg84.1%
*-commutative84.1%
fma-neg84.1%
*-commutative84.1%
distribute-rgt-neg-out84.1%
remove-double-neg84.1%
*-commutative84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in y around inf 61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
*-commutative61.9%
Simplified61.9%
if -3.99999999999999994e-118 < z < -1.0200000000000001e-206Initial program 72.7%
+-commutative72.7%
fma-define72.7%
*-commutative72.7%
*-commutative72.7%
cancel-sign-sub-inv72.7%
cancel-sign-sub72.7%
sub-neg72.7%
sub-neg72.7%
*-commutative72.7%
fma-neg72.7%
*-commutative72.7%
distribute-rgt-neg-out72.7%
remove-double-neg72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in i around -inf 73.0%
Simplified72.9%
Taylor expanded in b around inf 51.1%
associate-*r*51.2%
*-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
*-commutative51.2%
Simplified51.2%
if -1.0200000000000001e-206 < z < 8.4999999999999996e-261Initial program 78.9%
Taylor expanded in t around inf 61.3%
Taylor expanded in a around 0 64.3%
Taylor expanded in i around inf 64.5%
if 8.4999999999999996e-261 < z < 1.50000000000000002e-211Initial program 88.9%
Taylor expanded in a around -inf 100.0%
Taylor expanded in a around inf 76.5%
associate-*r*76.5%
neg-mul-176.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
if 1.50000000000000002e-211 < z < 4.19999999999999988e-168Initial program 30.6%
Taylor expanded in a around -inf 86.5%
Taylor expanded in t around 0 85.6%
mul-1-neg85.6%
*-commutative85.6%
distribute-lft-neg-in85.6%
mul-1-neg85.6%
associate-*r*85.8%
distribute-rgt-in85.8%
+-commutative85.8%
mul-1-neg85.8%
unsub-neg85.8%
*-commutative85.8%
Simplified85.8%
if 4.19999999999999988e-168 < z < 2.55e16Initial program 86.3%
+-commutative86.3%
fma-define86.3%
*-commutative86.3%
*-commutative86.3%
cancel-sign-sub-inv86.3%
cancel-sign-sub86.3%
sub-neg86.3%
sub-neg86.3%
*-commutative86.3%
fma-neg86.3%
*-commutative86.3%
distribute-rgt-neg-out86.3%
remove-double-neg86.3%
*-commutative86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in t around inf 68.9%
+-commutative68.9%
mul-1-neg68.9%
unsub-neg68.9%
*-commutative68.9%
Simplified68.9%
if 2.55e16 < z < 3.7999999999999997e147Initial program 73.3%
+-commutative73.3%
fma-define76.3%
*-commutative76.3%
*-commutative76.3%
cancel-sign-sub-inv76.3%
cancel-sign-sub76.3%
sub-neg76.3%
sub-neg76.3%
*-commutative76.3%
fma-neg76.3%
*-commutative76.3%
distribute-rgt-neg-out76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in t around 0 81.6%
associate-*r*81.6%
associate-*r*81.6%
*-commutative81.6%
associate-*r*81.3%
distribute-rgt-in84.4%
+-commutative84.4%
mul-1-neg84.4%
unsub-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in b around inf 71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Final simplification68.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -1.55e+101)
t_1
(if (<= z -6.6e+40)
(* j (- (* t c) (* y i)))
(if (<= z -11200000000000.0)
(- (* x (* y z)) (* b (* z c)))
(if (<= z -4.6e-118)
(* y (- (* x z) (* i j)))
(if (<= z -3e-206)
(* (* b i) (- a (/ (* z c) i)))
(if (<= z 1.6e-260)
(* j (* i (- (/ (* t c) i) y)))
(if (<= z 1.75e-211)
(* a (- (* b i) (* x t)))
(if (<= z 1.9e-162)
(* i (- (* a b) (* y j)))
(if (<= z 2.2e+16)
(* t (- (* c j) (* x a)))
(if (<= z 4.4e+147)
(* b (- (* a i) (* z c)))
t_1))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.55e+101) {
tmp = t_1;
} else if (z <= -6.6e+40) {
tmp = j * ((t * c) - (y * i));
} else if (z <= -11200000000000.0) {
tmp = (x * (y * z)) - (b * (z * c));
} else if (z <= -4.6e-118) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -3e-206) {
tmp = (b * i) * (a - ((z * c) / i));
} else if (z <= 1.6e-260) {
tmp = j * (i * (((t * c) / i) - y));
} else if (z <= 1.75e-211) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.9e-162) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 2.2e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 4.4e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-1.55d+101)) then
tmp = t_1
else if (z <= (-6.6d+40)) then
tmp = j * ((t * c) - (y * i))
else if (z <= (-11200000000000.0d0)) then
tmp = (x * (y * z)) - (b * (z * c))
else if (z <= (-4.6d-118)) then
tmp = y * ((x * z) - (i * j))
else if (z <= (-3d-206)) then
tmp = (b * i) * (a - ((z * c) / i))
else if (z <= 1.6d-260) then
tmp = j * (i * (((t * c) / i) - y))
else if (z <= 1.75d-211) then
tmp = a * ((b * i) - (x * t))
else if (z <= 1.9d-162) then
tmp = i * ((a * b) - (y * j))
else if (z <= 2.2d+16) then
tmp = t * ((c * j) - (x * a))
else if (z <= 4.4d+147) then
tmp = b * ((a * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.55e+101) {
tmp = t_1;
} else if (z <= -6.6e+40) {
tmp = j * ((t * c) - (y * i));
} else if (z <= -11200000000000.0) {
tmp = (x * (y * z)) - (b * (z * c));
} else if (z <= -4.6e-118) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -3e-206) {
tmp = (b * i) * (a - ((z * c) / i));
} else if (z <= 1.6e-260) {
tmp = j * (i * (((t * c) / i) - y));
} else if (z <= 1.75e-211) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.9e-162) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 2.2e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 4.4e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.55e+101: tmp = t_1 elif z <= -6.6e+40: tmp = j * ((t * c) - (y * i)) elif z <= -11200000000000.0: tmp = (x * (y * z)) - (b * (z * c)) elif z <= -4.6e-118: tmp = y * ((x * z) - (i * j)) elif z <= -3e-206: tmp = (b * i) * (a - ((z * c) / i)) elif z <= 1.6e-260: tmp = j * (i * (((t * c) / i) - y)) elif z <= 1.75e-211: tmp = a * ((b * i) - (x * t)) elif z <= 1.9e-162: tmp = i * ((a * b) - (y * j)) elif z <= 2.2e+16: tmp = t * ((c * j) - (x * a)) elif z <= 4.4e+147: tmp = b * ((a * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.55e+101) tmp = t_1; elseif (z <= -6.6e+40) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (z <= -11200000000000.0) tmp = Float64(Float64(x * Float64(y * z)) - Float64(b * Float64(z * c))); elseif (z <= -4.6e-118) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (z <= -3e-206) tmp = Float64(Float64(b * i) * Float64(a - Float64(Float64(z * c) / i))); elseif (z <= 1.6e-260) tmp = Float64(j * Float64(i * Float64(Float64(Float64(t * c) / i) - y))); elseif (z <= 1.75e-211) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= 1.9e-162) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 2.2e+16) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 4.4e+147) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1.55e+101) tmp = t_1; elseif (z <= -6.6e+40) tmp = j * ((t * c) - (y * i)); elseif (z <= -11200000000000.0) tmp = (x * (y * z)) - (b * (z * c)); elseif (z <= -4.6e-118) tmp = y * ((x * z) - (i * j)); elseif (z <= -3e-206) tmp = (b * i) * (a - ((z * c) / i)); elseif (z <= 1.6e-260) tmp = j * (i * (((t * c) / i) - y)); elseif (z <= 1.75e-211) tmp = a * ((b * i) - (x * t)); elseif (z <= 1.9e-162) tmp = i * ((a * b) - (y * j)); elseif (z <= 2.2e+16) tmp = t * ((c * j) - (x * a)); elseif (z <= 4.4e+147) tmp = b * ((a * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.55e+101], t$95$1, If[LessEqual[z, -6.6e+40], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -11200000000000.0], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.6e-118], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3e-206], N[(N[(b * i), $MachinePrecision] * N[(a - N[(N[(z * c), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.6e-260], N[(j * N[(i * N[(N[(N[(t * c), $MachinePrecision] / i), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.75e-211], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e-162], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+16], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.4e+147], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.55 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -6.6 \cdot 10^{+40}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq -11200000000000:\\
\;\;\;\;x \cdot \left(y \cdot z\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;z \leq -4.6 \cdot 10^{-118}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-206}:\\
\;\;\;\;\left(b \cdot i\right) \cdot \left(a - \frac{z \cdot c}{i}\right)\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{-260}:\\
\;\;\;\;j \cdot \left(i \cdot \left(\frac{t \cdot c}{i} - y\right)\right)\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{-211}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{-162}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+16}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{+147}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.55e101 or 4.4000000000000003e147 < z Initial program 51.9%
+-commutative51.9%
fma-define56.0%
*-commutative56.0%
*-commutative56.0%
cancel-sign-sub-inv56.0%
cancel-sign-sub56.0%
sub-neg56.0%
sub-neg56.0%
*-commutative56.0%
fma-neg56.0%
*-commutative56.0%
distribute-rgt-neg-out56.0%
remove-double-neg56.0%
*-commutative56.0%
*-commutative56.0%
Simplified56.0%
Taylor expanded in t around 0 49.3%
associate-*r*45.2%
associate-*r*45.2%
*-commutative45.2%
associate-*r*47.9%
distribute-rgt-in49.3%
+-commutative49.3%
mul-1-neg49.3%
unsub-neg49.3%
*-commutative49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in z around inf 74.1%
*-commutative74.1%
Simplified74.1%
if -1.55e101 < z < -6.5999999999999997e40Initial program 37.5%
Taylor expanded in t around inf 87.6%
Taylor expanded in a around 0 75.2%
if -6.5999999999999997e40 < z < -1.12e13Initial program 88.7%
+-commutative88.7%
fma-define88.7%
*-commutative88.7%
*-commutative88.7%
cancel-sign-sub-inv88.7%
cancel-sign-sub88.7%
sub-neg88.7%
sub-neg88.7%
*-commutative88.7%
fma-neg88.7%
*-commutative88.7%
distribute-rgt-neg-out88.7%
remove-double-neg88.7%
*-commutative88.7%
*-commutative88.7%
Simplified88.7%
Taylor expanded in t around 0 67.1%
associate-*r*78.2%
associate-*r*78.2%
*-commutative78.2%
associate-*r*78.2%
distribute-rgt-in78.2%
+-commutative78.2%
mul-1-neg78.2%
unsub-neg78.2%
*-commutative78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in i around 0 67.1%
if -1.12e13 < z < -4.60000000000000042e-118Initial program 84.1%
+-commutative84.1%
fma-define84.1%
*-commutative84.1%
*-commutative84.1%
cancel-sign-sub-inv84.1%
cancel-sign-sub84.1%
sub-neg84.1%
sub-neg84.1%
*-commutative84.1%
fma-neg84.1%
*-commutative84.1%
distribute-rgt-neg-out84.1%
remove-double-neg84.1%
*-commutative84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in y around inf 61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
*-commutative61.9%
Simplified61.9%
if -4.60000000000000042e-118 < z < -3.0000000000000002e-206Initial program 72.7%
+-commutative72.7%
fma-define72.7%
*-commutative72.7%
*-commutative72.7%
cancel-sign-sub-inv72.7%
cancel-sign-sub72.7%
sub-neg72.7%
sub-neg72.7%
*-commutative72.7%
fma-neg72.7%
*-commutative72.7%
distribute-rgt-neg-out72.7%
remove-double-neg72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in i around -inf 73.0%
Simplified72.9%
Taylor expanded in b around inf 51.1%
associate-*r*51.2%
*-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
*-commutative51.2%
Simplified51.2%
if -3.0000000000000002e-206 < z < 1.59999999999999997e-260Initial program 78.9%
Taylor expanded in t around inf 61.3%
Taylor expanded in a around 0 64.3%
Taylor expanded in i around inf 64.5%
if 1.59999999999999997e-260 < z < 1.75e-211Initial program 88.9%
Taylor expanded in a around -inf 100.0%
Taylor expanded in a around inf 76.5%
associate-*r*76.5%
neg-mul-176.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
if 1.75e-211 < z < 1.90000000000000002e-162Initial program 30.6%
Taylor expanded in a around -inf 86.5%
Taylor expanded in t around 0 85.6%
mul-1-neg85.6%
*-commutative85.6%
distribute-lft-neg-in85.6%
mul-1-neg85.6%
associate-*r*85.8%
distribute-rgt-in85.8%
+-commutative85.8%
mul-1-neg85.8%
unsub-neg85.8%
*-commutative85.8%
Simplified85.8%
if 1.90000000000000002e-162 < z < 2.2e16Initial program 86.3%
+-commutative86.3%
fma-define86.3%
*-commutative86.3%
*-commutative86.3%
cancel-sign-sub-inv86.3%
cancel-sign-sub86.3%
sub-neg86.3%
sub-neg86.3%
*-commutative86.3%
fma-neg86.3%
*-commutative86.3%
distribute-rgt-neg-out86.3%
remove-double-neg86.3%
*-commutative86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in t around inf 68.9%
+-commutative68.9%
mul-1-neg68.9%
unsub-neg68.9%
*-commutative68.9%
Simplified68.9%
if 2.2e16 < z < 4.4000000000000003e147Initial program 73.3%
+-commutative73.3%
fma-define76.3%
*-commutative76.3%
*-commutative76.3%
cancel-sign-sub-inv76.3%
cancel-sign-sub76.3%
sub-neg76.3%
sub-neg76.3%
*-commutative76.3%
fma-neg76.3%
*-commutative76.3%
distribute-rgt-neg-out76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in t around 0 81.6%
associate-*r*81.6%
associate-*r*81.6%
*-commutative81.6%
associate-*r*81.3%
distribute-rgt-in84.4%
+-commutative84.4%
mul-1-neg84.4%
unsub-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in b around inf 71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Final simplification68.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= c -8.5e+100)
(* c (* t (- j (* b (/ z t)))))
(if (<= c -1.05e-91)
t_2
(if (<= c -7.7e-112)
t_1
(if (<= c -6e-172)
(* a (- (* b i) (* x t)))
(if (<= c -1.3e-243)
t_1
(if (<= c 4.8e-261)
(* i (- (* a b) (* y j)))
(if (<= c 8.8e-184)
t_1
(if (<= c 7.6e-153)
t_2
(if (<= c 1e-6)
(* i (* y (- (* x (/ z i)) j)))
(* c (- (* t j) (* z b))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (c <= -8.5e+100) {
tmp = c * (t * (j - (b * (z / t))));
} else if (c <= -1.05e-91) {
tmp = t_2;
} else if (c <= -7.7e-112) {
tmp = t_1;
} else if (c <= -6e-172) {
tmp = a * ((b * i) - (x * t));
} else if (c <= -1.3e-243) {
tmp = t_1;
} else if (c <= 4.8e-261) {
tmp = i * ((a * b) - (y * j));
} else if (c <= 8.8e-184) {
tmp = t_1;
} else if (c <= 7.6e-153) {
tmp = t_2;
} else if (c <= 1e-6) {
tmp = i * (y * ((x * (z / i)) - j));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = b * ((a * i) - (z * c))
if (c <= (-8.5d+100)) then
tmp = c * (t * (j - (b * (z / t))))
else if (c <= (-1.05d-91)) then
tmp = t_2
else if (c <= (-7.7d-112)) then
tmp = t_1
else if (c <= (-6d-172)) then
tmp = a * ((b * i) - (x * t))
else if (c <= (-1.3d-243)) then
tmp = t_1
else if (c <= 4.8d-261) then
tmp = i * ((a * b) - (y * j))
else if (c <= 8.8d-184) then
tmp = t_1
else if (c <= 7.6d-153) then
tmp = t_2
else if (c <= 1d-6) then
tmp = i * (y * ((x * (z / i)) - j))
else
tmp = c * ((t * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (c <= -8.5e+100) {
tmp = c * (t * (j - (b * (z / t))));
} else if (c <= -1.05e-91) {
tmp = t_2;
} else if (c <= -7.7e-112) {
tmp = t_1;
} else if (c <= -6e-172) {
tmp = a * ((b * i) - (x * t));
} else if (c <= -1.3e-243) {
tmp = t_1;
} else if (c <= 4.8e-261) {
tmp = i * ((a * b) - (y * j));
} else if (c <= 8.8e-184) {
tmp = t_1;
} else if (c <= 7.6e-153) {
tmp = t_2;
} else if (c <= 1e-6) {
tmp = i * (y * ((x * (z / i)) - j));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if c <= -8.5e+100: tmp = c * (t * (j - (b * (z / t)))) elif c <= -1.05e-91: tmp = t_2 elif c <= -7.7e-112: tmp = t_1 elif c <= -6e-172: tmp = a * ((b * i) - (x * t)) elif c <= -1.3e-243: tmp = t_1 elif c <= 4.8e-261: tmp = i * ((a * b) - (y * j)) elif c <= 8.8e-184: tmp = t_1 elif c <= 7.6e-153: tmp = t_2 elif c <= 1e-6: tmp = i * (y * ((x * (z / i)) - j)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (c <= -8.5e+100) tmp = Float64(c * Float64(t * Float64(j - Float64(b * Float64(z / t))))); elseif (c <= -1.05e-91) tmp = t_2; elseif (c <= -7.7e-112) tmp = t_1; elseif (c <= -6e-172) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (c <= -1.3e-243) tmp = t_1; elseif (c <= 4.8e-261) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (c <= 8.8e-184) tmp = t_1; elseif (c <= 7.6e-153) tmp = t_2; elseif (c <= 1e-6) tmp = Float64(i * Float64(y * Float64(Float64(x * Float64(z / i)) - j))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (c <= -8.5e+100) tmp = c * (t * (j - (b * (z / t)))); elseif (c <= -1.05e-91) tmp = t_2; elseif (c <= -7.7e-112) tmp = t_1; elseif (c <= -6e-172) tmp = a * ((b * i) - (x * t)); elseif (c <= -1.3e-243) tmp = t_1; elseif (c <= 4.8e-261) tmp = i * ((a * b) - (y * j)); elseif (c <= 8.8e-184) tmp = t_1; elseif (c <= 7.6e-153) tmp = t_2; elseif (c <= 1e-6) tmp = i * (y * ((x * (z / i)) - j)); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8.5e+100], N[(c * N[(t * N[(j - N[(b * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.05e-91], t$95$2, If[LessEqual[c, -7.7e-112], t$95$1, If[LessEqual[c, -6e-172], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.3e-243], t$95$1, If[LessEqual[c, 4.8e-261], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8.8e-184], t$95$1, If[LessEqual[c, 7.6e-153], t$95$2, If[LessEqual[c, 1e-6], N[(i * N[(y * N[(N[(x * N[(z / i), $MachinePrecision]), $MachinePrecision] - j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;c \leq -8.5 \cdot 10^{+100}:\\
\;\;\;\;c \cdot \left(t \cdot \left(j - b \cdot \frac{z}{t}\right)\right)\\
\mathbf{elif}\;c \leq -1.05 \cdot 10^{-91}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -7.7 \cdot 10^{-112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -6 \cdot 10^{-172}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq -1.3 \cdot 10^{-243}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 4.8 \cdot 10^{-261}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 8.8 \cdot 10^{-184}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 7.6 \cdot 10^{-153}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 10^{-6}:\\
\;\;\;\;i \cdot \left(y \cdot \left(x \cdot \frac{z}{i} - j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if c < -8.50000000000000043e100Initial program 62.0%
+-commutative62.0%
fma-define64.6%
*-commutative64.6%
*-commutative64.6%
cancel-sign-sub-inv64.6%
cancel-sign-sub64.6%
sub-neg64.6%
sub-neg64.6%
*-commutative64.6%
fma-neg64.6%
*-commutative64.6%
distribute-rgt-neg-out64.6%
remove-double-neg64.6%
*-commutative64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in c around inf 69.7%
Taylor expanded in t around inf 69.8%
mul-1-neg69.8%
unsub-neg69.8%
associate-/l*69.7%
Simplified69.7%
if -8.50000000000000043e100 < c < -1.05e-91 or 8.79999999999999967e-184 < c < 7.60000000000000046e-153Initial program 70.1%
+-commutative70.1%
fma-define72.6%
*-commutative72.6%
*-commutative72.6%
cancel-sign-sub-inv72.6%
cancel-sign-sub72.6%
sub-neg72.6%
sub-neg72.6%
*-commutative72.6%
fma-neg72.6%
*-commutative72.6%
distribute-rgt-neg-out72.6%
remove-double-neg72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in t around 0 58.4%
associate-*r*60.6%
associate-*r*60.6%
*-commutative60.6%
associate-*r*65.6%
distribute-rgt-in65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
*-commutative65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in b around inf 62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
if -1.05e-91 < c < -7.69999999999999959e-112 or -5.99999999999999967e-172 < c < -1.2999999999999999e-243 or 4.80000000000000028e-261 < c < 8.79999999999999967e-184Initial program 84.2%
+-commutative84.2%
fma-define84.2%
*-commutative84.2%
*-commutative84.2%
cancel-sign-sub-inv84.2%
cancel-sign-sub84.2%
sub-neg84.2%
sub-neg84.2%
*-commutative84.2%
fma-neg84.2%
*-commutative84.2%
distribute-rgt-neg-out84.2%
remove-double-neg84.2%
*-commutative84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in y around inf 69.1%
+-commutative69.1%
mul-1-neg69.1%
unsub-neg69.1%
*-commutative69.1%
Simplified69.1%
if -7.69999999999999959e-112 < c < -5.99999999999999967e-172Initial program 63.1%
Taylor expanded in a around -inf 84.9%
Taylor expanded in a around inf 92.3%
associate-*r*92.3%
neg-mul-192.3%
*-commutative92.3%
*-commutative92.3%
Simplified92.3%
if -1.2999999999999999e-243 < c < 4.80000000000000028e-261Initial program 83.3%
Taylor expanded in a around -inf 70.4%
Taylor expanded in t around 0 57.8%
mul-1-neg57.8%
*-commutative57.8%
distribute-lft-neg-in57.8%
mul-1-neg57.8%
associate-*r*64.1%
distribute-rgt-in64.1%
+-commutative64.1%
mul-1-neg64.1%
unsub-neg64.1%
*-commutative64.1%
Simplified64.1%
if 7.60000000000000046e-153 < c < 9.99999999999999955e-7Initial program 69.2%
+-commutative69.2%
fma-define73.7%
*-commutative73.7%
*-commutative73.7%
cancel-sign-sub-inv73.7%
cancel-sign-sub73.7%
sub-neg73.7%
sub-neg73.7%
*-commutative73.7%
fma-neg73.7%
*-commutative73.7%
distribute-rgt-neg-out73.7%
remove-double-neg73.7%
*-commutative73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in i around -inf 74.5%
Simplified74.5%
Taylor expanded in y around inf 65.1%
associate-*r*65.1%
neg-mul-165.1%
associate-/l*69.4%
Simplified69.4%
if 9.99999999999999955e-7 < c Initial program 60.4%
+-commutative60.4%
fma-define61.9%
*-commutative61.9%
*-commutative61.9%
cancel-sign-sub-inv61.9%
cancel-sign-sub61.9%
sub-neg61.9%
sub-neg61.9%
*-commutative61.9%
fma-neg61.9%
*-commutative61.9%
distribute-rgt-neg-out61.9%
remove-double-neg61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in c around inf 64.9%
Final simplification67.6%
(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 (* z (- (* x y) (* b c)))))
(if (<= z -3.4e+101)
t_3
(if (<= z -2e+41)
t_1
(if (<= z -9600000000000.0)
t_3
(if (<= z -2.85e-117)
(* y (- (* x z) (* i j)))
(if (<= z -1.1e-206)
t_2
(if (<= z 9.6e-285)
t_1
(if (<= z 4.4e-172)
(* i (- (* a b) (* y j)))
(if (<= z 2.8e+16)
(* t (- (* c j) (* x a)))
(if (<= z 3.9e+147) t_2 t_3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -3.4e+101) {
tmp = t_3;
} else if (z <= -2e+41) {
tmp = t_1;
} else if (z <= -9600000000000.0) {
tmp = t_3;
} else if (z <= -2.85e-117) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -1.1e-206) {
tmp = t_2;
} else if (z <= 9.6e-285) {
tmp = t_1;
} else if (z <= 4.4e-172) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 2.8e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.9e+147) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
t_3 = z * ((x * y) - (b * c))
if (z <= (-3.4d+101)) then
tmp = t_3
else if (z <= (-2d+41)) then
tmp = t_1
else if (z <= (-9600000000000.0d0)) then
tmp = t_3
else if (z <= (-2.85d-117)) then
tmp = y * ((x * z) - (i * j))
else if (z <= (-1.1d-206)) then
tmp = t_2
else if (z <= 9.6d-285) then
tmp = t_1
else if (z <= 4.4d-172) then
tmp = i * ((a * b) - (y * j))
else if (z <= 2.8d+16) then
tmp = t * ((c * j) - (x * a))
else if (z <= 3.9d+147) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -3.4e+101) {
tmp = t_3;
} else if (z <= -2e+41) {
tmp = t_1;
} else if (z <= -9600000000000.0) {
tmp = t_3;
} else if (z <= -2.85e-117) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -1.1e-206) {
tmp = t_2;
} else if (z <= 9.6e-285) {
tmp = t_1;
} else if (z <= 4.4e-172) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 2.8e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.9e+147) {
tmp = t_2;
} else {
tmp = t_3;
}
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 = z * ((x * y) - (b * c)) tmp = 0 if z <= -3.4e+101: tmp = t_3 elif z <= -2e+41: tmp = t_1 elif z <= -9600000000000.0: tmp = t_3 elif z <= -2.85e-117: tmp = y * ((x * z) - (i * j)) elif z <= -1.1e-206: tmp = t_2 elif z <= 9.6e-285: tmp = t_1 elif z <= 4.4e-172: tmp = i * ((a * b) - (y * j)) elif z <= 2.8e+16: tmp = t * ((c * j) - (x * a)) elif z <= 3.9e+147: tmp = t_2 else: tmp = t_3 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(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -3.4e+101) tmp = t_3; elseif (z <= -2e+41) tmp = t_1; elseif (z <= -9600000000000.0) tmp = t_3; elseif (z <= -2.85e-117) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (z <= -1.1e-206) tmp = t_2; elseif (z <= 9.6e-285) tmp = t_1; elseif (z <= 4.4e-172) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 2.8e+16) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 3.9e+147) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -3.4e+101) tmp = t_3; elseif (z <= -2e+41) tmp = t_1; elseif (z <= -9600000000000.0) tmp = t_3; elseif (z <= -2.85e-117) tmp = y * ((x * z) - (i * j)); elseif (z <= -1.1e-206) tmp = t_2; elseif (z <= 9.6e-285) tmp = t_1; elseif (z <= 4.4e-172) tmp = i * ((a * b) - (y * j)); elseif (z <= 2.8e+16) tmp = t * ((c * j) - (x * a)); elseif (z <= 3.9e+147) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.4e+101], t$95$3, If[LessEqual[z, -2e+41], t$95$1, If[LessEqual[z, -9600000000000.0], t$95$3, If[LessEqual[z, -2.85e-117], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.1e-206], t$95$2, If[LessEqual[z, 9.6e-285], t$95$1, If[LessEqual[z, 4.4e-172], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e+16], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.9e+147], t$95$2, t$95$3]]]]]]]]]]]]
\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 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -3.4 \cdot 10^{+101}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -2 \cdot 10^{+41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -9600000000000:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -2.85 \cdot 10^{-117}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;z \leq -1.1 \cdot 10^{-206}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 9.6 \cdot 10^{-285}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{-172}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+16}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{+147}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -3.40000000000000017e101 or -2.00000000000000001e41 < z < -9.6e12 or 3.90000000000000016e147 < z Initial program 56.0%
+-commutative56.0%
fma-define59.7%
*-commutative59.7%
*-commutative59.7%
cancel-sign-sub-inv59.7%
cancel-sign-sub59.7%
sub-neg59.7%
sub-neg59.7%
*-commutative59.7%
fma-neg59.7%
*-commutative59.7%
distribute-rgt-neg-out59.7%
remove-double-neg59.7%
*-commutative59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in t around 0 51.3%
associate-*r*48.8%
associate-*r*48.8%
*-commutative48.8%
associate-*r*51.3%
distribute-rgt-in52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in z around inf 73.3%
*-commutative73.3%
Simplified73.3%
if -3.40000000000000017e101 < z < -2.00000000000000001e41 or -1.0999999999999999e-206 < z < 9.6000000000000001e-285Initial program 64.8%
Taylor expanded in t around inf 68.1%
Taylor expanded in a around 0 68.2%
if -9.6e12 < z < -2.85e-117Initial program 84.1%
+-commutative84.1%
fma-define84.1%
*-commutative84.1%
*-commutative84.1%
cancel-sign-sub-inv84.1%
cancel-sign-sub84.1%
sub-neg84.1%
sub-neg84.1%
*-commutative84.1%
fma-neg84.1%
*-commutative84.1%
distribute-rgt-neg-out84.1%
remove-double-neg84.1%
*-commutative84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in y around inf 61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
*-commutative61.9%
Simplified61.9%
if -2.85e-117 < z < -1.0999999999999999e-206 or 2.8e16 < z < 3.90000000000000016e147Initial program 73.1%
+-commutative73.1%
fma-define75.0%
*-commutative75.0%
*-commutative75.0%
cancel-sign-sub-inv75.0%
cancel-sign-sub75.0%
sub-neg75.0%
sub-neg75.0%
*-commutative75.0%
fma-neg75.0%
*-commutative75.0%
distribute-rgt-neg-out75.0%
remove-double-neg75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in t around 0 74.9%
associate-*r*74.8%
associate-*r*74.8%
*-commutative74.8%
associate-*r*74.7%
distribute-rgt-in76.7%
+-commutative76.7%
mul-1-neg76.7%
unsub-neg76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in b around inf 64.1%
*-commutative64.1%
*-commutative64.1%
Simplified64.1%
if 9.6000000000000001e-285 < z < 4.40000000000000018e-172Initial program 74.5%
Taylor expanded in a around -inf 95.7%
Taylor expanded in t around 0 70.0%
mul-1-neg70.0%
*-commutative70.0%
distribute-lft-neg-in70.0%
mul-1-neg70.0%
associate-*r*70.0%
distribute-rgt-in70.0%
+-commutative70.0%
mul-1-neg70.0%
unsub-neg70.0%
*-commutative70.0%
Simplified70.0%
if 4.40000000000000018e-172 < z < 2.8e16Initial program 86.3%
+-commutative86.3%
fma-define86.3%
*-commutative86.3%
*-commutative86.3%
cancel-sign-sub-inv86.3%
cancel-sign-sub86.3%
sub-neg86.3%
sub-neg86.3%
*-commutative86.3%
fma-neg86.3%
*-commutative86.3%
distribute-rgt-neg-out86.3%
remove-double-neg86.3%
*-commutative86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in t around inf 68.9%
+-commutative68.9%
mul-1-neg68.9%
unsub-neg68.9%
*-commutative68.9%
Simplified68.9%
Final simplification68.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t))))
(t_2 (* j (- (* t c) (* y i))))
(t_3 (- t_2 (* a (* x t))))
(t_4 (- (* x y) (* b c))))
(if (<= z -9e+103)
(* z t_4)
(if (<= z -9.2e+39)
t_3
(if (<= z -8.1e+15)
(- (* x (* y z)) (* b (* z c)))
(if (<= z 7.5e-263)
(+ t_2 (* b (* a i)))
(if (<= z 1.22e-183)
(+ (* c (* t j)) t_1)
(if (<= z 3.7e-155)
(- t_1 (* i (* y j)))
(if (<= z 3.5e+16)
t_3
(if (<= z 3.9e+147)
(* b (- (* a i) (* z c)))
(* (* z i) (/ t_4 i))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = j * ((t * c) - (y * i));
double t_3 = t_2 - (a * (x * t));
double t_4 = (x * y) - (b * c);
double tmp;
if (z <= -9e+103) {
tmp = z * t_4;
} else if (z <= -9.2e+39) {
tmp = t_3;
} else if (z <= -8.1e+15) {
tmp = (x * (y * z)) - (b * (z * c));
} else if (z <= 7.5e-263) {
tmp = t_2 + (b * (a * i));
} else if (z <= 1.22e-183) {
tmp = (c * (t * j)) + t_1;
} else if (z <= 3.7e-155) {
tmp = t_1 - (i * (y * j));
} else if (z <= 3.5e+16) {
tmp = t_3;
} else if (z <= 3.9e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * i) * (t_4 / i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = j * ((t * c) - (y * i))
t_3 = t_2 - (a * (x * t))
t_4 = (x * y) - (b * c)
if (z <= (-9d+103)) then
tmp = z * t_4
else if (z <= (-9.2d+39)) then
tmp = t_3
else if (z <= (-8.1d+15)) then
tmp = (x * (y * z)) - (b * (z * c))
else if (z <= 7.5d-263) then
tmp = t_2 + (b * (a * i))
else if (z <= 1.22d-183) then
tmp = (c * (t * j)) + t_1
else if (z <= 3.7d-155) then
tmp = t_1 - (i * (y * j))
else if (z <= 3.5d+16) then
tmp = t_3
else if (z <= 3.9d+147) then
tmp = b * ((a * i) - (z * c))
else
tmp = (z * i) * (t_4 / i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = j * ((t * c) - (y * i));
double t_3 = t_2 - (a * (x * t));
double t_4 = (x * y) - (b * c);
double tmp;
if (z <= -9e+103) {
tmp = z * t_4;
} else if (z <= -9.2e+39) {
tmp = t_3;
} else if (z <= -8.1e+15) {
tmp = (x * (y * z)) - (b * (z * c));
} else if (z <= 7.5e-263) {
tmp = t_2 + (b * (a * i));
} else if (z <= 1.22e-183) {
tmp = (c * (t * j)) + t_1;
} else if (z <= 3.7e-155) {
tmp = t_1 - (i * (y * j));
} else if (z <= 3.5e+16) {
tmp = t_3;
} else if (z <= 3.9e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * i) * (t_4 / i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = j * ((t * c) - (y * i)) t_3 = t_2 - (a * (x * t)) t_4 = (x * y) - (b * c) tmp = 0 if z <= -9e+103: tmp = z * t_4 elif z <= -9.2e+39: tmp = t_3 elif z <= -8.1e+15: tmp = (x * (y * z)) - (b * (z * c)) elif z <= 7.5e-263: tmp = t_2 + (b * (a * i)) elif z <= 1.22e-183: tmp = (c * (t * j)) + t_1 elif z <= 3.7e-155: tmp = t_1 - (i * (y * j)) elif z <= 3.5e+16: tmp = t_3 elif z <= 3.9e+147: tmp = b * ((a * i) - (z * c)) else: tmp = (z * i) * (t_4 / i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_3 = Float64(t_2 - Float64(a * Float64(x * t))) t_4 = Float64(Float64(x * y) - Float64(b * c)) tmp = 0.0 if (z <= -9e+103) tmp = Float64(z * t_4); elseif (z <= -9.2e+39) tmp = t_3; elseif (z <= -8.1e+15) tmp = Float64(Float64(x * Float64(y * z)) - Float64(b * Float64(z * c))); elseif (z <= 7.5e-263) tmp = Float64(t_2 + Float64(b * Float64(a * i))); elseif (z <= 1.22e-183) tmp = Float64(Float64(c * Float64(t * j)) + t_1); elseif (z <= 3.7e-155) tmp = Float64(t_1 - Float64(i * Float64(y * j))); elseif (z <= 3.5e+16) tmp = t_3; elseif (z <= 3.9e+147) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(z * i) * Float64(t_4 / i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = j * ((t * c) - (y * i)); t_3 = t_2 - (a * (x * t)); t_4 = (x * y) - (b * c); tmp = 0.0; if (z <= -9e+103) tmp = z * t_4; elseif (z <= -9.2e+39) tmp = t_3; elseif (z <= -8.1e+15) tmp = (x * (y * z)) - (b * (z * c)); elseif (z <= 7.5e-263) tmp = t_2 + (b * (a * i)); elseif (z <= 1.22e-183) tmp = (c * (t * j)) + t_1; elseif (z <= 3.7e-155) tmp = t_1 - (i * (y * j)); elseif (z <= 3.5e+16) tmp = t_3; elseif (z <= 3.9e+147) tmp = b * ((a * i) - (z * c)); else tmp = (z * i) * (t_4 / i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9e+103], N[(z * t$95$4), $MachinePrecision], If[LessEqual[z, -9.2e+39], t$95$3, If[LessEqual[z, -8.1e+15], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e-263], N[(t$95$2 + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.22e-183], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[z, 3.7e-155], N[(t$95$1 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e+16], t$95$3, If[LessEqual[z, 3.9e+147], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * i), $MachinePrecision] * N[(t$95$4 / i), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_3 := t\_2 - a \cdot \left(x \cdot t\right)\\
t_4 := x \cdot y - b \cdot c\\
\mathbf{if}\;z \leq -9 \cdot 10^{+103}:\\
\;\;\;\;z \cdot t\_4\\
\mathbf{elif}\;z \leq -9.2 \cdot 10^{+39}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -8.1 \cdot 10^{+15}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-263}:\\
\;\;\;\;t\_2 + b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;z \leq 1.22 \cdot 10^{-183}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + t\_1\\
\mathbf{elif}\;z \leq 3.7 \cdot 10^{-155}:\\
\;\;\;\;t\_1 - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+16}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{+147}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot i\right) \cdot \frac{t\_4}{i}\\
\end{array}
\end{array}
if z < -9.00000000000000002e103Initial program 58.7%
+-commutative58.7%
fma-define61.2%
*-commutative61.2%
*-commutative61.2%
cancel-sign-sub-inv61.2%
cancel-sign-sub61.2%
sub-neg61.2%
sub-neg61.2%
*-commutative61.2%
fma-neg61.2%
*-commutative61.2%
distribute-rgt-neg-out61.2%
remove-double-neg61.2%
*-commutative61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in t around 0 51.6%
associate-*r*46.5%
associate-*r*46.5%
*-commutative46.5%
associate-*r*46.6%
distribute-rgt-in49.0%
+-commutative49.0%
mul-1-neg49.0%
unsub-neg49.0%
*-commutative49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in z around inf 73.3%
*-commutative73.3%
Simplified73.3%
if -9.00000000000000002e103 < z < -9.20000000000000047e39 or 3.7e-155 < z < 3.5e16Initial program 81.1%
Taylor expanded in t around inf 81.8%
if -9.20000000000000047e39 < z < -8.1e15Initial program 87.5%
+-commutative87.5%
fma-define87.5%
*-commutative87.5%
*-commutative87.5%
cancel-sign-sub-inv87.5%
cancel-sign-sub87.5%
sub-neg87.5%
sub-neg87.5%
*-commutative87.5%
fma-neg87.5%
*-commutative87.5%
distribute-rgt-neg-out87.5%
remove-double-neg87.5%
*-commutative87.5%
*-commutative87.5%
Simplified87.5%
Taylor expanded in t around 0 75.1%
associate-*r*87.6%
associate-*r*87.6%
*-commutative87.6%
associate-*r*87.6%
distribute-rgt-in87.6%
+-commutative87.6%
mul-1-neg87.6%
unsub-neg87.6%
*-commutative87.6%
*-commutative87.6%
Simplified87.6%
Taylor expanded in i around 0 75.1%
if -8.1e15 < z < 7.50000000000000044e-263Initial program 79.7%
Taylor expanded in i around inf 67.4%
*-commutative67.4%
associate-*r*69.8%
Simplified69.8%
if 7.50000000000000044e-263 < z < 1.21999999999999992e-183Initial program 65.3%
Taylor expanded in a around -inf 93.2%
Taylor expanded in y around 0 93.0%
neg-mul-193.0%
+-commutative93.0%
unsub-neg93.0%
*-commutative93.0%
*-commutative93.0%
*-commutative93.0%
Simplified93.0%
if 1.21999999999999992e-183 < z < 3.7e-155Initial program 40.0%
Taylor expanded in a around -inf 60.0%
Taylor expanded in c around 0 80.0%
neg-mul-180.0%
+-commutative80.0%
unsub-neg80.0%
mul-1-neg80.0%
distribute-rgt-neg-in80.0%
distribute-rgt-neg-in80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
if 3.5e16 < z < 3.90000000000000016e147Initial program 73.3%
+-commutative73.3%
fma-define76.3%
*-commutative76.3%
*-commutative76.3%
cancel-sign-sub-inv76.3%
cancel-sign-sub76.3%
sub-neg76.3%
sub-neg76.3%
*-commutative76.3%
fma-neg76.3%
*-commutative76.3%
distribute-rgt-neg-out76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in t around 0 81.6%
associate-*r*81.6%
associate-*r*81.6%
*-commutative81.6%
associate-*r*81.3%
distribute-rgt-in84.4%
+-commutative84.4%
mul-1-neg84.4%
unsub-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in b around inf 71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
if 3.90000000000000016e147 < z Initial program 40.9%
+-commutative40.9%
fma-define47.6%
*-commutative47.6%
*-commutative47.6%
cancel-sign-sub-inv47.6%
cancel-sign-sub47.6%
sub-neg47.6%
sub-neg47.6%
*-commutative47.6%
fma-neg47.6%
*-commutative47.6%
distribute-rgt-neg-out47.6%
remove-double-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in i around -inf 47.6%
Simplified53.9%
Taylor expanded in z around inf 71.0%
associate-*r*71.1%
*-commutative71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
associate-/l*71.1%
associate-/l*67.9%
Simplified67.9%
Taylor expanded in z around 0 71.0%
div-sub74.3%
associate-*r*74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
Final simplification74.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (+ t_1 (* a (* b i))))
(t_3 (- (* x y) (* b c)))
(t_4 (* z t_3)))
(if (<= z -2.2e+101)
t_4
(if (<= z -3.6e+24)
t_2
(if (<= z -1.15e+16)
t_4
(if (<= z -4e-192)
(+ t_1 (* b (* a i)))
(if (<= z 1.45e-162)
t_2
(if (<= z 3.3e+16)
(* t (- (* c j) (* x a)))
(if (<= z 3.9e+147)
(* b (- (* a i) (* z c)))
(* (* z i) (/ t_3 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 t_2 = t_1 + (a * (b * i));
double t_3 = (x * y) - (b * c);
double t_4 = z * t_3;
double tmp;
if (z <= -2.2e+101) {
tmp = t_4;
} else if (z <= -3.6e+24) {
tmp = t_2;
} else if (z <= -1.15e+16) {
tmp = t_4;
} else if (z <= -4e-192) {
tmp = t_1 + (b * (a * i));
} else if (z <= 1.45e-162) {
tmp = t_2;
} else if (z <= 3.3e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.9e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * i) * (t_3 / i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = t_1 + (a * (b * i))
t_3 = (x * y) - (b * c)
t_4 = z * t_3
if (z <= (-2.2d+101)) then
tmp = t_4
else if (z <= (-3.6d+24)) then
tmp = t_2
else if (z <= (-1.15d+16)) then
tmp = t_4
else if (z <= (-4d-192)) then
tmp = t_1 + (b * (a * i))
else if (z <= 1.45d-162) then
tmp = t_2
else if (z <= 3.3d+16) then
tmp = t * ((c * j) - (x * a))
else if (z <= 3.9d+147) then
tmp = b * ((a * i) - (z * c))
else
tmp = (z * i) * (t_3 / 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 t_2 = t_1 + (a * (b * i));
double t_3 = (x * y) - (b * c);
double t_4 = z * t_3;
double tmp;
if (z <= -2.2e+101) {
tmp = t_4;
} else if (z <= -3.6e+24) {
tmp = t_2;
} else if (z <= -1.15e+16) {
tmp = t_4;
} else if (z <= -4e-192) {
tmp = t_1 + (b * (a * i));
} else if (z <= 1.45e-162) {
tmp = t_2;
} else if (z <= 3.3e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.9e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * i) * (t_3 / i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t_1 + (a * (b * i)) t_3 = (x * y) - (b * c) t_4 = z * t_3 tmp = 0 if z <= -2.2e+101: tmp = t_4 elif z <= -3.6e+24: tmp = t_2 elif z <= -1.15e+16: tmp = t_4 elif z <= -4e-192: tmp = t_1 + (b * (a * i)) elif z <= 1.45e-162: tmp = t_2 elif z <= 3.3e+16: tmp = t * ((c * j) - (x * a)) elif z <= 3.9e+147: tmp = b * ((a * i) - (z * c)) else: tmp = (z * i) * (t_3 / 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))) t_2 = Float64(t_1 + Float64(a * Float64(b * i))) t_3 = Float64(Float64(x * y) - Float64(b * c)) t_4 = Float64(z * t_3) tmp = 0.0 if (z <= -2.2e+101) tmp = t_4; elseif (z <= -3.6e+24) tmp = t_2; elseif (z <= -1.15e+16) tmp = t_4; elseif (z <= -4e-192) tmp = Float64(t_1 + Float64(b * Float64(a * i))); elseif (z <= 1.45e-162) tmp = t_2; elseif (z <= 3.3e+16) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 3.9e+147) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(z * i) * Float64(t_3 / 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)); t_2 = t_1 + (a * (b * i)); t_3 = (x * y) - (b * c); t_4 = z * t_3; tmp = 0.0; if (z <= -2.2e+101) tmp = t_4; elseif (z <= -3.6e+24) tmp = t_2; elseif (z <= -1.15e+16) tmp = t_4; elseif (z <= -4e-192) tmp = t_1 + (b * (a * i)); elseif (z <= 1.45e-162) tmp = t_2; elseif (z <= 3.3e+16) tmp = t * ((c * j) - (x * a)); elseif (z <= 3.9e+147) tmp = b * ((a * i) - (z * c)); else tmp = (z * i) * (t_3 / 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]}, Block[{t$95$2 = N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(z * t$95$3), $MachinePrecision]}, If[LessEqual[z, -2.2e+101], t$95$4, If[LessEqual[z, -3.6e+24], t$95$2, If[LessEqual[z, -1.15e+16], t$95$4, If[LessEqual[z, -4e-192], N[(t$95$1 + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.45e-162], t$95$2, If[LessEqual[z, 3.3e+16], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.9e+147], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * i), $MachinePrecision] * N[(t$95$3 / i), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t\_1 + a \cdot \left(b \cdot i\right)\\
t_3 := x \cdot y - b \cdot c\\
t_4 := z \cdot t\_3\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+101}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;z \leq -3.6 \cdot 10^{+24}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{+16}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;z \leq -4 \cdot 10^{-192}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{-162}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{+16}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{+147}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot i\right) \cdot \frac{t\_3}{i}\\
\end{array}
\end{array}
if z < -2.2000000000000001e101 or -3.59999999999999983e24 < z < -1.15e16Initial program 61.0%
+-commutative61.0%
fma-define63.2%
*-commutative63.2%
*-commutative63.2%
cancel-sign-sub-inv63.2%
cancel-sign-sub63.2%
sub-neg63.2%
sub-neg63.2%
*-commutative63.2%
fma-neg63.2%
*-commutative63.2%
distribute-rgt-neg-out63.2%
remove-double-neg63.2%
*-commutative63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in t around 0 54.7%
associate-*r*52.3%
associate-*r*52.3%
*-commutative52.3%
associate-*r*52.4%
distribute-rgt-in54.6%
+-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
*-commutative54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in z around inf 76.2%
*-commutative76.2%
Simplified76.2%
if -2.2000000000000001e101 < z < -3.59999999999999983e24 or -4.0000000000000004e-192 < z < 1.4500000000000001e-162Initial program 70.6%
Taylor expanded in i around inf 72.7%
if -1.15e16 < z < -4.0000000000000004e-192Initial program 81.0%
Taylor expanded in i around inf 63.3%
*-commutative63.3%
associate-*r*67.5%
Simplified67.5%
if 1.4500000000000001e-162 < z < 3.3e16Initial program 86.3%
+-commutative86.3%
fma-define86.3%
*-commutative86.3%
*-commutative86.3%
cancel-sign-sub-inv86.3%
cancel-sign-sub86.3%
sub-neg86.3%
sub-neg86.3%
*-commutative86.3%
fma-neg86.3%
*-commutative86.3%
distribute-rgt-neg-out86.3%
remove-double-neg86.3%
*-commutative86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in t around inf 68.9%
+-commutative68.9%
mul-1-neg68.9%
unsub-neg68.9%
*-commutative68.9%
Simplified68.9%
if 3.3e16 < z < 3.90000000000000016e147Initial program 73.3%
+-commutative73.3%
fma-define76.3%
*-commutative76.3%
*-commutative76.3%
cancel-sign-sub-inv76.3%
cancel-sign-sub76.3%
sub-neg76.3%
sub-neg76.3%
*-commutative76.3%
fma-neg76.3%
*-commutative76.3%
distribute-rgt-neg-out76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in t around 0 81.6%
associate-*r*81.6%
associate-*r*81.6%
*-commutative81.6%
associate-*r*81.3%
distribute-rgt-in84.4%
+-commutative84.4%
mul-1-neg84.4%
unsub-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in b around inf 71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
if 3.90000000000000016e147 < z Initial program 40.9%
+-commutative40.9%
fma-define47.6%
*-commutative47.6%
*-commutative47.6%
cancel-sign-sub-inv47.6%
cancel-sign-sub47.6%
sub-neg47.6%
sub-neg47.6%
*-commutative47.6%
fma-neg47.6%
*-commutative47.6%
distribute-rgt-neg-out47.6%
remove-double-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in i around -inf 47.6%
Simplified53.9%
Taylor expanded in z around inf 71.0%
associate-*r*71.1%
*-commutative71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
associate-/l*71.1%
associate-/l*67.9%
Simplified67.9%
Taylor expanded in z around 0 71.0%
div-sub74.3%
associate-*r*74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
Final simplification71.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (- (* x y) (* b c)))
(t_3 (* z t_2)))
(if (<= z -1.25e+103)
t_3
(if (<= z -1.15e+25)
(+ t_1 (* a (* b i)))
(if (<= z -66000000000000.0)
t_3
(if (<= z 2e-263)
(+ t_1 (* b (* a i)))
(if (<= z 3.4e-161)
(+ (* c (* t j)) (* a (- (* b i) (* x t))))
(if (<= z 2e+16)
(* t (- (* c j) (* x a)))
(if (<= z 3.9e+147)
(* b (- (* a i) (* z c)))
(* (* z i) (/ t_2 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 t_2 = (x * y) - (b * c);
double t_3 = z * t_2;
double tmp;
if (z <= -1.25e+103) {
tmp = t_3;
} else if (z <= -1.15e+25) {
tmp = t_1 + (a * (b * i));
} else if (z <= -66000000000000.0) {
tmp = t_3;
} else if (z <= 2e-263) {
tmp = t_1 + (b * (a * i));
} else if (z <= 3.4e-161) {
tmp = (c * (t * j)) + (a * ((b * i) - (x * t)));
} else if (z <= 2e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.9e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * i) * (t_2 / i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = (x * y) - (b * c)
t_3 = z * t_2
if (z <= (-1.25d+103)) then
tmp = t_3
else if (z <= (-1.15d+25)) then
tmp = t_1 + (a * (b * i))
else if (z <= (-66000000000000.0d0)) then
tmp = t_3
else if (z <= 2d-263) then
tmp = t_1 + (b * (a * i))
else if (z <= 3.4d-161) then
tmp = (c * (t * j)) + (a * ((b * i) - (x * t)))
else if (z <= 2d+16) then
tmp = t * ((c * j) - (x * a))
else if (z <= 3.9d+147) then
tmp = b * ((a * i) - (z * c))
else
tmp = (z * i) * (t_2 / 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 t_2 = (x * y) - (b * c);
double t_3 = z * t_2;
double tmp;
if (z <= -1.25e+103) {
tmp = t_3;
} else if (z <= -1.15e+25) {
tmp = t_1 + (a * (b * i));
} else if (z <= -66000000000000.0) {
tmp = t_3;
} else if (z <= 2e-263) {
tmp = t_1 + (b * (a * i));
} else if (z <= 3.4e-161) {
tmp = (c * (t * j)) + (a * ((b * i) - (x * t)));
} else if (z <= 2e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.9e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * i) * (t_2 / i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = (x * y) - (b * c) t_3 = z * t_2 tmp = 0 if z <= -1.25e+103: tmp = t_3 elif z <= -1.15e+25: tmp = t_1 + (a * (b * i)) elif z <= -66000000000000.0: tmp = t_3 elif z <= 2e-263: tmp = t_1 + (b * (a * i)) elif z <= 3.4e-161: tmp = (c * (t * j)) + (a * ((b * i) - (x * t))) elif z <= 2e+16: tmp = t * ((c * j) - (x * a)) elif z <= 3.9e+147: tmp = b * ((a * i) - (z * c)) else: tmp = (z * i) * (t_2 / 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))) t_2 = Float64(Float64(x * y) - Float64(b * c)) t_3 = Float64(z * t_2) tmp = 0.0 if (z <= -1.25e+103) tmp = t_3; elseif (z <= -1.15e+25) tmp = Float64(t_1 + Float64(a * Float64(b * i))); elseif (z <= -66000000000000.0) tmp = t_3; elseif (z <= 2e-263) tmp = Float64(t_1 + Float64(b * Float64(a * i))); elseif (z <= 3.4e-161) tmp = Float64(Float64(c * Float64(t * j)) + Float64(a * Float64(Float64(b * i) - Float64(x * t)))); elseif (z <= 2e+16) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 3.9e+147) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(z * i) * Float64(t_2 / 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)); t_2 = (x * y) - (b * c); t_3 = z * t_2; tmp = 0.0; if (z <= -1.25e+103) tmp = t_3; elseif (z <= -1.15e+25) tmp = t_1 + (a * (b * i)); elseif (z <= -66000000000000.0) tmp = t_3; elseif (z <= 2e-263) tmp = t_1 + (b * (a * i)); elseif (z <= 3.4e-161) tmp = (c * (t * j)) + (a * ((b * i) - (x * t))); elseif (z <= 2e+16) tmp = t * ((c * j) - (x * a)); elseif (z <= 3.9e+147) tmp = b * ((a * i) - (z * c)); else tmp = (z * i) * (t_2 / 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]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * t$95$2), $MachinePrecision]}, If[LessEqual[z, -1.25e+103], t$95$3, If[LessEqual[z, -1.15e+25], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -66000000000000.0], t$95$3, If[LessEqual[z, 2e-263], N[(t$95$1 + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.4e-161], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+16], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.9e+147], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * i), $MachinePrecision] * N[(t$95$2 / i), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot y - b \cdot c\\
t_3 := z \cdot t\_2\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{+103}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{+25}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq -66000000000000:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-263}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-161}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+16}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{+147}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot i\right) \cdot \frac{t\_2}{i}\\
\end{array}
\end{array}
if z < -1.25e103 or -1.1499999999999999e25 < z < -6.6e13Initial program 61.0%
+-commutative61.0%
fma-define63.2%
*-commutative63.2%
*-commutative63.2%
cancel-sign-sub-inv63.2%
cancel-sign-sub63.2%
sub-neg63.2%
sub-neg63.2%
*-commutative63.2%
fma-neg63.2%
*-commutative63.2%
distribute-rgt-neg-out63.2%
remove-double-neg63.2%
*-commutative63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in t around 0 54.7%
associate-*r*52.3%
associate-*r*52.3%
*-commutative52.3%
associate-*r*52.4%
distribute-rgt-in54.6%
+-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
*-commutative54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in z around inf 76.2%
*-commutative76.2%
Simplified76.2%
if -1.25e103 < z < -1.1499999999999999e25Initial program 58.3%
Taylor expanded in i around inf 66.9%
if -6.6e13 < z < 2e-263Initial program 79.7%
Taylor expanded in i around inf 67.4%
*-commutative67.4%
associate-*r*69.8%
Simplified69.8%
if 2e-263 < z < 3.39999999999999982e-161Initial program 63.4%
Taylor expanded in a around -inf 94.1%
Taylor expanded in y around 0 81.9%
neg-mul-181.9%
+-commutative81.9%
unsub-neg81.9%
*-commutative81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
if 3.39999999999999982e-161 < z < 2e16Initial program 86.3%
+-commutative86.3%
fma-define86.3%
*-commutative86.3%
*-commutative86.3%
cancel-sign-sub-inv86.3%
cancel-sign-sub86.3%
sub-neg86.3%
sub-neg86.3%
*-commutative86.3%
fma-neg86.3%
*-commutative86.3%
distribute-rgt-neg-out86.3%
remove-double-neg86.3%
*-commutative86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in t around inf 68.9%
+-commutative68.9%
mul-1-neg68.9%
unsub-neg68.9%
*-commutative68.9%
Simplified68.9%
if 2e16 < z < 3.90000000000000016e147Initial program 73.3%
+-commutative73.3%
fma-define76.3%
*-commutative76.3%
*-commutative76.3%
cancel-sign-sub-inv76.3%
cancel-sign-sub76.3%
sub-neg76.3%
sub-neg76.3%
*-commutative76.3%
fma-neg76.3%
*-commutative76.3%
distribute-rgt-neg-out76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in t around 0 81.6%
associate-*r*81.6%
associate-*r*81.6%
*-commutative81.6%
associate-*r*81.3%
distribute-rgt-in84.4%
+-commutative84.4%
mul-1-neg84.4%
unsub-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in b around inf 71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
if 3.90000000000000016e147 < z Initial program 40.9%
+-commutative40.9%
fma-define47.6%
*-commutative47.6%
*-commutative47.6%
cancel-sign-sub-inv47.6%
cancel-sign-sub47.6%
sub-neg47.6%
sub-neg47.6%
*-commutative47.6%
fma-neg47.6%
*-commutative47.6%
distribute-rgt-neg-out47.6%
remove-double-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in i around -inf 47.6%
Simplified53.9%
Taylor expanded in z around inf 71.0%
associate-*r*71.1%
*-commutative71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
associate-/l*71.1%
associate-/l*67.9%
Simplified67.9%
Taylor expanded in z around 0 71.0%
div-sub74.3%
associate-*r*74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
Final simplification72.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (- (* x y) (* b c)))
(t_3 (* z t_2)))
(if (<= z -2e+103)
t_3
(if (<= z -3.7e+24)
(+ t_1 (* a (* b i)))
(if (<= z -3.9e+14)
t_3
(if (<= z 1.1e-262)
(+ t_1 (* b (* a i)))
(if (<= z 2.85e-161)
(+ (* c (* t j)) (* a (- (* b i) (* x t))))
(if (<= z 2.4e+16)
(- (* t (- (* c j) (* x a))) (* c (* z b)))
(if (<= z 3.8e+147)
(* b (- (* a i) (* z c)))
(* (* z i) (/ t_2 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 t_2 = (x * y) - (b * c);
double t_3 = z * t_2;
double tmp;
if (z <= -2e+103) {
tmp = t_3;
} else if (z <= -3.7e+24) {
tmp = t_1 + (a * (b * i));
} else if (z <= -3.9e+14) {
tmp = t_3;
} else if (z <= 1.1e-262) {
tmp = t_1 + (b * (a * i));
} else if (z <= 2.85e-161) {
tmp = (c * (t * j)) + (a * ((b * i) - (x * t)));
} else if (z <= 2.4e+16) {
tmp = (t * ((c * j) - (x * a))) - (c * (z * b));
} else if (z <= 3.8e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * i) * (t_2 / i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = (x * y) - (b * c)
t_3 = z * t_2
if (z <= (-2d+103)) then
tmp = t_3
else if (z <= (-3.7d+24)) then
tmp = t_1 + (a * (b * i))
else if (z <= (-3.9d+14)) then
tmp = t_3
else if (z <= 1.1d-262) then
tmp = t_1 + (b * (a * i))
else if (z <= 2.85d-161) then
tmp = (c * (t * j)) + (a * ((b * i) - (x * t)))
else if (z <= 2.4d+16) then
tmp = (t * ((c * j) - (x * a))) - (c * (z * b))
else if (z <= 3.8d+147) then
tmp = b * ((a * i) - (z * c))
else
tmp = (z * i) * (t_2 / 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 t_2 = (x * y) - (b * c);
double t_3 = z * t_2;
double tmp;
if (z <= -2e+103) {
tmp = t_3;
} else if (z <= -3.7e+24) {
tmp = t_1 + (a * (b * i));
} else if (z <= -3.9e+14) {
tmp = t_3;
} else if (z <= 1.1e-262) {
tmp = t_1 + (b * (a * i));
} else if (z <= 2.85e-161) {
tmp = (c * (t * j)) + (a * ((b * i) - (x * t)));
} else if (z <= 2.4e+16) {
tmp = (t * ((c * j) - (x * a))) - (c * (z * b));
} else if (z <= 3.8e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * i) * (t_2 / i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = (x * y) - (b * c) t_3 = z * t_2 tmp = 0 if z <= -2e+103: tmp = t_3 elif z <= -3.7e+24: tmp = t_1 + (a * (b * i)) elif z <= -3.9e+14: tmp = t_3 elif z <= 1.1e-262: tmp = t_1 + (b * (a * i)) elif z <= 2.85e-161: tmp = (c * (t * j)) + (a * ((b * i) - (x * t))) elif z <= 2.4e+16: tmp = (t * ((c * j) - (x * a))) - (c * (z * b)) elif z <= 3.8e+147: tmp = b * ((a * i) - (z * c)) else: tmp = (z * i) * (t_2 / 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))) t_2 = Float64(Float64(x * y) - Float64(b * c)) t_3 = Float64(z * t_2) tmp = 0.0 if (z <= -2e+103) tmp = t_3; elseif (z <= -3.7e+24) tmp = Float64(t_1 + Float64(a * Float64(b * i))); elseif (z <= -3.9e+14) tmp = t_3; elseif (z <= 1.1e-262) tmp = Float64(t_1 + Float64(b * Float64(a * i))); elseif (z <= 2.85e-161) tmp = Float64(Float64(c * Float64(t * j)) + Float64(a * Float64(Float64(b * i) - Float64(x * t)))); elseif (z <= 2.4e+16) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(c * Float64(z * b))); elseif (z <= 3.8e+147) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(z * i) * Float64(t_2 / 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)); t_2 = (x * y) - (b * c); t_3 = z * t_2; tmp = 0.0; if (z <= -2e+103) tmp = t_3; elseif (z <= -3.7e+24) tmp = t_1 + (a * (b * i)); elseif (z <= -3.9e+14) tmp = t_3; elseif (z <= 1.1e-262) tmp = t_1 + (b * (a * i)); elseif (z <= 2.85e-161) tmp = (c * (t * j)) + (a * ((b * i) - (x * t))); elseif (z <= 2.4e+16) tmp = (t * ((c * j) - (x * a))) - (c * (z * b)); elseif (z <= 3.8e+147) tmp = b * ((a * i) - (z * c)); else tmp = (z * i) * (t_2 / 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]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * t$95$2), $MachinePrecision]}, If[LessEqual[z, -2e+103], t$95$3, If[LessEqual[z, -3.7e+24], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.9e+14], t$95$3, If[LessEqual[z, 1.1e-262], N[(t$95$1 + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.85e-161], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e+16], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+147], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * i), $MachinePrecision] * N[(t$95$2 / i), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot y - b \cdot c\\
t_3 := z \cdot t\_2\\
\mathbf{if}\;z \leq -2 \cdot 10^{+103}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -3.7 \cdot 10^{+24}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq -3.9 \cdot 10^{+14}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{-262}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;z \leq 2.85 \cdot 10^{-161}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+16}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+147}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot i\right) \cdot \frac{t\_2}{i}\\
\end{array}
\end{array}
if z < -2e103 or -3.69999999999999999e24 < z < -3.9e14Initial program 61.0%
+-commutative61.0%
fma-define63.2%
*-commutative63.2%
*-commutative63.2%
cancel-sign-sub-inv63.2%
cancel-sign-sub63.2%
sub-neg63.2%
sub-neg63.2%
*-commutative63.2%
fma-neg63.2%
*-commutative63.2%
distribute-rgt-neg-out63.2%
remove-double-neg63.2%
*-commutative63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in t around 0 54.7%
associate-*r*52.3%
associate-*r*52.3%
*-commutative52.3%
associate-*r*52.4%
distribute-rgt-in54.6%
+-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
*-commutative54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in z around inf 76.2%
*-commutative76.2%
Simplified76.2%
if -2e103 < z < -3.69999999999999999e24Initial program 58.3%
Taylor expanded in i around inf 66.9%
if -3.9e14 < z < 1.09999999999999994e-262Initial program 79.7%
Taylor expanded in i around inf 67.4%
*-commutative67.4%
associate-*r*69.8%
Simplified69.8%
if 1.09999999999999994e-262 < z < 2.85000000000000011e-161Initial program 63.4%
Taylor expanded in a around -inf 94.1%
Taylor expanded in y around 0 81.9%
neg-mul-181.9%
+-commutative81.9%
unsub-neg81.9%
*-commutative81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
if 2.85000000000000011e-161 < z < 2.4e16Initial program 86.3%
+-commutative86.3%
fma-define86.3%
*-commutative86.3%
*-commutative86.3%
cancel-sign-sub-inv86.3%
cancel-sign-sub86.3%
sub-neg86.3%
sub-neg86.3%
*-commutative86.3%
fma-neg86.3%
*-commutative86.3%
distribute-rgt-neg-out86.3%
remove-double-neg86.3%
*-commutative86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in y around 0 62.5%
*-commutative62.5%
associate-*r*65.1%
associate-*l*65.1%
associate-*r*73.2%
distribute-rgt-in75.9%
+-commutative75.9%
mul-1-neg75.9%
unsub-neg75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in c around inf 76.0%
*-commutative76.0%
associate-*l*76.0%
*-commutative76.0%
Simplified76.0%
if 2.4e16 < z < 3.7999999999999997e147Initial program 73.3%
+-commutative73.3%
fma-define76.3%
*-commutative76.3%
*-commutative76.3%
cancel-sign-sub-inv76.3%
cancel-sign-sub76.3%
sub-neg76.3%
sub-neg76.3%
*-commutative76.3%
fma-neg76.3%
*-commutative76.3%
distribute-rgt-neg-out76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in t around 0 81.6%
associate-*r*81.6%
associate-*r*81.6%
*-commutative81.6%
associate-*r*81.3%
distribute-rgt-in84.4%
+-commutative84.4%
mul-1-neg84.4%
unsub-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in b around inf 71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
if 3.7999999999999997e147 < z Initial program 40.9%
+-commutative40.9%
fma-define47.6%
*-commutative47.6%
*-commutative47.6%
cancel-sign-sub-inv47.6%
cancel-sign-sub47.6%
sub-neg47.6%
sub-neg47.6%
*-commutative47.6%
fma-neg47.6%
*-commutative47.6%
distribute-rgt-neg-out47.6%
remove-double-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in i around -inf 47.6%
Simplified53.9%
Taylor expanded in z around inf 71.0%
associate-*r*71.1%
*-commutative71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
associate-/l*71.1%
associate-/l*67.9%
Simplified67.9%
Taylor expanded in z around 0 71.0%
div-sub74.3%
associate-*r*74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
Final simplification73.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* a (- (* b i) (* x t))) (* i (* y j))))
(t_2 (- (* x y) (* b c)))
(t_3 (* z t_2)))
(if (<= z -3.15e+103)
t_3
(if (<= z -1.2e+28)
t_1
(if (<= z -3.5e+14)
t_3
(if (<= z 1.25e-220)
(+ (* j (- (* t c) (* y i))) (* b (* a i)))
(if (<= z 1.25e-163)
t_1
(if (<= z 3.2e+16)
(- (* t (- (* c j) (* x a))) (* c (* z b)))
(if (<= z 5.4e+147)
(* b (- (* a i) (* z c)))
(* (* z i) (/ t_2 i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (a * ((b * i) - (x * t))) - (i * (y * j));
double t_2 = (x * y) - (b * c);
double t_3 = z * t_2;
double tmp;
if (z <= -3.15e+103) {
tmp = t_3;
} else if (z <= -1.2e+28) {
tmp = t_1;
} else if (z <= -3.5e+14) {
tmp = t_3;
} else if (z <= 1.25e-220) {
tmp = (j * ((t * c) - (y * i))) + (b * (a * i));
} else if (z <= 1.25e-163) {
tmp = t_1;
} else if (z <= 3.2e+16) {
tmp = (t * ((c * j) - (x * a))) - (c * (z * b));
} else if (z <= 5.4e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * i) * (t_2 / i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (a * ((b * i) - (x * t))) - (i * (y * j))
t_2 = (x * y) - (b * c)
t_3 = z * t_2
if (z <= (-3.15d+103)) then
tmp = t_3
else if (z <= (-1.2d+28)) then
tmp = t_1
else if (z <= (-3.5d+14)) then
tmp = t_3
else if (z <= 1.25d-220) then
tmp = (j * ((t * c) - (y * i))) + (b * (a * i))
else if (z <= 1.25d-163) then
tmp = t_1
else if (z <= 3.2d+16) then
tmp = (t * ((c * j) - (x * a))) - (c * (z * b))
else if (z <= 5.4d+147) then
tmp = b * ((a * i) - (z * c))
else
tmp = (z * i) * (t_2 / i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (a * ((b * i) - (x * t))) - (i * (y * j));
double t_2 = (x * y) - (b * c);
double t_3 = z * t_2;
double tmp;
if (z <= -3.15e+103) {
tmp = t_3;
} else if (z <= -1.2e+28) {
tmp = t_1;
} else if (z <= -3.5e+14) {
tmp = t_3;
} else if (z <= 1.25e-220) {
tmp = (j * ((t * c) - (y * i))) + (b * (a * i));
} else if (z <= 1.25e-163) {
tmp = t_1;
} else if (z <= 3.2e+16) {
tmp = (t * ((c * j) - (x * a))) - (c * (z * b));
} else if (z <= 5.4e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * i) * (t_2 / i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (a * ((b * i) - (x * t))) - (i * (y * j)) t_2 = (x * y) - (b * c) t_3 = z * t_2 tmp = 0 if z <= -3.15e+103: tmp = t_3 elif z <= -1.2e+28: tmp = t_1 elif z <= -3.5e+14: tmp = t_3 elif z <= 1.25e-220: tmp = (j * ((t * c) - (y * i))) + (b * (a * i)) elif z <= 1.25e-163: tmp = t_1 elif z <= 3.2e+16: tmp = (t * ((c * j) - (x * a))) - (c * (z * b)) elif z <= 5.4e+147: tmp = b * ((a * i) - (z * c)) else: tmp = (z * i) * (t_2 / i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * Float64(Float64(b * i) - Float64(x * t))) - Float64(i * Float64(y * j))) t_2 = Float64(Float64(x * y) - Float64(b * c)) t_3 = Float64(z * t_2) tmp = 0.0 if (z <= -3.15e+103) tmp = t_3; elseif (z <= -1.2e+28) tmp = t_1; elseif (z <= -3.5e+14) tmp = t_3; elseif (z <= 1.25e-220) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(b * Float64(a * i))); elseif (z <= 1.25e-163) tmp = t_1; elseif (z <= 3.2e+16) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(c * Float64(z * b))); elseif (z <= 5.4e+147) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(z * i) * Float64(t_2 / i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (a * ((b * i) - (x * t))) - (i * (y * j)); t_2 = (x * y) - (b * c); t_3 = z * t_2; tmp = 0.0; if (z <= -3.15e+103) tmp = t_3; elseif (z <= -1.2e+28) tmp = t_1; elseif (z <= -3.5e+14) tmp = t_3; elseif (z <= 1.25e-220) tmp = (j * ((t * c) - (y * i))) + (b * (a * i)); elseif (z <= 1.25e-163) tmp = t_1; elseif (z <= 3.2e+16) tmp = (t * ((c * j) - (x * a))) - (c * (z * b)); elseif (z <= 5.4e+147) tmp = b * ((a * i) - (z * c)); else tmp = (z * i) * (t_2 / i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * t$95$2), $MachinePrecision]}, If[LessEqual[z, -3.15e+103], t$95$3, If[LessEqual[z, -1.2e+28], t$95$1, If[LessEqual[z, -3.5e+14], t$95$3, If[LessEqual[z, 1.25e-220], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e-163], t$95$1, If[LessEqual[z, 3.2e+16], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.4e+147], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * i), $MachinePrecision] * N[(t$95$2 / i), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right) - i \cdot \left(y \cdot j\right)\\
t_2 := x \cdot y - b \cdot c\\
t_3 := z \cdot t\_2\\
\mathbf{if}\;z \leq -3.15 \cdot 10^{+103}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{+28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{+14}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-220}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-163}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{+16}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{+147}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot i\right) \cdot \frac{t\_2}{i}\\
\end{array}
\end{array}
if z < -3.14999999999999985e103 or -1.19999999999999991e28 < z < -3.5e14Initial program 61.9%
+-commutative61.9%
fma-define64.0%
*-commutative64.0%
*-commutative64.0%
cancel-sign-sub-inv64.0%
cancel-sign-sub64.0%
sub-neg64.0%
sub-neg64.0%
*-commutative64.0%
fma-neg64.0%
*-commutative64.0%
distribute-rgt-neg-out64.0%
remove-double-neg64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in t around 0 53.5%
associate-*r*51.2%
associate-*r*51.2%
*-commutative51.2%
associate-*r*51.3%
distribute-rgt-in53.4%
+-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
*-commutative53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in z around inf 74.6%
*-commutative74.6%
Simplified74.6%
if -3.14999999999999985e103 < z < -1.19999999999999991e28 or 1.25e-220 < z < 1.24999999999999994e-163Initial program 45.7%
Taylor expanded in a around -inf 85.3%
Taylor expanded in c around 0 80.2%
neg-mul-180.2%
+-commutative80.2%
unsub-neg80.2%
mul-1-neg80.2%
distribute-rgt-neg-in80.2%
distribute-rgt-neg-in80.2%
*-commutative80.2%
*-commutative80.2%
Simplified80.2%
if -3.5e14 < z < 1.25e-220Initial program 81.3%
Taylor expanded in i around inf 68.0%
*-commutative68.0%
associate-*r*70.2%
Simplified70.2%
if 1.24999999999999994e-163 < z < 3.2e16Initial program 86.3%
+-commutative86.3%
fma-define86.3%
*-commutative86.3%
*-commutative86.3%
cancel-sign-sub-inv86.3%
cancel-sign-sub86.3%
sub-neg86.3%
sub-neg86.3%
*-commutative86.3%
fma-neg86.3%
*-commutative86.3%
distribute-rgt-neg-out86.3%
remove-double-neg86.3%
*-commutative86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in y around 0 62.5%
*-commutative62.5%
associate-*r*65.1%
associate-*l*65.1%
associate-*r*73.2%
distribute-rgt-in75.9%
+-commutative75.9%
mul-1-neg75.9%
unsub-neg75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in c around inf 76.0%
*-commutative76.0%
associate-*l*76.0%
*-commutative76.0%
Simplified76.0%
if 3.2e16 < z < 5.39999999999999995e147Initial program 73.3%
+-commutative73.3%
fma-define76.3%
*-commutative76.3%
*-commutative76.3%
cancel-sign-sub-inv76.3%
cancel-sign-sub76.3%
sub-neg76.3%
sub-neg76.3%
*-commutative76.3%
fma-neg76.3%
*-commutative76.3%
distribute-rgt-neg-out76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in t around 0 81.6%
associate-*r*81.6%
associate-*r*81.6%
*-commutative81.6%
associate-*r*81.3%
distribute-rgt-in84.4%
+-commutative84.4%
mul-1-neg84.4%
unsub-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in b around inf 71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
if 5.39999999999999995e147 < z Initial program 40.9%
+-commutative40.9%
fma-define47.6%
*-commutative47.6%
*-commutative47.6%
cancel-sign-sub-inv47.6%
cancel-sign-sub47.6%
sub-neg47.6%
sub-neg47.6%
*-commutative47.6%
fma-neg47.6%
*-commutative47.6%
distribute-rgt-neg-out47.6%
remove-double-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in i around -inf 47.6%
Simplified53.9%
Taylor expanded in z around inf 71.0%
associate-*r*71.1%
*-commutative71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
associate-/l*71.1%
associate-/l*67.9%
Simplified67.9%
Taylor expanded in z around 0 71.0%
div-sub74.3%
associate-*r*74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
Final simplification73.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* i (- (* a b) (* y j))))
(t_3 (* c (- (* t j) (* z b)))))
(if (<= c -8.5e+101)
t_3
(if (<= c -3.3e-93)
(* b (- (* a i) (* z c)))
(if (<= c -1.32e-111)
t_1
(if (<= c -3.4e-165)
t_2
(if (<= c -8.5e-241)
t_1
(if (<= c 7e-263) t_2 (if (<= c 2.65e-6) 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) - (i * j));
double t_2 = i * ((a * b) - (y * j));
double t_3 = c * ((t * j) - (z * b));
double tmp;
if (c <= -8.5e+101) {
tmp = t_3;
} else if (c <= -3.3e-93) {
tmp = b * ((a * i) - (z * c));
} else if (c <= -1.32e-111) {
tmp = t_1;
} else if (c <= -3.4e-165) {
tmp = t_2;
} else if (c <= -8.5e-241) {
tmp = t_1;
} else if (c <= 7e-263) {
tmp = t_2;
} else if (c <= 2.65e-6) {
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) - (i * j))
t_2 = i * ((a * b) - (y * j))
t_3 = c * ((t * j) - (z * b))
if (c <= (-8.5d+101)) then
tmp = t_3
else if (c <= (-3.3d-93)) then
tmp = b * ((a * i) - (z * c))
else if (c <= (-1.32d-111)) then
tmp = t_1
else if (c <= (-3.4d-165)) then
tmp = t_2
else if (c <= (-8.5d-241)) then
tmp = t_1
else if (c <= 7d-263) then
tmp = t_2
else if (c <= 2.65d-6) 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) - (i * j));
double t_2 = i * ((a * b) - (y * j));
double t_3 = c * ((t * j) - (z * b));
double tmp;
if (c <= -8.5e+101) {
tmp = t_3;
} else if (c <= -3.3e-93) {
tmp = b * ((a * i) - (z * c));
} else if (c <= -1.32e-111) {
tmp = t_1;
} else if (c <= -3.4e-165) {
tmp = t_2;
} else if (c <= -8.5e-241) {
tmp = t_1;
} else if (c <= 7e-263) {
tmp = t_2;
} else if (c <= 2.65e-6) {
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) - (i * j)) t_2 = i * ((a * b) - (y * j)) t_3 = c * ((t * j) - (z * b)) tmp = 0 if c <= -8.5e+101: tmp = t_3 elif c <= -3.3e-93: tmp = b * ((a * i) - (z * c)) elif c <= -1.32e-111: tmp = t_1 elif c <= -3.4e-165: tmp = t_2 elif c <= -8.5e-241: tmp = t_1 elif c <= 7e-263: tmp = t_2 elif c <= 2.65e-6: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_3 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -8.5e+101) tmp = t_3; elseif (c <= -3.3e-93) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (c <= -1.32e-111) tmp = t_1; elseif (c <= -3.4e-165) tmp = t_2; elseif (c <= -8.5e-241) tmp = t_1; elseif (c <= 7e-263) tmp = t_2; elseif (c <= 2.65e-6) 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) - (i * j)); t_2 = i * ((a * b) - (y * j)); t_3 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -8.5e+101) tmp = t_3; elseif (c <= -3.3e-93) tmp = b * ((a * i) - (z * c)); elseif (c <= -1.32e-111) tmp = t_1; elseif (c <= -3.4e-165) tmp = t_2; elseif (c <= -8.5e-241) tmp = t_1; elseif (c <= 7e-263) tmp = t_2; elseif (c <= 2.65e-6) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8.5e+101], t$95$3, If[LessEqual[c, -3.3e-93], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.32e-111], t$95$1, If[LessEqual[c, -3.4e-165], t$95$2, If[LessEqual[c, -8.5e-241], t$95$1, If[LessEqual[c, 7e-263], t$95$2, If[LessEqual[c, 2.65e-6], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_3 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -8.5 \cdot 10^{+101}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq -3.3 \cdot 10^{-93}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;c \leq -1.32 \cdot 10^{-111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -3.4 \cdot 10^{-165}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -8.5 \cdot 10^{-241}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 7 \cdot 10^{-263}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 2.65 \cdot 10^{-6}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if c < -8.5000000000000001e101 or 2.65e-6 < c Initial program 61.0%
+-commutative61.0%
fma-define62.9%
*-commutative62.9%
*-commutative62.9%
cancel-sign-sub-inv62.9%
cancel-sign-sub62.9%
sub-neg62.9%
sub-neg62.9%
*-commutative62.9%
fma-neg62.9%
*-commutative62.9%
distribute-rgt-neg-out62.9%
remove-double-neg62.9%
*-commutative62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in c around inf 66.7%
if -8.5000000000000001e101 < c < -3.3000000000000001e-93Initial program 68.9%
+-commutative68.9%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
cancel-sign-sub-inv72.0%
cancel-sign-sub72.0%
sub-neg72.0%
sub-neg72.0%
*-commutative72.0%
fma-neg72.0%
*-commutative72.0%
distribute-rgt-neg-out72.0%
remove-double-neg72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in t around 0 51.2%
associate-*r*53.9%
associate-*r*53.9%
*-commutative53.9%
associate-*r*60.1%
distribute-rgt-in60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in b around inf 58.8%
*-commutative58.8%
*-commutative58.8%
Simplified58.8%
if -3.3000000000000001e-93 < c < -1.32e-111 or -3.4e-165 < c < -8.49999999999999974e-241 or 6.99999999999999938e-263 < c < 2.65e-6Initial program 78.6%
+-commutative78.6%
fma-define80.0%
*-commutative80.0%
*-commutative80.0%
cancel-sign-sub-inv80.0%
cancel-sign-sub80.0%
sub-neg80.0%
sub-neg80.0%
*-commutative80.0%
fma-neg80.0%
*-commutative80.0%
distribute-rgt-neg-out80.0%
remove-double-neg80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in y around inf 62.1%
+-commutative62.1%
mul-1-neg62.1%
unsub-neg62.1%
*-commutative62.1%
Simplified62.1%
if -1.32e-111 < c < -3.4e-165 or -8.49999999999999974e-241 < c < 6.99999999999999938e-263Initial program 77.2%
Taylor expanded in a around -inf 74.8%
Taylor expanded in t around 0 58.7%
mul-1-neg58.7%
*-commutative58.7%
distribute-lft-neg-in58.7%
mul-1-neg58.7%
associate-*r*63.1%
distribute-rgt-in63.1%
+-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
*-commutative63.1%
Simplified63.1%
Final simplification63.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* i j))) (* b (- (* z c) (* a i)))))
(t_2 (- (* x y) (* b c)))
(t_3 (* z t_2)))
(if (<= z -4.6e+113)
t_3
(if (<= z -1.35e-25)
(+ (* j (- (* t c) (* y i))) t_3)
(if (<= z -5.5e-290)
t_1
(if (<= z 2.2e-89)
(+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c))))
(if (<= z 6.6e+152) t_1 (* (* z i) (/ t_2 i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)));
double t_2 = (x * y) - (b * c);
double t_3 = z * t_2;
double tmp;
if (z <= -4.6e+113) {
tmp = t_3;
} else if (z <= -1.35e-25) {
tmp = (j * ((t * c) - (y * i))) + t_3;
} else if (z <= -5.5e-290) {
tmp = t_1;
} else if (z <= 2.2e-89) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else if (z <= 6.6e+152) {
tmp = t_1;
} else {
tmp = (z * i) * (t_2 / i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)))
t_2 = (x * y) - (b * c)
t_3 = z * t_2
if (z <= (-4.6d+113)) then
tmp = t_3
else if (z <= (-1.35d-25)) then
tmp = (j * ((t * c) - (y * i))) + t_3
else if (z <= (-5.5d-290)) then
tmp = t_1
else if (z <= 2.2d-89) then
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
else if (z <= 6.6d+152) then
tmp = t_1
else
tmp = (z * i) * (t_2 / 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 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)));
double t_2 = (x * y) - (b * c);
double t_3 = z * t_2;
double tmp;
if (z <= -4.6e+113) {
tmp = t_3;
} else if (z <= -1.35e-25) {
tmp = (j * ((t * c) - (y * i))) + t_3;
} else if (z <= -5.5e-290) {
tmp = t_1;
} else if (z <= 2.2e-89) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else if (z <= 6.6e+152) {
tmp = t_1;
} else {
tmp = (z * i) * (t_2 / i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i))) t_2 = (x * y) - (b * c) t_3 = z * t_2 tmp = 0 if z <= -4.6e+113: tmp = t_3 elif z <= -1.35e-25: tmp = (j * ((t * c) - (y * i))) + t_3 elif z <= -5.5e-290: tmp = t_1 elif z <= 2.2e-89: tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) elif z <= 6.6e+152: tmp = t_1 else: tmp = (z * i) * (t_2 / i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))) t_2 = Float64(Float64(x * y) - Float64(b * c)) t_3 = Float64(z * t_2) tmp = 0.0 if (z <= -4.6e+113) tmp = t_3; elseif (z <= -1.35e-25) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + t_3); elseif (z <= -5.5e-290) tmp = t_1; elseif (z <= 2.2e-89) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (z <= 6.6e+152) tmp = t_1; else tmp = Float64(Float64(z * i) * Float64(t_2 / i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i))); t_2 = (x * y) - (b * c); t_3 = z * t_2; tmp = 0.0; if (z <= -4.6e+113) tmp = t_3; elseif (z <= -1.35e-25) tmp = (j * ((t * c) - (y * i))) + t_3; elseif (z <= -5.5e-290) tmp = t_1; elseif (z <= 2.2e-89) tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); elseif (z <= 6.6e+152) tmp = t_1; else tmp = (z * i) * (t_2 / i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * t$95$2), $MachinePrecision]}, If[LessEqual[z, -4.6e+113], t$95$3, If[LessEqual[z, -1.35e-25], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision], If[LessEqual[z, -5.5e-290], t$95$1, If[LessEqual[z, 2.2e-89], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e+152], t$95$1, N[(N[(z * i), $MachinePrecision] * N[(t$95$2 / i), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
t_2 := x \cdot y - b \cdot c\\
t_3 := z \cdot t\_2\\
\mathbf{if}\;z \leq -4.6 \cdot 10^{+113}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-25}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + t\_3\\
\mathbf{elif}\;z \leq -5.5 \cdot 10^{-290}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{-89}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{+152}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot i\right) \cdot \frac{t\_2}{i}\\
\end{array}
\end{array}
if z < -4.59999999999999993e113Initial program 60.5%
+-commutative60.5%
fma-define63.1%
*-commutative63.1%
*-commutative63.1%
cancel-sign-sub-inv63.1%
cancel-sign-sub63.1%
sub-neg63.1%
sub-neg63.1%
*-commutative63.1%
fma-neg63.1%
*-commutative63.1%
distribute-rgt-neg-out63.1%
remove-double-neg63.1%
*-commutative63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in t around 0 52.9%
associate-*r*47.4%
associate-*r*47.4%
*-commutative47.4%
associate-*r*47.5%
distribute-rgt-in50.1%
+-commutative50.1%
mul-1-neg50.1%
unsub-neg50.1%
*-commutative50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in z around inf 73.8%
*-commutative73.8%
Simplified73.8%
if -4.59999999999999993e113 < z < -1.35000000000000008e-25Initial program 73.6%
Taylor expanded in z around inf 80.1%
*-commutative80.1%
*-commutative80.1%
Simplified80.1%
if -1.35000000000000008e-25 < z < -5.5e-290 or 2.20000000000000012e-89 < z < 6.6000000000000003e152Initial program 76.2%
+-commutative76.2%
fma-define77.1%
*-commutative77.1%
*-commutative77.1%
cancel-sign-sub-inv77.1%
cancel-sign-sub77.1%
sub-neg77.1%
sub-neg77.1%
*-commutative77.1%
fma-neg77.1%
*-commutative77.1%
distribute-rgt-neg-out77.1%
remove-double-neg77.1%
*-commutative77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in t around 0 74.9%
associate-*r*76.6%
associate-*r*76.6%
*-commutative76.6%
associate-*r*76.5%
distribute-rgt-in77.5%
+-commutative77.5%
mul-1-neg77.5%
unsub-neg77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
if -5.5e-290 < z < 2.20000000000000012e-89Initial program 77.0%
+-commutative77.0%
fma-define77.0%
*-commutative77.0%
*-commutative77.0%
cancel-sign-sub-inv77.0%
cancel-sign-sub77.0%
sub-neg77.0%
sub-neg77.0%
*-commutative77.0%
fma-neg77.0%
*-commutative77.0%
distribute-rgt-neg-out77.0%
remove-double-neg77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in y around 0 65.8%
*-commutative65.8%
associate-*r*69.5%
associate-*l*69.5%
associate-*r*75.2%
distribute-rgt-in77.1%
+-commutative77.1%
mul-1-neg77.1%
unsub-neg77.1%
*-commutative77.1%
*-commutative77.1%
Simplified77.1%
if 6.6000000000000003e152 < z Initial program 42.3%
+-commutative42.3%
fma-define49.2%
*-commutative49.2%
*-commutative49.2%
cancel-sign-sub-inv49.2%
cancel-sign-sub49.2%
sub-neg49.2%
sub-neg49.2%
*-commutative49.2%
fma-neg49.2%
*-commutative49.2%
distribute-rgt-neg-out49.2%
remove-double-neg49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in i around -inf 49.2%
Simplified52.4%
Taylor expanded in z around inf 73.5%
associate-*r*73.5%
*-commutative73.5%
+-commutative73.5%
mul-1-neg73.5%
unsub-neg73.5%
associate-/l*73.5%
associate-/l*70.2%
Simplified70.2%
Taylor expanded in z around 0 73.5%
div-sub76.9%
associate-*r*77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Final simplification77.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* i j))) (* b (- (* z c) (* a i)))))
(t_2 (* j (- (* t c) (* y i))))
(t_3 (- (* x y) (* b c)))
(t_4 (* z t_3)))
(if (<= z -6.8e+113)
t_4
(if (<= z -1.7e-24)
(+ t_2 t_4)
(if (<= z 1.01e-306)
t_1
(if (<= z 2.7)
(+ t_2 (* a (- (* b i) (* x t))))
(if (<= z 2.05e+152) t_1 (* (* z i) (/ t_3 i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)));
double t_2 = j * ((t * c) - (y * i));
double t_3 = (x * y) - (b * c);
double t_4 = z * t_3;
double tmp;
if (z <= -6.8e+113) {
tmp = t_4;
} else if (z <= -1.7e-24) {
tmp = t_2 + t_4;
} else if (z <= 1.01e-306) {
tmp = t_1;
} else if (z <= 2.7) {
tmp = t_2 + (a * ((b * i) - (x * t)));
} else if (z <= 2.05e+152) {
tmp = t_1;
} else {
tmp = (z * i) * (t_3 / i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)))
t_2 = j * ((t * c) - (y * i))
t_3 = (x * y) - (b * c)
t_4 = z * t_3
if (z <= (-6.8d+113)) then
tmp = t_4
else if (z <= (-1.7d-24)) then
tmp = t_2 + t_4
else if (z <= 1.01d-306) then
tmp = t_1
else if (z <= 2.7d0) then
tmp = t_2 + (a * ((b * i) - (x * t)))
else if (z <= 2.05d+152) then
tmp = t_1
else
tmp = (z * i) * (t_3 / 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 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)));
double t_2 = j * ((t * c) - (y * i));
double t_3 = (x * y) - (b * c);
double t_4 = z * t_3;
double tmp;
if (z <= -6.8e+113) {
tmp = t_4;
} else if (z <= -1.7e-24) {
tmp = t_2 + t_4;
} else if (z <= 1.01e-306) {
tmp = t_1;
} else if (z <= 2.7) {
tmp = t_2 + (a * ((b * i) - (x * t)));
} else if (z <= 2.05e+152) {
tmp = t_1;
} else {
tmp = (z * i) * (t_3 / i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i))) t_2 = j * ((t * c) - (y * i)) t_3 = (x * y) - (b * c) t_4 = z * t_3 tmp = 0 if z <= -6.8e+113: tmp = t_4 elif z <= -1.7e-24: tmp = t_2 + t_4 elif z <= 1.01e-306: tmp = t_1 elif z <= 2.7: tmp = t_2 + (a * ((b * i) - (x * t))) elif z <= 2.05e+152: tmp = t_1 else: tmp = (z * i) * (t_3 / i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_3 = Float64(Float64(x * y) - Float64(b * c)) t_4 = Float64(z * t_3) tmp = 0.0 if (z <= -6.8e+113) tmp = t_4; elseif (z <= -1.7e-24) tmp = Float64(t_2 + t_4); elseif (z <= 1.01e-306) tmp = t_1; elseif (z <= 2.7) tmp = Float64(t_2 + Float64(a * Float64(Float64(b * i) - Float64(x * t)))); elseif (z <= 2.05e+152) tmp = t_1; else tmp = Float64(Float64(z * i) * Float64(t_3 / i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i))); t_2 = j * ((t * c) - (y * i)); t_3 = (x * y) - (b * c); t_4 = z * t_3; tmp = 0.0; if (z <= -6.8e+113) tmp = t_4; elseif (z <= -1.7e-24) tmp = t_2 + t_4; elseif (z <= 1.01e-306) tmp = t_1; elseif (z <= 2.7) tmp = t_2 + (a * ((b * i) - (x * t))); elseif (z <= 2.05e+152) tmp = t_1; else tmp = (z * i) * (t_3 / i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(z * t$95$3), $MachinePrecision]}, If[LessEqual[z, -6.8e+113], t$95$4, If[LessEqual[z, -1.7e-24], N[(t$95$2 + t$95$4), $MachinePrecision], If[LessEqual[z, 1.01e-306], t$95$1, If[LessEqual[z, 2.7], N[(t$95$2 + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e+152], t$95$1, N[(N[(z * i), $MachinePrecision] * N[(t$95$3 / i), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_3 := x \cdot y - b \cdot c\\
t_4 := z \cdot t\_3\\
\mathbf{if}\;z \leq -6.8 \cdot 10^{+113}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{-24}:\\
\;\;\;\;t\_2 + t\_4\\
\mathbf{elif}\;z \leq 1.01 \cdot 10^{-306}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.7:\\
\;\;\;\;t\_2 + a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+152}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot i\right) \cdot \frac{t\_3}{i}\\
\end{array}
\end{array}
if z < -6.80000000000000038e113Initial program 60.5%
+-commutative60.5%
fma-define63.1%
*-commutative63.1%
*-commutative63.1%
cancel-sign-sub-inv63.1%
cancel-sign-sub63.1%
sub-neg63.1%
sub-neg63.1%
*-commutative63.1%
fma-neg63.1%
*-commutative63.1%
distribute-rgt-neg-out63.1%
remove-double-neg63.1%
*-commutative63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in t around 0 52.9%
associate-*r*47.4%
associate-*r*47.4%
*-commutative47.4%
associate-*r*47.5%
distribute-rgt-in50.1%
+-commutative50.1%
mul-1-neg50.1%
unsub-neg50.1%
*-commutative50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in z around inf 73.8%
*-commutative73.8%
Simplified73.8%
if -6.80000000000000038e113 < z < -1.69999999999999996e-24Initial program 73.6%
Taylor expanded in z around inf 80.1%
*-commutative80.1%
*-commutative80.1%
Simplified80.1%
if -1.69999999999999996e-24 < z < 1.00999999999999994e-306 or 2.7000000000000002 < z < 2.0499999999999999e152Initial program 74.5%
+-commutative74.5%
fma-define75.6%
*-commutative75.6%
*-commutative75.6%
cancel-sign-sub-inv75.6%
cancel-sign-sub75.6%
sub-neg75.6%
sub-neg75.6%
*-commutative75.6%
fma-neg75.6%
*-commutative75.6%
distribute-rgt-neg-out75.6%
remove-double-neg75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in t around 0 75.5%
associate-*r*76.4%
associate-*r*76.4%
*-commutative76.4%
associate-*r*76.4%
distribute-rgt-in77.4%
+-commutative77.4%
mul-1-neg77.4%
unsub-neg77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
if 1.00999999999999994e-306 < z < 2.7000000000000002Initial program 79.5%
Taylor expanded in a around -inf 86.3%
if 2.0499999999999999e152 < z Initial program 42.3%
+-commutative42.3%
fma-define49.2%
*-commutative49.2%
*-commutative49.2%
cancel-sign-sub-inv49.2%
cancel-sign-sub49.2%
sub-neg49.2%
sub-neg49.2%
*-commutative49.2%
fma-neg49.2%
*-commutative49.2%
distribute-rgt-neg-out49.2%
remove-double-neg49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in i around -inf 49.2%
Simplified52.4%
Taylor expanded in z around inf 73.5%
associate-*r*73.5%
*-commutative73.5%
+-commutative73.5%
mul-1-neg73.5%
unsub-neg73.5%
associate-/l*73.5%
associate-/l*70.2%
Simplified70.2%
Taylor expanded in z around 0 73.5%
div-sub76.9%
associate-*r*77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Final simplification79.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= b -1.06e+96)
(+ (* t (* c j)) (* b (- (* a i) (* z c))))
(if (<= b -2.5e-165)
(+ t_1 (* a (- (* b i) (* x t))))
(if (<= b 1.95e-150)
(+ t_1 (- (* x (- (* y z) (* t a))) (* c (* z b))))
(- (* y (- (* x z) (* i j))) (* b (- (* z c) (* a 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 (b <= -1.06e+96) {
tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
} else if (b <= -2.5e-165) {
tmp = t_1 + (a * ((b * i) - (x * t)));
} else if (b <= 1.95e-150) {
tmp = t_1 + ((x * ((y * z) - (t * a))) - (c * (z * b)));
} else {
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (b <= (-1.06d+96)) then
tmp = (t * (c * j)) + (b * ((a * i) - (z * c)))
else if (b <= (-2.5d-165)) then
tmp = t_1 + (a * ((b * i) - (x * t)))
else if (b <= 1.95d-150) then
tmp = t_1 + ((x * ((y * z) - (t * a))) - (c * (z * b)))
else
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (b <= -1.06e+96) {
tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
} else if (b <= -2.5e-165) {
tmp = t_1 + (a * ((b * i) - (x * t)));
} else if (b <= 1.95e-150) {
tmp = t_1 + ((x * ((y * z) - (t * a))) - (c * (z * b)));
} else {
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if b <= -1.06e+96: tmp = (t * (c * j)) + (b * ((a * i) - (z * c))) elif b <= -2.5e-165: tmp = t_1 + (a * ((b * i) - (x * t))) elif b <= 1.95e-150: tmp = t_1 + ((x * ((y * z) - (t * a))) - (c * (z * b))) else: tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * 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 (b <= -1.06e+96) tmp = Float64(Float64(t * Float64(c * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (b <= -2.5e-165) tmp = Float64(t_1 + Float64(a * Float64(Float64(b * i) - Float64(x * t)))); elseif (b <= 1.95e-150) tmp = Float64(t_1 + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(c * Float64(z * b)))); else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(b * Float64(Float64(z * c) - Float64(a * 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 (b <= -1.06e+96) tmp = (t * (c * j)) + (b * ((a * i) - (z * c))); elseif (b <= -2.5e-165) tmp = t_1 + (a * ((b * i) - (x * t))); elseif (b <= 1.95e-150) tmp = t_1 + ((x * ((y * z) - (t * a))) - (c * (z * b))); else tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * 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[b, -1.06e+96], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.5e-165], N[(t$95$1 + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.95e-150], N[(t$95$1 + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * 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}\;b \leq -1.06 \cdot 10^{+96}:\\
\;\;\;\;t \cdot \left(c \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-165}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{-150}:\\
\;\;\;\;t\_1 + \left(x \cdot \left(y \cdot z - t \cdot a\right) - c \cdot \left(z \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\end{array}
\end{array}
if b < -1.06e96Initial program 67.4%
+-commutative67.4%
fma-define67.4%
*-commutative67.4%
*-commutative67.4%
cancel-sign-sub-inv67.4%
cancel-sign-sub67.4%
sub-neg67.4%
sub-neg67.4%
*-commutative67.4%
fma-neg67.4%
*-commutative67.4%
distribute-rgt-neg-out67.4%
remove-double-neg67.4%
*-commutative67.4%
*-commutative67.4%
Simplified67.4%
Taylor expanded in y around 0 73.2%
*-commutative73.2%
associate-*r*75.1%
associate-*l*75.1%
associate-*r*74.9%
distribute-rgt-in74.9%
+-commutative74.9%
mul-1-neg74.9%
unsub-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in j around inf 77.0%
associate-*r*76.9%
*-commutative76.9%
Simplified76.9%
if -1.06e96 < b < -2.4999999999999999e-165Initial program 81.4%
Taylor expanded in a around -inf 77.8%
if -2.4999999999999999e-165 < b < 1.9500000000000001e-150Initial program 67.4%
Taylor expanded in c around inf 78.1%
*-commutative58.3%
associate-*l*63.6%
*-commutative63.6%
Simplified86.9%
if 1.9500000000000001e-150 < b Initial program 67.1%
+-commutative67.1%
fma-define70.1%
*-commutative70.1%
*-commutative70.1%
cancel-sign-sub-inv70.1%
cancel-sign-sub70.1%
sub-neg70.1%
sub-neg70.1%
*-commutative70.1%
fma-neg70.1%
*-commutative70.1%
distribute-rgt-neg-out70.1%
remove-double-neg70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in t around 0 68.2%
associate-*r*69.1%
associate-*r*69.1%
*-commutative69.1%
associate-*r*71.1%
distribute-rgt-in73.1%
+-commutative73.1%
mul-1-neg73.1%
unsub-neg73.1%
*-commutative73.1%
*-commutative73.1%
Simplified73.1%
Final simplification77.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* z (- (* x y) (* b c))))))
(if (<= y -5.5e+156)
(* y (- (* x z) (* i j)))
(if (<= y -2.8e-36)
t_1
(if (<= y 5e-182)
(+ (* c (* t j)) (* a (- (* b i) (* x t))))
(if (<= y 1e-73) (- (* t (- (* c j) (* x a))) (* c (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
double tmp;
if (y <= -5.5e+156) {
tmp = y * ((x * z) - (i * j));
} else if (y <= -2.8e-36) {
tmp = t_1;
} else if (y <= 5e-182) {
tmp = (c * (t * j)) + (a * ((b * i) - (x * t)));
} else if (y <= 1e-73) {
tmp = (t * ((c * j) - (x * a))) - (c * (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)))
if (y <= (-5.5d+156)) then
tmp = y * ((x * z) - (i * j))
else if (y <= (-2.8d-36)) then
tmp = t_1
else if (y <= 5d-182) then
tmp = (c * (t * j)) + (a * ((b * i) - (x * t)))
else if (y <= 1d-73) then
tmp = (t * ((c * j) - (x * a))) - (c * (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
double tmp;
if (y <= -5.5e+156) {
tmp = y * ((x * z) - (i * j));
} else if (y <= -2.8e-36) {
tmp = t_1;
} else if (y <= 5e-182) {
tmp = (c * (t * j)) + (a * ((b * i) - (x * t)));
} else if (y <= 1e-73) {
tmp = (t * ((c * j) - (x * a))) - (c * (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))) tmp = 0 if y <= -5.5e+156: tmp = y * ((x * z) - (i * j)) elif y <= -2.8e-36: tmp = t_1 elif y <= 5e-182: tmp = (c * (t * j)) + (a * ((b * i) - (x * t))) elif y <= 1e-73: tmp = (t * ((c * j) - (x * a))) - (c * (z * b)) else: tmp = t_1 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(z * Float64(Float64(x * y) - Float64(b * c)))) tmp = 0.0 if (y <= -5.5e+156) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (y <= -2.8e-36) tmp = t_1; elseif (y <= 5e-182) tmp = Float64(Float64(c * Float64(t * j)) + Float64(a * Float64(Float64(b * i) - Float64(x * t)))); elseif (y <= 1e-73) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(c * Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))); tmp = 0.0; if (y <= -5.5e+156) tmp = y * ((x * z) - (i * j)); elseif (y <= -2.8e-36) tmp = t_1; elseif (y <= 5e-182) tmp = (c * (t * j)) + (a * ((b * i) - (x * t))); elseif (y <= 1e-73) tmp = (t * ((c * j) - (x * a))) - (c * (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+156], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.8e-36], t$95$1, If[LessEqual[y, 5e-182], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e-73], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+156}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;y \leq -2.8 \cdot 10^{-36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5 \cdot 10^{-182}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 10^{-73}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.5000000000000003e156Initial program 53.1%
+-commutative53.1%
fma-define53.1%
*-commutative53.1%
*-commutative53.1%
cancel-sign-sub-inv53.1%
cancel-sign-sub53.1%
sub-neg53.1%
sub-neg53.1%
*-commutative53.1%
fma-neg53.1%
*-commutative53.1%
distribute-rgt-neg-out53.1%
remove-double-neg53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in y around inf 82.4%
+-commutative82.4%
mul-1-neg82.4%
unsub-neg82.4%
*-commutative82.4%
Simplified82.4%
if -5.5000000000000003e156 < y < -2.8000000000000001e-36 or 9.99999999999999997e-74 < y Initial program 63.6%
Taylor expanded in z around inf 69.9%
*-commutative69.9%
*-commutative69.9%
Simplified69.9%
if -2.8000000000000001e-36 < y < 5.00000000000000024e-182Initial program 81.1%
Taylor expanded in a around -inf 72.9%
Taylor expanded in y around 0 67.6%
neg-mul-167.6%
+-commutative67.6%
unsub-neg67.6%
*-commutative67.6%
*-commutative67.6%
*-commutative67.6%
Simplified67.6%
if 5.00000000000000024e-182 < y < 9.99999999999999997e-74Initial program 84.1%
+-commutative84.1%
fma-define84.1%
*-commutative84.1%
*-commutative84.1%
cancel-sign-sub-inv84.1%
cancel-sign-sub84.1%
sub-neg84.1%
sub-neg84.1%
*-commutative84.1%
fma-neg84.1%
*-commutative84.1%
distribute-rgt-neg-out84.1%
remove-double-neg84.1%
*-commutative84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in y around 0 60.7%
*-commutative60.7%
associate-*r*68.5%
associate-*l*68.5%
associate-*r*80.5%
distribute-rgt-in80.5%
+-commutative80.5%
mul-1-neg80.5%
unsub-neg80.5%
*-commutative80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in c around inf 80.8%
*-commutative80.8%
associate-*l*80.6%
*-commutative80.6%
Simplified80.6%
Final simplification71.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.42e+154)
(* y (- (* x z) (* i j)))
(if (or (<= y -8.5e-34) (not (<= y 7.5e-67)))
(+ (* j (- (* t c) (* y i))) (* z (- (* x y) (* b c))))
(+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.42e+154) {
tmp = y * ((x * z) - (i * j));
} else if ((y <= -8.5e-34) || !(y <= 7.5e-67)) {
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-1.42d+154)) then
tmp = y * ((x * z) - (i * j))
else if ((y <= (-8.5d-34)) .or. (.not. (y <= 7.5d-67))) then
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)))
else
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.42e+154) {
tmp = y * ((x * z) - (i * j));
} else if ((y <= -8.5e-34) || !(y <= 7.5e-67)) {
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.42e+154: tmp = y * ((x * z) - (i * j)) elif (y <= -8.5e-34) or not (y <= 7.5e-67): tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))) else: tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.42e+154) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif ((y <= -8.5e-34) || !(y <= 7.5e-67)) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.42e+154) tmp = y * ((x * z) - (i * j)); elseif ((y <= -8.5e-34) || ~((y <= 7.5e-67))) tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))); else tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.42e+154], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -8.5e-34], N[Not[LessEqual[y, 7.5e-67]], $MachinePrecision]], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.42 \cdot 10^{+154}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{-34} \lor \neg \left(y \leq 7.5 \cdot 10^{-67}\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if y < -1.42e154Initial program 53.1%
+-commutative53.1%
fma-define53.1%
*-commutative53.1%
*-commutative53.1%
cancel-sign-sub-inv53.1%
cancel-sign-sub53.1%
sub-neg53.1%
sub-neg53.1%
*-commutative53.1%
fma-neg53.1%
*-commutative53.1%
distribute-rgt-neg-out53.1%
remove-double-neg53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in y around inf 82.4%
+-commutative82.4%
mul-1-neg82.4%
unsub-neg82.4%
*-commutative82.4%
Simplified82.4%
if -1.42e154 < y < -8.5000000000000001e-34 or 7.5000000000000005e-67 < y Initial program 64.2%
Taylor expanded in z around inf 69.6%
*-commutative69.6%
*-commutative69.6%
Simplified69.6%
if -8.5000000000000001e-34 < y < 7.5000000000000005e-67Initial program 81.0%
+-commutative81.0%
fma-define82.9%
*-commutative82.9%
*-commutative82.9%
cancel-sign-sub-inv82.9%
cancel-sign-sub82.9%
sub-neg82.9%
sub-neg82.9%
*-commutative82.9%
fma-neg82.9%
*-commutative82.9%
distribute-rgt-neg-out82.9%
remove-double-neg82.9%
*-commutative82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in y around 0 69.7%
*-commutative69.7%
associate-*r*71.4%
associate-*l*71.4%
associate-*r*74.0%
distribute-rgt-in74.9%
+-commutative74.9%
mul-1-neg74.9%
unsub-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Final simplification73.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x y) (* b c))))
(if (<= z -1.05e+101)
(* z t_1)
(if (<= z 4e-170)
(+ (* j (- (* t c) (* y i))) (* a (* b i)))
(if (<= z 3.3e+16)
(* t (- (* c j) (* x a)))
(if (<= z 3.8e+147)
(* b (- (* a i) (* z c)))
(* (* z i) (/ t_1 i))))))))
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) - (b * c);
double tmp;
if (z <= -1.05e+101) {
tmp = z * t_1;
} else if (z <= 4e-170) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (z <= 3.3e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.8e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * i) * (t_1 / 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 = (x * y) - (b * c)
if (z <= (-1.05d+101)) then
tmp = z * t_1
else if (z <= 4d-170) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
else if (z <= 3.3d+16) then
tmp = t * ((c * j) - (x * a))
else if (z <= 3.8d+147) then
tmp = b * ((a * i) - (z * c))
else
tmp = (z * i) * (t_1 / 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 = (x * y) - (b * c);
double tmp;
if (z <= -1.05e+101) {
tmp = z * t_1;
} else if (z <= 4e-170) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (z <= 3.3e+16) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.8e+147) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (z * i) * (t_1 / i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * y) - (b * c) tmp = 0 if z <= -1.05e+101: tmp = z * t_1 elif z <= 4e-170: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) elif z <= 3.3e+16: tmp = t * ((c * j) - (x * a)) elif z <= 3.8e+147: tmp = b * ((a * i) - (z * c)) else: tmp = (z * i) * (t_1 / i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * y) - Float64(b * c)) tmp = 0.0 if (z <= -1.05e+101) tmp = Float64(z * t_1); elseif (z <= 4e-170) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); elseif (z <= 3.3e+16) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 3.8e+147) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(z * i) * Float64(t_1 / i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * y) - (b * c); tmp = 0.0; if (z <= -1.05e+101) tmp = z * t_1; elseif (z <= 4e-170) tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); elseif (z <= 3.3e+16) tmp = t * ((c * j) - (x * a)); elseif (z <= 3.8e+147) tmp = b * ((a * i) - (z * c)); else tmp = (z * i) * (t_1 / i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.05e+101], N[(z * t$95$1), $MachinePrecision], If[LessEqual[z, 4e-170], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.3e+16], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+147], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * i), $MachinePrecision] * N[(t$95$1 / i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - b \cdot c\\
\mathbf{if}\;z \leq -1.05 \cdot 10^{+101}:\\
\;\;\;\;z \cdot t\_1\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-170}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{+16}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+147}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot i\right) \cdot \frac{t\_1}{i}\\
\end{array}
\end{array}
if z < -1.05e101Initial program 59.7%
+-commutative59.7%
fma-define62.1%
*-commutative62.1%
*-commutative62.1%
cancel-sign-sub-inv62.1%
cancel-sign-sub62.1%
sub-neg62.1%
sub-neg62.1%
*-commutative62.1%
fma-neg62.1%
*-commutative62.1%
distribute-rgt-neg-out62.1%
remove-double-neg62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in t around 0 52.7%
associate-*r*47.8%
associate-*r*47.8%
*-commutative47.8%
associate-*r*47.8%
distribute-rgt-in50.2%
+-commutative50.2%
mul-1-neg50.2%
unsub-neg50.2%
*-commutative50.2%
*-commutative50.2%
Simplified50.2%
Taylor expanded in z around inf 73.9%
*-commutative73.9%
Simplified73.9%
if -1.05e101 < z < 3.99999999999999993e-170Initial program 75.0%
Taylor expanded in i around inf 66.4%
if 3.99999999999999993e-170 < z < 3.3e16Initial program 86.3%
+-commutative86.3%
fma-define86.3%
*-commutative86.3%
*-commutative86.3%
cancel-sign-sub-inv86.3%
cancel-sign-sub86.3%
sub-neg86.3%
sub-neg86.3%
*-commutative86.3%
fma-neg86.3%
*-commutative86.3%
distribute-rgt-neg-out86.3%
remove-double-neg86.3%
*-commutative86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in t around inf 68.9%
+-commutative68.9%
mul-1-neg68.9%
unsub-neg68.9%
*-commutative68.9%
Simplified68.9%
if 3.3e16 < z < 3.7999999999999997e147Initial program 73.3%
+-commutative73.3%
fma-define76.3%
*-commutative76.3%
*-commutative76.3%
cancel-sign-sub-inv76.3%
cancel-sign-sub76.3%
sub-neg76.3%
sub-neg76.3%
*-commutative76.3%
fma-neg76.3%
*-commutative76.3%
distribute-rgt-neg-out76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in t around 0 81.6%
associate-*r*81.6%
associate-*r*81.6%
*-commutative81.6%
associate-*r*81.3%
distribute-rgt-in84.4%
+-commutative84.4%
mul-1-neg84.4%
unsub-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in b around inf 71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
if 3.7999999999999997e147 < z Initial program 40.9%
+-commutative40.9%
fma-define47.6%
*-commutative47.6%
*-commutative47.6%
cancel-sign-sub-inv47.6%
cancel-sign-sub47.6%
sub-neg47.6%
sub-neg47.6%
*-commutative47.6%
fma-neg47.6%
*-commutative47.6%
distribute-rgt-neg-out47.6%
remove-double-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in i around -inf 47.6%
Simplified53.9%
Taylor expanded in z around inf 71.0%
associate-*r*71.1%
*-commutative71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
associate-/l*71.1%
associate-/l*67.9%
Simplified67.9%
Taylor expanded in z around 0 71.0%
div-sub74.3%
associate-*r*74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
Final simplification69.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.25e+46)
(* t (* c j))
(if (<= j -1.85e-196)
(* a (* b i))
(if (<= j -8.5e-267)
(* x (* y z))
(if (<= j 3.6e-26)
(* y (* x z))
(if (<= j 2.3e+235) (* j (* y (- i))) (* 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 (j <= -1.25e+46) {
tmp = t * (c * j);
} else if (j <= -1.85e-196) {
tmp = a * (b * i);
} else if (j <= -8.5e-267) {
tmp = x * (y * z);
} else if (j <= 3.6e-26) {
tmp = y * (x * z);
} else if (j <= 2.3e+235) {
tmp = j * (y * -i);
} 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 (j <= (-1.25d+46)) then
tmp = t * (c * j)
else if (j <= (-1.85d-196)) then
tmp = a * (b * i)
else if (j <= (-8.5d-267)) then
tmp = x * (y * z)
else if (j <= 3.6d-26) then
tmp = y * (x * z)
else if (j <= 2.3d+235) then
tmp = j * (y * -i)
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 (j <= -1.25e+46) {
tmp = t * (c * j);
} else if (j <= -1.85e-196) {
tmp = a * (b * i);
} else if (j <= -8.5e-267) {
tmp = x * (y * z);
} else if (j <= 3.6e-26) {
tmp = y * (x * z);
} else if (j <= 2.3e+235) {
tmp = j * (y * -i);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.25e+46: tmp = t * (c * j) elif j <= -1.85e-196: tmp = a * (b * i) elif j <= -8.5e-267: tmp = x * (y * z) elif j <= 3.6e-26: tmp = y * (x * z) elif j <= 2.3e+235: tmp = j * (y * -i) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.25e+46) tmp = Float64(t * Float64(c * j)); elseif (j <= -1.85e-196) tmp = Float64(a * Float64(b * i)); elseif (j <= -8.5e-267) tmp = Float64(x * Float64(y * z)); elseif (j <= 3.6e-26) tmp = Float64(y * Float64(x * z)); elseif (j <= 2.3e+235) tmp = Float64(j * Float64(y * Float64(-i))); 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 (j <= -1.25e+46) tmp = t * (c * j); elseif (j <= -1.85e-196) tmp = a * (b * i); elseif (j <= -8.5e-267) tmp = x * (y * z); elseif (j <= 3.6e-26) tmp = y * (x * z); elseif (j <= 2.3e+235) tmp = j * (y * -i); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.25e+46], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.85e-196], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -8.5e-267], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.6e-26], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e+235], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.25 \cdot 10^{+46}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq -1.85 \cdot 10^{-196}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq -8.5 \cdot 10^{-267}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 3.6 \cdot 10^{-26}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{+235}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if j < -1.2500000000000001e46Initial program 72.7%
Taylor expanded in t around inf 74.9%
Taylor expanded in a around 0 68.1%
Taylor expanded in c around inf 46.8%
*-commutative46.8%
*-commutative46.8%
associate-*r*49.0%
Simplified49.0%
if -1.2500000000000001e46 < j < -1.85000000000000005e-196Initial program 57.4%
Taylor expanded in a around -inf 47.3%
Taylor expanded in b around inf 36.5%
*-commutative36.5%
Simplified36.5%
if -1.85000000000000005e-196 < j < -8.49999999999999987e-267Initial program 68.8%
+-commutative68.8%
fma-define68.8%
*-commutative68.8%
*-commutative68.8%
cancel-sign-sub-inv68.8%
cancel-sign-sub68.8%
sub-neg68.8%
sub-neg68.8%
*-commutative68.8%
fma-neg68.8%
*-commutative68.8%
distribute-rgt-neg-out68.8%
remove-double-neg68.8%
*-commutative68.8%
*-commutative68.8%
Simplified68.8%
Taylor expanded in x around inf 53.1%
Taylor expanded in a around 0 38.0%
if -8.49999999999999987e-267 < j < 3.6000000000000001e-26Initial program 69.2%
+-commutative69.2%
fma-define69.2%
*-commutative69.2%
*-commutative69.2%
cancel-sign-sub-inv69.2%
cancel-sign-sub69.2%
sub-neg69.2%
sub-neg69.2%
*-commutative69.2%
fma-neg69.2%
*-commutative69.2%
distribute-rgt-neg-out69.2%
remove-double-neg69.2%
*-commutative69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in t around 0 61.4%
associate-*r*61.4%
associate-*r*61.4%
*-commutative61.4%
associate-*r*61.5%
distribute-rgt-in61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
*-commutative61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in z around inf 56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in y around inf 37.5%
associate-*r*37.5%
*-commutative37.5%
associate-*r*40.3%
Simplified40.3%
if 3.6000000000000001e-26 < j < 2.3e235Initial program 74.8%
Taylor expanded in t around inf 62.6%
Taylor expanded in a around 0 56.5%
Taylor expanded in c around 0 47.2%
mul-1-neg47.2%
distribute-lft-neg-out47.2%
*-commutative47.2%
Simplified47.2%
if 2.3e235 < j Initial program 82.3%
Taylor expanded in t around inf 54.0%
Taylor expanded in a around 0 59.9%
Taylor expanded in c around inf 48.5%
*-commutative48.5%
Simplified48.5%
Final simplification43.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1e+49)
(* t (* c j))
(if (<= j -1.15e-173)
(* a (* b i))
(if (<= j -1.22e-275)
(* x (* t (- a)))
(if (<= j 3.6e-26)
(* y (* x z))
(if (<= j 6.5e+234) (* j (* y (- i))) (* 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 (j <= -1e+49) {
tmp = t * (c * j);
} else if (j <= -1.15e-173) {
tmp = a * (b * i);
} else if (j <= -1.22e-275) {
tmp = x * (t * -a);
} else if (j <= 3.6e-26) {
tmp = y * (x * z);
} else if (j <= 6.5e+234) {
tmp = j * (y * -i);
} 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 (j <= (-1d+49)) then
tmp = t * (c * j)
else if (j <= (-1.15d-173)) then
tmp = a * (b * i)
else if (j <= (-1.22d-275)) then
tmp = x * (t * -a)
else if (j <= 3.6d-26) then
tmp = y * (x * z)
else if (j <= 6.5d+234) then
tmp = j * (y * -i)
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 (j <= -1e+49) {
tmp = t * (c * j);
} else if (j <= -1.15e-173) {
tmp = a * (b * i);
} else if (j <= -1.22e-275) {
tmp = x * (t * -a);
} else if (j <= 3.6e-26) {
tmp = y * (x * z);
} else if (j <= 6.5e+234) {
tmp = j * (y * -i);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1e+49: tmp = t * (c * j) elif j <= -1.15e-173: tmp = a * (b * i) elif j <= -1.22e-275: tmp = x * (t * -a) elif j <= 3.6e-26: tmp = y * (x * z) elif j <= 6.5e+234: tmp = j * (y * -i) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1e+49) tmp = Float64(t * Float64(c * j)); elseif (j <= -1.15e-173) tmp = Float64(a * Float64(b * i)); elseif (j <= -1.22e-275) tmp = Float64(x * Float64(t * Float64(-a))); elseif (j <= 3.6e-26) tmp = Float64(y * Float64(x * z)); elseif (j <= 6.5e+234) tmp = Float64(j * Float64(y * Float64(-i))); 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 (j <= -1e+49) tmp = t * (c * j); elseif (j <= -1.15e-173) tmp = a * (b * i); elseif (j <= -1.22e-275) tmp = x * (t * -a); elseif (j <= 3.6e-26) tmp = y * (x * z); elseif (j <= 6.5e+234) tmp = j * (y * -i); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1e+49], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.15e-173], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.22e-275], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.6e-26], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.5e+234], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1 \cdot 10^{+49}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq -1.15 \cdot 10^{-173}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq -1.22 \cdot 10^{-275}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;j \leq 3.6 \cdot 10^{-26}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{+234}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if j < -9.99999999999999946e48Initial program 72.7%
Taylor expanded in t around inf 74.9%
Taylor expanded in a around 0 68.1%
Taylor expanded in c around inf 46.8%
*-commutative46.8%
*-commutative46.8%
associate-*r*49.0%
Simplified49.0%
if -9.99999999999999946e48 < j < -1.14999999999999994e-173Initial program 56.6%
Taylor expanded in a around -inf 45.9%
Taylor expanded in b around inf 36.6%
*-commutative36.6%
Simplified36.6%
if -1.14999999999999994e-173 < j < -1.21999999999999995e-275Initial program 72.6%
+-commutative72.6%
fma-define72.6%
*-commutative72.6%
*-commutative72.6%
cancel-sign-sub-inv72.6%
cancel-sign-sub72.6%
sub-neg72.6%
sub-neg72.6%
*-commutative72.6%
fma-neg72.6%
*-commutative72.6%
distribute-rgt-neg-out72.6%
remove-double-neg72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in x around inf 48.7%
Taylor expanded in a around inf 33.5%
mul-1-neg33.5%
distribute-rgt-neg-in33.5%
Simplified33.5%
if -1.21999999999999995e-275 < j < 3.6000000000000001e-26Initial program 67.7%
+-commutative67.7%
fma-define67.7%
*-commutative67.7%
*-commutative67.7%
cancel-sign-sub-inv67.7%
cancel-sign-sub67.7%
sub-neg67.7%
sub-neg67.7%
*-commutative67.7%
fma-neg67.7%
*-commutative67.7%
distribute-rgt-neg-out67.7%
remove-double-neg67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in t around 0 61.2%
associate-*r*61.2%
associate-*r*61.2%
*-commutative61.2%
associate-*r*61.2%
distribute-rgt-in61.2%
+-commutative61.2%
mul-1-neg61.2%
unsub-neg61.2%
*-commutative61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in z around inf 55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in y around inf 39.2%
associate-*r*39.1%
*-commutative39.1%
associate-*r*42.1%
Simplified42.1%
if 3.6000000000000001e-26 < j < 6.4999999999999995e234Initial program 74.8%
Taylor expanded in t around inf 62.6%
Taylor expanded in a around 0 56.5%
Taylor expanded in c around 0 47.2%
mul-1-neg47.2%
distribute-lft-neg-out47.2%
*-commutative47.2%
Simplified47.2%
if 6.4999999999999995e234 < j Initial program 82.3%
Taylor expanded in t around inf 54.0%
Taylor expanded in a around 0 59.9%
Taylor expanded in c around inf 48.5%
*-commutative48.5%
Simplified48.5%
Final simplification43.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -2.4e+45)
(* t (* c j))
(if (<= j -8.5e-193)
(* a (* b i))
(if (<= j -6.2e-279)
(* b (* z (- c)))
(if (<= j 3.5e-26)
(* y (* x z))
(if (<= j 2e+238) (* j (* y (- i))) (* 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 (j <= -2.4e+45) {
tmp = t * (c * j);
} else if (j <= -8.5e-193) {
tmp = a * (b * i);
} else if (j <= -6.2e-279) {
tmp = b * (z * -c);
} else if (j <= 3.5e-26) {
tmp = y * (x * z);
} else if (j <= 2e+238) {
tmp = j * (y * -i);
} 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 (j <= (-2.4d+45)) then
tmp = t * (c * j)
else if (j <= (-8.5d-193)) then
tmp = a * (b * i)
else if (j <= (-6.2d-279)) then
tmp = b * (z * -c)
else if (j <= 3.5d-26) then
tmp = y * (x * z)
else if (j <= 2d+238) then
tmp = j * (y * -i)
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 (j <= -2.4e+45) {
tmp = t * (c * j);
} else if (j <= -8.5e-193) {
tmp = a * (b * i);
} else if (j <= -6.2e-279) {
tmp = b * (z * -c);
} else if (j <= 3.5e-26) {
tmp = y * (x * z);
} else if (j <= 2e+238) {
tmp = j * (y * -i);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -2.4e+45: tmp = t * (c * j) elif j <= -8.5e-193: tmp = a * (b * i) elif j <= -6.2e-279: tmp = b * (z * -c) elif j <= 3.5e-26: tmp = y * (x * z) elif j <= 2e+238: tmp = j * (y * -i) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.4e+45) tmp = Float64(t * Float64(c * j)); elseif (j <= -8.5e-193) tmp = Float64(a * Float64(b * i)); elseif (j <= -6.2e-279) tmp = Float64(b * Float64(z * Float64(-c))); elseif (j <= 3.5e-26) tmp = Float64(y * Float64(x * z)); elseif (j <= 2e+238) tmp = Float64(j * Float64(y * Float64(-i))); 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 (j <= -2.4e+45) tmp = t * (c * j); elseif (j <= -8.5e-193) tmp = a * (b * i); elseif (j <= -6.2e-279) tmp = b * (z * -c); elseif (j <= 3.5e-26) tmp = y * (x * z); elseif (j <= 2e+238) tmp = j * (y * -i); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.4e+45], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -8.5e-193], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6.2e-279], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.5e-26], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e+238], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.4 \cdot 10^{+45}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq -8.5 \cdot 10^{-193}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq -6.2 \cdot 10^{-279}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;j \leq 3.5 \cdot 10^{-26}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{+238}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if j < -2.39999999999999989e45Initial program 72.7%
Taylor expanded in t around inf 74.9%
Taylor expanded in a around 0 68.1%
Taylor expanded in c around inf 46.8%
*-commutative46.8%
*-commutative46.8%
associate-*r*49.0%
Simplified49.0%
if -2.39999999999999989e45 < j < -8.50000000000000004e-193Initial program 57.4%
Taylor expanded in a around -inf 47.3%
Taylor expanded in b around inf 36.5%
*-commutative36.5%
Simplified36.5%
if -8.50000000000000004e-193 < j < -6.1999999999999998e-279Initial program 73.1%
+-commutative73.1%
fma-define73.1%
*-commutative73.1%
*-commutative73.1%
cancel-sign-sub-inv73.1%
cancel-sign-sub73.1%
sub-neg73.1%
sub-neg73.1%
*-commutative73.1%
fma-neg73.1%
*-commutative73.1%
distribute-rgt-neg-out73.1%
remove-double-neg73.1%
*-commutative73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in t around 0 73.6%
associate-*r*73.6%
associate-*r*73.6%
*-commutative73.6%
associate-*r*73.6%
distribute-rgt-in73.6%
+-commutative73.6%
mul-1-neg73.6%
unsub-neg73.6%
*-commutative73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in c around inf 33.9%
associate-*r*33.9%
neg-mul-133.9%
*-commutative33.9%
Simplified33.9%
if -6.1999999999999998e-279 < j < 3.49999999999999985e-26Initial program 67.7%
+-commutative67.7%
fma-define67.7%
*-commutative67.7%
*-commutative67.7%
cancel-sign-sub-inv67.7%
cancel-sign-sub67.7%
sub-neg67.7%
sub-neg67.7%
*-commutative67.7%
fma-neg67.7%
*-commutative67.7%
distribute-rgt-neg-out67.7%
remove-double-neg67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in t around 0 61.2%
associate-*r*61.2%
associate-*r*61.2%
*-commutative61.2%
associate-*r*61.2%
distribute-rgt-in61.2%
+-commutative61.2%
mul-1-neg61.2%
unsub-neg61.2%
*-commutative61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in z around inf 55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in y around inf 39.2%
associate-*r*39.1%
*-commutative39.1%
associate-*r*42.1%
Simplified42.1%
if 3.49999999999999985e-26 < j < 2.0000000000000001e238Initial program 74.8%
Taylor expanded in t around inf 62.6%
Taylor expanded in a around 0 56.5%
Taylor expanded in c around 0 47.2%
mul-1-neg47.2%
distribute-lft-neg-out47.2%
*-commutative47.2%
Simplified47.2%
if 2.0000000000000001e238 < j Initial program 82.3%
Taylor expanded in t around inf 54.0%
Taylor expanded in a around 0 59.9%
Taylor expanded in c around inf 48.5%
*-commutative48.5%
Simplified48.5%
Final simplification43.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -5.1e-99)
t_1
(if (<= b -5.1e-241)
(* t (* c j))
(if (<= b 1.02e-297)
(* x (* y z))
(if (<= b 9e-144) (* x (* t (- a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.1e-99) {
tmp = t_1;
} else if (b <= -5.1e-241) {
tmp = t * (c * j);
} else if (b <= 1.02e-297) {
tmp = x * (y * z);
} else if (b <= 9e-144) {
tmp = x * (t * -a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-5.1d-99)) then
tmp = t_1
else if (b <= (-5.1d-241)) then
tmp = t * (c * j)
else if (b <= 1.02d-297) then
tmp = x * (y * z)
else if (b <= 9d-144) then
tmp = x * (t * -a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.1e-99) {
tmp = t_1;
} else if (b <= -5.1e-241) {
tmp = t * (c * j);
} else if (b <= 1.02e-297) {
tmp = x * (y * z);
} else if (b <= 9e-144) {
tmp = x * (t * -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -5.1e-99: tmp = t_1 elif b <= -5.1e-241: tmp = t * (c * j) elif b <= 1.02e-297: tmp = x * (y * z) elif b <= 9e-144: tmp = x * (t * -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.1e-99) tmp = t_1; elseif (b <= -5.1e-241) tmp = Float64(t * Float64(c * j)); elseif (b <= 1.02e-297) tmp = Float64(x * Float64(y * z)); elseif (b <= 9e-144) tmp = Float64(x * Float64(t * Float64(-a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -5.1e-99) tmp = t_1; elseif (b <= -5.1e-241) tmp = t * (c * j); elseif (b <= 1.02e-297) tmp = x * (y * z); elseif (b <= 9e-144) tmp = x * (t * -a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.1e-99], t$95$1, If[LessEqual[b, -5.1e-241], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.02e-297], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e-144], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.1 \cdot 10^{-99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.1 \cdot 10^{-241}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 1.02 \cdot 10^{-297}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-144}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.0999999999999999e-99 or 8.9999999999999996e-144 < b Initial program 71.8%
+-commutative71.8%
fma-define73.4%
*-commutative73.4%
*-commutative73.4%
cancel-sign-sub-inv73.4%
cancel-sign-sub73.4%
sub-neg73.4%
sub-neg73.4%
*-commutative73.4%
fma-neg73.4%
*-commutative73.4%
distribute-rgt-neg-out73.4%
remove-double-neg73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in t around 0 66.8%
associate-*r*67.3%
associate-*r*67.3%
*-commutative67.3%
associate-*r*68.9%
distribute-rgt-in70.0%
+-commutative70.0%
mul-1-neg70.0%
unsub-neg70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in b around inf 52.4%
*-commutative52.4%
*-commutative52.4%
Simplified52.4%
if -5.0999999999999999e-99 < b < -5.0999999999999998e-241Initial program 74.7%
Taylor expanded in t around inf 74.2%
Taylor expanded in a around 0 59.9%
Taylor expanded in c around inf 42.5%
*-commutative42.5%
*-commutative42.5%
associate-*r*45.9%
Simplified45.9%
if -5.0999999999999998e-241 < b < 1.0200000000000001e-297Initial program 51.6%
+-commutative51.6%
fma-define57.8%
*-commutative57.8%
*-commutative57.8%
cancel-sign-sub-inv57.8%
cancel-sign-sub57.8%
sub-neg57.8%
sub-neg57.8%
*-commutative57.8%
fma-neg57.8%
*-commutative57.8%
distribute-rgt-neg-out57.8%
remove-double-neg57.8%
*-commutative57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in x around inf 69.2%
Taylor expanded in a around 0 63.1%
if 1.0200000000000001e-297 < b < 8.9999999999999996e-144Initial program 63.8%
+-commutative63.8%
fma-define63.8%
*-commutative63.8%
*-commutative63.8%
cancel-sign-sub-inv63.8%
cancel-sign-sub63.8%
sub-neg63.8%
sub-neg63.8%
*-commutative63.8%
fma-neg63.8%
*-commutative63.8%
distribute-rgt-neg-out63.8%
remove-double-neg63.8%
*-commutative63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in x around inf 47.6%
Taylor expanded in a around inf 37.8%
mul-1-neg37.8%
distribute-rgt-neg-in37.8%
Simplified37.8%
Final simplification50.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -1.65e+103)
t_2
(if (<= c 1.4e-256)
t_1
(if (<= c 7.8e-184) (* z (* x y)) (if (<= c 5.8e+45) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.65e+103) {
tmp = t_2;
} else if (c <= 1.4e-256) {
tmp = t_1;
} else if (c <= 7.8e-184) {
tmp = z * (x * y);
} else if (c <= 5.8e+45) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = c * ((t * j) - (z * b))
if (c <= (-1.65d+103)) then
tmp = t_2
else if (c <= 1.4d-256) then
tmp = t_1
else if (c <= 7.8d-184) then
tmp = z * (x * y)
else if (c <= 5.8d+45) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.65e+103) {
tmp = t_2;
} else if (c <= 1.4e-256) {
tmp = t_1;
} else if (c <= 7.8e-184) {
tmp = z * (x * y);
} else if (c <= 5.8e+45) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -1.65e+103: tmp = t_2 elif c <= 1.4e-256: tmp = t_1 elif c <= 7.8e-184: tmp = z * (x * y) elif c <= 5.8e+45: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.65e+103) tmp = t_2; elseif (c <= 1.4e-256) tmp = t_1; elseif (c <= 7.8e-184) tmp = Float64(z * Float64(x * y)); elseif (c <= 5.8e+45) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -1.65e+103) tmp = t_2; elseif (c <= 1.4e-256) tmp = t_1; elseif (c <= 7.8e-184) tmp = z * (x * y); elseif (c <= 5.8e+45) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.65e+103], t$95$2, If[LessEqual[c, 1.4e-256], t$95$1, If[LessEqual[c, 7.8e-184], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.8e+45], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.65 \cdot 10^{+103}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 1.4 \cdot 10^{-256}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 7.8 \cdot 10^{-184}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 5.8 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -1.65000000000000004e103 or 5.7999999999999994e45 < c Initial program 58.7%
+-commutative58.7%
fma-define60.7%
*-commutative60.7%
*-commutative60.7%
cancel-sign-sub-inv60.7%
cancel-sign-sub60.7%
sub-neg60.7%
sub-neg60.7%
*-commutative60.7%
fma-neg60.7%
*-commutative60.7%
distribute-rgt-neg-out60.7%
remove-double-neg60.7%
*-commutative60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in c around inf 67.6%
if -1.65000000000000004e103 < c < 1.40000000000000012e-256 or 7.79999999999999988e-184 < c < 5.7999999999999994e45Initial program 75.7%
+-commutative75.7%
fma-define77.1%
*-commutative77.1%
*-commutative77.1%
cancel-sign-sub-inv77.1%
cancel-sign-sub77.1%
sub-neg77.1%
sub-neg77.1%
*-commutative77.1%
fma-neg77.1%
*-commutative77.1%
distribute-rgt-neg-out77.1%
remove-double-neg77.1%
*-commutative77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in t around 0 67.3%
associate-*r*67.2%
associate-*r*67.2%
*-commutative67.2%
associate-*r*69.3%
distribute-rgt-in69.3%
+-commutative69.3%
mul-1-neg69.3%
unsub-neg69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in b around inf 43.8%
*-commutative43.8%
*-commutative43.8%
Simplified43.8%
if 1.40000000000000012e-256 < c < 7.79999999999999988e-184Initial program 88.2%
+-commutative88.2%
fma-define88.2%
*-commutative88.2%
*-commutative88.2%
cancel-sign-sub-inv88.2%
cancel-sign-sub88.2%
sub-neg88.2%
sub-neg88.2%
*-commutative88.2%
fma-neg88.2%
*-commutative88.2%
distribute-rgt-neg-out88.2%
remove-double-neg88.2%
*-commutative88.2%
*-commutative88.2%
Simplified88.2%
Taylor expanded in t around 0 71.3%
associate-*r*71.1%
associate-*r*71.1%
*-commutative71.1%
associate-*r*71.0%
distribute-rgt-in71.0%
+-commutative71.0%
mul-1-neg71.0%
unsub-neg71.0%
*-commutative71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in z around inf 54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in y around inf 54.1%
Final simplification53.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -2.5e-84)
t_2
(if (<= c -7.5e-177)
t_1
(if (<= c -2.6e-212) (* y (* x z)) (if (<= c 9.5e-6) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -2.5e-84) {
tmp = t_2;
} else if (c <= -7.5e-177) {
tmp = t_1;
} else if (c <= -2.6e-212) {
tmp = y * (x * z);
} else if (c <= 9.5e-6) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
t_2 = c * ((t * j) - (z * b))
if (c <= (-2.5d-84)) then
tmp = t_2
else if (c <= (-7.5d-177)) then
tmp = t_1
else if (c <= (-2.6d-212)) then
tmp = y * (x * z)
else if (c <= 9.5d-6) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -2.5e-84) {
tmp = t_2;
} else if (c <= -7.5e-177) {
tmp = t_1;
} else if (c <= -2.6e-212) {
tmp = y * (x * z);
} else if (c <= 9.5e-6) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -2.5e-84: tmp = t_2 elif c <= -7.5e-177: tmp = t_1 elif c <= -2.6e-212: tmp = y * (x * z) elif c <= 9.5e-6: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.5e-84) tmp = t_2; elseif (c <= -7.5e-177) tmp = t_1; elseif (c <= -2.6e-212) tmp = Float64(y * Float64(x * z)); elseif (c <= 9.5e-6) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -2.5e-84) tmp = t_2; elseif (c <= -7.5e-177) tmp = t_1; elseif (c <= -2.6e-212) tmp = y * (x * z); elseif (c <= 9.5e-6) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.5e-84], t$95$2, If[LessEqual[c, -7.5e-177], t$95$1, If[LessEqual[c, -2.6e-212], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.5e-6], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.5 \cdot 10^{-84}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -7.5 \cdot 10^{-177}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -2.6 \cdot 10^{-212}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{-6}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -2.5000000000000001e-84 or 9.5000000000000005e-6 < c Initial program 64.3%
+-commutative64.3%
fma-define66.5%
*-commutative66.5%
*-commutative66.5%
cancel-sign-sub-inv66.5%
cancel-sign-sub66.5%
sub-neg66.5%
sub-neg66.5%
*-commutative66.5%
fma-neg66.5%
*-commutative66.5%
distribute-rgt-neg-out66.5%
remove-double-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in c around inf 62.7%
if -2.5000000000000001e-84 < c < -7.5e-177 or -2.6e-212 < c < 9.5000000000000005e-6Initial program 76.0%
Taylor expanded in a around -inf 65.5%
Taylor expanded in t around 0 48.3%
mul-1-neg48.3%
*-commutative48.3%
distribute-lft-neg-in48.3%
mul-1-neg48.3%
associate-*r*51.8%
distribute-rgt-in52.7%
+-commutative52.7%
mul-1-neg52.7%
unsub-neg52.7%
*-commutative52.7%
Simplified52.7%
if -7.5e-177 < c < -2.6e-212Initial program 77.3%
+-commutative77.3%
fma-define77.3%
*-commutative77.3%
*-commutative77.3%
cancel-sign-sub-inv77.3%
cancel-sign-sub77.3%
sub-neg77.3%
sub-neg77.3%
*-commutative77.3%
fma-neg77.3%
*-commutative77.3%
distribute-rgt-neg-out77.3%
remove-double-neg77.3%
*-commutative77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in t around 0 69.3%
associate-*r*69.3%
associate-*r*69.3%
*-commutative69.3%
associate-*r*69.3%
distribute-rgt-in69.3%
+-commutative69.3%
mul-1-neg69.3%
unsub-neg69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in z around inf 40.4%
*-commutative40.4%
Simplified40.4%
Taylor expanded in y around inf 47.2%
associate-*r*40.1%
*-commutative40.1%
associate-*r*54.5%
Simplified54.5%
Final simplification58.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.95e+30)
(* x (* y z))
(if (<= y 9.2e-178)
(* i (* a b))
(if (<= y 4.8e-66) (* (* x t) (- a)) (* z (* x y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.95e+30) {
tmp = x * (y * z);
} else if (y <= 9.2e-178) {
tmp = i * (a * b);
} else if (y <= 4.8e-66) {
tmp = (x * t) * -a;
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-1.95d+30)) then
tmp = x * (y * z)
else if (y <= 9.2d-178) then
tmp = i * (a * b)
else if (y <= 4.8d-66) then
tmp = (x * t) * -a
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.95e+30) {
tmp = x * (y * z);
} else if (y <= 9.2e-178) {
tmp = i * (a * b);
} else if (y <= 4.8e-66) {
tmp = (x * t) * -a;
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.95e+30: tmp = x * (y * z) elif y <= 9.2e-178: tmp = i * (a * b) elif y <= 4.8e-66: tmp = (x * t) * -a else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.95e+30) tmp = Float64(x * Float64(y * z)); elseif (y <= 9.2e-178) tmp = Float64(i * Float64(a * b)); elseif (y <= 4.8e-66) tmp = Float64(Float64(x * t) * Float64(-a)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.95e+30) tmp = x * (y * z); elseif (y <= 9.2e-178) tmp = i * (a * b); elseif (y <= 4.8e-66) tmp = (x * t) * -a; else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.95e+30], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.2e-178], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e-66], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.95 \cdot 10^{+30}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{-178}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-66}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -1.95000000000000005e30Initial program 53.8%
+-commutative53.8%
fma-define53.8%
*-commutative53.8%
*-commutative53.8%
cancel-sign-sub-inv53.8%
cancel-sign-sub53.8%
sub-neg53.8%
sub-neg53.8%
*-commutative53.8%
fma-neg53.8%
*-commutative53.8%
distribute-rgt-neg-out53.8%
remove-double-neg53.8%
*-commutative53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in x around inf 42.2%
Taylor expanded in a around 0 37.5%
if -1.95000000000000005e30 < y < 9.19999999999999978e-178Initial program 81.2%
+-commutative81.2%
fma-define83.1%
*-commutative83.1%
*-commutative83.1%
cancel-sign-sub-inv83.1%
cancel-sign-sub83.1%
sub-neg83.1%
sub-neg83.1%
*-commutative83.1%
fma-neg83.1%
*-commutative83.1%
distribute-rgt-neg-out83.1%
remove-double-neg83.1%
*-commutative83.1%
*-commutative83.1%
Simplified83.1%
Taylor expanded in t around 0 66.0%
associate-*r*61.4%
associate-*r*61.4%
*-commutative61.4%
associate-*r*59.4%
distribute-rgt-in59.4%
+-commutative59.4%
mul-1-neg59.4%
unsub-neg59.4%
*-commutative59.4%
*-commutative59.4%
Simplified59.4%
Taylor expanded in a around inf 37.5%
associate-*r*38.4%
*-commutative38.4%
Simplified38.4%
if 9.19999999999999978e-178 < y < 4.80000000000000052e-66Initial program 81.9%
+-commutative81.9%
fma-define81.9%
*-commutative81.9%
*-commutative81.9%
cancel-sign-sub-inv81.9%
cancel-sign-sub81.9%
sub-neg81.9%
sub-neg81.9%
*-commutative81.9%
fma-neg81.9%
*-commutative81.9%
distribute-rgt-neg-out81.9%
remove-double-neg81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in x around inf 57.5%
Taylor expanded in a around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
associate-/l*53.0%
associate-/l*48.7%
*-commutative48.7%
Simplified48.7%
Taylor expanded in y around 0 49.0%
neg-mul-149.0%
distribute-rgt-neg-in49.0%
Simplified49.0%
if 4.80000000000000052e-66 < y Initial program 63.0%
+-commutative63.0%
fma-define66.1%
*-commutative66.1%
*-commutative66.1%
cancel-sign-sub-inv66.1%
cancel-sign-sub66.1%
sub-neg66.1%
sub-neg66.1%
*-commutative66.1%
fma-neg66.1%
*-commutative66.1%
distribute-rgt-neg-out66.1%
remove-double-neg66.1%
*-commutative66.1%
*-commutative66.1%
Simplified66.1%
Taylor expanded in t around 0 58.6%
associate-*r*58.5%
associate-*r*58.5%
*-commutative58.5%
associate-*r*61.5%
distribute-rgt-in63.0%
+-commutative63.0%
mul-1-neg63.0%
unsub-neg63.0%
*-commutative63.0%
*-commutative63.0%
Simplified63.0%
Taylor expanded in z around inf 59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in y around inf 40.0%
Final simplification39.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -2.5e+131)
(* j (* t c))
(if (<= c 1.8e-255)
(* a (* b i))
(if (<= c 4.4e-7) (* x (* y z)) (* c (* t j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -2.5e+131) {
tmp = j * (t * c);
} else if (c <= 1.8e-255) {
tmp = a * (b * i);
} else if (c <= 4.4e-7) {
tmp = x * (y * z);
} else {
tmp = c * (t * 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 (c <= (-2.5d+131)) then
tmp = j * (t * c)
else if (c <= 1.8d-255) then
tmp = a * (b * i)
else if (c <= 4.4d-7) then
tmp = x * (y * z)
else
tmp = c * (t * 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 (c <= -2.5e+131) {
tmp = j * (t * c);
} else if (c <= 1.8e-255) {
tmp = a * (b * i);
} else if (c <= 4.4e-7) {
tmp = x * (y * z);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -2.5e+131: tmp = j * (t * c) elif c <= 1.8e-255: tmp = a * (b * i) elif c <= 4.4e-7: tmp = x * (y * z) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -2.5e+131) tmp = Float64(j * Float64(t * c)); elseif (c <= 1.8e-255) tmp = Float64(a * Float64(b * i)); elseif (c <= 4.4e-7) tmp = Float64(x * Float64(y * z)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -2.5e+131) tmp = j * (t * c); elseif (c <= 1.8e-255) tmp = a * (b * i); elseif (c <= 4.4e-7) tmp = x * (y * z); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -2.5e+131], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.8e-255], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.4e-7], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.5 \cdot 10^{+131}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{-255}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{-7}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if c < -2.49999999999999998e131Initial program 57.6%
Taylor expanded in t around inf 54.9%
Taylor expanded in a around 0 61.9%
Taylor expanded in c around inf 55.0%
*-commutative55.0%
Simplified55.0%
if -2.49999999999999998e131 < c < 1.8000000000000001e-255Initial program 75.5%
Taylor expanded in a around -inf 63.9%
Taylor expanded in b around inf 35.2%
*-commutative35.2%
Simplified35.2%
if 1.8000000000000001e-255 < c < 4.4000000000000002e-7Initial program 76.4%
+-commutative76.4%
fma-define78.6%
*-commutative78.6%
*-commutative78.6%
cancel-sign-sub-inv78.6%
cancel-sign-sub78.6%
sub-neg78.6%
sub-neg78.6%
*-commutative78.6%
fma-neg78.6%
*-commutative78.6%
distribute-rgt-neg-out78.6%
remove-double-neg78.6%
*-commutative78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in x around inf 49.4%
Taylor expanded in a around 0 39.0%
if 4.4000000000000002e-7 < c Initial program 61.0%
+-commutative61.0%
fma-define62.5%
*-commutative62.5%
*-commutative62.5%
cancel-sign-sub-inv62.5%
cancel-sign-sub62.5%
sub-neg62.5%
sub-neg62.5%
*-commutative62.5%
fma-neg62.5%
*-commutative62.5%
distribute-rgt-neg-out62.5%
remove-double-neg62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in c around inf 63.9%
Taylor expanded in j around inf 35.5%
*-commutative35.5%
Simplified35.5%
Final simplification38.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -8.8e+130)
(* j (* t c))
(if (<= c 2.9e-257)
(* a (* b i))
(if (<= c 1.15e-7) (* y (* x z)) (* c (* t j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -8.8e+130) {
tmp = j * (t * c);
} else if (c <= 2.9e-257) {
tmp = a * (b * i);
} else if (c <= 1.15e-7) {
tmp = y * (x * z);
} else {
tmp = c * (t * 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 (c <= (-8.8d+130)) then
tmp = j * (t * c)
else if (c <= 2.9d-257) then
tmp = a * (b * i)
else if (c <= 1.15d-7) then
tmp = y * (x * z)
else
tmp = c * (t * 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 (c <= -8.8e+130) {
tmp = j * (t * c);
} else if (c <= 2.9e-257) {
tmp = a * (b * i);
} else if (c <= 1.15e-7) {
tmp = y * (x * z);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -8.8e+130: tmp = j * (t * c) elif c <= 2.9e-257: tmp = a * (b * i) elif c <= 1.15e-7: tmp = y * (x * z) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -8.8e+130) tmp = Float64(j * Float64(t * c)); elseif (c <= 2.9e-257) tmp = Float64(a * Float64(b * i)); elseif (c <= 1.15e-7) tmp = Float64(y * Float64(x * z)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -8.8e+130) tmp = j * (t * c); elseif (c <= 2.9e-257) tmp = a * (b * i); elseif (c <= 1.15e-7) tmp = y * (x * z); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -8.8e+130], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.9e-257], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.15e-7], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -8.8 \cdot 10^{+130}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;c \leq 2.9 \cdot 10^{-257}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{-7}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if c < -8.79999999999999974e130Initial program 57.6%
Taylor expanded in t around inf 54.9%
Taylor expanded in a around 0 61.9%
Taylor expanded in c around inf 55.0%
*-commutative55.0%
Simplified55.0%
if -8.79999999999999974e130 < c < 2.9000000000000002e-257Initial program 75.5%
Taylor expanded in a around -inf 63.9%
Taylor expanded in b around inf 35.2%
*-commutative35.2%
Simplified35.2%
if 2.9000000000000002e-257 < c < 1.14999999999999997e-7Initial program 76.4%
+-commutative76.4%
fma-define78.6%
*-commutative78.6%
*-commutative78.6%
cancel-sign-sub-inv78.6%
cancel-sign-sub78.6%
sub-neg78.6%
sub-neg78.6%
*-commutative78.6%
fma-neg78.6%
*-commutative78.6%
distribute-rgt-neg-out78.6%
remove-double-neg78.6%
*-commutative78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in t around 0 70.3%
associate-*r*72.3%
associate-*r*72.3%
*-commutative72.3%
associate-*r*72.3%
distribute-rgt-in72.3%
+-commutative72.3%
mul-1-neg72.3%
unsub-neg72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in z around inf 54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in y around inf 39.0%
associate-*r*39.8%
*-commutative39.8%
associate-*r*39.0%
Simplified39.0%
if 1.14999999999999997e-7 < c Initial program 61.0%
+-commutative61.0%
fma-define62.5%
*-commutative62.5%
*-commutative62.5%
cancel-sign-sub-inv62.5%
cancel-sign-sub62.5%
sub-neg62.5%
sub-neg62.5%
*-commutative62.5%
fma-neg62.5%
*-commutative62.5%
distribute-rgt-neg-out62.5%
remove-double-neg62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in c around inf 63.9%
Taylor expanded in j around inf 35.5%
*-commutative35.5%
Simplified35.5%
Final simplification38.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -1.15e+131)
(* j (* t c))
(if (<= c 6.8e-256)
(* a (* b i))
(if (<= c 1.18e-8) (* z (* x y)) (* c (* t j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.15e+131) {
tmp = j * (t * c);
} else if (c <= 6.8e-256) {
tmp = a * (b * i);
} else if (c <= 1.18e-8) {
tmp = z * (x * y);
} else {
tmp = c * (t * 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 (c <= (-1.15d+131)) then
tmp = j * (t * c)
else if (c <= 6.8d-256) then
tmp = a * (b * i)
else if (c <= 1.18d-8) then
tmp = z * (x * y)
else
tmp = c * (t * 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 (c <= -1.15e+131) {
tmp = j * (t * c);
} else if (c <= 6.8e-256) {
tmp = a * (b * i);
} else if (c <= 1.18e-8) {
tmp = z * (x * y);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -1.15e+131: tmp = j * (t * c) elif c <= 6.8e-256: tmp = a * (b * i) elif c <= 1.18e-8: tmp = z * (x * y) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.15e+131) tmp = Float64(j * Float64(t * c)); elseif (c <= 6.8e-256) tmp = Float64(a * Float64(b * i)); elseif (c <= 1.18e-8) tmp = Float64(z * Float64(x * y)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -1.15e+131) tmp = j * (t * c); elseif (c <= 6.8e-256) tmp = a * (b * i); elseif (c <= 1.18e-8) tmp = z * (x * y); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.15e+131], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.8e-256], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.18e-8], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.15 \cdot 10^{+131}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;c \leq 6.8 \cdot 10^{-256}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;c \leq 1.18 \cdot 10^{-8}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if c < -1.14999999999999996e131Initial program 57.6%
Taylor expanded in t around inf 54.9%
Taylor expanded in a around 0 61.9%
Taylor expanded in c around inf 55.0%
*-commutative55.0%
Simplified55.0%
if -1.14999999999999996e131 < c < 6.8000000000000001e-256Initial program 75.5%
Taylor expanded in a around -inf 63.9%
Taylor expanded in b around inf 35.2%
*-commutative35.2%
Simplified35.2%
if 6.8000000000000001e-256 < c < 1.18e-8Initial program 76.4%
+-commutative76.4%
fma-define78.6%
*-commutative78.6%
*-commutative78.6%
cancel-sign-sub-inv78.6%
cancel-sign-sub78.6%
sub-neg78.6%
sub-neg78.6%
*-commutative78.6%
fma-neg78.6%
*-commutative78.6%
distribute-rgt-neg-out78.6%
remove-double-neg78.6%
*-commutative78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in t around 0 70.3%
associate-*r*72.3%
associate-*r*72.3%
*-commutative72.3%
associate-*r*72.3%
distribute-rgt-in72.3%
+-commutative72.3%
mul-1-neg72.3%
unsub-neg72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in z around inf 54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in y around inf 39.8%
if 1.18e-8 < c Initial program 61.0%
+-commutative61.0%
fma-define62.5%
*-commutative62.5%
*-commutative62.5%
cancel-sign-sub-inv62.5%
cancel-sign-sub62.5%
sub-neg62.5%
sub-neg62.5%
*-commutative62.5%
fma-neg62.5%
*-commutative62.5%
distribute-rgt-neg-out62.5%
remove-double-neg62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in c around inf 63.9%
Taylor expanded in j around inf 35.5%
*-commutative35.5%
Simplified35.5%
Final simplification38.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -3.1e+133) (not (<= c 1.3e+97))) (* 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 ((c <= -3.1e+133) || !(c <= 1.3e+97)) {
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 ((c <= (-3.1d+133)) .or. (.not. (c <= 1.3d+97))) 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 ((c <= -3.1e+133) || !(c <= 1.3e+97)) {
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 (c <= -3.1e+133) or not (c <= 1.3e+97): 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 ((c <= -3.1e+133) || !(c <= 1.3e+97)) 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 ((c <= -3.1e+133) || ~((c <= 1.3e+97))) 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[c, -3.1e+133], N[Not[LessEqual[c, 1.3e+97]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.1 \cdot 10^{+133} \lor \neg \left(c \leq 1.3 \cdot 10^{+97}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if c < -3.1e133 or 1.3e97 < c Initial program 53.1%
+-commutative53.1%
fma-define54.4%
*-commutative54.4%
*-commutative54.4%
cancel-sign-sub-inv54.4%
cancel-sign-sub54.4%
sub-neg54.4%
sub-neg54.4%
*-commutative54.4%
fma-neg54.4%
*-commutative54.4%
distribute-rgt-neg-out54.4%
remove-double-neg54.4%
*-commutative54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in c around inf 70.0%
Taylor expanded in j around inf 46.2%
*-commutative46.2%
Simplified46.2%
if -3.1e133 < c < 1.3e97Initial program 77.0%
Taylor expanded in a around -inf 61.7%
Taylor expanded in b around inf 31.1%
*-commutative31.1%
Simplified31.1%
Final simplification35.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -1.75e+136) (* j (* t c)) (if (<= c 1.6e+90) (* a (* b i)) (* c (* t j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.75e+136) {
tmp = j * (t * c);
} else if (c <= 1.6e+90) {
tmp = a * (b * i);
} else {
tmp = c * (t * 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 (c <= (-1.75d+136)) then
tmp = j * (t * c)
else if (c <= 1.6d+90) then
tmp = a * (b * i)
else
tmp = c * (t * 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 (c <= -1.75e+136) {
tmp = j * (t * c);
} else if (c <= 1.6e+90) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -1.75e+136: tmp = j * (t * c) elif c <= 1.6e+90: tmp = a * (b * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.75e+136) tmp = Float64(j * Float64(t * c)); elseif (c <= 1.6e+90) tmp = Float64(a * Float64(b * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -1.75e+136) tmp = j * (t * c); elseif (c <= 1.6e+90) tmp = a * (b * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.75e+136], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.6e+90], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.75 \cdot 10^{+136}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{+90}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if c < -1.75000000000000001e136Initial program 57.6%
Taylor expanded in t around inf 54.9%
Taylor expanded in a around 0 61.9%
Taylor expanded in c around inf 55.0%
*-commutative55.0%
Simplified55.0%
if -1.75000000000000001e136 < c < 1.59999999999999999e90Initial program 77.0%
Taylor expanded in a around -inf 61.7%
Taylor expanded in b around inf 31.1%
*-commutative31.1%
Simplified31.1%
if 1.59999999999999999e90 < c Initial program 50.5%
+-commutative50.5%
fma-define52.6%
*-commutative52.6%
*-commutative52.6%
cancel-sign-sub-inv52.6%
cancel-sign-sub52.6%
sub-neg52.6%
sub-neg52.6%
*-commutative52.6%
fma-neg52.6%
*-commutative52.6%
distribute-rgt-neg-out52.6%
remove-double-neg52.6%
*-commutative52.6%
*-commutative52.6%
Simplified52.6%
Taylor expanded in c around inf 69.0%
Taylor expanded in j around inf 45.1%
*-commutative45.1%
Simplified45.1%
Final simplification36.4%
(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 69.9%
Taylor expanded in a around -inf 59.8%
Taylor expanded in b around inf 25.7%
*-commutative25.7%
Simplified25.7%
Final simplification25.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 2024071
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))