Question: Program in Python please The altitude of an object thrown upwards can be described by the following formula, which relates altitude ( z ) to

Program in Python please
The altitude of an object thrown upwards can be described by the following formula, which relates altitude
(z) to time (t):
z = z0+ m
c
v0+ mg
c
1 e(c/m)t
mg
c t
In this equation, the variables are defined as follows: z0 represents the initial altitude from which the
object is launched, m stands for the mass of the object, c is the drag coefficient, and v0 denotes the initial
velocity with which the object is launched. Its important to note that positive velocity is assumed to be
in the upward direction.
(a) Given the following parameters:
g =9.81 m/s2
z0=10 m
v0=10 m/s
m =100 kg
c =5 kg/s
Calculate the maximum altitude the object reaches, either through graphical (include the figure)
or analytical methods (show the analytical form).[10 pts]
(b) Implement a one-dimensional unconstrained optimization method to find the maximum height of
the object when \epsi a 0.5%. You can choose from three methods: Golden-Section search, Parabolic
interpolation, or Newton-iteration. If you opt for Golden-Section search, you can refer to the
provided pseudo-code on page 367 of the book. If you decide to implement Newton iteration, it is
recommended to use numerical differentiation for accuracy. Ensure that you select suitable initial
values for tlower and tupper based on your problem. [50 pts]
(c) If the kinetic energy with which the object can be thrown up is constant and is equal to ke = mv2
0
2=
2000 kg m2 s2, what are the values of m and v0 for which the maximum altitude of the object
can be achieved, given the kinetic energy (ke), air resistance constant c =8 kg/s, initial height
z0=15 m, and acceleration due to gravity g =9.81 m/s2? Please use the random search method
described in Example 14.1 on page 371 of the book. [40 pts]
2
 Program in Python please The altitude of an object thrown upwards

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!