Changeset 56c1da in git


Ignore:
Timestamp:
Mar 15, 2018, 3:03:41 PM (5 years ago)
Author:
Karim Abou Zeid <karim23697@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
7e5164822dfad56a986d4d205e77a60f62611fc3
Parents:
8ff090c8caf331f456d841b4dfcae0dab86cc3d3
Message:
Add lpPrint()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/freegb.lib

    r8ff090 r56c1da  
    37323732}
    37333733
     3734proc lpPrint(ideal I, def @r)
     3735"USAGE: lpPrint(I, r); I an ideal, r a ring
     3736RETURN: list of strings
     3737PURPOSE: represent Letterplace ideal in the form of words
     3738ASSUME: - basering is a Letterplace ring, r is the commutative ring
     3739from which basering has been built
     3740EXAMPLE: example lpPrint; shows example
     3741"
     3742{
     3743        def save = basering;
     3744        lp2lstr(I,@r); // export an object called @code{@LN} to the ring r
     3745        setring @r;  // change to the ring r
     3746        list @L = lst2str(@LN,1);
     3747        export @L;
     3748        setring save;
     3749        list @@L = @L;
     3750        setring @r;
     3751        kill @L;
     3752        kill @LN;
     3753        setring save;
     3754        return(@@L);
     3755}
     3756example
     3757{
     3758 "EXAMPLE:"; echo = 2;
     3759 ring r = (0,a,b,g),(x,y),Dp;
     3760 def R = makeLetterplaceRing(4); // constructs a Letterplace ring
     3761 setring R; // downup algebra A
     3762 ideal J = x(1)*x(2)*y(3)-a*x(1)*y(2)*x(3) - b*y(1)*x(2)*x(3) - g*x(1),
     3763 x(1)*y(2)*y(3)-a*y(1)*x(2)*y(3) - b*y(1)*y(2)*x(3) - g*y(1);
     3764 list L = lpPrint(J,r);
     3765 L;
     3766}
     3767
    37343768/* THE FOLLOWING ARE UNDER DEVELOPMENT
    37353769// copied following from freegb_wrkcp.lib by Karim Abou Zeid on 07.04.2017:
Note: See TracChangeset for help on using the changeset viewer.