Changeset c0f614 in git
- Timestamp:
- Feb 16, 2024, 1:57:37 PM (3 months ago)
- Branches:
- (u'spielwiese', '4bd32dfef92ec9f5ed8dceee82d14318ae147107')
- Children:
- be27df299776fa013655436294fca9fa5ec69a32
- Parents:
- ed6cce7a3936eb40676c2649aaa5fc9749dc2fea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/dyn_modules/cohomo/cohomo.cc
red6cce rc0f614 46 46 47 47 /***************************print(only for debugging)***********************************************/ 48 #if 0 48 49 //print vector of integers. 49 50 static void listprint(std::vector<int> vec) … … 60 61 } 61 62 } 62 63 #endif 64 65 #if 0 63 66 //print vector of vectors of integers. 64 67 static void listsprint(std::vector<std::vector<int> > posMat) … … 77 80 } 78 81 } 79 80 82 #endif 83 84 #if 0 81 85 //print ideal. 82 86 static void id_print(ideal h) … … 89 93 } 90 94 } 91 95 #endif 96 97 #if 0 92 98 //only for T^2, 93 99 //print vector of polynomials. … … 105 111 } 106 112 } 107 113 #endif 114 115 #if 0 108 116 //print vector of vectors of polynomials. 109 117 static void lpsprint(std::vector<std::vector<poly> > pvs) … … 122 130 } 123 131 } 132 #endif 124 133 125 134 /*************operations for vectors (regard vectors as sets)*********/ … … 1641 1650 for(i=0; i <num; i++) 1642 1651 { 1643 tt[i] = (char*)omalloc(1 0); //if required enlarge it later1644 snprintf (tt[i],1 0, "t(%d)", i+1);1652 tt[i] = (char*)omalloc(16); 1653 snprintf (tt[i],16, "t(%d)", i+1); 1645 1654 } 1646 1655 ring R=rDefault(cf,num,tt,ringorder_lp); … … 1650 1659 } 1651 1660 1661 #if 0 1652 1662 //returns the trivial case of T^1 1653 1663 //b must only contain one variable … … 1665 1675 return base; 1666 1676 } 1677 #endif 1667 1678 1668 1679 /***************************only for T^2*************************************/ … … 1703 1714 //return the graded pieces of cohomology T^1 according to a,b 1704 1715 //original method (only for debugging) 1716 #if 0 1705 1717 static void gradedpiece1(ideal h,poly a,poly b) 1706 1718 { … … 1761 1773 } 1762 1774 } 1763 1775 #endif 1776 1777 #if 0 1764 1778 //Returns true if b can divide p*q 1765 1779 static bool condition1for2(std::vector<int > pv,std::vector<int > qv,std::vector<int > bv) … … 1774 1788 return false; 1775 1789 } 1776 1790 #endif 1791 1792 #if 0 1777 1793 //Returns true if support(p) union support(q) union support(s) union support(a) minus support(b) is face 1778 1794 static bool condition2for2(std::vector<std::vector<int> > hvs, std::vector<int> pv, std::vector<int> qv, std::vector<int> sv, std::vector<int> av, std::vector<int> bv) … … 1788 1804 return (false); 1789 1805 } 1790 1806 #endif 1807 1808 #if 0 1791 1809 static bool condition3for2(std::vector<std::vector<int> > hvs, std::vector<int> pv, std::vector<int> qv, std::vector<int> av, std::vector<int> bv) 1792 1810 { … … 1805 1823 return(false); 1806 1824 } 1825 #endif 1807 1826 1808 1827 /****************solve the equations got from T^2*********************/ … … 1938 1957 /**************************************************************************/ 1939 1958 1959 #if 0 1940 1960 //subspace of T2(find all the possible values of alpha) 1941 1961 static std::vector<int> findalpha(std::vector<std::vector<int> > mv, std::vector<int> bv) … … 1953 1973 return alset; 1954 1974 } 1975 #endif 1955 1976 1956 1977 static std::vector<int> subspacet1(int num, std::vector<std::vector<int> > ntvs) … … 1980 2001 } 1981 2002 2003 #if 0 1982 2004 //subspace for T^2(mab method) 1983 2005 static std::vector<std::vector<int> > subspacet(std::vector<std::vector<int> > mv, std::vector<int> bv,std::vector<std::vector<int> > ntvs) … … 1994 2016 return subases; 1995 2017 } 2018 #endif 1996 2019 1997 2020 static std::vector<std::vector<int> > mabtv(std::vector<std::vector<int> > hvs, std::vector<std::vector<int> > Mv, std::vector<int> av, std::vector<int> bv) … … 2016 2039 } 2017 2040 2041 #if 0 2018 2042 //fix the problem of the number of the new variables 2019 2043 //original method for T^2(only for debugging) … … 2099 2123 } 2100 2124 } 2125 #endif 2101 2126 2102 2127 /**********************************************************************/ … … 2251 2276 //vtm(solve); 2252 2277 intvec *m; 2253 int i,j,a=vecs.size();2278 unsigned a=vecs.size(); 2254 2279 if(a==0) 2255 2280 { … … 2260 2285 int b=vecs[0].size(); 2261 2286 m=new intvec(a,b,0); 2262 for( i=1;i<=a;i++)2263 { 2264 for( j=1;j<=b;j++)2265 { 2266 IMATELEM( *m,i,j)=vecs[i-1][j-1];2287 for(unsigned i=1;i<=a;i++) 2288 { 2289 for(unsigned j=1;j<=b;j++) 2290 { 2291 IMATELEM((*m),i,j)=vecs[i-1][j-1]; 2267 2292 } 2268 2293 } … … 2327 2352 static intvec * gradedpiece1n(ideal h,poly a,poly b) 2328 2353 { 2329 int i,j,co,n;2354 int co; 2330 2355 std::vector<std::vector<int> > hvs=supports(h),mv=Mabv(h,a,b),sbv,nv,good,solve; 2331 2356 std::vector<int> av=support1(a), bv=support1(b), bad, tnv, index; … … 2335 2360 M=idMaken(mv); 2336 2361 index = gensindex(M, idsrRing(h)); 2337 n=nv.size();2362 unsigned n=nv.size(); 2338 2363 ring r=currRing; 2339 2364 if(n > 0) 2340 2365 { 2341 2366 tnv=tnab(hvs,nv,sbv); 2342 for( i=0;i<tnv.size();i++)2367 for(unsigned i=0;i<tnv.size();i++) 2343 2368 { 2344 2369 co=tnv[i]; 2345 2370 bad.push_back(co+1); 2346 2371 } 2347 for( i=0;i<n;i++)2348 { 2349 for( j=i+1;j<n;j++)2372 for(unsigned i=0;i<n;i++) 2373 { 2374 for(unsigned j=i+1;j<n;j++) 2350 2375 { 2351 2376 if(nabtconditionv(hvs,nv[i],nv[j])) … … 2391 2416 } 2392 2417 2418 #if 0 2393 2419 //for debugging 2394 2420 static void T1(ideal h) … … 2421 2447 Print("Finished %d!\n",mm); 2422 2448 } 2449 #endif 2423 2450 2424 2451 static bool condition2for2nv(std::vector<std::vector<int> > hvs, std::vector<int> pv, std::vector<int> qv, std::vector<int> fv) … … 2573 2600 vec.clear(); 2574 2601 } 2575 for( intt1=t0+1;t1<ntvs.size();t1++)2576 { 2577 for( intt2=t1+1;t2<ntvs.size();t2++)2602 for(unsigned t1=t0+1;t1<ntvs.size();t1++) 2603 { 2604 for(unsigned t2=t1+1;t2<ntvs.size();t2++) 2578 2605 { 2579 2606 if(ntvs[t0][0]==ntvs[t1][0]&&ntvs[t1][1]==ntvs[t2][1]&&ntvs[t0][1]==ntvs[t2][0]) … … 2618 2645 } 2619 2646 2647 #if 0 2620 2648 //for debugging 2621 2649 static void T2(ideal h) … … 2658 2686 Print("There are %d graded pieces in total.\n",gp); 2659 2687 } 2688 #endif 2660 2689 2661 2690 /*****************************for links*******************************************/ … … 2673 2702 static std::vector<std::vector<int> > value1l(std::vector<std::vector<int> > mvs, std::vector<std::vector<int> > lks, std::vector<std::vector<int> > vecs,std::vector<int> av, std::vector<int> bv) 2674 2703 { 2675 int j;2676 2704 std::vector<int> pv; 2677 2705 std::vector<int> base; … … 2682 2710 { 2683 2711 pv=phimagel(mvs[i], av, bv); 2684 for( j=0;j<lks.size();j++)2712 for(unsigned j=0;j<lks.size();j++) 2685 2713 { 2686 2714 if(vEvl(pv,lks[j])) … … 2718 2746 static std::vector<std::vector<int> > gpl(ideal h,poly a,poly b) 2719 2747 { 2720 int i,j,co;2748 int co; 2721 2749 std::vector<std::vector<int> > hvs=supports(h),sbv,nv,mv,good,solve; 2722 2750 std::vector<int> av=support1(a), bv=support1(b),index,bad,tnv; … … 2727 2755 ideal M=idMaken(mv); 2728 2756 index = gensindex(M, idsrRing(h)); 2729 intn=nv.size();2757 unsigned n=nv.size(); 2730 2758 ring r=currRing; 2731 2759 t_begin=clock(); … … 2733 2761 { 2734 2762 tnv=tnab(hvs,nv,sbv); 2735 for( i=0;i<tnv.size();i++)2763 for(unsigned i=0;i<tnv.size();i++) 2736 2764 { 2737 2765 co=tnv[i]; 2738 2766 bad.push_back(co+1); 2739 2767 } 2740 for( i=0;i<n;i++)2741 { 2742 for( j=i+1;j<n;j++)2768 for(unsigned i=0;i<n;i++) 2769 { 2770 for(unsigned j=i+1;j<n;j++) 2743 2771 { 2744 2772 if(nabtconditionv(hvs,nv[i],nv[j])) … … 2807 2835 { 2808 2836 std::vector<int> pv,qv,base; 2809 int row,col ,j;2837 int row,col; 2810 2838 std::vector<std::vector<int> > bases; 2811 2839 if(vecs.size()==0) … … 2825 2853 else 2826 2854 { 2827 for( j=0;j<lkts.size();j++)2855 for(unsigned j=0;j<lkts.size();j++) 2828 2856 { 2829 2857 row=lkts[j][0]; … … 2886 2914 vec.clear(); 2887 2915 } 2888 for( intt1=t0+1;t1<ntvs.size();t1++)2916 for(unsigned t1=t0+1;t1<ntvs.size();t1++) 2889 2917 { 2890 for( intt2=t1+1;t2<ntvs.size();t2++)2918 for(unsigned t2=t1+1;t2<ntvs.size();t2++) 2891 2919 { 2892 2920 if(ntvs[t0][0]==ntvs[t1][0]&&ntvs[t1][1]==ntvs[t2][1]&&ntvs[t0][1]==ntvs[t2][0]) … … 3487 3515 static std::vector<std::vector<int> > star(poly a, ideal h) 3488 3516 { 3489 int i;3490 3517 std::vector<std::vector<int> > st,X=supports(h); 3491 3518 std::vector<int> U,av=support1(a); 3492 for( i=0;i<X.size();i++)3519 for(unsigned i=0;i<X.size();i++) 3493 3520 { 3494 3521 U=vecUnion(av,X[i]); … … 3515 3542 std::vector<std::vector<int> > vecs_minus, vecs_plus, lk=links(a,h), hvs=supports(h), sub, bys=boundary(a); 3516 3543 std::vector<int> av=support1(a), vec, vec_n; 3517 int i,j,vert=0;3518 for(i =1;i<=currRing->N;i++)3519 { 3520 for( j=0;j<IDELEMS(h);j++)3544 int vert=0; 3545 for(int i=1;i<=currRing->N;i++) 3546 { 3547 for(int j=0;j<IDELEMS(h);j++) 3521 3548 { 3522 3549 if(pGetExp(h->m[j],i)>0) … … 3528 3555 } 3529 3556 vec_n.push_back(vert); 3530 for( i=0;i<lk.size();i++)3557 for(unsigned i=0;i<lk.size();i++) 3531 3558 { 3532 3559 vec=vecUnion(av, lk[i]); 3533 3560 vecs_minus.push_back(vec); 3534 for( j=0;j<bys.size();j++)3561 for(unsigned j=0;j<bys.size();j++) 3535 3562 { 3536 3563 vec=vecUnion(lk[i], vec_n); … … 3550 3577 for(unsigned i=0;i<bvs.size();i++) 3551 3578 { 3552 for( intj=0;j!=i; j++)3579 for(unsigned j=0;j!=i; j++) 3553 3580 { 3554 3581 vs.push_back(bvs[j]); … … 3620 3647 res->rtyp =IDEAL_CMD; 3621 3648 res->data =idsrRing(hh); 3649 return FALSE; 3622 3650 } 3623 return false;3651 return TRUE; 3624 3652 } 3625 3653 … … 3633 3661 res->rtyp =IDEAL_CMD; 3634 3662 res->data =h2; 3663 return FALSE; 3635 3664 } 3636 return false;3665 return TRUE; 3637 3666 } 3638 3667 … … 3645 3674 res->rtyp =IDEAL_CMD; 3646 3675 res->data =T_1h(hh); 3676 return FALSE; 3647 3677 } 3648 return false;3678 return TRUE; 3649 3679 } 3650 3680 … … 3665 3695 res->rtyp =IDEAL_CMD; 3666 3696 res->data =mingens(h1,p,q); 3697 return FALSE; 3667 3698 } 3668 3699 } 3669 3700 } 3670 return false;3701 return TRUE; 3671 3702 } 3672 3703 … … 3701 3732 res->rtyp =INTVEC_CMD; 3702 3733 res->data =dmat(p,q); 3734 return FALSE; 3703 3735 } 3704 3736 } 3705 return false;3737 return TRUE; 3706 3738 } 3707 3739 … … 3718 3750 res->rtyp =INTVEC_CMD; 3719 3751 res->data =edgemat(p,q); 3752 return FALSE; 3720 3753 } 3721 3754 } 3722 return false;3755 return TRUE; 3723 3756 } 3724 3757 … … 3731 3764 res->rtyp =IDEAL_CMD; 3732 3765 res->data =findb(h1); 3733 } 3734 return false; 3766 return FALSE; 3767 } 3768 return TRUE; 3735 3769 } 3736 3770 … … 3743 3777 res->rtyp =IDEAL_CMD; 3744 3778 res->data =p_a(h1); 3745 } 3746 return false; 3779 return FALSE; 3780 } 3781 return TRUE; 3747 3782 } 3748 3783 … … 3755 3790 res->rtyp =IDEAL_CMD; 3756 3791 res->data =complementsimplex(h1); 3757 } 3758 return false; 3792 return FALSE; 3793 } 3794 return TRUE; 3759 3795 } 3760 3796 … … 3771 3807 res->rtyp =IDEAL_CMD; 3772 3808 res->data =p_b(h1,p); 3809 return FALSE; 3773 3810 } 3774 3811 } 3775 return false;3812 return TRUE; 3776 3813 } 3777 3814 … … 3792 3829 res->rtyp =IDEAL_CMD; 3793 3830 res->data =finda(h1,q,d); 3831 return FALSE; 3794 3832 } 3795 3833 } 3796 3834 } 3797 return false;3835 return TRUE; 3798 3836 } 3799 3837 … … 3814 3852 res->rtyp =INTVEC_CMD; 3815 3853 res->data =gradedpiece1n(h1,p,q); 3816 3854 return FALSE; 3817 3855 } 3818 3856 } … … 3841 3879 res->rtyp =INTVEC_CMD; 3842 3880 res->data =gradedpiece1nl(h1,p,q,d); 3881 return FALSE; 3843 3882 } 3844 3883 } 3845 3884 } 3846 3885 } 3847 return false;3886 return TRUE; 3848 3887 } 3849 3888 … … 3864 3903 res->rtyp =IDEAL_CMD; 3865 3904 res->data =genst(h1,p,q); 3905 return FALSE; 3866 3906 } 3867 3907 } 3868 3908 } 3869 return false;3909 return TRUE; 3870 3910 } 3871 3911 … … 3886 3926 res->rtyp =INTVEC_CMD; 3887 3927 res->data =gradedpiece2n(h1,p,q); 3928 return FALSE; 3888 3929 } 3889 3930 } 3890 3931 } 3891 return false;3932 return TRUE; 3892 3933 } 3893 3934 … … 3908 3949 res->rtyp =INTVEC_CMD; 3909 3950 res->data =gradedpiece2nl(h1,p,q); 3951 return FALSE; 3910 3952 } 3911 3953 } 3912 3954 } 3913 return false;3955 return TRUE; 3914 3956 } 3915 3957 … … 3927 3969 std::vector<std::vector<int> > vecs=links(p,h1); 3928 3970 res->data =idMaken(vecs); 3971 return FALSE; 3929 3972 } 3930 3973 } 3931 return false;3974 return TRUE; 3932 3975 } 3933 3976 … … 3940 3983 res->rtyp =IDEAL_CMD; 3941 3984 res->data =IsSimplex(h1); 3942 } 3943 return false; 3985 return FALSE; 3986 } 3987 return TRUE; 3944 3988 } 3945 3989 … … 3960 4004 res->rtyp =IDEAL_CMD; 3961 4005 res->data =triangulations1(h1, p, d); 4006 return FALSE; 3962 4007 } 3963 4008 } 3964 4009 } 3965 return false;4010 return TRUE; 3966 4011 } 3967 4012 … … 3986 4031 res->rtyp =IDEAL_CMD; 3987 4032 res->data =triangulations2(h1,p,q,d); 4033 return FALSE; 3988 4034 } 3989 4035 } 3990 4036 } 3991 4037 } 3992 return false;4038 return TRUE; 3993 4039 } 3994 4040 … … 4017 4063 res->rtyp =IDEAL_CMD; 4018 4064 res->data =triangulations3(h1,p,q,g,d); 4065 return FALSE; 4019 4066 } 4020 4067 } … … 4022 4069 } 4023 4070 } 4024 return false;4071 return TRUE; 4025 4072 } 4026 4073 … … 4060 4107 std::vector<std::vector<int> > vecs=eli2(n,bset,gset); 4061 4108 res->data =Tmat(vecs); 4109 return FALSE; 4062 4110 } 4063 4111 } 4064 4112 } 4065 return false;4113 return TRUE; 4066 4114 } 4067 4115 … … 4074 4122 res->rtyp =IDEAL_CMD; 4075 4123 res->data =trisets(h1); 4076 } 4077 return false; 4124 return FALSE; 4125 } 4126 return TRUE; 4078 4127 } 4079 4128 … … 4090 4139 res->rtyp =INT_CMD; 4091 4140 res->data =(void *)(long)valency(h1,p); 4141 return FALSE; 4092 4142 } 4093 4143 } 4094 return false;4144 return TRUE; 4095 4145 } 4096 4146 … … 4113 4163 std::vector<int> pv=support1(p), qv=support1(q); 4114 4164 res->data =idMaken(Nabv(vecs,pv,qv)); 4165 return FALSE; 4115 4166 } 4116 4167 } 4117 4168 } 4118 return false;4169 return TRUE; 4119 4170 } 4120 4171 … … 4133 4184 { 4134 4185 poly q= (poly)h->Data(); 4135 res->rtyp =IDEAL_CMD;4136 4186 std::vector<std::vector<int> > vecs=supports(h1), sbv,tnbr; 4137 4187 std::vector<int> pv=support1(p), qv=support1(q); … … 4144 4194 tnbr.push_back(nvs[tnv[i]]); 4145 4195 } 4196 res->rtyp =IDEAL_CMD; 4146 4197 res->data =idMaken(tnbr); 4198 return FALSE; 4147 4199 } 4148 4200 } 4149 4201 } 4150 return false;4202 return TRUE; 4151 4203 } 4152 4204 … … 4161 4213 { 4162 4214 ideal h2= (ideal)h->Data(); 4215 std::vector<std::vector<int> > vs1=supports(h1), vs2=supports(h2); 4163 4216 res->rtyp =INT_CMD; 4164 std::vector<std::vector<int> > vs1=supports(h1), vs2=supports(h2);4165 4217 res->data =(void *)(long)(vsIntersection(vs1, vs2).size()); 4218 return FALSE; 4166 4219 } 4167 4220 } 4168 return false;4221 return TRUE; 4169 4222 } 4170 4223 … … 4185 4238 res->rtyp =IDEAL_CMD; 4186 4239 res->data =idMaken(Mabv(h1,p,q)); 4240 return FALSE; 4187 4241 } 4188 4242 } 4189 4243 } 4190 return false;4244 return TRUE; 4191 4245 } 4192 4246 … … 4219 4273 res->rtyp =IDEAL_CMD; 4220 4274 res->data =gens; 4275 return FALSE; 4221 4276 } 4222 4277 } 4223 4278 } 4224 return false;4279 return TRUE; 4225 4280 } 4226 4281 … … 4249 4304 res->rtyp =IDEAL_CMD; 4250 4305 res->data =idMaken(links_new(a, Xo, Sigma, vert, ord)); 4306 return FALSE; 4251 4307 } 4252 4308 } … … 4254 4310 } 4255 4311 } 4256 return false;4312 return TRUE; 4257 4313 } 4258 4314 … … 4269 4325 res->rtyp =INT_CMD; 4270 4326 res->data =(void *)(long)existIn(p, h1); 4327 return FALSE; 4271 4328 } 4272 4329 } 4273 return false;4330 return TRUE; 4274 4331 } 4275 4332 … … 4286 4343 res->rtyp =IDEAL_CMD; 4287 4344 res->data =idMaken(p_constant(h1,h2)); 4345 return FALSE; 4288 4346 } 4289 4347 } 4290 return false;4348 return TRUE; 4291 4349 } 4292 4350 … … 4299 4357 res->rtyp =IDEAL_CMD; 4300 4358 res->data =idMaken(p_change(h1)); 4301 } 4302 return false; 4359 return FALSE; 4360 } 4361 return TRUE; 4303 4362 } 4304 4363 … … 4315 4374 res->rtyp =IDEAL_CMD; 4316 4375 res->data =idMaken(p_new(h1,h2)); 4376 return FALSE; 4317 4377 } 4318 4378 } 4319 return false;4379 return TRUE; 4320 4380 } 4321 4381 … … 4328 4388 res->rtyp =INT_CMD; 4329 4389 res->data =(void *)(long)(support1(p).size()); 4330 } 4331 return false; 4390 return FALSE; 4391 } 4392 return TRUE; 4332 4393 } 4333 4394 … … 4340 4401 res->rtyp =IDEAL_CMD; 4341 4402 res->data =idMaken(bsubsets_1(p)); 4342 } 4343 return false; 4403 return FALSE; 4404 } 4405 return TRUE; 4344 4406 } 4345 4407 … … 4356 4418 res->rtyp =IDEAL_CMD; 4357 4419 res->data =idMinusp(h1, p); 4420 return FALSE; 4358 4421 } 4359 4422 } 4360 return false;4423 return TRUE; 4361 4424 } 4362 4425 … … 4376 4439 res->rtyp =IDEAL_CMD; 4377 4440 res->data =idMaken(re); 4441 return FALSE; 4378 4442 } 4379 4443 } 4380 return false;4444 return TRUE; 4381 4445 } 4382 4446 … … 4393 4457 res->rtyp =IDEAL_CMD; 4394 4458 res->data =c_New(h1, h2); 4459 return FALSE; 4395 4460 } 4396 4461 } 4397 return false;4462 return TRUE; 4398 4463 } 4399 4464 … … 4410 4475 res->rtyp =IDEAL_CMD; 4411 4476 res->data =idMaken(star(p, h1)); 4477 return FALSE; 4412 4478 } 4413 4479 } 4414 return false;4480 return TRUE; 4415 4481 } 4416 4482 … … 4427 4493 res->rtyp =IDEAL_CMD; 4428 4494 res->data =idMaken(stellarsub(p, h2)); 4495 return FALSE; 4429 4496 } 4430 4497 } 4431 return false;4498 return TRUE; 4432 4499 } 4433 4500 … … 4444 4511 res->rtyp =IDEAL_CMD; 4445 4512 res->data =idmodulo(h1, h2); 4513 return FALSE; 4446 4514 } 4447 4515 } 4448 return false;4516 return TRUE; 4449 4517 } 4450 4518 … … 4461 4529 res->rtyp =IDEAL_CMD; 4462 4530 res->data =idMinus(h1, h2); 4531 return FALSE; 4463 4532 } 4464 4533 } 4465 return false;4534 return TRUE; 4466 4535 } 4467 4536 … … 4486 4555 res->rtyp =INT_CMD; 4487 4556 res->data =(void *)(long)isoNum(p, h1, a, b); 4557 return FALSE; 4488 4558 } 4489 4559 } 4490 4560 } 4491 4561 } 4492 return false;4562 return TRUE; 4493 4563 } 4494 4564 … … 4521 4591 res->rtyp =INT_CMD; 4522 4592 res->data =(void *)(long)ifIso(p,q,f,g, a, b); 4593 return FALSE; 4523 4594 } 4524 4595 } … … 4527 4598 } 4528 4599 } 4529 return false;4600 return TRUE; 4530 4601 } 4531 4602 … … 4542 4613 res->rtyp =INT_CMD; 4543 4614 res->data =(void *)(long)redefinedeg( p, num); 4544 } 4545 } 4546 return false; 4615 return FALSE; 4616 } 4617 } 4618 return TRUE; 4547 4619 } 4548 4620 … … 4555 4627 res->rtyp =IDEAL_CMD; 4556 4628 res->data =complementsimplex(h1); 4557 } 4558 return false; 4629 return FALSE; 4630 } 4631 return TRUE; 4559 4632 } 4560 4633 … … 4567 4640 res->rtyp =INT_CMD; 4568 4641 res->data =(void *)(long)dim_sim(h1); 4569 } 4570 return false; 4642 return FALSE; 4643 } 4644 return TRUE; 4571 4645 } 4572 4646 … … 4583 4657 res->rtyp =INT_CMD; 4584 4658 res->data =(void *)(long)num4dim( h1, num); 4585 } 4586 } 4587 return false; 4659 return FALSE; 4660 } 4661 } 4662 return TRUE; 4588 4663 } 4589 4664
Note: See TracChangeset
for help on using the changeset viewer.