Logarithm decibels. In a similar vein, the peak signal-to-noise ratio is commonly used to assess the quality of sound and image compression methods using the logarithm. The strength of an earthquake is measured by taking the common logarithm of the energy emitted at the quake. This is used in the moment magnitude scale or the Richter magnitude scale. For example, a 5.0 earthquake releases 32 times and a 6.0 releases 1000 times the energy of a 4.0. Another logarithmic scale is apparent magnitude. It measures the brightness of stars logarithmically. Yet another example is pH in chemistry; pH is the negative
Seismic magnitude scales well" with the seismic moment magnitude in the range of 4.5 to 7.5, but underestimate larger magnitudes. Body-waves consist of P-waves that are the first to arrive (see seismogram), or S-waves, or reflections of either. Body-waves travel through rock directly. The original "body-wave magnitude" – mB or m (uppercase "B") – was developed by and to overcome the distance and magnitude limitations of the scale inherent in the use of surface waves. is based on the P- and S-waves, measured over a longer period, and does not saturate until around M 8. However, it is not sensitive to events smaller