Sha256: 8b21efd40420361c9d6e4c9b5f36b6b1d69d57b56aec9a5bc8a87144c0f85e48
Contents?: true
Size: 569 Bytes
Versions: 10
Compression:
Stored size: 569 Bytes
Contents
module Danica class Function::Spatial < Function variables :time, :acceleration, :initial_space, :initial_velocity private def function_block @function_block ||= addition(parcels) end def parcels [ initial_space, spatial_velocity, spatial_acceleration ] end def spatial_velocity multiplication(initial_velocity, time) end def spatial_acceleration division(multiplication(acceleration, time_squared), 2) end def time_squared power(time, 2) end end end
Version data entries
10 entries across 10 versions & 1 rubygems