8 template <
typename T,
typename U>
9 inline auto pressure_to_intensity(T pressure, U Z) {
11 return copysign(pressure * pressure / Z, pressure);
14 template <
typename T,
typename U>
15 inline auto intensity_to_pressure(T intensity, U Z) {
19 return copysign(sqrt(abs(intensity * Z)), intensity);
22 double intensity_for_distance(
double distance);
23 double pressure_for_distance(
double distance,
double acoustic_impedance);
Definition: capsule_base.h:9