【解決方法】これをコードにするにはどうすればよいですか


質量 m1 の球は質量 m2 の静止球に斜めに衝突し、打撃の方向は衝突する球の運動線と角度 α を作ります。 反発係数が e の場合、衝突する球体は、tan (β) = m2(1 + e) tan(α) m1 em2 + (m1 + m2) tan(α) となるような角度 β だけ偏向することが示されます。 . C コードを記述して、m1、m2、e、および α (度) の値を入力し、角度 β を度で計算します。

私が試したこと:

"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."

解決策 1

数式を解くことから始めます。 そこから、その式を使用して答えを得るために必要な手順を書き出すことができるはずです。 そして、これらの手順からコードを記述できます。

また、「何を試したか」という見出しのセクションでは、何を行ったか、どこで問題が発生する可能性があるかを示します。 質問を繰り返すだけではありません。

コメント

タイトルとURLをコピーしました