lukejagg / test-canary

Miscellaneous files for ML + web development
0 stars 1 forks source link

Add new exponent function and integrate into calculator #202

Closed ghost closed 1 year ago

ghost commented 1 year ago

Description

This PR adds a new function to calculate the exponent of two numbers and integrates it into the existing calculator function. The new exponent function takes two arguments, the base and the exponent, and returns the result of the base raised to the power of the exponent. The calculator function has been updated to include a new operation choice for exponentiation and handles the user's choice to perform the exponent operation.

Summary of Changes

Fixes #1.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/add-exponent-function_1

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.