DN1215 vt 12 för ME. Numeriska metoder DN1240 numi12 1

Relevanta dokument
DN1240 vt 12 för I. Numeriska metoder DN1240 numi12 1

DN1240 ht 12 för I. Numeriska metoder DN1240 numi13 1

The purpose of computing is insight, not numbers. (R.W.Hamming)

Välkomna till NUMPK09: DN1212 Numeriska metoder och grundläggande programmering för K2 och Bio3, 9 hp

J.Oppelstrup Mikael v. Strauss

J.Oppelstrup Mikael v. Strauss

Välkomna till NUMPBIO11: DN1212 Numeriska metoder och grundläggande programmering för Bio3, 9 hp. Kurshemsida

Välkomna till NUMPBIO12: DN1212 Numeriska metoder och grundläggande programmering för Bio3, 9 hp. Kurshemsida

Flervariabel Analys för Civilingenjörsutbildning i datateknik

Tentamen del 2 SF1511, , kl , Numeriska metoder och grundläggande programmering

Module 6: Integrals and applications

Kursplan MD2022. Matematik III 30 högskolepoäng, Grundnivå 2

1. Compute the following matrix: (2 p) 2. Compute the determinant of the following matrix: (2 p)

ÅRSKURS 1, civilingenjörsprogrammet i teknisk fysik med materialvetenskap, lå 2018/2019

Adding active and blended learning to an introductory mechanics course

Second handbook of research on mathematics teaching and learning (NCTM)

The Finite Element Method, FHL064

8 < x 1 + x 2 x 3 = 1, x 1 +2x 2 + x 4 = 0, x 1 +2x 3 + x 4 = 2. x 1 2x 12 1A är inverterbar, och bestäm i så fall dess invers.

Numeriska metoder, grundkurs II. Dagens program. Gyllenesnittminimering, exempel Gyllenesnittetminimering. Övningsgrupp 1

Civilingenjörsexamen

Module 1: Functions, Limits, Continuity

Ämnesområden. Examensarbete inom datavetenskap (1DV41E) Martin Fredriksson

Innehåll. Vad är MATLAB? Grunderna i MATLAB. Informationsteknologi. Informationsteknologi.

Vågkraft. Verification of Numerical Field Model for Permanent Magnet Two Pole Motor. Centrum för förnybar elenergiomvandling

Quicksort. Koffman & Wolfgang kapitel 8, avsnitt 9

Writing with context. Att skriva med sammanhang

Ett hållbart boende A sustainable living. Mikael Hassel. Handledare/ Supervisor. Examiner. Katarina Lundeberg/Fredric Benesch

En reformerad matematikutbildning vid Chalmers

12.6 Heat equation, Wave equation

Provlektion Just Stuff B Textbook Just Stuff B Workbook

Tentamen i Matematik 3: M0031M.

Learning study elevers lärande i fokus

6 th Grade English October 6-10, 2014

Collaborative Product Development:

Design för användbarhet Designexempel, hur tänkte man vid designen?

Urban Runoff in Denser Environments. Tom Richman, ASLA, AICP

PFC and EMI filtering

1. Varje bevissteg ska motiveras formellt (informella bevis ger 0 poang)


Beslutas att fastställa särskild behörighet för masterprogram enligt handling.

Kursplan. MT1051 3D CAD Grundläggande. 7,5 högskolepoäng, Grundnivå 1. 3D-CAD Basic Course

LUNDS TEKNISKA HÖGSKOLA Institutionen för Elektro- och Informationsteknik

Datavetenskapligt program, N1COS

What is mathematical modelling?

Högskolan i Skövde (SK, JS) Svensk version Tentamen i matematik

Preschool Kindergarten

1 Särskild behörighet Masterprogram (Till Studiehandboken 2017) Dnr LiU

Methods to increase work-related activities within the curricula. S Nyberg and Pr U Edlund KTH SoTL 2017

Introduktion till MATLAB

GeoGebra in a School Development Project Mathematics Education as a Learning System

Att skriva en matematisk uppsats

Syns du, finns du? Examensarbete 15 hp kandidatnivå Medie- och kommunikationsvetenskap

#minlandsbygd. Landsbygden lever på Instagram. Kul bild! I keep chickens too. They re brilliant.

Teorifrågor. 6. Beräkna konditionstalet för en diagonalmatris med diagonalelementen 2/k, k = 1,2,...,20.

and u = och x + y z 2w = 3 (a) Finn alla lösningar till ekvationssystemet

2D1210, Numeriska Metoder, GK I för V 2.

Matematik: Beräkningsmatematik (91-97,5 hp)

denna del en poäng. 1. (Dugga 1.1) och v = (a) Beräkna u (2u 2u v) om u = . (1p) och som är parallell

Kurskod: TAMS28 MATEMATISK STATISTIK Provkod: TEN1 05 June 2017, 14:00-18:00. English Version

Linjär algebra. 1 Inledning. 2 Matriser. Analys och Linjär Algebra, del B, K1/Kf1/Bt1. CTH/GU STUDIO 1 TMV036b /2013 Matematiska vetenskaper

DN1212 Numeriska Metoder och Grundläggande Programmering DN1214 Numeriska Metoder för S Lördag , kl 9-12

FÖRBÄTTRA DIN PREDIKTIVA MODELLERING MED MACHINE LEARNING I SAS ENTERPRISE MINER OSKAR ERIKSSON - ANALYSKONSULT

FORSKNINGSKOMMUNIKATION OCH PUBLICERINGS- MÖNSTER INOM UTBILDNINGSVETENSKAP

Webbregistrering pa kurs och termin

Technique and expression 3: weave. 3.5 hp. Ladokcode: AX1 TE1 The exam is given to: Exchange Textile Design and Textile design 2.

Stad + Data = Makt. Kart/GIS-dag SamGIS Skåne 6 december 2017

What is mathematical modelling?

Processimulering --- I teori och i praktik

Utveckla samarbete inom avdelningen. Utveckla samarbetet. mini workshop! i butikens ledningsgrupp. Grid International AB. Grid International AB

Webbreg öppen: 26/ /

Inkvarteringsstatistik. Göteborg & Co

Ordinära differentialekvationer,

and Mathematical Statistics Gerold Jäger 9:00-15:00 T Compute the following matrix

TANA17 Matematiska beräkningar med MATLAB för M, DPU. Fredrik Berntsson, Linköpings Universitet. 9 november 2015 Sida 1 / 28

Exempel på uppgifter från 2010, 2011 och 2012 års ämnesprov i matematik för årskurs 3. Engelsk version

Service och bemötande. Torbjörn Johansson, GAF Pär Magnusson, Öjestrand GC

Att stödja starka elever genom kreativ matte.

En skola på vetenskaplig grund gränsöverskridande mellan akademi, lärarutbildning och skolpraktik

Självkörande bilar. Alvin Karlsson TE14A 9/3-2015

Eternal Employment Financial Feasibility Study

MO8004 VT What advice would you like to give to future course participants?

Här kan du checka in. Check in here with a good conscience

en uppsatstävling om innovation Sammanfattning av de vinnande bidragen

The Arctic boundary layer

Vad säger forskningen om programmering som kunskapsinnehåll? Karin Stolpe, föreståndare NATDID liu.se/natdid

Kvalitetsarbete I Landstinget i Kalmar län. 24 oktober 2007 Eva Arvidsson

Tentamen i Matematik 2: M0030M.

Laboration: Vektorer och matriser

Tentamen del 1 SF1511, , kl , Numeriska metoder och grundläggande programmering

Masterprogram, tekniska beräkningar Master's Programme, Scientific Computing, 120 credits 120,0 högskolepoäng

Read, work and talk! - och Lgr 11

Kursplan. Matematik B, 30 högskolepoäng Mathematics, Intermediate Course, 30 Credits. Mål 1(5) Mål för utbildning på grundnivå.

Studieplan för civilingenjörsprogrammet i elektroteknik, 300 hp, läsåret 2018/2019

Numerisk modellering av självkompakterande betongs flöde diskret och kontinuumbaserad ansats

COPENHAGEN Environmentally Committed Accountants

Samråd har skett med utbildningsledare vid akademin för innovation, design och teknik för de kurser de ansvarar för.

Förskola i Bromma- Examensarbete. Henrik Westling. Supervisor. Examiner

FYTA11-ma2, ht14. Respondents: 12 Answer Count: 8 Answer Frequency: 66,67 %

Grafisk teknik IMCDP IMCDP IMCDP. IMCDP(filter) Sasan Gooran (HT 2006) Assumptions:

Transkript:

DN1215 vt 12 för ME Numeriska metoder 2012-01-12 DN1240 numi12 1

F1 Översikt: Lektionsundervisning och datorlaborationer Lärare Jesper Oppelstrup Eamination 2 Matlab-lab, muntlig redovisning, 1 projekt, skriftlig Tenta som alla Numme GK (1212,1214, ) 1 kryssfrågedel för betyg E 1 med räkneuppgifter 2012-01-12 DN1240 numi12 2

A(n in)convenient truth It is hard to understand an ocean because it is too big. It is hard to understand a molecule because it is too small. It is hard to understand nuclear physics because it is too fast. It is hard to understand the greenhouse effect because it is too slow. [Super]Computers break these barriers to understanding. They, in effect, shrink oceans, zoom in on molecules, slow down physics, and fast-forward climates. Clearly a scientist who can see natural phenomena at the right size and the right speed learns more than one who is faced with a blur. Al Gore, 1990, Scientific Computing 2012-01-12 DN1240 numi12 3

Wikipedia: Scientific computing (or computational science) is concerned with constructing mathematical models and numerical solution techniques and [ ] using computers to analyze and solve scientific, social scientific, and engineering problems. Scientific Computing Numerical analysis is the study of algorithms for the problems of continuous mathematics [ ] to compute quantities that are typically uncomputable, [ ] with lightning speed (L.N.Trefethen 1992) The purpose of computing is insight, not numbers. (R.W.Hamming) "The Unreasonable Effectiveness of Mathematics" (1980) DN1212 F16 100309 4

Computer simulation is the third paradigm of science Simulation has become recognized as the third paradigm of science, the first two being eperimentation and theory. High Performance Computing and Communications: Foundation for America's Information Future (Supplement to the President s FY 1996 Budget) DN1212 F16 100309 5

Antenna in rear-view mirror: Directivity, EMC, Dendritic solidification Mawell simulator (T.Rylander & al, CTU) Phase-field simulator (G.Amberg & al, KTH) There are three kinds of lies: Lies, damn lies, and colorful computer pictures (P.Colella) DN1212 F16 100309 6

Differential Equation Models Shortest path Micro-wave tomography Tsunami DN1212 F16 100309 7

Computational Materials Science From quantum mechanics to structures: Goals: σ ij i = µ(u, j Predict macroscopic properties from first principles Design new materials (e. nano-technology) Scale: space 10 8, time 10 15 QM: Many-D 1 A HΨ=EΨ DFT MD ij σ, j = Fi Dislocation field + u,i j ) λu,k k δ ij Navier 1 cm DN1212 F16 100309 8

Success Story I: MATLAB Major tool for engineering computing, Numerical analysis, visualization 1974 Matri Laboratory C.Moler Now: MathWorks > 1000 pers. 20th anniversary 2005: Success Story II: comsol Multiphysics FE software S.Littmarck 1995: MATLAB PDEToolBo Now: Comsol > 150 pers. DN1212 F16 100309 9

Numerical Methods 101" 2012 1. Why numerical methods? What can be computed? 2. Approimation, iteration, linearization, algorithm 3. Ordinary differential equations: simulation, eamples 1. Partial differential equations: simulation, eempel DN1212 F16 100309 10

Most solutions are approimations! Compute but how? = ± 1. Calculator... but how does it do it? 2. Mathematics: 2 = 2 2 ±1.414 (1+ ) 1/ 2 = 1/ 2 k =1+ 1 k 2 1 8 2 + 1 16 3 5 128 3 +... k=0 DN1212 F16 100309 11

(2) 1/ 2 = ( 25 16 + 7 16 )1/ 2 = 5 4 (1+ 7 25 )1/ 2 = = 5 4 1+ 1 2 7 25 1 8 7 25 2 + 1 16 7 25 3 5 128 7 25 3 +... ( 1+ 0.1400 0.0098 + 0.0014...) 1. 4145 = 1.25 = (Puh despite the convergence acceleration) DN1212 F16 100309 12

DN1212 F16 100309 13 Linearisation and iteration: Newton's method ( ) ( ) + = = = = = + + n n n n n n n f f f f 2 2 1 2 : ) (..., 0 : ) ( 1 2 0 1 1 1.5 1.417 1.414216 1.4142136 Mmm!

Linjära ekvationssystem Finn = ( 1, 2,, n ) så att A = b, A = (a ij ) NAM: 1.4, 1.5, 1.6 (inte 1.6.2), 1.7, 1.8 eller minstakvadrat-lösning min A b 2 NAM 2 Olinjär ekvation Finn så att f()=0 NAM 6 Olinjära ekvationssystem Finn så att f() = 0 NAM 6.8, 6.9 eller minstakvadrat-lösning min f() 2 NAM 6.10 2012-01-12 DN1240 numi12 14

Initialvärdesproblem för ordinära differentialekvationer Finn y(t) för t > 0 då dy/dt = f(t,y), y(0) = c NAM 8.1-8.6 plus etra Randvärdesproblem för ordinära differentialekvationer Finn y() för a < < b då dy/d = f(,y), G(y(a),y(b)) = 0 NAM 8.7 plus etra 2012-01-12 DN1240 numi12 15

Kvadratur Beräkna b I = f ( ) d a I = f, y) ddy Beräkna f ( ) då f ( i ) = yi, i = 1,2,..., m ( Interpolation / Approimation D - Tabeller NAM 5 Inte 5.2.4,5.2.5; - Polynom P k () Optimering - Spline-funktioner Finn ma. för f() i - Bézier-kurvor a < < b NAM 7 (inte 7.1.2) plus etra 2012-01-12 DN1240 numi12 16

Linjära ekvationssystem Finn = ( 1, 2,, n ) så att A = b, A = (a ij ) Formulering Gauss-elimination Pivotering Arbetsvolym A NAM p 7,8 Blandningsproblem: Råvara R i (i=1 n) har halterna a ij av grundpigment j (j=1 n) Hur ska man blanda, halt j av R j för att få en produkt med halt w k av pigment k? n = w : aij j = wi, i = 1,2,..., n j= 1 0 1 j 2012-01-12 DN1240 numi12 17

MATLAB % NAMp7 om färger lind = [50 20 30 0]'; gras = [30 55 5 10]'; moss = [15 15 45 25]'; hav = [ 0 10 25 65]'; A = [lind gras moss hav] wanted = [25 25 25 25]'; = A\wanted pause [50 20 30 0] gör radvektor - transponerar till kolumn A = [lind gras moss hav] - gör 44 matris genom att ställa kolumnerna bredvid varann wanted = [25 25 25 25] - gör högerled = A \ wanted - lös med Gauss-elimination pause - stanna 2012-01-12 DN1240 numi12 18

MATLAB Vilka färger kan blandas? Simulera! Gör N blandningar där man väljer i som positiva slumptal som summerar till 1 ( i = halt) Lagra i en 4 N tabell % generera slumptal som summerar till 1; N = 1000; = rand(4,n); % rand ger slumptal mellan 0 och 1, % 4 rader, N kolonner s = sum(,1); % Summera kolonner = *diag(1./s); % Dividera kolonn med dess summa % genom multiplikation med diagonalmatris % från höger y = A*; % Blanda! 2012-01-12 DN1240 numi12 19

Plotta! Plotta alla punkterna som ligger i en 4D simple i R 4 som fyra projektioner på de tre-dimensionella rummen med alar (2,3,4),(1,3,4),(1,2,4),(1,2,3): Alla punkter i projektionerna i 3D simplear = tetraedrar. Tetraederkanterna plottas. 2012-01-12 DN1240 numi12 20

% now plot anum = 1:4; for k = 1:4 ypl = y; ypl(k,:)= []; anumpl = anum; anumpl(k)=[]; Apl = A; Apl(k,:)=[]; subplot(1,4,k); end MATLAB %clf hold on plot3(ypl(1,:),ypl(2,:),ypl(3,:),'.k'); label(['x',num2str(anumpl(1))]) ylabel(['x',num2str(anumpl(2))]) zlabel(['x',num2str(anumpl(3))]) for j = 1:4 a = Apl(:,j); for l = j+1:4 b = Apl(:,l); plot3([a(1),b(1)],[a(2),b(2)],[a(3),b(3)],'k'); end end ais([0 100 0 100 0 100]) Plotta i delfönster, 1 rad 4 kolonner, i k:te delfönstret Plotta i 3D som svarta punkter Välj ael-storlek Resten av programmet är speciellt ; titta på det senare 2012-01-12 DN1240 numi12 21