Method: Joules.max_particle_speed
- Defined in:
- lib/joules/oscillations.rb
.max_particle_speed(angular_velocity, amplitude) ⇒ Float
Calculates the maximum speed of a particle in oscillation given angular velocity and amplitude.
78 79 80 |
# File 'lib/joules/oscillations.rb', line 78 def max_particle_speed(angular_velocity, amplitude) return angular_velocity * amplitude.to_f end |