MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive


  • To: mathgroup at
  • Subject: [mg21610] Mathematica???
  • From: Krzysztof Wojszko <wolf_prv at>
  • Date: Sun, 16 Jan 2000 22:43:55 -0500 (EST)
  • Sender: owner-wri-mathgroup at

I need to make animation showing two balls colliding with each other. The animation can be onli in 
one dimension + time.
It have to look like this
1. O-----------><------------O

2. ------------->OO<-----------

3.   O<---------    -------->O

m1*v1+m2*v2 = m1*v3+m2*v4 
m1*(v1^2)/2 + m2*(v2^2)/2 = m1*(v3^2)/2 + m2*(v4^2)/2

m1,m2 - mass of balls
v1,v3 - velocity of 1st ball before and after collision
v2,v4 - velocity of 2nd ball before and after collision

I worked out:
v4=((v1 - v2)(m1+m2)+2*m2*v2+(m1-m2)*v1)/m1+m2
(I'm not sure about that)  t1 - before collision; t2 - after;
 t -complete time[0..99]
position of balls before collision - r1,r2
position of balls after collision - r3,4
r0 - initial position

and I do not know how to transmit it to Mathematica. I don't have this
program in home, I can only use it in school so my time of useing it is
limited & I can't experiment with it.Should I use Animate commend or
any other?

  • Prev by Date: Re: entering an equation
  • Next by Date: Re: generating subsets
  • Previous by thread: Re: Re: Series expansion of ArcSin around 1
  • Next by thread: Re: Mathematica???