Changeset 7a81a69 in git for factory/canonicalform.cc


Ignore:
Timestamp:
Jun 13, 1996, 9:15:50 AM (28 years ago)
Author:
Rüdiger Stobbe <stobbe@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
1986a2fee92863e911c04f6574a96cc4caee8fa4
Parents:
f59b88fb5075f45eedd00f61e2cb4e7c27bacdce
Message:
"CanonicalForm::deriv(x): bug fix, result is now swapped back if x is not
                         the main variable of *this
"


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

Legend:

Unmodified
Added
Removed
  • factory/canonicalform.cc

    rf59b88 r7a81a69  
    11// emacs editmode for this file is -*- C++ -*-
    2 // $Id: canonicalform.cc,v 1.0 1996-05-17 10:59:42 stobbe Exp $
     2// $Id: canonicalform.cc,v 1.1 1996-06-13 07:15:50 stobbe Exp $
    33
    44/*
    55$Log: not supported by cvs2svn $
     6Revision 1.0  1996/05/17 10:59:42  stobbe
     7Initial revision
     8
    69*/
    710
     
    358361            if ( i.exp() > 0 )
    359362                res += power( y, i.exp()-1 ) * i.coeff() * i.exp();
    360         return res;
     363        return (y==x) ? res : swapvar( res, x, y );
    361364    }
    362365}
Note: See TracChangeset for help on using the changeset viewer.