Instagram
youtube
Facebook

Q) Cross product of numpy array

Answer:

The cross product of two arrays is defined as:

array([a1, a2, ..., an]) x array([b1, b2, ..., bn]) = array([a1*b2-a2*b1, a2*b3-a3*b2, ..., an*bn-bn*an])

In other words, it is the element-wise product of the arrays, with the elements in reverse order.

  • 336 Views

FAQ

Years=[1994,1891,2010,1999,1700,1698,2004] code t…

count=0
years=[1994,1891,2010,1999,1700,1698,2004]
for i in years:
   if(i%4==0 and i%100!=0 o…

ImportError: DLL load failed while importing _cex…

To solve this error you can use . This error came when i worked on matplotlib in python. This is th…

Program to swap variables in python

A program in Python that allows two variables to swap values.

def swap(x, y):

   temp = x
…