]> www.ginac.de Git - ginac.git/blobdiff - ginac/numeric.cpp
Make step(0)=1/2 again and remove step_power.
[ginac.git] / ginac / numeric.cpp
index 18943d3fdfb1f37f5b32506b4a96a27f82328a0a..b8170e716ff3220685cb490d1a9ccf6473c23947 100644 (file)
@@ -931,10 +931,10 @@ const numeric numeric::inverse() const
  *  ignored because the step function is generally considered real but
  *  a numeric may develop a small imaginary part due to rounding errors.
  */
-int numeric::step() const
+numeric numeric::step() const
 {      cln::cl_R r = cln::realpart(value);
        if(cln::zerop(r))
-               return 1;
+               return numeric(1,2);
        if(cln::plusp(r))
                return 1;
        return 0;