Source code for km3dq_grl.calc

#!/usr/bin/env python3
# -*- coding: utf-8 -*-


[docs] class Calculator:
[docs] def add(self, a, b): return a + b
[docs] def divide(self, a, b): if b == 0: raise ValueError("Undefined division for b=0") return a / b
[docs] def multiply(self, a, b): return a * b