Changeset ce136a in git for Singular/LIB


Ignore:
Timestamp:
Oct 7, 2010, 10:12:44 AM (14 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
7f92483afbf40d1080656112033d0ec8b61f45ea
Parents:
c623f27a32f02de0d7ead75173d5d8ccb44885c6
Message:
update by Wolfram

git-svn-id: file:///usr/local/Singular/svn/trunk@13406 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/paraplanecurves.lib

    rc623f27 rce136a  
    1212OVERVIEW:
    1313
    14 Suppose C = {f(x,y,z)=0} is a rational plane curve, where f is homogeneous
    15 of degree n with coefficients in Q and absolutely irreducible (these
     14Suppose C = {f(x,y,z)=0} is a rational plane curve, where f is homogeneous 
     15of degree n with coefficients in Q and absolutely irreducible (these 
    1616conditions are checked automatically.) @*
    1717After a first step, realized by a projective automorphism in the procedure
     
    2323and y as algebraic and computes an integral basis in C(x)[y] of the integral
    2424closure of C[x] in C(x,y) using the  normalization algorithm from
    25 @ref{normal_lib}: see @ref{integralbasis_lib}. In a future edition of the
    26 library, also van Hoeij's algorithm for computing the integral basis will
     25@ref{normal.lib}: see @ref{integralbasis.lib}. In a future edition of the
     26library, also van Hoeij's algorithm for computing the integral basis will 
    2727be available. @*
    2828From the integral basis, the adjoint ideal is obtained by linear algebra.
     
    107107NOTE:   The procedure might fail or give a wrong output if phi does
    108108        not define a birational map.
    109 RETURN: ring, the coordinate ring of P, with an ideal named J and an ideal
     109RETURN: ring, the coordinate ring of P, with an ideal named J and an ideal 
    110110        named psi.@*
    111111        The ideal J defines the image of phi.@*
     
    192192
    193193example
    194 { "EXAMPLE:"; echo=2;
     194{ "EXAMPLE:";
    195195  ring R = 0,(x,y,z),dp;
    196196  poly f = y^8-x^3*(z+x)^5;
     
    248248Considering C in the chart z<>0, the algorithm regards x as transcendental
    249249and y as algebraic and computes an integral basis in C(x)[y] of the integral
    250 closure of C[x] in C(x,y) using the normalization algorithm from @ref{normal_lib}:
    251 see @ref{integralbasis_lib}. In a future edition of the library, also van Hoeij's
     250closure of C[x] in C(x,y) using the normalization algorithm from @ref{normal.lib}:
     251see @ref{integralbasis.lib}. In a future edition of the library, also van Hoeij's
    252252algorithm for computing the integral basis will be available. @*
    253253From the integral basis, the adjoint ideal is obtained by linear algebra.
     
    379379
    380380example
    381 { "EXAMPLE:"; echo=2;
     381{ "EXAMPLE:";
    382382  ring R = 0,(x,y,z),dp;
    383383  poly f1 = 1/2*x^5+x^2*y*z^2+x^3*y*z+1/2*x*y^2*z^2-2*x*y^3*z+y^5;
     
    450450transcendental and y as algebraic and computes an integral basis in C(x)[y] of
    451451the integral closure of C[x] in C(x,y) using the normalization algorithm
    452 from @ref{normal_lib}: see @ref{integralbasis_lib}. In a future edition of the library,
     452from @ref{normal.lib}: see @ref{integralbasis.lib}. In a future edition of the library,
    453453also van Hoeij's algorithm for computing the integral basis will be available.@*
    454454From the integral basis, the adjoint ideal is obtained by linear algebra.
     
    549549
    550550example
    551 { "EXAMPLE:"; echo=2;
     551{ "EXAMPLE:";
    552552  ring R = 0,(x,y,z),dp;
    553553  poly f = y^8-x^3*(z+x)^5;
     
    594594      return(imap(RP2,AI));
    595595    }
    596   ideal B;
    597596  list LL = geomGenusLA(f);  // local analysis of singularities
    598597  int sizeLL2 = size(LL[2]);
     
    607606      return(ideal(1));
    608607    }
    609   int k;
     608  int j,k;
    610609  list rl = ringlist(RP2);
    611610  rl[2] = list(var(1), var(2));
    612611  rl[3] = list(list("dp",1:2),list("C",0));
    613612  def Rdummy = ring(rl);
    614   setring Rdummy;
    615613  ideal B;
    616614  if(sizeLL3==0){B = 1;} // no ordinary multiple points
     
    619617                               // (other than nodes)
    620618    {
     619      setring Rdummy;
    621620      list OMP = imap(RP2,LL3);
    622621      int ub;
     
    646645     int i = ub;
    647646     setring RP2;
     647     for(k=lb;k<=ub;k++)
     648       {
     649         ideal A(k) = homog(std(fetch(Rdummy,A(k))),var(3));
     650       }
    648651     B = maxideal(n-i);
    649      B = subst(B,var(3),1);
    650      B[1] = 0;
    651      setring Rdummy;
    652      B = imap(RP2,B);
    653652     ideal A;
    654653     while(i>=lb)
    655654        {
    656655          A = A(i)**(i-1);
     656          j=1;
     657          while(j<=ncols(A))
     658            {
     659              if(deg(A[j]>(n-2)))
     660                {
     661                  A = sat(A, maxideal(1))[1];
     662                  break;
     663                 }
     664              j = j+1;
     665            } 
    657666          B = intersect(B,A);
    658667          i = i-1;
    659668       }
    660669    }  //end else
    661   ideal LL4 = imap(RP2,LL4);
    662   B = intersect(B,LL4);  // take nodes and cusps into account
     670  B = intersect(B,homog(std(LL4),var(3)));  // add nodes and cusps
    663671  if(sizeLL2==0)  // ordinary multiple points plus cusps only
    664672    {
    665       setring RP2;
    666       ideal AI = imap(Rdummy, B);
    667       AI = homog(std(AI),var(3));
    668       AI = sat(AI, maxideal(1))[1];
     673      ideal AI = sat(B, maxideal(1))[1];
    669674      AI = minbase(AI);
    670675      setring Roriginal;
    671676      return(imap(RP2,AI));
    672677    }
     678  setring Rdummy;
    673679  poly f = imap(RP2,dhf);
    674680  ideal SL = jacob(f),f;
    675   SL = sat(SL, LL4)[1];
     681  SL = sat(SL, fetch(RP2,LL4))[1];
    676682  if(sizeLL3!=0)
    677683    {
     
    685691  int pd = size(PD);
    686692  setring RP2;
    687   B = imap(Rdummy,B);
    688693  list PD = imap(Rdummy,PD);
    689694  ideal AI = 1;
     
    693698                                                 size(choices))));
    694699    }
     700  AI = homog(std(AI),var(3));
    695701  AI = intersect(AI,B);
    696   AI = homog(std(AI),var(3));
    697702  AI = sat(AI, maxideal(1))[1];
    698703  AI = minbase(AI);
     
    884889
    885890example
    886 { "EXAMPLE:"; echo=2;
     891{ "EXAMPLE:";
    887892  ring R = 0,(x,y,z),dp;
    888893  poly f = y^8-x^3*(z+x)^5;
     
    896901proc rncAntiCanonicalMap(ideal I)
    897902"USAGE:  rncAntiCanonicalMap(I); I ideal
    898 ASSUME:  I is a homogeneous ideal in the basering
     903ASSUME:  I is a homogeneous ideal in the basering 
    899904         defining a rational normal curve C in PP^n.
    900905NOTE:   The procedure will fail or give a wrong output if I is not the
     
    926931
    927932example
    928 { "EXAMPLE:"; echo=2;
     933{ "EXAMPLE:";
    929934  ring R = 0,(x,y,z),dp;
    930935  poly f = y^8-x^3*(z+x)^5;
     
    940945proc rncItProjOdd(ideal I)
    941946"USAGE:  rncItProjOdd(I); I ideal
    942 ASSUME:  I is a homogeneous ideal in the basering with n+1 variables
     947ASSUME:  I is a homogeneous ideal in the basering with n+1 variables 
    943948         defining a rational normal curve C in PP^n with n odd.
    944949NOTE:    The procedure will fail or give a wrong output if I is not the
     
    10371042
    10381043example
    1039 { "EXAMPLE:"; echo=2;
     1044{ "EXAMPLE:";
    10401045  ring R = 0,(x,y,z),dp;
    10411046  poly f = -x7-10x5y2-10x4y3-3x3y4+8x2y5+7xy6+11y7+3x6+10x5y +30x4y2
     
    10541059proc rncItProjEven(ideal I)
    10551060"USAGE:  rncItProjEven(I); I ideal
    1056 ASSUME:  I is a homogeneous ideal in the basering with n+1 variables
     1061ASSUME:  I is a homogeneous ideal in the basering with n+1 variables 
    10571062         defining a rational normal curve C in PP^n with n even.
    10581063NOTE:    The procedure will fail or give a wrong output if I is not the
    10591064         ideal of a rational normal curve. It will test whether n is odd.
    10601065RETURN:  ring with an ideal CONIC defining a conic C2 in PP^2.@*
    1061          In addition, an ideal PHI in the basering defining an isomorphic
     1066         In addition, an ideal PHI in the basering defining an isomorphic 
    10621067         projection of C to C2 will be exported.@*
    10631068         Note that the entries of PHI should be considered as
     
    11571162
    11581163example
    1159 { "EXAMPLE:"; echo=2;
     1164{ "EXAMPLE:";
    11601165  ring R = 0,(x,y,z),dp;
    11611166  poly f = y^8-x^3*(z+x)^5;
     
    16961701}
    16971702example
    1698 { "EXAMPLE:"; echo=2;
     1703{ "EXAMPLE:";
    16991704  ring R = 0,(x,y,z),dp;
    17001705  poly f = y^8-x^3*(z+x)^5;
     
    20702075  bigint g = gcd(b_r, c_r);
    20712076  ideal mi = maxideal(1);
    2072   def S=basering;
    20732077  map mm = basering, mi; map mTemp;
    20742078  mm[1] = var(1); mm[2] = var(2)/b_s/g; mm[3] = var(3)/c_s/g;
     
    23142318
    23152319example
    2316 { "EXAMPLE:"; echo=2;
     2320{ "EXAMPLE:";
    23172321  ring r = 0, (x,y,z, u, v, w), dp;
    23182322  poly p = x^2 + 2*y^2 + 5*z^2 - 4*x*y + 3*x*z + 17*y*z;
     
    25102514
    25112515example
    2512 { "EXAMPLE:"; echo=2;
     2516{ "EXAMPLE:";
    25132517ring R = 0, (x,y,z), dp;
    25142518system("random", 4711);
     
    25322536RETURN: int which is 1 if PARA defines a parametrization of the curve
    25332537        {f=0} and 0, otherwise.
    2534 THEORY: We compute the polynomial defining the image of PARA
     2538THEORY: We compute the polynomial defining the image of PARA 
    25352539        and compare it with f.
    25362540KEYWORDS: Parametrization, image.
     
    25722576
    25732577example
    2574 { "EXAMPLE:"; echo=2;
     2578{ "EXAMPLE:";
    25752579  ring R = 0,(x,y,z),dp;
    25762580  poly f = y^8-x^3*(z+x)^5;
     
    26102614
    26112615example
    2612 { "EXAMPLE:"; echo=2;
     2616{ "EXAMPLE:";
    26132617 ring R = 0, (x,y,z), dp;
    26142618 system("random", 4711);
     
    27792783adjointIdeal(f,1);
    27802784adjointIdeal(f,2);
    2781 def RP1 = paraPlaneCurve(f);  // time 5
     2785def RP1 = paraPlaneCurve(f);  // time 14
    27822786testParametrization(f,RP1);
    27832787setring RP1; PARA;
     
    29072911else
    29082912{ "point does not lie on conic"; }
     2913kill R;kill S;
    29092914// -------------------------------------------------------
    29102915// Example 21
     
    29192924else
    29202925{ "point does not lie on conic"; }
     2926kill R;kill S;
     2927// -------------------------------------------------------
     2928// Example 21
     2929// -------------------------------------------------------
     2930ring RR = 0, (x,y,z), dp;
     2931poly f = -1965466244509920x5y+34871245546721380061760x4y2;
     2932f = f+104613747941595046117320x3y3+113331564241941002407560x2y4;
     2933f = f+52306876673313609259800xy5+8717812860780028397880y6;
     2934f = f+1040297748510024x5z+4468147845634872x4yz;
     2935f = f-22398508728211453743258x3y2z-33223996581074443306854x2y3z;
     2936f = f-10638598235041298082366xy4z+186886189971594356382y5z;
     2937f = f-1385078844909312x4z2-34893092731637052532683x3yz2;
     2938f = f-98591463214095439056609x2y2z2-92339459334829609336485xy3z2;
     2939f = f-24923289542522905755711y4z2+472440640471377x3z3;
     2940f = f+33821511925664516716011x2yz3+49745237303968344397437xy2z3;
     2941f = f+11040465960074786720475y3z3+8728735735878837099404x2z4;
     2942f = f+17676785754519678518537xyz4+17935885079051421934609y2z4;
     2943f = f-11314701999743172607075xz5-16164284825803158969425yz5;
     2944f = f+3666695988537425618750z6;
     2945// 4 nodes, 1 OMP of mult 4
     2946adjointIdeal(f,2);
     2947kill RR;
    29212948*/
Note: See TracChangeset for help on using the changeset viewer.