How to use the Calculator

The following example shows how to use the Calculator class.

from km3dq_grl import Calculator

Initialising a Calculator

Initialising is a simple as this:

calc = Calculator()

Adding numbers

You can add two numbers by calling the .add(a, b) method:

print(calc.add(5, 23))
28

Total running time of the script: (0 minutes 0.006 seconds)

Gallery generated by Sphinx-Gallery