Commit d8fefd32 authored by Jakob Gabriel's avatar Jakob Gabriel Committed by Ferdinand Fischer
Browse files

working on solveDVariableEqualQuantity - not running yet.

parent 0d687694
......@@ -4,6 +4,16 @@ function [tests ] = testSymbolic()
tests = functiontests(localfunctions());
end
function testSolveOde(tc)
% simple constant case
quan = quantity.Symbolic(0, quantity.Domain("z", linspace(0, 1, 3)));
solution = quan.solveOde(...
quantity.Domain('s', linspace(0, 1, 3)), ...
quantity.Domain('ic', linspace(0, 1, 3)));
[referenceResult1, referenceResult2] = ndgrid(linspace(0, 1, 3), linspace(0, 1, 3));
tc.verifyEqual(solution.on(), referenceResult1 + referenceResult2, 'AbsTol', 10*eps);
end % testSolveDVariableEqualQuantity()
function testDet(tc)
z = quantity.Domain("z", linspace(0, 1, 11));
zSymbolic = quantity.Symbolic(sym("z"), z);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment