ITCE 380 Lab Report 7

You might also like

You are on page 1of 7

University of Bahrain

College of Information Technology


Department of Computer Engineering

ITCE 380: Numerical Analysis


Experiment 7 Curve Fitting

STUDENT’S NAME: Amna Azmat Raza Malik


STUDENT’S ID: 20161934
DATE OF SUBMISSION: 13 Dec 2018
Aim
The aim of this experiment is to understand the concept of curve fitting and apply
it in Mat lab.
Introduction
Curve fitting is the process of constructing a curve, or mathematical function that
has the best fit to a series of data points. Curve fitting can involve
either interpolation where an exact fit to the data is required, or smoothing in
which a "smooth" function is constructed that approximately fits the data. Fitted
curves can be used as an aid for data visualization to infer values of a function
where no data are available and to summarize the relationships among two or more
variables. Extrapolation refers to the use of a fitted curve beyond the range of the
observed data and is subject to a degree of uncertainty since it may reflect the
method used to construct the curve as much as it reflects the observed data.
Procedure
1. The following data was entered in MAT LAB.

2. First order polynomial (linear)

3. Second order polynomial (quadratic)

4. A lot of y’s were evaluated.

5. The two fits were compared.


6. The following is a characteristic curve of a certain thermistor:
7. Estimate from the curve the values of the resistance at -20, -10, 0, 10, 25, 40 and
60C.
8. Enter these data and fit a sixth order polynomial equation for this thermistor.
9. Interpolate the resistance values at 30 and 50 co.

10.Extrapolate the resistance values at -30 and 100oC.


It cannot be extrapolated as it is out of range.
Conclusion
In this experiment we were able to understand the concept of curve fitting and
implement it with the help of MAT LAB. We were able to interpolate the data.

You might also like