Mercerenies / fifi-calculator

1 stars 0 forks source link

Immediate evaluators #128

Closed Mercerenies closed 1 week ago

Mercerenies commented 1 week ago

A lot of our simplifications create expressions and then rely on the function evaluator to simplify them. This creates awkward loops and dependencies in our simplifier system, and in principle it would be nice if the individual simplifications could handle simple cases for us.

So I propose a very simple evaluation engine capable ONLY of doing arithmetic on real-numbered constants. Incredibly simple engine by design, that can be invoked during simplification phases to deal with easy cases.

Mercerenies commented 1 week ago

Written by 94567e8, fully integrated by 56dd589. Closing issue.