is_real_only

SolutionData.is_real_only(expression=None)[source]

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 first expression is used.

Returns
bool

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