powered by
The multiplication of two terms, as an ASTNode.
R6Class object.
R6Class
tangram::ASTNode -> tangram::ASTBranch -> ASTMultiply
tangram::ASTNode
tangram::ASTBranch
ASTMultiply
left
The AST tree to the left.
right
The AST tree to the right.
type
The specified type of this node
ASTMultiply$new()
ASTMultiply$distribute()
ASTMultiply$factors()
ASTMultiply$string()
ASTMultiply$clone()
Inherited methods tangram::ASTNode$set_format() tangram::ASTNode$terms() tangram::ASTBranch$reduce()
tangram::ASTNode$set_format()
tangram::ASTNode$terms()
tangram::ASTBranch$reduce()
new()
Construct a multiplication node
ASTMultiply$new(left, right)
(ASTNode) nodes to the left of the multiplication
(ASTNode) nodes to the right of the multiplication
distribute()
Rearrange nodes distribution multiplication across parenthesis
factors()
return all terminal nodes on left and right
string()
Return a re-parseable string
clone()
The objects of this class are cloneable with this method.
ASTMultiply$clone(deep = FALSE)
deep
Whether to make a deep clone.
ASTMultiply$new(ASTVariable$new("x"), ASTVariable$new("y"))$string()
Run the code above in your browser using DataLab