Changeset dad9fb in git
- Timestamp:
- Mar 15, 2012, 5:26:46 PM (11 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 8066cd9340c30bf555310cdb3ca4a9c82b4f3e92a82c308b8fbf35f5d32c156ead224188e2610f7e
- Parents:
- 788fdfc919bcf38d8b469a0f59374abf9046985dd841a16156c2e0b2a5e731384a7a5e454dffe2d8
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/resbinomial.lib
r788fdf rdad9fb 109 109 110 110 if (cont!=n or n<=2){ 111 112 // defining the new variables in Lring2[2]113 114 list Lring,Lring2;115 Lring=ringlist(basering);116 117 ring raux=0,(x(1..n)),dp;118 setring r;119 Lring2=ringlist(raux);120 121 111 // making the change 122 123 for (i=1;i<=n; i++){ Lring[2][i]=Lring2[2][i];} 124 125 def Rnew=ring(Lring); 112 def Rnew=changevar ("x()"); 126 113 setring Rnew; 127 114 // print("INVERTIBLE VARIABLES NOT CONSIDERED AT THE BEGINNING"); -
Singular/LIB/sagbi.lib
r788fdf rdad9fb 70 70 //-------- extend current baserring r with new variables @y, 71 71 // one for each new element in ideal algebra ------------- 72 setring r; 72 73 list l = ringlist(r); 73 74 for (i=nvars(r)-nvars(br)+1; i<=numTotalAdditionalVars;i++) -
Singular/cntrlc.cc
rd841a1 rdad9fb 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id$ */5 4 /* 6 5 * ABSTRACT - interupt handling … … 223 222 #endif /* __OPTIMIZE__ */ 224 223 #ifdef CALL_GDB 225 if (sig!=SIGINT) 224 if (sig!=SIGINT) 226 225 { 227 226 if (singular_in_batchmode) debug(STACK_TRACE); … … 248 247 void sig_chld_hdl(int sig) 249 248 { 250 waitpid(-1,NULL,WNOHANG);249 waitpid(-1,NULL,WNOHANG); 251 250 } 252 251 -
Singular/iparith.cc
rd841a1 rdad9fb 6013 6013 } 6014 6014 #endif 6015 if ( !(ringvar=pVar(p)))6015 if ((ringvar=pVar(p))==0) 6016 6016 { 6017 6017 if (rField_is_Extension(currRing)) … … 6019 6019 assume(currRing->cf->extRing!=NULL); 6020 6020 number n = pGetCoeff(p); 6021 ringvar= -n_IsParam(n, currRing);6021 ringvar= -n_IsParam(n, currRing); 6022 6022 } 6023 6023 if(ringvar==0) -
Singular/ipshell.cc
r788fdf rdad9fb 5091 5091 LongComplexInfo param; 5092 5092 5093 param.float_len = float_len;5094 param.float_len2 = float_len2;5093 param.float_len = si_min (float_len, 32767); 5094 param.float_len2 = si_min (float_len2, 32767); 5095 5095 5096 5096 // set the parameter name 5097 5097 if (complex_flag) 5098 5098 { 5099 if (param.float_len < SHORT_REAL_LENGTH) 5100 { 5101 param.float_len= SHORT_REAL_LENGTH; 5102 param.float_len2= SHORT_REAL_LENGTH; 5103 } 5099 5104 if (pn->next == NULL) 5100 5105 param.par_name=(const char*)"i"; //default to i -
libpolys/coeffs/gnumpc.cc
r788fdf rdad9fb 432 432 n->cfSetChar=ngcSetChar; 433 433 434 // r->cfInit_bigint=ngcInit_bigint;434 n->cfInit_bigint=ngcMapQ; 435 435 436 436 /* -
libpolys/coeffs/gnumpc.h
r788fdf rdad9fb 52 52 53 53 54 // Why is this here? who needs it? 55 // number ngcMapQ(number from, const coeffs r, const coeffs aRing); 54 number ngcMapQ(number from, const coeffs r, const coeffs aRing); 56 55 #endif 57 56 /* GMPCOMPLEX_H */ -
libpolys/coeffs/gnumpfl.cc
r788fdf rdad9fb 433 433 n->cfSetMap = ngfSetMap; 434 434 n->cfCoeffWrite = ngfCoeffWrite; 435 n->cfInit_bigint = ngfMapQ; 435 436 #ifdef LDEBUG 436 437 n->cfDBTest = ndDBTest; // not yet implemented: ngfDBTest -
libpolys/coeffs/gnumpfl.h
r788fdf rdad9fb 42 42 void ngfDelete(number *a, const coeffs r); 43 43 44 number ngfMapQ(number from, const coeffs r);44 number ngfMapQ(number from, const coeffs src, const coeffs r); 45 45 46 46 #endif -
libpolys/coeffs/shortfl.cc
r788fdf rdad9fb 572 572 n->cfSetMap = nrSetMap; 573 573 n->cfCoeffWrite = nrCoeffWrite; 574 n->cfInit_bigint = nrMapQ; 574 575 575 576 /* nName= ndName; */ -
libpolys/coeffs/shortfl.h
r788fdf rdad9fb 44 44 // Where are the following used? 45 45 // int nrGetChar(); 46 //number nrMapQ(number from, const coeffs r, const coeffs aRing);46 number nrMapQ(number from, const coeffs r, const coeffs aRing); 47 47 48 48 -
libpolys/polys/ext_fields/transext.cc
r788fdf rdad9fb 247 247 if (IS0(a)) return NULL; 248 248 fraction f = (fraction)a; 249 poly g = p_Copy(NUM(f), ntRing);250 249 fraction result = (fraction)omAlloc0Bin(fractionObjectBin); 251 NUM(result) = g; 252 DEN(result) = NULL; 253 COM(result) = 0; 250 BOOLEAN denis1= DENIS1 (f); 251 if (getCoeffType (ntCoeffs) == n_Q && !denis1) 252 handleNestedFractionsOverQ (f, cf); 253 NUM (result)= p_Copy (NUM (f), ntRing); 254 DEN (result) = NULL; 255 COM (result) = 0; 256 if (getCoeffType (ntCoeffs) == n_Q && denis1) 257 { 258 if (!p_IsConstant (NUM (result), ntRing) && pNext (NUM(result)) != NULL) 259 p_Cleardenom (NUM(result), ntRing); 260 else 261 { 262 number g= p_GetAllDenom (NUM (result), ntRing); 263 NUM (result)= p_Mult_nn (NUM (result), g, ntRing); 264 } 265 } 254 266 return (number)result; 255 267 } … … 260 272 definiteGcdCancellation(a, cf, FALSE); 261 273 fraction f = (fraction)a; 262 poly g;263 if (IS0(f) || DENIS1(f)) g = p_One(ntRing);264 else g = p_Copy(DEN(f), ntRing);265 274 fraction result = (fraction)omAlloc0Bin(fractionObjectBin); 266 NUM(result) = g; 267 DEN(result) = NULL; 268 COM(result) = 0; 275 number g; 276 if (IS0(f) || (DENIS1 (f) && getCoeffType (ntCoeffs) != n_Q)) 277 { 278 NUM (result)= p_One(ntRing); 279 DEN (result)= NULL; 280 COM (result)= 0; 281 } 282 else if (DENIS1 (f)) 283 { 284 poly num= p_Copy (NUM (f), ntRing); 285 if (!p_IsConstant (num, ntRing) && pNext(num) != NULL) 286 p_Cleardenom_n (num, ntRing, g); 287 else 288 g= p_GetAllDenom (num, ntRing); 289 result= (fraction) ntSetMap (ntRing->cf, cf) (g, ntRing->cf, cf); 290 } 291 else 292 { 293 if (getCoeffType (ntCoeffs) == n_Q) 294 handleNestedFractionsOverQ (f, cf); 295 NUM (result)= p_Copy (DEN (f), ntRing); 296 DEN (result) = NULL; 297 COM (result) = 0; 298 } 269 299 return (number)result; 270 300 } … … 1049 1079 if (n_IsZero(a, src)) return NULL; 1050 1080 assume(src == dst->extRing->cf); 1051 poly p = p_ One(dst->extRing);1081 poly p = p_Init(dst->extRing); 1052 1082 number na=n_Copy(a, src); 1053 1083 n_Normalize(na, src); 1054 p_SetCoeff (p, na, dst->extRing);1084 p_SetCoeff0(p, na, dst->extRing); 1055 1085 fraction f = (fraction)omAlloc0Bin(fractionObjectBin); 1056 1086 NUM(f) = p; DEN(f) = NULL; COM(f) = 0; -
libpolys/polys/monomials/p_polys.cc
r788fdf rdad9fb 3414 3414 return NULL; 3415 3415 3416 if( !DENIS1(z) )3417 WarnS("Not implemented yet: Cannot permute a rational fraction and make a polynomial out of it! Ignorring the denumerator.");3416 //if( !DENIS1(z) ) 3417 //WarnS("Not implemented yet: Cannot permute a rational fraction and make a polynomial out of it! Ignorring the denumerator."); 3418 3418 } else 3419 3419 { -
libpolys/polys/monomials/p_polys.h
rd841a1 rdad9fb 437 437 switch(r->typ[i].ord_typ) 438 438 { 439 case ro_am: 439 440 case ro_wp_neg: 440 441 return (((long)((p)->exp[r->pOrdIndex]))-POLY_NEGWEIGHT_OFFSET); -
libpolys/polys/monomials/ring.cc
r788fdf rdad9fb 795 795 r1->cf->ref++; 796 796 } 797 else if ((getCoeffType (r2->cf)==n_algExt || getCoeffType (r2->cf)==n_transExt) && rChar(r2) == rChar(r1)) 798 { 799 /*AlgExtInfo extParam; 800 extParam.r = r2->cf->extRing; 801 extParam.i = r2->cf->extRing->minideal;*/ 802 tmpR.cf=r2->cf; 803 r2->cf->ref++; 804 } 797 805 else 798 806 { … … 809 817 { 810 818 if (getCoeffType(r2->cf)==n_Zp) 819 { 820 tmpR.cf=r2->cf; 821 r2->cf->ref++; 822 } 823 else if (getCoeffType(r2->cf)==n_algExt || getCoeffType(r2->cf)==n_transExt) 811 824 { 812 825 tmpR.cf=r2->cf; -
m4/options.m4
r788fdf rdad9fb 61 61 if test x$ENABLE_PLURAL = xyes; then 62 62 AC_DEFINE(HAVE_PLURAL,1,Enable non-commutative subsystem) 63 #TODO make a seperate switch 64 AC_DEFINE(HAVE_SHIFTBBA,1,Enable letterplace) 63 65 fi 64 66
Note: See TracChangeset
for help on using the changeset viewer.