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

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

[Octave-bug-tracker] [bug #49015] atan2 singular cases


From: Ernst Reissner
Subject: [Octave-bug-tracker] [bug #49015] atan2 singular cases
Date: Tue, 6 Sep 2016 22:31:49 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0

Follow-up Comment #2, bug #49015 (project octave):

The first sentence is 
Compute atan (Y / X) for corresponding elements of Y and X.

This is definitively wrong 
if "...the first argument is @code{+0} and the second argument is negative,".


Then we obtain atan(0)=0. 

With the rule i give, the result is pi. 

You are right, it suffices to write `arg (complex (X, Y))'. 

Correct is to write either a definition with atan(y/x) 
and with the exceptions I gave 
or if you give a definition in terms of arg, 

but not both. 


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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