Plot square root of a function in TF1

Hello all,

I am trying to plot or draw function 1/sqrt((4/(x*x)) - 1), using the TF1 Class, it showed me the following error, I wonder how I can solve it.

I used this line in the root terminal, TF1 *fm = new TF1(“fm”,“1/sqrt(4/(x * x)-1)”,0,10); fm->Draw()

I also tried using TMath::Sqrt() but it also gave me the same error.

ERROR:
Warning in <TCanvas::ResizePad>: Inf/NaN propagated to the pad. Check drawn objects.

Warning in <TCanvas::ResizePad>: c1 height changed from 0 to 10

__
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Use 0.1111, 1.9999 instead of 0, 10

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.