12.21. - Adding your model equation to the prototype
To use the fitting portion of the C-PLOT package, you have to do a bit of C programming to enter the code for your fitting function. You don't need to be an expert programmer, since most of the programming work has been done for you.
In this section, the code from the prototype C module from which you start is presented with explanations of what the code does.
- 12.21.1. - Introduction
12.21.2. - Initial definitions
12.21.3. - Initial code
12.21.4. - Initializing the parameters
12.21.5. - Referring to parameters
12.21.6. - Referring to independent variables
12.21.7. - The fitting equation
12.21.8. - Adding your own commands
12.21.9. - Referring to data within your subroutines
12.21.10. - Useful routines for interactive running
12.21.11. - Optimizing