Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
formula1.py File Reference

Detailed Description

View in nbviewer Open in SWAN
TF1 example.

from ROOT import TCanvas, TFormula, TF1
from ROOT import gROOT, gObjectTable
c1 = TCanvas( 'c1', 'Example with Formula', 200, 10, 700, 500 )
# We create a formula object and compute the value of this formula
# for two different values of the x variable.
form1 = TFormula( 'form1', 'sqrt(abs(x))' )
form1.Eval( -45 )
# Create a one dimensional function and draw it
fun1 = TF1( 'fun1', 'abs(sin(x)/x)', 0, 10 )
# Before leaving this demo, we print the list of objects known to ROOT
#
if ( gObjectTable ):
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
The Canvas class.
Definition TCanvas.h:23
1-Dim function class
Definition TF1.h:233
The Formula class.
Definition TFormula.h:89
Author
Wim Lavrijsen

Definition in file formula1.py.