(fnname, args, options)
| 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, |
no test coverage detected
searching dependent graphs…