'Return a list of the term names in the formula. These
are the names of each term instance in self.'

def termnames(self):

    names = []
    for term in self.terms:
        names += [term.termname]
    return names
