Changeset ee586a in git for factory


Ignore:
Timestamp:
Jun 1, 2008, 7:49:05 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f2b58394b7c0b28984794adfcef85f56f72e35bf
Parents:
0b85fcff1722325fd8010e4185d911f83cd46c04
Message:
*hannes: sqrfree etc


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

Legend:

Unmodified
Added
Removed
  • factory/fac_sqrfree.cc

    r0b85fc ree586a  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: fac_sqrfree.cc,v 1.11 2008-05-31 17:21:11 Singular Exp $ */
     2/* $Id: fac_sqrfree.cc,v 1.12 2008-06-01 17:49:05 Singular Exp $ */
    33
    44#include <config.h>
     
    115115    CFFList F;
    116116
    117     while ( ! c.degree() == 0 ) {
     117    while ( ! c.degree() == 0 )
     118    {
    118119        y = gcd( w, c ); z = w / y;
    119120        if ( degree( z ) > 0 )
     
    145146    CFFList F;
    146147    Variable v = aa.mvar();
    147     while ( ! c.degree(v) == 0 ) {
     148    while ( ! c.degree(v) == 0 )
     149    {
    148150        y = gcd( w, c ); z = w / y;
    149151        if ( degree( z, v ) > 0 )
     
    162164    if ( ! cont.isOne() )
    163165        F = Union( F, sqrFreeZ( cont ) );
    164     if ( lc( a ).sign() < 0 ) {
    165         if ( F.getFirst().exp() == 1 ) {
     166    if ( lc( a ).sign() < 0 )
     167    {
     168        if ( F.getFirst().exp() == 1 )
     169        {
    166170            CanonicalForm f = F.getFirst().factor();
    167171            CFFListIterator(F).getItem() = CFFactor( -f, 1 );
Note: See TracChangeset for help on using the changeset viewer.