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: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation
Date: Fri, 28 Sep 2012 23:53:11 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1

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

I looked at lo-mappers.cc.  It appears that
something like what is below would be a start,
but a serious numerical C++ person should take a look.

This should go somewhere after line 249 in lo-mappers.cc:

i.e., after:  // (complex, complex) -> complex mappers.

Complex
atan2 (const Complex& x, const Complex& y)
{
  return 2 * atan((sqrt (x)^2 + (y)^2 - (x) ) / (y) ); 
}
=====================================

This does not handle the exceptions and quadrants
as far as I can tell, but it may be a start.

Uniformity would definitely be enhanced if atan2 can
be integrated with the other trig functions in 
lo-mappers.cc.

    _______________________________________________________

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]