各位高手帮我翻译下这段英语吧!TheScatterclassshowninListing5.7calculatesthetrajectoriesbyexpressingtheequationofmotionasarateequation.ThemostimportantmethodiscalculateTrajectory,whichcalculatesatrajectoryb
各位高手帮我翻译下这段英语吧!
TheScatterclassshowninListing5.7calculatesthetrajectoriesbyexpressingthe
equationofmotionasarateequation.ThemostimportantmethodiscalculateTrajectory,whichcalculatesatrajectorybysteppingthedifferentialequationsolverandaddingtheresultingdatatoatrailtodisplaythepath.Becausethebeamsourceisfaraway,westopthecalculationwhenthedistanceofthescatteredparticlefromthetargetexceedstheinitialdistance.Notetheuseoftheternary?:operator.Thisveryefficientandcompactoperatorusesthreeexpressions.Thefirstexpressionevaluatestoaboolean.Ifthisexpressionistrue,thenthestatementafterthe?isexecuted.Ifthisexpressionisfalse,thenthestatementafterthe:isexecuted.However,becausesomepotentialsmaytrapparticlesforlongperiodsoftime,wealsostopthecalculationafterapredeterminednumberoftimesteps.