Changeset 7de961 in git
- Timestamp:
- Jun 9, 2015, 4:07:18 PM (8 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 8aa9770fc6e41a905d10dd6cac4556354095e462
- Parents:
- 8fe1512a20298a7470ea0420e2d202969e2d40c3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/standard.lib
r8fe151 r7de961 804 804 "SYNTAX: @code{groebner (} ideal_expression @code{)} @* 805 805 @code{groebner (} module_expression @code{)} @* 806 @code{groebner (} ideal_expression@code{,} int_expression @code{)} @*807 @code{groebner (} module_expression@code{,} int_expression @code{)} @*808 806 @code{groebner (} ideal_expression@code{,} list of string_expressions 809 807 @code{)} @* 810 808 @code{groebner (} ideal_expression@code{,} list of string_expressions 811 and int_expression @code{)} @* 812 @code{groebner (} ideal_expression@code{,} int_expression @code{)} 809 and int_expression @code{)} 813 810 TYPE: type of the first argument 814 811 PURPOSE: computes a standard basis of the first argument @code{I} … … 829 826 afterwards back). 830 827 @code{option(prot)} informs about the chosen method. 831 NOTE: If an additional argument, say @code{wait}, of type int is given,832 then the computation runs for at most @code{wait} seconds.833 That is, if no result could be computed in @code{wait} seconds,834 then the computation is interrupted, 0 is returned, a warning835 message is displayed, and the global variable836 @code{Standard::groebner_error} is defined.837 This feature uses MP and hence it is available on UNIX platforms, only.838 828 HINT: Since there exists no uniform best method for computing standard 839 829 bases, and since the difference in performance of a method on … … 843 833 parameters/variables by integers, etc.). @* 844 834 SEE ALSO: stdhilb, stdfglm, std, slimgb 845 KEYWORDS: time limit on computations; MP,groebner basis computations835 KEYWORDS: groebner basis computations 846 836 EXAMPLE: example groebner; shows an example" 847 837 … … 904 894 for (k=1; k<=size(#); k++) 905 895 { 906 if (typeof(#[k]) == "int")907 {908 int wait = #[k];909 }910 896 if (typeof(#[k]) == "string") 911 897 { … … 914 900 } 915 901 } 916 917 //======= we have an argument of type int -- try to use MPfork links =======918 if ( defined(wait) == voice )919 {920 if ( system("with", "MP") )921 {922 int j = 10;923 string bs = nameof(basering);924 link l_fork = "MPtcp:fork";925 open(l_fork);926 write(l_fork, quote(system("pid")));927 int pid = read(l_fork);928 // write(l_fork, quote(groebner(eval(i))));929 write(l_fork, quote(groebner(eval(i),eval(Method))));930 //###Fehlermeldung:931 // ***dError: undef. ringorder used932 // occured at:933 934 // sleep in small intervalls for appr. one second935 if (wait > 0)936 {937 while(j < 1000000)938 {939 if (status(l_fork, "read", "ready", j)) {break;}940 j = j + j;941 }942 }943 944 // sleep in intervalls of one second from now on945 j = 1;946 while (j < wait)947 {948 if (status(l_fork, "read", "ready", 1000000)) {break;}949 j = j + 1;950 }951 952 if (status(l_fork, "read", "ready"))953 {954 def result = read(l_fork);955 if (bs != nameof(basering))956 {957 def PP = basering;958 setring P;959 def result = imap(PP, result);960 kill PP;961 }962 if (defined(groebner_error)==1)963 {964 kill groebner_error;965 }966 kill l_fork;967 }968 else969 {970 ideal result;971 if (! defined(groebner_error))972 {973 int groebner_error = 1;974 export groebner_error;975 }976 "** groebner did not finish";977 j = system("sh", "kill " + string(pid));978 }979 return (result);980 }981 else982 {983 "** groebner with a time limit on computation is not supported984 in this configuration";985 }986 }987 988 //=========== we are still here -- do the actual computation =============989 902 990 903 //--------------------- save data from basering --------------------------- … … 1065 978 if( find(method,"hilb") && !find(method,"fglm") ) 1066 979 { 1067 conversion = "hilb"; // $Id$980 conversion = "hilb"; 1068 981 } 1069 982 if( find(method,"fglm") && !find(method,"hilb") ) 1070 983 { 1071 conversion = "fglm"; // $Id$984 conversion = "fglm"; 1072 985 } 1073 986 if( find(method,"fglm") && find(method,"hilb") ) 1074 987 { 1075 conversion = "hilborfglm"; // $Id$988 conversion = "hilborfglm"; 1076 989 } 1077 990 if( !find(method,"fglm") && !find(method,"hilb") ) 1078 991 { 1079 conversion = "no"; // $Id$992 conversion = "no"; 1080 993 } 1081 994 -
Tst/Manual/breakpoint.res.gz.uu
r8fe151 r7de961 1 1 begin 640 breakpoint.res.gz 2 M'XL(" (4YR5,``V)R96%K<&]I;G0N<F5S`'7000N"0!`%X+N_XB$=5C!),Q.$3 M/ 407(;K8/12'6)(UW(GZ^:U1IF"G7?;-^V"G..WS(X!0XI#OX++AH%&5F\'>4 MSDHK%E[ F]">D1-51>;VU2G.@Z1$8+MDI/D(TCL6E:ZG2U-GR[Q6ACY+1*$U(5 M XQ1*XSLW,.M9QD>X3:96]+-L-FO%?ZQE.*',N(R:&F*JQ>J9>(.TD>]]]!^^6 .&V'K"^<% ^NY1DCH!````2 M'XL("$+R=E4``V)R96%K<&]I;G0N<F5S`'7000N"0!`%X+N_XB$=5C!IM4P0 3 M/$07(;K8/12'6)(UW(GZ^:U1IF"G7?;-^V"G..WS(P"9X9#OX++AH%&5F\+> 4 MSDHK%E[J]">R#%5'Y?76*LV!ID=@N&2G^`CA.!:7KJ5*4V?+OU=('R6C49J0 5 M1`F4QG=N8*)9QH?<QE,K_%DVF[76?ZREG%!F7$9-#3'58O6,O4':9.]]]!^^ 6 .&V'K"^<%/$@GQSH!```` 7 7 ` 8 8 end
Note: See TracChangeset
for help on using the changeset viewer.