From 0f4e91734af2e1c4a596e4386607146f75e93495 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Thu, 9 Jul 2026 01:02:11 +0000 Subject: [PATCH] Design Architecture for Utility Functions (iss-1ac610bafd4c) --- utils/math_utils.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 utils/math_utils.py diff --git a/utils/math_utils.py b/utils/math_utils.py new file mode 100644 index 0000000..d8fe83c --- /dev/null +++ b/utils/math_utils.py @@ -0,0 +1,20 @@ +def add(a, b): + """Returns the sum of two numbers.""" + return a + b + + +def subtract(a, b): + """Returns the difference of two numbers.""" + return a - b + + +def multiply(a, b): + """Returns the product of two numbers.""" + return a * b + + +def divide(a, b): + """Returns the quotient of two numbers. Raises ValueError on division by zero.""" + if b == 0: + raise ValueError('Cannot divide by zero') + return a / b \ No newline at end of file