# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

import numpy as np

# ## Latex
# $ \sum  $ 

e1=-(14/30*np.log2(14/30)+16/30*np.log2(16/30))
e1

e2=-(15/30*np.log2(15/30)+15/30*np.log2(15/30))
e2

e3=-(30/30*np.log2(30/30))
e3



StarcoderdataJupyterScriptsDedupFiltered