Changeset ffdd694 in git


Ignore:
Timestamp:
Apr 14, 2005, 10:19:18 AM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b9f50b373314e74e83c7c060a651dd2913e1f033')
Children:
dee0c0bfc5091a87dbbbefd919c1b23da3276c0a
Parents:
6fdd4ac98b7f7b14b745342085283579f7b15c9d
Message:
*hannes: pCleardenom again


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

Legend:

Unmodified
Added
Removed
  • kernel/clapsing.cc

    r6fdd4a rffdd694  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapsing.cc,v 1.6 2005-04-13 16:38:10 Singular Exp $
     5// $Id: clapsing.cc,v 1.7 2005-04-14 08:19:18 Singular Exp $
    66/*
    77* ABSTRACT: interface between Singular and factory
     
    741741  CFFList L;
    742742  number N=NULL;
     743  number NN=NULL;
    743744  CanonicalForm T_F(0);
    744745  number old_lead_coeff=nCopy(pGetCoeff(f));
    745746
     747  if (!rField_is_Zp()) /* Q, Q(a), Zp(a) */
     748  {
     749    //if (f!=NULL) // already tested at start of routine
     750    {
     751      number n0=nCopy(pGetCoeff(f));
     752      if (with_exps==0)
     753        N=nCopy(n0);
     754      pCleardenom(f);
     755      NN=nDiv(n0,pGetCoeff(f));
     756      nDelete(&n0);
     757      if (with_exps==0)
     758      {
     759        nDelete(&N);
     760        N=nCopy(NN);
     761      }
     762    }
     763  }
    746764  if (rField_is_Q() || rField_is_Zp())
    747765  {
    748766    setCharacteristic( nGetChar() );
    749     if (nGetChar()==0) /* Q */
    750     {
    751       //if (f!=NULL) // already tested at start of routine
    752       {
    753         pCleardenom_n(f,N);
    754       }
    755     }
    756767    CanonicalForm F( convSingPClapP( f ) );
    757768    T_F=F;
     
    791802    if (rField_is_Q_a()) setCharacteristic( 0 );
    792803    else                 setCharacteristic( -nGetChar() );
    793     pCleardenom_n(f,N);
    794804    if (currRing->minpoly!=NULL)
    795805    {
     
    972982    {
    973983      pMult_nn(res->m[0],N);
     984      nDelete(&N);
     985      N=NULL;
    974986    }
    975987    // delete constants
     
    10461058  if (res==NULL)
    10471059    WerrorS( feNotImplemented );
    1048   if (N!=NULL)
    1049   {
    1050     number NN=nInvers(N);
     1060  if (NN!=NULL)
     1061  {
    10511062    pMult_nn(f,NN);
    10521063    nDelete(&NN);
     1064  }
     1065  if (N!=NULL)
     1066  {
    10531067    nDelete(&N);
    10541068  }
Note: See TracChangeset for help on using the changeset viewer.