¡@

Home 

python Programming Glossary: addop

Safe way to parse user-supplied mathematical formula in Python

http://stackoverflow.com/questions/11951701/safe-way-to-parse-user-supplied-mathematical-formula-in-python

'unary ' def __init__ self expop '^' multop ' ' ' ' addop ' ' ' ' integer ' ' ' ' '0'..'9' atom PI E real fn ' ' expr.. atom expop factor term factor multop factor expr term addop term point pyp.Literal . e pyp.CaselessLiteral E fnumber pyp.Combine.. lpar pyp.Literal .suppress rpar pyp.Literal .suppress addop plus minus multop mult div expop pyp.Literal ^ pi pyp.CaselessLiteral..

Evaluating a mathematical expression in a string

http://stackoverflow.com/questions/2371436/evaluating-a-mathematical-expression-in-a-string

'unary ' def __init__ self expop '^' multop ' ' ' ' addop ' ' ' ' integer ' ' ' ' '0'..'9' atom PI E real fn ' ' expr.. atom expop factor term factor multop factor expr term addop term point Literal . e CaselessLiteral E fnumber Combine Word.. div Literal lpar Literal .suppress rpar Literal .suppress addop plus minus multop mult div expop Literal ^ pi CaselessLiteral..