Changeset 76df61 in git
- Timestamp:
- Feb 25, 2014, 2:56:58 PM (10 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 2a736547267291e5c0fabf6e61d9f626660126b4
- Parents:
- 137883ef0bd378a1afb5d49f2c94c48dc06e8c9cd3158db7c3fe477e710ec83e75fa69fe5a50cc5f
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/normal.lib
rd3158db r76df61 2752 2752 } 2753 2753 if(w>=1){"Newton-Polygon is non-degenerated";"";} 2754 setring R; 2754 2755 option(set,save_opt); 2755 2756 return(list(d*(mu+nb-1) div 2,d*tau,d*nb)); … … 2806 2807 } 2807 2808 list HNEXP=hnexpansion(f); 2808 if (typeof(HNEXP[1])=="ring") { 2809 if (typeof(HNEXP[1])=="ring") 2810 { 2809 2811 def altring = basering; 2810 2812 def HNEring = HNEXP[1]; setring HNEring; … … 2817 2819 nb=size(HNEXP); 2818 2820 } 2821 setring R; 2819 2822 option(set,save_opt); 2820 2823 return(list(d*(mu+nb-1) div 2,d*tau,d*nb)); … … 2825 2828 if(w>=1){"now we have to use Hamburger-Noether (Puiseux) expansion";} 2826 2829 delt=delta(f); 2830 setring R; 2827 2831 option(set,save_opt); 2828 2832 return(list(d*delt,d*tau,d)); … … 3879 3883 //{ "module generators are U[i]/U[1], with U:"; U; 3880 3884 // ""; pause(); } 3885 setring R; 3881 3886 option(set,op); 3882 setring R;3883 3887 ideal U = imap(Q,U); 3884 3888 return(U); … … 4244 4248 pause();""; 4245 4249 } 4250 setring R; 4246 4251 return(lastRing); 4247 4252 } … … 6613 6618 a = is_injective(Qnormap,QAS); //a. Test for injectivity of Qnormap 6614 6619 dbprint ( prl, "injective: "+string(a) ); 6615 if ( n==1 ) { return (a); } 6620 if ( n==1 ) 6621 { 6622 intvec result = intvec(a); 6623 setring BAS; 6624 return (result); 6625 } 6616 6626 a; 6617 6627 … … 6620 6630 b = mapIsFinite(normap,BAS,lnorid[2]); //b. Test for finiteness of normap 6621 6631 dbprint ( prl, "finite: "+string(b) ); 6622 if ( n==2 ) { return (intvec(a,b)); } 6632 if ( n==2 ) 6633 { 6634 intvec result = intvec(a,b); 6635 setring BAS; 6636 return (result); 6637 } 6623 6638 b; 6624 6639 … … 6637 6652 int d1 = (d==0); //d1=1 if delta=0 6638 6653 dbprint ( prl, "delta: "+string(d) ); 6639 return(intvec(a,b,d1)); 6654 intvec result = intvec(a,b,d1); 6655 setring BAS; 6656 return(result); 6640 6657 } 6641 6658 example -
Singular/LIB/realclassify.lib
r137883e r76df61 728 728 /* auxiliary variables */ 729 729 int i; 730 def br = basering; 730 731 731 732 /* error check */ 732 if(char(b asering) != 0)733 if(char(br) != 0) 733 734 { 734 735 ERROR("The characteristic must be zero."); 735 736 } 736 int n = nvars(b asering);737 int n = nvars(br); 737 738 for(i = 1; i <= n; i++) 738 739 { … … 781 782 /* highest corner */ 782 783 int hc; 784 if(ordstr(br) != "ds") 785 { 786 list lbr = ringlist(br); 787 lbr[3] = list(list("ds", 1:nvars(br)), list("C", 0)); 788 def br_ds = ring(lbr); 789 setring(br_ds); 790 poly f = fetch(br, f); 791 } 783 792 for(i = 0; i < 3; i++) 784 793 { 785 f = jet(f, k);786 794 hc = deg(highcorner(std(maxideal(i)*jacob(f)))); 787 795 hc = hc+2-i; … … 789 797 { 790 798 k = hc; 791 } 799 f = jet(f, k); 800 } 801 } 802 if(ordstr(br) != "ds") 803 { 804 setring(br); 792 805 } 793 806 -
Singular/ipassign.cc
rd3158db r76df61 865 865 if (lt==DEF_CMD) 866 866 { 867 if (TEST_V_ALLWARN 868 && (rt!=RING_CMD) 869 && (rt!=QRING_CMD) 870 && (l->name!=NULL) 871 && (l->e==NULL) 872 && (iiCurrArgs==NULL) /* not in proc header */ 873 ) 874 { 875 Warn("use `%s` instead of `def`",Tok2Cmdname(rt)); 876 } 867 877 if (l->rtyp==IDHDL) 868 878 { -
Singular/ipshell.cc
rd3158db r76df61 1155 1155 } 1156 1156 leftv h=iiCurrArgs; 1157 leftv rest=h->next; /*iiCurrArgs is not NULLi here*/ 1158 BOOLEAN is_default_list=FALSE; 1157 1159 if (strcmp(p->name,"#")==0) 1158 1160 { 1161 is_default_list=TRUE; 1162 rest=NULL; 1163 } 1164 else 1165 { 1166 h->next=NULL; 1167 } 1168 BOOLEAN res=iiAssign(p,h); 1169 if (is_default_list) 1170 { 1159 1171 iiCurrArgs=NULL; 1160 1172 } 1161 1173 else 1162 1174 { 1163 iiCurrArgs=h->next; 1164 h->next=NULL; 1165 } 1166 BOOLEAN res=iiAssign(p,h); 1175 iiCurrArgs=rest; 1176 } 1167 1177 h->CleanUp(); 1168 1178 omFreeBin((ADDRESS)h, sleftv_bin); … … 2198 2208 lists v=(lists)L->m[1].Data(); 2199 2209 R->N = v->nr+1; 2200 if (R->N<=0) 2210 if (R->N<=0) 2201 2211 { 2202 2212 WerrorS("no ring variables"); … … 5057 5067 else // (0/p, a, b, ..., z) 5058 5068 { 5059 5060 5061 5062 5063 5069 if ((ch!=0) && (ch!=IsPrime(ch))) 5070 { 5071 WerrorS("too many parameters"); 5072 goto rInitError; 5073 } 5064 5074 5065 5075 char ** names = (char**)omAlloc0(pars * sizeof(char_ptr)); … … 5074 5084 5075 5085 extParam.r = rDefault( ch, pars, names); // Q/Zp [ p_1, ... p_pars ] 5076 5077 5078 5079 5080 5086 for(int i=pars-1; i>=0;i--) 5087 { 5088 omFree(names[i]); 5089 } 5090 omFree(names); 5081 5091 5082 5092 cf = nInitChar(n_transExt, &extParam); … … 5158 5168 number p=(number)pn->next->CopyD(); 5159 5169 nlGMP(p,(number)modBase,coeffs_BIGINT); 5160 5170 nlDelete(&p,coeffs_BIGINT); 5161 5171 } 5162 5172 } -
Tst/Short/realclassify_s.res.gz.uu
r137883e r76df61 1 1 begin 600 realclassify_s.res.gz 2 M'XL(" ),_75(``W)E86QC;&%S<VEF>5]S+G)E<P!=4L%.PS`,O><KK(E#J[553 M FW0#-N@!=ID$N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H2D\E"949<C4;`5)+9"$"M$J,@47Q.E 10 ML:5+1M3X-$WIIGDYRX2,9FFX=.J@-(.Z[WMHNZ]J;M'1TB1F:7J2_4"BM!M\ 11 D8I9EY_3P]H9D9L';$<E=U._ZWR(?I9?XRROT"^8K:-<A`P`` 12 12 ` 13 13 end -
Tst/Short/realclassify_s.stat
r137883e r76df61 1 1 >> tst_memory_0 :: 13 81842835:3160:3-1-6:ix86-Linux:mamawutz:3236282 1 >> tst_memory_1 :: 13 81842835:3160:3-1-6:ix86-Linux:mamawutz:23224323 1 >> tst_memory_2 :: 13 81842835:3160:3-1-6:ix86-Linux:mamawutz:24013444 1 >> tst_timer_1 :: 13 81842835:3160:3-1-6:ix86-Linux:mamawutz:151 1 >> tst_memory_0 :: 1393336107:3170:3-1-7:ix86-Linux:mamawutz:300464 2 1 >> tst_memory_1 :: 1393336107:3170:3-1-7:ix86-Linux:mamawutz:2297856 3 1 >> tst_memory_2 :: 1393336107:3170:3-1-7:ix86-Linux:mamawutz:2384976 4 1 >> tst_timer_1 :: 1393336107:3170:3-1-7:ix86-Linux:mamawutz:17
Note: See TracChangeset
for help on using the changeset viewer.