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

Function exactSol

test/unit-tests/function/numeric/solveODE.test.js:28–28  ·  view source on GitHub ↗
(T, y0)

Source from the content-addressed store, hash-verified

26describe('solveODE', function () {
27 function f (t, y) { return subtract(y, t) }
28 function exactSol (T, y0) { return add(dotMultiply(subtract(y0, 1), map(transpose([T]), exp)), transpose([T]), 1) } // this is only valid for y' = y - t
29 const tspan = [0, 4]
30 const y0 = [1.5, 2]
31

Callers 1

solveODE.test.jsFile · 0.85

Calls 4

mapFunction · 0.85
transposeFunction · 0.85
addFunction · 0.50
subtractFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…