PiSwift 4+

Richard Loda

iPad용으로 디자인됨

    • 5.0 • 1개의 평가
    • 무료

스크린샷

설명

PiSwift uses the Monte Carlo method to approximate the value of pi.

A circle inscribed in a square of area 1 has an area of pi x r2 = pi / 4. Thus the ratio of the number of random points landing in the circle to the number of total points in the square, times 4, approximates pi.

This app generates a total number of random points ranging over seven orders of magnitude. It enables the user to see the value of pi evolve through plots of pi, and delta, the percentage difference between the calculated pi value and the value of pi stored in the computer. It also presents a scatter plot of sampled points to aid in visualizing the process, and calculates how long it takes for your device to generate the random points and do the calculation.

It’s not the fastest, most accurate or most sophisticated method known to approximate pi, but it is fun to watch the value of pi “evolve” as more random points are used, and observe how few points are needed to come close to the actual value.

INSTRUCTIONS:

Load app, choose number of points with stepper, press Calculate Pi.
Main screen scatter plot presents 100 sampled points of equally spaced data (see below).
Press Graph button to observe the evolution of pi or delta (toggle) in graphical form.
Double tap gesture changes the origin of the graph, pan moves the graph.
Pinch gesture at greater than 45 degrees scales the Y axis, and at less than 45 degrees scales the X axis (independently).
Stepper in Graph view allows for the independent scaling of delta (Y axis, to x200).

USAGE TIPS:

Start with a low number of points to initially see how long your iOS device takes to perform the calculation.
Use that number to predict the time required for a larger number of points (older devices take many minutes for upper limits).
Graph shows values of pi or delta after the sampling interval. If Log10 points = 2, pi or delta are calculated after every point. If Log10 points = 3, pi or delta are calculated every 10 points. If Log10 points = 4, it calculates values every 100 points, etc.
If you dislike your graph adjustments, toggling the Back/Graph button resets the graph to original values, without re-calculating pi.

새로운 기능

버전 1.2

Fixed a bug in graphics routine.

평가 및 리뷰

5.0/5
1개의 평가

1개의 평가

앱이 수집하는 개인정보

Richard Loda 개발자가 아래 설명된 데이터 처리 방식이 앱의 개인정보 처리방침에 포함되어 있을 수 있다고 표시했습니다. 자세한 내용은 개발자의 개인정보 처리방침을 참조하십시오.

데이터가 수집되지 않음

개발자가 이 앱에서 데이터를 수집하지 않습니다.

개인정보 처리방침은 사용하는 기능이나 사용자의 나이 등에 따라 달라질 수 있습니다. 더 알아보기

이 개발자의 앱 더 보기

좋아할 만한 다른 항목

Statisticality
교육
Monte Carlo Pi
교육
Strings Conferences
교육
Electronify
교육
ESA Heritage Missions
교육
Museen der Stadt Dresden
교육