Changeset ecc5d0 in git


Ignore:
Timestamp:
Feb 25, 2014, 12:09:27 PM (10 years ago)
Author:
Andreas Steenpass <steenpass@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
d3158db7c3fe477e710ec83e75fa69fe5a50cc5f
Parents:
eeb5b0cee52862b60f2f9f5250185bd15e1f6103
git-author:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2014-02-25 12:09:27+01:00
git-committer:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2014-02-25 12:14:49+01:00
Message:
fix: use local degree ordering for highcorner()
(cherry picked from commit aeadebaaa1e1dd0a5398e4f834e5b5f8c29012de)

Signed-off-by: Andreas Steenpass <steenpass@mathematik.uni-kl.de>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/realclassify.lib

    reeb5b0c recc5d0  
    728728  /* auxiliary variables */
    729729  int i;
     730  def br = basering;
    730731
    731732  /* error check */
    732   if(char(basering) != 0)
     733  if(char(br) != 0)
    733734  {
    734735    ERROR("The characteristic must be zero.");
    735736  }
    736   int n = nvars(basering);
     737  int n = nvars(br);
    737738  for(i = 1; i <= n; i++)
    738739  {
     
    781782  /* highest corner */
    782783  int hc;
     784  if(ordstr(br) != "ds")
     785  {
     786    list lbr = ringlist(br);
     787    lbr[3] = list(list("ds", 1:nvars(br)), list("C", 0));
     788    def br_ds = ring(lbr);
     789    setring(br_ds);
     790    poly f = fetch(br, f);
     791  }
    783792  for(i = 0; i < 3; i++)
    784793  {
    785     f = jet(f, k);
    786794    hc = deg(highcorner(std(maxideal(i)*jacob(f))));
    787795    hc = hc+2-i;
     
    789797    {
    790798      k = hc;
    791     }
     799      f = jet(f, k);
     800    }
     801  }
     802  if(ordstr(br) != "ds")
     803  {
     804    setring(br);
    792805  }
    793806
Note: See TracChangeset for help on using the changeset viewer.