NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Find Pi via Monte Carlo Method

VERSION 2

Created on: Feb 13, 2009 11:14 AM by Steven Zittrower - Last Modified:  Mar 6, 2009 5:04 PM by Steven Zittrower

This program calculates an approximation for the value of pi by plotting a circle on a 200x200 square area then randomly placing dots on this area. By calculating the ratio of points that fall inside versus the number of points that fall outside the circle the value for pi is approximated.

 

find_pi.png

find_pi_diagram.png

 

Downloads:
Average User Rating
(0 ratings)




There are no comments on this document

More Like This

  • Retrieving data ...