1
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="dot" xml:lang="en">
5
<refpurpose>(.) symbol</refpurpose>
8
<title>Calling Sequence</title>
18
<title>Description</title>
23
<para>Dot is used to mark decimal point for numbers : 3.25 and
29
<term>.<op></term>
32
used in conjunction with other operator symbols (<literal>*/ \ ^ '</literal>) to form other operators. Element-by-element
33
multiplicative operations are obtained using <literal> .* , .^ , ./ , .\</literal>
34
or <literal>.'</literal>. For example, <literal>C = A ./ B</literal> is
35
the matrix with elements <literal>c(i,j) = a(i,j)/b(i,j)</literal>. Kronecker product
36
is noted <literal>.*.</literal> . Note that when dot follows a number it is always a part
37
of the number so <literal>2.*x</literal> is evaluated as <literal>2.0*x</literal> and <literal>2 .*x</literal> is evaluated
38
as <literal>(2).*x</literal>.
45
<para>Continuation mark. Two or more dots at the end of a
46
line (or followed by a comment) causes the following line to be a
49
<para>Continuation lines are handled by a preprocessor which builds
50
a long logical line from a sequence of continuation lines. So the
51
continuation marks can be used to cut a line at any point.
54
The following function <literal>foo</literal>:
56
<programlisting role=""><![CDATA[
5
<refpurpose>(.) symbol</refpurpose>
8
<title>Calling Sequence</title>
18
<title>Description</title>
23
<para>Dot is used to mark decimal point for numbers : 3.25 and
29
<term>.<op></term>
32
used in conjunction with other operator symbols (<literal>*/ \ ^ '</literal>) to form other operators. Element-by-element
33
multiplicative operations are obtained using <literal> .* , .^ , ./ , .\</literal>
34
or <literal>.'</literal>. For example, <literal>C = A ./ B</literal> is
35
the matrix with elements <literal>c(i,j) = a(i,j)/b(i,j)</literal>. Kronecker product
36
is noted <literal>.*.</literal> . Note that when dot follows a number it is always a part
37
of the number so <literal>2.*x</literal> is evaluated as <literal>2.0*x</literal> and <literal>2 .*x</literal> is evaluated
38
as <literal>(2).*x</literal>.
45
<para>Continuation mark. Two or more dots at the end of a
46
line (or followed by a comment) causes the following line to be a
49
<para>Continuation lines are handled by a preprocessor which builds
50
a long logical line from a sequence of continuation lines. So the
51
continuation marks can be used to cut a line at any point.
54
The following function <literal>foo</literal>:
56
<programlisting role=""><![CDATA[
62
62
]]></programlisting>
63
<para>is equivalent to:</para>
64
<programlisting role=""><![CDATA[
63
<para>is equivalent to:</para>
64
<programlisting role=""><![CDATA[
70
70
]]></programlisting>
71
<para>The logical line formed by physical line 3 and physical line 4
72
is built as if it was entirely written in the physical line 4 while
73
physical line 3 would be empty. This is done this way because
74
continuation marks can be put anywhere even inside an
82
<title>Examples</title>
83
<programlisting role="example"><![CDATA[
71
<para>The logical line formed by physical line 3 and physical line 4
72
is built as if it was entirely written in the physical line 4 while
73
physical line 3 would be empty. This is done this way because
74
continuation marks can be put anywhere even inside an
82
<title>Examples</title>
83
<programlisting role="example"><![CDATA[
98
98
]]></programlisting>
100
<refsection role="see also">
101
<title>See Also</title>
102
<simplelist type="inline">
104
<link linkend="star">star</link>
107
<link linkend="hat">hat</link>
110
<link linkend="slash">slash</link>
113
<link linkend="backslash">backslash</link>
100
<refsection role="see also">
101
<title>See Also</title>
102
<simplelist type="inline">
104
<link linkend="star">star</link>
107
<link linkend="hat">hat</link>
110
<link linkend="slash">slash</link>
113
<link linkend="backslash">backslash</link>