Question: Logarithms of negative values are imaginary numbers. Write a script to report the log10 of a given value. For positive numbers, use the normal log10
Logarithms of negative values are imaginary numbers. Write a script to report the log10 of a given value. For positive numbers, use the normal log10 function. For negative numbers, use the log10 function that gives answers as imaginary numbers. NOTE: Log10 of 0 is undefined. Be sure to handle an input of 0 appropriately.
This is in python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
