You are coding a math utility by using Python. You are writing a function to compute roots. The function must meet the following requirements:
• If a is non-negative, return a ** (1 / b)
• If a is negative and even, return 'Result is an imaginary number'
• If a is negaitve and odd, return -(-a) ** (1 / b)
Which of the following functions meets the requirements?
mldprasad
2 days agoCristinaDev
1 month, 3 weeks ago