正在加载图片...
编程实例:炮弹模拟(续) def main() angle input ("..(in degrees)" vel input("...(in meters/sec)") 才 ho input("...(in meters)") time input("...(in seconds)") velocity yvel=velocity*sin(theta) xpos,ypos =0.0,h0 theta ...d theta angel math.pi /180.0 xvel velocity cos(theta) xvel vel math.cos(theta) yvel vel math.sin(theta) whi1 e ypos>=0.0:#该条件允许h0=0.0 更新 print"Distance:号0.1 f meters."号(xpos) 88
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有