Changeset cdd38f in git
- Timestamp:
- Aug 22, 2008, 11:01:19 AM (15 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- ed0d3c884cb3d290762c61e585627ce1f0c18f60
- Parents:
- c51e4a10429f5e0dc652e64d47621b06986328ad
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
rc51e4a rcdd38f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.47 7 2008-08-18 10:41:46Singular Exp $ */4 /* $Id: iparith.cc,v 1.478 2008-08-22 09:01:18 Singular Exp $ */ 5 5 6 6 /* … … 283 283 { "kbase", 0, KBASE_CMD , CMD_12}, 284 284 { "keepring", 0, KEEPRING_CMD , KEEPRING_CMD}, 285 { "kernel", 0, KERNEL_CMD , CMD_2}, 285 286 { "kill", 0, KILL_CMD , KILL_CMD}, 286 287 { "killattrib", 0, KILLATTR_CMD , CMD_12}, … … 2323 2324 (ideal)(u->Data()),currQuotient); 2324 2325 return FALSE; 2326 } 2327 static BOOLEAN jjPREIMAGE(leftv res, leftv u, leftv v, leftv w); 2328 static BOOLEAN jjKERNEL(leftv res, leftv u, leftv v) 2329 { 2330 return jjPREIMAGE(res,u,v,NULL); 2325 2331 } 2326 2332 static BOOLEAN jjKoszul(leftv res, leftv u, leftv v) … … 3349 3355 ,{jjKBASE2, KBASE_CMD, IDEAL_CMD, IDEAL_CMD, INT_CMD ALLOW_PLURAL} 3350 3356 ,{jjKBASE2, KBASE_CMD, MODUL_CMD, MODUL_CMD, INT_CMD ALLOW_PLURAL} 3357 ,{jjKERNEL, KERNEL_CMD, IDEAL_CMD, RING_CMD, ANY_TYPE ALLOW_PLURAL} 3358 ,{jjKERNEL, KERNEL_CMD, IDEAL_CMD, QRING_CMD, ANY_TYPE ALLOW_PLURAL} 3351 3359 ,{atKILLATTR2, KILLATTR_CMD, NONE, IDHDL, STRING_CMD ALLOW_PLURAL} 3352 3360 ,{jjKoszul, KOSZUL_CMD, MATRIX_CMD, INT_CMD, INT_CMD NO_PLURAL} … … 5628 5636 static BOOLEAN jjPREIMAGE(leftv res, leftv u, leftv v, leftv w) 5629 5637 { 5638 // handles preimage(r,phi,i) and kernel(r,phi) 5630 5639 idhdl h; 5631 5640 ring rr; 5632 5641 map mapping; 5633 5634 if ((v->name==NULL) || (w->name==NULL)) 5642 BOOLEAN kernel_cmd= (iiOp==KERNEL_CMD); 5643 5644 if ((v->name==NULL) || (!kernel_cmd && (w->name==NULL))) 5635 5645 { 5636 5646 WerrorS("2nd/3rd arguments must have names"); … … 5667 5677 return TRUE; 5668 5678 } 5669 if ((h=rr->idroot->get(w->name,myynest))!=NULL) 5670 { 5671 if (h->typ==IDEAL_CMD) 5672 { 5673 if (((currRing->qideal!=NULL) && (pOrdSgn==-1)) 5674 || ((rr->qideal!=NULL) && (rr->OrdSgn==-1))) 5675 { 5676 WarnS("preimage in local qring may be wrong: use Ring::preimageLoc instead"); 5677 } 5678 res->data=(char *)maGetPreimage(rr,mapping,IDIDEAL(h)); 5679 if (res->data==NULL/* is of type ideal, should not be NULL*/) return TRUE; 5679 ideal image; 5680 if (kernel_cmd) image=idInit(1,1); 5681 else 5682 { 5683 if ((h=rr->idroot->get(w->name,myynest))!=NULL) 5684 { 5685 if (h->typ==IDEAL_CMD) 5686 { 5687 image=IDIDEAL(h); 5688 } 5689 else 5690 { 5691 Werror("`%s` is no ideal",IDID(h)); 5692 return TRUE; 5693 } 5680 5694 } 5681 5695 else 5682 5696 { 5683 Werror("`%s` is no ideal",IDID(h));5697 Werror("`%s` is not defined in `%s`",w->name,ring_name); 5684 5698 return TRUE; 5685 5699 } 5686 5700 } 5687 else 5688 { 5689 Werror("`%s` is not defined in `%s`",w->name,ring_name); 5690 return TRUE; 5691 } 5692 return FALSE; 5701 if (((currRing->qideal!=NULL) && (pOrdSgn==-1)) 5702 || ((rr->qideal!=NULL) && (rr->OrdSgn==-1))) 5703 { 5704 WarnS("preimage in local qring may be wrong: use Ring::preimageLoc instead"); 5705 } 5706 res->data=(char *)maGetPreimage(rr,mapping,image); 5707 if (kernel_cmd) idDelete(&image); 5708 return (res->data==NULL/* is of type ideal, should not be NULL*/); 5693 5709 } 5694 5710 static BOOLEAN jjRANDOM_Im(leftv res, leftv u, leftv v, leftv w) -
Singular/tok.h
rc51e4a rcdd38f 7 7 * ABSTRACT: tokens, types for interpreter; general macros 8 8 */ 9 /* $Id: tok.h,v 1. 69 2008-01-22 09:40:03Singular Exp $ */9 /* $Id: tok.h,v 1.70 2008-08-22 09:01:18 Singular Exp $ */ 10 10 11 11 #ifndef MYYSTYPE … … 89 89 IS_RINGVAR, 90 90 JANET_CMD, 91 KERNEL_CMD, 91 92 KILLATTR_CMD, 92 93 KRES_CMD, -
doc/NEWS.texi
rc51e4a rcdd38f 1 1 @comment -*-texinfo-*- 2 @comment $Id: NEWS.texi,v 1.10 2 2008-08-19 18:04:02Singular Exp $2 @comment $Id: NEWS.texi,v 1.103 2008-08-22 09:01:19 Singular Exp $ 3 3 @comment this file contains the News about Singular versions 4 4 @comment Unix … … 33 33 @itemize @bullet 34 34 @item 35 new command: kernel (@nref{kernel}) 36 @item 35 37 new command: sqrfree (@nref{sqrfree}) 36 38 @item … … 40 42 41 43 @heading Internal Changes 42 @ table @bullet44 @itemize @bullet 43 45 @item new build target: libsingular.a (for gfan etc.) 44 46 @item code variants depend now on CPU typ, not OS 45 47 @item better test for builtin limits (@nref{Limitations}) 46 @end table48 @end itemize 47 49 48 50 @heading New @sc{Singular} libraries
Note: See TracChangeset
for help on using the changeset viewer.