英语翻译
The scattering program requires the Scatter,ScatterAnalysis,and ScatterApp classes.The ScatterApp class in Listing 5.6 organizes the startup process and creates the visualizations.As usual,it extends AbstractSimul ati on by overriding the doStep method.However,in this case a single step is not a time step.A step calculates a trajectory and scattering angle for the given impact parameter.After a trajectory is calculated,the impact parameter is incremented and the panel is repainted.If necessary,you can eliminate this visualization to increase the computational speed.If the new impact parameter exceeds the beam radius bmax,the animation is stopped and the accumulated data is analyzed.Note that the cal cul ateTrajectory method returns true if the calculation succeeded and that an error message is printed if the calculation fails.Including a failsafe mechanism to stop a computation is good programming practice.
人气:280 ℃ 时间:2020-03-30 02:01:39
解答
散射程序要求散射开ScatterAnalysis和ScatterApp类程序6中的ScatterApp类系统化启动步骤并且创建可视化.它用最重要的doStep方法继承抽象模拟.可是,在这种情况下,单一的步骤不是一个时间间隔.一个步骤计算轨道和碰撞...
推荐
猜你喜欢
- 一公斤铝合金30元,谁能帮我算出1平方铝合金(厚度为1.0)要多少钱
- 初中物理摩擦力的一个问题
- 玻璃,钢铁,塑胶,橡胶,木材,纸张的制作工艺
- 已知函数y=kx+b的图像中k>0,b>0,则y=2kx+b会由原图象怎样变化得来?
- 窃读记选文主要讲述了我窃读的经历,用简要的语言概括这两次经历的主要内容
- 木厂有28人,两个工人一天可以加工三张桌子,三个工人一天可以加工十只椅子,要使每天生产的一张桌子与...
- 除在文言文中的意思 需要词性+例句+在此句中的翻译+出处
- 若(N+2005)2=123456789,求(N+2015)(N+1995)的值.