|
Method and Implementation
Initially, we began writing our program, Nemic, in the C programming language (see Appendix B) with the
idea that the six nonlinear ordinary differential equations would be passed to a differential equation
solver. However, the only available differential equation solver, the Runge-Kutta-Fehlberg differential equation solver, was in FORTRAN. We were told that it was not good practice to combine C and FORTRAN. From there, our team looked
at using Mathematica, but finally settled on employing MATLABŪ to solve the equations. MATLABŪ and C
programming are very similar and we were able to copy our C program into MATLABŪ and quickly correct syntax errors. Two files were created to feed to MATLABŪ: nemic.m, which contains the numerous input equations which form the right sides of the differential equations, and nemicsolver.m, a script which tells MATLABŪ to perform the numerical integration
of the equations formed in nemic.m. (See Appendix C).
|
|