Objects in Python
Python Class: expr
expr
A Python
wrapper class for the inner GiNaC::ex
object _expr
.
expr(i)
contructor from an integeri
.expr(s)
constructor from astring
s
.nops()
return the_expr.nops()
.op(i)
return the_expr.op(i)
.let_op(i,e)
update the inneri
th item by_expr.let_op(i)=e
.expand()
return_expr.expand()
.normal()
return_expr.normal()
.factor()
return_expr.factor()
.series(s,o)
returnmma_series(_expr,s,o)
.subs(e)
return_expr.subs(e)
.isSymbol()
check the_expr
is aSymbol
.isVector()
check the_expr
is aVector
.isIndex()
check the_expr
is aIndex
.isPair()
check the_expr
is aPair
.isDGamma
check the_expr
is aDGamma
.map(map_func)
return the_expr.map(map_func)
,map_func
is an object derived fromMapFunction
class.
Python Functions
expand(e)
is equivalent toe.expand()
.normal(e)
is equivalent toe.normal()
.factor(e)
is equivalent toe.factor()
.series(e,s,n)
is equivalent toe.series(s,n)
.subs(e,es)
is equivalent toe.subs(es)
.Symbol(s)
return anexpr
object with_expr=HepLib::Symbol(s)
.Index(s)
return anexpr
object with_expr=HepLib::FC::Index(s)
.Vector(s)
return anexpr
object with_expr=HepLib::FC::Vector(s)
.SP(e1,e2)
return anexpr
object with_expr=HepLib::FC::SP(e1._expr,e2._expr)
.GAS(e)
return anexpr
object with_expr=HepLib::FC::GAS(e._expr)
.TR(e)
return anexpr
object with_expr=HepLib::FC::TR(e._expr)
.form(e)
return anexpr
object with_expr=HepLib::FC::form(e._expr)
.
Python call
any HepLib
function
call
any HepLib
functioncall(func_str,e)
return anexpr
object with_expr=func(e._expr)
.call(func_str,[e1,e2,...])
return anexpr
object with_expr=func(e1,e2,...)
.
Python Class: Integral
Integral
verb
the innerVerbose
.Functions([e1,e2,...])
to assign the internalFunctions
orPropagators
.Exponents([e1,e2,...])
to assign the internalExponents
.Evaluate()
to evaluate the integral by Sector Decomposition, theIntegral
object itself holds the nummerical result.
Last updated