Click or drag to resize

XPRBexprmul(XPRBterm, XPRBterm) Method

Multiply two XPRBterms together to create an XPRBexpr.

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public XPRBexpr mul(
	XPRBterm t,
	XPRBterm t2
)

Parameters

t  XPRBterm
The XPRBterm to multiply.
t2  XPRBterm
The second XPRBterm to multiply.

Return Value

XPRBexpr
The resultant XPRBexpr expression if successful. This will throw a "Non-quadratic expression" exception if the result is not quadratic.
Example
C#
XPRBprob prob = new XPRBprob("NewProb");
XPRBvar var = new XPRBvar("Variable");
XPRBterm term = new XPRBterm(2.3, var);
XPRBexpr exp;
...
exp = new XPRBexpr(XPRBexpr.mul(term, term));
See Also