List[Null, Null, Null, Null, Null, Null, Null, Notebook[List[Cell[CellGroupData[List[Cell["Exersice 1", "Title"], Cell[CellGroupData[List[Cell["Declaration Equations and Normal Equations", "Section"], Cell[TextData[List["Write a class, ", StyleBox["Birthyear", Rule[FontFamily, "Courier"]], ", which calculates the birthyear from  this year and a persons age.\nPoint out the declaration equations and the normal equations.\n"]], "Text"], Cell["", "ModelicaInput"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["class Birthyear\n  parameter Integer thisYear = 2002;\t\t\t// Declaration equation\n  parameter Integer age;\n  Integer birthYear;\nequation\n  birthYear = thisYear - age;\t\t\t\t\t// Normal equation\nend Birthyear;", "ModelicaInput"], Cell["", "Text"], Cell["simulate( Birthyear );", "ModelicaInput"], Cell[BoxData["\"<SimulationData: \\!\\(Birthyear\\) : 2004-1-30 9:39:30.6325196 : \\!\\({0.`, 1.`}\\) : 502 data points : 1 events : 5 variables>\\n\\!\\({\\*TagBox[\\\"age\\\", HoldForm], \\*TagBox[\\\"birthYear\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]derdummy\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]dummy\\\", HoldForm], \\*TagBox[\\\"thisYear\\\", HoldForm]}\\)\""], "Output"]], Closed]]], Open]], Cell[CellGroupData[List[Cell["Modification Equation", "Section"], Cell[TextData[List["Write an instance of the class ", StyleBox["Birthyear", Rule[FontFamily, "Courier"]], " above. The class, let's call it ", StyleBox["MartinsBirthyear", Rule[FontFamily, "Courier"]], ", shall calculate the Martin's birthyear, call the variable ", StyleBox["martinsBirthyear", Rule[FontFamily, "Courier"]], ", who is a 29-year-old. Point out the modification equation.\n"]], "Text"], Cell["", "ModelicaInput"], Cell["\nCheck your answer by writing as below:", "Text"], Cell[BoxData[RowBox[List["martinsBirthyear", ".", RowBox[List["birthYear", "[", "0", "]"]]]]], "Input"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["class MartinsBirthyear\n  Birthyear martinsBirthyear(age = 30);\t\t\t// Modification equation\nend MartinsBirthyear;", "ModelicaInput"], Cell["", "Text"], Cell["simulate( MartinsBirthyear );", "ModelicaInput"], Cell[BoxData["\"<SimulationData: \\!\\(MartinsBirthyear\\) : 2004-1-30 9:39:42.4139932 : \\!\\({0.`, 1.`}\\) : 502 data points : 1 events : 5 variables>\\n\\!\\({\\*TagBox[\\\"\[UnderBracket]derdummy\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]dummy\\\", HoldForm], \\*TagBox[\\(martinsBirthyear . age\\), HoldForm], \\*TagBox[\\(martinsBirthyear . birthYear\\), HoldForm], \\*TagBox[\\(martinsBirthyear . thisYear\\), HoldForm]}\\)\""], "Output"], Cell[BoxData[RowBox[List["martinsBirthyear", ".", RowBox[List["birthYear", "[", "0", "]"]]]]], "Input"]], Closed]]], Open]]], Open]]], Rule[FrontEndVersion, "5.1 for Microsoft Windows"], Rule[ScreenRectangle, List[List[0, 1280], List[0, 951]]], Rule[WindowSize, List[830, 873]], Rule[WindowMargins, List[List[0, Automatic], List[Automatic, 2]]], Rule[StyleDefinitions, "MathModelica.nb"]], Null, Null, Null, Null, Null]