Coverity: cacsd module memory errors fixed
[scilab.git] / scilab / modules / graphics / help / pt_BR / 3d_plot / eval3d.xml
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) INRIA - Serge Steer
5  * 
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <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" xmlns:scilab="http://www.scilab.org" xml:id="eval3d" xml:lang="pt">
17     <refnamediv>
18         <refname>eval3d</refname>
19         <refpurpose>valores de uma função em um grid</refpurpose>
20     </refnamediv>
21     <refsynopsisdiv>
22         <title>Seqüência de Chamamento</title>
23         <synopsis>[z]=eval3d(fun,x,[y])</synopsis>
24     </refsynopsisdiv>
25     <refsection>
26         <title>Parâmetros</title>
27         <variablelist>
28             <varlistentry>
29                 <term>fun</term>
30                 <listitem>
31                     <para>função que aceita vetores como argumentos </para>
32                 </listitem>
33             </varlistentry>
34             <varlistentry>
35                 <term>x,y</term>
36                 <listitem>
37                     <para>2 vetores de tamanhos (1,n1) e (1,n2). (valor padrão para
38                         <literal>y</literal> : <literal>y=x</literal>).
39                     </para>
40                 </listitem>
41             </varlistentry>
42             <varlistentry>
43                 <term>z</term>
44                 <listitem>
45                     <para>matriz de tamanho (n1,n2).</para>
46                 </listitem>
47             </varlistentry>
48         </variablelist>
49     </refsection>
50     <refsection>
51         <title>Descrição</title>
52         <para>
53             Esta função retorna uma matriz <literal>z(n1,n2)</literal>.
54             <literal>z(i,j)=fun(x(i),y(j))</literal>. Se a função
55             <literal>fun</literal> não aceitar argumentos do tipo vetor, use a
56             primitiva <literal>feval</literal>.
57         </para>
58     </refsection>
59     <refsection>
60         <title>Exemplos</title>
61         <programlisting role="example"><![CDATA[ 
62 x=-5:5;y=x;
63 deff('[z]=f(x,y)',['z= x.*y']);
64 z=eval3d(f,x,y);
65 plot3d(x,y,z);
66
67 deff('[z]=f(x,y)',['z= x*y']);
68 z=feval(x,y,f);
69 plot3d(x,y,z);
70  ]]></programlisting>
71     </refsection>
72     <refsection role="see also">
73         <title>Ver Também</title>
74         <simplelist type="inline">
75             <member>
76                 <link linkend="feval">feval</link>
77             </member>
78         </simplelist>
79     </refsection>
80 </refentry>