List[Null, Null, Null, Null, Null, Null, Null, Notebook[List[Cell[CellGroupData[List[Cell["Exercise 1 - Variable Declaration", "Title"], Cell[CellGroupData[List[Cell["Question", "Section"], Cell["What is a variable?", "Text"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["A variable is a place to store a piece of information. Just as you might store a friend's phone number in your own memory, you can store this information in a computer's memory. Variables are your way of accessing your computer's memory. ", "Text"]], Closed]]], Open]], Cell[CellGroupData[List[Cell["Question", "Section"], Cell["Which are the two kinds of variables and what is the difference between them?", "Text"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["There are two different kinds of variables, discrete-time and continuous-time variables. Discrete-time variables change value only at event instants, whereas continuous-time variables may change value both between and at events.", "Text"]], Closed]]], Open]], Cell[CellGroupData[List[Cell["Question", "Section"], Cell["What is a parameter?", "Text"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["A parameter is a special kind of constant, which is implemented as a static variable that is initialized once and never changes its value during a specific execution. ", "Text"]], Closed]]], Open]], Cell[CellGroupData[List[Cell["Declaring Variables", "Section"], Cell[TextData[List["Define a class ", StyleBox["Matrices", Rule[FontFamily, "Courier"]], " that declares the variables m1, m2, m3, m4 all being matrices with Integers respectively Real numbers. Make at least one of them an array. Let m1 and m2 be parameters,  m3 a regular variable and m4 a constant. "]], "Text"], Cell["", "ModelicaInput"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["class Matrices\n  parameter Real m1[2, 3];\t\t\t\t\t// A matrix with two rows and three columns\n  parameter Real m2[5];\t\t\t\t\t\t// An array with 5 elements\n  Real m3[1, 6];\t\t\t\t\t\t\t// A matrix with one row and six columns (a six-element array)\n  constant Real[2, 1] m4 = {{4}, {7}};\t\t// A matrix with two rows and one column    \nend Matrices;", "ModelicaInput"]], Closed]]], Open]]], Open]]], Rule[FrontEndVersion, "4.1 for Microsoft Windows"], Rule[ScreenRectangle, List[List[0, 1280], List[0, 951]]], Rule[WindowSize, List[877, 924]], Rule[WindowMargins, List[List[0, Automatic], List[Automatic, 0]]], Rule[StyleDefinitions, "MathModelica.nb"]], Null, Null, Null, Null, Null]