| 1. Read in arrays x and y from file xyL.dat, and find the best 5th-degree polynomial fit
2. Read in arrays x and y from file xyN.dat, and find the best fit to y(x) = a exp(bx) sin(cx + d) |
| Mathematica:
(1)
|
Matlab:
(1) (2) |
| Maple:
xxx |
IDL:
(1) xy = fltarr(2,21)
PRO YofX, x, A, f x=reform(xy[0,*]) & y=reform(xy[1,*]) |