Hi.
I'd like to manage situation, when the formula, which I'd like to process
has syntax error.
I tryied to use *try except* blocks, but its doesn't work, how can I
achieve it?
#!/usr/bin/python3
from sympy import *
x = Symbol('x')
try:
val_1 = x*sin(x)**2+x*cos(x)**2*
except SyntaxError:
print('SyntaxError')
except:
print('OtherError')
Thanks
Mike
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/8bc17df9-fd5e-4b74-bcf1-c5dc145f5fb1n%40googlegroups.com.