Help me on function definition

2008-03-28 Thread aeneng
Hello everyone, I am just starting to use python in numerical cacluation. I need you to help me to see what's wrong with the following piece of codes, which computes the cross product of two vectors and returns the result. u and v are two 3x1 matrix. when I import the function, error message s

Error message from function definition

2008-03-28 Thread aeneng pan
Dear community members, I just start to use python in numerical calculation. and I encountered some difficulties when I define my own function. Here is a piece of codes to compute the cross product of two 3x1 vector. can any one help me to find what is wrong with it? please see the codes below.