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

Function _eval

src/function/algebra/simplifyConstant.js:94–102  ·  view source on GitHub ↗
(fnname, args, options)

Source from the content-addressed store, hash-verified

92 }
93
94 function _eval (fnname, args, options) {
95 try {
96 return mathWithTransform[fnname].apply(null, args)
97 } catch (ignore) {
98 // sometimes the implicit type conversion causes the evaluation to fail, so we'll try again after removing Fractions
99 args = args.map(_removeFractions)
100 return _toNumber(mathWithTransform[fnname].apply(null, args), options)
101 }
102 }
103
104 const _toNode = typed({
105 Fraction: _fractionToNode,

Callers 2

foldOpFunction · 0.85
foldFractionFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…