We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b55ab4a commit 5d086f6Copy full SHA for 5d086f6
visma/io/tokenize.py
@@ -68,7 +68,7 @@ def getTerms(eqn):
68
terms = []
69
while x < len(eqn):
70
71
- if ('a' <= eqn[x] <= 'z') or ('A' <= eqn[x] <= 'Z') or eqn[x] in greek:
+ if ('a' <= eqn[x] <= 'z') or ('A' <= eqn[x] <= 'Z') or eqn[x] in greek or eqn[x] in constants:
72
73
buf = eqn[x]
74
if x + 3 < len(eqn):
@@ -103,6 +103,10 @@ def getTerms(eqn):
103
terms.append("exp")
104
x += 1
105
continue
106
+ elif eqn[x] ==constants[0]:
107
+ terms.append(str(math.pi))
108
+ x += 1
109
+ continue
110
elif eqn[x] == 'i':
111
terms.append("iota")
112
0 commit comments