Lab_9 Interpolation Mathimatica

© All Rights Reserved

1 views

Lab_9 Interpolation Mathimatica

Lab_9 Interpolation Mathimatica

© All Rights Reserved

- Mohammad Samawi_JMD_Jordanian Meteorological Dep.
- Module 1 Elements of Dam Engineering
- Syllabus
- Bernoulli and Darcy
- Unit Hydrograph
- Applied Fluid Mechanics Syl
- Multiple Pumps VFD Operation
- CE353-CH7
- Hydro Graph Analysis
- Precipitation Data Analysis
- Abet Civil Eng
- class 01
- Hmwk3
- lecture1.pdf
- lecture_notes_01
- Eco Analysis of Water Resources
- 415w03_lab5key
- Eng Hyd Answers Problems
- m2l01
- Lab_3B Root of Equation Mathimatica

You are on page 1of 5

Procedure: We have two types of interpolation in mathematica:

1- Polynomial interpolation which give us a smooth function that pass through all

data points. This type of interpolation can be done using this command:

(InterpolatingPolynomial[data1,x])

2- Interpolation by specifying the degree of the function. This type of

interpolation works between data points. This type of interpolation can be

done using this command:

(f3=Interpolation[data3,InterpolationOrdern])where

nistheorderofthepolynomialrequired

The procedure for each built-in function is illustrated using the following examples.

Example :Interpolate the following data:

data1={{1,1},{2,4},{3,7},{4,4},{5,1},{6,4},{7,9},{8,4}}

Step by step solution:

Step 1:First try to plot the data to see the trend of this data as follows:

plotting data. Notes the

capital letter at the

beginning

follows:

This is the

InterpolatingPolynomial

capital letters

pass all the points in a

smooth manner

Step 1:Name your data with any name and then use the interpolation command as

follows:

The

interpolation

command

This is the order

of the function

between points

( the default is

Step 2:plot the interpolation , data points and the polynomialinterpolation curves to

see the difference between all curves as follows:

Interpolatingpolynomi

al curve

Interpolation

curve

value of the function at

any point

Applications: F(x ,y) is given below for x = 0.1,...,0.6 and y = 1.2, 1.4, 1.6:

x y 1.2 y 1.4 y 1.6

0.1

29

30

31

0.2

57

59

60

0.3

83

86

87

0.4

106

109

111

0.5

126

130

132

0.6

143

147

150

- Mohammad Samawi_JMD_Jordanian Meteorological Dep.Uploaded bynidhalsaada
- Module 1 Elements of Dam EngineeringUploaded byParikshit Yadav
- SyllabusUploaded bynidhalsaada
- Bernoulli and DarcyUploaded bynidhalsaada
- Unit HydrographUploaded byOladunni Afolabi
- Applied Fluid Mechanics SylUploaded bynidhalsaada
- Multiple Pumps VFD OperationUploaded bybabuthomas23
- CE353-CH7Uploaded byHong Veasna
- Hydro Graph AnalysisUploaded byJohn Bester
- Precipitation Data AnalysisUploaded bynidhalsaada
- Abet Civil EngUploaded bynidhalsaada
- class 01Uploaded bynidhalsaada
- Hmwk3Uploaded bynidhalsaada
- lecture1.pdfUploaded bynidhalsaada
- lecture_notes_01Uploaded bynidhalsaada
- Eco Analysis of Water ResourcesUploaded bySelven Veerapen
- 415w03_lab5keyUploaded bynidhalsaada
- Eng Hyd Answers ProblemsUploaded bynidhalsaada
- m2l01Uploaded byAbhilash Krishnan
- Lab_3B Root of Equation MathimaticaUploaded bynidhalsaada
- 415finsample_w03Uploaded bynidhalsaada
- 415w03_qz11a.pdfUploaded bynidhalsaada
- Final ExamUploaded bynidhalsaada
- Review 22013Uploaded bynidhalsaada
- Hmwk2 (1)Uploaded bynidhalsaada
- Hmwk6Uploaded bynidhalsaada
- Hmwk2Uploaded bynidhalsaada

## Much more than documents.

Discover everything Scribd has to offer, including books and audiobooks from major publishers.

Cancel anytime.