70 likes | 209 Views
Introduction. Polynomials: frequently used expressions in modeling Projectile motion , Solutions are often the zeros of these equations When does the projectile hit the ground? This section outlines how MATLAB handles polynomials and some useful functions. Warm-Up Problem.
E N D
Introduction • Polynomials: frequently used expressions in modeling • Projectile motion • , • Solutions are often the zeros of these equations • When does the projectile hit the ground? • This section outlines how MATLAB handles polynomials and some useful functions
Warm-Up Problem The vertical height of a rock shot from a sling-shot is given by . With an initial vertical velocity of 15 m/s, what is the height after 2 seconds? When does it hit the ground?
Polynomials in MATLAB • MATLAB has several intrinsic functions that handle polynomials • Root finding • Calculating values at a given location • Multiplication of polynomials • Derivatives • Each relies on converting a polynomial into a vector of coefficients • becomes • A longer vector means the polynomial has more terms
Polynomials in MATLAB • polyval(p,x): evaluates the polynomial p at x • Example: what is when ? • roots(p): evaluates the roots of p (how many are there?) • Example: where does ? • poly(r): given roots of a polynomial, returns the coefficients • Example: r = (1 2 3 4 5), what is the polynomial? • conv(p,q): multiplies the polynomials p,q • Example: • polyder(p): takes the derivative of the polynomial • Example:
Concept Questions • How many roots would you expect the following polynomial to have? • What do the zeros of that polynomial represent? • How might you find the maximum value of the above polynomial?
Group Problem • Phoebe Small is out Sunday driving in her spaceship. As she approaches Mars, she changes her mind, decides that she does not wish to visit that planet, and fires her retro-rocket. The spaceship slows down, and if all goes well, stops for an instant then starts pulling away. While the rocket motor is firing, Phoebe’s distance, d, from the surface of Mars depends by a quadratic function on the number of minutes, t, since she started firing the rocket. • Phoebe finds that at times t = 1, 2, and 3 minutes, her distances are d = 425, 356, and 293 kilometers, respectively. Find the particular equation expressing d in terms of t. • Find the d – intercept and tell what this number represents in the real world. • According to the equation, where will Phoebe be when t = 15? When t = 16? • Does this tell you she is pulling away from Mars when t = 16, or still approaching? • Does your model tell you that Phoebe crashed into the surface of Mars, just touches the surface, or pulls away before reaching the surface? Explain.
For Next Time • Chapter 8, #2,3,7,9,18,22,25 Due Wednesday