[Pkg-octave-devel] Bug in function acot
Thomas Weber
thomas.weber.mail at gmail.com
Tue Jan 10 15:18:54 UTC 2006
Hi Jakub,
Am Dienstag, den 10.01.2006, 14:42 +0100 schrieb Jakub Stryja:
> where is function acot defined by formula:
>
> function w = acot (z)
>
> if (nargin != 1)
> usage ("acot (z)");
> endif
>
> w = atan (1./z);
>
> endfunction
This was changed in Octave, as can be seen here:
http://www.octave.org/mailing-lists/bug-octave/2004/11
The formula currently used in Octave is consistent with both Matlab and
Mathematica:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/acot.html
http://mathworld.wolfram.com/InverseCotangent.html
> You make package from version 2.1.69 which contains bad file acot.m.
> Can you replace this file in package for sarge?
I doubt that this would happen, even if it was a bug[1]. However, you
can put your own version of files under
/usr/local/share/octave/site-m//
Octave will load these files "earlier" (at least on a Debian system), so
you can override the normal functions.
[1] Debian has rather strict guidelines for updating the stable
(currently Sarge) release. Small bugs normally don't qualify for a
change to the stable version.
Thomas
More information about the Pkg-octave-devel
mailing list