正在加载图片...
编程实例:炮弹模拟(续) 算法核心部分:更新各值 xpos xpos xvel .time yvel new yvel -9.8 time ypos ypos time (yvelyvel new)/2 yvel yvel new 自由落体的速度计算公式选择向下方向为负) Vt=vo-9.8t y=vot-0.5gt2 10个变量,太多 可读性不够好 99
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有