Académique Documents
Professionnel Documents
Culture Documents
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
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:
B 0, 5
30000 200 1 0
15625000 62500 250 1 C = 65
187500 500 1 0 D 0, 1
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:
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
Page 4 of 4