image thumbnail

Pi

version 1.0.0.0 (1.15 KB) by Praveen Ranganath
This code computes approximate value of Pi

317 Downloads

Updated 26 Aug 2014

View License

This code computes the approximate value of Pi using Monte-Carlo simulations that depends on the number of iterations and the number of points chosen.
The radius is a variable and calculated from the origin.

Cite As

Praveen Ranganath (2021). Pi (https://www.mathworks.com/matlabcentral/fileexchange/47641-pi), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!