Changeset 685296 in git


Ignore:
Timestamp:
Mar 12, 1998, 11:28:35 AM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
d74a8bdcbb76c73c4888a5aead92f475ca9ee1ef
Parents:
8d4aea63dbe00e924667f833cb15f76391591e40
Message:
	* canonicalform.h (sign): new function

	* canonicalform.cc (blcm): new function.  Declaration added.

	* cf_algorithm.h (abs): function `abs()' moved from
	  `canonicalform.h' to `cf_algorithm.h'.  All referring files
	  include `cf_algorithm.h'.


git-svn-id: file:///usr/local/Singular/svn/trunk@1218 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/canonicalform.h

    r8d4aea r685296  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: canonicalform.h,v 1.23 1998-03-10 14:47:58 schmidt Exp $ */
     2/* $Id: canonicalform.h,v 1.24 1998-03-12 10:28:35 schmidt Exp $ */
    33
    44#ifndef INCL_CANONICALFORM_H
     
    153153
    154154//{{{ function declarations from canonicalform.cc
     155CanonicalForm blcm ( const CanonicalForm & f, const CanonicalForm & g );
     156
    155157CanonicalForm power ( const CanonicalForm & f, int n );
    156158
     
    243245den ( const CanonicalForm & f ) { return f.den(); }
    244246
     247inline int
     248sign ( const CanonicalForm & a ) { return a.sign(); }
     249
    245250inline CanonicalForm
    246251deriv ( const CanonicalForm & f, const Variable & x ) { return f.deriv( x ); }
     
    262267    if ( f.level() > 0 )
    263268        return power( f.mvar(), f.degree() ) * f.LC();
    264     else
    265         return f;
    266 }
    267 
    268 inline CanonicalForm
    269 abs ( const CanonicalForm & f )
    270 {
    271     if ( f < 0 )
    272         return -f;
    273269    else
    274270        return f;
Note: See TracChangeset for help on using the changeset viewer.