inline ex expand(const ex & thisex, unsigned options = 0)
{ return thisex.expand(options); }
+inline ex conjugate(const ex & thisex)
+{ return thisex.conjugate(); }
+
inline bool has(const ex & thisex, const ex & pattern)
{ return thisex.has(pattern); }
if (is_exactly_a<numeric>(arg)) {
return ex_to<numeric>(arg).conjugate();
}
- return conjugate(arg).hold();
+ return conjugate_function(arg).hold();
}
static ex conjugate_eval(const ex & arg)
return arg;
}
-REGISTER_FUNCTION(conjugate, eval_func(conjugate_eval).
+REGISTER_FUNCTION(conjugate_function, eval_func(conjugate_eval).
evalf_func(conjugate_evalf).
print_func<print_latex>(conjugate_print_latex).
- conjugate_func(conjugate_conjugate));
+ conjugate_func(conjugate_conjugate).
+ set_name("conjugate","conjugate"));
//////////
// absolute value
namespace GiNaC {
/** Complex conjugate. */
-DECLARE_FUNCTION_1P(conjugate)
+DECLARE_FUNCTION_1P(conjugate_function)
/** Absolute value. */
DECLARE_FUNCTION_1P(abs)
ex symbol::conjugate() const
{
if (this->domain == domain::complex) {
- return GiNaC::conjugate(*this).hold();
+ return GiNaC::conjugate_function(*this).hold();
} else {
return *this;
}