<?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=Scilab%2FC2%2FGetting-Started%2FEnglish</id>
		<title>Scilab/C2/Getting-Started/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=Scilab%2FC2%2FGetting-Started%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Scilab/C2/Getting-Started/English&amp;action=history"/>
		<updated>2026-05-15T15:37:12Z</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=Scilab/C2/Getting-Started/English&amp;diff=11237&amp;oldid=prev</id>
		<title>PoojaMoolya at 04:27, 13 June 2014</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Scilab/C2/Getting-Started/English&amp;diff=11237&amp;oldid=prev"/>
				<updated>2014-06-13T04:27:23Z</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 04:27, 13 June 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&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;{| border=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;{| border=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;!Visual &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Clue&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;!Visual &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Cue&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;!Narration&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;!Narration&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;|-&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;/table&gt;</summary>
		<author><name>PoojaMoolya</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Scilab/C2/Getting-Started/English&amp;diff=11230&amp;oldid=prev</id>
		<title>PoojaMoolya at 04:22, 13 June 2014</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Scilab/C2/Getting-Started/English&amp;diff=11230&amp;oldid=prev"/>
				<updated>2014-06-13T04:22:05Z</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 04:22, 13 June 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&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;{| border=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;{| border=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;!Visual &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Cue&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;!Visual &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Clue&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;!Narration&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;!Narration&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;|-&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;/table&gt;</summary>
		<author><name>PoojaMoolya</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Scilab/C2/Getting-Started/English&amp;diff=281&amp;oldid=prev</id>
		<title>Chandrika: Created page with ''''Title of script: Getting Started with Scilab'''  '''Author: Shalini , Anuradha A.'''  '''Keywords: Simple calculations, arithmetic, logarithm, exponential, trigonometric funct…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Scilab/C2/Getting-Started/English&amp;diff=281&amp;oldid=prev"/>
				<updated>2012-11-27T14:01:45Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;#039;&amp;#039;&amp;#039;Title of script: Getting Started with Scilab&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Author: Shalini , Anuradha A.&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Keywords: Simple calculations, arithmetic, logarithm, exponential, trigonometric funct…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Title of script: Getting Started with Scilab'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Shalini , Anuradha A.'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Simple calculations, arithmetic, logarithm, exponential, trigonometric functions. diary, file storing operations, working directory.'''&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
!Visual Cue&lt;br /&gt;
!Narration&lt;br /&gt;
|-&lt;br /&gt;
|'''Slide'''&lt;br /&gt;
|'''Welcome to the spoken tutorial on Getting Started with Scilab.'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Slide'''&lt;br /&gt;
| '''In this tutorial we are going to learn: '''&lt;br /&gt;
&lt;br /&gt;
'''Use Scilab as a calculator.'''&lt;br /&gt;
&lt;br /&gt;
'''How to Store values in a variable.'''&lt;br /&gt;
&lt;br /&gt;
'''How to Perform various mathematical operations using these variables.'''&lt;br /&gt;
&lt;br /&gt;
'''How to Create a file to store commands executed during the session in the current working directory.'''&lt;br /&gt;
&lt;br /&gt;
'''Define complex numbers.'''&lt;br /&gt;
&lt;br /&gt;
'''How to Perform exponential, logarithmic and trigonometric operations on numbers.'''&lt;br /&gt;
|-&lt;br /&gt;
|'''Slide'''&lt;br /&gt;
|'''The prerequisite for this tutorial are Scilab should be installed on your system.'''&lt;br /&gt;
'''I am using Scilab 5.2.0 and Mac OS(X) for demonstration'''&lt;br /&gt;
|-&lt;br /&gt;
|'''Slide'''&lt;br /&gt;
|'''Here is the Flow chart for the tutorial.'''&lt;br /&gt;
|-&lt;br /&gt;
|'''Launch Scilab '''&lt;br /&gt;
|'''Click on the Scilab shortcut icon on your Desktop and Start Scilab.'''&lt;br /&gt;
&lt;br /&gt;
'''This is the Scilab console window. Notice that the cursor is on the command prompt.'''&lt;br /&gt;
&lt;br /&gt;
'''I suggest that you practice this tutorial in Scilab simultaneously while pausing the video at regular intervals of time.'''&lt;br /&gt;
|-&lt;br /&gt;
|'''Scilab Console'''&lt;br /&gt;
&lt;br /&gt;
'''--&amp;gt; 42+4*4-64/4 '''&lt;br /&gt;
&lt;br /&gt;
|'''Scilab can be used as a calculator. Let us see some of the basic operations that it can do.'''&lt;br /&gt;
&lt;br /&gt;
'''Type 42 plus 4 multiplied by 4 minus 64 divided 4  and press enter.'''&lt;br /&gt;
&lt;br /&gt;
'''The output is 42, as expected.'''&lt;br /&gt;
|-&lt;br /&gt;
|'''---&amp;gt; ans'''&lt;br /&gt;
|'''Note that the answer 42 is stored in the default variable &amp;quot;a n s&amp;quot;.'''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;a=12, b=21, c=33'''&lt;br /&gt;
|&lt;br /&gt;
'''We can also create named variables:'''&lt;br /&gt;
&lt;br /&gt;
'''Type, '''&lt;br /&gt;
&lt;br /&gt;
'''a equals 12,b=21 and c=33 and press enter.'''&lt;br /&gt;
&lt;br /&gt;
'''This stores the values 12,21 and 33 in the variables a,b and c respectively.'''&lt;br /&gt;
'''I will clear the scilab console using the clc command here'''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;a+b+c '''&lt;br /&gt;
&lt;br /&gt;
'''ans = 66. '''&lt;br /&gt;
&lt;br /&gt;
|'''Now we will perform some mathematical operations using these variables. '''&lt;br /&gt;
&lt;br /&gt;
'''For example,'''&lt;br /&gt;
&lt;br /&gt;
'''a+b+c gives the result 66 also'''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;a*(b+c) '''&lt;br /&gt;
&lt;br /&gt;
'''ans = 648.'''&lt;br /&gt;
|'''also'''&lt;br /&gt;
&lt;br /&gt;
'''a times into bracket (b+c) gives the result 648'''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;d = (a+b)*c'''&lt;br /&gt;
&lt;br /&gt;
'''d = 1089.'''&lt;br /&gt;
&lt;br /&gt;
|'''We can also assign the answer to another variable say 'd' by typing d = bracket (a+b) close the bracket multiplied by c gives the answer '''&lt;br /&gt;
&lt;br /&gt;
'''d = 1089.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;a,b,c,d '''&lt;br /&gt;
&lt;br /&gt;
'''a = 12.'''&lt;br /&gt;
&lt;br /&gt;
'''b = 21.'''&lt;br /&gt;
&lt;br /&gt;
'''c = 33. '''&lt;br /&gt;
&lt;br /&gt;
'''d = 1089.'''&lt;br /&gt;
&lt;br /&gt;
|'''We can check the values in the variables by typing the names of the variables separated by commas on the command line as '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''a,b,c,d and press enter'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''a = 12.'''&lt;br /&gt;
&lt;br /&gt;
'''b = 21.'''&lt;br /&gt;
&lt;br /&gt;
'''c = 33. and'''&lt;br /&gt;
&lt;br /&gt;
'''d = 1089.'''&lt;br /&gt;
'''I will clear the console here using the clc command'''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt; 7^2'''&lt;br /&gt;
|'''To take the power, use the “raised to” symbol: for example, 7 square can be found by 7 raised to 2.'''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt; sqrt(17)'''&lt;br /&gt;
|'''For finding the square root of a number, say, 17, we use : sqrt(17).'''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt; 17^(0.5)'''&lt;br /&gt;
|'''This is same as 17 raised to the power of zero point five. '''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt; 34^(2/5)'''&lt;br /&gt;
|'''By convention, only the positive value comes as output. More generally, to find 34 to the power of (2 by 5), type:'''&lt;br /&gt;
&lt;br /&gt;
'''Negative powers can also be used, and '''&lt;br /&gt;
&lt;br /&gt;
'''So far, we have seen how to do some simple calculations and how to create variables in Scilab. '''&lt;br /&gt;
&lt;br /&gt;
'''Now let us start with a new command which helps us remember previously issued commands and their resulting outputs.'''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt; pwd'''&lt;br /&gt;
| '''First type the command pwd'''&lt;br /&gt;
&lt;br /&gt;
''':ans ='''&lt;br /&gt;
&lt;br /&gt;
'''/home/cdeep '''&lt;br /&gt;
&lt;br /&gt;
'''This is the current working directory (on this computer). '''&lt;br /&gt;
&lt;br /&gt;
'''Of course, when you type this on your computer, it could be different. '''&lt;br /&gt;
|-&lt;br /&gt;
|'''Use icon to change directory to desktop'''&lt;br /&gt;
&lt;br /&gt;
|'''The current working directory can be changed by using the icon as shown.'''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt; diary('myrecord.txt') '''&lt;br /&gt;
|'''Now issue the diary command by typing:'''&lt;br /&gt;
&lt;br /&gt;
'''diary('myrecord.txt') press enter'''&lt;br /&gt;
|-&lt;br /&gt;
|'''Slide'''&lt;br /&gt;
&lt;br /&gt;
|'''This command will create a file with the name &amp;quot;myrecord.txt&amp;quot; in the current working directory. '''&lt;br /&gt;
&lt;br /&gt;
'''A transcript of the Scilab session from now onwards will be saved in this file. '''&lt;br /&gt;
&lt;br /&gt;
'''Its usefulness will be demonstrated at a later stage in this tutorial'''&lt;br /&gt;
|-&lt;br /&gt;
|  &lt;br /&gt;
|'''Please pause the tutorial now and attempt exercise number one given with the video. '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;%i'''&lt;br /&gt;
|'''Now, let us see how Scilab handles complex numbers. '''&lt;br /&gt;
&lt;br /&gt;
'''The imaginary unit i is defined in Scilab as percent i:'''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;5.2*%i'''&lt;br /&gt;
|'''(Five point two into percent eye gives result 5.2i'''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;(10+5*%i)*(2*%i)'''&lt;br /&gt;
|'''also 10 plus 5 into percent i whole multiply with 2 into percent i gives us 10. + 20.i'''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;%pi'''&lt;br /&gt;
&lt;br /&gt;
|'''Let us see some other predefined numerical constants available in Scilab. '''&lt;br /&gt;
&lt;br /&gt;
'''As with i, their names also start with the percent sign:'''&lt;br /&gt;
&lt;br /&gt;
'''For example, percent pi'''&lt;br /&gt;
&lt;br /&gt;
'''The value of pi is as expected.'''&lt;br /&gt;
|-&lt;br /&gt;
|'''-&amp;gt; sin(%pi/2) '''&lt;br /&gt;
&lt;br /&gt;
|'''Now, we will demonstrate the use of pi using a few built-in trigonometric functions as follows. '''&lt;br /&gt;
&lt;br /&gt;
'''For the functions sin of percent pi divided by 2 gives result 1.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''-&amp;gt; cos(%pi/2)'''&lt;br /&gt;
|'''and cos percent pi divided by 2 gives result 6.123D-17.'''&lt;br /&gt;
&lt;br /&gt;
'''Notice first that angles are measured in radians.'''&lt;br /&gt;
&lt;br /&gt;
'''Notice that the second answer is zero for all practical purposes. '''&lt;br /&gt;
&lt;br /&gt;
'''This is related to a number known as &amp;quot;machine epsilon&amp;quot;,'''&lt;br /&gt;
&lt;br /&gt;
'''It is the minimum digit resolution that Scilab can give.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt; %eps'''&lt;br /&gt;
&lt;br /&gt;
|'''Type %eps in console to find its value on your computer.'''&lt;br /&gt;
&lt;br /&gt;
'''In my computer it gives 2.220D-16 '''&lt;br /&gt;
&lt;br /&gt;
'''This shows the floating point precision that Scilab uses : 2.220D-16. '''&lt;br /&gt;
&lt;br /&gt;
'''This number is a notation for 2.22 times 10^(-16). '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;0.000456'''&lt;br /&gt;
&lt;br /&gt;
'''--&amp;gt;4.56d-4'''&lt;br /&gt;
&lt;br /&gt;
'''--&amp;gt;4.56e-4'''&lt;br /&gt;
&lt;br /&gt;
|'''If one wants to write 0.000456, one can write 4.56d-4 or 4.56e-4. '''&lt;br /&gt;
&lt;br /&gt;
'''While scilab variables and functions are case-sensitive, here we can use small d or capital D, or small e, or capital E. '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;%e'''&lt;br /&gt;
|'''The base of the natural logarithm is another important predefined numerical constant:'''&lt;br /&gt;
&lt;br /&gt;
'''percent e gives us result 2.7182818 as expected. '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;exp(1)'''&lt;br /&gt;
|'''We can achieve the same result with the &amp;quot;e x p&amp;quot; function:'''&lt;br /&gt;
&lt;br /&gt;
'''For instance: exp of 1:'''&lt;br /&gt;
&lt;br /&gt;
'''ans ='''&lt;br /&gt;
&lt;br /&gt;
'''2.7182818'''&lt;br /&gt;
&lt;br /&gt;
'''You can see both the answers are same'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;%e^2'''&lt;br /&gt;
|'''similarly,'''&lt;br /&gt;
&lt;br /&gt;
'''%e square gives the following answer'''&lt;br /&gt;
&lt;br /&gt;
'''ans ='''&lt;br /&gt;
&lt;br /&gt;
'''7.3890561'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;exp(2)'''&lt;br /&gt;
|'''which can also be achieved by typing exp of 2 as shown. '''&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;log10(1e-23)'''&lt;br /&gt;
|'''The command log means the natural logarithm of a number, that is, to the base e. '''&lt;br /&gt;
&lt;br /&gt;
'''Use log10 for taking the logarithm with respect to base 10. '''&lt;br /&gt;
&lt;br /&gt;
'''For example, log10(1e-23) gives the expected answer : ans = -23. '''&lt;br /&gt;
&lt;br /&gt;
'''We get complex numbers when taking logarithm of negative or complex numbers: you can check for yourself: log(-1) and log(%i)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''--&amp;gt;diary(0)'''&lt;br /&gt;
&lt;br /&gt;
|'''Now recall that we invoked a recording of all the typed commands into the file myrecord.txt through the diary command, now, let's see how to close that file and view it. '''&lt;br /&gt;
&lt;br /&gt;
'''For closing the file type,'''&lt;br /&gt;
&lt;br /&gt;
'''diary of zero'''&lt;br /&gt;
&lt;br /&gt;
'''This command will close and save the file myrecord.txt. '''&lt;br /&gt;
&lt;br /&gt;
'''Also recall that this file was created in current working directory, which in my case is my desktop. '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''Open file on the computer'''&lt;br /&gt;
|'''Let us open this file: do this using the Open-a-file icon on the top.'''&lt;br /&gt;
|-&lt;br /&gt;
|'''Slide'''&lt;br /&gt;
|'''Note that all transactions, both commands and the corresponding answers given by Scilab, have been saved into this file.'''&lt;br /&gt;
&lt;br /&gt;
'''We know that, while a program is being developed, one experiments a lot before arriving at suitable code. '''&lt;br /&gt;
&lt;br /&gt;
'''If the diary command is not used, it is difficult to keep a track of all the commands that did or didn't work. '''&lt;br /&gt;
&lt;br /&gt;
'''Thus,the diary is one way to address this issue. '''&lt;br /&gt;
&lt;br /&gt;
'''Now, no further transactions will be saved because we had closed the file using the command diary(0). '''&lt;br /&gt;
&lt;br /&gt;
'''If we need to save the session once again, we need to issue the diary command again. '''&lt;br /&gt;
&lt;br /&gt;
'''Remember, that the diary command will overwrite the file. '''&lt;br /&gt;
&lt;br /&gt;
'''So, if the file contains some useful information, then one should use some other file name in the diary command.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  &lt;br /&gt;
|'''Pause the video here and solve the second exercise given with the video.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  &lt;br /&gt;
|'''You may have noticed that the solution for the problem was not exactly zero. For more information on how to deal with this, type “help clean”.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''Slide'''&lt;br /&gt;
|'''In general, if you need help, then the 'help' command can be used. &lt;br /&gt;
&lt;br /&gt;
'''For example, “help chdir” gives detailed information on how to change the current working directory.'''&lt;br /&gt;
&lt;br /&gt;
'''Of course, we used the icon on the top.'''&lt;br /&gt;
&lt;br /&gt;
'''Let me close the help browser.'''&lt;br /&gt;
&lt;br /&gt;
'''The up - down arrow keys can been used to see the previously executed commands.'''&lt;br /&gt;
&lt;br /&gt;
'''While using the up - down arrows, you can stop at any command,and press the Enter key to execute it.'''&lt;br /&gt;
&lt;br /&gt;
'''You can edit the commands, if necessary. In fact, if you are looking for a previous command you typed, which started with the letter 'e', then type e, and then use up arrow key.'''&lt;br /&gt;
&lt;br /&gt;
'''Use the tab key to auto-complete the commad. It gives us all the available options to choose. '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''Slide'''&lt;br /&gt;
|'''Summary'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''In this tutorial we have learnt to : '''&lt;br /&gt;
&lt;br /&gt;
'''1.Use Scilab as a calculator with an example.'''&lt;br /&gt;
&lt;br /&gt;
'''2.Store the result in the default variable ans. '''&lt;br /&gt;
&lt;br /&gt;
'''3.Assign values to the variable using the equality sign.'''&lt;br /&gt;
&lt;br /&gt;
'''4.Check values in variables by typing the name of the variable separated by commas on the console.'''&lt;br /&gt;
&lt;br /&gt;
'''5.Check the current working directory using pwd command.'''&lt;br /&gt;
&lt;br /&gt;
'''6. Use diary command to save all commands typed on the console into a file.'''&lt;br /&gt;
&lt;br /&gt;
'''7.Define complex numbers, natural exponents and π using %i, %e and %pi respectively. '''&lt;br /&gt;
&lt;br /&gt;
'''8.Use help command for detailed information about any command.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''Slide'''&lt;br /&gt;
|'''This brings us to the end of this spoken tutorial on Getting Started with Scilab.'''&lt;br /&gt;
&lt;br /&gt;
There are many other functions in Scilab which will be covered in other spoken tutorials.'''&lt;br /&gt;
&lt;br /&gt;
* '''This spoken tutorial has been created by the Free and Open Source Software in Science and Engineering Education(FOSSEE). '''&lt;br /&gt;
&lt;br /&gt;
* '''More information on the FOSSEE project could beobtained from [http://fossee.in/ http://fossee.in] or [http://scilab.in/ http://scilab.in] '''&lt;br /&gt;
* '''Supported by the National Mission on Eduction through ICT, MHRD, Government of India. '''&lt;br /&gt;
* '''For more information, visit: [http://spoken-tutorial.org/NMEICT-Intro http://spoken-tutorial.org/NMEICT-Intro] '''&lt;br /&gt;
&lt;br /&gt;
'''This is Anuradha Amrutkar from IIT Bombay signing off.''' &lt;br /&gt;
&lt;br /&gt;
'''Thank you for joining. Goodbye.'''&lt;/div&gt;</summary>
		<author><name>Chandrika</name></author>	</entry>

	</feed>