octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[CHANGESET] reallog, realpow and realsqrt functions


From: John W. Eaton
Subject: [CHANGESET] reallog, realpow and realsqrt functions
Date: Fri, 21 Mar 2008 14:30:43 -0400

On 21-Mar-2008, David Bateman wrote:

| Here is a patch that adds these three rather trivial functions that
| return an error if the return value is complex.

I applied it.

| Funnily to be matlab
| compatible "realpow(1i,2)" is allowed. These are matlab core functions,
| though I wonder how much they are really used..

I guess these are useful if you are doing something iterative and you
expect the results to be real, but it is possible that an iteration
may stray into a region that generates complex values?  If so, then
why not also "real" versions of acos, acosh, asin, atanh, and log10
(and maybe others)?  But seriously, I don't see a need to add them.

Thanks,

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]