...
Code Block | ||
---|---|---|
| ||
[x, y] = position (10 , 10, 0, 1, 1) % skal returnere x = 10, y = 11 [x, y] = position (10 , 10, 1, 0, 1) % skal returnere x = 11, y = 10 [x, y] = position (10 , 10, 1, 1, 0.1) % skal returnere x = 10.1 , y = 10.1 |
c)
,
k = 0.01 og representerer luftmotstanden. g = 9.81 , gravitasjonskonstanten.
Skriv function [ax, ay] = acceleration(vx, vy).
...