Skip to content

Repository of function(s) to convert real numbers to approximate rational numbers (fractions).

License

Notifications You must be signed in to change notification settings

keithel/rational-approximation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rational-approximation

Repository of function(s) to convert real numbers to approximate rational numbers (fractions).

Contains:

  • C program with inputs in command line args for the real number to approximate, and the maximum denominator value. This code comes from David Eppstein, Chancellor's Professor of Computer Science at the University of California, Irvine. His original code (same as here) is at: http://www.ics.uci.edu/~eppstein/numth/frap.c

  • Translation of David Eppstein's C code to Lua by me - Keith Kyzivat

About

Repository of function(s) to convert real numbers to approximate rational numbers (fractions).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published