- Clarified some comments.
/** Numerator. Computes the numerator of rational numbers, rationalized
* numerator of complex if real and imaginary part are both rational numbers
/** Numerator. Computes the numerator of rational numbers, rationalized
* numerator of complex if real and imaginary part are both rational numbers
- * (i.e numer(4/3+5/6*I) == 8+5*I), the number itself in all other cases. */
+ * (i.e numer(4/3+5/6*I) == 8+5*I), the number carrying the sign in all other
+ * cases. */
numeric numeric::numer(void) const
{
if (is_integer()) {
numeric numeric::numer(void) const
{
if (is_integer()) {
inline numeric denom(numeric const & x)
{ return x.denom(); }
inline numeric denom(numeric const & x)
{ return x.denom(); }
-/* do we need this any more? */
-//inline numeric factorial(int n)
-//{ return factorial(numeric(n)); }
-
-/* do we need this any more? */
-//inline numeric binomial(int n, int k)
-//{ return binomial(numeric(n), numeric(k)); }
-
ex IEvalf(void);
ex PiEvalf(void);
ex EulerGammaEvalf(void);
ex IEvalf(void);
ex PiEvalf(void);
ex EulerGammaEvalf(void);