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

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

답변 (0개)

이 질문은 마감되었습니다.

질문:

2013년 10월 23일

마감:

2013년 10월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by