Add also the examples in core help pages in the russian help page (port of modificati...
[scilab.git] / scilab / modules / core / help / en_US / keywords / ans.xml
1 <?xml version="1.0" encoding="UTF-8"?>
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:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="ans">
3     <refnamediv>
4         <refname>ans</refname>
5         <refpurpose>answer</refpurpose>
6     </refnamediv>
7     <refsection>
8         <title>Description</title>
9         <para>
10             <literal>ans</literal> means "answer".
11             Variable <literal>ans</literal> is created automatically when expressions 
12             are not assigned. <literal>ans</literal> contains the last unassigned evaluated expression.
13         </para>
14         <para>
15             Variable <literal>ans</literal> is not protected by <function>predef</function>.
16         </para>
17     </refsection>
18     <refsection>
19         <title>Examples</title>
20         <programlisting role="example"><![CDATA[
21 2+2
22 ans // 4
23 ans=10 // 10
24 clear ans
25 a=2+2;
26 isdef("ans") // F
27  ]]></programlisting>
28     </refsection>
29     <refsection role="see also">
30         <title>See Also</title>
31         <simplelist type="inline">
32             <member>
33                 <link linkend="predef">predef</link>
34             </member>
35         </simplelist>
36     </refsection>
37 </refentry>