XPRBvarUnaryNegation Operator |
Negate an XPRBvar.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic static XPRBterm operator -(
XPRBvar v
)
Public Shared Operator - (
v As XPRBvar
) As XPRBterm
Parameters
- v XPRBvar
- The XPRBvar to negate.
Return Value
XPRBtermThe resultant XPRBterm (the negative of the variable is a term with coefficient minus 1).
ExampleXPRBvar var = new XPRBvar("Variable1");
XPRBterm term;
...
term = -var;
See Also