File Exchange

image thumbnail

Calculate pi

version 1.0.0 (1.51 KB) by Jonas Lundgren
Calculate decimals of pi with Machin's formula

4 Downloads

Updated 16 Apr 2019

View License

MACHIN(M) gives a string with pi truncated to M decimals
using Machin's formula: pi = 16*acot(5) - 4*acot(239)

Cite As

Jonas Lundgren (2019). Calculate pi (https://www.mathworks.com/matlabcentral/fileexchange/71224-calculate-pi), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
pi

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor