You are on page 1of 5

OE6980: Part 2

Snehita (EE19B045)

1) For the given: P0, P1, and P2, plot the behavior of cubic Bézier basis functions assuming 0<= t <=
1 where ‘t’ is the parameter and show that the Bézier basis functions have the property of
partition of unity. Save the figure, with proper labeling of the axes.

1
B(0,2)
0.9 B(1,2)
B(2,2)
0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
2) For the given: P0, P1, P2, and P3 plot the behavior of B-spline basis functions assuming 0 <= u <= 1
where ‘u’ is the parameter for the following conditions: (A) p = 3, U = [0, 1/7, 2/7, 3/7, 4/7, 5/7, 6/7,
1], (B) p = 3, U = [0, 0, 0, 0, 1, 1, 1,1]; where p is the degree of the spline and U is the set of know
vectors. Save the figure, with proper labeling of the axes.
B-Spline Basis Functions (p = 3)
U = [0.00 0.14 0.29 0.43 0.57 0.71 0.86 1.00]
0.7
N0,3(u)
N1,3(u)

0.6 N2,3(u)
N3,3(u)

0.5

0.4

0.3

0.2

0.1

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

3) For the given: (P0, w0 = 15); (P1, w1 = 0), (P2, w2 = 0), and (P3, w2 = 20) plot the behavior of
rational B-spline basis functions assuming that 0<=u<=1 where ‘u’ is the parameter and p = 2. Save
the figure, with proper labeling of the axes.
Excel Questions

4)

A)

Y
10
9f(x) = − 0.0297619047619 x³ + 0.1190476190476 x² + 1.9107142857143 x + 1.776356839E-15
8
7
6
5
4
3
2
1
0
0 1 2 3 4 5 6 7 8

B)

Y
16

14
f(x) = 0.0035635964912 x³ − 0.0946898496241 x² + 1.7935463659148 x − 0.0563909774436
12

10

0
0 2 4 6 8 10 12 14
C) Given points = 9 => exact degree = 8

However MS Excel can generate only a maximum degree of 6 in scatter plots. Hence I have attached
the following plot

Y
25

20
f(x) = − 0.0000259997 x⁶ + 0.00131908 x⁵ − 0.0253396 x⁴ + 0.231886 x³ − 1.06803 x²
+ 3.63466 x − 0.779127
15

10

0
0 2 4 6 8 10 12 14 16 18

5) The derived equation for the given data is y = 2 + x – 3x 2 + 3x3.

We plotted the fitted curve for x in the interval 0 to 1 at 0.25 steps. We can see that the equation
obtained in Excel is the exact equation.

Y
3.5

3
f(x) = 3 x³ − 3 x² + x + 2
2.5

1.5

0.5

0
0 0.2 0.4 0.6 0.8 1 1.2

You might also like