wave_speed_kernel

Function wave_speed_kernel 

Source
pub fn wave_speed_kernel(
    frequency: &Frequency,
    wavelength: &Length,
) -> Result<Speed, PhysicsError>
Expand description

Calculates the speed of a wave given its frequency and wavelength.

§Arguments

  • frequency - The frequency ($f$) of the wave.
  • wavelength - The wavelength ($\lambda$) of the wave.

§Returns

  • Ok(Speed) - The calculated wave speed.
  • Err(PhysicsError) - If the resulting speed violates physical invariants (negative), though types prevent this input.