86 additional exercises
The motion of a projectile
The motion of a projectile can be analysed by considering the horizontal
and vertical components. The initial velocityv 0 can be resolved into
horizontal and vertical components:
v0x=v 0 cos(θ) and v0y=v 0 sin(θ)
In the vertical direction the velocity and position of the projectile are
given by:
vy=v0y−gt and y=v0yt−^1
2
gt^2
The time it takes the projectile to reach the highest point (vy= 0 ) and
the corresponding height are given by:
thmax=v0y
g
and hmax=
v^2 0y
2g
The total flying time is twice the time it takes the projectile to reach the
highest point,ttot=2thmax. In the horizontal direction the velocity is
constant, and the position of the projectile is given by:
x=v0xt
- Functions
Write a user-defined function, with two input and output arguments,
that determines the height in metres and mass kilograms of person
from their height in inches and mass in pounds. For the function name
and arguments use[m,kg] = STtoSI(in,lb). Use the function in the
Command Window to determine in SI units the height and mass of a
5 ft. 11 in. person who weighs 181 lb. - Functions
Whennresistors are connected in parallel, their equivalent resistance
Reqcan be determined from:
1
Req=
1
R 1 +
1
R 2 +...+
1
Rn
Write a user-defined function that calculatesReq. For the function name
and arguments useREQ = req(R). The input to function should be a
vector in which each element is a resistor value, and the output from the
function isReq. Use the function to calculate the equivalent resistance