C++ Logo

std-proposals

Advanced search

Re: [std-proposals] On the standardization of mp-units P3045R1

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Tue, 18 Jun 2024 21:55:29 +0200
About logarithmic units: One common pitfall is distinguishing between ratios of power or energy and ratios of amplitude. dB has an implicit convention that it is 10 times the decimal logarithm of power ratios. And 20 times the decimal logarithm of amplitude ratios. It would be nice, if a unit library would automatically handle that. At least for the cases, where energy, power and amplitude units have a physical reason. Energy is J, Power is W Amplitude is often pairwise, because you have a conversion between two forms of energy, e.g. E field and B field, kinetic and potential energy (as pressure or as height). In electronics and signal processing often physical units are expressed as a voltage. E.g. a power sensor could have a linear output in voltage. So voltage can be an amplitude or a power.

Received on 2024-06-18 19:55:31