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

Function createConstantNode

src/function/algebra/derivative.js:749–751  ·  view source on GitHub ↗

* Helper function to create a constant node with a specific type * (number, BigNumber, Fraction) * @param {number} value * @param {string} [valueType] * @return {ConstantNode}

(value, valueType)

Source from the content-addressed store, hash-verified

747 * @return {ConstantNode}
748 */
749 function createConstantNode (value, valueType) {
750 return new ConstantNode(numeric(value, valueType || safeNumberType(String(value), config)))
751 }
752
753 return derivative
754})

Callers 1

derivative.jsFile · 0.85

Calls 1

safeNumberTypeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…