arithmetica-org/arithmetica

Bug: `simplify_arithmetic_expression('2^2^2^2^2^2',0,20)` outputs the wrong result

avighnac opened this issue · 0 comments

Bug:

Issue:

Version: 1.0.123 (current latest)

All three of these:

  • simplify_arithmetic_expression('2^2^2^2^2^2',0,20)
  • simplify_arithmetic_expression('2^2^2^2^2^2',1,20)
  • simplify_arithmetic_expression('2^2^2^2^2^2',2,20)

output '1' as their answer, while the real answer is an extremely huge number.

Steps to reproduce

main.py:

from arithmetica import simplify_arithmetic_expression

print(simplify_arithmetic_expression('2^2^2^2^2^2',0,20))
print(simplify_arithmetic_expression('2^2^2^2^2^2',1,20))
print(simplify_arithmetic_expression('2^2^2^2^2^2',2,20))

Tested output:

1
1
1