If you put an array of time, x, and y as a function factor, write a function (function name: getVelocity) that stores the speed in each direction in the array Vx, Vy by calculating the speed in the x direction and adding a code that returns Vx, Vy from the function written in #5.
This is the code I made
I tried making it like this, but the output doesn't come out. I dare to ask you this question because I think it's right to write it like this.python pycharm
Although the intent of the problem is not known exactly, the code of the questioner would not be correct if the returned Vx, Vy should be an array.
I think he wanted the code as below.
© 2022 pinfo. All rights reserved.