Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Piecewise defined function' topicStudent Support Forum > General > "Piecewise defined function"

Next Comment >Help | Reply To Topic
Author Comment/Response
Maura Edelweiss Monville
08/10/01 10:16pm

I'm trying to define a piecewise function representing the 1-D force between
two atoms due to the Lennard-Jones potential. I'd like to use such a
function to solve numerically a 2-nd order diff. eq. that is 2nd Newton's
Law (Force = Mass*Acceleration). The purpose is to find the trajectories of
the two particles and plot them.:
I'm attaching my ".nb" file showing that Mathematica does not consider my
function definition complete. I cannot see my error as the function seems to
me to be defined all over the Real axes.

Thank you in advance for your help.

Attachment: TWOBODYK.NB, URL: ,

Subject (listing for 'Piecewise defined function')
Author Date Posted
Piecewise defined function Maura Edelwe... 08/10/01 10:16pm
Re: Piecewise defined function Forum Modera... 08/13/01 7:44pm
Next Comment >Help | Reply To Topic