FormFactor
symbolica.community.hepkit Class
FormFactor()A momentum-dependent form factor referenced by interaction rules.
Form factors keep their model type and symbolic value so specialized amplitude backends can evaluate them at the relevant kinematic point.
Examples
from symbolica import S, E
from symbolica.community import hepkit as hep
model = hep.Model.standard_model()
form_factors = {ff.name: ff.value for ff in model.form_factors}Member details
name
Property · read-only#name: strReturn the form-factor name.
Examples
Using the setup in the FormFactor class example:
names = [ff.name for ff in model.form_factors]type_name
Property · read-only#type_name: Optional[str] Return the model-defined form-factor type, when present.
Examples
Using the setup in the FormFactor class example:
types = {ff.name: ff.type_name for ff in model.form_factors}value
Property · read-only#value: Optional[Expression] Return the symbolic form-factor value, when present.
Examples
Using the setup in the FormFactor class example:
formulas = {ff.name: ff.value for ff in model.form_factors}__repr__
Method#__repr__() -> strSummarize the defining data as well as the form-factor name.
Examples
Using the setup in the FormFactor class example:
summaries = [repr(ff) for ff in model.form_factors]_repr_html_
Method#_repr_html_() -> strDisplay the model member's physical data and defining expressions.
Examples
Using the setup in the FormFactor class example:
from IPython.display import display
display(model.form_factors)_repr_pretty_
Method#_repr_pretty_(pretty: Any, cycle: bool) -> None Write the complete text summary to an IPython pretty printer.
Examples
Using the setup in the FormFactor class example:
from IPython.lib.pretty import pretty
text = pretty(model.form_factors)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
pretty | Any | — | IPython pretty printer receiving the text. |
cycle | bool | — | Whether the object occurs recursively in the current display. |
View generated signature source: docs/api/python/feynkit-community.pyi:4158