Raymond Hettinger wrote: ... > There should be a builtin variable (overriddable within some inner scope) > for a maximum denominator magnitude. It should default to some value > where performance tanks. If set to None, then no limit would apply. > > The HP32SII calculator implements a useful rational model using > flags and a maximum denominator register. If the first flag is clear, > fractions are have denominators upto the maximum value. If only > the first flag is set, fractions always use the maximum denominator > as the denominator and are then reduced (i.e. if the max is 8, then > .5 is represented as 1/2 and .1 is represented as 1/8). Makes very much sense to me. -- Christian Tismer :^) <mailto:tismer@tismer.com> Mission Impossible 5oftware : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9a : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 89 09 53 34 home +49 30 802 86 56 pager +49 173 24 18 776 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4