Changeset 4c4b1e in git
- Timestamp:
- Jun 20, 2005, 12:18:00 PM (18 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- a789a77f2c934f249a3b434af544b7331a5d7793
- Parents:
- 3a0947fcc2cb8cd5acf7fc5405428c13e6af1280
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/lejeune.lib
r3a0947 r4c4b1e 1 1 2 2 //-*- mode:C++;-*- 3 // $Id: lejeune.lib,v 1. 2 2005-06-20 10:02:16cremer Exp $3 // $Id: lejeune.lib,v 1.3 2005-06-20 10:18:00 cremer Exp $ 4 4 5 5 info=" … … 11 11 variables(k,i); creates k*i new var. t,a(1),..,a(i),..,x(1),..,x(i) 12 12 a_z(k); returns kth letter of the alphabet 13 series(k,i); creates polyn. a(1)*t+..+a(n)*t^n13 tpolys(k,i); creates polyn. a(1)*t+..+a(n)*t^n 14 14 "; 15 15 … … 19 19 20 20 21 proc tpolys (int i,poly f)21 proc plugin_coeffs (int i,poly f) 22 22 { 23 23 def r=basering; … … 27 27 def R=changevar(""+varstr(r)+",t,"+variables(k,i)+""); 28 28 setring R; 29 ideal I= series(i,k);29 ideal I=tpolys(i,k); 30 30 poly g=imap(r,f); 31 31 map h=r,I; 32 32 ideal J=h(f); 33 33 matrix output=coeffs(J[1],t); 34 output;35 34 keepring R; 36 return( );35 return(output); 37 36 } 38 37 … … 63 62 64 63 65 proc a_z (int n) ;// returns nth letter of the alphabet64 proc a_z (int n) // returns nth letter of the alphabet 66 65 { 67 66 if((n<1)||(n>26)) // input admissible? … … 77 76 78 77 79 proc series (int i,int k) // constructs polynomials a(1)*t+...78 proc tpolys (int i,int k) // constructs polynomials a(1)*t+... 80 79 { // has to be called from tpolys 81 80 int s,t; // loop variables
Note: See TracChangeset
for help on using the changeset viewer.