Changeset 01e8874 in git for libfac/charset


Ignore:
Timestamp:
Jun 4, 2009, 7:54:59 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
51d7f7bf9e26957b6f4bfed8b88ec964eb69f77a
Parents:
ca4d0e6c613744c68c30ffd7c388dc69dcc0a538
Message:
*hannes: code cleanup


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

Legend:

Unmodified
Added
Removed
  • libfac/charset/alg_factor.cc

    rca4d0e6 r01e8874  
    22// emacs edit mode for this file is -*- C++ -*-
    33////////////////////////////////////////////////////////////
    4 /* $Id: alg_factor.cc,v 1.26 2008-11-06 14:47:03 Singular Exp $ */
     4/* $Id: alg_factor.cc,v 1.27 2009-06-04 17:54:59 Singular Exp $ */
    55////////////////////////////////////////////////////////////
    66// FACTORY - Includes
     
    1111#include <SqrFree.h>
    1212#include <helpstuff.h>
     13#include <assert.h>
    1314// Charset - Includes
    1415#include "csutil.h"
     
    155156// sqr-free routine for algebraic extensions
    156157// we need it! Ex.: f=c^2+2*a*c-1; as=[a^2+1]; f=(c+a)^2
    157 static CFFList
    158 alg_sqrfree( const CanonicalForm & f ){
    159   CFFList L;
    160 
    161   L.append(CFFactor(f,1));
    162   return L;
    163 }
     158//static CFFList alg_sqrfree( const CanonicalForm & f )
     159//{
     160//  CFFList L;
     161//
     162//  L.append(CFFactor(f,1));
     163//  return L;
     164//}
    164165
    165166// Calculates a square free norm
     
    438439CanonicalForm alg_lc(const CanonicalForm &f)
    439440{
    440   if (f.inCoeffDomain()) return f;
    441441  if (f.level()>0)
    442442  {
    443443    return alg_lc(f.LC());
    444444  }
     445  assert(f.inCoeffDomain());
     446  return f;
    445447}
    446448
     
    829831/*
    830832$Log: not supported by cvs2svn $
     833Revision 1.26  2008/11/06 14:47:03  Singular
     834*hannes: newfactoras
     835
    831836Revision 1.25  2008/11/06 14:05:51  Singular
    832837*hannes: newfactoras
Note: See TracChangeset for help on using the changeset viewer.