Re: subexpressions - Python

This is a discussion on Re: subexpressions - Python ; > > 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 ...

+ Reply to Thread
Results 1 to 3 of 3

Re: subexpressions

  1. Default Re: subexpressions

    >
    > 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?







    ____________________________________________________________________________________
    Looking for earth-friendly autos?
    Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
    http://autos.yahoo.com/green_center/

  2. Default Re: subexpressions

    On Sat, 02 Jun 2007 05:54:51 -0700, 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?


    Approximately 0.886 radians. It corresponds to the angle of a point on the
    unit circle quite close to (sqrt(2/5), sqrt(3/5)), or if you prefer
    decimal approximations, (0.632, 0.775).

    Angles are real numbers (in the maths sense), so sqrt(pi/4) radians is
    just as reasonable an angle as pi/4 radians. Both are irrational numbers
    (that is, can't be written exactly as the ratio of two integers).



    --
    Steven


  3. Default Re: subexpressions

    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

+ Reply to Thread

Similar Threads

  1. subexpressions
    By Application Development in forum Python
    Replies: 20
    Last Post: 06-03-2007, 07:35 PM
  2. Re: subexpressions
    By Application Development in forum Python
    Replies: 0
    Last Post: 06-01-2007, 11:59 AM
  3. Re: subexpressions
    By Application Development in forum Python
    Replies: 1
    Last Post: 06-01-2007, 08:04 AM
  4. Re: subexpressions
    By Application Development in forum Python
    Replies: 2
    Last Post: 06-01-2007, 07:08 AM
  5. Re: subexpressions
    By Application Development in forum Python
    Replies: 0
    Last Post: 06-01-2007, 06:03 AM