profiles.density.GeneralizedNFWDensityProfile.lambdify_expression#

GeneralizedNFWDensityProfile.lambdify_expression(expression: str | Basic) Callable#

Convert a symbolic expression into a callable function.

Parameters:

expression (str or Basic) – The symbolic expression to lambdify.

Returns:

A callable numerical function.

Return type:

Callable