Example codes, assignments, and exams for the EP 501 (numerical methods) course at Embry-Riddle Aeronautical University. This repository is a work in progress and will be updated as the semester progresses.
- located in ./matlab_basics/matlab_basics.m
- illustrates precision, matrix operations, and plotting, along with some special functions
- Located in ./linear_algebra/Ch1.m
- Illustrates and checks various methods for solving matrix problems
- contains functions for Gaussian elimination (Gauss_elim.m) and backsubstitution (backsub.m)
- Contains examples of simple elimination (simple_elim_example.m) and Gaussian elimination (Gauss_elim_example.m)
- Contains examples of iterative solutions to systems of equations (Jacobi_example.m)
- Located in ./nonlinear_eqns
- Contains examples illustrating solutions of various nonlinear equations and systems
- Contains examples of interval halving (interval_halving.m), false position (false_position.m), Newton's method for a single variable equation (Newton_Rhapson.m), and Newton's method for a 2D equation (Newton_Rhapson2D.m).
- Contains various functions for exact Newton's method in 1D (newton_exact.m) and 2D (newton2D_exact.m)
- Contains objective function which can be used as examples to demonstrate root finding algorithms (objfun*.m)
- Located in ./polynomials
- Contains examples of direct and approximate polynomial fits to data
- Contains various examples of direct fitting (direct_fit.m), linear least squares (least_squares.m), and bilinear/spline interpolation (interpolation_examples.m).
- located in ./differentiation
- examples of finite difference formulas and applications
- one-dimensional (derivative_examples.m) and multi-dimensional scripts (e.g. gradient operator, partial_derivative_examples.m)
- located in ./ODEs
- Examples of Methods for solving ordinary differential equations
- Euler methods (Euler_methods.m), Runge-Kutta solutions (RK_methods.m), examples of resolving systems of ODEs (RK_systems.m), and backward difference formula comparisons (BDF_examples.m).
- location in ./PDEs
- Example solutions for elliptic (elliptic.m), parabolic (parabolic.m), and hyperbolic (hyperbolic.m) PDEs
- Contains documentation describing analyitical solutions to test problems (./test_problems/)
- Also contains various subroutines implementing BTCS for hyperbolic equations (BTCS_hyp.m), Lax-Friedrichs method (LaxFried.m), Lax-Wendroff (LaxWen.m), and Godunov's method (Godunov.m).
- Advanced PDEs script (advanced_PDEs.m) is still under construction.