EECS 1541 Introduction to Computing for the Physical Sciences

Slides:



Advertisements
Similar presentations
Introduction to MATLAB Northeastern University: College of Computer and Information Science Co-op Preparation University (CPU) 10/20/2003.
Advertisements

Coordinate Systems and Graphs Read pages 1 – 6 Pay attention to Examples: 2, 4, 6, 7, and 8 Chapter 1 Section 1.
Math Xa Introduction to Functions and Calculus Fall 2008 Introductory Meeting John Hall.
Rectangular Coordinate System
MATH 331: Partial Differential Equations Spring 2015.
Welcome to MAT 170. Basic Course Information Instructor Office Office Hours Beth Jones PSA 725 Tuesday and Thursday 10:30 am – 11:30 am Wednesday 9:40.
Systems of Equations OBJECTIVES To understand what a system of equations is. Be able to solve a system of equations from graphing the equations Determine.
CSc 160 Overview of Fundamentals of Computer Programming II Spring (SO1) 2004.
Lecture 8: Fourier Series and Fourier Transform
EGR 240 Introduction to Electrical and Computer Engineering
7/2/ Lecture 51 STATS 330: Lecture 5. 7/2/ Lecture 52 Tutorials  These will cover computing details  Held in basement floor tutorial lab,
MATH 330: Ordinary Differential Equations Fall 2014.
Today’s quiz on 8.2 A Graphing Worksheet 1 will be given at the end of class. You will have 12 minutes to complete this quiz, which will consist of one.
Technical Question Technical Question
Today’s quiz on 8.2 B Graphing Worksheet 2 will be given at the end of class. You will have 12 minutes to complete this quiz, which will consist of one.
EGR 240 Introduction to Electrical and Computer Engineering Prof. Michael P. Polis 102J Science & Engineering Building.
Welcome to MAT 170. Basic Course Information Instructor Office Office Hours Beth Jones PSA 725 Tuesday and Thursday 12 noon - 1 pm Wednesday 8:30 am –
EGR 240 Introduction to Electrical and Computer Engineering Prof. Richard E. Haskell 115 Dodge Hall Prof. Michael P. Polis 102J Science & Engineering Building.
Please open your laptops, log in to the MyMathLab course web site, and open Daily Quiz 16. IMPORTANT NOTE: If you have time left out of your five minutes.
7.5 – Special Linear Systems
1 OBJ: SWBAT Solve a system of equations by graphing on a coordinate plane.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Chapter 16 Quadratic Equations.
Monday, 5/10Tuesday, 5/11Wednesday, 5/12Thursday, 5/13Friday, 5/14 Graphing & Properties of Quadratic Functions HW#1 Graphing & Properties of Quadratic.
Lesson 9.7 Solve Systems with Quadratic Equations
Numerical Computation Lecture 0: Course Introduction Dr. Weifeng SU United International College Autumn 2010.
Math 15 Lecture 12 University of California, Merced Scilab Programming – No. 3.
Linear System Theory Instructor: Zhenhua Li Associate Professor Mobile : School of Control Science and Engineering, Shandong.
General Physics1 Welcome to Phys 130! Blackboard blackboard.siena.edu.
Lecture 12: Introduction to Discrete Fourier Transform Sections 2.2.3, 2.3.
Objective I will identify the number of solutions a linear system has using one of the three methods used for solving linear systems.
Monday, 4/30Tuesday, 5/1Wednesday, 5/2Thursday, 5/3Friday, 5/4 No classes Review for tomorrow’s test TEST!Quadratic graphs Quadratic Graphs Monday, 5/7Tuesday,
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
Lecture 1 - Introduction June 3, 2002 CVEN 302. Lecture’s Goals General Introduction to CVEN Computer Applications in Engineering and Construction.
CS 140 Computer Programming (I) Second semester (3 credits) Imam Mohammad bin Saud Islamic University College of Computer Science and Information.
Welcome CSCI 1100/1202 Intro to Computer Science Winter 2002.
G Practical MRI 1 – 29 th January 2015 G Practical MRI 1 Introduction to the course Mathematical fundamentals.
CSE 3802 / ECE 3431 Numerical Methods in Scientific Computation
1 Week 2: Variables and Assignment Statements READING: 1.4 – 1.6 EECS Introduction to Computing for the Physical Sciences.
Please get out your completed 8.2B Graphing Worksheet 2 and pass it to the center aisle to be collected by the TA.
Computer Science II Spring Introduction Dr. Robb T. Koether Office: Bagby 114 Office phone: Home phone: (before 11:00 p.m.) Office.
Computer Science II Spring Introduction Dr. Robb T. Koether Office: Bagby 114 Office phone: Home phone: (before 11:00 p.m.) Office.
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note- taking materials.
Objective : Solving systems of linear equations by graphing System of linear equation two or more linear equations How do I solve linear systems of equations?
3.1 Solving equations by Graphing System of equations Consistent vs. Inconsistent Independent vs. Dependent.
Leo Lam © Signals and Systems EE235 Lecture 21.
IST 210: Organization of Data
Solving Systems of Equations by Graphing
Holt Algebra Using Graphs and Tables to Solve Linear Systems Solve systems of equations by using graphs and tables. Classify systems of equations,
Engineering 1020 Introduction to Programming Peter King Winter 2010.
Computer Programming for Engineers CMPSC 201C Fall 2000.
SOLVING LINEAR SYSTEMS by GRAPHING ADV133 Put in slope-intercept form: y = mx + b. y = 4x – 1 y = –x + 4 The solution to a system of linear equations is.
Systems of Equations. Linear equations show progress and starting points.  The starting point being the y-intercept.  Progress being the slope Positive.
Objective: To solve a system of linear equations by graphing and substitution.
Graphing Lines Using Slope Intercept Form Algebra 1 Glencoe McGraw-HillLinda Stamper.
Recall that the slope-intercept form of a linear equation of a non-vertical line is given by: Graphing Using Slope-Intercept Form.
Section 8 Numerical Analysis CSCI E-24 José Luis Ramírez Herrán October 20, 2015.
Writing Rules for Linear Functions. We compared slopes across three different representations – graphs, tables, and in equations. Functions are similar,
Mayda M. Velasco Winter Classical Mechanics: Lecture #20.
Solving Nonlinear Systems
5.1 Graphing Systems of Equations
Geometry Unit 12 Equation of a Line.
Solutions to Systems of Equations
Computational Thinking through Mechatronics
Lecture 1: Introduction
Lecture 0 Preface Essential MATLAB for Engineers and Scientists
3.5 Solving Nonlinear Systems
Graphing Linear Equations
Use Graphs of Functions
Solving Linear Systems by Graphing
Presentation transcript:

EECS 1541 Introduction to Computing for the Physical Sciences Winter 2015

Introduction – Course Overview EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – Course Overview Instructor: John Lam Office: Lassonde Building 1012G E-mail: johnlam@cse.yorku.ca Lecture: Tuesday & Thursday 2:30 – 3:30pm Office hours: Wednesday & Thursday 3:30pm – 4:30pm 2

Introduction – Course Overview EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – Course Overview There are 8 labs in total (3% each) Labs start next Tuesday (Jan 13) 2 term tests (20% each) Final exam (36%) Course website: http://www.eecs.yorku.ca/course_archive/2014-15/W/1541/ Please setup your CSE account and have it ready by next Tuesday! 3

Introduction – Course Overview EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – Course Overview How to do well in the course? Do all the labs (3% each!) Attend lectures Do not skip the tests Read the text and study lecture notes 4

EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB This is an introductory course on computing for physical sciences using MATLAB What is MATLAB (MATrix LABoratory)? Software program for technical computing, it combines computation, visualization and programming. 5

EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB Computation: computes value from complex equations; solving a single equation or a system of equations Visualization: plots different types of 2-D graphs, 3-D contours Progamming: creates conditional statements or small programs such as using “if-statement”, “while-loop”, “for-loop”, etc. 6

EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB Computation: computes value from complex equations; solving a single equation or a system of equations Visualization: plotting different types of 2-D graphs, 3-D contours Progamming: create conditional statements or small programs such as using if-loop, while-loop, for-loop 7

Introduction – MATLAB (Example 1) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 1) Recall that a linear equation with slope m and y-intercept b is given by: Suppose the y-intercept b is zero and the slop is 3/2, and we want to plot the equation for -3 ≤ x ≤ 3: 8

Introduction – MATLAB (Example 1) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 1) 9

Introduction – MATLAB (Example 1) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 1) 10

Introduction – MATLAB (Example 1) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 1) Suppose a parabola w is plotted on the same graph with the previous linear function and we want to determine the x-coordinates of the intersection points 11

Introduction – MATLAB (Example 1) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 1) Can we determine the exact x-coordinate? Approx. x = 2.4 x = 0 12

Introduction – MATLAB (Example 1) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 1) Alternatively, we can equate the two equations and solve for x from MATLAB to determine the exact points: 13

Introduction – MATLAB (Example 1) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 1) Solutions: x = 0 or 9/4 (i.e. 2.25) 14

EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB Computation: computes value from complex equations; solving a single equation or a system of equations Visualization: plotting different types of 2-D graphs, 3-D contours Progamming: create conditional statements or small programs such as using if-loop, while-loop, for-loop 15

Introduction – MATLAB (Example 2) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 2) A periodic symmetrical square wave can be represented by the Fourier Series representation: Let’s plot the above series that consists of the first 3 terms for 0 ≤ x ≤ 2π: 16

Introduction – MATLAB (Example 2) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 2) 17

Introduction – MATLAB (Example 2) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 2) We can see that the graph is not really a perfect square wave, this is because we only used 3 of the terms in the Series. We can increase the “resolution” of the square wave by including more terms in the Series. Instead of typing each term into MATLAB, we can use a “for-loop” to create the series to include “n” terms in the Series: 18

Introduction – MATLAB (Example 2) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 2) A “for-loop” is used to implement the Series 19

Introduction – MATLAB (Example 2) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 2) 20

Introduction – MATLAB (Example 2) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 2) We can put the 2 graphs on the same plot for comparison. 21

Introduction – MATLAB (Example 2) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 2) Essentially, the Fourier Series consists of terms with different frequencies. Fundamental component The first term is called fundamental component and the rest of the terms are called the harmonics. We are interested to see the amount of harmonics in this series. 22

Introduction – MATLAB (Example 2) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 2) 23

Introduction – MATLAB (Example 3) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 3) The previous example shows a type of built-in function in MATLAB (i.e. the sin function) You can create your own function in MATLAB and use it anytime. Suppose we want to create a function that is called “vol_cylinder.m”. This function will calculate the volume of a cylinder based on two input parameters: radius, height. 24

Introduction – MATLAB (Example 3) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – MATLAB (Example 3) 25

Introduction – Matlab (Example 3) EECS 1541 -- Introduction to Computing for the Physical Sciences Introduction – Matlab (Example 3) 26