This base class represents expressions involving binary operators.

# S4 method for BinaryOperator
name(x)

# S4 method for BinaryOperator
to_numeric(object, values)

# S4 method for BinaryOperator
sign_from_args(object)

# S4 method for BinaryOperator
is_imag(object)

# S4 method for BinaryOperator
is_complex(object)

Arguments

x, object

A BinaryOperator object.

values

A list of arguments to the atom.

Methods (by generic)

  • name(BinaryOperator): Returns the name of the BinaryOperator object.

  • to_numeric(BinaryOperator): Apply the binary operator to the values.

  • sign_from_args(BinaryOperator): Default to rule for multiplication.

  • is_imag(BinaryOperator): Is the expression imaginary?

  • is_complex(BinaryOperator): Is the expression complex valued?

Slots

lh_exp

The Expression on the left-hand side of the operator.

rh_exp

The Expression on the right-hand side of the operator.

op_name

A character string indicating the binary operation.