WEEK 11 CME323 NUMERIC ANALYSIS. Lect. Yasin ORTAKCI.

Benzer belgeler
12. HAFTA BLM323 SAYISAL ANALİZ. Okt. Yasin ORTAKCI.

WEEK 4 BLM323 NUMERIC ANALYSIS. Okt. Yasin ORTAKCI.

4. HAFTA BLM323 SAYISAL ANALİZ. Okt. Yasin ORTAKCI.

11. HAFTA BLM323 SAYISAL ANALİZ. Okt. Yasin ORTAKCI.

Unlike analytical solutions, numerical methods have an error range. In addition to this

12. HAFTA BLM323 SAYISAL ANALİZ. Okt. Yasin ORTAKCI.

BBM Discrete Structures: Midterm 2 Date: , Time: 16:00-17:30. Question: Total Points: Score:

3. HAFTA BLM323 SAYISAL ANALİZ. Okt. Yasin ORTAKCI.

BBM Discrete Structures: Final Exam Date: , Time: 15:00-17:00

10. HAFTA BLM323 SAYISAL ANALİZ. Okt. Yasin ORTAKCI.

ATILIM UNIVERSITY Department of Computer Engineering

4. HAFTA BLM323 SAYISAL ANALİZ. Okt. Yasin ORTAKCI.

2. HAFTA BLM323 SAYISAL ANALİZ. Okt. Yasin ORTAKCI.

BBM Discrete Structures: Final Exam - ANSWERS Date: , Time: 15:00-17:00

Matematik Mühendisliği - Mesleki İngilizce

CHAPTER 7: DISTRIBUTION OF SAMPLE STATISTICS. Sampling from a Population

MM103 E COMPUTER AIDED ENGINEERING DRAWING I

Week 5 Examples and Analysis of Algorithms

1 I S L U Y G U L A M A L I İ K T İ S A T _ U Y G U L A M A ( 5 ) _ 3 0 K a s ı m

Yarışma Sınavı A ) 60 B ) 80 C ) 90 D ) 110 E ) 120. A ) 4(x + 2) B ) 2(x + 4) C ) 2 + ( x + 4) D ) 2 x + 4 E ) x + 4

DOKUZ EYLÜL ÜNİVERSİTESİ MÜHENDİSLİK FAKÜLTESİ DEKANLIĞI DERS/MODÜL/BLOK TANITIM FORMU. Dersin Orjinal Adı: CALCULUS II. Dersin Kodu: MAT 1002

İŞLETMELERDE KURUMSAL İMAJ VE OLUŞUMUNDAKİ ANA ETKENLER

Do not open the exam until you are told that you may begin.

ise, genel bir eğilim (trend) gösteriyorsa bu seriye uygun doğru ya da eğriyi bulmaya çalışırız. Trend orta-uzun dönemde her iniş, çokışı

Yüz Tanımaya Dayalı Uygulamalar. (Özet)

FINITE AUTOMATA. Mart 2006 Ankara Üniversitesi Bilgisayar Mühendisliği 1

A Y I K BOYA SOBA SOBA =? RORO MAYO MAS A A YÖS / TÖBT

Virtualmin'e Yeni Web Sitesi Host Etmek - Domain Eklemek

EXAM CONTENT SINAV İÇERİĞİ

Dairesel grafik (veya dilimli pie chart circle graph diyagram, sektor grafiği) (İngilizce:"pie chart"), istatistik

DOKUZ EYLUL UNIVERSITY FACULTY OF ENGINEERING OFFICE OF THE DEAN COURSE / MODULE / BLOCK DETAILS ACADEMIC YEAR / SEMESTER

( ) ARASI KONUSUNU TÜRK TARİHİNDEN ALAN TİYATROLAR

Bu durumda ya cozum yoktur veya sonsuz cozum vardir. KIsaca cozum tek degildir. Veya cozumler birbirine lineer bagimlidir.

CHAPTER 8: CONFIDENCE INTERVAL ESTIMATION: ONE POPULATION

AİLE İRŞAT VE REHBERLİK BÜROLARINDA YAPILAN DİNİ DANIŞMANLIK - ÇORUM ÖRNEĞİ -

Cases in the Turkish Language

Fıstıkçı Şahap d t c ç

CNC MACH breakout board user manual V8 type

DOKUZ EYLÜL ÜNİVERSİTESİ MÜHENDİSLİK FAKÜLTESİ DEKANLIĞI DERS/MODÜL/BLOK TANITIM FORMU. Dersin Orjinal Adı: CALCULUS I. Dersin Kodu: MAT 1001

#include <stdio.h> int main(void) { float sayi; float * p; p = &sayi; printf("deger girin:"); scanf("%f", p); printf("girilen deger:%f\n", *p);

Present continous tense

Help Turkish -> English

g Na2HPO4.12H2O alınır, 500mL lik balonjojede hacim tamamlanır.

Numune Kodu ve parti no

D-Link DSL 500G için ayarları

Do not open the exam until you are told that you may begin.

12-15 YAŞ ARASI ANTRENMANLI ÇOCUKLARDA CiNSiYET VE YAŞıN LAKTAT VE KALP ATIM HIZI CEVAPLARINA ETKisi

SINAV İÇERİĞİ EXAM CONTENT

CmpE 320 Spring 2008 Project #2 Evaluation Criteria

Bölüm 4 Yoğunluk Dönüşümleri ve Histogram İşleme

Properties of Regular Languages. Mart 2006 Ankara Üniversitesi Bilgisayar Mühendisliği - TY 1

First Stage of an Automated Content-Based Citation Analysis Study: Detection of Citation Sentences

Q26.1 a ve b arasında iki farklı bağlama şekilde görülmektedir. Buna göre hangi bağlamada en düşük direnç değeri elde edilebilir.

THE IMPACT OF AUTONOMOUS LEARNING ON GRADUATE STUDENTS PROFICIENCY LEVEL IN FOREIGN LANGUAGE LEARNING ABSTRACT

BAYAN DİN GÖREVLİSİNİN İMAJI VE MESLEĞİNİ TEMSİL GÜCÜ -Çorum Örneği-

Profiling the Urban Social Classes in Turkey: Economic Occupations, Political Orientations, Social Life-Styles, Moral Values

Özet. Kümelerle İlgili Tanımlar Kümelerin Gösterimi

Arýza Giderme. Troubleshooting

Neyzen olabilmek için en önemli özellik; sabretmeyi bilmektir. In order to be a neyzen the most important thing is to be patient.

KALEIDOSCOPES N.1. Solo Piano. Mehmet Okonşar

Exercise 2 Dialogue(Diyalog)

Ege Üniversitesi Elektrik Elektronik Mühendisliği Bölümü Kontrol Sistemleri II Dersi Grup Adı: Sıvı Seviye Kontrol Deneyi.../..

a) Present Continuous Tense (Future anlamda) I am visiting my aunt tomorrow. (Yarin halamı ziyaret ediyorum-edeceğim.)

We test validity of a claim or a conjecture (hypothesis) about a population parameter by using a sample data

EGE UNIVERSITY ELECTRICAL AND ELECTRONICS ENGINEERING COMMUNICATION SYSTEM LABORATORY

Immigration Studying. Studying - University. Stating that you want to enroll. Stating that you want to apply for a course.

4. Bulanık Sayılar- Üyelik Fonksiyonları

BOĞAZİÇİ UNIVERSITY KANDİLLİ OBSERVATORY and EARTHQUAKE RESEARCH INSTITUTE GEOMAGNETISM LABORATORY

ÇEVRESEL TEST HİZMETLERİ 2.ENVIRONMENTAL TESTS

Wavelet Transform and Applications. A. Enis Çetin Bilkent Üniversitesi

NEY METODU SAYFA 082 NEY METHOD PAGE 082. well.

A UNIFIED APPROACH IN GPS ACCURACY DETERMINATION STUDIES

SBR331 Egzersiz Biyomekaniği

AB surecinde Turkiyede Ozel Guvenlik Hizmetleri Yapisi ve Uyum Sorunlari (Turkish Edition)

NATURAL LANGUAGE PROCESSING

YEDİTEPE ÜNİVERSİTESİ MÜHENDİSLİK VE MİMARLIK FAKÜLTESİ

YEDİTEPE ÜNİVERSİTESİ MÜHENDİSLİK VE MİMARLIK FAKÜLTESİ

SPSS (Statistical Package for Social Sciences)

Context-Free Grammars and Languages

NEY METODU SAYFA 066 NEY METHOD PAGE 066. Resim no:0037/a Picture no: 0037/A

a, ı ı o, u u e, i i ö, ü ü

Argumentative Essay Nasıl Yazılır?

AKT 305 Aktüeryal Yazılımlar Ödev 1 Yanıtları Soru 1. Create a vector x with the elements...

Hukuk ve Hukukçular için İngilizce/ English for Law and Lawyers

Üretilen her bir kar mobile için $20 ücret konur: bu değişken maliyettir, batık maliyet değil.

Yaz okulunda (2014 3) açılacak olan (Calculus of Fun. of Sev. Var.) dersine kayıtlar aşağıdaki kurallara göre yapılacaktır:

Sürekli-Zaman Sinyallerinin Matematiksel Tanımlanması

ACCURACY OF GPS PRECISE POINT POSITIONING (PPP)

#include <stdio.h> int main(void) { FILE * dosya; dosya = fopen("soru1.txt", "w"); fprintf(dosya, "Merhaba Dunya!"); fclose(dosya); return 0; }

Kamuran Özlem Sarnıç (Sanatta Yeterlik Tezi)

Korelasyon ve Regresyon

From the Sabiha Gokçen Airport to the Zubeydehanim Ogretmenevi, there are two means of transportation.

L2 L= nh. L4 L= nh. C2 C= pf. Term Term1 Num=1 Z=50 Ohm. Term2 Num=2 Z=50 Oh. C3 C= pf S-PARAMETERS

Korelasyon ve Regresyon

T.C. İSTANBUL AYDIN ÜNİVERSİTESİ SOSYAL BİLİMLER ENSTİTÜSÜ BİREYSEL DEĞERLER İLE GİRİŞİMCİLİK EĞİLİMİ İLİŞKİSİ: İSTANBUL İLİNDE BİR ARAŞTIRMA

a, ı ı o, u u e, i i ö, ü ü şu that (something relatively nearby) şu ekmek o that (something further away) o dondurma

IDENTITY MANAGEMENT FOR EXTERNAL USERS

T.C. Hitit Üniversitesi. Sosyal Bilimler Enstitüsü. İşletme Anabilim Dalı

Transkript:

WEEK 11 CME323 NUMERIC ANALYSIS Lect. Yasin ORTAKCI yasinortakci@karabuk.edu.tr

2 INTERPOLATION Introduction A census of the population of the United States is taken every 10 years. The following table lists the population, in thousands of people, from 1950 to 2000, and the data are also represented in the figure. In reviewing these data, we might ask whether they could be used to provide a reasonable estimate of the population, say, in 1975 or even in the year 2020. Predictions of this type can be obtained by using a function that fits the given data. This process is called interpolation and is the subject of this chapter.

3 (Weierstrass Approximation Theorem) One of the most useful and well-known classes of functions mapping the set of real numbers into itself is the algebraic polynomials, the set of functions of the form P n (x) a n x n + a n 1 x n 1 + + a 1 x + a 0, where n is a nonnegative integer and a 0,..., a n are real constants. Suppose that f is defined and continuous on [a, b]. For each ε > 0, there exists a polynomial P(x), with the property that f (x) P(x) < ε, for all x in [a, b]. (Lagrange, Hermit, Chebische, Lagurre.)

4 Lagrange Interpolating Polynomials The problem of determining a polynomial of degree one that passes through the distinct points (x0, y0) and (x1, y1) is the same as approximating a function f for which f (x0) y0 and f (x1) y1 by means of a first-degree polynomial interpolating, or agreeing with, the values of f at the given points. Using this polynomial for approximation within the interval given by the endpoints is called polynomial interpolation. Define the functions L 0 (x) x x 1 x 0 x 1 L 1 (x) x x 0 x 1 x 0 The linear Lagrange interpolating polynomial through (x0, y0) and (x1, y1) is P(x) L 0 (x) f(x 0 ) + L 1 (x)f(x 1 ) x x 1 x 0 x 1 f(x 0 ) + x x 0 x 1 x 0 f(x 1 ) Note that L 0 (x 0 ) 1, L 0 (x 1 ) 0, L 1 (x 0 ) 0, and L 1 (x 1 ) 1, which implies that P(x 0 ) 1 f (x 0 ) + 0 f (x 1 ) f (x 0 ) y 0 and P(x 1 ) 0 f (x 0 ) + 1 f (x 1 ) f (x 1 ) y 1.

5 So P is the unique polynomial of degree at most one that passes through (x0, y0) and (x1, y1). Example 1 Determine the linear Lagrange interpolating polynomial that passes through the points (2, 4) and (5, 1). Solution In this case we have L 0 x 5 5 x 2 5 3 and L 1 x 2 3 so P(x) 5 x 3 4 + x 2 3 1 6 x n. degree Lagrange polinomial L n,k (x x 0)(x x 1 ).. (x x k 1 )(x x k+1 ).. (x x n ) (x k x 0 )(x k x 1 ).. (x k x k 1 )(x k x k+1 ).. (x k x n ) n L n,k (x x i) (x k x i ) i0 i k nth Lagrange interpolating polynomial P(x) L n,0 f(x 0 ) + L n,1 f(x 1 ) + + L n,n f(x n ) n P(x) L n,k f(x k ) k0

6 Theorem: If x 0, x 1,, x n (n + 1) are (n + 1)distinct numbers and f is a function whose values are given at these numbers, then a unique polynomial P(x) of degree at most n exists with f(x k ) P(x k ) for each k 0,1,2,, n Ex: Use the numbers (called nodes) x0 2, x1 2.75, and x2 4 to find the second Lagrange interpolating polynomial for f (x) 1/x. (f (3) 1/3) Solution: L 0 (x x 1)(x x 2 ) (x 2.75)(x 4) (x 0 x 1 )(x 0 x 2 ) (2 2.75)(2 4) 2 3 L 1 (x x 0)(x x 2 ) (x 1 x 0 )(x 1 x 2 ) (x 2)(x 4) (2.75 2)(2.75 4) 16 15 L 2 (x x 0)(x x 1 ) (x 2)(x 2.75) (x 2 x 0 )(x 2 x 1 ) (4 2)(4 2.75) 2 5 f(x) 1 so f(x x 0) 1, f(x 2 1) 1 ve f(x 2.75 2) 1 4 (x 2.75)(x 4) (x 2)(x 4) (x 2)(x 2.75)

7 P(x) 2 3 (x 2.75)(x 4) 1 2 16 15 (x 2)(x 4) 1 2.75 + 2 5 (x 2)(x 2.75) 1 4 P(x) 1 3 (x 2.75)(x 4) 64 55 1 (x 2)(x 4) + (x 2)(x 2.75) 10 Approximate Value: P(3) 29 88 0.32954 Real Value: f(3) 1 3 0.33333 f(3) P(3)'dir. EXAMPLE: Fit the curve of the following (x,y) value pairs using Lagrange intepolation method. Find the value of curve (y) at point x 5.5 and x 2. x 0 1 3 5 y -16-3 -17 41 SOLUTION: Number of the points given is four, so the degree of Lagrange polinomial is three. Apply the general formula by finding L 0, L 1, L 2, L 3. P(x) L 0 (x). y 0 + L 1 (x). y 1 + L 2 (x). y 2 + L 3 (x). y 3 L 0 (x x 1)(x x 2 )(x x 3 ) (x 1)(x 3)(x 5) (x 0 x 1 )(x 0 x 2 )(x 0 x 3 ) (0 1)(0 3)(0 5) x3 9x 2 + 23x 15 ( 15) L 1 (x x 0)(x x 2 )(x x 3 ) (x 1 x 0 )(x 1 x 2 )(x 1 x 3 ) (x 0)(x 3)(x 5) (1 0)(1 3)(1 5) x3 8x 2 + 15 8

8 L 2 (x x 0)(x x 1 )(x x 3 ) (x 0)(x 1)(x 5) (x 2 x 0 )(x 2 x 1 )(x 2 x 3 ) (3 0)(3 1)(3 5) x3 + 6x 2 5 12 L 3 (x x 0)(x x 1 )(x x 2 ) (x 0)(x 1)(x 3) (x 3 x 0 )(x 3 x 1 )(x 3 x 2 ) (5 0)(5 1)(5 3) x3 4x 2 + 3x 40 P(x) 16L 0 3L 1 17L 2 + 41L 3 P(x) 376x3 2304x 2 + 3313x + 1595 120 bulunur. The values of P( 2) and P(5.5) are found and list in the following table. x -2 0 1 3 5 5.5 y -176-16 -3-17 41 84.375 The curve was fit by available values are below:

9 Algorithm INPUT the number of sample points (n + 1), the entries (x k, f(x k )) 0 k n, x value to interpolate OUTPUT the approximate solution (y P(x)) of given x value. Step 1 For k 0,..., n n L n,k (x) (x x i) Step 2 n i0 i k (x k x i ) P(x) L n,k f(x k ) k0 Step 3 OUTPUT (P(x)); STOP. Kaynakça Richard L. Burden, Richard L. Burden (2009). Numerical Analysis Brooks/Cole Cengage Learning, Boston. Doç. Dr. İbrahim UZUN, (2004), "Numarik Analiz Beta Yayıncılık.