English
Languages
English
Shortcuts



QuadraticExpression.__getitem__

QuadraticExpression.__getitem__(key)[source]

Returns the coefficient where i, j can be a variable names or indices.

Parameters

key (Tuple[Union[int, str], Union[int, str]]) – The tuple of indices or names of the variables corresponding to the coefficient.

Return type

float

Returns

The coefficient corresponding to the addressed variables.