ASTMultiply | R Documentation |
The multiplication of two terms, as an ASTNode.
The multiplication of two terms, as an ASTNode.
R6Class
object.
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
new()
Construct a multiplication node
ASTMultiply$new(left, right)
left
(ASTNode) nodes to the left of the multiplication
right
(ASTNode) nodes to the right of the multiplication
distribute()
Rearrange nodes distribution multiplication across parenthesis
ASTMultiply$distribute()
factors()
return all terminal nodes on left and right
ASTMultiply$factors()
string()
Return a re-parseable string
ASTMultiply$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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.