List[Null, Null, Null, Null, Null, Null, Null, Notebook[List[Cell[CellGroupData[List[Cell["Exercise 1", "Title"], Cell[CellGroupData[List[Cell["Functions", "Section"], Cell[TextData[List["Write a function ", StyleBox["faculty", Rule[FontFamily, "Courier"]], ", such that faculty(n) = 1*2*3*4*....*n."]], "Text"], Cell["", "ModelicaInput"], Cell[TextData[List["\nWrite a class that contains a function call to ", StyleBox["faculty", Rule[FontFamily, "Courier"]], "."]], "Text"], Cell["", "ModelicaInput"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell[CellGroupData[List[Cell["NFaculty", "Subsubsection"], Cell["function NFaculty\n  input Integer n;\n  output Integer fak = 1;\nalgorithm  \n  for i in 2:n loop\n    fak := i*fak;\n  end for;  \nend NFaculty;", "ModelicaInput"]], Closed]], Cell[CellGroupData[List[Cell["NFacultyCall", "Subsubsection"], Cell["class NFacultyCall\n  Real n = NFaculty(4);\nend NFacultyCall;", "ModelicaInput"]], Closed]], Cell[CellGroupData[List[Cell["Simulation of NFacultyCall", "Subsubsection"], Cell["simulate( NFacultyCall );", "ModelicaInput"], Cell[BoxData["\"<SimulationData: \\!\\(NFacultyCall\\) : 2004-1-30 15:35:19.9292591 : \\!\\({0.`, 1.`}\\) : 502 data points : 1 events : 3 variables>\\n\\!\\({\\*TagBox[\\\"\[UnderBracket]derdummy\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]dummy\\\", HoldForm], \\*TagBox[\\\"n\\\", HoldForm]}\\)\""], "Output"], Cell[BoxData[RowBox[List["n", "[", "1", "]"]]], "Input"]], Closed]]], Closed]]], Open]]], Open]]], Rule[FrontEndVersion, "5.1 for Microsoft Windows"], Rule[ScreenRectangle, List[List[0, 1280], List[0, 951]]], Rule[WindowSize, List[759, 893]], Rule[WindowMargins, List[List[0, Automatic], List[Automatic, 1]]], Rule[StyleDefinitions, "MathModelica.nb"]], Null, Null, Null, Null, Null]