Changeset 4c4b1e in git


Ignore:
Timestamp:
Jun 20, 2005, 12:18:00 PM (19 years ago)
Author:
Nadine Cremer <cremer@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a789a77f2c934f249a3b434af544b7331a5d7793
Parents:
3a0947fcc2cb8cd5acf7fc5405428c13e6af1280
Message:
*cremer:plugging in works


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/lejeune.lib

    r3a0947 r4c4b1e  
    11
    22//-*- mode:C++;-*-
    3 // $Id: lejeune.lib,v 1.2 2005-06-20 10:02:16 cremer Exp $
     3// $Id: lejeune.lib,v 1.3 2005-06-20 10:18:00 cremer Exp $
    44
    55info="
     
    1111    variables(k,i);      creates k*i new var. t,a(1),..,a(i),..,x(1),..,x(i)
    1212    a_z(k);            returns kth letter of the alphabet
    13     series(k,i);        creates polyn. a(1)*t+..+a(n)*t^n
     13    tpolys(k,i);        creates polyn. a(1)*t+..+a(n)*t^n
    1414  ";
    1515
     
    1919
    2020
    21 proc tpolys (int i,poly f)
     21proc plugin_coeffs (int i,poly f)
    2222{
    2323  def r=basering;
     
    2727  def R=changevar(""+varstr(r)+",t,"+variables(k,i)+"");
    2828  setring R;
    29   ideal I=series(i,k);
     29  ideal I=tpolys(i,k);
    3030  poly g=imap(r,f);
    3131  map h=r,I;
    3232  ideal J=h(f);
    3333  matrix output=coeffs(J[1],t);
    34   output;
    3534  keepring R;
    36   return();
     35  return(output);
    3736}
    3837
     
    6362
    6463
    65 proc a_z (int n);                       // returns nth letter of the alphabet
     64proc a_z (int n)                      // returns nth letter of the alphabet
    6665{
    6766  if((n<1)||(n>26))                     // input admissible?
     
    7776
    7877
    79 proc series (int i,int k)             // constructs polynomials a(1)*t+...
     78proc tpolys (int i,int k)             // constructs polynomials a(1)*t+...
    8079{                                     // has to be called from tpolys
    8180  int s,t;                             // loop variables
Note: See TracChangeset for help on using the changeset viewer.