ENGR 132 - QUIZ18

# ENGR 132 - QUIZ18 - how much time the speed is over 2 m/ s...

This preview shows pages 1–6. Sign up to view the full content.

Click to edit Master subtitle style 4/24/11 ENGR 132 Wed/Fri 3:30-5:30

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
4/24/11 Quiz 18 Write the code required to find the first peak on the plot below. t e t t t f 3 5 23 3 - + - = ) cos( ) ( 0 1 2 3 4 5 -1 -0.5 0 0.5 1 1.5 2 2.5 3 3.5 Time (s) Velocity (m/s)
4/24/11 Solution - Quiz 18 Notes: Need to use x as independent variable (no t’s!!) y='2+cos(5*x)*(x^2- 3)/exp(x)' y_neg=['-(' y ')'] xmin=fminbnd(y_neg,0,1) x=xmin y_min=eval(y) +2 +2 +2 +2 +2

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Click to edit Master subtitle style 4/24/11 ENGR 132 Tues/Thurs 9:30-11:30
4/24/11 Quiz 18 Write the code required to determine

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: how much time the speed is over 2 m/ s on the interval [0,1] t e t t t f 3 5 23 3-+-= ) cos( ) ( 1 2 3 4 5-1-0.5 0.5 1 1.5 2 2.5 3 3.5 Time (s) Velocity (m/s) 4/24/11 Solution - Quiz 18 Notes: Must subtract 2 from the original eqn Must have good initial guess for each zero y=‘-25+cos(5*x)*(x^2-3)/exp(x)' zero_1=fzero(y,0.1) zero_2=fzero(y,0.8) time_over_2=zero_2-zero_1 +3 +2 +2 +3...
View Full Document

## This note was uploaded on 04/23/2011 for the course ENGR 132 taught by Professor Kutson during the Spring '11 term at Purdue University-West Lafayette.

### Page1 / 6

ENGR 132 - QUIZ18 - how much time the speed is over 2 m/ s...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online