Input

Action

Result

Run the tool to see the result.

How to use

Choose a formula and enter A and B. Zero denominators are rejected.