ApasScript.

Kinematics

These are Apas Cloud services: they run on our servers for a signed-in member. The examples below are shown already made; sign in to edit and run your own.

velocityAfter Apas Cloud

The velocity after a time under constant acceleration, v = u + a t, as an exact quantity. Each argument's dimension is checked: a length where a velocity belongs is an error.

stateAfter Apas Cloud

Position and velocity after a time under constant acceleration along a line: x = x0 + u t + a t^2 / 2 and v = u + a t. Read them with s.position and s.velocity.

timeToVelocity Apas Cloud

The time taken to go from one velocity to another under constant acceleration, t = (v - u) / a.

velocitySquaredAfter Apas Cloud

The square of the velocity after a displacement under constant acceleration, v^2 = u^2 + 2 a s. Take sqrt() of it for the speed; the direction is yours to choose.

trajectoryAt Apas Cloud

Position and velocity at a time for motion in a plane under constant acceleration (a projectile): r = r0 + v0 t + a t^2 / 2 and v = v0 + a t, exactly. Position, velocity and acceleration are [x, y] lists of quantities. Read the result with s.position and s.velocity; each is an [x, y] list.

trajectorySample Apas Cloud

The state of the same motion at each of a list of times: a list of records with time, position and velocity.

timesAtX Apas Cloud

When the path reaches a given x, and the height y there: a list of records with time and y. There is one when x moves steadily, two when the motion in x turns back, and a sentence when the path never gets there. Times before the start (negative) are given too; keep the ones your problem allows.