farizrahman4u / loopgpt

Modular Auto-GPT Framework
MIT License
1.43k stars 131 forks source link

Add algebra solver #36

Open swapneils opened 1 year ago

swapneils commented 1 year ago

An algebra solver seems like an essential addition to a library of core math functions, not to mention I came across the idea by trying to get something solved and learning that "evaluate_math" was actually "evaluate_arithmetic".

EvaluateAlgebra is based on sympy. It uses the parse_expr method to process strings, so (unlike the sympify approach) it shouldn't pose a risk if the system generates bad outputs.