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.

Answers (0)

This question is closed.

Asked:

on 23 Oct 2013

Closed:

on 23 Oct 2013

Community Treasure Hunt

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

Start Hunting!