1 Beyond Basics Ⅱ Complex Arithmetic More on Matrices Doing Calculus whit Matlab Jae Hoon Kim Department of Physics Kangwon National University.

Slides:



Advertisements
Similar presentations
Beginning Programming for Engineers
Advertisements

What is the sum of the following infinite series 1+x+x2+x3+…xn… where 0
Calculus S. Awad, Ph.D. M. Corless, M.S.E.E. D. Cinpinski E.C.E. Department University of Michigan-Dearborn Math Review with Matlab: Taylor’s Series.
CSE 123 Symbolic Processing. Declaring Symbolic Variables and Constants To enable symbolic processing, the variables and constants involved must first.
MECH300H Introduction to Finite Element Methods Lecture 2 Review.
Matlab Matlab is a powerful mathematical tool and this tutorial is intended to be an introduction to some of the functions that you might find useful.
AppxA_01fig_PChem.jpg Complex Numbers i. AppxA_02fig_PChem.jpg Complex Conjugate.
Linear system equation Solve the following system of linear equations: 2 x + y – 4 z = 5 x - 2 y - 5 z = y + 2 z = 4 One possible solution is by.
化工應用數學 授課教師: 郭修伯 Lecture 9 Matrices
Derivatives and Differential Equations
Abby Brown Torrey Pines High School
Eigen Values Andras Zakupszki Nuttapon Pichetpongsa Inderjeet Singh Surat Wanamkang.
Today’s class Boundary Value Problems Eigenvalue Problems
Chapter 10 Review: Matrix Algebra
ECON 1150 Matrix Operations Special Matrices
MATLAB Basics With a brief review of linear algebra by Lanyi Xu modified by D.G.E. Robertson.
Linear Algebra/Eigenvalues and eigenvectors. One mathematical tool, which has applications not only for Linear Algebra but for differential equations,
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
SUNY-New Paltz Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz “Lecture 4”
CHAP 0 MATHEMATICAL PRELIMINARY
Properties of Exponents
Array Addition  Two arrays can be added if and only if both arrays have exactly the same dimensions.  Assuming the dimension requirement is satisfied,
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
AppxA_01fig_PChem.jpg Complex Numbers i. AppxA_02fig_PChem.jpg Complex Conjugate * - z* =(a, -b)
CMPS 1371 Introduction to Computing for Engineers MATRICES.
MATLAB Basics. The following screen will appear when you start up Matlab. All of the commands that will be discussed should be typed at the >> prompt.
Unit 3: Matrices.
1 MatLab Basics Jae Hoon Kim Department of Physics Kangwon National University It contains hundreds of commands to do mathematics. Graph functions, solve.
12.4 – Find Sums of Infinite Geometric Series. Think about this… What will happen when n becomes really big? It will get closer and closer to zero.
Series Ch. 13.
AP Calculus 2005: 240,000 Currently growing at ~13,000/year.
Introduction to MATLAB
MATLAB 程式設計 Learning Linear Algebra 方煒 台大生機系. MATLAB 程式設計 Vector Products, Dot and Cross a=[1,2,3];b=[3,2,1]; C=a*b D=a.*b E=dot(a,b) F=cross(a,b)
Introduction to Matlab
Introduction to MATLAB Session 1 Simopekka Vänskä, THL 2010.
Rotation matrices 1 Constructing rotation matricesEigenvectors and eigenvalues 0 x y.
Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz SUNY-New Paltz “Lecture 2”
What is the determinant of What is the determinant of
Eigenvalues The eigenvalue problem is to determine the nontrivial solutions of the equation Ax= x where A is an n-by-n matrix, x is a length n column.
Introduction to Linear Algebra Mark Goldman Emily Mackevicius.
The Mathematics for Chemists (I) (Fall Term, 2004) (Fall Term, 2005) (Fall Term, 2006) Department of Chemistry National Sun Yat-sen University 化學數學(一)
Review of Matrix Operations Vector: a sequence of elements (the order is important) e.g., x = (2, 1) denotes a vector length = sqrt(2*2+1*1) orientation.
Signal & Weight Vector Spaces
The MatLab Language Mathematics Laboratory The MathWorks
Mod-2 Vector Arithmetic For 2 binary n-vectors a and b –All components of a and b are elements of {0,1} –The mod-2 sum, c = a+b is term-by-term mod-2 sum.
Copyright © 2011 Pearson, Inc. 9.5 Series Goals: Use sigma notation to find the finite sums of terms in arithmetic and geometric sequences. Find sums of.
ENG College of Engineering Engineering Education Innovation Center 1 Array Operations in MATLAB 1.Types of Matrix arithmetic 2.Dot operators Mathematical.
Programming For Nuclear Engineers Lecture 11 MATLAB (2) 1.
1/15 Fun Matrix Facts and Tricks Ben G. Fitzpatrick Department of Mathematics Loyola Marymount University One LMU Drive.
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
EEE 242 Computer Tools for Electrical Engineering Lecture IV Mustafa KARABULUT.
Array and Matrix Operations EE 201 Fall  Achieve Comprehension LOL of Array and Matrix Operations. Class Learning Objectives 2.
Beyond Vectors Hung-yi Lee. Introduction Many things can be considered as “vectors”. E.g. a function can be regarded as a vector We can apply the concept.
Mathematical Applications By Matlab 3 rd Day Dr. Wael Khedr CSI Dept.
2. Matrix Methods
Introduction to Vectors and Matrices
11.3 – Geometric Sequences and Series
Linear Algebraic Equations and Matrices
Aim: What is the geometric series ?
Section 7.4 Matrix Algebra.
An Introduction to Maple
SKTN 2393 Numerical Methods for Nuclear Engineers
Linear Algebra Lecture 32.
Basics of Linear Algebra
Use power series to solve the differential equation. y ' = 7xy
9.5 Series.
MTH-4106 Pretest D For questions 1 to 7 factor the following polynomials. 1. x2  3xy  54y x2  21x  a2 – 12a + 45ab  9b.
Geometric Sequences and Series
Presentation transcript:

1 Beyond Basics Ⅱ Complex Arithmetic More on Matrices Doing Calculus whit Matlab Jae Hoon Kim Department of Physics Kangwon National University

2 Complex Arithmetic Matlab 에서 복소수는 'i' 를 사용하여 나타낸다. >> solve('x^2 + 2*x + 2 = 0') ans = [-1+i] [-1-i] >> (2 + 3*i)*(4 - i) ans = i

3 More on Matrices Element-by-element operation >> A.*B (element-by-element product) >> A./B (element-by-element quotient) A : vector >> A.^C (raising each of the elements) B&C :vector or scalar submatrice 구하기 ① >> a(4,[1 2]) ans = 12 ② >> a(2:3,2:4) ans =

4 Special Matrices >> zeros(2,3) ( 모든 element 가 0 인 행렬 ) ans = 000 >> ones(2,3) ( 모든 element 가 1 인 행렬 ) ans = 111 >> eyes(3) ( 단위 행렬 ) ans =

5 solving Linear Systems 연립일차방정식의 풀이 2x+3y=2 x+2y=3 >> A=[2 3;1 2] A = >> b=[2; 3] b = 2 3 >> x=A\b ( 행렬의 오른쪽 나눗셈 ('/'), 행렬의 왼쪽 나눗셈 (' \ ')) x = -5 4

6 calculating Eigenvalues and Eigenvectors >> A = [3 -2 0; ; 0 1 1]; >> eig (A) ( 행렬 A 의 eigenvalues 값을 구한다 ) ans = 1 2 >> [U, R] = eig(A) (U 는 eigenvectors 값을 R 에는 eigenvalues 값을 출력함 ) U = R =

7 Doing Calculus whit MATLAB Differentiation >> syms x; diff(x^3) ans = 3*x^2 >> f = inline('x^3', 'x'); diff(f(x)) ans = 3*x^2 >> diff(f(x), 2) (2 차 미분 ) ans= 6*x 미분방정식 풀이 xy'+1 =y >>dsolve('x*Dy + 1 = y', 'x') ans= 1+x*C1

8 Integration ( 부정적분 ) >> int('x^2', 'x') ans = 1/3*x^3 ( 정적분 ) >>syms x; int(asin(x), 0, 1) ans = 1/2*pi-1 ( 수치적분 ) >>quadl('exp(-x.^4)', 0, 1) ans = ( 이중 적분 ) >> syms x y; int(int(x^2+y^2, y, 0, sin(x)), 0, pi) ans = pi^2-32/9

9 Limits >> limit(abs(x)/x, x, 0, 'left') (left: 좌극한 right: 우극한 abs: 절대값 ) ans = >>limit(abs(x)/x, x, inf) (inf: 무한대 ) ans = 1

10 Sums and Products >> x = 1:7; >> sum(x) ans = 28 >> prod(x) ans = 5040 >> syms k n; symsum(1/k-1/(k+1), 1,n) ans = -1/(n+1)+1 >>syms n; symsum(1/n^2, 1, inf) ans = 1/6*pi^2 (finite symbolic sum) (infinite symbolic sum)

11 Taylor Series >> syms x; taylor(sin(x), x, 10) (sinx 를 x 에 대하여 10 차 항까지 전개 ) ans = x-1/6*x^3+1/120*x^5-1/5040*x^7+1/362880*x^9