Re: [Numpy-discussion] Translation of a Matlab expresion

2007-04-09 Thread Charles R Harris
On 4/9/07, Miquel Poch <[EMAIL PROTECTED]> wrote: Hi, I've got a function write in Matlab, and I need to tranlate it into python. I've found an expresion like this: ? BF = b0 + (b1 + (b2 + (b3 + (b4 + (b5 + b6*T).*T).*T).*T).*T).*T or dBFdT = b1 + (2 * b2 + (3 * b3 + (4 * b4 + (5 * b5 + 6* b6*T

Re: [Numpy-discussion] Translation of a Matlab expresion

2007-04-09 Thread Pierre GM
On Monday 09 April 2007 06:28:33 Miquel Poch wrote: > T is a matrix and the rest of the variables are floats. I don't know why > are this '.' in the expresion, and that's why I can't translate it. http://www.scipy.org/NumPy_for_Matlab_Users The .* means: element-wise multiplitcation. > I tried

[Numpy-discussion] Translation of a Matlab expresion

2007-04-09 Thread Miquel Poch
Hi, I've got a function write in Matlab, and I need to tranlate it into python. I've found an expresion like this: BF = b0 + (b1 + (b2 + (b3 + (b4 + (b5 + b6*T).*T).*T).*T).*T).*T or dBFdT = b1 + (2 * b2 + (3 * b3 + (4 * b4 + (5 * b5 + 6* b6*T).*T).*T).*T).*T T is a matrix and the rest of the v