Vous êtes sur la page 1sur 4

Analisis Numerico: Laboratorio #5

Due on Friday, Jun 23, 2017

Laura Vanessa Lopez Serrano

1
Laura Vanessa Lopez Serrano Analisis Numerico : Laboratorio #5

Problem #1
A portion of an amusement park ride is to be modeled using three polynomials. The first section is to be a
first-degree polynomial, P1 (x), that covers a horizontal distance of 100 feet, starts at a height of 110 feet,
and ends at a height of 60 feet. The third section is also to be a first-degree polynomial,Q1 (x) that covers
a horizontal distance of 50 feet, starts at a height of 65 feet, and ends at a height of 70 feet. The middle
section is to be a polynomial, P (x) of smallest possible degree, that covers a horizontal distance of 150 feet.

a) Find expressions for P (x), P1 (x) and Q1 (x) such that P (100) = P1 (100), P 0 (100) = P10 (100),
P (250) = P1 (250) and P 0 (250) = P10 (250) and the curvature of P (x) equals the curvature of P1 (x) at
x = 100 and equals the curvature of Q1 (x) at x = 250.

Datos:

x y x y
0 110 250 65
100 60 300 70

Table 1: P1 (x). Table 2: Q1 (x).

Para P1 (x) y Q2 (x) como tenemos dos puntos hallamos la ecuacion de la recta y = mx + b, obteniendo:

P1 (x) = 0, 5x + 110

Q1 (x) = 0, 1x + 40

Para hallar P (x) creamos una matriz de 4x4 usamos un polinomio de grado 3: P (x) = Ax3 + Bx2 +
Cx + D siguiendo las condiciones dadas para hallar A,B,C y D:

P1 (100) = 60 P (100) = A(100)3 + B(100)2 + C(100) + D = 60

P10 (100) = 0, 5 P 0 (100) = 3A(100)2 + 2B(100) + C = 0, 5


Q1 (250) = 65 P (250) = A(250)3 + B(250)2 + C(250) + D = 65
Q01 (250) = 0, 1 P 0 (250) = 3A(250)2 + 2B(250) + C = 0, 1

Lo que nos da:

1000000 10000 100 1 A 60


B 0, 5
30000 200 1 0
15625000 62500 250 1 C = 65

187500 500 1 0 D 0, 1

Usando Matlab, hallamos A,B,C y D que nos da:

Page 2 of 4
Laura Vanessa Lopez Serrano Analisis Numerico : Laboratorio #5 Problem #1

Figure 1: A,B,C y D

Tenemos que:
A=-2.074074074074074e-05
B=0.012888888888889
C=-2.455555555555556
D=1.974074074074075e+02
Por lo que la ecuacion de P (x) quedara as:

P (x) = Ax3 + Bx2 + Cx + D

P (X) = 2.074074074074074e05x3 +0.012888888888889x2 2.455555555555556x+1.974074074074075e+02

b) Plot the graphs of P1 (x), P(x), Q1 (x) on the same coordinate system.

La montaa Rusa
110

100

90

80 P1(X)

70
o
60 o Q1(X)

50
P(X)
40
0 50 100 150 200 250 300

c) Use algorithm 1 to find the average height of the ride over the given horizontal distance.

Los promedios se dan dependiendo de los polinomios entonces PROMA, PROMB y PROMC cor-
responde a los polinomios P1 (x), Q1 (x) y P (x) respectivamente:

Page 3 of 4
Laura Vanessa Lopez Serrano Analisis Numerico : Laboratorio #5 Problem #1

y la altura media de las tres porciones seria PROMT.

Page 4 of 4

Vous aimerez peut-être aussi