Computación I: intro to Matlab. Francesca Maria Marchetti



Similar documents
Pre-requisites

Vector Spaces; the Space R n

The integrating factor method (Sect. 2.1).

both double. A. T and v max B. T remains the same and v max doubles. both remain the same. C. T and v max

AP1 Oscillations. 1. Which of the following statements about a spring-block oscillator in simple harmonic motion about its equilibrium point is false?

Numerical Methods for Differential Equations

An Introduction to Applied Mathematics: An Iterative Process

Online Courses for High School Students

Cooling and Euler's Method

Solving ODEs in Matlab. BP205 M.Tremont

APPLIED MATHEMATICS ADVANCED LEVEL

ME 7103: Theoretical Vibrations Course Notebook

Computers in Science Education A new Way to teach Science?

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

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

NUMERICAL METHODS TOPICS FOR RESEARCH PAPERS

Applied Linear Algebra

KERN COMMUNITY COLLEGE DISTRICT CERRO COSO COLLEGE PHYS C111 COURSE OUTLINE OF RECORD

Sample lab procedure and report. The Simple Pendulum

PHYS 1624 University Physics I. PHYS 2644 University Physics II

METNUMER - Numerical Methods

Mathematical Modeling and Engineering Problem Solving

PS 320 Classical Mechanics Embry-Riddle University Spring 2010

AMATH 352 Lecture 3 MATLAB Tutorial Starting MATLAB Entering Variables

Dynamic Process Modeling. Process Dynamics and Control

SYLLABUS FORM WESTCHESTER COMMUNITY COLLEGE Valhalla, NY lo595. l. Course #: PHYSC NAME OF ORIGINATOR /REVISOR: Dr.

Assessment Plan for Learning Outcomes for BA/BS in Physics

USING MS EXCEL FOR DATA ANALYSIS AND SIMULATION

Numerical Solution of Differential Equations

Modeling Mechanical Systems

Tutorial Program. 1. Basics

General Physics belongs to the core course module of the Degree of Telecommunication Technologies and Services Engineering.

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

University of Nicosia, Cyprus

Introduction to Matlab

State of Stress at Point

EASTERN ARIZONA COLLEGE Differential Equations

DRAFT. Further mathematics. GCE AS and A level subject content

MASTER OF SCIENCE IN PHYSICS MASTER OF SCIENCES IN PHYSICS (MS PHYS) (LIST OF COURSES BY SEMESTER, THESIS OPTION)

2.5 Physically-based Animation

Aim : To study how the time period of a simple pendulum changes when its amplitude is changed.

Numerical Methods for Differential Equations

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

Copyright 2011 Casa Software Ltd.

Essential Mathematics for Computer Graphics fast

(Most of the material presented in this chapter is taken from Thornton and Marion, Chap. 7)

Euler s Method and Functions

3.2 Sources, Sinks, Saddles, and Spirals

Lab 8: Ballistic Pendulum

Adequate Theory of Oscillator: A Prelude to Verification of Classical Mechanics Part 2

COWLEY COLLEGE & Area Vocational Technical School

ORDINARY DIFFERENTIAL EQUATIONS

Unit - 6 Vibrations of Two Degree of Freedom Systems

Experiment: Static and Kinetic Friction

CS 1340 Sec. A Time: 8:00AM, Location: Nevins Instructor: Dr. R. Paul Mihail, 2119 Nevins Hall, rpmihail@valdosta.

Appendix 3 IB Diploma Programme Course Outlines

(!' ) "' # "*# "!(!' +,

SCHWEITZER ENGINEERING LABORATORIES, COMERCIAL LTDA.

AP Physics C. Oscillations/SHM Review Packet

THE UNIVERSITY OF TEXAS AT AUSTIN Department of Aerospace Engineering and Engineering Mechanics. EM 311M - DYNAMICS Spring 2012 SYLLABUS

Numerical Methods for Engineers

PCHS ALGEBRA PLACEMENT TEST

System of First Order Differential Equations

Sample Questions for the AP Physics 1 Exam

Content. Chapter 4 Functions Basic concepts on real functions 62. Credits 11

Mean value theorem, Taylors Theorem, Maxima and Minima.

Prerequisite: High School Chemistry.

Pendulum Investigations. Level A Investigations. Level B Investigations

NUMERICAL ANALYSIS OF THE EFFECTS OF WIND ON BUILDING STRUCTURES

Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks

Lecture 07: Work and Kinetic Energy. Physics 2210 Fall Semester 2014

Mechanics 1: Conservation of Energy and Momentum

Financial Econometrics MFE MATLAB Introduction. Kevin Sheppard University of Oxford

CITY UNIVERSITY LONDON. BEng Degree in Computer Systems Engineering Part II BSc Degree in Computer Systems Engineering Part III PART 2 EXAMINATION

Physics 9e/Cutnell. correlated to the. College Board AP Physics 1 Course Objectives

Computer Animation. Lecture 2. Basics of Character Animation

Metrics on SO(3) and Inverse Kinematics

Coffeyville Community College #MATH 202 COURSE SYLLABUS FOR DIFFERENTIAL EQUATIONS. Ryan Willis Instructor

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

Control and Simulation. in LabVIEW

Orbits. Chapter 17. Dynamics of many-body systems.

2+2 Just type and press enter and the answer comes up ans = 4

Matlab Practical: Solving Differential Equations

CURRICULUM GUIDE

Experiment 7 ~ Conservation of Linear Momentum

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

Contents. Microfluidics - Jens Ducrée Physics: Navier-Stokes Equation 1

GRADES 7, 8, AND 9 BIG IDEAS

Oscillations. Vern Lindberg. June 10, 2010

CHAPTER 3. INTRODUCTION TO MATRIX METHODS FOR STRUCTURAL ANALYSIS

PHYS 050. Principle of Physics 84 HOURS 3 CREDITS

AP1 Electricity. 1. A student wearing shoes stands on a tile floor. The students shoes do not fall into the tile floor due to

Fluid Dynamics and the Navier-Stokes Equation

NEW YORK STATE TEACHER CERTIFICATION EXAMINATIONS

1 Finite difference example: 1D implicit heat equation

Física Computacional Conceptos de programación.

Transcription:

Computación I: intro to Matlab Francesca Maria Marchetti UAM, 15 September 2014

Subgroup 5165 Units 1, 2, 3, 5 (control 1) Francesca Maria Marchetti Departamento de Física Teórica de la Materia Condensada Facultad de Ciencias - modulo 05 6 th floor office 606 tel.: 91 497 5590 e-mail: francesca.marchetti@uam.es web: http://www.uam.es/francesca.marchetti 15-Sept till 11 Dec Units 4 (controls 2&3) & project Jorge Bravo Abad Departamento de Física Teórica de la Materia Condensada Facultad de Ciencias - modulo 05 5 th floor office tel.: 91 497 3295 e-mail: jorge.bravo@uam.es web: http://www.uam.es/jorge.bravo 19 Jan till 17 Apr

Web page http://www.uam.es/francesca.marchetti/lectures.html 1. Contacts 2. Course contents 3. Bibliography & useful links 4. Evaluation 5. Timetable & calendar 6. Complementary material: notes & handouts exercises solutions

Web page http://www.uam.es/francesca.marchetti/lectures.html

Web page http://www.uam.es/francesca.marchetti/ computacion1_14-15.html

Objectives of the course To understand how to write and use a program (in a language relevant for scientific calculations) To process, interpret, and present numerical data graphically To understand how to use computers as a tool to solve physical problems To develop to capability to model and implement a simple physical problems Public presentation of scientific results

Content Unit 1: Basic Numerical Concepts & First Applications Unit 2: Matrices, functions & Advanced Plotting/Scripting Unit 3: Linear Systems & Root Finding Unit 4: Probability, Data Analysis & Statistics Unit 5: Differential Equations, integration of Newton law Applications: Physical Systems

Unit 1 Introduction and basic concepts introduction to MATLAB MATLAB as a calculator (command line usage) variables, vectors, and (in-built) functions plotting scripts numerical derivatives numerical integration Application examples: Tiro parabolico, movimiento harmonico simple, moviemiento armonico amortiguado Posicion, aceleracion, trayectoria, energia

Unit 2 Matrices & functions matrix operations and representations user-defined functions loops: for & while if-else conditions representation of scalar and vector fields Application examples: translation and rotation of vectors discrete charge and mass distributions

Unit 3 Solving equations linear systems root finding Application examples: conservation of energy circuitos con resistencias y/o fuentes de voltaje que pueden variarse

Unit 5 Differential equations 1 st and 2 nd ordinary differential equations Euler method & Runge-Kutta method systems of coupled equations Application examples: Harmonic oscillator, friction, damping,... 1D equations of motion

Unit 4 Data analysis & statistics handling of large data sets statistical analysis of data sets data fitting probability distribution functions and random numbers Application examples: your lab (Técnicas Experimentales I) data analysis! lanzamiento de monedas, dados caminos aleatorios calculos de areas y volumenes

Project Physical systems Physical applications: some examples in the class, but most importantly: your very own project!!!

Content Unit 1: Basic Numerical Concepts & First Applications Unit 2: Matrices, functions & Advanced Plotting/Scripting Unit 3: Linear Systems & Root Finding Unit 4: Probability, Data Analysis & Statistics Unit 5: Differential Equations, integration of Newton law Applications: Physical Systems

Evaluation Unit 1: Basic Numerical Concepts & First Applications Unit 2: Matrices, functions & Advanced Plotting/Scripting Unit 3: Linear Systems & Root Finding Unit 4: Probability, Data Analysis & Statistics Unit 5: Differential Equations, integration of Newton law Applications: Physical Systems control #1 (common to all groups) 15% control #2 (separate for each group) 20% project 40% control #3 (common) 25%

When and where Grupo 5165 11:30-13:30 Aula: CIE5 modulo 8 5 a planta aula 503 Sala Gauss (45 ordenadores) learning by doing: essential to also work at home

Why useful?..,i.e., why you should care...

Computation in physics Graphic representation of trajectories

Computation in physics Graphic representation of trajectories

Computation in physics Graphic representation of trajectories

Computation in physics Graphic representation of trajectories

2D and 3D plotting

2D and 3D plotting

Computation in physics Analysis of complex functions Zeros Max & min

Computation in physics Analysis of complex functions: energy conservation

Computation in physics Analysis of complex functions: energy conservation

Computation in physics Numerical solutions of differential equations Mechanics (Newton) Quantum mechanics (Schrödinger) Fluidodynamics (Navier-Stokes) Electrodynamics (Maxwell)

Pendulum Not soluble in terms of elementary functions, but you will be able to solve it numerically before the end of the course

Pendulum: small angle approximation Analytical solution (harmonic oscillator): compare with previous results

Double pendulum

Advanced numerics

How?

Matlab MATLAB = MATrix LABoratory interactive program computation and visualization...not a programming language array processing language tool to understand physics better very user friendly as well as powerful (1 million users in academia & industry only in 2004)

Free alternative http://www.scilab.org

Example Graphic representation of trajectories

Example Graphic representation of trajectories

Example Graphic representation of trajectories 1. Definition of a vector t in a given interval 2. Definition of the vectors x(t) and y(t) 3. Plot

Bibliography 1. http://www.mathworks 2. http://www.mathworks.es/academia/student_center/tutorials/ launchpad.html 3. http://www.maths.dundee.ac.uk/~ftp/na-reports/matlabnotes.pdf 4. http://www.lawebdelprogramador.com/cursos/enlace.phd? idp=3338&id=132&texto=matlab 5. http://ocw.upm.es/ingenieria-aeroespacial/aerodinamica-numerica/ contenidos/introduccion-matlab/ 6. http://www.mathworks.es/access/helpdesk/help/pdf_doc/matlab/ getstart.pdf 7. http://mat21.etsii.upm.es/ayudainf/aprendainf/matlab70/ matlab70primero.pdf 8. http://eupt2.unizar.es/cmedrano/manual_octave.pdf 9. and many more http://www.uam.es/francesca.marchetti/lectures.html Built-in help!!!!!