Publications
User Guide
Reference documentation
sisl
sisl.geom
sisl.physics
sisl.io
sisl.constant
sisl.unit
sisl.shape
sisl.utils
sisl.utils.
math_eval
Evaluate a mathematical expression using a safe evaluation method
the string to be evaluated using math
Examples
>>> math_eval('2^6') 4 >>> math_eval('2**6') 64 >>> math_eval('1 + 2*3**(4^5) / (6 + -7)') -5.0