import numpy as np # L = np.array([24.6, 24.6, 24.6, 24.6, 24.6, 24.6, 27.6, 24.6, 41.0, 41.5, 39.3, 53.6, 58.9, 52.6, 54.1, 51.8, 61.1, 53.6, 52.5, 45.8, 38.4, 40.8, 39.0, 39.3, 40.6, 41.4]) # L = np.array([ # 24.6, 24.6, 24.6, 24.6, 24.6, 27.6, 46.4, 43.4, 41.4, 45.8, 44.5, 53.2, # 57.4, 48.7, 42.3, 51.9, 56.8, 57.9, 59.6, 53.8, 42.0, 45.5, 46.4, 40.8, # 40.8, 41.4 # ]) # SAM 75 dB, attenuation = -1.0 # L = np.array([ # 35.3, 30.6, 24.6, 24.6, 24.6, 30.6, 35.3, 45.0, 54.2, 64.5, 71.2, 66.9, # 59.7, 55.9, 60.1, 62.1, 59.0, 63.6, 62.8, 59.1, 49.3, 45.3, 42.9, 40.6, # 40.6, 40.6, 41.4 # ]) # Surface Pro 75 dB, attenuation = -13 # L = np.array([ # 36.6, 30.6, 24.6, 27.6, 35.3, 55.8, 61.8, 61.1, 59.8, 63.6, 58.4, 61.6, # 65.6, 61.5, 58.6, 61.1, 63.5, 67.5, 65.4, 61.4, 56.1, 48.6, 44.3, 57.6, # 50.5, 41.0, 41.4 # ]) #ROBIN 75 dB, attenuation = -0.5 # L = np.array([ # 34.6, 27.6, 24.6, 24.6, 24.6, 32.3, 41.4, 50.9, 58.2, 65.3, 64.4, 64.7, # 63.5, 60.5, 61.1, 65.7, 66.7, 64.1, 64.3, 60.4, 52.7, 50.7, 48.5, 41.9, # 39.9, 40.6, 41.4 # ]) # HP Pavillion 75 dB, attenuation = 7.5 # L = np.array([ # 27.6, 24.6, 27.6, 36.0, 56.0, 62.3, 61.8, 61.1, 65.3, 59.8, 64.5, 66.0, # 62.4, 63.6, 64.2, 60.7, 65.5, 64.0, 60.7, 52.6, 45.8, 43.8, 57.3, 50.1, # 41.4, 41.4 # ]) #Sam Laptop 65 dB, attenuation = -21 # L = np.array([ # 24.6, 24.6, 24.6, 24.6, 27.6, 24.6, 24.6, 30.6, 30.6, 39.9, 42.2, 54.3, # 56.4, 59.7, 55.2, 53.5, 57.4, 54.6, 50.2, 41.7, 38.0, 43.6, 41.2, 39.6, # 40.3, 41.4 # ]) #SAM 65dB, attenuation = -11.8 L = np.array([ 24.6, 24.6, 24.6, 24.6, 30.6, 27.6, 35.3, 43.7, 54.0, 62.4, 56.3, 48.7, 45.7, 50.7, 47.7, 46.3, 53.1, 50.4, 47.0, 39.9, 37.6, 38.0, 38.7, 39.6, 40.3, 41.4 ]) total_power = np.sum(np.power(10, L / 10)) L_total = 10.0 * np.log10(total_power) print L_total