Changeset 7993ad in git


Ignore:
Timestamp:
Nov 15, 2010, 11:55:28 AM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d77a70e48aa5be934ca92380ce7754a935ae2aec
Parents:
8eb6da1cea8ad61c747aa7cebf16cdde3c452b1b
Message:
mydivrem removed

git-svn-id: file:///usr/local/Singular/svn/trunk@13652 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
libfac/factor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libfac/factor/helpstuff.cc

    r8eb6da r7993ad  
    1111
    1212bool
    13 mydivremt ( const CanonicalForm& f, const CanonicalForm& g, CanonicalForm& a, CanonicalForm& b ){
     13mydivremt ( const CanonicalForm& f, const CanonicalForm& g, CanonicalForm& a, CanonicalForm& b )
     14{
    1415  bool retvalue;
    1516  CanonicalForm aa,bb;
     
    1920  else { b=aa; }
    2021  return retvalue;
    21 }
    22 
    23 void
    24 mydivrem( const CanonicalForm& f, const CanonicalForm& g, CanonicalForm& a, CanonicalForm& b ){
    25   bool retvalue;
    26   CanonicalForm aa,bb;
    27   retvalue = divremt(f,g,a,bb);
    28   aa= f-g*a;
    29   if ( aa==bb ) { b=bb; }
    30   else { b=aa; }
    3122}
    3223
     
    4031///////////////////////////////////////////////////////////////
    4132CFFList
    42 myappend( const CFFList & Inputlist, const CFFactor & TheFactor){
     33myappend( const CFFList & Inputlist, const CFFactor & TheFactor)
     34{
    4335  CFFList Outputlist ;
    4436  CFFactor copy;
     
    4638  int exp=0;
    4739
    48   for ( i=Inputlist ; i.hasItem() ; i++ ){
     40  for ( i=Inputlist ; i.hasItem() ; i++ )
     41  {
    4942    copy = i.getItem();
    5043    if ( copy.factor() == TheFactor.factor() )
     
    5851
    5952CFFList
    60 myUnion(const CFFList & Inputlist1,const CFFList & Inputlist2){
     53myUnion(const CFFList & Inputlist1,const CFFList & Inputlist2)
     54{
    6155  CFFList Outputlist;
    6256  CFFListIterator i;
     
    7165
    7266int
    73 Powerup( const int base , const int exp){
     67Powerup( const int base , const int exp)
     68{
    7469  int retvalue=1;
    7570  if ( exp == 0 )  return retvalue ;
     
    9186static void
    9287modpower( const CanonicalForm & f, int k , int td,
    93           const CanonicalForm & t, CanonicalForm & result){
     88          const CanonicalForm & t, CanonicalForm & result)
     89{
    9490
    9591  if ( td >= k ) return;
     
    10399
    104100CanonicalForm
    105 mod_power( const CanonicalForm & f, int k, int levelU){
     101mod_power( const CanonicalForm & f, int k, int levelU)
     102{
    106103  CanonicalForm result,dummy;
    107104  Variable x(levelU);
     
    109106  if ( levelU > level(f) )
    110107    modpower(f,k,0,1,result);
    111   else{
    112     for ( CFIterator i=f; i.hasTerms(); i++){
     108  else
     109  {
     110    for ( CFIterator i=f; i.hasTerms(); i++)
     111    {
    113112      dummy = 0;
    114113      modpower(i.coeff(),k,0,1,dummy);
     
    128127///////////////////////////////////////////////////////////////
    129128int
    130 subvardegree( const CanonicalForm & F, int levelF ){
     129subvardegree( const CanonicalForm & F, int levelF )
     130{
    131131  int n=0,m=degree(F,levelF),newn=0;
    132132
    133   for ( int k=0; k<=m; k++ ){
     133  for ( int k=0; k<=m; k++ )
     134  {
    134135    newn = totaldegree( F[k] );
    135136    if ( newn > n ) n=newn;
     
    142143///////////////////////////////////////////////////////////////
    143144CanonicalForm
    144 change_poly( const CanonicalForm & f , const SFormList & Substitutionlist ,int directionback ){
     145change_poly( const CanonicalForm & f , const SFormList & Substitutionlist ,int directionback )
     146{
    145147  CanonicalForm F=f,g,k;
    146148  int level_i;
    147149//  Variable x;
    148150
    149   for ( SFormListIterator i=Substitutionlist; i.hasItem(); i++){
     151  for ( SFormListIterator i=Substitutionlist; i.hasItem(); i++)
     152  {
    150153  // now we can access: i.getItem().factor()  -> level(~) gives x_i
    151154  //                    i.getItem().exp()     -> gives a_i
  • libfac/factor/helpstuff.h

    r8eb6da r7993ad  
    66#define HELPSTUFF_H
    77bool mydivremt ( const CanonicalForm&, const CanonicalForm&, CanonicalForm&, CanonicalForm& );
    8 void mydivrem( const CanonicalForm& f, const CanonicalForm& g, CanonicalForm& a, CanonicalForm& b );
    98///////////////////////////////////////////////////////////////
    109// Now some procedures used in MVMultiHensel and in Truefactors
Note: See TracChangeset for help on using the changeset viewer.