[SCM] an open source computer algebra system branch, cleanedupstream, updated. 6125e540ca6d66c307958938a9d53b245507c323

Bernhard R. Link brlink at debian.org
Tue Apr 24 15:55:33 UTC 2012


The following commit has been merged in the cleanedupstream branch:
commit 918cf11f268e18d2cf823c67d4332c840cc371b7
Author: Martin Lee <martinlee84 at web.de>
Date:   Wed Apr 4 12:14:08 2012 +0200

    chg: switched off assert for positive exponent since I need Laurent polynomials in cfNewtonPolygon.cc

diff --git a/factory/canonicalform.cc b/factory/canonicalform.cc
index bfd752d..70d59e3 100644
--- a/factory/canonicalform.cc
+++ b/factory/canonicalform.cc
@@ -1847,7 +1847,7 @@ power ( const CanonicalForm & f, int n )
 CanonicalForm
 power ( const Variable & v, int n )
 {
-    ASSERT( n >= 0, "illegal exponent" );
+    //ASSERT( n >= 0, "illegal exponent" );
     if ( n == 0 )
         return 1;
     else  if ( n == 1 )
diff --git a/factory/cf_inline.cc b/factory/cf_inline.cc
index 12445aa..cd9c3a8 100644
--- a/factory/cf_inline.cc
+++ b/factory/cf_inline.cc
@@ -221,8 +221,6 @@ CanonicalForm::CanonicalForm ( const Variable & v )
 // Variables of level `LEVELBASE' are transformed to one from the
 // current domain.
 //
-// `e' has to be positive.
-//
 // Type info:
 // ----------
 // v: Anything
@@ -232,7 +230,7 @@ CF_INLINE
 CanonicalForm::CanonicalForm ( const Variable & v, int e )
     : value( CFFactory::poly( v, e ) )
 {
-    ASSERT( e > 0, "math error: exponent has to be positive" );
+    //ASSERT( e > 0, "math error: exponent has to be positive" );
 }
 //}}}
 

-- 
an open source computer algebra system



More information about the debian-science-commits mailing list