You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a one quick fix for this but will always return float as output for '^' operator.
importmathfrompy_expression_evalimportParserparser=Parser()
parser.ops2['**'] =math.powparser.ops2['^'] =math.powparser.parse("2^99999999").evaluate({})
# This will causeOverflowError: mathrangeerror
e.g.:
2 ^ 999999999999999999999999999999999999
The text was updated successfully, but these errors were encountered: