profiles.density.CoredPowerLawDensityProfile.lambdify_expression#

CoredPowerLawDensityProfile.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