cv.hs 285 B

123456789101112
  1. type R = Double
  2. type Time = R
  3. type TimeInterval = R
  4. type Position = R
  5. type Velocity = R
  6. type PositionFunction = Time -> Position
  7. type VelocityFunction = Time -> Velocity
  8. positionCV :: Position -> Velocity -> Time -> Position
  9. positionCV x0 v0 t = v0 * t + x0