Sum to Product Trigonometric identity does not work

AI Thread Summary
The discussion centers on the validity of the sum-to-product trigonometric identity, specifically the equation sin(u) + sin(v) = 2 * sin((u+v)/2) * cos((u-v)/2). A user tested this identity with specific values and received a result close to zero, suggesting a potential failure of the identity. However, it was clarified that the discrepancy arises from rounding errors in the calculator's computations rather than an issue with the identity itself. The conversation also highlights the need for calculators to communicate their precision limits to avoid misleading results. Overall, the identity remains valid, but users should be aware of computational limitations.
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.
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top