r/pythonhelp • • Apr 06 '21

HOMEWORK Hi everyone I need to write a code that plots graph for vertical height and time of the space craft took to land. The question and a sample code is shown below. I just need to complete the part where there are three dots given but I dont understand how to do it.

3 Upvotes

3 comments sorted by

1

u/Akshaykadav Apr 06 '21

If it was just code I could have helped but it requires an equation to solve the problem and I dont know the required equation. If you have the equation and can't put it into code, then maybe I could help you.

1

u/turkce_bilmiyorum Apr 06 '21

Maybe an equation that will help y to decrease will help you.
y = y - vyt
Maybe this will help.

I am still thinking about what will decrease vy according to time
maybe vy = -at

2

u/Akshaykadav Apr 07 '21

It looks more like a math problem rather than a coding one. I am not good with math, so I don't think I will be able to help you.

If you find the equations and need help to write them as code then I might be able to help you.