You are on page 1of 1

Lab 3: MPI

Name: Petchpragai Tanpoonkiat ID: 5888223 Sec: 3

Rename the file to lab3_59xxxxxx.pdf

Part 1. “Pi calculation”: try with different number of intervals and number of processes

Result from the 1st try: with 1 intervals and 2 processes

pi is approximately 3.2000000000000002, Error is 0.0584073464102071

Result from the 2nd try: with 2 intervals and 2 processes

pi is approximately 3.1623529411764704, Error is 0.0207602875866773

Result from the 3rd try: with 3 intervals and 2 processes

pi is approximately 3.1508492098656031, Error is 0.0092565562758100

Part 2. integersum.c

Modified source coded:

Screenshot of the Result(s):

You might also like