<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=OpenModelica%2FC2%2FArrays-in-Modelica%2FEnglish</id>
		<title>OpenModelica/C2/Arrays-in-Modelica/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=OpenModelica%2FC2%2FArrays-in-Modelica%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;action=history"/>
		<updated>2026-05-14T12:10:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;diff=26084&amp;oldid=prev</id>
		<title>Nancyvarkey at 10:51, 18 March 2016</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;diff=26084&amp;oldid=prev"/>
				<updated>2016-03-18T10:51:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:51, 18 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 147:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 147:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| protected parameter '''Real a[3] = {1,2,1}''';&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| protected parameter '''Real a[3] = {1,2,1}''';&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| The elements of this &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;vectors &lt;/del&gt;are included in curly braces as shown. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| The elements of this &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;vector &lt;/ins&gt;are included in curly braces as shown. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The elements are separated by a '''comma'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The elements are separated by a '''comma'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nancyvarkey</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;diff=26062&amp;oldid=prev</id>
		<title>Kaushik Datta at 09:57, 16 March 2016</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;diff=26062&amp;oldid=prev"/>
				<updated>2016-03-16T09:57:31Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 09:57, 16 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| To understand and practice this tutorial:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| To understand and practice this tutorial:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;you &lt;/del&gt;need knowledge of '''arrays''' in any programming language.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;You &lt;/ins&gt;need knowledge of '''arrays''' in any programming language.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* You need to know how to define a '''class''' in '''Modelica'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* You need to know how to define a '''class''' in '''Modelica'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 48:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 48:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Vector''' declaration (Add an example in the slide for declaration as well)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Vector''' declaration (Add an example in the slide for declaration as well)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| '''Vector''' is a one dimensional array.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| '''Vector''' is a one dimensional array.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It has single index.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It has single index.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 398:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 398:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| '''myMatrix''' array is constructed using three vectors of two elements each. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| '''myMatrix''' array is constructed using three vectors of two elements each. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''{1,2}''' represents the first vector. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/ins&gt;'''{1,2}''' represents the first vector. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''{3,4}''' is the second one and &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/ins&gt;'''{3,4}''' is the second one and &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''{5,6}}''' represents the third vector. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/ins&gt;'''{5,6}}''' represents the third vector. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Size of each of this vectors is equal to size of second dimension of this array. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Size of each of this vectors is equal to size of second dimension of this array. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kaushik Datta</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;diff=26061&amp;oldid=prev</id>
		<title>Kaushik Datta at 09:51, 16 March 2016</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;diff=26061&amp;oldid=prev"/>
				<updated>2016-03-16T09:51:22Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 09:51, 16 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Learning Objectives'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;Learning Objectives'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| In this tutorial, we are going to learn:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| In this tutorial, we are going to learn:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Prerequisites&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;Prerequisites&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| To understand and practice this tutorial:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| To understand and practice this tutorial:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 198:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 198:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Select '''z''' in the variables browser&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Select '''z''' in the variables browser&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Select '''z''' in the variables browser.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Select '''z''' in the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;variables&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''' &lt;/ins&gt;browser.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note that the value of '''z''' is equal to '''f(x)''' at '''x = 10'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note that the value of '''z''' is equal to '''f(x)''' at '''x = 10'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 452:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 452:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| /* Plotting perspective */&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| /* Plotting perspective */&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;||Let me expand variables column.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;||Let me expand &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;variables&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''' &lt;/ins&gt;column.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Select '''adder[1,1]''', '''myMatrix[1,1]''',&amp;#160; and '''mySum[1,1]'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Select '''adder[1,1]''', '''myMatrix[1,1]''',&amp;#160; and '''mySum[1,1]'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 503:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 503:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Forum&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;Forum&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| If you have questions related to this spoken tutorial, please visit the following website.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| If you have questions related to this spoken tutorial, please visit the following website.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kaushik Datta</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;diff=26060&amp;oldid=prev</id>
		<title>Kaushik Datta at 09:46, 16 March 2016</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;diff=26060&amp;oldid=prev"/>
				<updated>2016-03-16T09:46:15Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;amp;diff=26060&amp;amp;oldid=26056&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Kaushik Datta</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;diff=26056&amp;oldid=prev</id>
		<title>Kaushik Datta at 08:33, 16 March 2016</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;diff=26056&amp;oldid=prev"/>
				<updated>2016-03-16T08:33:54Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;amp;diff=26056&amp;amp;oldid=25991&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Kaushik Datta</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;diff=25991&amp;oldid=prev</id>
		<title>Kaushik Datta: Created page with &quot;{| border=1 ||'''Visual Cue''' ||'''Narration'''  |- || Slide:  '''Title Slide''' || Welcome to the spoken tutorial on '''Arrays''' as a part of the series on OpenModelica  |-...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C2/Arrays-in-Modelica/English&amp;diff=25991&amp;oldid=prev"/>
				<updated>2016-03-10T07:18:55Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| border=1 ||&amp;#039;&amp;#039;&amp;#039;Visual Cue&amp;#039;&amp;#039;&amp;#039; ||&amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039;  |- || Slide:  &amp;#039;&amp;#039;&amp;#039;Title Slide&amp;#039;&amp;#039;&amp;#039; || Welcome to the spoken tutorial on &amp;#039;&amp;#039;&amp;#039;Arrays&amp;#039;&amp;#039;&amp;#039; as a part of the series on OpenModelica  |-...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border=1&lt;br /&gt;
||'''Visual Cue'''&lt;br /&gt;
||'''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the spoken tutorial on '''Arrays''' as a part of the series on OpenModelica&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we are going to learn:&lt;br /&gt;
&lt;br /&gt;
* How to declare '''arrays'''&lt;br /&gt;
* How to construct '''arrays'''&lt;br /&gt;
* How to use '''for''' and '''while''' loops&lt;br /&gt;
* How to use '''OMShell'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
* '''OpenModelica 1.9.2''' Linux version&lt;br /&gt;
&lt;br /&gt;
But, this process is identical in '''Windows''', '''Mac OS X''' or '''FOSSEE on ARM'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
Prerequisites&lt;br /&gt;
|| To understand and practice this tutorial, you need&lt;br /&gt;
&lt;br /&gt;
* Knowledge of arrays in any programming language&lt;br /&gt;
* Knowledge of class definition in Modelica&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Vector''' declaration (Add an example in the slide for declaration as well)&lt;br /&gt;
|| '''Vector''' is a one dimensional array&lt;br /&gt;
&lt;br /&gt;
It has single index&lt;br /&gt;
&lt;br /&gt;
Syntax for vector declaration is as shown. The example shown declares an array variable a whose size is '''2'''.&lt;br /&gt;
&lt;br /&gt;
A vector can be constructed by including the elements in curly braces as shown.&lt;br /&gt;
&lt;br /&gt;
This example defines vector '''a''' with '''2''' and '''3''' as its elements.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Vector Indexing'''&lt;br /&gt;
|| To access the elements of a vector, it is necessary to understand indexing.&lt;br /&gt;
&lt;br /&gt;
The syntax for accessing an element is as shown.&lt;br /&gt;
&lt;br /&gt;
Vector indexing starts from '''1'''.&lt;br /&gt;
&lt;br /&gt;
Indices must be integers. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''Problem Statement'''&lt;br /&gt;
|| Let us develop a function named '''polynomialEvaluatorUsingVectors'''. &lt;br /&gt;
&lt;br /&gt;
This function is an extension of '''polynomialEvaluator''' function discussed in previous tutorials. &lt;br /&gt;
&lt;br /&gt;
We shall replace '''a,b,c''' in '''polynomialEvaluator''' function with a vector&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Please download and save all the code files available on our website. &lt;br /&gt;
&lt;br /&gt;
For your convenience, '''polynomialEvaluator''' function is also made available.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| /* Switch to OMEdit */&lt;br /&gt;
|| Let me switch to '''OMEdit'''. It is now open in Welcome perspective. &lt;br /&gt;
&lt;br /&gt;
I have opened the necessary files. &lt;br /&gt;
&lt;br /&gt;
Note that the following classes are now open in OMEdit: '''functionTester''', '''polynomialEvaluatorUsingVectors''', '''matrixAdder''', '''polynomialEvaluator'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| /* polynomialEvaluator */&lt;br /&gt;
&lt;br /&gt;
'''protected parameter Real a = 1;'''&lt;br /&gt;
&lt;br /&gt;
'''protected parameter Real b = 2;'''&lt;br /&gt;
&lt;br /&gt;
'''protected parameter Real c = 1;'''&lt;br /&gt;
&lt;br /&gt;
|| Now, let me view these classes. Double click on each icon. &lt;br /&gt;
&lt;br /&gt;
Switch to '''polynomialEvaluator''' tab. &lt;br /&gt;
&lt;br /&gt;
For more information on this function, watch the prerequisite tutorials. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Click on '''polynomialEvaluatorUsingVectors''' tab.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| /* polynomialEvaluatorUsingVectors */&lt;br /&gt;
&lt;br /&gt;
'''input Real x;'''&lt;br /&gt;
&lt;br /&gt;
'''output Real fx;'''&lt;br /&gt;
&lt;br /&gt;
|| Input and output variables are the same as '''polynomialEvaluator''' function.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''protected parameter Real a[3]''' = {1,2,1}; &lt;br /&gt;
|| Parameters '''a,b''' and '''c''' in polynomialEvaluator are replaced by a real vector parameter named '''a'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| protected parameter '''Real a[3] = {1,2,1}''';&lt;br /&gt;
|| The size of this vector is '''3'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| protected parameter '''Real a[3] = {1,2,1}''';&lt;br /&gt;
|| Vector elements are specified in curly braces. They are separated by comma.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''algorithm'''&lt;br /&gt;
&lt;br /&gt;
'''fx := a[1]*x^2 + a[2]*x + a[3];'''&lt;br /&gt;
|| This indicates the beginning of algorithm section.&lt;br /&gt;
&lt;br /&gt;
The elements of vector a are accessed using their indices.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''algorithm'''&lt;br /&gt;
&lt;br /&gt;
fx := '''a[1]'''&amp;lt;nowiki&amp;gt;*x^2 + a[2]*x + a[3];&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|| a[1] is the first element in vector a.&lt;br /&gt;
&lt;br /&gt;
It is the coefficient of '''x^2''' in the expression for '''fx'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| fx := a[1]*x^2 + '''a[2]*x + a[3];'''&lt;br /&gt;
|| Similarly, second and third elements of vector a are accessed.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Rest of this function is same as '''polynomialEvaluator'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Now, let us take a look at '''functionTester''' class&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''functionTester''' tab&lt;br /&gt;
|| Click on '''functionTester''' tab to switch.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| /* functionTester */&lt;br /&gt;
&lt;br /&gt;
'''Real z;'''&lt;br /&gt;
|| '''z''' is a Real variable.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''z = polynomialEvaluatorUsingVectors(10);'''&lt;br /&gt;
|| '''polynomialEvaluatorUsingVectors''' function is called. The input argument is '''10'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''z = polynomialEvaluatorUsingVectors(10);'''&lt;br /&gt;
|| '''z''' is equal to the output returned by function call.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Simulate''' button&lt;br /&gt;
|| Click on '''Simulate''' button in the toolbar.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| /* Plotting perspective */&lt;br /&gt;
&lt;br /&gt;
Click on '''z''' in variables browser&lt;br /&gt;
|| '''functionTester''' class is simulated.&lt;br /&gt;
&lt;br /&gt;
Click on '''z''' in the variables browser.&lt;br /&gt;
&lt;br /&gt;
'''z''' takes the value of '''f(x)''' at '''x = 10''', which is '''121'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Modeling''' button&lt;br /&gt;
|| Click on '''Modeling''' button at bottom right.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let me go back to the slides.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''for''' (Add another slide for syntax)&lt;br /&gt;
&lt;br /&gt;
|| '''for''' loop is used to iterate statements a given number of times&lt;br /&gt;
&lt;br /&gt;
'''for''' loop can be used in both algorithm and equation sections&lt;br /&gt;
&lt;br /&gt;
The syntax of '''for''' loop is as shown with an example. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let me go back to '''OMEdit'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Click on '''polynomialEvaluatorUsingVectors''' tab.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| /* polynomialEvaluatorUsingVectors */&lt;br /&gt;
&lt;br /&gt;
'''fx := a[1]*x^2 + a[2]*x + a[3]; '''&lt;br /&gt;
|| To evaluate '''fx''', we are accessing the elements of vector '''a'''. &lt;br /&gt;
&lt;br /&gt;
This can also be done using a for loop. Now, let us include a for loop in the algorithm section.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Comment // '''fx := a[1]*x^2 + a[2]*x + a[3]; '''&lt;br /&gt;
|| Comment the assignment statement for '''fx''' in the algorithm section by inserting double slash.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| The for loop to be inserted has been provided in a text file named '''for-loop.txt'''. It is available on our website.&lt;br /&gt;
&lt;br /&gt;
I have opened this file using '''gedit'''. Windows users may use notepad to open it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let me go to '''gedit'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Copy all the statements. Go back to '''OMEdit'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
Paste the for loop using '''Ctrl + V'''. Press '''Ctrl + S''' to save the function.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| // '''fx := 0;'''&lt;br /&gt;
|| Now, let me explain each statement. &lt;br /&gt;
&lt;br /&gt;
This statement assigns '''fx '''an initial value of zero before the loop starts.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| // '''for i in 1:3 loop'''&lt;br /&gt;
|| Here, '''i''' serves as a loop counter. Loop runs until '''i''' is '''3'''. &lt;br /&gt;
&lt;br /&gt;
It is not necessary to declare '''i''' before it is used. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| //''' fx := fx + a[i]*x^(3-i); '''&lt;br /&gt;
|| This statement iteratively adds terms of the polynomial '''f(x)'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''// end for;'''&lt;br /&gt;
|| This statement indicates the end of '''for''' loop&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Now, the function is complete. Let us use the class '''functionTester''' to test the function after modification.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''functionTester''' tab&lt;br /&gt;
|| Click on '''functionTester''' tab. We have not made any changes to this class.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Simulate''' button&lt;br /&gt;
|| Click on '''Simulate''' button in the toolbar.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| /* Plotting perspective */&lt;br /&gt;
|| The class is simulated. &lt;br /&gt;
&lt;br /&gt;
Click on '''z''' in '''variables browser'''. Value of '''z''' remains the same after changes made to the function.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to '''Modeling perspective'''&lt;br /&gt;
|| Click on '''Modeling''' button at bottom right.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let me go back to the slides.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''while'''&lt;br /&gt;
&lt;br /&gt;
|| '''while''' loop is used to iterate a set of statements until a given condition is satisfied.&lt;br /&gt;
&lt;br /&gt;
'''while''' loop cannot be used in equation section.&lt;br /&gt;
&lt;br /&gt;
'''for''' is frequently used as compared to '''while'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Arrays'''&lt;br /&gt;
|| '''Arrays''' may have more than one dimension.&lt;br /&gt;
&lt;br /&gt;
They can constructed using vector notation.&lt;br /&gt;
&lt;br /&gt;
2 dimensional arrays may be constructed using matrix notation as well.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Syntax'''&lt;br /&gt;
|| '''Syntax''' for array declaration and indexing is as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Problem Statement'''&lt;br /&gt;
|| Let us write a class named '''matrixAdder''' which&lt;br /&gt;
&lt;br /&gt;
adds '''myMatrix''' and adder matrices to give '''mySum'''.&lt;br /&gt;
&lt;br /&gt;
'''myMatrix''' and adder matrices are as shown. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Now, let me switch to '''OMEdit''' to demonstrate '''matrixAdder''' class. It is already open in '''OMEdit'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| /* Switch to OMEdit */&lt;br /&gt;
|| Click on '''matrixAdder''' tab.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| This class performs matrix addition by accessing each element individually.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''parameter Real[3, 2] myMatrix = {{1,2},{3,4},{5,6}}'''; &lt;br /&gt;
|| '''myMatrix''' is a Real parameter array. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''parameter Real[3, 2] myMatrix = {{1,2},{3,4},{5,6}}'''; &lt;br /&gt;
|| This represents array size. It has two dimensions. The size of first dimension is '''3'''. &lt;br /&gt;
&lt;br /&gt;
Similarly, the size of second dimension is '''2'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| parameter Real[3, 2] myMatrix = // '''{{1,2},{3,4},{5,6}}; '''//''' Highlight piecewise'''&lt;br /&gt;
|| '''myMatrix''' array is constructed using three vectors of two elements each. '''{1,2}''' represents the first vector. &lt;br /&gt;
&lt;br /&gt;
Size of the vector is equal to size of second dimension of the array. Hence, size of second dimension of myMatrix is '''2'''.&lt;br /&gt;
&lt;br /&gt;
Number of vectors is equal to the size of first dimension.&lt;br /&gt;
&lt;br /&gt;
Higher dimensional arrays may be constructed similarly.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''parameter Real[3, 2] adder''' '''&amp;lt;nowiki&amp;gt;= {{1,0},{0,1},{1,0}};&amp;lt;/nowiki&amp;gt;''' &lt;br /&gt;
|| '''adder''' matrix is similarly constructed.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| We need to access elements from two dimensions here. &lt;br /&gt;
&lt;br /&gt;
A '''nested for''' loop is required.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''for i in 1:3 loop''' &lt;br /&gt;
|| This '''for''' loop runs through the first dimension of array.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''for j in 1:2 loop'''&lt;br /&gt;
|| This loop runs through the second dimension.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''mySum[i, j] := myMatrix[i, j] + adder[i, j]; '''&lt;br /&gt;
|| Corresponding elements of '''myMatrix''' and adder are added. &lt;br /&gt;
&lt;br /&gt;
Elements of '''mySum''' array are produced from this addition.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''end for; '''&lt;br /&gt;
&lt;br /&gt;
'''end for; '''&lt;br /&gt;
|| They represent the end of each '''for''' loop.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Simulate''' button&lt;br /&gt;
|| Click on '''Simulate''' button in the toolbar.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| /* Plotting perspective */&lt;br /&gt;
||''' variables browser''' shows each individual element of the array.&lt;br /&gt;
&lt;br /&gt;
Click on '''myMatrix[1,1], adder[1,1]''' and '''mySum[1,1]''' in variables browser. &lt;br /&gt;
&lt;br /&gt;
Note that '''mySum[1,1]''' is the sum of '''myMatrix[1,1]''' and '''adder[1,1]'''. &lt;br /&gt;
&lt;br /&gt;
Hence, this result is correct. Let me delete the result.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let us go back to the slides.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|| Try the following problems: &lt;br /&gt;
&lt;br /&gt;
Write a function named '''vectorReversal''' that takes a vector as input and returns a vector with the order of elements reversed.&lt;br /&gt;
&lt;br /&gt;
Write a function named '''matrixReversal''' that takes a matrix as input and returns a matrix with the order of elements in each row reversed.&lt;br /&gt;
&lt;br /&gt;
Write a '''functionTester''' class to test these two functions&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| This brings us to the end of this tutorial&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
About the '''Spoken Tutorial project'''&lt;br /&gt;
|| Watch the video available at the link shown below&lt;br /&gt;
&lt;br /&gt;
['''http://spoken-tutorial.org/ http][http://spoken-tutorial.org/ ://][http://spoken-tutorial.org/ spoken][http://spoken-tutorial.org/ -][http://spoken-tutorial.org/ tutorial][http://spoken-tutorial.org/ .][http://spoken-tutorial.org/ org] /What\_is\_a\_Spoken\_Tutorial'''&lt;br /&gt;
&lt;br /&gt;
It summarises the '''Spoken Tutorial''' project&lt;br /&gt;
&lt;br /&gt;
If you do not have good bandwidth, you can download and watch it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Spoken Tutorial''' Workshops&lt;br /&gt;
|| We conducts workshops using spoken tutorials&lt;br /&gt;
&lt;br /&gt;
Give certificates &lt;br /&gt;
&lt;br /&gt;
Please contact us&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
Forum&lt;br /&gt;
|| If you have questions in this tutorial, please visit the webpage mentioned.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|| We coordinate coding of solved examples from popular books. We give honorarium to contributors. Please visit our website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration Project'''&lt;br /&gt;
|| We help migrate labs from commercial simulators to OpenModelica. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgements'''&lt;br /&gt;
|| Spoken Tutorial Project is supported by '''NMEICT, MHRD''', Government of India.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thanks'''&lt;br /&gt;
|&amp;quot;| We thank '''OpenModelica''' development team for their support.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Thank you for joining me in this tutorial. Goodbye!&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Kaushik Datta</name></author>	</entry>

	</feed>