0% found this document useful (0 votes)
71 views40 pages

An Optimal Spline Method For Solving Numerical Problem - Ferdaws Farhad Rafiq

This document presents research on using spline functions to solve numerical problems. It discusses transforming sine and cosine functions of degree one using spline functions of degree one. The research was conducted to fulfill requirements for a BSc in Mathematics at Salahaddin University-Erbil. It provides background on spline functions and their history. It then defines spline functions mathematically and discusses their properties. Examples and graphical representations are provided to illustrate transforming sine and cosine functions with spline functions of degree one. The research aims to demonstrate the effectiveness and applicability of these transformations.

Uploaded by

Samm Sung
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views40 pages

An Optimal Spline Method For Solving Numerical Problem - Ferdaws Farhad Rafiq

This document presents research on using spline functions to solve numerical problems. It discusses transforming sine and cosine functions of degree one using spline functions of degree one. The research was conducted to fulfill requirements for a BSc in Mathematics at Salahaddin University-Erbil. It provides background on spline functions and their history. It then defines spline functions mathematically and discusses their properties. Examples and graphical representations are provided to illustrate transforming sine and cosine functions with spline functions of degree one. The research aims to demonstrate the effectiveness and applicability of these transformations.

Uploaded by

Samm Sung
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

‫ًٌَلێش‬-‫صاوكۆی سًالحًدیه‬

Salahaddin University-Erbil

An optimal spline method for solving


numerical problem

Research project:

Submitted to the department of Mathematics in partial fulfillment of the


requirements for the degree of BSc. in MATHEMATICS

Prepared By:
Ferdaws Farhad Rafiq

Supervised by:
Assist. Prof. Dr. Ivan Subhi Latif
April-2023
Certification of the supervisors

I certify that this work was prepared under my supervision at the Department of
Mathematics/College of Education/Salahaddin University-Erbil in partial
fulfillment of the requirements for the degree of Bachelor of philosophy of Science
in Mathematics.

Signature:

Supervisor: Dr. Ivan Subhi Latif

Scientific grade: Assist. Professor

Date: /4/ 2023

In view of the available recommendations, I forward this work for debate by the
examining committee.

Signature:

Name: Dr. Rashad Rashid Haji

Scientific grade: Assist. Professor

Chairman of the Mathematics Department

Date: /4/ 2023

ii
Acknowledgment

Primarily, I would like to thanks my god for helping me to complete this research
with success.

Then I would like to express special of my supervisor Dr. Ivan S. Latif

Whose valuable to guidance has been the once helped me to completing my


research.

Words can only inadequately express my gratitude to my supervisor for patiently


helping me to think clearly and consistently by discussing every point of this
dissertation with me.

Also, I would like to thank my family, friend and library staff whose support has
helped me to conceive this research

iii
Abstract

In this paper, we present the spline function of degree one transformation for the
sine and cosine functions of degree one. We first introduce the concept of spline
functions and its application. We then discuss the properties of the sine and cosine
functions and how they can be transformed using spline functions of degree one.
Finally, we provide examples and graphical representations to illustrate the
effectiveness and applicability of these transformations.

iv
Table of Contents
Certification of the supervisors ........................................................................................................ii
Acknowledgment ............................................................................................................................. iii
Abstract ............................................................................................................................................ iv
Table of Contents ............................................................................................................................. v
Table of Figure ................................................................................................................................ vi
CHAPTER ONE .............................................................................................................................. 1
INTRODUCTION ....................................................................................................................... 1
1.1 Introduction: ....................................................................................................................... 1
1.2 History of Spline Function: ................................................................................................ 3
CHAPTER TWO ............................................................................................................................. 4
SPLINE FUNCTION ................................................................................................................... 4
2 Spline function ...................................................................................................................... 4
2.1 Mathematical Definition of spline ..................................................................................... 5
CHAPTER THREE ....................................................................................................................... 10
TRANSFORMATION SPLINE FUNCTION OF POLYNOMIAL DEGREE ONE ............... 10
3.1 Transformation for sine function and cosine function of polynomial degree one ........... 10
3.2 Spline by geometric function ........................................................................................... 14
3.3 Matlab of transformation of spline degree one ................................................................ 21
3.4 Algorithm of transformation of spline degree one ........................................................... 23
CHAPTER FOUR .............................................................................................................................. 25
NUMERICAL RESULT ............................................................................................................ 25
Reference ....................................................................................................................................... 32
‌‫ پوخته‬...................................................................................................................................................a

v
List of Figure

Figure 1.1 curve of spline mechanical ............................................................................................. 3


Figure 2.1 first-degree spline function ............................................................................................ 6
Figure 2.2 First-degree spline: linear .................................................................................... 7
Figure 2.3 First-degree spline function: linear spline .......................................................... 9
Figure 3.1.1 illustration of sine function using co-ordinate. ......................................................... 10
Figure 3.1.2 sine function .............................................................................................................. 11
Figure 3.1.3 illustrations of cosine function using co-ordinate. .................................................... 12
Figure 3.1.4 cosine function .......................................................................................................... 12
Figure 3.1.5 illustrations using co-ordinate. .................................................................................. 13
Figure 3.2.1 First-degree spline: sine function .................................................................... 15
Figure 3.2.2 spline function of degree one for transformation for sine function of polygonal
degree one. ..................................................................................................................................... 17
Figure 3.2.3 First-degree spline: cosine function ................................................................ 18
Figure 3.2.4 spline function of degree one for transformation for cosine function of polygonal
degree one. ..................................................................................................................................... 20
Figure 4.1.1 spline function of degree one .................................................................................... 26
Figure 4.1.2 spline function transformation of sine function ........................................................ 27
Figure 4.1.3 spline function transformation of cosine function .................................................... 28
Figure 4.1.4 spline function of degree one by example 4.2.1........................................................ 29
Figure 4.1.5 spline function transformation of sine function by example 4.2.2 ............................ 30
Figure 4.1.6 spline function transformation of cosine function by example 4.2.3 ...................... 31

vi
CHAPTER ONE

INTRODUCTION

1.1 Introduction:
The study of splines has been developed, mostly by French mathematicians. It
is well known that interpolating cubic splines can be derived as the solutions of
certain variational problems. In its simple form, the mathematical spline is
continuous and has both a continuous first derivative and a continuous second
derivative. Normally, for many important applications, this mathematical model of
the draftsman's spline is highly realistic. (R.Champision:C.T.Lenard:T.M.Mills
1996) (J.H.Ahlbery:E.N.Nilson, The Theorey of Spline and Their Application
1997)

Let's begin with the simplest method linear interpolation. The idea is that we are
given a set of numerical points and function values at these points. The task is to
use the given set and approximate the function's value at some different points.
That is, given where our task is to estimate for
. Of course we may require to go outside of the range of our set of points, which
would require extrapolation (or projection outside the known function
values).Almost all interpolation techniques are based around the concept of
function approximation. Mathematically, the backbone is simple:

1
The above expression tells us that the value of function we are approximating at
point will be around and that . We can rewrite this expression as
follows:

Where we have substituted for and for . Our linear interpolation is

now taking a form of linear regression around .Linear interpolation is the most
basic type of interpolations. It works remarkably well for smooth functions with
sufficient number of points. However, because it is such a basic method,
interpolating more complex. (Elena 2015)

Spline interpolation consist of piecewise polynomial interpolation. Thus, a spline


function is a piecewise polynomial whose value and the value of some of its first
derivatives coincide at the interpolation point. A spline is a simple mechanical
device for drawing smooth curve, it is a slender flexible bar made of wood or some
other elastic material. The spline is placed on the sheet of graph paper and held in
place at various points by means of certain heavy objects (called “dogs” or “rots”)
such as to take the shape of the curve we wish to draw. (C.Brezinski and
L.Wuytack 2001)

2
Figure 1.1 curve of spline mechanical

1.2 History of Spline Function:


Spline is the subject had been studied as early as 1906 by George David
Birkhoff (1884-1944); its development really starts in 1946 with two papers by
Issac Jacob Scheoenbery (1903-1990). (C.Brezinski:L.Waytack 2001)

The history of spline functions is rooted in the work of draftsmen, who often
needed to draw a gently turning curve between points on a drawing. This process is
called fairing and can be accomplished with a number of ad hoc devices, such as
the French curve, made of plastic and presenting a number of curves of different
curvature for the draftsman to select. Long strips of wood were also used, being
made to pass through the control points by weights laid on the draftsman's table and
attached to the strips. The weights were called ducks and the strips of wood were
called splines, even as early as 1891. Spline functions have proved to be very useful
in numerical analysis and statistics. (kincaid 2013)
(R.Champision:C.T.Lenard:T.M.Mills 1996)

3
CHAPTER TWO

SPLINE FUNCTION

2 Spline function
It seems appropriate to begin a research on spline theory by defining a spline in
its simplest and most widely used form, and also to indicate the motivation leading
to this definition. For many years, longs, thin strips of wood or some other material
have been used much like French curve by draftsmen to fair in a smooth curve
between specified points. These strips or spline are anchored in place by attaching
lead weights called “ducks” at points along the spline. By varying the points where
the ducks are attached to the spline itself and the position of both the spline and the
duck relative to the drafting surface, the spline can be made to pass through the
specified points provided a sufficient number of ducks are used.
If we regard the draftsmen’s spline as a thin beam, then the Bernoulli-Euler law

Is satisfied. Here is the bending moment, is young’s modulus’s, is the


geometric moment of inertial, and is the radius of curvature of the elastic,
i.e, the curve assumed by the deformed axis of the beam. For small deflection,
is replaced by , where denotes the elastic. Thus we have

Since the ducks act effectively as simple supports, the variation of between
duck positions is linear.

4
The mathematical spline is the result of replacing the draftsmen’s spline by it’s
elastic and then approximating the latter by a piecewise cubic( normally a different
cubic between each pair of adjacent duck) with certain discontinuities of
derivatives permitted at the junction points(the ducks) where two cubics join.
(J.H.Ahlbery:E.N.Nilson, The Theorey of Spline and Their Application 1997)

2.1 Mathematical Definition of spline


A spline function is a function consisting of polynomial we are forced to write

First-degree spline 2.1.1:

A spline function is a function that consists of polynomial piece joined together


with certain smoothness conditions. A simple example is the polygonal function (or
spline of degree one) (kincaid 2013)

5

𝑆4 𝑆6
● ● 5

𝑆 𝑆3
● ●
𝑆
● ● ●

● ● ● ● ● ● ● ● x
a=𝑡 𝑡 𝑡 𝑡3 𝑡4 𝑡5 𝑡6 𝑡7 𝑏

Figure 2.1 first-degree spline function

Whose piece are linear polynomial joined together to achieve continuity, as in


figure2.1. The points at which the function changes it’s character are
termed knots in the theory of spline. Thus, the spline function shown in figure 2.1
has eight knot. Such a function appears somewhat complicated when defined in
explicit terms. We are forced to write piecewise linear

Where

6
Because each piece of is piecewise linear. If the knots were given
and if the coefficients were all known, then the
evaluation of at a specific would proceed by first determining the interval
the contains and then using the appropriate linear function for that interval. If the
function defined by Equation (1) is continuous. We call it a first-degree spline. It
is characterized by the following three properties. (kincaid 2013)

Property of first- degree spline2.1.1

A function is called a spline of degree one if:

1- The domain of S is an interval .


2- S is continuous on
3- There is partitioning of the interval such that S is
a linear polynomial on each subinterval

● 𝑡𝑖 𝑦𝑖

(𝑡𝑖 𝑦𝑖 ) ●

● ●
𝑡𝑖 𝑡𝑖

Figure 2.2 First-degree spline: linear

𝑠𝑖 𝑥 𝑦𝑖 𝑚𝑖 𝑥 𝑡𝑖 3

7
On the interval [ ], where is the SLOP of the line and is therefore given
the formula

Substitute equation (2.4) in equation (2.3)

End function spline one. (kincaid 2013)

Example 2.1: Determine a spline function of degree one which interpolates the
following data:

X 1 2 3 4
Y 0 1 0 1

Solution: since

{ 3
3

8
3

3
4 3

x-3

3 3 ; 3

3 3 3
3
3 3 3

2 ● ●

1 ( )●
𝑆 𝑥 𝑆 𝑥
● ●
1 2 3 4

Figure 2.3 First-degree spline function: linear spline

9
CHAPTER THREE

TRANSFORMATION SPLINE FUNCTION OF


POLYNOMIAL DEGREE ONE

3.1 Transformation for sine function and cosine function of


polynomial degree one

Sine Function 3.1.1:

(x,y)●

y
𝜃

Figure 3.1.1 illustration of sine function using co-ordinate.


NOTATION: Let be any point, other than the origin, on the terminal side of
an angel in standard position. Let be the distance from the point to the
origin.

𝑦
𝑆𝑖𝑛𝜃
𝑟
10
𝑟 𝑥 𝑦
Property of sin(x) 3.1.2 :

𝑆𝑖𝑛 𝑥
1

x
3𝜋 𝜋 𝜋 3𝜋
𝜋 𝜋 𝜋 𝜋

-1

Figure 3.1.2 sine function

1. Domain:
2. Range: .
3. The sine function is a periodic function with fundamental period .
4. The -intercepts are integer multiples of , where is
an integer: ( ).
5. The Maximum(1) and Minimum(-1) value of the sine function

correspond to value that are odd integer multiplies of , such


3 5
as , ,… .
6. The sine function is an odd function:-
 Symmetric about the origin.
 (Young 2012)

11
Cosine Function 3.1.3:

(x,y)●

y
𝜃

Figure 3.1.3 illustrations of cosine function using co-ordinate.


𝑥
𝐶𝑜𝑠𝜃
𝑟

𝑟 𝑥 𝑦

Property of cos(x) 3.1.4: (Young 2012)

𝐶𝑜𝑠𝜃

3 3
0

-1

Figure 3.1.4 cosine function

12
1. Domain: .
2. Range: .
3. The cosine function is periodic function with fundamental period .
3 5
4. The -intercepts, , , ,…, are odd integer multiplies of , which have

the form ,, where is integer :- .

5. The Maximum (1) and Minimum (-1) values of the cosine function
correspond to -value that are integer multiplies of such as

6. The cosine function is an even function:


 Symmetric about the -axis.

Example 3.1: The terminal side of an angel in standard position passes through
the point . (Young 2012)

Solution:

r ●(2,5)

Y=5

X=2

Figure 3.1.5 illustrations using co-ordinate.

13

, √

√ √
√ √

√ √
√ √

3.2 Spline by geometric function

Spline function transformation of sine function 3.2.1:

{ 3

Where

14

𝑥𝑖 𝑦𝑖
(𝑥𝑖 𝑦𝑖 ) ●

● ●
𝑥𝑖 𝑥𝑖

Figure 3.2.1 First-degree spline: sine function

𝑠𝑖 𝑥 𝑆𝑖𝑛 𝑦𝑖 𝑚𝑖 𝑥 𝑥𝑖 3 3

On the interval [ ], where is the SLOP of the line and is therefore given
the formula

Substitute equation (3.1.4) in equation (3.1.3)

* + 3

Example 3.2: Determine a spline function of degree one for transformation for sine
function of polygonal degree one which interpolates the following data:

X 1 2 3 4
Y 0 1 0 1

Solution: since

S(x) ={ 3
3
15
( )

( )

(3 )

( )

3 ( )
4 3

x-3)

=0.0174
7
3 =0.0174

3 3 ; 3

3 3 3
3
3 3 3

16
1

)●
𝑆 𝑥 𝑆 𝑥


1 2 3 4

-1

Figure 3.2.2 spline function of degree one for transformation for sine function of
polygonal degree one.

Spline transformation of cosine function 3.2.2:

{ _____ 3

Where

17
● 𝑥𝑖 𝑦𝑖

(𝑥𝑖 𝑦𝑖 ) ●

● ●
𝑥𝑖 𝑥𝑖

Figure 3.2.3 First-degree spline: cosine function

𝑠𝑖 𝑥 𝐶𝑜𝑠 𝑦𝑖 𝑚𝑖 𝑥 𝑥𝑖 -------- (3.2.3)

On the interval [ ], where is the SLOP of the line and is therefore given
the formula

----- (3.2.4)

Substitute equation (3.2.4) in equation (3.2.3)

* + ----- (3.2.5)

Example 3.3: Determine a spline function of degree one for transformation for
cosine function of polygonal degree one which interpolates the following data:

X 1 2 3 4
Y 0 1 0 1

Solution: since
18
{ 3
3

( )

( )

(3 )

( )

3 ( )
4 3

3 =

19
3 3 ; 3

3 3 3
3
3 3 3

𝑆 𝑥 𝑆 𝑥


1
𝑆 𝑥 𝑆 𝑥 ●

1 2 3 4

-1

Figure 3.2.4 spline function of degree one for transformation for cosine function of
polygonal degree one.

20
3.3 Matlab of transformation of spline degree one
Spline functions of degree one 3.3.1:

clc
n=input('n='); %n=4
x1=input('x1='); %x1=2.5
x=input('x='); %x=[1 2 3 4]
y=input('y='); %y=[1 0 1 0]
m=input('m='); %m=[1 2;2 3;3 4]
s=zeros(n-1,1);
for i=1:n-1
if (x1>=m(i,1))&&(x1<=m(i,2))

s(i,1)=(y(1,i+1)-y(1,i))/(x(1,i+1)-x(1,i))*(x1-
x(1,i))+y(1,i);
disp(s(i,1))
end
plot(x,y,x1,s(i,1))
end

Spline function of degree one transformation of Sine function 3.3.2:

clc
n=input('n='); %n=4
x1=input('x1='); %x1=2.5
x=input('x='); %x=[1 2 3 4]
y=input('y='); %y=[1 0 1 0]
m=input('m='); %m=[1 2;2 3;3 4]
s=zeros(n-1,1);
for i=1:n-1
if (x1>=m(i,1))&&(x1<=m(i,2))

s(i,1)=sin(y(1,i+1)-y(1,i))/(x(1,i+1)-x(1,i))*(x1-
x(1,i))+y(1,i);
disp(s(i,1))
21
end
plot(x,y,x1,s(i,1))
end

Spline function of degree one transformation of Cosine function


3.3.3:

clc
n=input('n='); %n=4
x1=input('x1='); %x1=2.5
x=input('x='); %x=[1 2 3 4]
y=input('y='); %y=[1 0 1 0]
m=input('m='); %m=[1 2;2 3;3 4]
s=zeros(n-1,1);
for i=1:n-1
if (x1>=m(i,1))&&(x1<=m(i,2))

s(i,1)=cos(y(1,i+1)-y(1,i))/(x(1,i+1)-x(1,i))*(x1-
x(1,i))+y(1,i);
disp(s(i,1))
end
plot(x,y,x1,s(i,1))
end

22
3.4 Algorithm of transformation of spline degree one
Spline functions of degree one 3.4.1:

Step1: Assume that value of interval for and , and the number of data valued
, and the range for using formula (2.1)

Step 2: Construct the spline function using formula (2.2)

Step 3: Polite the spline function of degree one using formula (2.5)

Step 4: end.

Spline functions of degree one transformation of Sine function 3.4.2:

Step1: Assume that value of interval for and and the number of data
valued , and the range for using formula (3.3.1)

Step 2: Construct the spline function using formula (3.1.2)

Step 3: Polite the spline function of degree one transformation sine for degree one
using formula (3.1.5)

Step 4: end.

23
Spline functions of degree one transformation of cosine function
3.5.3:

Step1: Assume that value of interval for and and the number of data
valued , and the range for using formula (3.2.1)

Step 2: Construct the spline function using formula (3.2.2)

Step 3: Polite the spline function of degree one transformation cosine for degree
one using formula (3.2.5)

Step 4: end.

24
CHAPTER FOUR

NUMERICAL RESULT

Example 4.1.1: Determine a spline function of degree one which interpolates the
following data:

X 1 2 3 4
Y 0 1 0 1

Solution: use linear spline to produce curve for the following data:

X 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2


Y 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

X 2 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3


Y 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0

X 3 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4


Y 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

25
1.2

0.8

0.6
Series1
0.4

0.2

0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5

Figure 4.1.1 spline function of degree one

Example 4.1.2: Determine a spline function of degree one for transformation for
sine function of polygonal degree one which interpolates the following data:

X 1 2 3 4
Y 0 1 0 1

Solution: use spline function of degree one for transformation for sine function of
polygonal degree one to produce curve for the following data:

X 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2


y 0 0.099 0.198 0.295 0.389 0.479 0.564 0.644 0.717 0.783 0.841

X 2 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3


y 0.841 0.783 0.717 0.644 0.564 0.479 0.389 0.295 0.198 0.099 0

X 3 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4


y 0 0.099 0.198 0.295 0.389 0.479 0.564 0.644 0.717 0.783 0.841

26
0.9
0.8
0.7
0.6
0.5
0.4 Series1
0.3
0.2
0.1
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5

Figure 4.1.2 spline function transformation of sine function

Example 4.1.3: Determine a spline function of degree one for transformation for
cosine function of polygonal degree one which interpolates the following data:

X 1 2 3 4
Y 0 1 0 1

Solution: use spline function of degree one for transformation for cosine function
of polygonal degree one to produce curve for the following data:

X 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2


y 1 0.995 0.980 0.955 0.921 0.877 0.825 0.764 0.696 0.621 0.540

X 2 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3


y 0.540 0.621 0.696 0.764 0.825 0.877 0.921 0.955 0.980 0.995 1

X 3 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4


y 1 0.995 0.980 0.955 0.921 0.877 0.825 0.764 0.696 0.621 0.540

27
Series1

1.2
1
0.8
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5

Figure 4.1.3 spline function transformation of cosine function

Example 4.2.1: Determine a spline function of degree one which interpolates the
following data:
X 0 1 3
Y 2 4 5

Solution: use linear spline to produce curve for the following data:

X 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1


y 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 3.8 4

X 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2 2.1 2.2 2.3 2.4 2.5
y 4 4.05 4.1 4.15 4.2 4.25 4.3 4.35 4.4 4.45 4.5 4.55 4.6 4.65 4.7 4.75

X 2.6 2.7 2.8 2.9 3


y 4.8 4.85 4.9 4.95 5

28
6

3
Series1
2

0
0 0.5 1 1.5 2 2.5 3 3.5

Figure 4.1.4 spline function of degree one by example 4.2.1

Example 4.2.2: Determine a spline function of degree one for transformation for
sine function of polygonal degree one which interpolates the following data:

X 0 1 3
Y 2 4 5

Solution: use spline function of degree one for transformation for sine function of
polygonal degree one to produce curve for the following data:

X 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1


Y 0.909 0.808 0.675 0.515 0.334 0.141 -0.058 -0.255 -0.442 -0.611 -0.756

X 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2


y -0.788 -0.818 -0.845 -0.871 -0.894 -0.916 -0.935 -0.951 -0.965 -0.977

X 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3


y -0.986 -0.993 -0.998 -0.9999 -0.9992 -0.996 -0.990 -0.982 -0.971 -0.958

29
1.5

0.5

0 Series1
0 0.5 1 1.5 2 2.5 3 3.5

-0.5

-1

-1.5

Figure 4.1.5 spline function transformation of sine function by example 4.2.2

Example 4.2.3: Determine a spline function of degree one for transformation for
cosine function of polygonal degree one which interpolates the following data:

X 0 1 3
Y 2 4 5

Solution: use spline function of degree one for transformation for cosine function
of polygonal degree one to produce curve for the following data:

X 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1


y -0.416 -0.588 -0.737 -0.856 -0.942 -0.989 -0.998 -0.966 -0.896 -0.790 -0.653

30
X 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2
y -0.615 -0.574 -0.533 -0.490 -0.446 -0.400 -0.354 -0.307 -0.259 -0.210

X 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3


y -0.161 -0.112 -0.062 -0.012 0.037 0.087 0.137 0.186 0.235 0.283

0.4

0.2

0
0 0.5 1 1.5 2 2.5 3 3.5
-0.2

-0.4 Series1

-0.6

-0.8

-1

-1.2

Figure 4.1.6 spline function transformation of cosine function by example 4.2.3

Note: using MatlabR2010a and Microsoft Excel 2010

31
Reference

C.Brezinski:L.Waytack. Numerical Analysis:Historical develoments in the 20th century.


Amsterdam:paris: ELSEVIER, 2001.
Elena. Codefying. june 7, 2015. https://codefying.com/2015/06/07/linear-and-cubic-spline-
interpolation/ (accessed 12 18, 2022).
J.H.Ahlbery:E.N.Nilson. The Theorey of Spline and Their Application. newyork:london:
Academic Press, 1997.
kincaid, Ward cheney:David. Numerical Mathematics and compting,seven edition. United States
of America: Richad Sratton, 2013.
R.Champision:C.T.Lenard:T.M.Mills. "An introduction to abstract splines." Matematical
Scientist, 1996: 8-26.
Young, Cynthia Y. Trigonometry ,Third Edition. United States of America: John Wiley and
Sons,inc, 2012.

32
‫پُخحً‬

‫لًم جُێژیىًَەیًدا‪ ،‬ئێمً کشداسی سپالیىی پلًی یًک گۆڕاوکاسی پێشکًش دەکًیه بۆ ئًسکًکاوی سایه َ‬
‫کۆسایه لً پلًی یًک‪ .‬ئێمً سًسەجا چًمکی کشداسی سپالیه َ جێبًجێکشدوی دەخًیىً ڕََ‪ .‬دَاجش باس لً‬
‫جایبًجمًوذییًکاوی کاسەکاوی سایه َ کۆسایه دەکًیه َ چۆن دەجُاوشێث بگۆڕدسێه بً بًکاسٌێىاوی کشداسی‬
‫سپالیىی پلًی یًک‪ .‬لً کۆجاییذا‪ ،‬ئێمً ومَُوً َ وُێىًسایًجی گشافیکی پێشکًش دەکًیه بۆ ڕََوکشدوًَەی‬
‫کاسیگًسی َ جێبًجێکشدوی ئًم گۆڕاوکاسییاوً‪.‬‬

‫‪a‬‬
‫ملخص‬

‫في ٌزا البحث ‪ ،‬وقذم َظائف خذد الححُیل مه الذسجة األَلى لُظائف الجیب َجیب الحمام مه الذسجة‬
‫األَلى‪ .‬وقذم أَالً مفٍُم عملیة الششیحة َجىفیزٌا‪ .‬بعذ رلك ‪ ،‬وىاقش خصائص َظائف الجیب َجیب الحمام‬
‫أخیشا ‪ ،‬وقذم أمثلة َجمثیالت سسُمیة لششح‬
‫ً‬ ‫َكیف یمكه جحُیلٍما باسحخذام عملیات خذد مه الذسجة األَلى‪.‬‬
‫جأثیش َجىفیز ٌزي الحغییشات‪.‬‬

‫‪b‬‬

You might also like