Write a function madhavapi.m that takes N as input and returns an approximation for pi.

I am trying to write a function that takes N as an input and returns an approximation for pi by using the following equation that Madhava developed. Please help with step by step equation and/or code and/or explanation.

4 Kommentare

g series by transforming the original infinite series of π, obtaining the infinite series \pi = \sqrt{12}\left(1-{1\over 3\cdot3}+{1\over5\cdot 3^2}-{1\over7\cdot 3^3}+\cdots\right)
its the he original infinite series of π, obtaining the infinite series

Antworten (0)

Diese Frage ist geschlossen.

Gefragt:

am 23 Okt. 2013

Geschlossen:

am 23 Okt. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by