Банк рефератов содержит более 364 тысяч рефератов, курсовых и дипломных работ, шпаргалок и докладов по различным дисциплинам: истории, психологии, экономике, менеджменту, философии, праву, экологии. А также изложения, сочинения по литературе, отчеты по практике, топики по английскому.
Полнотекстовый поиск
Всего работ:
364139
Теги названий
Разделы
Авиация и космонавтика (304)
Административное право (123)
Арбитражный процесс (23)
Архитектура (113)
Астрология (4)
Астрономия (4814)
Банковское дело (5227)
Безопасность жизнедеятельности (2616)
Биографии (3423)
Биология (4214)
Биология и химия (1518)
Биржевое дело (68)
Ботаника и сельское хоз-во (2836)
Бухгалтерский учет и аудит (8269)
Валютные отношения (50)
Ветеринария (50)
Военная кафедра (762)
ГДЗ (2)
География (5275)
Геодезия (30)
Геология (1222)
Геополитика (43)
Государство и право (20403)
Гражданское право и процесс (465)
Делопроизводство (19)
Деньги и кредит (108)
ЕГЭ (173)
Естествознание (96)
Журналистика (899)
ЗНО (54)
Зоология (34)
Издательское дело и полиграфия (476)
Инвестиции (106)
Иностранный язык (62791)
Информатика (3562)
Информатика, программирование (6444)
Исторические личности (2165)
История (21319)
История техники (766)
Кибернетика (64)
Коммуникации и связь (3145)
Компьютерные науки (60)
Косметология (17)
Краеведение и этнография (588)
Краткое содержание произведений (1000)
Криминалистика (106)
Криминология (48)
Криптология (3)
Кулинария (1167)
Культура и искусство (8485)
Культурология (537)
Литература : зарубежная (2044)
Литература и русский язык (11657)
Логика (532)
Логистика (21)
Маркетинг (7985)
Математика (3721)
Медицина, здоровье (10549)
Медицинские науки (88)
Международное публичное право (58)
Международное частное право (36)
Международные отношения (2257)
Менеджмент (12491)
Металлургия (91)
Москвоведение (797)
Музыка (1338)
Муниципальное право (24)
Налоги, налогообложение (214)
Наука и техника (1141)
Начертательная геометрия (3)
Оккультизм и уфология (8)
Остальные рефераты (21692)
Педагогика (7850)
Политология (3801)
Право (682)
Право, юриспруденция (2881)
Предпринимательство (475)
Прикладные науки (1)
Промышленность, производство (7100)
Психология (8692)
психология, педагогика (4121)
Радиоэлектроника (443)
Реклама (952)
Религия и мифология (2967)
Риторика (23)
Сексология (748)
Социология (4876)
Статистика (95)
Страхование (107)
Строительные науки (7)
Строительство (2004)
Схемотехника (15)
Таможенная система (663)
Теория государства и права (240)
Теория организации (39)
Теплотехника (25)
Технология (624)
Товароведение (16)
Транспорт (2652)
Трудовое право (136)
Туризм (90)
Уголовное право и процесс (406)
Управление (95)
Управленческие науки (24)
Физика (3462)
Физкультура и спорт (4482)
Философия (7216)
Финансовые науки (4592)
Финансы (5386)
Фотография (3)
Химия (2244)
Хозяйственное право (23)
Цифровые устройства (29)
Экологическое право (35)
Экология (4517)
Экономика (20644)
Экономико-математическое моделирование (666)
Экономическая география (119)
Экономическая теория (2573)
Этика (889)
Юриспруденция (288)
Языковедение (148)
Языкознание, филология (1140)

Курсовая работа: Interpolation, approximation and differential equations solvers

Название: Interpolation, approximation and differential equations solvers
Раздел: Топики по английскому языку
Тип: курсовая работа Добавлен 06:05:19 24 сентября 2010 Похожие работы
Просмотров: 29 Комментариев: 19 Оценило: 2 человек Средний балл: 5 Оценка: неизвестно     Скачать

Contents

Problem 1

1.1 Problem definition

1.2 Solution of the problem

1.2.1 Linear interpolation

1.2.2 Method of least squares interpolation

1.2.3 Lagrange interpolating polynomial

1.2.4 Cubic spline interpolation

1.3 Results and discussion

1.3.1 Lagrange polynomial

Problem 2

2.1 Problem definition

2.2 Problem solution

2.2.1 Rectangular method

2.2.2 Trapezoidal rule

2.2.3 Simpson's rule

2.2.4 Gauss-Legendre method and Gauss-Chebyshev method

Problem 3

3.1 Problem definition

3.2 Problem solution

Problem 4

4.1 Problem definition

4.2 Problem solution

References

Problem 1

1.1 Problem definition

For the following data set, please discuss the possibility of obtaining a reasonable interpolated value at Interpolation, approximation and differential equations solvers, Interpolation, approximation and differential equations solvers, and Interpolation, approximation and differential equations solvers via at least 4 different interpolation formulas you are have learned in this semester.

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

1.2 Solution of the problem

Interpolation is a method of constructing new data points within the range of a discrete set of known data points.

In engineering and science one often has a number of data points, as obtained by sampling or experimentation, and tries to construct a function which closely fits those data points. This is called curve fitting or regression analysis. Interpolation is a specific case of curve fitting, in which the function must go exactly through the data points.

First we have to plot data points, such plot provides better picture for analysis than data arrays

Following four interpolation methods will be discussed in order to solve the problem:

· Linear interpolation

· Method of least squares interpolation

· Lagrange interpolating polynomial


Interpolation, approximation and differential equations solvers

Fig 1. Initial data points

· Cubic spline interpolation

1.2.1 Linear interpolation

One of the simplest methods is linear interpolation (sometimes known as lerp). Generally, linear interpolation tales two data points, say Interpolation, approximation and differential equations solvers and Interpolation, approximation and differential equations solvers, and the interpolant is given by:

Interpolation, approximation and differential equations solvers at the point Interpolation, approximation and differential equations solvers

Linear interpolation is quick and easy, but it is not very precise/ Another disadvantage is that the interpolant is not differentiable at the point Interpolation, approximation and differential equations solvers.

1.2.2 Method of least squares interpolation

The method of least squares is an alternative to interpolation for fitting a function to a set of points. Unlike interpolation, it does not require the fitted function to intersect each point. The method of least squares is probably best known for its use in statistical regression, but it is used in many contexts unrelated to statistics.


Interpolation, approximation and differential equations solvers

Fig 2. Plot of the data with linear interpolation superimposed

Generally, if we have Interpolation, approximation and differential equations solvers data points, there is exactly one polynomial of degree at most Interpolation, approximation and differential equations solvers going through all the data points. The interpolation error is proportional to the distance between the data points to the power n. Furthermore, the interpolant is a polynomial and thus infinitely differentiable. So, we see that polynomial interpolation solves all the problems of linear interpolation.

However, polynomial interpolation also has some disadvantages. Calculating the interpolating polynomial is computationaly expensive compared to linear interpolation. Furthermore, polynomial interpolation may not be so exact after all, especially at the end points. These disadvantages can be avoided by using spline interpolation.

Example of construction of polynomial by least square method

Data is given by the table:

Interpolation, approximation and differential equations solvers


Polynomial is given by the model:

Interpolation, approximation and differential equations solvers

In order to find the optimal parameters Interpolation, approximation and differential equations solvers the following substitution is being executed:

Interpolation, approximation and differential equations solvers, Interpolation, approximation and differential equations solvers, …, Interpolation, approximation and differential equations solvers

Then: Interpolation, approximation and differential equations solvers

The error function:

Interpolation, approximation and differential equations solvers

It is necessary to find parameters Interpolation, approximation and differential equations solvers, which provide minimums to function Interpolation, approximation and differential equations solvers:

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

It should be noted that the matrix Interpolation, approximation and differential equations solvers must be nonsingular matrix.

For the given data points matrix Interpolation, approximation and differential equations solvers become singular, and it makes impossible to construct polynomial with Interpolation, approximation and differential equations solvers order, where Interpolation, approximation and differential equations solvers - number of data points, so we will use Interpolation, approximation and differential equations solvers polynomial

Interpolation, approximation and differential equations solvers

Fig 3. Plot of the data with polynomial interpolation superimposed

Because the polynomial is forced to intercept every point, it weaves up and down.

1.2.3 Lagrange interpolating polynomial

The Lagrange interpolating polynomial is the polynomial Interpolation, approximation and differential equations solvers of degree Interpolation, approximation and differential equations solvers that passes through the Interpolation, approximation and differential equations solvers points Interpolation, approximation and differential equations solvers, Interpolation, approximation and differential equations solvers, …, Interpolation, approximation and differential equations solvers and is given by:

Interpolation, approximation and differential equations solvers,

Where

Interpolation, approximation and differential equations solvers


Written explicitly

Interpolation, approximation and differential equations solvers

When constructing interpolating polynomials, there is a tradeoff between having a better fit and having a smooth well-behaved fitting function. The more data points that are used in the interpolation, the higher the degree of the resulting polynomial, and therefore the greater oscillation it will exhibit between the data points. Therefore, a high-degree interpolation may be a poor predictor of the function between points, although the accuracy at the data points will be "perfect."

Interpolation, approximation and differential equations solvers

Fig 4. Plot of the data with Lagrange interpolating polynomial interpolation superimposed

One can see, that Lagrange polynomial has a lot of oscillations due to the high order if polynomial.

1.2.4 Cubic spline interpolation

Remember that linear interpolation uses a linear function for each of intervals Interpolation, approximation and differential equations solvers. Spline interpolation uses low-degree polynomials in each of the intervals, and chooses the polynomial pieces such that they fit smoothly together. The resulting function is called a spline. For instance, the natural cubic spline is piecewise cubic and twice continuously differentiable. Furthermore, its second derivative is zero at the end points.

Like polynomial interpolation, spline interpolation incurs a smaller error than linear interpolation and the interpolant is smoother. However, the interpolant is easier to evaluate than the high-degree polynomials used in polynomial interpolation. It also does not suffer from Runge's phenomenon.

Interpolation, approximation and differential equations solvers

Fig 5. Plot of the data with Lagrange interpolating polynomial interpolation superimposed

It should be noted that cubic spline curve looks like metal ruler fixed in the nodal points, one can see that such interpolation method could not be used for modeling sudden data points jumps.

1.3 Results and discussion

The following results were obtained by employing described interpolation methods for the points Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers:


Linear interpolation Least squares interpolation Lagrange polynomial Cubic spline Root mean square
Interpolation, approximation and differential equations solvers 0.148 0.209 0.015 0.14 0.146
Interpolation, approximation and differential equations solvers 0.678 0.664 0.612 0.641 0.649
Interpolation, approximation and differential equations solvers 1.569 1.649 1.479 1.562 1.566

Table 1. Results of interpolation by different methods in the given points.

In order to determine the best interpolation method for the current case should be constructed the table of deviation between interpolation results and root mean square, if number of interpolations methods increases then value of RMS become closer to the true value.

Linear interpolation Least squares interpolation Lagrange polynomial Cubic spline
Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers
Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers
Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers
Average deviation from the RMS Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers Interpolation, approximation and differential equations solvers

Table 2. Table of Average deviation between average deviation and interpolation results.

One can see that cubic spline interpolation gives the best results among discussed methods, but it should be noted that sometimes cubic spline gives wrong interpolation, especially near the sudden function change. Also good interpolation results are provided by Linear interpolation method, but actually this method gives average values on each segment between values on it boundaries.

Problem 2

2.1 Problem definition

For the above mentioned data set, if you are asked to give the integration of Interpolation, approximation and differential equations solvers between two ends Interpolation, approximation and differential equations solvers and Interpolation, approximation and differential equations solvers? Please discuss the possibility accuracies of all the numerical integration formulas you have learned in this semester.

2.2 Problem solution

In numerical analysis, numerical integration constitutes a broad family of algorithms for calculating the numerical value of a definite integral.

There are several reasons for carrying out numerical integration. The integrand Interpolation, approximation and differential equations solvers may be known only at certain points, such as obtained by sampling. Some embedded systems and other computer applications may need numerical integration for this reason.

A formula for the integrand may be known, but it may be difficult or impossible to find an antiderivative which is an elementary function. An example of such an integrand is Interpolation, approximation and differential equations solvers, the antiderivative of which cannot be written in elementary form.

It may be possible to find an antiderivative symbolically, but it may be easier to compute a numerical approximation than to compute the antiderivative. That may be the case if the antiderivative is given as an infinite series or product, or if its evaluation requires a special function which is not available.

The following methods were described in this semester:

· Rectangular method

· Trapezoidal rule

· Simpson's rule

· Gauss-Legendre method

· Gauss-Chebyshev method

2.2.1 Rectangular method

The most straightforward way to approximate the area under a curve is to divide up the interval along the x-axis between Interpolation, approximation and differential equations solvers and Interpolation, approximation and differential equations solvers into a number of smaller intervals, each of the same length. For example, if we divide the interval into Interpolation, approximation and differential equations solvers subintervals, then the width of each one will be given by:

Interpolation, approximation and differential equations solvers

The approximate area under the curve is then simply the sum of the areas of all the rectangles formed by our subintervals:

Interpolation, approximation and differential equations solvers

The summary approximation error for Interpolation, approximation and differential equations solvers intervals with width Interpolation, approximation and differential equations solvers is less than or equal to

Interpolation, approximation and differential equations solvers

Thus it is impossible to calculate maximum of the derivative function, we can estimate integration error like value:

Interpolation, approximation and differential equations solvers

2.2.2 Trapezoidal rule

Trapezoidal rule is a way to approximately calculate the definite integral. The trapezium rule works by approximating the region under the graph of the function Interpolation, approximation and differential equations solvers by a trapezium and calculating its area. It follows that

Interpolation, approximation and differential equations solvers

To calculate this integral more accurately, one first splits the interval of integration Interpolation, approximation and differential equations solvers into n smaller subintervals, and then applies the trapezium rule on each of them. One obtains the composite trapezium rule:

Interpolation, approximation and differential equations solvers

The summary approximation error for Interpolation, approximation and differential equations solvers intervals with width Interpolation, approximation and differential equations solvers is less than or equal to:

Interpolation, approximation and differential equations solvers

2.2.3 Simpson's rule

Simpson's rule is a method for numerical integration, the numerical approximation of definite integrals. Specifically, it is the following approximation:

Interpolation, approximation and differential equations solvers

If the interval of integration Interpolation, approximation and differential equations solvers is in some sense "small", then Simpson's rule will provide an adequate approximation to the exact integral. By small, what we really mean is that the function being integrated is relatively smooth over the interval Interpolation, approximation and differential equations solvers. For such a function, a smooth quadratic interpolant like the one used in Simpson's rule will give good results.

However, it is often the case that the function we are trying to integrate is not smooth over the interval. Typically, this means that either the function is highly oscillatory, or it lacks derivatives at certain points. In these cases, Simpson's rule may give very poor results. One common way of handling this problem is by breaking up the interval Interpolation, approximation and differential equations solvers into a number of small subintervals. Simpson's rule is then applied to each subinterval, with the results being summed to produce an approximation for the integral over the entire interval. This sort of approach is termed the composite Simpson's rule.

Suppose that the interval Interpolation, approximation and differential equations solvers is split up in Interpolation, approximation and differential equations solvers subintervals, with n an even number. Then, the composite Simpson's rule is given by

Interpolation, approximation and differential equations solvers

The error committed by the composite Simpson's rule is bounded (in absolute value) by

Interpolation, approximation and differential equations solvers

2.2.4 Gauss-Legendre method and Gauss-Chebyshev method

Since function values are given in fixed points then just two points Gauss-Legendre method can be applied. If Interpolation, approximation and differential equations solversis continuous on Interpolation, approximation and differential equations solvers, then


Interpolation, approximation and differential equations solvers

The Gauss-Legendre rule Interpolation, approximation and differential equations solversG 2( f ) has degree of precision Interpolation, approximation and differential equations solvers. If Interpolation, approximation and differential equations solvers, then

Interpolation, approximation and differential equations solvers,

where

Interpolation, approximation and differential equations solvers

It should be noted that even in case of two points method we have to calculate values of the function in related to Interpolation, approximation and differential equations solvers, Interpolation, approximation and differential equations solvers, this values could be evaluated by linear interpolation (because it is necessary to avoid oscillations), so estimation of integration error become very complicated process, but this error will be less or equal to trapezoidal rule.

Mechanism of Gauss-Chebyshev method is almost the same like described above, and integration error will be almost the same, so there is no reason to use such methods for the current problem.

Problem 3

3.1 Problem definition

It is well known that the third order Runge-Kutta method is of the following form

Interpolation, approximation and differential equations solvers, Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Suppose that you are asked to derived a new third order Runge-Kutta method in the following from

Interpolation, approximation and differential equations solvers, Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Find determine the unknowns Interpolation, approximation and differential equations solvers, Interpolation, approximation and differential equations solvers, Interpolation, approximation and differential equations solvers and Interpolation, approximation and differential equations solvers so that your scheme is a third order Runge-Kutta method.

3.2 Problem solution

Generally Runge-Kutta method looks like:


Interpolation, approximation and differential equations solvers,

where coefficients Interpolation, approximation and differential equations solvers could be calculated by the scheme:

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

The error function:

Interpolation, approximation and differential equations solvers

Coefficients Interpolation, approximation and differential equations solvers, Interpolation, approximation and differential equations solvers, Interpolation, approximation and differential equations solvers must be found to satisfy conditions Interpolation, approximation and differential equations solvers, consequently we can suppose that for each order of Runge-Kutta scheme those coefficients are determined uniquely, it means that there are no two different third order schemes with different coefficients. Now it is necessary to prove statement.

For Interpolation, approximation and differential equations solvers, Interpolation, approximation and differential equations solvers:

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers

Thus we have system of equations:

Interpolation, approximation and differential equations solvers

Some of coefficients are already predefined:

Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers; Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

Obtained results show that Runge-Kutta scheme for every order is unique.

Problem 4

4.1 Problem definition

Discuss the stability problem of solving the ordinary equation Interpolation, approximation and differential equations solvers, Interpolation, approximation and differential equations solvers via the Euler explicit scheme Interpolation, approximation and differential equations solvers, say Interpolation, approximation and differential equations solvers. If Interpolation, approximation and differential equations solvers, how to apply your stability restriction?

4.2 Problem solution

The Euler method is 1st order accurate. Given scheme could be rewritten in form of:

Interpolation, approximation and differential equations solvers

If Interpolation, approximation and differential equations solvers has a magnitude greater than one then Interpolation, approximation and differential equations solvers will tend to grow with increasing Interpolation, approximation and differential equations solvers and may eventually dominate over the required solution. Hence the Euler method is stable only if Interpolation, approximation and differential equations solvers or:

Interpolation, approximation and differential equations solvers

For the case Interpolation, approximation and differential equations solvers mentioned above inequality looks like:

Interpolation, approximation and differential equations solvers

Last result shows that integration step mast be less or equal to Interpolation, approximation and differential equations solvers.

For the case Interpolation, approximation and differential equations solvers, for the iteration method coefficient looks like


Interpolation, approximation and differential equations solvers

Interpolation, approximation and differential equations solvers

As step Interpolation, approximation and differential equations solvers is positive value of the function Interpolation, approximation and differential equations solvers must be less then Interpolation, approximation and differential equations solvers. There are two ways to define the best value of step Interpolation, approximation and differential equations solvers, the firs one is to define maximum value of function Interpolation, approximation and differential equations solvers on the integration area, another way is to use different Interpolation, approximation and differential equations solvers for each value Interpolation, approximation and differential equations solvers, where Interpolation, approximation and differential equations solvers. So integration step is strongly depends on value of Interpolation, approximation and differential equations solvers.

References

1. J. C. Butcher, Numerical methods for ordinary differential equations, ISBN 0471967580

2. George E. Forsythe, Michael A. Malcolm, and Cleve B. Moler. Computer Methods for Mathematical Computations. Englewood Cliffs, NJ: Prentice-Hall, 1977. (See Chapter 6.)

3. Ernst Hairer, Syvert Paul Nørsett, and Gerhard Wanner. Solving ordinary differential equations I: Nonstiff problems, second edition. Berlin: Springer Verlag, 1993. ISBN 3-540-56670-8.

4. William H. Press, Brian P. Flannery, Saul A. Teukolsky, William T. Vetterling. Numerical Recipes in C. Cambridge, UK: Cambridge University Press, 1988. (See Sections 16.1 and 16.2.)

5. Kendall E. Atkinson. An Introduction to Numerical Analysis. John Wiley & Sons - 1989

6. F. Cellier, E. Kofman. Continuous System Simulation. Springer Verlag, 2006. ISBN 0-387-26102-8.

7. Gaussian Quadrature Rule of Integration - Notes, PPT, Matlab, Mathematica, Maple, Mathcad at Holistic Numerical Methods Institute

8. Burden, Richard L.; J. Douglas Faires (2000). Numerical Analysis (7th Ed. ed.). Brooks/Cole. ISBN 0-534-38216-9.

Оценить/Добавить комментарий
Имя
Оценка
Комментарии:
Хватит париться. На сайте FAST-REFERAT.RU вам сделают любой реферат, курсовую или дипломную. Сам пользуюсь, и вам советую!
Никита20:24:33 02 ноября 2021
.
.20:24:31 02 ноября 2021
.
.20:24:30 02 ноября 2021
.
.20:24:29 02 ноября 2021
.
.20:24:29 02 ноября 2021

Смотреть все комментарии (19)
Работы, похожие на Курсовая работа: Interpolation, approximation and differential equations solvers

Назад
Меню
Главная
Рефераты
Благодарности
Опрос
Станете ли вы заказывать работу за деньги, если не найдете ее в Интернете?

Да, в любом случае.
Да, но только в случае крайней необходимости.
Возможно, в зависимости от цены.
Нет, напишу его сам.
Нет, забью.



Результаты(294402)
Комментарии (4230)
Copyright © 2005 - 2024 BestReferat.ru / реклама на сайте