Attention:You must not use loops in this task! A drone of massem(in kilograms) has a potential energy (in joules) of E=mgh(gis the acceleration due to gravity ofrounded 9.81m/s2) at height h (in metres).
Create a list of the respective energy values for a mini-drone with a mass of 250g, a midi-drone with a mass of 570g and a maxi-drone with a mass of 900g for the heights 1 to 120 metres (step size 1m). Plot the list with Matplotlib so that the x- and y-axis start at 1 (and end at sensible maximum values) and the values as points of three different colours are plotted. Add a title and axis labels.
At what height do the three drones exceed 79J? Give the result in one line in text form.
Our mini-drone flies at a height of 30m with a horizontal speed of 10m/s. The battery runs out and the drone crashes. Suddenly the battery runs out and the drone crashes. The corresponding orbital equation for the height after x metres is
Calculate (by transforming the equation) after what distance the drone will hit the ground. Plot this throwing parabola again with title and axis labelling as well as sensible axis ranges.
All values must be determined programmatically and not by reading from the plots. Round each output to two decimal places.