Code Examples: Difference between revisions
From phys660
Jump to navigationJump to search
Line 6: | Line 6: | ||
*[[Media:bquad_solver.m|bquad_solver.m]] (bad programming to solve quadratic equation) | *[[Media:bquad_solver.m|bquad_solver.m]] (bad programming to solve quadratic equation) | ||
*'''TEST:''' Apply both qguad_solver.m and bquad_solver.m to find the roots of <math> x^2 -(10^7 + 10^{-7})x + 1 </math>. | *'''TEST:''' Apply both qguad_solver.m and bquad_solver.m to find the roots of <math> x^2 -(10^7 + 10^{-7})x + 1 </math>. | ||
* *[http://www.mathworks.com/help/matlab/matlab_prog/techniques-for-improving-performance.html Preallocating arrays in MATLAB] | |||
===Project 1=== | ===Project 1=== |
Revision as of 16:36, 14 March 2014
MATLAB
MATLAB tutorial
- rfib.m
- gquad_solver.m (good programming to solve quadratic equation)
- bquad_solver.m (bad programming to solve quadratic equation)
- TEST: Apply both qguad_solver.m and bquad_solver.m to find the roots of .
- *Preallocating arrays in MATLAB
Project 1
Project 2
Project 3
Project 4
- rand_randn_test.m
- metropolis_mc_ising.m