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; /******************************************************/ ...
Get Build Supercomputers with Raspberry Pi 3 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.