]> www.ginac.de Git - ginac.git/blobdiff - ginac/constant.cpp
* Some internal reorganization WRT flyweight handling and initialization,
[ginac.git] / ginac / constant.cpp
index d2a74b2d69205b53655fded7f46cabb7604afab2..ce4c80d9cbc1136aef3214b08e469ae00a8da279 100644 (file)
@@ -163,9 +163,9 @@ int constant::ldegree(const ex & s) const
 ex constant::coeff(const ex & s, int n) const
 {
        if (is_equal(ex_to<basic>(s)))
-               return n==1 ? _ex1() : _ex0();
+               return n==1 ? _ex1 : _ex0;
        else
-               return n==0 ? *this : _ex0();
+               return n==0 ? *this : _ex0;
 }
 
 ex constant::evalf(int level) const
@@ -185,7 +185,7 @@ ex constant::evalf(int level) const
  *  @see ex::diff */
 ex constant::derivative(const symbol & s) const
 {
-       return _ex0();
+       return _ex0;
 }
 
 int constant::compare_same_type(const basic & other) const