This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

bourne
bourne presents ...

2013/11/15

Continued Fraction Algorithm

Another break from my other project.

The Continued Fraction Algorithm with FractionContainer GUI
-A search for good approximations of irrational numbers (pi, e, 6^0.5, etc.)
Algorithm as learned from my Number Theory course.

See how 22/7 was decided to be a good approximation of pi

Displays the continued fraction expansion and the first 7 convergents.
Hit the "Next" button after "Calculate", then can click through the ListBox to the left.

Uses my evauation code from my Math Wizard scenario:
http://www.greenfoot.org/scenarios/8244

The FractionContainer is a simple extension from my GUI Container class from the following:
And for reusable GUI Components visit:
http://www.greenfoot.org/scenarios/7578

2434 views / 16 in the last 7 days

Tags: with-source gui math bourne

This scenario is a member of: Tools


open in greenfoot
Your browser is ignoring the <APPLET> tag.
HTML5 version not available | Scenario not running?

No Comments

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.