Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,12 @@ return _.multiply(sum, product)
* x.toString() // == sin(14)
* // force function calls with evaluate:
* x.evaluate().toString() // == 127690464/128901187
* @param args An object with key-value pairs to be substituted into the expression.
* @example
* let y = nerdamer('P*V=n*R*T').evaluate({ P: 1, V: 2, n: 3, R: 9.8 });
* y.toString(); // == '2=(147/5)*T'
*/
evaluate(): Expression
evaluate(x: {}): Expression

/**
* Substitutes a given value for another given value
Expand Down