This pull request introduces a new endpoint for exponentiation in the maths.py router. The endpoint takes two numbers, number1 and number2, and returns their exponentiation result (number1^number2).
Changes Made:
Added a new endpoint function exponentiation in maths.py.
Added a unit test in tests/test_api.py to ensure the correct calculation of exponentiation.
This feature enhances the mathematical capabilities of our API by supporting exponentiation operations.
This pull request introduces a new endpoint for exponentiation in the
maths.py
router. The endpoint takes two numbers,number1
andnumber2
, and returns their exponentiation result (number1
^number2
).Changes Made:
exponentiation
inmaths.py
.tests/test_api.py
to ensure the correct calculation of exponentiation.This feature enhances the mathematical capabilities of our API by supporting exponentiation operations.