تفاصيل العمل

This project implements a Monte Carlo simulation to estimate the value of π (pi) using both sequential and parallel approaches. The Monte Carlo method generates random points within a unit square and determines what fraction falls within an inscribed quarter circle. The ratio of points inside the circle to total points, multiplied by 4, approximates π.

Mathematical Background

The Monte Carlo method for π estimation:

Generate random points (x, y) where 0 ≤ x, y ≤ 1

Check if point lies inside quarter circle: x² + y² ≤ 1

Estimate: π ≈ 4 × (points inside circle) / (total points)

بطاقة العمل

اسم المستقل
عدد الإعجابات
0
عدد المشاهدات
1
تاريخ الإضافة
تاريخ الإنجاز
المهارات