Sum to Product Trigonometric identity does not work

CraigH
Messages
221
Reaction score
1
"Sum to Product" Trigonometric identity does not work

Hi,

The identity

sin(u) + sin(v) = 2 * sin (\frac{u+v}{2}) * cos(\frac{u-v}{2})
http://en.wikipedia.org/wiki/List_of_trigonometric_identities#Product-to-sum_and_sum-to-product_identities

Does not always work. I put the equation :

(sin(u) + sin(v)) - (2 * sin (\frac{u+v}{2}) * cos(\frac{u-v}{2}))

With u equal to -4.1 and v equal to 99 into wolfram alpha and it gave me the answer -1.11022x10^-16
http://www.wolframalpha.com/input/?i=x%3D%28sin%28-4.1%29%2Bsin%2899%29%29-%28%282*sin%28%28-4.1%2B99%29%2F2%29*cos%28%28-4.1-99%29%2F2%29%29%29

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

What's going on here?

Thanks
 
Last edited:
Mathematics news on Phys.org
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.
 
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.
 
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.
 
CraigH said:
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.

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.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top