I don't know what is the problem here and I didn't realize how to find a way to resolve it. Actually, it gives the error ZeroDivisionError: division by zero. However there is nothing to be zero to divide to it, as far as I divided to 180 and it's not zero.
C1 = np.array([AA, north1, north1, north1, north1, D1, north1, north1, north1, north1]);
z = np.zeros((len(C1), 1));
C1 = np.concatenate([np.array(C1)[:,None], np.array(z)],axis=1);
B1 = C1 * [np.arange(np.cos(-90*np.pi/180), 0,np.sin(-90*np.pi/180)),np.arange(0, 1,0), np.arange(-np.sin(-90*np.pi/180),0,np.cos(-90*np.pi/180))];
P.S. Here I tried to do cosd:
np.cos(-90*np.pi/180)
np.arange(0, 1,0)does not work. Just change it to e.g.np.arange(0, 1, 0.1)