Re: Plotting TF1 Function

From: Axel Naumann <>
Date: Mon, 03 Oct 2005 12:32:06 +0200


it's a pole (or singularity), not an asymptote. And ROOT evaluates your func at 10000 points between -58.43,-38.43, and connects them with a line. The points closest to the pole are at x=-48.431 and x=-48.429. As it doesn't know how the func behaves in between those two points (as it didn't eval the func in between, as that point yields 0/0) you get a line through your func's pole. You could e.g. use TF1::SetRange, and exclude the pole.

Cheers, Axel.

zaldy wrote:
> Dear Root Folks,
> I don't simply understand when I draw this function.
> Please see the short script I append below.
> If you look at this funtion you can see the asmyptote at x=-48.43.
> That means that the curve is going quickly either in the -infinity or
> +infinity as it approaches this value from x = +/-infinity.
> That means there shouldn't be a curve or a line that seems to cross this
> asymptote.
> I just find this strange.
> What is wrong with my code?
> Version 4.04/02 6 June 2005
> gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
> Thanks
Received on Mon Oct 03 2005 - 12:38:34 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:12 MET