My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 1: We need Rational Numbers
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  austin.g...@gmail.com
Closed:  May 2010
Cc:  ruhl.n...@gmail.com


 
Project Member Reported by austin.g...@gmail.com, Feb 18, 2010
We will use Arbitrary size rational numbers instead of large decimals.
The reason is due to the nature of the project. This is a project that
needs to use musical notation an logic so we need Java to let us add up
three 1/3's and get exactly one.


Feb 18, 2010
Project Member #1 austin.g...@gmail.com
I found a neat Big Int rational number java class here.
http://www.cs.princeton.edu/introcs/92symbolic/BigRational.java.html
Feb 19, 2010
Project Member #2 austin.g...@gmail.com
I used the big rational code, which works beautifully, but I had to write my own to
take care of decimal numbers. Now number like 1.5 will be turned into 3/2 and 12.004
will be turned into the proper rational number.
Feb 19, 2010
Project Member #3 austin.g...@gmail.com
(No comment was entered for this change.)
Labels: -Type-Defect Type-Enhancement
Feb 19, 2010
Project Member #4 austin.g...@gmail.com
We are going to need to add more logic to the parser or find some way to have
restrictions on arguments because if we are using rational numbers it makes no sense
to do something like the up or down function with 3/4 or with 1.234
Feb 19, 2010
Project Member #5 austin.g...@gmail.com
yeah some real weird stuff be goin down
Feb 23, 2010
Project Member #6 austin.g...@gmail.com
Rational Numbers officially work to a point. The point is, we need to test the crap
out of them. Apparently we aren't going to use the power function.
Feb 25, 2010
Project Member #7 austin.g...@gmail.com
Done just needs to be tested
Feb 25, 2010
Project Member #8 austin.g...@gmail.com
Done just needs to be tested
May 6, 2010
Project Member #9 austin.g...@gmail.com
(No comment was entered for this change.)
Status: closed
May 6, 2010
Project Member #10 austin.g...@gmail.com
(No comment was entered for this change.)
Status: Fixed

Powered by Google Project Hosting