4DESCRIBING MOTION

Image

The description of the motion of an object in terms of its position, velocity, and acceleration is called kinematics. In this chapter, we’ll give a succinct review of one-dimensional kinematics while showing how the Haskell language naturally encodes its ideas and equations. We’ll use the Haskell functions introduced in Chapter 2 and the types we introduced in Chapter 3. The equations of kinematics, being largely definitional, have an almost one-to-one correspondence with Haskell functions.

Position and Velocity on an Air Track

Have you ever seen an air track? An air track is a fun toy, or, if you’re feeling more serious, a ...

Get Learn Physics with Functional Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.