Assignment #2
- Assignment Problems
(Click on the link to view PDF):
- Sample Codes and Illustration :
-
Download and run the Matlab codes in
http://www.cse.ucsc.edu/~hongwang/Codes/NL_sys_solver
Learn how to use Newton's method to solve a
non-linear system.
-
Download and run the Matlab codes in
http://www.cse.ucsc.edu/~hongwang/Codes/Num_cancel
See the bad effect of numerical cancellation and the way to
avoid it.
-
Download and run the Matlab codes in
http://www.cse.ucsc.edu/~hongwang/Codes/Uncertainty
Learn how to calculate the statistical uncertainty
in an estimated parameter. Also learn how to plot a histogram.
-
Download and run the Matlab codes in
http://www.cse.ucsc.edu/~hongwang/Codes/Total_error
See how the total error changes with the step size "h".
In particular, when "h" is below certain value, the total error
actually increases as "h" decreases!
Compare the results by the first order method, the second order method
and the fourth order method. Notice that the fourth order method attains
the minimum total error at a fairly large step size. Also the minimum
total error attained by the fourth order method is much smaller that
that by the first order method.
-
Download and run the Matlab codes in
http://www.cse.ucsc.edu/~hongwang/Codes/Num_integration
See how the codes work and learn how to implement
composite Trapezoidal rule, composite Simpson's rule and
composite Gaussian integration.