Changeset cb83c1 in git
- Timestamp:
- Aug 8, 2008, 12:54:50 PM (15 years ago)
- Branches:
- (u'spielwiese', 'a7324b6e0b44a1a8ed3fa4d9ca3e2ff210ddd52c')
- Children:
- 9cb273d69977c6dfe8b9fdb37ec1893193b953c7
- Parents:
- 90203a90e070f1fa64b3e7012c9d1f4ef0992f60
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/tropical.lib
r90203a rcb83c1 1 version="$Id: tropical.lib,v 1. 5 2008-08-07 15:52:58keilen Exp $";1 version="$Id: tropical.lib,v 1.6 2008-08-08 10:54:50 keilen Exp $"; 2 2 category="Tropical Geometry"; 3 3 info=" … … 110 110 tropcialSubst(poly,int,list) computes the tropical polynomial of poly with certain substitutions 111 111 randomPoly(int,int,int) computes a polynomial with random coefficients 112 cleanTmp() removes the latex and ps files from /tmp created by other procedures 112 113 113 114 KEYWORDS: tropical curves; tropical polynomials … … 1180 1181 the basering must have a global monomial ordering, two variables and up to one parameter! 1181 1182 RETURN: NONE 1182 NOTE: - the procedure produces the files /tmp/tropicalcurveNUMBER.tex , /tmp/tropicalcurveNUMBER.dviand1183 NOTE: - the procedure produces the files /tmp/tropicalcurveNUMBER.tex and 1183 1184 /tmp/tropicalcurveNUMBER.ps, where NUMBER is a random four digit integer; 1184 1185 moreover it displays the tropical curve defined by f via kghostview; 1186 if you wish to remove all these files from /tmp, call the procedure cleanTmp 1185 1187 @* - edges with multiplicity greater than one carry this multiplicity 1186 1188 @* - if # is empty, then the tropical curve is computed w.r.t. minimum, if #[1] is the … … 1304 1306 int rdnum=random(1000,9999); 1305 1307 write(":w /tmp/tropicalcurve"+string(rdnum)+".tex",TEXBILD); 1306 system("sh","cd /tmp; latex /tmp/tropicalcurve"+string(rdnum)+".tex; dvips /tmp/tropicalcurve"+string(rdnum)+".dvi -o; kghostview tropicalcurve"+string(rdnum)+".ps &");1308 system("sh","cd /tmp; latex /tmp/tropicalcurve"+string(rdnum)+".tex; dvips /tmp/tropicalcurve"+string(rdnum)+".dvi -o; /bin/rm tropicalcurve"+string(rdnum)+".log; /bin/rm tropicalcurve"+string(rdnum)+".aux; /bin/rm tropicalcurve"+string(rdnum)+".ps?; /bin/rm tropicalcurve"+string(rdnum)+".dvi; kghostview tropicalcurve"+string(rdnum)+".ps &"); 1307 1309 } 1308 1310 else … … 1336 1338 RETURN: NONE 1337 1339 NOTE: - the procedure produces the files /tmp/newtonsubdivisionNUMBER.tex, 1338 /tmp/newtonsubdivisionNUMBER.dvi and /tmp/newtonsubdivisionNUMBER.ps, 1339 where NUMBER is a random four digit integer; 1340 and /tmp/newtonsubdivisionNUMBER.ps, where NUMBER is a random four digit integer; 1340 1341 moreover it desplays the tropical curve defined by f via kghostview; 1342 if you wish to remove all these files from /tmp, call the procedure cleanTmp 1341 1343 @* if # is empty, then the tropical curve is computed w.r.t. minimum, if #[1] is the 1342 1344 string 'max', then it is computed w.r.t. maximum … … 1395 1397 int rdnum=random(1000,9999); 1396 1398 write(":w /tmp/newtonsubdivision"+string(rdnum)+".tex",TEXBILD); 1397 system("sh","cd /tmp; latex /tmp/newtonsubdivision"+string(rdnum)+".tex; dvips /tmp/newtonsubdivision"+string(rdnum)+".dvi -o; kghostview newtonsubdivision"+string(rdnum)+".ps &");1399 system("sh","cd /tmp; latex /tmp/newtonsubdivision"+string(rdnum)+".tex; dvips /tmp/newtonsubdivision"+string(rdnum)+".dvi -o; /bin/rm newtonsubdivision"+string(rdnum)+".log; /bin/rm newtonsubdivision"+string(rdnum)+".aux; /bin/rm newtonsubdivision"+string(rdnum)+".ps?; /bin/rm newtonsubdivision"+string(rdnum)+".dvi; kghostview newtonsubdivision"+string(rdnum)+".ps &"); 1398 1400 // return(TEXBILD); 1399 1401 } … … 3119 3121 } 3120 3122 3123 proc cleanTmp () 3124 "USAGE: cleanTmp() 3125 PURPOSE: some procedures create latex and ps-files in the directory /tmp; 3126 in order to remove them simply call cleanTmp(); 3127 RETURN: none" 3128 { 3129 system("sh","cd /tmp; /bin/rm -f tropicalcurve*; /bin/rm -f tropicalnewtonsubdivision*"); 3130 } 3121 3131 3122 3132 ///////////////////////////////////////////////////////////////////////////////// … … 3938 3948 export(PARA); 3939 3949 } 3950 // kill the gfan files in /tmp 3951 system("sh","cd /tmp; /bin/rm gfaninput; /bin/rm gfanoutput"); 3940 3952 // we return a list which contains the parametrisation ring (with the parametrisation ideal) 3941 3953 // and the string representing the maximal ideal describing the necessary field extension … … 4891 4903 kill TRRING; 4892 4904 } 4905 // kill the gfan files in /tmp 4906 system("sh","cd /tmp; /bin/rm gfaninput; /bin/rm gfanoutput"); 4893 4907 // we return a list which contains lists of the parametrisation rings (with the parametrisation ideal) 4894 4908 // and an integer N such that t should be replaced by t^1/N
Note: See TracChangeset
for help on using the changeset viewer.