MPI Taylor series ln(x) function
The Taylor series formula for the ln(x)
function is as follows:
Write, compile, and run this Serial ln(x) code
(see the following screenshot, which shows Serial ln(x) code
) to get a feel of the program:
/********************************* * Serial ln(x) code. * * * * Taylor series representation * * of the trigonometric ln(x). * * * * Author: Carlos R. Morrison * * * * Date: 1/10/2017 * *********************************/ #include <math.h> #include <stdio.h> int main(void) { Unsigned int n; Unsigned long int k; double A,B,C; double sum=0; long int num_loops; float x,y; /******************************************************/ printf("\n"); printf("\n"); printf("Enter the number of iterations:\n"); printf("\n"); scanf...