Importing variables non-deterministic?

wxjmfauth at gmail.com wxjmfauth at gmail.com
Tue Aug 20 03:31:32 EDT 2013


Le mardi 20 août 2013 08:55:18 UTC+2, Antoon Pardon a écrit :
> 
> > 
> 

> 
> 
> 
> > If you consider the implementation of sin and cos functions, they usually 
> 
> > reduce the argument modulo π to something in the first quadrant, and then 
> 
> > use symmetry to adjust the value. So changing the value of pi could, in 
> 
> > principle, change the implementation of sin, cos and tan.
> 
> 
> 
> Yes there is this aspect, which is a fair point.
> 
> 
> 
> -- 
> 
> Antoon Pardon

-----

Not really, see my previous post. This is only a geometric
interpretation, useless for calculation.

Consequence of an implementation: common trick to use
and/or define pi:

>>> const_pi = 4 * atan(1)
>>> const_pi
3.141592653589793

jmf






More information about the Python-list mailing list