Changeset d74a8b in git


Ignore:
Timestamp:
Mar 12, 1998, 11:28:56 AM (25 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
9189ab6516373d1cc0a44ffa0a56a3614098e362
Parents:
685296522414d1854eb4d8c9a9bcd55de46acdde
Message:
	* canonicalform.cc (blcm): new function.  Declaration added.


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

Legend:

Unmodified
Added
Removed
  • factory/canonicalform.cc

    r685296 rd74a8b  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: canonicalform.cc,v 1.25 1998-01-22 10:56:12 schmidt Exp $ */
     2/* $Id: canonicalform.cc,v 1.26 1998-03-12 10:28:56 schmidt Exp $ */
    33
    44#include <config.h>
     
    16901690//}}}
    16911691
     1692CanonicalForm
     1693blcm ( const CanonicalForm & f, const CanonicalForm & g )
     1694{
     1695    if ( f.isZero() || g.isZero() )
     1696        return CanonicalForm( 0 );
     1697    else
     1698        return (f / bgcd( f, g )) * g;
     1699}
     1700
    16921701//{{{ input/output
    16931702#ifndef NOSTREAMIO
Note: See TracChangeset for help on using the changeset viewer.