profiles.density.TNFWDensityProfile.get_expression_latex#
- TNFWDensityProfile.get_expression_latex(substitute: bool = True) str#
Return the LaTeX representation of the profile’s symbolic expression.
- Parameters:
substitute (
bool, defaultTrue) – If True, substitute parameter values into the expression and append units. If False, retain symbolic parameter placeholders and omit units.- Returns:
The LaTeX-formatted string of the profile expression.
- Return type:
Notes
Uses
__VARIABLES_LATEX__and__PARAMETERS_LATEX__for display-friendly names.Substitution inserts numerical parameter values if available.
When substituting, the units are shown as a multiplicative LaTeX term at the end.