is_real_only#

SolutionData.is_real_only(expression=None)#

Check if the expression has only real values or not.

Parameters:
expressionstr, optional

Name of the expression. The default is None, in which case the active expression is used.

Returns:
bool

True if the Solution Data for specific expression contains only real values.