LemaireEmilien / calculator-cucumber-2024

This repository is used for teaching purposes at the University of Mons. It contains Java code for computing arithmetic expressions. The code uses design patterns and is accompanied with JavaDoc, unit tests and BDD scenarios. We have also paid particular attention to code quality.
0 stars 0 forks source link

[FEATURE] More kinds of arithmetic operations #19

Closed Super-JK closed 5 months ago

Super-JK commented 7 months ago

Describe the new functionality you would like to see The current calculator is too basic, since it only provides support for +, *, / and -. Many other types of mathematical operations are useful and needed for a full-fledged calculator. To get more inspiration for other types of operations one can also look at what typical scientific calculator machines provide. One could for example rely on java.lang.Math to implement other basic numeric operations, such as the power function, exponential, logarithm, square root, and all trigonometric functions (sin, cos, tan, their inverses and more). Which types of operations to provide will depend on the types of numbers supported by the calculator.