Skip to content

Update basic_math.py#30

Open
abhiram-kadarla wants to merge 1 commit intomuskankhedia:mainfrom
abhiram-kadarla:patch-1
Open

Update basic_math.py#30
abhiram-kadarla wants to merge 1 commit intomuskankhedia:mainfrom
abhiram-kadarla:patch-1

Conversation

@abhiram-kadarla
Copy link

Title: Implemented power() and square_root() functions

Description:

  • Implemented the power() function without using ** or pow().
  • Added support for positive, negative, and zero exponents.
  • Implemented square_root() using Newton's method.
  • Added error handling for negative inputs.

This completes the TODO implementations in the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant