Re: [Tutor] Over-riding radians as default for trig calculations

2010-03-01 Thread Lie Ryan
On 03/01/10 06:39, AG wrote: > After importing the math module and running > > math.cos( x ) > > the result is in radians. > > Is there a way of setting this so that it results in degrees? I don't > want to over-ride this permanently for my Python settings, so am happy > to specifically do it p

Re: [Tutor] Over-riding radians as default for trig calculations

2010-02-28 Thread Steven D'Aprano
On Mon, 1 Mar 2010 06:39:10 am AG wrote: > After importing the math module and running > > math.cos( x ) > > the result is in radians. It certainly is not. The *result* of cos is a unitless number, not an angle. What you mean is that the *input* to cos, x, has to be supplied in radians. No, you

Re: [Tutor] Over-riding radians as default for trig calculations

2010-02-28 Thread Hugo Arts
On Sun, Feb 28, 2010 at 8:39 PM, AG wrote: > After importing the math module and running > > math.cos( x ) > > the result is in radians. > > Is there a way of setting this so that it results in degrees?  I don't want > to over-ride this permanently for my Python settings, so am happy to > specific

[Tutor] Over-riding radians as default for trig calculations

2010-02-28 Thread AG
After importing the math module and running math.cos( x ) the result is in radians. Is there a way of setting this so that it results in degrees? I don't want to over-ride this permanently for my Python settings, so am happy to specifically do it per equation or per program. Thanks in adva