make variables sympy Symbols + more general names
This commit is contained in:
parent
7a73554525
commit
fc6be7b80b
2 changed files with 6 additions and 4 deletions
2
stl.py
2
stl.py
|
|
@ -31,7 +31,7 @@ class LinEq(namedtuple("LinEquality", ["terms", "op", "const"])):
|
|||
class Var(namedtuple("Var", ["kind", "id", "time"])):
|
||||
def __repr__(self):
|
||||
time_str = "[{}]".format(self.time)
|
||||
return "{k}{i}{t}".format(k=self.kind.name, i=self.id, t=time_str)
|
||||
return "{i}{t}".format(k=self.kind.name, i=self.id, t=time_str)
|
||||
|
||||
|
||||
class Term(namedtuple("Term", ["coeff", "var"])):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue