TGraphPolar

From: OKUMURA, Akira <oxon_at_icrr.u-tokyo.ac.jp>
Date: Mon, 16 Jul 2007 00:08:39 -0500


Hello ROOTers

I tried the macro in
http://root.cern.ch/root/html/TGraphPolar.html and the result was same as
http://root.cern.ch/root/html/MACRO_TGraphPolar_1_CPol.gif

But if I change the line #5

before:	Double_t rmax=TMath::Pi()*2;
after:	Double_t rmax=TMath::Pi();

I get the attached GIF image.

"after" should be

        theta = cos(r) here 0<=r<=pi
but the result seems

        theta = cos(r/2) here 0<=r<=2*pi

Is there any my misunderstanding?

ROOT 5.16 + OS X 10.4.10(PPC) Sincerely

OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
Institute for Cosmic Ray Research, University of Tokyo 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan Phone/Fax : +81 4-7136-3153
Skype : okumura.akira

CPol.gif
Received on Mon Jul 16 2007 - 07:09:59 CEST

This archive was generated by hypermail 2.2.0 : Tue Jul 17 2007 - 11:50:02 CEST