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

« back to all changes in this revision

Viewing changes to modules/functions/help/pt_BR/libraries/library.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) ????-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:ns3="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="library" xml:lang="en">
 
14
    <refnamediv>
 
15
        <refname>library</refname>
 
16
        <refpurpose>descri��o de tipo de dado bibilioteca</refpurpose>
 
17
    </refnamediv>
 
18
    <refsynopsisdiv>
 
19
        <title>Seq��ncia de Chamamento</title>
 
20
        <synopsis/>
 
21
    </refsynopsisdiv>
 
22
    <refsection>
 
23
        <title>Descri��o</title>
 
24
        <para>Uma bibilioteca � um tipo de dado com n�mero 14. Cont�m um nome de
 
25
            endere�o e um conjunto de nomes. Permite o carregamento autom�tico de
 
26
            vari�veis utilizando o seguinte algoritmo:
 
27
        </para>
 
28
        <para>Suponha o usu�rio Scilab referencie a vari�vel de nome
 
29
            <literal>foo</literal>. O Scilab procura primeiro se
 
30
            <literal>foo</literal> � o nome de uma primitiva, ou de uma vari�vel j�
 
31
            definida. Se na� for, procura por <literal>foo</literal> seq�encialmente
 
32
            (a mais nova) em toda a biblioteca definida .
 
33
        </para>
 
34
        <para>
 
35
            Suponha que <literal>foo</literal> pertence ao conjunto de nomes da
 
36
            biblioteca <literal>xlib</literal>. Ent�o o Scilab tenta carregar o
 
37
            arquivo &lt;xlib-path-name&gt;/foo.bin. &lt;xlib-path-name&gt;/foo.bin
 
38
            deve ter sido criado utilizando-se a fun��o
 
39
            <literal>save</literal>.
 
40
        </para>
 
41
        <para>Bibliotecas geralmente s�o utilizadas para cole��es de fun��es, mas
 
42
            tamb�m podem ser utilizadas para cole��es de vari�veis Scilab.
 
43
        </para>
 
44
        <para>Se uma fun��o estiver definida em mais de uma biblioteca, o
 
45
            algoritmo de busca padr�o carrega aquela contida na mais nova. � poss�vel
 
46
            for�ar o uso de uma biblioteca espec�fica utilizando a nota��o de
 
47
            ponto:
 
48
        </para>
 
49
        <para>
 
50
            <literal>xlib.foo</literal> carrega a vari�vel
 
51
            <literal>foo</literal> contida em <literal>xlib</literal>, if
 
52
            <literal>foo</literal> for uma fun��o e <literal>xlib.foo(args)</literal>
 
53
            executa as fun��es.
 
54
        </para>
 
55
    </refsection>
 
56
    <refsection>
 
57
        <title>Exemplos</title>
 
58
        <programlisting role="example"><![CDATA[ 
 
59
// elemlib � uma biblioteca predefinida
 
60
elementary_functionlib //exibindo o conte�do da biblioteca
 
61
A=rand(3,3);
 
62
cosm(A) //carregando cosm e executando-o
 
63
whos -name cosm // agora, cosm � uma vari�vel
 
64
elementary_functionlib.sinm //carregando sinm da biblioteca
 
65
elementary_functionlib.cosm(A) //carregando novamente cosm e executando-o
 
66
 ]]></programlisting>
 
67
    </refsection>
 
68
    <refsection role="see also">
 
69
        <title>Ver Tamb�m</title>
 
70
        <simplelist type="inline">
 
71
            <member>
 
72
                <link linkend="lib">lib</link>
 
73
            </member>
 
74
            <member>
 
75
                <link linkend="string">string</link>
 
76
            </member>
 
77
            <member>
 
78
                <link linkend="load">load</link>
 
79
            </member>
 
80
            <member>
 
81
                <link linkend="save">save</link>
 
82
            </member>
 
83
        </simplelist>
 
84
    </refsection>
 
85
</refentry>