Python‎ > ‎

numpy



The matrix values are calculated and add through nump.log2().
import numpy as np 
a=np.log2([[1,2],[2,3]])
b=np.log2([[1,2],[2,3]])
print(a+b) 
 [[0. 2. ] [2. 3.169925]]


Subpages (4): cos log2 ones sin
Comments