[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calling sqrt() in a dynamic function
From: |
John W. Eaton |
Subject: |
Re: Calling sqrt() in a dynamic function |
Date: |
Wed, 11 Feb 2004 12:02:39 -0600 |
On 11-Feb-2004, Thomas Weber <address@hidden> wrote:
| However, elem_xpow (X, 0.5) (declared in xpow.h) works.
Yes. The disadvantage is that the result is an octave_value object,
not a Matrix, but the advantage is that if some elements of your
matrix are less than zero, you will get a complex result automatically
instead of NaN.
jwe
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------