Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/josdejong/mathjs
/ expression_trees.js
File
expression_trees.js
examples/advanced/expression_trees.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ parse, ConstantNode } from
'../../lib/esm/index.js'
2
3
// Filter an expression tree
4
console.log(
'Filter all symbol nodes "x" in the expression "x^2 + x/4 + 3*y"'
)
Callers
nothing calls this directly
Calls
6
log
Method · 0.65
filter
Method · 0.65
forEach
Method · 0.65
toString
Method · 0.65
traverse
Method · 0.65
transform
Method · 0.65
Tested by
no test coverage detected