MCPcopy
hub / github.com/josdejong/mathjs / f

Function f

test/unit-tests/expression/node/FunctionAssignmentNode.test.js:203–205  ·  view source on GitHub ↗
(args, _math, _scope)

Source from the content-addressed store, hash-verified

201 it('should pass function arguments via scope to rawArgs function', function () {
202 const math2 = math.create()
203 const f = function (args, _math, _scope) {
204 return args[0].compile().evaluate(_scope)
205 }
206 f.rawArgs = true
207
208 math2.import({ f })

Callers 2

parse.test.jsFile · 0.50

Calls 2

evaluateMethod · 0.65
compileMethod · 0.65

Tested by

no test coverage detected