Changeset 8e9e13 in git
- Timestamp:
- Feb 16, 2021, 11:38:49 AM (2 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- d58ff1053b36c1f89b1558cad550aa1f4b0f1463
- Parents:
- 88dd7f0bd511df4bdb8266e40ad69007c194617e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/modstd.lib
r88dd7f0 r8e9e13 1 1 /////////////////////////////////////////////////////////////////////////////// 2 version="version modstd.lib 4. 1.2.0 Feb_2019"; // $Id$2 version="version modstd.lib 4.2.0.0 Feb_2020 "; // $Id$ 3 3 category="Commutative Algebra"; 4 4 info=" … … 787 787 } 788 788 789 proc modStdL(def I, list #) 790 "USAGE: modStdL(I[, exactness]); I ideal/module, exactness int 791 RETURN: a standard basis of I 792 NOTE: The procedure computes a standard basis of I (over the rational 793 numbers) by using modular methods via an external Singular. 794 @* An optional parameter 'exactness' can be provided. 795 If exactness = 1(default), the procedure computes a standard basis 796 of I for sure; if exactness = 0, it computes a standard basis of I 797 with high probability. 798 SEE ALSO: modular, modStd 799 EXAMPLE: example modStdL; shows an example" 800 { 801 link l="ssi:tcp localhost:"+system("Singular"); 802 write(l,quote(option(noloadLib))); // suppress "loaded..." 803 read(l); //dummy: return value of option 804 write(l,quote(load("modstd.lib","with"))); // load library 805 read(l); //dummy: return value of load 806 if (size(#)==0) 807 { 808 write(l,quote(modStd(eval(I)))); 809 } 810 else 811 { 812 write(l,quote(modStd(eval(I),eval(#[1])))); 813 } 814 return(read(l)); 815 } 816 example 817 { 818 "EXAMPLE:"; 819 echo = 2; 820 ring R1 = 0, (x,y,z,t), dp; 821 ideal I = 3x3+x2+1, 11y5+y3+2, 5z4+z2+4; 822 ideal J = modStdL(I); 823 J; 824 I = homog(I, t); 825 J = modStdL(I); 826 J; 827 828 ring R2 = 0, (x,y,z), ds; 829 ideal I = jacob(x5+y6+z7+xyz); 830 ideal J = modStdL(I, 0); 831 J; 832 833 ring R3 = 0, x(1..4), lp; 834 ideal I = cyclic(4); 835 ideal J1 = modStdL(I, 1); // default 836 ideal J2 = modStdL(I, 0); 837 size(reduce(J1, J2)); 838 size(reduce(J2, J1)); 839 } 840 789 841 ////////////////////////////// further examples //////////////////////////////// 790 842
Note: See TracChangeset
for help on using the changeset viewer.