Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- raw_equation = self.equationLineEdit.text().replace("=0", "").replace("= 0", "").replace("e^", r"\exp(")
- # Fix exp (Add missing closing bracket)
- pos = raw_equation.find(r'\exp(')
- raw_equation = raw_equation[:pos] + raw_equation[pos:len(r'\exp(') + 2] + ")" + raw_equation[ pos + len(r'\exp(') + 1:]
Add Comment
Please, Sign In to add comment