Question: This is python3 and using visual studio code. Please help! Problem 3: Computing Logarithms (15 pts) We can approximate the natural logarithm In(z) of a
This is python3 and using visual studio code. Please help!
Problem 3: Computing Logarithms (15 pts) We can approximate the natural logarithm In(z) of a number z (recall natural log is log base e) by using the following infinite series: in(z) = 26 (+36) + f() +..) Use the above formula to write a function naturallog() that takes two inputs, the number z and a number of terms num_terms and uses the above formula to give an approximation to In(z) using num_terms terms. Your function should return a floating point number. HINT: Use the math module to test your approximation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
