subexpressions

Stef Mientki S.Mientki-nospam at mailbox.kun.nl
Sat Jun 2 10:39:14 EDT 2007


Steve Howell wrote:
>>    def f(x): y = x*x; return sin(y)+cos(y);
>>
> 
> Although I know valid trigonometry is not the point of
> this exercise, I'm still trying to figure out why
> anybody would ever take the square of an angle. 
> What's the square root of pi/4 radians?
Maybe he meant
   sin(x)^2 + cos(x)^2
which is well known demodulation technique if you create two signals 90 degrees out of phase.

Stef



More information about the Python-list mailing list