Fall 2022 ESC 251

ESC 251 - Scientific Computing

Days: MWF

Time: 11:15 - 12:05

Room: Smith 103

Important Course Documents

  • Course Syllabus: PDF
  • Course Survival: PDF
  • Using Matlab at Home: TXT
  • Using Anaconda at Home: TXT
  • Course Notes

  • Aug. 29 Introduction: PDF IEEE 754 Standard
  • Aug. 31: Introduction to Matlab PDF
  • Sep. 2: Algorithms and Script Files PDF
  • Sep. 12: If-Then Logic PDF
  • Sep. 19: Looping Operations PDF tloop1.m tloop2.m tloop3.m tloop4.m
  • Oct. 03: Vectors and Matrices PDF badsearch.txt sum1.m getmax.m getmax2.m bsort.m genxc.m genxc2.m tablef.m
  • Oct 10: Vectorized Operations PDF
  • Oct 12: Other Functions PDF
  • Oct 19: Writing Functions PDF fun1.m fun2.m myabs.m solvquad.m solvquadcow.m solvquad2.m
  • Oct 26: Matrices and Loading Files PDF data1.dat
  • Oct 28: Making 2D Plots PDF
  • Oct 31: Making 3D Plots PDF
  • Nov 02: Cosine Routines Discussion getcos.m mycos.m k_cos.c
  • Nov 04: Python Basics PDF
  • Nov 07: Python Logic and Loops PDF exam1.py exam2.py exam3.py exam4.py exam5.py
  • Nov 11: Python Lists PDF
  • Nov 14: Python Functions PDF
  • Nov 16: Python Plotting PDF
  • Nov 18: Definite Integrals PDF bigtrap.m trap_fun.m yofx.m traprun.m simp_fun.m Outline of Adaptive Simpson Method
  • Nov 28: Interpolation and Splines PDF intdata.dat intdata2.dat int_ex1.m int_ex2.m growlin.m spline_ex.m int_ex3.m int_ex4.m Table for e^x
  • Handouts

  • Simple Script File: ex1.m
  • Social Security: ssn1.m ssn2.m
  • If-then_elseif example: if_ex1.m
  • Test positive, negative or zero: pnz.m
  • Piecewise Function: piecewise1.m
  • 2D Piecewise Function: piecewise2.m piecewise3.m piecewise3.f90
  • Comments on HW 6,7: alternate_hw67.m
  • Adding User Input Values: addval.m
  • Coin Flip Experiment: flips.m
  • Compute n!: nfact.m
  • Average unknown number of positive values : addval2.m
  • Average unknown number of positive values with break statement : addval3.m
  • Average unknown number of values when numbers are random: addval4.m
  • Homework Assignments

  • HW 1: PDF Solution
  • HW 2: PDF Solution
  • HW 3: TXT
  • HW 4: PDF
  • HW 5: PDF
  • HW 6: PDF
  • HW 7: PDF
  • HW 8: PDF
  • HW 9: PDF hw9_p1.m hw9_p2.m hw9_p3.m
  • HW 10: PDF
  • HW 11: PDF
  • Project 1 : PDF craps.m
  • HW 12: PDF
  • HW 13: PDF hw13_p4.m
  • HW 14: PDF
  • HW 15: PDF
  • HW 16: PDF
  • HW 17: PDF
  • HW 18: PDF
  • HW 19: PDF hw19.dat
  • HW 20: PDF
  • HW 21: PDF hw21.dat
  • HW 22: PDF
  • HW 23: PDF
  • Project 2: PDF
  • HW 24: PDF
  • HW 25: PDF
  • HW 26: PDF hw26_drive.py functions.py
  • HW 27: PDF
  • HW 28: PDF
  • HW 29: PDF
  • HW 30: PDF
  • HW 31: PDF hw31.dat