Changeset 6fa72f7 in git
- Timestamp:
- Jun 12, 1998, 11:33:33 AM (26 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 0bf0ad404be0052347f95a8372099f264df3172a
- Parents:
- 1d7c4b47b26fed52a770d79387350be523837831
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/standard.lib
r1d7c4b r6fa72f7 1 // $Id: standard.lib,v 1.1 8 1998-06-03 10:04:26obachman Exp $1 // $Id: standard.lib,v 1.19 1998-06-12 09:33:33 obachman Exp $ 2 2 ////////////////////////////////////////////////////////////////////////////// 3 3 4 version="$Id: standard.lib,v 1.1 8 1998-06-03 10:04:26obachman Exp $";4 version="$Id: standard.lib,v 1.19 1998-06-12 09:33:33 obachman Exp $"; 5 5 info=" 6 6 LIBRARY: standard.lib PROCEDURES WHICH ARE ALWAYS LOADED AT START-UP … … 215 215 else 216 216 { 217 "// ** groebner with two args not supported in this configuration";217 "// ** groebner with two args is not supported in this configuration"; 218 218 } 219 219 } … … 238 238 239 239 // return std if no parameters and (dp or wp) 240 if ((npars_P == 0) && IsSimple_P)240 if ((npars_P <= 1) && IsSimple_P) 241 241 { 242 242 if (find(ordstr_P, "d") > 0) … … 269 269 string varstr_P = varstr(P); 270 270 string parstr_P = parstr(P); 271 int is_homog = (homog(i) && (npars_P == 0)); 272 273 string ri = "ring Phelp =" + string(char(P)) + ",(" + varstr_P; 274 // parameters are converted to ring variables 275 if (npars_P > 0) 276 { 277 ri = ri + "," + parstr_P; 278 } 271 int is_homog = (homog(i) && (npars_P <= 1)); 272 int add_vars = 0; 273 string ri = "ring Phelp ="; 274 275 // more than one parameters are converted to ring variables 276 if (npars_P > 1) 277 { 278 ri = ri + string(char(P)) + ",(" + varstr_P + "," + parstr_P; 279 add_vars = npars_P; 280 } 281 else 282 { 283 ri = ri + "(" + charstr(P) + "),(" + varstr_P; 284 } 285 279 286 // a homogenizing variable is added, if necessary 280 287 if (! is_homog) 281 288 { 282 289 ri = ri + ",@t"; 290 add_vars = add_vars + 1; 283 291 } 284 292 // ordering is set to (dp, C) … … 307 315 intvec hi=hilb(qh1,1); 308 316 309 if ( is_homog && (npars_P == 0))317 if (add_vars == 0) 310 318 { 311 319 // no additional variables were introduced … … 322 330 // additional variables were introduced 323 331 // need another intermediate ring 324 ri = "ring Phelp1 = " + string(char(P))325 + " ,(" + varstr(Phelp) + "),(" + ordstr_P;326 327 // for lp wit hout parameters, we do not need a block ordering328 if ( ! (IsSimple_P && ( npars_P + is_homog <2) && find(ordstr_P, "l")))332 ri = "ring Phelp1 = (" + charstr(Phelp) 333 + "),(" + varstr(Phelp) + "),(" + ordstr_P; 334 335 // for lp wit at most one parameter, we do not need a block ordering 336 if ( ! (IsSimple_P && (add_vars <2) && find(ordstr_P, "l"))) 329 337 { 330 338 // need block ordering 331 ri = ri + ", dp(" + string( npars_P + is_homog) + ")";339 ri = ri + ", dp(" + string(add_vars) + ")"; 332 340 } 333 341 ri = ri + ");";
Note: See TracChangeset
for help on using the changeset viewer.