Ads by BuzzCity

Kamis, 12 Juli 2012

Home » , » Program Matriks Transpose dengan Python 3.2

Program Matriks Transpose dengan Python 3.2

from numpy import*

A = array([[1.,2.],\
         [3.,4.],\
         [5.,6.]])

n,m=3,2

At = zeros ((m,n))
print (At)
for i in range (0,m):
    for j in range (0,n):
        At[i][j]=A[j][i]

print('Matriks A')
print(A)
print()

print('Matriks A Transpose')
print (At)

Tidak ada komentar:

Poskan Komentar

Related Posts Plugin for WordPress, Blogger...