Assignment #1

Assignment Problems (Click on the link to view PDF):


Sample Codes and Illustration :

  1. Download and run the Matlab codes in
    http://www.cse.ucsc.edu/~hongwang/Codes/Plot_1D_2D
    Understand how the codes work and get familiar with Matlab language. Learn how to plot curves and surfaces.

  2. Download and run the Matlab codes in
    http://www.cse.ucsc.edu/~hongwang/Codes/NL_solvers
    Understand how the codes work and learn how to implement a numerical method in Matlab language. (Leave the linear convergence and quadratic convergence to next assignment).

  3. Download and run the Matlab codes in
    http://www.cse.ucsc.edu/~hongwang/Codes/Read_data
    See how the codes work. Learn how to read in data from an ascii file and plot the data. Also learn how to plot a fitting curve along with the data.
    In the example shown, we fit Verhulst's logistic population model to the US population data from 1790 to 1990.
    Click here to learn about Verhulst's logistic population model.

  4. Download and run the Matlab codes in
    http://www.cse.ucsc.edu/~hongwang/Codes/Comp_curve
    First run "calc_data.m" to generate and save the data for the curve. Then run "plot_curve.m" to read in the data and plot the curve.
    Understand how the codes work and learn how to solve the equation for a sequence of parameter values, save the data, and then read in the data to plot a function.

  5. Download and run the Matlab codes in
    http://www.cse.ucsc.edu/~hongwang/Codes/Golden_search
    Run "minimize_f.m" and "minimize_dd.m". Understand how the codes work and learn how to use the golden search method to find a minimum of a function.