You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support functions min, max, ceiling, and floor in ParameterExpression.
Discussion points
ParameterExpression will support comples numbers: #5192.
min and max are not well defined for complex numbers (ceiling and floor do not have this characteristic). A possible implementation could use Sympy and allow Sympy to raise errors. For example:
import sympy as sym
x = sym.Symbol('x', complex=True)
y = sym.Max(x*1.0j, -2)
y.subs(x, 1.0j) # This works and returns -1
y.subs(x, 1.0) # This raises ValueError: The argument '1.0*I' is not comparable.
The text was updated successfully, but these errors were encountered:
What is the expected enhancement?
Support functions
min
,max
,ceiling
, andfloor
inParameterExpression
.Discussion points
ParameterExpression
will support comples numbers: #5192.min
andmax
are not well defined for complex numbers (ceiling
andfloor
do not have this characteristic). A possible implementation could useSympy
and allowSympy
to raise errors. For example:The text was updated successfully, but these errors were encountered: