CS Software Engineering for Scientific Computing. Lecture 16: Particle Methods; Homework #4

Size: px
Start display at page:

Download "CS 294-73 Software Engineering for Scientific Computing. http://www.cs.berkeley.edu/~colella/cs294fall2013. Lecture 16: Particle Methods; Homework #4"

Transcription

1 CS Software Engineering for Scientific Computing Lecture 16: Particle Methods; Homework #4

2 Discretizing Time-Dependent Problems From here on in, we will have occasion to solve timeevolution equations. Abstractly, these take the form of ordinary differential equations. In particle dynamics, this is how the problem is stated. {x k, v k,w k } N k=1 dx k = v k dt dv k = F (x k ) dt F (x) = X k 0 w k 0(r )(x x k 0) 2!

3 Discretizing Time-Dependent Problems We can convert discretizations of partial differential equations to systems of ordinary differential equations by discretizing in space first, which then leads to a system of ODEs for the spatially discretized variables. 3!

4 Particle Discretizations of PDE Particle discretizations fall into the latter category, since they start with a particular spatial discretization of the Lagrangian form of the equations. 4!

5 Discretizing ODEs To discretize ODEs, we replace derivatives by difference approximations. We will focus here on one-step methods: q is the order of accuracy of the method: Q n = Q(n Δt) + (Δt) p. Closely related to quadrature formulas for approximating integrals. 5!

6 Discretizing ODEs To discretize ODEs, we replace derivatives by difference approximations. We will focus here on one-step methods: q is the order of accuracy of the method: Q n = Q(n Δt) + (Δt) q. Closely related to quadrature formulas for approximating integrals. Essential question: for what choices of stable? Answer: check for are various methods Stability region is given in terms of. In the general case, s are the eigenvalues of the matrix. 6!

7 Discretizing ODEs Some simple examples: Forward Euler: stable if Backward Euler: stable if, Trapezoidal rule: 7!

8 Discretizing ODEs Generally, use implicit methods if there are modes for which, and the time step for an explicit method would be much smaller than the one required to resolve the effective dynamics. For particles, we typically use explicit methods., 8!

9 Discretizing ODEs Fourth-order Runge-Kutta: Generalizes Simpson s rule for integrals. 9!

10 Programming ODE Methods Generic programming: only want to do it once.! template <class X, class F, class dx> class RK4! {!!public: void advance(double a_time, double a_dt, X& a_state);!!protected:!!dx m_k;!!dx m_delta;!!f m_f;! };! 10!

11 Programming ODE Methods Generic programming: only want to do it once.! template <class X, class F, class dx>! void RK4<X,F,dX>::advance(double a_time, double a_dt, X& a_state)! {!!m_delta.init(a_state);! m_k.init(a_state);! m_f(m_k, a_time, a_dt, a_state, m_k); // compute k1!!// F::operator()(dX,Real,X,dX);! m_delta.increment(sixth, m_k); m_k*=half;! m_f(m_k, a_time+half*a_dt, a_dt, a_state, m_k); // compute k2 m_delta.increment(third, m_k); m_k*=half;!!m_f(m_k, a_time+half*a_dt, a_dt, a_state, m_k); // conpute k3 m_delta.increment(third, m_k);!!m_f(m_k, a_time+a_dt, a_dt, a_state, m_k); // compute k4 m_delta.increment(sixth, m_k);! a_state.increment(m_delta);! }! 11!

12 Discretizing ODEs Fourth-order Runge-Kutta: Generalizes Simpson s rule for integrals. 12!

13 Programming ODE Methods Generic programming: only want to do it once.! template <class X, class F, class dx>! void RK4<X,F,dX>::advance(double a_time, double a_dt, X& a_state)! {!!m_delta.init(a_state);! m_k.init(a_state);! m_f(m_k, a_time, a_dt, a_state, m_k); // compute k1 m_delta.increment(sixth, m_k); m_k*=half;! m_f(m_k, a_time+half*a_dt, a_dt, a_state, m_k); // compute k2 m_delta.increment(third, m_k); m_k*=half;!!m_f(m_k, a_time+half*a_dt, a_dt, a_state, m_k); // conpute k3 m_delta.increment(third, m_k);!!m_f(m_k, a_time+a_dt, a_dt, a_state, m_k); // compute k4 m_delta.increment(sixth, m_k);! a_state.increment(m_delta);! }! 13!

14 Programming Assignment 4 An experiment: PIC methods for vorticity, but regularized using the theory. Algorithmic issues Software / implementation. 14!

15 Regularized particle methods Particle method for vorticity transport in 2D. α < 1 essential for stability. 15!

16 Regularized particle methods 16!

17 Test Problem 17!

18 Particle-in-cell Methods The velocity induced by a single particle on itself is zero. 18!

19 Particle-in-cell Methods 19!

20 Particle-in-cell Methods Difficulty with particle-in-cell methods: marginally stable for long-time integration. 20!

21 Regularized PIC Conjecture: problem with PIC is that the regularization corresponds to alpha = 1. 21!

22 Division of Labor I will provide an implementation of Hockney s algorithm for computing as well as the templated RK4 class. You will implement the rest of the particle method: Deposition of charge and calculation of velocity field. The template classes X, dx, F appropriate to the PIC method. 22!

23 Bin Sorting class Particle{...} // Describes a single particle: position, vorticity.! vector<particle> particles;! // This is your persistent data representation of particles.! RectMDArray<vector<int> >;! // Whenever you evaluate the forces, step one will be to binsort. Each! // element of the vector contains the index into element of the! // vector<particle> particles contained in that bin.! 23!

Finite Difference Approach to Option Pricing

Finite Difference Approach to Option Pricing Finite Difference Approach to Option Pricing February 998 CS5 Lab Note. Ordinary differential equation An ordinary differential equation, or ODE, is an equation of the form du = fut ( (), t) (.) dt where

More information

Notes for AA214, Chapter 7. T. H. Pulliam Stanford University

Notes for AA214, Chapter 7. T. H. Pulliam Stanford University Notes for AA214, Chapter 7 T. H. Pulliam Stanford University 1 Stability of Linear Systems Stability will be defined in terms of ODE s and O E s ODE: Couples System O E : Matrix form from applying Eq.

More information

Numerical Analysis An Introduction

Numerical Analysis An Introduction Walter Gautschi Numerical Analysis An Introduction 1997 Birkhauser Boston Basel Berlin CONTENTS PREFACE xi CHAPTER 0. PROLOGUE 1 0.1. Overview 1 0.2. Numerical analysis software 3 0.3. Textbooks and monographs

More information

AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS

AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS Revised Edition James Epperson Mathematical Reviews BICENTENNIAL 0, 1 8 0 7 z ewiley wu 2007 r71 BICENTENNIAL WILEY-INTERSCIENCE A John Wiley & Sons, Inc.,

More information

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 10

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 10 Lecture Notes to Accompany Scientific Computing An Introductory Survey Second Edition by Michael T. Heath Chapter 10 Boundary Value Problems for Ordinary Differential Equations Copyright c 2001. Reproduction

More information

Interactive simulation of an ash cloud of the volcano Grímsvötn

Interactive simulation of an ash cloud of the volcano Grímsvötn Interactive simulation of an ash cloud of the volcano Grímsvötn 1 MATHEMATICAL BACKGROUND Simulating flows in the atmosphere, being part of CFD, is on of the research areas considered in the working group

More information

PSTricks. pst-ode. A PSTricks package for solving initial value problems for sets of Ordinary Differential Equations (ODE), v0.7.

PSTricks. pst-ode. A PSTricks package for solving initial value problems for sets of Ordinary Differential Equations (ODE), v0.7. PSTricks pst-ode A PSTricks package for solving initial value problems for sets of Ordinary Differential Equations (ODE), v0.7 27th March 2014 Package author(s): Alexander Grahn Contents 2 Contents 1 Introduction

More information

Homework 2 Solutions

Homework 2 Solutions Homework Solutions Igor Yanovsky Math 5B TA Section 5.3, Problem b: Use Taylor s method of order two to approximate the solution for the following initial-value problem: y = + t y, t 3, y =, with h = 0.5.

More information

Numerical Methods for Engineers

Numerical Methods for Engineers Steven C. Chapra Berger Chair in Computing and Engineering Tufts University RaymondP. Canale Professor Emeritus of Civil Engineering University of Michigan Numerical Methods for Engineers With Software

More information

ABSTRACT FOR THE 1ST INTERNATIONAL WORKSHOP ON HIGH ORDER CFD METHODS

ABSTRACT FOR THE 1ST INTERNATIONAL WORKSHOP ON HIGH ORDER CFD METHODS 1 ABSTRACT FOR THE 1ST INTERNATIONAL WORKSHOP ON HIGH ORDER CFD METHODS Sreenivas Varadan a, Kentaro Hara b, Eric Johnsen a, Bram Van Leer b a. Department of Mechanical Engineering, University of Michigan,

More information

Numerical Analysis Introduction. Student Audience. Prerequisites. Technology.

Numerical Analysis Introduction. Student Audience. Prerequisites. Technology. Numerical Analysis Douglas Faires, Youngstown State University, (Chair, 2012-2013) Elizabeth Yanik, Emporia State University, (Chair, 2013-2015) Graeme Fairweather, Executive Editor, Mathematical Reviews,

More information

Lecture 8 : Dynamic Stability

Lecture 8 : Dynamic Stability Lecture 8 : Dynamic Stability Or what happens to small disturbances about a trim condition 1.0 : Dynamic Stability Static stability refers to the tendency of the aircraft to counter a disturbance. Dynamic

More information

Discrete mechanics, optimal control and formation flying spacecraft

Discrete mechanics, optimal control and formation flying spacecraft Discrete mechanics, optimal control and formation flying spacecraft Oliver Junge Center for Mathematics Munich University of Technology joint work with Jerrold E. Marsden and Sina Ober-Blöbaum partially

More information

SIXTY STUDY QUESTIONS TO THE COURSE NUMERISK BEHANDLING AV DIFFERENTIALEKVATIONER I

SIXTY STUDY QUESTIONS TO THE COURSE NUMERISK BEHANDLING AV DIFFERENTIALEKVATIONER I Lennart Edsberg, Nada, KTH Autumn 2008 SIXTY STUDY QUESTIONS TO THE COURSE NUMERISK BEHANDLING AV DIFFERENTIALEKVATIONER I Parameter values and functions occurring in the questions belowwill be exchanged

More information

16.1 Runge-Kutta Method

16.1 Runge-Kutta Method 70 Chapter 6. Integration of Ordinary Differential Equations CITED REFERENCES AND FURTHER READING: Gear, C.W. 97, Numerical Initial Value Problems in Ordinary Differential Equations (Englewood Cliffs,

More information

Numerical methods for American options

Numerical methods for American options Lecture 9 Numerical methods for American options Lecture Notes by Andrzej Palczewski Computational Finance p. 1 American options The holder of an American option has the right to exercise it at any moment

More information

440 Geophysics: Heat flow with finite differences

440 Geophysics: Heat flow with finite differences 440 Geophysics: Heat flow with finite differences Thorsten Becker, University of Southern California, 03/2005 Some physical problems, such as heat flow, can be tricky or impossible to solve analytically

More information

Figure 1 - Unsteady-State Heat Conduction in a One-dimensional Slab

Figure 1 - Unsteady-State Heat Conduction in a One-dimensional Slab The Numerical Method of Lines for Partial Differential Equations by Michael B. Cutlip, University of Connecticut and Mordechai Shacham, Ben-Gurion University of the Negev The method of lines is a general

More information

On computer algebra-aided stability analysis of dierence schemes generated by means of Gr obner bases

On computer algebra-aided stability analysis of dierence schemes generated by means of Gr obner bases On computer algebra-aided stability analysis of dierence schemes generated by means of Gr obner bases Vladimir Gerdt 1 Yuri Blinkov 2 1 Laboratory of Information Technologies Joint Institute for Nuclear

More information

APPLIED MATHEMATICS ADVANCED LEVEL

APPLIED MATHEMATICS ADVANCED LEVEL APPLIED MATHEMATICS ADVANCED LEVEL INTRODUCTION This syllabus serves to examine candidates knowledge and skills in introductory mathematical and statistical methods, and their applications. For applications

More information

Stability Analysis for Systems of Differential Equations

Stability Analysis for Systems of Differential Equations Stability Analysis for Systems of Differential Equations David Eberly Geometric Tools, LLC http://wwwgeometrictoolscom/ Copyright c 1998-2016 All Rights Reserved Created: February 8, 2003 Last Modified:

More information

Chapter 3: Mathematical Models and Numerical Methods Involving First-Order Differential Equations

Chapter 3: Mathematical Models and Numerical Methods Involving First-Order Differential Equations Massasoit Community College Instructor: Office: Email: Phone: Office Hours: Course: Differential Equations Course Number: MATH230-XX Semester: Classroom: Day and Time: Course Description: This course is

More information

Solving ODEs in Matlab. BP205 M.Tremont 1.30.2009

Solving ODEs in Matlab. BP205 M.Tremont 1.30.2009 Solving ODEs in Matlab BP205 M.Tremont 1.30.2009 - Outline - I. Defining an ODE function in an M-file II. III. IV. Solving first-order ODEs Solving systems of first-order ODEs Solving higher order ODEs

More information

Fast solver for the three-factor Heston-Hull/White problem. F.H.C. Naber Floris.Naber@INGbank.com tw1108735

Fast solver for the three-factor Heston-Hull/White problem. F.H.C. Naber Floris.Naber@INGbank.com tw1108735 Fast solver for the three-factor Heston-Hull/White problem F.H.C. Naber Floris.Naber@INGbank.com tw8735 Amsterdam march 27 Contents Introduction 2. Stochastic Models..........................................

More information

5 Numerical Differentiation

5 Numerical Differentiation D. Levy 5 Numerical Differentiation 5. Basic Concepts This chapter deals with numerical approximations of derivatives. The first questions that comes up to mind is: why do we need to approximate derivatives

More information

A QUICK GUIDE TO THE FORMULAS OF MULTIVARIABLE CALCULUS

A QUICK GUIDE TO THE FORMULAS OF MULTIVARIABLE CALCULUS A QUIK GUIDE TO THE FOMULAS OF MULTIVAIABLE ALULUS ontents 1. Analytic Geometry 2 1.1. Definition of a Vector 2 1.2. Scalar Product 2 1.3. Properties of the Scalar Product 2 1.4. Length and Unit Vectors

More information

Numerical Solution of Differential Equations

Numerical Solution of Differential Equations Numerical Solution of Differential Equations 3 rd year JMC group project Summer Term 2004 Supervisor: Prof. Jeff Cash Saeed Amen Paul Bilokon Adam Brinley Codd Minal Fofaria Tejas Shah Agenda Adam: Differential

More information

The integrating factor method (Sect. 2.1).

The integrating factor method (Sect. 2.1). The integrating factor method (Sect. 2.1). Overview of differential equations. Linear Ordinary Differential Equations. The integrating factor method. Constant coefficients. The Initial Value Problem. Variable

More information

Numerical Methods for Differential Equations

Numerical Methods for Differential Equations Numerical Methods for Differential Equations Course objectives and preliminaries Gustaf Söderlind and Carmen Arévalo Numerical Analysis, Lund University Textbooks: A First Course in the Numerical Analysis

More information

Dynamics. Basilio Bona. DAUIN-Politecnico di Torino. Basilio Bona (DAUIN-Politecnico di Torino) Dynamics 2009 1 / 30

Dynamics. Basilio Bona. DAUIN-Politecnico di Torino. Basilio Bona (DAUIN-Politecnico di Torino) Dynamics 2009 1 / 30 Dynamics Basilio Bona DAUIN-Politecnico di Torino 2009 Basilio Bona (DAUIN-Politecnico di Torino) Dynamics 2009 1 / 30 Dynamics - Introduction In order to determine the dynamics of a manipulator, it is

More information

Lecture. S t = S t δ[s t ].

Lecture. S t = S t δ[s t ]. Lecture In real life the vast majority of all traded options are written on stocks having at least one dividend left before the date of expiration of the option. Thus the study of dividends is important

More information

5.4 The Heat Equation and Convection-Diffusion

5.4 The Heat Equation and Convection-Diffusion 5.4. THE HEAT EQUATION AND CONVECTION-DIFFUSION c 6 Gilbert Strang 5.4 The Heat Equation and Convection-Diffusion The wave equation conserves energy. The heat equation u t = u xx dissipates energy. The

More information

Does Black-Scholes framework for Option Pricing use Constant Volatilities and Interest Rates? New Solution for a New Problem

Does Black-Scholes framework for Option Pricing use Constant Volatilities and Interest Rates? New Solution for a New Problem Does Black-Scholes framework for Option Pricing use Constant Volatilities and Interest Rates? New Solution for a New Problem Gagan Deep Singh Assistant Vice President Genpact Smart Decision Services Financial

More information

3.2 Sources, Sinks, Saddles, and Spirals

3.2 Sources, Sinks, Saddles, and Spirals 3.2. Sources, Sinks, Saddles, and Spirals 6 3.2 Sources, Sinks, Saddles, and Spirals The pictures in this section show solutions to Ay 00 C By 0 C Cy D 0. These are linear equations with constant coefficients

More information

Time domain modeling

Time domain modeling Time domain modeling Equationof motion of a WEC Frequency domain: Ok if all effects/forces are linear M+ A ω X && % ω = F% ω K + K X% ω B ω + B X% & ω ( ) H PTO PTO + others Time domain: Must be linear

More information

MAT 242 Test 2 SOLUTIONS, FORM T

MAT 242 Test 2 SOLUTIONS, FORM T MAT 242 Test 2 SOLUTIONS, FORM T 5 3 5 3 3 3 3. Let v =, v 5 2 =, v 3 =, and v 5 4 =. 3 3 7 3 a. [ points] The set { v, v 2, v 3, v 4 } is linearly dependent. Find a nontrivial linear combination of these

More information

Dynamical Systems Analysis II: Evaluating Stability, Eigenvalues

Dynamical Systems Analysis II: Evaluating Stability, Eigenvalues Dynamical Systems Analysis II: Evaluating Stability, Eigenvalues By Peter Woolf pwoolf@umich.edu) University of Michigan Michigan Chemical Process Dynamics and Controls Open Textbook version 1.0 Creative

More information

Lecture 6 Black-Scholes PDE

Lecture 6 Black-Scholes PDE Lecture 6 Black-Scholes PDE Lecture Notes by Andrzej Palczewski Computational Finance p. 1 Pricing function Let the dynamics of underlining S t be given in the risk-neutral measure Q by If the contingent

More information

Modeling of Earth Surface Dynamics and Related Problems Using OpenFOAM

Modeling of Earth Surface Dynamics and Related Problems Using OpenFOAM CSDMS 2013 Meeting Modeling of Earth Surface Dynamics and Related Problems Using OpenFOAM Xiaofeng Liu, Ph.D., P.E. Assistant Professor Department of Civil and Environmental Engineering University of Texas

More information

Chapter 5. Methods for ordinary differential equations. 5.1 Initial-value problems

Chapter 5. Methods for ordinary differential equations. 5.1 Initial-value problems Chapter 5 Methods for ordinary differential equations 5.1 Initial-value problems Initial-value problems (IVP) are those for which the solution is entirely known at some time, say t = 0, and the question

More information

Code: MATH 274 Title: ELEMENTARY DIFFERENTIAL EQUATIONS

Code: MATH 274 Title: ELEMENTARY DIFFERENTIAL EQUATIONS Code: MATH 274 Title: ELEMENTARY DIFFERENTIAL EQUATIONS Institute: STEM Department: MATHEMATICS Course Description: This is an introductory course in concepts and applications of differential equations.

More information

Computer programming course in the Department of Physics, University of Calcutta

Computer programming course in the Department of Physics, University of Calcutta Computer programming course in the Department of Physics, University of Calcutta Parongama Sen with inputs from Prof. S. Dasgupta and Dr. J. Saha and feedback from students Computer programming course

More information

SOLVING LINEAR SYSTEMS

SOLVING LINEAR SYSTEMS SOLVING LINEAR SYSTEMS Linear systems Ax = b occur widely in applied mathematics They occur as direct formulations of real world problems; but more often, they occur as a part of the numerical analysis

More information

GEC320 COURSE COMPACT. Four hours per week for 15 weeks (60 hours)

GEC320 COURSE COMPACT. Four hours per week for 15 weeks (60 hours) GEC320 COURSE COMPACT Course Course code: GEC 320 Course title: Course status: Course Duration Numerical Methods (2 units) Compulsory Four hours per week for 15 weeks (60 hours) Lecturer Data Name: Engr.

More information

7 Gaussian Elimination and LU Factorization

7 Gaussian Elimination and LU Factorization 7 Gaussian Elimination and LU Factorization In this final section on matrix factorization methods for solving Ax = b we want to take a closer look at Gaussian elimination (probably the best known method

More information

Corrections to the First Printing

Corrections to the First Printing Corrections to the First Printing Chapter 2 (i) Page 48, Paragraph 1: cells/µ l should be cells/µl without the space. (ii) Page 48, Paragraph 2: Uninfected cells T i should not have the asterisk. Chapter

More information

Numerical Resolution Of The Schrödinger Equation

Numerical Resolution Of The Schrödinger Equation École Normale Supérieure de Lyon Master Sciences de la Matière 2011 Numerical Analysis Project Numerical Resolution Of The Schrödinger Equation Loren Jørgensen, David Lopes Cardozo, Etienne Thibierge Abstract

More information

Numerical Solution of Differential Equations

Numerical Solution of Differential Equations Numerical Solution of Differential Equations Dr. Alvaro Islas Applications of Calculus I Spring 2008 We live in a world in constant change We live in a world in constant change We live in a world in constant

More information

A Brief Review of Elementary Ordinary Differential Equations

A Brief Review of Elementary Ordinary Differential Equations 1 A Brief Review of Elementary Ordinary Differential Equations At various points in the material we will be covering, we will need to recall and use material normally covered in an elementary course on

More information

To give it a definition, an implicit function of x and y is simply any relationship that takes the form:

To give it a definition, an implicit function of x and y is simply any relationship that takes the form: 2 Implicit function theorems and applications 21 Implicit functions The implicit function theorem is one of the most useful single tools you ll meet this year After a while, it will be second nature to

More information

The Fourth International DERIVE-TI92/89 Conference Liverpool, U.K., 12-15 July 2000. Derive 5: The Easiest... Just Got Better!

The Fourth International DERIVE-TI92/89 Conference Liverpool, U.K., 12-15 July 2000. Derive 5: The Easiest... Just Got Better! The Fourth International DERIVE-TI9/89 Conference Liverpool, U.K., -5 July 000 Derive 5: The Easiest... Just Got Better! Michel Beaudin École de technologie supérieure 00, rue Notre-Dame Ouest Montréal

More information

1 Finite difference example: 1D implicit heat equation

1 Finite difference example: 1D implicit heat equation 1 Finite difference example: 1D implicit heat equation 1.1 Boundary conditions Neumann and Dirichlet We solve the transient heat equation ρc p t = ( k ) (1) on the domain L/2 x L/2 subject to the following

More information

Separable First Order Differential Equations

Separable First Order Differential Equations Separable First Order Differential Equations Form of Separable Equations which take the form = gx hy or These are differential equations = gxĥy, where gx is a continuous function of x and hy is a continuously

More information

Modeling Rotor Wakes with a Hybrid OVERFLOW-Vortex Method on a GPU Cluster

Modeling Rotor Wakes with a Hybrid OVERFLOW-Vortex Method on a GPU Cluster Modeling Rotor Wakes with a Hybrid OVERFLOW-Vortex Method on a GPU Cluster Mark J. Stock, Ph.D., Adrin Gharakhani, Sc.D. Applied Scientific Research, Santa Ana, CA Christopher P. Stone, Ph.D. Computational

More information

Integration. Topic: Trapezoidal Rule. Major: General Engineering. Author: Autar Kaw, Charlie Barker. http://numericalmethods.eng.usf.

Integration. Topic: Trapezoidal Rule. Major: General Engineering. Author: Autar Kaw, Charlie Barker. http://numericalmethods.eng.usf. Integration Topic: Trapezoidal Rule Major: General Engineering Author: Autar Kaw, Charlie Barker 1 What is Integration Integration: The process of measuring the area under a function plotted on a graph.

More information

Outline Servo Control

Outline Servo Control Outline Servo Control Servo-Motor Drivers Control Modes orque Capability Servo-control Systems Direct/Indirect Control System Control Algorithm Implementation Controller Design by Emulation Discretization

More information

Definition and Properties of the Production Function: Lecture

Definition and Properties of the Production Function: Lecture Definition and Properties of the Production Function: Lecture II August 25, 2011 Definition and : Lecture A Brief Brush with Duality Cobb-Douglas Cost Minimization Lagrangian for the Cobb-Douglas Solution

More information

Numerical Matrix Analysis

Numerical Matrix Analysis Numerical Matrix Analysis Lecture Notes #10 Conditioning and / Peter Blomgren, blomgren.peter@gmail.com Department of Mathematics and Statistics Dynamical Systems Group Computational Sciences Research

More information

NUMERICAL ANALYSIS PROGRAMS

NUMERICAL ANALYSIS PROGRAMS NUMERICAL ANALYSIS PROGRAMS I. About the Program Disk This disk included with Numerical Analysis, Seventh Edition by Burden and Faires contains a C, FORTRAN, Maple, Mathematica, MATLAB, and Pascal program

More information

Similarity and Diagonalization. Similar Matrices

Similarity and Diagonalization. Similar Matrices MATH022 Linear Algebra Brief lecture notes 48 Similarity and Diagonalization Similar Matrices Let A and B be n n matrices. We say that A is similar to B if there is an invertible n n matrix P such that

More information

GPU Computing with CUDA Lecture 2 - CUDA Memories. Christopher Cooper Boston University August, 2011 UTFSM, Valparaíso, Chile

GPU Computing with CUDA Lecture 2 - CUDA Memories. Christopher Cooper Boston University August, 2011 UTFSM, Valparaíso, Chile GPU Computing with CUDA Lecture 2 - CUDA Memories Christopher Cooper Boston University August, 2011 UTFSM, Valparaíso, Chile 1 Outline of lecture Recap of Lecture 1 Warp scheduling CUDA Memory hierarchy

More information

Reaction diffusion systems and pattern formation

Reaction diffusion systems and pattern formation Chapter 5 Reaction diffusion systems and pattern formation 5.1 Reaction diffusion systems from biology In ecological problems, different species interact with each other, and in chemical reactions, different

More information

N 1. (q k+1 q k ) 2 + α 3. k=0

N 1. (q k+1 q k ) 2 + α 3. k=0 Teoretisk Fysik Hand-in problem B, SI1142, Spring 2010 In 1955 Fermi, Pasta and Ulam 1 numerically studied a simple model for a one dimensional chain of non-linear oscillators to see how the energy distribution

More information

Starting algorithms for partitioned Runge-Kutta methods: the pair Lobatto IIIA-IIIB

Starting algorithms for partitioned Runge-Kutta methods: the pair Lobatto IIIA-IIIB Monografías de la Real Academia de Ciencias de Zaragoza. : 49 8, 4). Starting algorithms for partitioned Runge-Kutta methods: the pair Lobatto IIIA-IIIB I. Higueras and T. Roldán Departamento de Matemática

More information

Derive 5: The Easiest... Just Got Better!

Derive 5: The Easiest... Just Got Better! Liverpool John Moores University, 1-15 July 000 Derive 5: The Easiest... Just Got Better! Michel Beaudin École de Technologie Supérieure, Canada Email; mbeaudin@seg.etsmtl.ca 1. Introduction Engineering

More information

ECG590I Asset Pricing. Lecture 2: Present Value 1

ECG590I Asset Pricing. Lecture 2: Present Value 1 ECG59I Asset Pricing. Lecture 2: Present Value 1 2 Present Value If you have to decide between receiving 1$ now or 1$ one year from now, then you would rather have your money now. If you have to decide

More information

Syllabus for MTH 311 Numerical Analysis

Syllabus for MTH 311 Numerical Analysis MTH 311 Numerical Analysis Syllabus, Spring 2016 1 Cleveland State University Department of Mathematics Syllabus for MTH 311 Numerical Analysis Fall 2016: January 20 May 13 1 Instructor Information Instructor:

More information

Package fastghquad. R topics documented: February 19, 2015

Package fastghquad. R topics documented: February 19, 2015 Package fastghquad February 19, 2015 Type Package Title Fast Rcpp implementation of Gauss-Hermite quadrature Version 0.2 Date 2014-08-13 Author Alexander W Blocker Maintainer Fast, numerically-stable Gauss-Hermite

More information

Today. Keyframing. Procedural Animation. Physically-Based Animation. Articulated Models. Computer Animation & Particle Systems

Today. Keyframing. Procedural Animation. Physically-Based Animation. Articulated Models. Computer Animation & Particle Systems Today Computer Animation & Particle Systems Some slides courtesy of Jovan Popovic & Ronen Barzel How do we specify or generate motion? Keyframing Procedural Animation Physically-Based Animation Forward

More information

OpenFOAM Optimization Tools

OpenFOAM Optimization Tools OpenFOAM Optimization Tools Henrik Rusche and Aleks Jemcov h.rusche@wikki-gmbh.de and a.jemcov@wikki.co.uk Wikki, Germany and United Kingdom OpenFOAM Optimization Tools p. 1 Agenda Objective Review optimisation

More information

SOFA an Open Source Framework for Medical Simulation

SOFA an Open Source Framework for Medical Simulation SOFA an Open Source Framework for Medical Simulation J. ALLARD a P.-J. BENSOUSSAN b S. COTIN a H. DELINGETTE b C. DURIEZ b F. FAURE b L. GRISONI b and F. POYER b a CIMIT Sim Group - Harvard Medical School

More information

Lecture 5 Rational functions and partial fraction expansion

Lecture 5 Rational functions and partial fraction expansion S. Boyd EE102 Lecture 5 Rational functions and partial fraction expansion (review of) polynomials rational functions pole-zero plots partial fraction expansion repeated poles nonproper rational functions

More information

Ordinary Differential Equations

Ordinary Differential Equations Chapter 7 Ordinary Differential Equations Matlab has several different functions for the numerical solution of ordinary differential equations. This chapter describes the simplest of these functions and

More information

On using numerical algebraic geometry to find Lyapunov functions of polynomial dynamical systems

On using numerical algebraic geometry to find Lyapunov functions of polynomial dynamical systems Dynamics at the Horsetooth Volume 2, 2010. On using numerical algebraic geometry to find Lyapunov functions of polynomial dynamical systems Eric Hanson Department of Mathematics Colorado State University

More information

Vector Spaces; the Space R n

Vector Spaces; the Space R n Vector Spaces; the Space R n Vector Spaces A vector space (over the real numbers) is a set V of mathematical entities, called vectors, U, V, W, etc, in which an addition operation + is defined and in which

More information

arxiv:1603.01211v1 [quant-ph] 3 Mar 2016

arxiv:1603.01211v1 [quant-ph] 3 Mar 2016 Classical and Quantum Mechanical Motion in Magnetic Fields J. Franklin and K. Cole Newton Department of Physics, Reed College, Portland, Oregon 970, USA Abstract We study the motion of a particle in a

More information

2.2 Creaseness operator

2.2 Creaseness operator 2.2. Creaseness operator 31 2.2 Creaseness operator Antonio López, a member of our group, has studied for his PhD dissertation the differential operators described in this section [72]. He has compared

More information

Applied mathematics and mathematical statistics

Applied mathematics and mathematical statistics Applied mathematics and mathematical statistics The graduate school is organised within the Department of Mathematical Sciences.. Deputy head of department: Aila Särkkä Director of Graduate Studies: Marija

More information

Scalar versus Vector Quantities. Speed. Speed: Example Two. Scalar Quantities. Average Speed = distance (in meters) time (in seconds) v =

Scalar versus Vector Quantities. Speed. Speed: Example Two. Scalar Quantities. Average Speed = distance (in meters) time (in seconds) v = Scalar versus Vector Quantities Scalar Quantities Magnitude (size) 55 mph Speed Average Speed = distance (in meters) time (in seconds) Vector Quantities Magnitude (size) Direction 55 mph, North v = Dx

More information

Numerical Methods. Numerical Methods. for Engineers. for Engineers. Steven C. Chapra Raymond P. Canale. Chapra Canale. Sixth Edition.

Numerical Methods. Numerical Methods. for Engineers. for Engineers. Steven C. Chapra Raymond P. Canale. Chapra Canale. Sixth Edition. Sixth Edition Features include: which are based on exciting new areas such as bioengineering. and differential equations. students using this text will be able to apply their new skills to their chosen

More information

ECON20310 LECTURE SYNOPSIS REAL BUSINESS CYCLE

ECON20310 LECTURE SYNOPSIS REAL BUSINESS CYCLE ECON20310 LECTURE SYNOPSIS REAL BUSINESS CYCLE YUAN TIAN This synopsis is designed merely for keep a record of the materials covered in lectures. Please refer to your own lecture notes for all proofs.

More information

Short rate models: Pricing bonds in short rate models

Short rate models: Pricing bonds in short rate models IV. Shortratemodels:Pricingbondsinshortratemodels p.1/19 IV. Short rate models: Pricing bonds in short rate models Beáta Stehlíková Financial derivatives, winter term 2014/2015 Faculty of Mathematics,

More information

Solving DEs by Separation of Variables.

Solving DEs by Separation of Variables. Solving DEs by Separation of Variables. Introduction and procedure Separation of variables allows us to solve differential equations of the form The steps to solving such DEs are as follows: dx = gx).

More information

Review of Vector Analysis in Cartesian Coordinates

Review of Vector Analysis in Cartesian Coordinates R. evicky, CBE 6333 Review of Vector Analysis in Cartesian Coordinates Scalar: A quantity that has magnitude, but no direction. Examples are mass, temperature, pressure, time, distance, and real numbers.

More information

Computer Graphics CS 543 Lecture 12 (Part 1) Curves. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

Computer Graphics CS 543 Lecture 12 (Part 1) Curves. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI) Computer Graphics CS 54 Lecture 1 (Part 1) Curves Prof Emmanuel Agu Computer Science Dept. Worcester Polytechnic Institute (WPI) So Far Dealt with straight lines and flat surfaces Real world objects include

More information

Geometric Constraints

Geometric Constraints Simulation in Computer Graphics Geometric Constraints Matthias Teschner Computer Science Department University of Freiburg Outline introduction penalty method Lagrange multipliers local constraints University

More information

Equilibria and Dynamics of. Supply Chain Network Competition with Information Asymmetry. and Minimum Quality Standards

Equilibria and Dynamics of. Supply Chain Network Competition with Information Asymmetry. and Minimum Quality Standards Equilibria and Dynamics of Supply Chain Network Competition with Information Asymmetry in Quality and Minimum Quality Standards Anna Nagurney John F. Smith Memorial Professor and Dong (Michelle) Li Doctoral

More information

A First Course in Elementary Differential Equations. Marcel B. Finan Arkansas Tech University c All Rights Reserved

A First Course in Elementary Differential Equations. Marcel B. Finan Arkansas Tech University c All Rights Reserved A First Course in Elementary Differential Equations Marcel B. Finan Arkansas Tech University c All Rights Reserved 1 Contents 1 Basic Terminology 4 2 Qualitative Analysis: Direction Field of y = f(t, y)

More information

Pricing Options with Discrete Dividends by High Order Finite Differences and Grid Stretching

Pricing Options with Discrete Dividends by High Order Finite Differences and Grid Stretching Pricing Options with Discrete Dividends by High Order Finite Differences and Grid Stretching Kees Oosterlee Numerical analysis group, Delft University of Technology Joint work with Coen Leentvaar, Ariel

More information

Introduction to the Finite Element Method

Introduction to the Finite Element Method Introduction to the Finite Element Method 09.06.2009 Outline Motivation Partial Differential Equations (PDEs) Finite Difference Method (FDM) Finite Element Method (FEM) References Motivation Figure: cross

More information

SENSITIVITY ANALYSIS OF THE EARLY EXERCISE BOUNDARY FOR AMERICAN STYLE OF ASIAN OPTIONS

SENSITIVITY ANALYSIS OF THE EARLY EXERCISE BOUNDARY FOR AMERICAN STYLE OF ASIAN OPTIONS INTERNATIONAL JOURNAL OF NUMERICAL ANALYSIS AND MODELING, SERIES B Volume 1, Number 1, Pages 1 18 c 11 Institute for Scientific Computing and Information SENSITIVITY ANALYSIS OF THE EARLY EXERCISE BOUNDARY

More information

Pricing Barrier Options under Local Volatility

Pricing Barrier Options under Local Volatility Abstract Pricing Barrier Options under Local Volatility Artur Sepp Mail: artursepp@hotmail.com, Web: www.hot.ee/seppar 16 November 2002 We study pricing under the local volatility. Our research is mainly

More information

ORDINARY DIFFERENTIAL EQUATIONS

ORDINARY DIFFERENTIAL EQUATIONS ORDINARY DIFFERENTIAL EQUATIONS GABRIEL NAGY Mathematics Department, Michigan State University, East Lansing, MI, 48824. SEPTEMBER 4, 25 Summary. This is an introduction to ordinary differential equations.

More information

Rigid body dynamics using Euler s equations, Runge-Kutta and quaternions.

Rigid body dynamics using Euler s equations, Runge-Kutta and quaternions. Rigid body dynamics using Euler s equations, Runge-Kutta and quaternions. Indrek Mandre http://www.mare.ee/indrek/ February 26, 2008 1 Motivation I became interested in the angular dynamics

More information

Python. Python. 1 Python. M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 1 / 25

Python. Python. 1 Python. M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 1 / 25 Python 1 Python M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 1 / 25 Python makes you fly M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 2 / 25 Let s start ipython vs python

More information

General Theory of Differential Equations Sections 2.8, 3.1-3.2, 4.1

General Theory of Differential Equations Sections 2.8, 3.1-3.2, 4.1 A B I L E N E C H R I S T I A N U N I V E R S I T Y Department of Mathematics General Theory of Differential Equations Sections 2.8, 3.1-3.2, 4.1 Dr. John Ehrke Department of Mathematics Fall 2012 Questions

More information

Heavy Parallelization of Alternating Direction Schemes in Multi-Factor Option Valuation Models. Cris Doloc, Ph.D.

Heavy Parallelization of Alternating Direction Schemes in Multi-Factor Option Valuation Models. Cris Doloc, Ph.D. Heavy Parallelization of Alternating Direction Schemes in Multi-Factor Option Valuation Models Cris Doloc, Ph.D. WHO INTRO Ex-physicist Ph.D. in Computational Physics - Applied TN Plasma (10 yrs) Working

More information