pg.mutfun.UnaryOperator

Accessible via pg.mutfun.UnaryOperator.

class UnaryOperator(x)[source]

Bases: pg.mutfun.Operator

Base class for unary math operations.

Methods:

evaluate(context)

Evaluates current instruction with variable dictionary.

python_repr([block_indent])

Returns a Python code representation of current instruction.

evaluate(context)[source]

Evaluates current instruction with variable dictionary.

Return type:

Any

python_repr(block_indent=0)[source]

Returns a Python code representation of current instruction.

Return type:

str