Click here to Skip to main content
15,867,956 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
A sphere of mass m1 impinges obliquely on a stationary sphere of mass m2, the direction of the blow making an angle α with the line of motion of the impinging sphere. If the coefficient of restitution is e it can be shown that the impinging sphere is deflected through an angle β such that tan (β) = m2(1 + e) tan(α) m1 em2 + (m1 + m2) tan(α). Write a C code to input values of m1, m2, e, and α (in degrees) and to compute the angle β in degrees.

What I have tried:

"2)\tA sphere of mass m1 impinges obliquely on a stationary sphere of mass m2, the direction of the blow making an angle α with the line of motion of the impinging sphere. If the coefficient of restitution is e it can be shown that the impinging sphere is deflected through an angle β such that tan (β) = m2(1 + e) tan(α) m1 em2 + (m1 + m2) tan(α). Write a C code to input values of m1, m2, e, and α (in degrees) and to compute the angle β in degrees."
"2)\tA sphere of mass m1 impinges obliquely on a stationary sphere of mass m2, the direction of the blow making an angle α with the line of motion of the impinging sphere. If the coefficient of restitution is e it can be shown that the impinging sphere is deflected through an angle β such that tan (β) = m2(1 + e) tan(α) m1 em2 + (m1 + m2) tan(α). Write a C code to input values of m1, m2, e, and α (in degrees) and to compute the angle β in degrees."
Posted
Updated 23-Jan-23 7:06am

1 solution

You start by working out the mathematical formula. From that you should be able to write out the steps required to use that formula to get an answer. And from those steps you can write the code.

Also the section headed "What I have tried:", is for you to show what you have done and where any problems may occur. It is not there just to repeat the question.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900