USING PYTHON: Make a function called myRoot, that accepts two parameters, a number and the root of that number you desir

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

USING PYTHON: Make a function called myRoot, that accepts two parameters, a number and the root of that number you desir

Post by answerhappygod »

USING PYTHON:
Make a function called myRoot, that accepts two parameters, anumber and the root of that number you desire as a return value(Use integers, you can avoid negatives and fractions). Forexample:
To get the cube root of 512 (it's 8) I would call -myRoot(512,3)
For the 4th root of 16 (2), myRoot(16,4), etc.
Using this function tell me what the 12th root of 12,345 is in acomment at the base of the code.
(Hint: read the math module documentation for a function to helpyou do this or feel free to do it yourself)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply