Question: Write a program that uses the Taylor series to solve the In(x) function using the formula below. Next, use the In(x) function that was

Write a program that uses the Taylor series to solve the In(x) function using the formula below. Next, use

Write a program that uses the Taylor series to solve the In(x) function using the formula below. Next, use the In(x) function that was created to determine log10(), In(), and custom log() for positive real numbers of x. Output the solution as a step-by-step output to the screen. 1x106 In(x) = 2 [2k+1(x+1) (x- The formula will calculate In(x) for any real number x > 0. k=0 The program must fulfil these requirements: All real numbers used must be double variable type. The maximum number of iteration for the formula is set at 1e6. Calculation must stop when the result is within 1e-7 of the actual value. Functions log10 () and log() in math.h ARE NOT allowed to be used! Examples: Choose [1] log10 (x), [2] ln(x), [3] custom log(x): 1 Enter value of x: 342042 log10( 342042.000000) log10 ( 100000.000000) + log10 ( 3.420420) 4.998213 +0.534079 5.532293 Choose [1] log10 (x), [2] ln(x), [3] custom Log (x): 2 Enter value of x: 217 ln( 217.000000) = ln 100.000000) + In( 2.170000) 4.605166+ 0.774727 5.379893 2k+1 Choose [1] log10 (x), [2] ln(x), [3] custom log(x): 3 Enter value of x: 7895 Enter custom log base: 7 log7( 7895.000000) = log7( 1000.000000) + log7( 7.895000) 3.549861+ 1.061832 = 4.611693

Step by Step Solution

3.45 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Source code include include include using namespace ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!