我的方程式或转换有什么问题?

问题描述

R(英尺)=(速度(ft / s))^ 2 / g(9.8 m / s ^ 2)* sin(2θ)。

我使用类似https://www.ajdesigner.com/phpprojectilemotion/range_equation.php#ajscroll的网站检查了各种输入,以检查我的代码是否给出了正确的答案,但是没有,我也不知道为什么。任何简单的解决方案?在下面:

sample.py

解决方法

r的值具有单位(ft / s) 2 /(m / s 2 )==(ft 2 / s 2 )/(m / s 2 )== ft 2 / m。然后r2的单位为ft 2 / m * ft / m,得出的单位为ft 3 / m 2

您想要r2乘数的倒数,即m / ft:

double r2 = r * 0.3048;   // meters / foot
,

您的v0不能以英尺为单位,因为重力以米为单位。 将5280.0更改为1609.3(从mi到m)即可。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...