Skip to content

banderson/Rational

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rational - a Java implementation of Rational numbers

A simple assignment to implement the basic functionality of Rational Numbers:

  • Add
  • Subtract
  • Mutlipl
  • Divide
  • Reduce to lowest form (using Euclidean algorithm)

Source Files:

  • Rational.java: basic Rational functionality described above
  • RationalTest.java: JUnit test class to exercise functionality to verify accuracy
  • RationalTestRun.java: test class to exercise functionality in main() for those without JUnit
  • MathHelper.java: basic helper functions for determining LCM and GCD for use in reducing fractions

About

Rational Numbers in Java

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages