Skip to main content

[]

Symbol of ComplexOperatorSum.

(ComplexOperatorSum lhs [] integer index) -> Pair

Returns the coefficient and term of the sum at the index position.

Parameters

  • lhs: Left-hand side value.
  • index: The term to access.

Returns

Pair of the coefficient and term.

Example

var sum = 2.0 * X(0) + Z(1)
var t0 = sum[0] // [2.0,X(0)]