Changeset 6fe9a5 in git for Singular/LIB/dmodapp.lib


Ignore:
Timestamp:
Mar 18, 2011, 9:12:17 PM (13 years ago)
Author:
Viktor Levandovskyy <levandov@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
3542f7c7fb52228c2cae41980c84109e503eaf75
Parents:
19ad27804d6e9c1c16eb3b3f560ad543ea06b922
Message:
*levandov: bugfixes for bfun_lib and dmodapp_lib by Daniel Andres

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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/dmodapp.lib

    r19ad278 r6fe9a5  
    131131  11.10.10 by DA:
    132132  - procedure bFactor now sorts the roots using new static procedure sortNumberIdeal
     133
     134  17.03.11 by DA:
     135  - bugfixes for inForm with polynomial input, typo in restrictionIdealEngine
    133136*/
    134137
     
    16741677
    16751678proc inForm (def I, intvec w)
    1676   "USAGE:  inForm(I,w);  I ideal or poly, w intvec
     1679"USAGE:  inForm(I,w);  I ideal or poly, w intvec
    16771680RETURN:  ideal, generated by initial forms of generators of I w.r.t. w, or
    16781681@*       poly, initial form of input poly w.r.t. w
     
    16921695    ERROR("weight vector has wrong dimension");
    16931696  }
    1694   if (I == 0)
     1697  ideal II = I;
     1698  if (simplify(II,2) == 0)
    16951699  {
    16961700    return(I);
     
    17011705  poly g;
    17021706  ideal J;
    1703   for (j=1; j<=ncols(I); j++)
    1704   {
    1705     l = poly2list(I[j]);
     1707  for (j=1; j<=ncols(II); j++)
     1708  {
     1709    l = poly2list(II[j]);
    17061710    m = scalarProd(w,l[1][1]);
    17071711    g = l[1][2];
     
    22772281        if (v == zm)
    22782282        {
    2279           J[size(J+1)] = M[1,i];
     2283          J[size(J)+1] = M[1,i];
    22802284        }
    22812285      }
Note: See TracChangeset for help on using the changeset viewer.