APS Excellence in Physics Education Award
November 2019

Science SPORE Prize
November 2011

The Open Source Physics Project is supported by NSF DUE-0442581.

## possible bug when trk has 3 complex models?

possible bug when trk has 3 complex models?

lookang
222 Posts

dear prof,

it seems i have discover a possible bug for your information.

http://weelookang.blogspot.sg/2014/08/carom-collision-force-model.html
has 3 models
model A: hit n rebounce only
Fx1 = -200, Fy1 = -20, Fx2 = -40, Fy2 = -520
fx = if(t<0.167,0,if(t<0.171,Fx1,if(t<0.458,0,if(t<0.462,Fx2,0))))
fy = if(t<0.167,0,if(t<0.171,Fy1,if(t<0.458,0,if(t<0.462,Fy2,0))))
model B: got hit n rebounce
Fbx1 = -200, Fby1 = -10
fx = if(t<0.583,0,if(t<0.588,Fbx1,0))
fy = if(t<0.583,0,if(t<0.588,Fby1,0))
model C: friction force
frictionx = 0.96, frictiony= -0.85
fx = if(vx>0,-frictionx,0)
fy = if(vy<0,-frictiony,0)

that fails to open up now after packaging as a trz.

for your kind action to fix the "bug" if any, in newer tracker version!