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

2221 views / 516 in the last 7 days

Tags: with-source gui math bourne

This scenario is a member of: Tools


open in greenfoot

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

No Comments

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

Who likes this?

No votes yet.