mirsazzathossain / CSE317-Lab-Numerical-Methods

This repository includes the lab worksheets and assignments for the Numerical Methods Lab course at Independent University, Bangladesh.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Numerical Methods Lab

This repository includes the lab worksheets and assignments for the Numerical Methods Lab course at Independent University, Bangladesh. Amin Ahsan Ali will teach the course during the Autumn 2022 semester. This course will teach students computational methodologies for dealing with problems in linear algebra, nonlinear equations, optimization, interpolation and approximation, numerical integration, and differential equations. The student will learn to use numerical approaches to solve engineering and scientific problems. Additionally, the course seeks to teach students how to incorporate numerical approaches into computer applications. This course will offer a basic foundation in numerical approaches to aid ongoing study in machine learning, data science, and other related topics.

Course Objectives

  • Learn to use python and numpy to solve numerical problems.
  • Use python to solve problems like regression, interpolation, clustering and classification.
  • Write efficient and well-documented code.
  • Learn to present results in a clear and informative manner.

Course Outline

  • Introduction to Python and Numpy:

    In lab 1, students will learn the basics of python and numpy. They will learn how to use python decare variables, use loops, and write functions. They will also learn how to use numpy to create arrays and perform basic operations on them. They will also learn how to use matplotlib to plot graphs and use pillow to read and write images.

  • Taylor Series expansion and approximation:

    In lab 2, students will learn how to use Taylor series to approximate functions. They will implement the Taylor series expansion and approximation in python and numpy. Additionally, they will learn how to use the Taylor series to approximate the value of a function at a point.

  • Finding roots of a function:

    In lab 3, students will learn how to use the Newton-Raphson method to find the roots of a function. They will implement the Newton-Raphson method in python and numpy. They learn to find derivatives of functions analytically as well as using the finite difference method. They will use both methods to find the roots of a function using the Newton-Raphson method and compare the results.

  • Numerical Integration:

    In lab 4, students will learn how to use the trapezoidal rule to approximate the value of an integral. They will implement the trapezoidal rule and composite trapezoidal rule to find the value of an integral using python and numpy.

  • K Nearest Neighbors:

    In lab 5, students will learn how to use the K Nearest Neighbors algorithm to classify data. They will implement the K Nearest Neighbors algorithm in python and numpy and apply it to a real-world PetImage dataset to classify images of cats and dogs. They will also learn how to use the scikit-learn library to implement the K Nearest Neighbors algorithm. They will leran about different matrics used to evaluate the performance of a classifier.

  • Linear Regression:

    In lab 6, students will learn how to use the linear regression algorithm to fit a line to a set of data. They will implement the linear regression algorithm in python and numpy and apply it to a real-world PetImage dataset to predict the price of a book based on its number of pages.
    
  • Ordinary Least Square Regression:

    In lab 7, students will learn how to use the ordinary least square regression algorithm to fit a line to a set of data. They will implement the ordinary least square regression algorithm in python and numpy and apply it to a real-world Admissions dataset to predict the chance of admission of a student based on his/her GRE score, TOEFL score, university rating, SOP, LOR, CGPA, and research experience.
    

Prerequisites

Following are the prerequisites for this course:

Evaluation

The evaluation of the course will be based on programming assignments and lab exams. Every two weeks, there will be assignments that will require you to solve problems using python and numpy. Unless explicitly mentioned, all assignments must be completed individually. This lab will contribute 25% of the grade for the "Numerical Methods" course.

Environment Setup

We will use Google Colab for this course. Google Colab is a free cloud service that allows us to run python code in the cloud. We can use it to run python code without installing anything on our computer. We can also use it to run python code on a GPU. We will use Google Colab for all the labs and assignments in this course.

Books

Teaching Assistants

About

This repository includes the lab worksheets and assignments for the Numerical Methods Lab course at Independent University, Bangladesh.

License:MIT License


Languages

Language:Jupyter Notebook 100.0%