1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Sum to Product Trigonometric identity does not work

  1. Apr 27, 2013 #1
    "Sum to Product" Trigonometric identity does not work


    The identity

    [itex]sin(u) + sin(v) = 2 * sin (\frac{u+v}{2}) * cos(\frac{u-v}{2})[/itex]

    Does not always work. I put the equation :

    [itex](sin(u) + sin(v)) - (2 * sin (\frac{u+v}{2}) * cos(\frac{u-v}{2}))[/itex]

    With u equal to -4.1 and v equal to 99 into wolfram alpha and it gave me the answer -1.11022x10^-16

    If the identity is true, shouldn't the answer always be 0?

    What's going on here?

    Last edited: Apr 27, 2013
  2. jcsd
  3. Apr 27, 2013 #2
    It seems like a rounding error to me. You can verify that the identity is in fact always true by using the half angle and angle addition formulae.
  4. Apr 27, 2013 #3
    The problem is not that the formula doesn't work, but with the fact that your calculator is incapable of precisely calculating the sine or cosine of an angle.
  5. Apr 27, 2013 #4
    Ah okay, thank you for answering.
    One thing though... If wolfram alpha knows that it can only calculate the sine or cosine of an angle to a certain precision, shouldn't it give the final answer to that precision, or less, so that it avoids giving misleading answers like the one it gave me.
  6. Apr 27, 2013 #5
    It would be better if they did that. But I've never seen a calculator doing it. They rather count on the users to know about the fallibility of the program.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook