Re: [ROOT] sqrt() in TF1

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Aug 19 2002 - 18:19:16 MEST


Hi Ray,

This is the intended behaviour. Just a convention.

Rene Brun

On Mon, 19 Aug 2002, Ray Fliller III wrote:

> 
> 
>    Rooters,
> 
>      I noticed that if I do
> 
>     foo=new TF1("foo","sqrt(x)");
>     foo->SetRange(-10,10);
>     foo->Draw("C")
> 
>     what I actually get is sqrt(abs(x)) drawn.  Naively,
>    I'd expect to get zeros on the negative side of zero.
>    Is there a reason that this convention was chosen other 
>    than a simple way to deal with errors from the sqrt function?
> 
> -- 
> 
>  RAINMAN
>       "How much does a piece of gum cost Ray?"
>       "About $100."
>       "How much does a new car cost Ray?"
>       "`Bout $100."
>       "There goes working for NASA!"
> 
> ==================================================================
> Ray Fliller: rfliller@bnl.gov      Office Phone: (631)-344-6124 
> C-A Accelerator Physics            Dept. Fax: (631)-344-5954
> Building 911B
> Brookhaven National Lab
> Upton, NY 11973                    Office: Room 211
> 
> http://www.agsrhichome.bnl.gov/People/rfliller/
> ==================================================================
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:05 MET