Matlab and Python programming: how to get started
|
|
- Daisy Hutchinson
- 6 years ago
- Views:
Transcription
1 Malab and Pyhon programming: how o ge sared Equipping readers he skills o wrie programs o explore complex sysems and discover ineresing paerns from big daa is one of he main goals of his book. In his chaper, we explain how o do Malab and Pyhon programming. While Malab is imporan for sudying boh complex sysems and big daa, Pyhon is paricularly convenien for dealing wih big daa. The maerials presened here are chosen such ha ) afer sudying his chaper, laymen will no longer be laymen, and 2) seasoned programmers will also feel inspired. We organize he maerials hrough five examples. Example Wrie a malab code o generae a sine wave signal from = sin() () To generae a curve, we have o decide which sampling ime o use as well as how long he curve should be ploed. To his end, we firs noe ha sin() is a periodic funcion wih period 2π. To generae a smooh curve, we have o choose such ha each period is sampled a few ens of imes. To make he curve look like a sine wave, we have o plo ou a few periods of he signal. Based on hese consideraions, he complee malab code, saved as generae sinewave.m, is he following. Noe lines 2-4 are he header. I is beer o include hem in any of your malab codes. The main commands for our purpose are he lines 6, 7, and. In paricular, line 6 says ha sars from and ends a = 6π. The sampling ime inerval is =.. While line 7 is almos self-explanaory, we noe ha in malab, when evaluaing rianglular funcions, radians insead of angles are used. Therefore, if you wan o compue cos(8 ), you wrie cos(pi), where pi denoes π. The linewidh in line specifies he hickness of he curve. Lines 2-5 specify how he curve is ploed. They should be self-explanaory. The curve is ploed in Fig. (a). Wha happens if a differen sampling ime inerval is used? When a smaller is used, visually he curve remains he same. However, if a much larger is used, he curve could look very differen. To see his, you may choose =.6. If you uncommen lines 8 and 9, execue hem, and plo ou x2 vs. 2, you ge he curve shown in Fig. (b). I is quie differen from he sine wave everybody knows. This is because is oo big! So far, all is simple and almos rivial. Now le us play wih somehing more fun. Specifically, we ask: how may we generae oher ypes of plos from he sine wave signal? One ineresing soluion is provided by he ime delay embedding echnique of chaos heory, which we will sudy in deph laer. As a 2-dimensional (2-D) graphical represenaion, he echnique ells us o consruc vecors of he form: V (i) = [x(i),x(i + L)] (2) Associaing he 2 componens wih he x and y axes, he above equaion amouns o ploing x(i+l) vs. x(i). When L = 6, he plo is shown in Fig. (c) (blue curve). I is generaed by he codes given a lines 7 and 8. I is almos a perfec circle. Why is i so? The reason is L =.6. I is very close o π/2. If we wrie x(i) as sin(), hen x(i+l) is close o cos(). Now recall ha in polar coordinaes, a circle is represened by [cosθ,sinθ]. Tha is why he shape of he curve in Fig. (c) is almos a circle. The above argumen makes i clear ha L < 6 will When you save your malab file, you mus save i as.m!
2 make he circle-like curve in Fig. (c) an ellipse along he main diagonal, while 6 < L < 32 an ellipse along he 35 diagonal. In erms of he erminology of nonlinear dynamics, Fig. (c) is a phase space represenaion. The shape of he curve will no change wih he oal ime inerval sin() is evaluaed, so long as he oal ime inerval is slighly longer han one period. Tha is he beauy of phase space represenaion i is more able o capure he invarians of a dynamical process. To beer appreciae he above saemens, le us re-consider he case of =.6. Now we should choose L = so ha he acual ime delay L is he same as before. Based on he curve shown in Fig. (b), we ge Fig. (d). I is no he same as Fig. (c). Why? The reason is successive poins in Fig. (d) are conneced. Since is so big, successive poins on he circle are acually quie far apar. When conneced, somehing like a circular disk emerges in Fig. (d). If we do no connec he poins, we ge he discree poins designaed by red diamonds in Fig. (c). This is obained by un-commening line 9 in he code and execuing i. They all perfecly fall on he uni circle. This is he beauy of invarian dynamics! % g e n e r a e s i n e w a v e.m 2 c l c ; %removes a l l l i n e s i n h e command window 3 c l e a r a l l ; %d e l e e s a l l s o r e d v a r i a b l e s i n h e workspace 4 c l o s e a l l ; %c l o s e s a l l of h e f i g u r e s g e n e r a e d i n h e program 5 6 = :. : 3 p i 2 ; 7 x = s i n ( ) ; 8 % 2 = :. 6 : 2 p i 2 ; 9 %x2 = s i n ( 2 ) ; f i g u r e ; p l o (, x, l i n e w i d h, 2 ) ; 2 a x i s i g h ; 3 s e ( gca, f o n s i z e, 6 ) ; % s p e c i f i e s s i z e of h e numbers on x and y a x i s 4 x l a b e l (, f o n s i z e, 7 ) ; 5 y l a b e l ( s i n ( ), f o n s i z e, 7 ) ; 6 7 L=6; 8 f i g u r e ; p l o ( x ( : end L ), x (+L : end ), l i n e w i d h, 2 ) ; hold on ; 9 %p l o ( x2 ( : end ), x2 ( + : end ), dr, l i n e w i d h, 2, m a r k e r s i z e, 2 ) ; 2 s e ( gca, f o n s i z e, 6 ) ; 2 x l a b e l ( x ( ), f o n s i z e, 7 ) ; 22 y l a b e l ( x ( +L ), f o n s i z e, 7 ) ; 2
3 (a) =..5 sin() (b) =.6.5 sin() (c) (d) x(+l) Figure : Example 2 Explore he dynamics described by he following equaion: = sin() + asin( 5), a =.3 (3) This signal is called a quasi-periodic signal. I describes an imporan ype of moion. Since is a superposiion of wo sinusoidal signals, is i a periodic signal? The answer is no. To see his, we noe ha if is periodic, hen here exiss a period T such ha x( + T ) =. Now, sin() is periodic wih T = 2πn. Similarly, here exiss a T 2 such ha sin( 5( + T 2 )) = sin( 5). This yields T 2 = 2πn 2 / 5. For o be 3
4 periodic, among T and T 2, here mus exis a common T. Consequenly, n = n 2 / 5. Bu his equaion canno hold, since n, n 2 are inegers and n /n 2 is a raional number. Therefore, he signal is aperiodic. To explore he dynamics described by Eq. (3), we may plo he 2-D phase space diagrams. The basic code is given by lines 4-7 and below. The plo is shown in Fig. 2(a). I looks like he ire of a car. In fac, in nonlinear dynamics, i is called a orus. To beer indicae how he signal differs from a rue periodic signal, we have used lines and 2 o indicae he sar and end poins of he phase space diagram by a red circle and a red diamond, respecively. Boh are open ended. This is he essence of aperiodic signals. To beer undersand he difference beween quasi-periodic and periodic signals, le us examine wha happens if we replace 5 by is very crude approximaion, 2.2. Wih he codes a lines 9-23, we obain Fig. 2(b). This is clearly a periodic signal, albei wih a very long period. If we replace 5 by a beer approximaion, hen he period will become longer. These consideraions should help one undersand our earlier argumens beer. % g e n e r a e o r u s.m 2 c l c ; c l e a r a l l ; c l o s e a l l ; 3 4 a =. 3 ; 5 = :. 5 : 5 p i 2 ; 6 x = s i n ( ) +a s i n ( s q r ( 5 ) ) ; 7 L = 2 4 ; 8 f i g u r e ; 9 s u b p l o ( 2 ) ; p l o ( x ( : end L ), x (+L : end ), l i n e w i d h,. 5 ) ; hold on ; p l o ( x ( ), x (+L ), or, m a r k e r s i z e, ) ; 2 p l o ( x ( end L ), x ( end ), dr, m a r k e r s i z e, ) ; 3 s e ( gca, f o n s i z e, 6 ) ; 4 x l a b e l ( x ( ), f o n s i z e, 7 ) ; 5 y l a b e l ( x ( +L ), f o n s i z e, 7 ) ; 6 e x (. 3,. 3, ( a ), f o n s i z e, 6 ) ; 7 xlim ( [. 5,. 5 ] ) ; ylim ( [. 5,. 5 ] ) ; 8 9 x = s i n ( ) +a s i n ( 2. 2 ) ; 2 s u b p l o ( 2 2 ) ; 2 p l o ( x ( : end L ), x (+L : end ), l i n e w i d h,. 5 ) ; hold on ; 22 p l o ( x ( ), x (+L ), or, m a r k e r s i z e, ) ; 23 p l o ( x ( end L ), x ( end ), dr, m a r k e r s i z e, ) ; 24 xlim ( [. 5,. 5 ] ) ; ylim ( [. 5,. 5 ] ) ; 25 s e ( gca, f o n s i z e, 6 ) ; 26 x l a b e l ( x ( ), f o n s i z e, 7 ) ; 27 y l a b e l ( x ( +L ), f o n s i z e, 7 ) ; 28 e x (. 3,. 3, ( b ), f o n s i z e, 6 ) ; 4
5 .5 (a) x(+l) (b) x(+l) Figure 2: Example 3 Examine an exponenial funcion: = e a, a =.5 (4) Now i should be a simple maer o wrie a few lines of codes o generae he funcion. Please see he codes a lines 3-4 and Fig. 3(a). Now le us ask a quesion: If we observe a curve like ha in Fig. 3(a), how do we deermine wheher i is an exponenial funcion or no, and if yes, how do we esimae is parameer? The answer lies in aking logarihm of. Then he curve becomes a sraigh line he slope of he sraigh line 5
6 should be.5. Please see he code a line 4 and Fig. 3(b). Noe ha exponenial funcions can appear in many differen conexs, and he simple echnique discussed here can be very useful in all hose conexs. c l c ; c l e a r a l l ; c l o s e a l l ; 2 3 a =. 5 ; 4 = :. : ; 5 x = exp( a ) ; 6 f i g u r e ; s u b p l o ( 2 ) ; 7 p l o (, x, l i n e w i d h, 2 ) ; 8 s e ( gca, f o n s i z e, 6 ) ; 9 x l a b e l (, f o n s i z e, 8 ) ; y l a b e l ( x ( ), f o n s i z e, 8 ) ; e x ( 9,. 9, ( a ), f o n s i z e, 6 ) ; 2 3 s u b p l o ( 2 2 ) ; 4 p l o (, l o g ( x ), l i n e w i d h, 2 ) ; 5 s e ( gca, f o n s i z e, 6 ) ; 6 x l a b e l (, f o n s i z e, 8 ) ; 7 y l a b e l ( l n ( x ), f o n s i z e, 8 ) ; 8 e x (9,.5, ( b ), f o n s i z e, 6 ) ;.8 (a) (b) ln(x) Figure 3: 6
7 Example 4 Examine a power-law funcion: =.5, (5) As far as coding is concerned, his example is as simple as he las one. Please see he codes a lines 3-5 and Fig. 4(a). Now our quesion becomes he following: If we have observed Fig. 4(a), how do we deermine wheher i is a power-law or no, and if yes, how do we esimae is parameers? The idea lies in ploing ou he curve in double-logarihmic scale. Then we ge a sraigh line he slope of he sraigh line should be.5. Please see he code a line 4 and Fig. 4(b). c l c ; c l e a r a l l ; c l o s e a l l ; 2 3 a =.5; 4 = :. : ; 5 x =. ˆ a ; 6 f i g u r e ; s u b p l o ( 2 ) ; 7 p l o (, x, l i n e w i d h, 2 ) ; 8 s e ( gca, f o n s i z e, 6 ) ; 9 x l a b e l (, f o n s i z e, 8 ) ; y l a b e l ( x ( ), f o n s i z e, 8 ) ; e x ( 9,. 9, ( a ), f o n s i z e, 6 ) ; 2 3 s u b p l o ( 2 2 ) ; 4 p l o ( l o g ( ), l o g ( x ), l i n e w i d h, 2 ) ; a x i s i g h ; 5 s e ( gca, f o n s i z e, 6 ) ; 6 x l a b e l ( l n ( ), f o n s i z e, 8 ) ; 7 y l a b e l ( l n ( x ), f o n s i z e, 8 ) ; 8 e x ( 4. 2,. 6, ( b ), f o n s i z e, 6 ) ; 7
8 .8 (a) (b) 2 ln(x) ln() Figure 4: Example 5 Wrie a code o generae a plo ha resembles a unnel or a ornado. This exercise is open-ended, and here should exis many soluions. Our soluion involves using sinusoidal signals, exponenial signals, and he ime-delay embedding echnique. The code is given below and he plo is given in Fig. 5. I would be beneficial for you o check how he plo changes when you modify par of he code. c l c ; c l e a r a l l ; c l o s e a l l ; 2 3 = :. : 3 p i 2 ; 4 x = 5 s i n ( ). exp (. 3 ) ; 5 L=6; 6 l e n = l e n g h ( ) ; 7 f i g u r e ; 8 p l o 3 ( x ( : len L ) +5 ( : len L ), x (+L : l e n ), ( : len L ), l i n e w i d h, 2 ) ; 9 a x i s o f f ; 8
9 Figure 5: 9
Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.
Lecure - Kinemaics in One Dimension Displacemen, Velociy and Acceleraion Everyhing in he world is moving. Nohing says sill. Moion occurs a all scales of he universe, saring from he moion of elecrons in
More information!!"#"$%&#'()!"#&'(*%)+,&',-)./0)1-*23)
"#"$%&#'()"#&'(*%)+,&',-)./)1-*) #$%&'()*+,&',-.%,/)*+,-&1*#$)()5*6$+$%*,7&*-'-&1*(,-&*6&,7.$%$+*&%'(*8$&',-,%'-&1*(,-&*6&,79*(&,%: ;..,*&1$&$.$%&'()*1$$.,'&',-9*(&,%)?%*,('&5
More information2.7. Some common engineering functions. Introduction. Prerequisites. Learning Outcomes
Some common engineering funcions 2.7 Inroducion This secion provides a caalogue of some common funcions ofen used in Science and Engineering. These include polynomials, raional funcions, he modulus funcion
More informationChapter 7: Solving Trig Equations
Haberman MTH Secion I: The Trigonomeric Funcions Chaper 7: Solving Trig Equaions Le s sar by solving a couple of equaions ha involve he sine funcion EXAMPLE a: Solve he equaion sin( ) The inverse funcions
More informationKINEMATICS IN ONE DIMENSION
KINEMATICS IN ONE DIMENSION PREVIEW Kinemaics is he sudy of how hings move how far (disance and displacemen), how fas (speed and velociy), and how fas ha how fas changes (acceleraion). We say ha an objec
More information8. Basic RL and RC Circuits
8. Basic L and C Circuis This chaper deals wih he soluions of he responses of L and C circuis The analysis of C and L circuis leads o a linear differenial equaion This chaper covers he following opics
More informationSection 3.5 Nonhomogeneous Equations; Method of Undetermined Coefficients
Secion 3.5 Nonhomogeneous Equaions; Mehod of Undeermined Coefficiens Key Terms/Ideas: Linear Differenial operaor Nonlinear operaor Second order homogeneous DE Second order nonhomogeneous DE Soluion o homogeneous
More informationHamilton- J acobi Equation: Explicit Formulas In this lecture we try to apply the method of characteristics to the Hamilton-Jacobi equation: u t
M ah 5 2 7 Fall 2 0 0 9 L ecure 1 0 O c. 7, 2 0 0 9 Hamilon- J acobi Equaion: Explici Formulas In his lecure we ry o apply he mehod of characerisics o he Hamilon-Jacobi equaion: u + H D u, x = 0 in R n
More informationHomework sheet Exercises done during the lecture of March 12, 2014
EXERCISE SESSION 2A FOR THE COURSE GÉOMÉTRIE EUCLIDIENNE, NON EUCLIDIENNE ET PROJECTIVE MATTEO TOMMASINI Homework shee 3-4 - Exercises done during he lecure of March 2, 204 Exercise 2 Is i rue ha he parameerized
More informationLab #2: Kinematics in 1-Dimension
Reading Assignmen: Chaper 2, Secions 2-1 hrough 2-8 Lab #2: Kinemaics in 1-Dimension Inroducion: The sudy of moion is broken ino wo main areas of sudy kinemaics and dynamics. Kinemaics is he descripion
More informationu(x) = e x 2 y + 2 ) Integrate and solve for x (1 + x)y + y = cos x Answer: Divide both sides by 1 + x and solve for y. y = x y + cos x
. 1 Mah 211 Homework #3 February 2, 2001 2.4.3. y + (2/x)y = (cos x)/x 2 Answer: Compare y + (2/x) y = (cos x)/x 2 wih y = a(x)x + f(x)and noe ha a(x) = 2/x. Consequenly, an inegraing facor is found wih
More informationChapter 2. First Order Scalar Equations
Chaper. Firs Order Scalar Equaions We sar our sudy of differenial equaions in he same way he pioneers in his field did. We show paricular echniques o solve paricular ypes of firs order differenial equaions.
More informationTwo Coupled Oscillators / Normal Modes
Lecure 3 Phys 3750 Two Coupled Oscillaors / Normal Modes Overview and Moivaion: Today we ake a small, bu significan, sep owards wave moion. We will no ye observe waves, bu his sep is imporan in is own
More informationThe equation to any straight line can be expressed in the form:
Sring Graphs Par 1 Answers 1 TI-Nspire Invesigaion Suden min Aims Deermine a series of equaions of sraigh lines o form a paern similar o ha formed by he cables on he Jerusalem Chords Bridge. Deermine he
More informationAP Calculus BC Chapter 10 Part 1 AP Exam Problems
AP Calculus BC Chaper Par AP Eam Problems All problems are NO CALCULATOR unless oherwise indicaed Parameric Curves and Derivaives In he y plane, he graph of he parameric equaions = 5 + and y= for, is a
More informationBiol. 356 Lab 8. Mortality, Recruitment, and Migration Rates
Biol. 356 Lab 8. Moraliy, Recruimen, and Migraion Raes (modified from Cox, 00, General Ecology Lab Manual, McGraw Hill) Las week we esimaed populaion size hrough several mehods. One assumpion of all hese
More informationThe average rate of change between two points on a function is d t
SM Dae: Secion: Objecive: The average rae of change beween wo poins on a funcion is d. For example, if he funcion ( ) represens he disance in miles ha a car has raveled afer hours, hen finding he slope
More informationEE 315 Notes. Gürdal Arslan CLASS 1. (Sections ) What is a signal?
EE 35 Noes Gürdal Arslan CLASS (Secions.-.2) Wha is a signal? In his class, a signal is some funcion of ime and i represens how some physical quaniy changes over some window of ime. Examples: velociy of
More information23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes
Represening Periodic Funcions by Fourier Series 3. Inroducion In his Secion we show how a periodic funcion can be expressed as a series of sines and cosines. We begin by obaining some sandard inegrals
More informationModule 2 F c i k c s la l w a s o s f dif di fusi s o i n
Module Fick s laws of diffusion Fick s laws of diffusion and hin film soluion Adolf Fick (1855) proposed: d J α d d d J (mole/m s) flu (m /s) diffusion coefficien and (mole/m 3 ) concenraion of ions, aoms
More information4.5 Constant Acceleration
4.5 Consan Acceleraion v() v() = v 0 + a a() a a() = a v 0 Area = a (a) (b) Figure 4.8 Consan acceleraion: (a) velociy, (b) acceleraion When he x -componen of he velociy is a linear funcion (Figure 4.8(a)),
More informationNon-uniform circular motion *
OpenSax-CNX module: m14020 1 Non-uniform circular moion * Sunil Kumar Singh This work is produced by OpenSax-CNX and licensed under he Creaive Commons Aribuion License 2.0 Wha do we mean by non-uniform
More informationTraveling Waves. Chapter Introduction
Chaper 4 Traveling Waves 4.1 Inroducion To dae, we have considered oscillaions, i.e., periodic, ofen harmonic, variaions of a physical characerisic of a sysem. The sysem a one ime is indisinguishable from
More informationSolutions from Chapter 9.1 and 9.2
Soluions from Chaper 9 and 92 Secion 9 Problem # This basically boils down o an exercise in he chain rule from calculus We are looking for soluions of he form: u( x) = f( k x c) where k x R 3 and k is
More informationSPH3U: Projectiles. Recorder: Manager: Speaker:
SPH3U: Projeciles Now i s ime o use our new skills o analyze he moion of a golf ball ha was ossed hrough he air. Le s find ou wha is special abou he moion of a projecile. Recorder: Manager: Speaker: 0
More informationSolutionbank Edexcel AS and A Level Modular Mathematics
Page of 4 Soluionbank Edexcel AS and A Level Modular Mahemaics Exercise A, Quesion Quesion: Skech he graphs of (a) y = e x + (b) y = 4e x (c) y = e x 3 (d) y = 4 e x (e) y = 6 + 0e x (f) y = 00e x + 0
More informationSome Basic Information about M-S-D Systems
Some Basic Informaion abou M-S-D Sysems 1 Inroducion We wan o give some summary of he facs concerning unforced (homogeneous) and forced (non-homogeneous) models for linear oscillaors governed by second-order,
More informationEXERCISES FOR SECTION 1.5
1.5 Exisence and Uniqueness of Soluions 43 20. 1 v c 21. 1 v c 1 2 4 6 8 10 1 2 2 4 6 8 10 Graph of approximae soluion obained using Euler s mehod wih = 0.1. Graph of approximae soluion obained using Euler
More informationPredator - Prey Model Trajectories and the nonlinear conservation law
Predaor - Prey Model Trajecories and he nonlinear conservaion law James K. Peerson Deparmen of Biological Sciences and Deparmen of Mahemaical Sciences Clemson Universiy Ocober 28, 213 Ouline Drawing Trajecories
More informationVehicle Arrival Models : Headway
Chaper 12 Vehicle Arrival Models : Headway 12.1 Inroducion Modelling arrival of vehicle a secion of road is an imporan sep in raffic flow modelling. I has imporan applicaion in raffic flow simulaion where
More informationSOLUTIONS TO ECE 3084
SOLUTIONS TO ECE 384 PROBLEM 2.. For each sysem below, specify wheher or no i is: (i) memoryless; (ii) causal; (iii) inverible; (iv) linear; (v) ime invarian; Explain your reasoning. If he propery is no
More informationGuest Lectures for Dr. MacFarlane s EE3350 Part Deux
Gues Lecures for Dr. MacFarlane s EE3350 Par Deux Michael Plane Mon., 08-30-2010 Wrie name in corner. Poin ou his is a review, so I will go faser. Remind hem o go lisen o online lecure abou geing an A
More informationHOMEWORK # 2: MATH 211, SPRING Note: This is the last solution set where I will describe the MATLAB I used to make my pictures.
HOMEWORK # 2: MATH 2, SPRING 25 TJ HITCHMAN Noe: This is he las soluion se where I will describe he MATLAB I used o make my picures.. Exercises from he ex.. Chaper 2.. Problem 6. We are o show ha y() =
More information5.2. The Natural Logarithm. Solution
5.2 The Naural Logarihm The number e is an irraional number, similar in naure o π. Is non-erminaing, non-repeaing value is e 2.718 281 828 59. Like π, e also occurs frequenly in naural phenomena. In fac,
More information72 Calculus and Structures
72 Calculus and Srucures CHAPTER 5 DISTANCE AND ACCUMULATED CHANGE Calculus and Srucures 73 Copyrigh Chaper 5 DISTANCE AND ACCUMULATED CHANGE 5. DISTANCE a. Consan velociy Le s ake anoher look a Mary s
More informationSimulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010
Simulaion-Solving Dynamic Models ABE 5646 Week 2, Spring 2010 Week Descripion Reading Maerial 2 Compuer Simulaion of Dynamic Models Finie Difference, coninuous saes, discree ime Simple Mehods Euler Trapezoid
More information) were both constant and we brought them from under the integral.
YIELD-PER-RECRUIT (coninued The yield-per-recrui model applies o a cohor, bu we saw in he Age Disribuions lecure ha he properies of a cohor do no apply in general o a collecion of cohors, which is wha
More information15. Vector Valued Functions
1. Vecor Valued Funcions Up o his poin, we have presened vecors wih consan componens, for example, 1, and,,4. However, we can allow he componens of a vecor o be funcions of a common variable. For example,
More informationSolutions to Assignment 1
MA 2326 Differenial Equaions Insrucor: Peronela Radu Friday, February 8, 203 Soluions o Assignmen. Find he general soluions of he following ODEs: (a) 2 x = an x Soluion: I is a separable equaion as we
More informationPhysics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle
Chaper 2 Newonian Mechanics Single Paricle In his Chaper we will review wha Newon s laws of mechanics ell us abou he moion of a single paricle. Newon s laws are only valid in suiable reference frames,
More informationMath 116 Practice for Exam 2
Mah 6 Pracice for Exam Generaed Ocober 3, 7 Name: SOLUTIONS Insrucor: Secion Number:. This exam has 5 quesions. Noe ha he problems are no of equal difficuly, so you may wan o skip over and reurn o a problem
More informationEE100 Lab 3 Experiment Guide: RC Circuits
I. Inroducion EE100 Lab 3 Experimen Guide: A. apaciors A capacior is a passive elecronic componen ha sores energy in he form of an elecrosaic field. The uni of capaciance is he farad (coulomb/vol). Pracical
More informationQuestion 1: Question 2: Topology Exercise Sheet 3
Topology Exercise Shee 3 Prof. Dr. Alessandro Siso Due o 14 March Quesions 1 and 6 are more concepual and should have prioriy. Quesions 4 and 5 admi a relaively shor soluion. Quesion 7 is harder, and you
More informationLet us start with a two dimensional case. We consider a vector ( x,
Roaion marices We consider now roaion marices in wo and hree dimensions. We sar wih wo dimensions since wo dimensions are easier han hree o undersand, and one dimension is a lile oo simple. However, our
More information23.5. Half-Range Series. Introduction. Prerequisites. Learning Outcomes
Half-Range Series 2.5 Inroducion In his Secion we address he following problem: Can we find a Fourier series expansion of a funcion defined over a finie inerval? Of course we recognise ha such a funcion
More informationSystem of Linear Differential Equations
Sysem of Linear Differenial Equaions In "Ordinary Differenial Equaions" we've learned how o solve a differenial equaion for a variable, such as: y'k5$e K2$x =0 solve DE yx = K 5 2 ek2 x C_C1 2$y''C7$y
More informationPET467E-Analysis of Well Pressure Tests/2008 Spring Semester/İTÜ Midterm Examination (Duration 3:00 hours) Solutions
M. Onur 03.04.008 PET467E-Analysis of Well Pressure Tess/008 Spring Semeser/İTÜ Miderm Examinaion (Duraion 3:00 hours) Soluions Name of he Suden: Insrucions: Before saring he exam, wrie your name clearly
More informationA First Course on Kinetics and Reaction Engineering. Class 19 on Unit 18
A Firs ourse on Kineics and Reacion Engineering lass 19 on Uni 18 Par I - hemical Reacions Par II - hemical Reacion Kineics Where We re Going Par III - hemical Reacion Engineering A. Ideal Reacors B. Perfecly
More information( ) a system of differential equations with continuous parametrization ( T = R + These look like, respectively:
XIII. DIFFERENCE AND DIFFERENTIAL EQUATIONS Ofen funcions, or a sysem of funcion, are paramerized in erms of some variable, usually denoed as and inerpreed as ime. The variable is wrien as a funcion of
More informationDesigning Information Devices and Systems I Spring 2019 Lecture Notes Note 17
EES 16A Designing Informaion Devices and Sysems I Spring 019 Lecure Noes Noe 17 17.1 apaciive ouchscreen In he las noe, we saw ha a capacior consiss of wo pieces on conducive maerial separaed by a nonconducive
More informationMATH 4330/5330, Fourier Analysis Section 6, Proof of Fourier s Theorem for Pointwise Convergence
MATH 433/533, Fourier Analysis Secion 6, Proof of Fourier s Theorem for Poinwise Convergence Firs, some commens abou inegraing periodic funcions. If g is a periodic funcion, g(x + ) g(x) for all real x,
More informationFITTING EQUATIONS TO DATA
TANTON S TAKE ON FITTING EQUATIONS TO DATA CURRICULUM TIDBITS FOR THE MATHEMATICS CLASSROOM MAY 013 Sandard algebra courses have sudens fi linear and eponenial funcions o wo daa poins, and quadraic funcions
More informationDiebold, Chapter 7. Francis X. Diebold, Elements of Forecasting, 4th Edition (Mason, Ohio: Cengage Learning, 2006). Chapter 7. Characterizing Cycles
Diebold, Chaper 7 Francis X. Diebold, Elemens of Forecasing, 4h Ediion (Mason, Ohio: Cengage Learning, 006). Chaper 7. Characerizing Cycles Afer compleing his reading you should be able o: Define covariance
More informationKinematics Vocabulary. Kinematics and One Dimensional Motion. Position. Coordinate System in One Dimension. Kinema means movement 8.
Kinemaics Vocabulary Kinemaics and One Dimensional Moion 8.1 WD1 Kinema means movemen Mahemaical descripion of moion Posiion Time Inerval Displacemen Velociy; absolue value: speed Acceleraion Averages
More informationChapter Q1. We need to understand Classical wave first. 3/28/2004 H133 Spring
Chaper Q1 Inroducion o Quanum Mechanics End of 19 h Cenury only a few loose ends o wrap up. Led o Relaiviy which you learned abou las quarer Led o Quanum Mechanics (1920 s-30 s and beyond) Behavior of
More informationMath 333 Problem Set #2 Solution 14 February 2003
Mah 333 Problem Se #2 Soluion 14 February 2003 A1. Solve he iniial value problem dy dx = x2 + e 3x ; 2y 4 y(0) = 1. Soluion: This is separable; we wrie 2y 4 dy = x 2 + e x dx and inegrae o ge The iniial
More information3.1.3 INTRODUCTION TO DYNAMIC OPTIMIZATION: DISCRETE TIME PROBLEMS. A. The Hamiltonian and First-Order Conditions in a Finite Time Horizon
3..3 INRODUCION O DYNAMIC OPIMIZAION: DISCREE IME PROBLEMS A. he Hamilonian and Firs-Order Condiions in a Finie ime Horizon Define a new funcion, he Hamilonian funcion, H. H he change in he oal value of
More informationLab 10: RC, RL, and RLC Circuits
Lab 10: RC, RL, and RLC Circuis In his experimen, we will invesigae he behavior of circuis conaining combinaions of resisors, capaciors, and inducors. We will sudy he way volages and currens change in
More informationReading from Young & Freedman: For this topic, read sections 25.4 & 25.5, the introduction to chapter 26 and sections 26.1 to 26.2 & 26.4.
PHY1 Elecriciy Topic 7 (Lecures 1 & 11) Elecric Circuis n his opic, we will cover: 1) Elecromoive Force (EMF) ) Series and parallel resisor combinaions 3) Kirchhoff s rules for circuis 4) Time dependence
More information3.6 Derivatives as Rates of Change
3.6 Derivaives as Raes of Change Problem 1 John is walking along a sraigh pah. His posiion a he ime >0 is given by s = f(). He sars a =0from his house (f(0) = 0) and he graph of f is given below. (a) Describe
More informationMath 106: Review for Final Exam, Part II. (x x 0 ) 2 = !
Mah 6: Review for Final Exam, Par II. Use a second-degree Taylor polynomial o esimae 8. We choose f(x) x and x 7 because 7 is he perfec cube closes o 8. f(x) x / f(7) f (x) x / f (7) x / 7 / 7 f (x) 9
More informationFrom Complex Fourier Series to Fourier Transforms
Topic From Complex Fourier Series o Fourier Transforms. Inroducion In he previous lecure you saw ha complex Fourier Series and is coeciens were dened by as f ( = n= C ne in! where C n = T T = T = f (e
More informationEcon107 Applied Econometrics Topic 7: Multicollinearity (Studenmund, Chapter 8)
I. Definiions and Problems A. Perfec Mulicollineariy Econ7 Applied Economerics Topic 7: Mulicollineariy (Sudenmund, Chaper 8) Definiion: Perfec mulicollineariy exiss in a following K-variable regression
More informationNote: For all questions, answer (E) NOTA means none of the above answers is correct.
Thea Logarihms & Eponens 0 ΜΑΘ Naional Convenion Noe: For all quesions, answer means none of he above answers is correc.. The elemen C 4 has a half life of 70 ears. There is grams of C 4 in a paricular
More informationWEEK-3 Recitation PHYS 131. of the projectile s velocity remains constant throughout the motion, since the acceleration a x
WEEK-3 Reciaion PHYS 131 Ch. 3: FOC 1, 3, 4, 6, 14. Problems 9, 37, 41 & 71 and Ch. 4: FOC 1, 3, 5, 8. Problems 3, 5 & 16. Feb 8, 018 Ch. 3: FOC 1, 3, 4, 6, 14. 1. (a) The horizonal componen of he projecile
More information5.1 - Logarithms and Their Properties
Chaper 5 Logarihmic Funcions 5.1 - Logarihms and Their Properies Suppose ha a populaion grows according o he formula P 10, where P is he colony size a ime, in hours. When will he populaion be 2500? We
More informationFinal Spring 2007
.615 Final Spring 7 Overview The purpose of he final exam is o calculae he MHD β limi in a high-bea oroidal okamak agains he dangerous n = 1 exernal ballooning-kink mode. Effecively, his corresponds o
More information= ( ) ) or a system of differential equations with continuous parametrization (T = R
XIII. DIFFERENCE AND DIFFERENTIAL EQUATIONS Ofen funcions, or a sysem of funcion, are paramerized in erms of some variable, usually denoed as and inerpreed as ime. The variable is wrien as a funcion of
More informationRobotics I. April 11, The kinematics of a 3R spatial robot is specified by the Denavit-Hartenberg parameters in Tab. 1.
Roboics I April 11, 017 Exercise 1 he kinemaics of a 3R spaial robo is specified by he Denavi-Harenberg parameers in ab 1 i α i d i a i θ i 1 π/ L 1 0 1 0 0 L 3 0 0 L 3 3 able 1: able of DH parameers of
More informationGround Rules. PC1221 Fundamentals of Physics I. Kinematics. Position. Lectures 3 and 4 Motion in One Dimension. A/Prof Tay Seng Chuan
Ground Rules PC11 Fundamenals of Physics I Lecures 3 and 4 Moion in One Dimension A/Prof Tay Seng Chuan 1 Swich off your handphone and pager Swich off your lapop compuer and keep i No alking while lecure
More informationA Bayesian Approach to Spectral Analysis
Chirped Signals A Bayesian Approach o Specral Analysis Chirped signals are oscillaing signals wih ime variable frequencies, usually wih a linear variaion of frequency wih ime. E.g. f() = A cos(ω + α 2
More informationChapters 6 & 7: Trigonometric Functions of Angles and Real Numbers. Divide both Sides by 180
Algebra Chapers & : Trigonomeric Funcions of Angles and Real Numbers Chapers & : Trigonomeric Funcions of Angles and Real Numbers - Angle Measures Radians: - a uni (rad o measure he size of an angle. rad
More informationKriging Models Predicting Atrazine Concentrations in Surface Water Draining Agricultural Watersheds
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Kriging Models Predicing Arazine Concenraions in Surface Waer Draining Agriculural Waersheds Paul L. Mosquin, Jeremy Aldworh, Wenlin Chen Supplemenal Maerial Number
More informationdt = C exp (3 ln t 4 ). t 4 W = C exp ( ln(4 t) 3) = C(4 t) 3.
Mah Rahman Exam Review Soluions () Consider he IVP: ( 4)y 3y + 4y = ; y(3) = 0, y (3) =. (a) Please deermine he longes inerval for which he IVP is guaraneed o have a unique soluion. Soluion: The disconinuiies
More informationSolutions to Odd Number Exercises in Chapter 6
1 Soluions o Odd Number Exercises in 6.1 R y eˆ 1.7151 y 6.3 From eˆ ( T K) ˆ R 1 1 SST SST SST (1 R ) 55.36(1.7911) we have, ˆ 6.414 T K ( ) 6.5 y ye ye y e 1 1 Consider he erms e and xe b b x e y e b
More informationKEY. Math 334 Midterm I Fall 2008 sections 001 and 003 Instructor: Scott Glasgow
1 KEY Mah 4 Miderm I Fall 8 secions 1 and Insrucor: Sco Glasgow Please do NOT wrie on his eam. No credi will be given for such work. Raher wrie in a blue book, or on our own paper, preferabl engineering
More informationON THE DEGREES OF RATIONAL KNOTS
ON THE DEGREES OF RATIONAL KNOTS DONOVAN MCFERON, ALEXANDRA ZUSER Absrac. In his paper, we explore he issue of minimizing he degrees on raional knos. We se a bound on hese degrees using Bézou s heorem,
More information5. Stochastic processes (1)
Lec05.pp S-38.45 - Inroducion o Teleraffic Theory Spring 2005 Conens Basic conceps Poisson process 2 Sochasic processes () Consider some quaniy in a eleraffic (or any) sysem I ypically evolves in ime randomly
More informationINDEX. Transient analysis 1 Initial Conditions 1
INDEX Secion Page Transien analysis 1 Iniial Condiions 1 Please inform me of your opinion of he relaive emphasis of he review maerial by simply making commens on his page and sending i o me a: Frank Mera
More informationEE 301 Lab 2 Convolution
EE 301 Lab 2 Convoluion 1 Inroducion In his lab we will gain some more experience wih he convoluion inegral and creae a scrip ha shows he graphical mehod of convoluion. 2 Wha you will learn This lab will
More informationSignals and Systems Profs. Byron Yu and Pulkit Grover Fall Midterm 1 Solutions
8-90 Signals and Sysems Profs. Byron Yu and Pulki Grover Fall 07 Miderm Soluions Name: Andrew ID: Problem Score Max 0 8 4 6 5 0 6 0 7 8 9 0 6 Toal 00 Miderm Soluions. (0 poins) Deermine wheher he following
More informationODEs II, Lecture 1: Homogeneous Linear Systems - I. Mike Raugh 1. March 8, 2004
ODEs II, Lecure : Homogeneous Linear Sysems - I Mike Raugh March 8, 4 Inroducion. In he firs lecure we discussed a sysem of linear ODEs for modeling he excreion of lead from he human body, saw how o ransform
More informationStarting from a familiar curve
In[]:= NoebookDirecory Ou[]= C:\Dropbox\Work\myweb\Courses\Mah_pages\Mah_5\ You can evaluae he enire noebook by using he keyboard shorcu Al+v o, or he menu iem Evaluaion Evaluae Noebook. Saring from a
More informationEchocardiography Project and Finite Fourier Series
Echocardiography Projec and Finie Fourier Series 1 U M An echocardiagram is a plo of how a porion of he hear moves as he funcion of ime over he one or more hearbea cycles If he hearbea repeas iself every
More informationEssential Microeconomics : OPTIMAL CONTROL 1. Consider the following class of optimization problems
Essenial Microeconomics -- 6.5: OPIMAL CONROL Consider he following class of opimizaion problems Max{ U( k, x) + U+ ( k+ ) k+ k F( k, x)}. { x, k+ } = In he language of conrol heory, he vecor k is he vecor
More informationPhysics 218 Exam 1. with Solutions Fall 2010, Sections Part 1 (15) Part 2 (20) Part 3 (20) Part 4 (20) Bonus (5)
Physics 18 Exam 1 wih Soluions Fall 1, Secions 51-54 Fill ou he informaion below bu o no open he exam unil insruce o o so! Name Signaure Suen ID E-mail Secion # ules of he exam: 1. You have he full class
More information15. Bicycle Wheel. Graph of height y (cm) above the axle against time t (s) over a 6-second interval. 15 bike wheel
15. Biccle Wheel The graph We moun a biccle wheel so ha i is free o roae in a verical plane. In fac, wha works easil is o pu an exension on one of he axles, and ge a suden o sand on one side and hold he
More informationTime series Decomposition method
Time series Decomposiion mehod A ime series is described using a mulifacor model such as = f (rend, cyclical, seasonal, error) = f (T, C, S, e) Long- Iner-mediaed Seasonal Irregular erm erm effec, effec,
More information3.1 More on model selection
3. More on Model selecion 3. Comparing models AIC, BIC, Adjused R squared. 3. Over Fiing problem. 3.3 Sample spliing. 3. More on model selecion crieria Ofen afer model fiing you are lef wih a handful of
More informationMath 334 Test 1 KEY Spring 2010 Section: 001. Instructor: Scott Glasgow Dates: May 10 and 11.
1 Mah 334 Tes 1 KEY Spring 21 Secion: 1 Insrucor: Sco Glasgow Daes: Ma 1 and 11. Do NOT wrie on his problem saemen bookle, excep for our indicaion of following he honor code jus below. No credi will be
More information4.1 - Logarithms and Their Properties
Chaper 4 Logarihmic Funcions 4.1 - Logarihms and Their Properies Wha is a Logarihm? We define he common logarihm funcion, simply he log funcion, wrien log 10 x log x, as follows: If x is a posiive number,
More informationSeminar 4: Hotelling 2
Seminar 4: Hoelling 2 November 3, 211 1 Exercise Par 1 Iso-elasic demand A non renewable resource of a known sock S can be exraced a zero cos. Demand for he resource is of he form: D(p ) = p ε ε > A a
More informationOn Measuring Pro-Poor Growth. 1. On Various Ways of Measuring Pro-Poor Growth: A Short Review of the Literature
On Measuring Pro-Poor Growh 1. On Various Ways of Measuring Pro-Poor Growh: A Shor eview of he Lieraure During he pas en years or so here have been various suggesions concerning he way one should check
More informationSection 7.4 Modeling Changing Amplitude and Midline
488 Chaper 7 Secion 7.4 Modeling Changing Ampliude and Midline While sinusoidal funcions can model a variey of behaviors, i is ofen necessary o combine sinusoidal funcions wih linear and exponenial curves
More informationMath 115 Final Exam December 14, 2017
On my honor, as a suden, I have neiher given nor received unauhorized aid on his academic work. Your Iniials Only: Iniials: Do no wrie in his area Mah 5 Final Exam December, 07 Your U-M ID # (no uniqname):
More information3, so θ = arccos
Mahemaics 210 Professor Alan H Sein Monday, Ocober 1, 2007 SOLUTIONS This problem se is worh 50 poins 1 Find he angle beween he vecors (2, 7, 3) and (5, 2, 4) Soluion: Le θ be he angle (2, 7, 3) (5, 2,
More informationMath 527 Lecture 6: Hamilton-Jacobi Equation: Explicit Formulas
Mah 527 Lecure 6: Hamilon-Jacobi Equaion: Explici Formulas Sep. 23, 2 Mehod of characerisics. We r o appl he mehod of characerisics o he Hamilon-Jacobi equaion: u +Hx, Du = in R n, u = g on R n =. 2 To
More informationFinish reading Chapter 2 of Spivak, rereading earlier sections as necessary. handout and fill in some missing details!
MAT 257, Handou 6: Ocober 7-2, 20. I. Assignmen. Finish reading Chaper 2 of Spiva, rereading earlier secions as necessary. handou and fill in some missing deails! II. Higher derivaives. Also, read his
More informationADDITIONAL PROBLEMS (a) Find the Fourier transform of the half-cosine pulse shown in Fig. 2.40(a). Additional Problems 91
ddiional Problems 9 n inverse relaionship exiss beween he ime-domain and freuency-domain descripions of a signal. Whenever an operaion is performed on he waveform of a signal in he ime domain, a corresponding
More information