Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 469 Bytes

File metadata and controls

22 lines (17 loc) · 469 Bytes

Name:

Finding final speed of an object

Examples:

println(finalspeed(2,4,8)), final speed = 6.928203

Description:

after giving the displacement, initial velocity, and acceleration, this function will give you the object's final velocity

Syntax:

float finalspeed (float x, float Vo, float a)

##Parameters: float x = displacement float Vo = initial velocity float a = acceleration

##Returns: float

##Other notes: uses the equation (Vf)^2 = (Vi)^2 + 2ax