~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/functions/help/pt_BR/lib.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="ISO-8859-1"?>
2
 
<!--
3
 
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
 
 * Copyright (C) XXXX-2008 - INRIA
5
 
 * 
6
 
 * This file must be used under the terms of the CeCILL.
7
 
 * This source file is licensed as described in the file COPYING, which
8
 
 * you should have received as part of this distribution.  The terms
9
 
 * are also available at    
10
 
 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11
 
 *
12
 
 -->
13
 
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="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="lib" xml:lang="en">
14
 
  <refnamediv>
15
 
    <refname>lib</refname>
16
 
    <refpurpose>defini��o de biblioteca</refpurpose>
17
 
  </refnamediv>
18
 
  <refsynopsisdiv>
19
 
    <title>Seq��ncia de Chamamento</title>
20
 
    <synopsis>xlib = lib('lib-dir')</synopsis>
21
 
  </refsynopsisdiv>
22
 
  <refsection>
23
 
    <title>Parameters</title>
24
 
    <variablelist>
25
 
      <varlistentry>
26
 
        <term>lib-dir</term>
27
 
        <listitem>
28
 
          <para>string</para>
29
 
        </listitem>
30
 
      </varlistentry>
31
 
    </variablelist>
32
 
  </refsection>
33
 
  <refsection>
34
 
    <title>Descri��o</title>
35
 
    <para>
36
 
      <literal>lib-dir</literal> � um string definindo um diret�rio que
37
 
      cont�m arquivos de fun��es compiladas do Scilab
38
 
      (<literal>.bin</literal>).
39
 
    </para>
40
 
    <para>
41
 
      Em adi��o a esses arquivos <literal>lib-dir</literal> deve conter um
42
 
      arquivo chamado <literal>names</literal>, que cont�m os nomes das fun��es
43
 
      definidas em <literal>lib-dir</literal>. Com sucesso, todas as fun��es em
44
 
      <literal>lib-dir</literal> estar�o dispon�veis dentro do Scilab. Elas s�o
45
 
      carregadas em demanda quando s�o chamadas pela primeira vez.
46
 
    </para>
47
 
    <para>Arquivos bin�rios podem ser criados de dentro do Scilab com o
48
 
      comando <literal>save</literal>.
49
 
    </para>
50
 
    <para>As bibliotecas padr�es do Scilab s�o definidas utilizando-se
51
 
      <literal>lib</literal> nos subdiret�rios
52
 
      <literal>SCI/modules/*/macros/*</literal>.
53
 
    </para>
54
 
    <para>Uma vari�vel biblioteca geralmente � salva para carregamento
55
 
      posterior, tanto on-line quanto do arquivo de inicializa��o espec�fico do
56
 
      usu�rio (ver startup).
57
 
    </para>
58
 
  </refsection>
59
 
  <refsection>
60
 
    <title>Restri��es</title>
61
 
    <para>O Scilab assume tacitamente que cada arquivo xxxx.bin define uma
62
 
      vari�vel chamada <literal>xxxx</literal>.
63
 
    </para>
64
 
  </refsection>
65
 
  <refsection>
66
 
    <title>Exemplos</title>
67
 
    <programlisting role="example"><![CDATA[ 
68
 
//define some variables
69
 
function z = myplus(x, y), z = x + y,endfunction
70
 
function z = yourplus(x, y), x = x - y,endfunction
71
 
A=1:10;
72
 
 
73
 
//create the *.bin files in libdir
74
 
libdir=TMPDIR
75
 
save(libdir + '/myplus.bin', myplus);
76
 
save(libdir + '/yourplus.bin', yourplus);
77
 
save(libdir + '/A.bin', A);
78
 
 
79
 
//create the name file
80
 
mputl(['myplus';'yourplus';'A'],TMPDIR+'/names');
81
 
 
82
 
//build the library containing myplus and yourplus
83
 
xlib = lib(libdir+'/')
84
 
 
85
 
//erase the variables
86
 
clear myplus yourplus A
87
 
 
88
 
//Automatic loading and execution
89
 
myplus(1,2)
90
 
 
91
 
A
92
 
 ]]></programlisting>
93
 
  </refsection>
94
 
  <refsection role="see also">
95
 
    <title>Ver Tamb�m</title>
96
 
    <simplelist type="inline">
97
 
      <member>
98
 
        <link linkend="library">library</link>
99
 
      </member>
100
 
      <member>
101
 
        <link linkend="genlib">genlib</link>
102
 
      </member>
103
 
      <member>
104
 
        <link linkend="save">save</link>
105
 
      </member>
106
 
      <member>
107
 
        <link linkend="deff">deff</link>
108
 
      </member>
109
 
      <member>
110
 
        <link linkend="exec">exec</link>
111
 
      </member>
112
 
      <member>
113
 
        <link linkend="whereis">whereis</link>
114
 
      </member>
115
 
    </simplelist>
116
 
  </refsection>
117
 
</refentry>