#include "wildcard.h"
#include "archive.h"
#include "utils.h"
+#include "inifcns.h"
namespace GiNaC {
return *this;
}
+/** Check whether this is a polynomial in the given variables. */
+bool basic::is_polynomial(const ex & var) const
+{
+ return !has(var) || is_equal(ex_to<basic>(var));
+}
+
/** Return degree of highest power in object s. */
int basic::degree(const ex & s) const
{
return *this;
}
+ex basic::real_part() const
+{
+ return real_part_function(*this).hold();
+}
+
+ex basic::imag_part() const
+{
+ return imag_part_function(*this).hold();
+}
+
ex basic::eval_ncmul(const exvector & v) const
{
return hold_ncmul(v);
return return_types::commutative;
}
-const basic* basic::return_type_tinfo() const
+tinfo_t basic::return_type_tinfo() const
{
- return this;
+ return tinfo_key;
}
/** Compute the hash value of an object and if it makes sense to store it in