Skip to content

Commit

Permalink
refs modelica#1539 Add test model for Modelica.Math.Matrices.Examples…
Browse files Browse the repository at this point in the history
….solveLinearEquations
  • Loading branch information
beutlich committed Nov 12, 2018
1 parent bf71854 commit a776a54
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ModelicaTest/Math.mo
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,13 @@ extends Modelica.Icons.ExamplesPackage;
annotation (experiment(StopTime=0));
end TestMatrices3;

model TestMatricesExamplesSolveLinearEquations
extends Modelica.Icons.Example;
equation
Modelica.Math.Matrices.Examples.solveLinearEquations();
annotation (experiment(StopTime=0));
end TestMatricesExamplesSolveLinearEquations;

model TestVectors
extends Modelica.Icons.Example;

Expand Down Expand Up @@ -833,7 +840,7 @@ extends Modelica.Icons.ExamplesPackage;
annotation (experiment(StopTime=5));
end TestInterpolateParametric;

model TestInterpolateTimeVarying "To test smoothOrder in Modelica.Math.Vectors.interpolate"
model TestInterpolateTimeVarying "To test smoothOrder in Modelica.Math.Vectors.interpolate"
extends Modelica.Icons.Example;
Real tabx[:]={0,1,2,3,4,5}+0.1*time*ones(6);
Real taby[:]=tabx .* tabx;
Expand All @@ -848,7 +855,7 @@ extends Modelica.Icons.ExamplesPackage;
der(xIntegrated)=p*y;
assert(abs(x-xIntegrated)<0.1, "Automatically generated derivative should integrate correctly.");
annotation (experiment(StopTime=5));
end TestInterpolateTimeVarying;
end TestInterpolateTimeVarying;

package Random
function randomNumbers
Expand Down

0 comments on commit a776a54

Please sign in to comment.