From bug-octave-request at bevo dot che dot wisc dot edu Fri Aug 27 00:59:36 1999 Subject: Vector multiplication with complex coefficients giving wrong answer From: "John W. Eaton" To: Duncan Barclay Cc: bug-octave at bevo dot che dot wisc dot edu, dmlb@computer.my.domain, dmlb@symbionics.co.uk Date: Fri, 27 Aug 1999 00:59:50 -0500 (CDT) On 27-Aug-1999, Duncan Barclay wrote: | To: bug-octave at bevo dot che dot wisc dot edu | Cc: dmlb, dmlb at symbionics dot co dot uk | Subject: Vector multiplication with complex coefficients giving wrong answer | | Bug report for Octave 2.0.14 configured for i386-unknown-freebsd3.1 | | Description: | ----------- | | % | % Possible bug in matrix multiplation routines when elements are complex. | % | % Vectors A and sn are obtained from performing an inverse laplace | % transform on the transfer function of an electronic circuit. sn are | % the exponential cofficnts and A contains the constant multpliers. | % | % output = A' * exp(sn * t) | % | % gives a different answer to: | % | % for ii = 1:length(A) | % output = output + A(ii) * exp(sn(ii) * t) | % end; | % | % when A has complex elements. If A is real, they give the same answer. I don't think this is a bug in Octave. By using the ' operator, you are asking for the complex-conjugate transpose. If you just want to change the orientation of the vector, use the .' operator instead. jwe --------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. To ensure that development continues, see www.che.wisc.edu/octave/giftform.html Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html ---------------------------------------------------------------------