Differences between revisions 3 and 4
Revision 3 as of 2008-05-07 13:34:44
Size: 721
Editor: schilly
Comment:
Revision 4 as of 2008-05-13 05:50:55
Size: 744
Editor: was
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:

[[TableOfContents]]

Sage Interactions - Algebra

goto [:interact:interact main page]

TableOfContents

Groebner fan of an ideal

by Marshall Hampton; (needs sage-2.11 or higher, with gfan-0.3 interface)

@interact
def gfan_browse(p1 = input_box('x^3+y^2',type = str, label='polynomial 1: '), p2 = input_box('y^3+z^2',type = str, label='polynomial 2: '), p3 = input_box('z^3+x^2',type = str, label='polynomial 3: ')):
    R.<x,y,z> = PolynomialRing(QQ,3)
    i1 = ideal(R(p1),R(p2),R(p3))
    gf1 = i1.groebner_fan()
    testr = gf1.render()    
    html('Groebner fan of the ideal generated by: ' + str(p1) + ', ' + str(p2) + ', ' + str(p3))
    show(testr, axes = False, figsize=[8,8*(3^(.5))/2])

attachment:gfan_interact.png

interact/algebra (last edited 2019-04-06 06:18:49 by chapoton)