Changeset 860f23 in git for Singular


Ignore:
Timestamp:
Aug 19, 2019, 2:58:20 PM (5 years ago)
Author:
Andreas Steenpass <steenpass@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
8f5259270995467397bb2f930d7ccf6f7e0688f7
Parents:
f7a540d3611d73b5a22fc6d6b24c9ce8442c6b32
Message:
fix create_ring() in ncalg.lib
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/ncalg.lib

    rf7a540 r860f23  
    596596  int n = ncols(A);
    597597  list l2;
    598   for (int ii = 1; ii <= n; ii++)
     598  int ii;
     599  for (ii = 1; ii <= n; ii++)
    599600  {
    600601   l2[ii] = "d("+string(ii)+")";
     
    619620    }
    620621  }
    621   string sord2 = "(a(0:" + string(n) + ")," + sord + ")";
    622622  string l3 = "(0";
    623   int ii;
    624623  for (ii = 1; ii <= @d; ii++)
    625624  {
    626    l3 = l3+",b("+string(ii)+")";
     625    l3 = l3+",b("+string(ii)+")";
    627626  }
    628627  l3 = l3+")";
     
    630629  for (ii = 1; ii <= n; ii++)
    631630  {
    632    l4[ii] = "x("+string(ii)+")";
    633    l4[n+ii] = "d("+string(ii)+")";
     631    l4[ii] = "x("+string(ii)+")";
     632    l4[n+ii] = "d("+string(ii)+")";
    634633  }
     634  string sord2 = "(a(0";
     635  for (ii = 2; ii <= n; ii++)
     636  {
     637    sord2 = sord2 + ",0";
     638  }
     639  sord2 = sord2 + ")," + sord + ")";
    635640  ring GR = create_ring(l3, l4, sord2);
    636641  def W=Weyl(); setring W;
Note: See TracChangeset for help on using the changeset viewer.