octave-bug-tracker
[Top][All Lists]
Advanced

[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: Rik
Subject: [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation
Date: Wed, 26 Sep 2012 17:02:50 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1

Follow-up Comment #11, bug #37379 (project octave):

I don't think we need to adhere to the GNU spec.  In particular, I think it
would be better to follow what mathematicians do and if they extend the range
of the function with branch cuts or whatever then we can too.  To my simple
mind, the acos() and cos() functions are inverses and that is the property I
expect to hold at all times.  The domain of the function is a secondary
concern to me.

In this case, the inverse property is maintained even though the domain has
been extended.


x = acos (-2)
x =  3.1416 - 1.3170i
cos (x)
ans = -2.0000e+00 + 2.1211e-16i




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37379>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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