Changeset f49f53 in git for Singular/LIB/zeroset.lib


Ignore:
Timestamp:
Apr 8, 2009, 1:00:08 PM (14 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
cc2d2ed599098ef3687b1ec2d563e75a80d312cd
Parents:
2ec47ebaee7fc5079158c6e6581c99b776479b2e
Message:
renamed exported variable names


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/zeroset.lib

    r2ec47e rf49f53  
    11// Last change 12.02.2001 (Eric Westenberger)
    22///////////////////////////////////////////////////////////////////////////////
    3 version="$Id: zeroset.lib,v 1.21 2009-04-06 14:12:09 seelisch Exp $";
     3version="$Id: zeroset.lib,v 1.22 2009-04-08 11:00:08 seelisch Exp $";
    44category="Symbolic-numerical solving";
    55info="
     
    8282         without multiplicities.
    8383RETURN:  ring, a polynomial ring over an extension field of the ground field,
    84          containing a list 'roots' and polynomials 'newA' and 'f':
     84         containing a list 'theRoots' and polynomials 'newA' and 'f':
    8585  @format
    86   - 'roots' is the list of roots of the polynomial f (no multiplicities)
     86  - 'theRoots' is the list of roots of the polynomial f (no multiplicities)
    8787  - if the ground field is Q(a') and the extension field is Q(a), then
    8888    'newA' is the representation of a' in Q(a).
     
    9393  @end format
    9494ASSUME:  ground field to be Q or a simple extension of Q given by a minpoly
    95 EXAMPLE: example  roots; shows an example
     95EXAMPLE: example roots; shows an example
    9696"
    9797{
     
    115115  // the coefficients of f.
    116116
    117   list roots = result[1];
     117  list theRoots = result[1];
    118118  poly newA = result[2];
    119119  map F = basering, maxideal(1);
     
    125125  def RON = NewBaseRing();
    126126  setring(RON);
    127   list roots = imap(ROR, roots);
     127  list theRoots = imap(ROR, theRoots);
    128128  poly newA = imap(ROR, newA);
    129129  poly f = imap(ROR, fn);
    130130  kill ROR;
    131   export(roots);
     131  export(theRoots);
    132132  export(newA);
    133133  export(f); dbprint(dbPrt,"
    134 // 'roots' created a new ring which contains the list 'roots' and
     134// 'roots' created a new ring which contains the list 'theRoots' and
    135135// the polynomials 'f' and 'newA'
    136136// To access the roots, newA and the new representation of f, type
    137    def R = roots(f); setring R; roots; newA; f;
     137   def R = roots(f); setring R; theRoots; newA; f;
    138138");
    139139  return(RON);
     
    149149  newA;
    150150  f;
    151   roots;
     151  theRoots;
    152152  map F;
    153   F[1] = roots[1];
     153  F[1] = theRoots[1];
    154154  F(f);
    155155}
     
    170170ASSUME:  basering = Q[x,a] ideal mpoly must be defined, it might be 0!
    171171NOTE:    might change the ideal mpoly!!
    172 EXAMPLE: example  roots; shows an example
     172EXAMPLE: example rootsMain; shows an example
    173173"
    174174{
     
    353353  // store the zero-set, minimal polynomial and the new representative of 'a'
    354354
    355   list zeroset = result[1];
     355  list theZeroset = result[1];
    356356  poly newA = result[2];
    357357  poly minPoly = result[3][1];
     
    369369  setring RZBN;
    370370
    371   list zeroset = imap(ZSR, zeroset);
     371  list theZeroset = imap(ZSR, theZeroset);
    372372  poly newA = imap(ZSR, newA);
    373373  ideal id = imap(ZSR, id);
     
    375375
    376376  export(id);
    377   export(zeroset);
     377  export(theZeroset);
    378378  export(newA);
    379379    dbprint(dbPrt,"
    380 // 'zeroSet' created a new ring which contains the list 'zeroset', the ideal
     380// 'zeroSet' created a new ring which contains the list 'theZeroset', the ideal
    381381// 'id' and the polynomial 'newA'. 'id' is the ideal of the input transformed
    382382// w.r.t. 'newA'.
    383383// To access the zero-set, 'newA' and the new representation of the ideal, type
    384    def R = zeroSet(I); setring R; zeroset; newA; id;
     384   def R = zeroSet(I); setring R; theZeroset; newA; id;
    385385");
    386386  setring RZSB;
     
    397397  newA;
    398398  id;
    399   zeroset;
    400   map F1 = basering, zeroset[1];
    401   map F2 = basering, zeroset[2];
     399  theZeroset;
     400  map F1 = basering, theZeroset[1];
     401  map F2 = basering, theZeroset[2];
    402402  F1(id);
    403403  F2(id);
     
    481481NOTE: This procedure is outdated, and should no longer be used. Use div and mod
    482482instead.
    483 EXAMPLE: example  Quotient; shows an example
     483EXAMPLE: example Quotient; shows an example
    484484"
    485485{
     
    620620RETURN:  poly
    621621ASSUME:  f, g are polynomials in var(i), last variable is the algebraic number
    622 EXAMPLE: example  MEGCD; shows an example
     622EXAMPLE: example MEGCD; shows an example
    623623"
    624624// might be extended to return s1, s2 s.t. f*s1 + g*s2 = gc
     
    661661ASSUME:  f must be squarefree, basering = Q(a)[x] and minpoly != 0.
    662662NOTE:    the norm is an element of Q[x]
    663 EXAMPLE: example  sqfrNorm; shows an example
     663EXAMPLE: example sqfrNorm; shows an example
    664664"
    665665{
     
    696696         'minpoly', this represents the ring Q(a)[x] together with 'minpoly'.
    697697NOTE:   the norm is an element of Q[x]
    698 EXAMPLE: example  SqfrNorm; shows an example
     698EXAMPLE: example SqfrNorm; shows an example
    699699"
    700700{
     
    748748         be defined, representing the minimal polynomial (it might be 0!).
    749749NOTE: outdated, use factorize instead
    750 EXAMPLE: example  Factor; shows an example
     750EXAMPLE: example Factor; shows an example
    751751"
    752752{
     
    814814NOTE:    opt = 0  no primary decomposition
    815815         opt > 0  use a primary decomposition
    816 EXAMPLE: example zeroSet; shows an example
     816EXAMPLE: example zeroSetMain; shows an example
    817817"
    818818{
     
    897897         ideal mpoly must be defined, it might be 0!
    898898NOTE:    might change 'mpoly' !!
    899 EXAMPLE: example  IdealSolve; shows an example
     899EXAMPLE: example IdealSolve; shows an example
    900900"
    901901{
Note: See TracChangeset for help on using the changeset viewer.