M | A | T | H |
2 | 1 | B |
The Mathematica lab is due on April 29 (post stamp of email needs to be arrive Friday April 29). We had a workshop on Tue April 26, 7PM -8 PM in Hall B. |
It is useful to know what can be done with computer algebra systems "the four M's". Mathematica, Matlab or Maple and Maxima. The following example snippets should become self explanatory during the course. |
Mathematicaget it here and request a password,
|
MatlabMatlab is a CAS which is strong in linear algebra. Matlab is available as a student version. Here are some of the above commands in Matlab.
| ||
MapleMaple is a CAS comparable with Mathematica or Matlab. Here are the same commands in the Maple dialect.
|
MaximaMaxima is an open source CAS originally developed by the DOE. While having less features than the commercial CAS, it is GPL'd and free software: you can see the code.(echelon(A) is here an upper triangular matrix);
|
To fit data with Mathematica, you can use
either the built in routines
data={{4,5},{2,10},{1,100},{5,3}};functions={1,x,Sin[x]}; Fit[data,functions,x]or crank in the linear algebra: a+bx+c sin[x] =y A=N[{{1,4,Sin[4]},{1,2,Sin[2]},{1,1,Sin[1]},{1,5,Sin[5]}}]; b={5,10,100,3}; Inverse[Transpose[A].A].Transpose[A].bWith both approaches you get in this example the function 210.3-60x-77.2 Sin[x] which beset fits the data points (4,5),(2,10),(1,100),(5,3). |