[Python-ideas] Python Numbers as Human Concept Decimal System

random832 at fastmail.us random832 at fastmail.us
Fri Mar 7 21:45:51 CET 2014


On Wed, Mar 5, 2014, at 21:21, Mark H. Harris wrote:
>  "Then, and only then, a function that requires PI or half_PI  
> will first check to see if  __gpi__  has been cached and if so pull it 
> back, or if not calculate it (once).  If the context
> does not change then the function can take half of some whopping value of 
> PI, for the duration of the context, and
> use that,  but if not needed for the context will never bind it !

What if you want a number type to represent a fraction of pi exactly, so
you can take its sine and get the square root of a rational number, then
square it to get the rational number?

Or to take the sine of an arc tangent of a rational number.


More information about the Python-ideas mailing list