Question: TASK 2 : Calculating Pi using Leibniz formula and multithreading ( 1 5 % - 1 0 0 marks ) The Leibniz formula is an
TASK : Calculating Pi using Leibniz formula and multithreading marks
The Leibniz formula is an infinite series method of calculating Pi The formula is a very simple way of
calculating Pi however, it takes a large amount of iterations to produce a low precision value of
This task requires a large amount of computation and therefore it is vital that you use multithreading
to speed up the program. Below is the Leibniz formula:
As the series can be iterated infinite number of times, your program should allow the user to take in
inputs; the first is the number of iterations and the second is the number of threads the user would
like to use. This means that the slicing of workload needs to be dynamic.
Calculating Pi using Leibniz formula marks
Using multithreading with appropriate slicing marks
Correct value of Pi printed out depending on iteration count marks in c programming
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
