<jupyter_start><jupyter_text>デシベル実行: Shift+Enter<jupyter_code>import numpy as np
np.random.seed(1) # 乱数のseedは固定

#import matplotlib.pyplot as plt
#plt.style.use('dark_background') # for dark-mode
#plt.rcParams["font.size"] = 16
10*np.log10(2)
x = np.array([1,2,4,5,8,10,20,100])
print(x)
np.set_printoptions(precision=8) # デフォルトの小数点以下の表示桁数
print( 10*np.log10(x) )
np.set_printoptions(precision=0)
print( 10*np.log10(x) )<jupyter_output>[ 0.  3.  6.  7.  9. 10. 13. 20.]<jupyter_text>リニアスケールに戻す$10^{(x)_\mathrm{dB}/10}$<jupyter_code>x_dB = np.array([13,17,20])
print( 10**(x_dB/10) )<jupyter_output>[ 20.  50. 100.]
{'fraction_non_alphanumeric': 0.1970684039087948, 'fraction_numerical': 0.10097719869706841, 'mean_word_length': 6.235294117647059, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '648320', 'license': 'MIT', 'n_tokens_mistral': 361, 'n_tokens_neox': 313, 'n_words': 43, 'path': 'jd1_dB.ipynb', 'repo_name': 'kojiyam/information-transmission-engineering', 'size': '614'}