<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Times New Roman, Times, serif"><span style="font-style:
        italic;"><br>
        <font face="Courier New, Courier, monospace"><b>Hallo,</b><b><br>
          </b><b>To solve the equation of motion for a mass point m in a
            constant force field f=[fx; fy; fz] one can use ode(...)
            with the function</b><b><br>
          </b><b><br>
          </b><b>function dz=EoM(t, z, m,f)//z=[x; y; z;  vx; vy; vz] 
            (6 x 1)</b><b><br>
          </b><b>   dz(1:3)=z(4:6)</b><b><br>
          </b><b>   dz(4:6)=f/m</b><b><br>
          </b><b>endfunction</b><b><br>
          </b><b><br>
          </b><b>If the motion shall be constrained to a sphere of
            constant radius R - is there a way to implement this
            constraint into the function. </b><b><br>
          </b><b><br>
          </b><b>Of course spherical coordinates may be a better choice,
            however I am looking for a cartesion solution.</b><b><br>
          </b><b><br>
          </b><b>Kind regards </b><b><br>
          </b><b>Jens</b></font></span></font><font face="Courier New,
      Courier, monospace"><b><br>
      </b></font><br>
  </body>
</html>