Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Here's a function you can use which will keep simplifying until it can't any longer:

def simp(f):
    old = f.simplify_full()
    new = old.simplify_full()
    while 1:
       if hash(new) == hash(old):
           return old
       else:
           old = old.simplify_full()

Here's a function you can use which will keep simplifying until it can't any longer:

def simp(f):
    old = f.simplify_full()
f
    new = old.simplify_full()
    while 1:
        print 'Run!'
        if hash(new) == hash(old):
            return old
        else:
            old = old.simplify_full()
new
            new = new.simplify_full()

Here's a function you can use which will keep simplifying until it can't any longer:

def simp(f):
    old = f
    new = old.simplify_full()
    while 1:
        print 'Run!'
        if hash(new) == hash(old):
            return old
        else:
            old = new
            new = new.simplify_full()