Re: why is TMath::Atan2(1,1) = 135 degrees?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Nov 26 1998 - 18:38:32 MET


Richard T. Jones wrote:
> 
> ROOT users,
> 
> Can someone explain why TMath::Atan2() is something other than the
> standard atan2() in degrees?  As it is, the function returns theta+90.
> If this is intended, could it be named something other than Atan2?
> 
> thanks,
> Richard Jones

Hi Rick,
TMath has two functions:
 TMath::ATan2(double, double) identical to atan2
 TMath::Atan2(long,long) returning results in degrees.

You should call the first one with T and not t

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:40 MET