Changeset 2a5c2f4 in git
- Timestamp:
- Aug 14, 2006, 7:08:21 PM (18 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 6d09f28a24f61ce1c4a87c619ced5aca0fad6075
- Parents:
- cd3d3369e55f59ac72a629fa206a0f305d198a9e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
rcd3d336 r2a5c2f4 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.24 0 2006-06-12 00:08:15wienand Exp $ */4 /* $Id: extra.cc,v 1.241 2006-08-14 17:08:21 wienand Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 2494 2494 extern int strat_nr; 2495 2495 extern int strat_fac_debug; 2496 strat_fac_debug=(int)(long)h->Data(); 2496 strat_fac_debug=(int)(long)h->Data(); 2497 2497 strat_nr=0; 2498 2498 return FALSE; … … 2508 2508 res->rtyp=POLY_CMD; 2509 2509 res->data=(poly) kFindZeroPoly(f, r, r); 2510 return(FALSE); 2511 } 2512 else 2513 /*==================== Creating zero polynomials =================*/ 2514 if (strcmp(sys_cmd, "createG0")==0) 2515 { 2516 /* long exp[50]; 2517 int N = 0; 2518 while (h != NULL) 2519 { 2520 N += 1; 2521 exp[N] = (long) h->Data(); 2522 // if (exp[i] % 2 != 0) exp[i] -= 1; 2523 h = h->next; 2524 } 2525 for (int k = 1; N + k <= currRing->N; k++) exp[k] = 0; 2526 2527 poly t_p; 2528 res->rtyp=POLY_CMD; 2529 res->data= (poly) kCreateZeroPoly(exp, -1, &t_p, currRing, currRing); 2530 return(FALSE); */ 2531 2532 res->rtyp = IDEAL_CMD; 2533 res->data = (ideal) createG0(); 2510 2534 return(FALSE); 2511 2535 } … … 2533 2557 } 2534 2558 else 2535 if (strcmp(sys_cmd, "reduce_fct")==0) 2536 { 2537 ring r = currRing; 2538 poly f = (poly)h->Data(); 2559 /*==================== Testing groebner basis =================*/ 2560 if (strcmp(sys_cmd, "spoly")==0) 2561 { 2562 poly f = pCopy((poly) h->Data()); 2563 h = h->next; 2564 poly g = pCopy((poly) h->Data()); 2565 2539 2566 res->rtyp=POLY_CMD; 2540 res->data=NULL; 2567 res->data=(poly) plain_spoly(f,g); 2568 return(FALSE); 2569 } 2570 else 2571 if (strcmp(sys_cmd, "testGB")==0) 2572 { 2573 ideal I = (ideal) h->Data(); 2574 h = h->next; 2575 ideal GI = (ideal) h->Data(); 2576 res->rtyp = INT_CMD; 2577 res->data = (void *) testGB(I, GI); 2541 2578 return(FALSE); 2542 2579 } … … 2733 2770 } 2734 2771 else 2735 #ifdef HAVE_RING2TOM2736 /*==================== Testing groebner basis =================*/2737 if (strcmp(sys_cmd, "spoly")==0)2738 {2739 poly f = pCopy((poly) h->Data());2740 h = h->next;2741 poly g = pCopy((poly) h->Data());2742 2743 res->rtyp=POLY_CMD;2744 res->data=(poly) plain_spoly(f,g);2745 return(FALSE);2746 }2747 else2748 if (strcmp(sys_cmd, "testGB")==0)2749 {2750 ideal I = (ideal) h->Data();2751 h = h->next;2752 ideal GI = (ideal) h->Data();2753 res->rtyp = INT_CMD;2754 res->data = (void *) testGB(I, GI);2755 return(FALSE);2756 }2757 else2758 #endif2759 2772 #ifdef ix86_Win 2760 2773 /*==================== Python Singular =================*/
Note: See TracChangeset
for help on using the changeset viewer.