| Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
| Version 1.9 Build 1556 |
|
| Package | utility | |
| Module | fitting | |
| Tool | fitter |
| n | in | number of unknowns | |
| Allowed: | integer | ||
| Default: | 0 | ||
| type | in | type of solution | |
| Allowed: | coded value as string. Allowed: real, complex, separable, asreal, conjugate, with case-insensitive minimum-match | ||
| Default: | 'real' | ||
| colfac | in | collinearity factor | |
| Allowed: | positive float | ||
| Default: | 1e-8 | ||
| lmfac | in | Levenberg-Marquardt factor | |
| Allowed: | positive float | ||
| Default: | 1e-3 | ||
- include 'fitting.g' - dfit.type() fitter - myfit := dfit.fitter(2) # Create a fitter for 2 real unknowns - dfit.fitpoly(1, 1:5, 1:5, id=myfit) # solve x+y=1; x+2y=2; ... x+5y=5 T - print dfit.solution(id=myfit), dfit.error(id=myfit) # show solution [0 1] [0 0]