Constructor
new Formula(formula, builder)
Creates a math formula object.
Parameters:
Name | Type | Description |
---|---|---|
formula |
string | A mathematical formula to parse. |
builder |
Builder | The builder instance to add the formula to. |
- Source:
Methods
generate(setResultNode) → {BuilderNode}
Generates the processes for the formula specified in the constructor.
Returns the last node that computes the result.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
setResultNode |
boolean | true | Set the |
- Source:
Throws:
Returns:
- Type
- BuilderNode