Changeset 908d5a0 in git
- Timestamp:
- May 19, 1998, 8:08:26 PM (25 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- b07a7309c9ce4af1097f209fcbe4f0bccbd68616
- Parents:
- 652cd158cf9057ab18e652dbde7b6b887c3be7cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/poly.lib
r652cd1 r908d5a0 1 // $Id: poly.lib,v 1.1 3 1998-05-14 18:45:11 SingularExp $1 // $Id: poly.lib,v 1.14 1998-05-19 18:08:26 obachman Exp $ 2 2 //system("random",787422842); 3 3 //(GMG, last modified 22.06.96) … … 5 5 /////////////////////////////////////////////////////////////////////////////// 6 6 7 version="$Id: poly.lib,v 1.1 3 1998-05-14 18:45:11 SingularExp $";7 version="$Id: poly.lib,v 1.14 1998-05-19 18:08:26 obachman Exp $"; 8 8 info=" 9 9 LIBRARY: poly.lib PROCEDURES FOR MANIPULATING POLYS, IDEALS, MODULES … … 59 59 60 60 proc katsura 61 "USAGE: katsura([n]); n integer 62 RETURN: katsura(n) : n-th katsura ideal of newly created and set ring 63 (32003, x(0..n), dp) 61 "USAGE: katsura([n]): n integer 62 RETURN: katsura(n) : n-th katsura ideal of 63 (1) newly created and set ring (32003, x(0..n), dp), if 64 nvars(basering) < n 65 (2) basering, if nvars(basering) >= n 64 66 katsura() : katsura ideal of basering 65 67 EXAMPLE: example katsura; shows examples 66 68 " 67 69 { 70 int n; 68 71 if ( size(#) == 1 && typeof(#[1]) == "int") 69 72 { 70 ring katsura_ring = 32003, x(0..#[1]), dp; 71 keepring katsura_ring; 72 } 73 n = #[1] - 1; 74 while (1) 75 { 76 if (defined(basering)) 77 { 78 if (nvars(basering) >= #[1]) {break;} 79 } 80 ring katsura_ring = 32003, x(0..#[1]), dp; 81 keepring katsura_ring; 82 break; 83 } 84 } 85 else 86 { 87 n = nvars(basering) -1; 88 } 89 73 90 ideal s; 74 91 int i, j; 75 int n = nvars(basering) -1;76 92 poly p; 77 93
Note: See TracChangeset
for help on using the changeset viewer.