[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack do
From: |
Michael Godfrey |
Subject: |
[Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation |
Date: |
Tue, 25 Sep 2012 21:37:08 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1 |
Follow-up Comment #2, bug #37379 (project octave):
matlab r2009b differs from Octave and ISO/IEC as follows:
(* in the right hand column means Matlab differs)
F.9.1.4 The atan2 functions Matlab r2009B Differs from Octave
— atan2(±0, -0) returns ±pi. both 0 *
— atan2(±0, +0) returns ±0. both 0 *
— atan2(±0, x) returns ±pi for x < 0. +- pi
— atan2(±0, x) returns ±0 for x > 0. both 0 *
— atan2(y, ±0) returns -pi/2 for y < 0. both -pi/2 *
— atan2(y, ±0) returns pi/2 for y > 0. both pi/2 *
— atan2(±y, -Inf) returns ±pi for finite y > 0. +- pi
— atan2(±y, +Inf) returns ±0 for finite y > 0.
both 0 *
— atan2(±Inf, x) returns ±pi/2 for finite x. +- pi/2
— atan2(±Inf, -Inf) returns ±3pi/4. +- 3pi/4
— atan2(±Inf, +Inf) returns ±pi/4. +- pi/4
Octave adhers to ISO/IEC. By far the most serious Matlab
issue is atan2(±0, -0)
I will work on documentation patch for this and other trig
functions.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37379>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation, Michael Godfrey, 2012/09/17
- [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation, Rik, 2012/09/23
- Re: [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation, Michael D. Godfrey, 2012/09/23
- [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation,
Michael Godfrey <=
- [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation, Michael Godfrey, 2012/09/25
- [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation, Michael Godfrey, 2012/09/25
- [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation, Jordi Gutiérrez Hermoso, 2012/09/26
- [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation, Michael Godfrey, 2012/09/26
- [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation, Rik, 2012/09/26
- [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation, Michael Godfrey, 2012/09/26
- [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation, Michael Godfrey, 2012/09/26
- [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation, Rik, 2012/09/26
- [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation, Rik, 2012/09/26
- [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation, Michael Godfrey, 2012/09/26