Coverity: cacsd module memory errors fixed
[scilab.git] / scilab / modules / graphics / help / fr_FR / 3d_plot / eval3d.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="fr" xml:id="eval3d">
3     <refnamediv>
4         <refname>eval3d</refname>
5         <refpurpose>valeurs d'une fonction sur une grille  </refpurpose>
6     </refnamediv>
7     <refsynopsisdiv>
8         <title>Séquence d'appel</title>
9         <synopsis>[z]=eval3d(fun,x,[y])</synopsis>
10     </refsynopsisdiv>
11     <refsection>
12         <title>Paramètres</title>
13         <variablelist>
14             <varlistentry>
15                 <term>fun  </term>
16                 <listitem>
17                     <para>fonction acceptant des arguments vectoriels
18                     </para>
19                 </listitem>
20             </varlistentry>
21             <varlistentry>
22                 <term>x,y  </term>
23                 <listitem>
24                     <para>
25                         2 vecteurs de tailles (1,n1) et (1,n2) (par défaut <literal>y=x</literal>).
26                     </para>
27                 </listitem>
28             </varlistentry>
29             <varlistentry>
30                 <term>z  </term>
31                 <listitem>
32                     <para>matrice de taille (n1,n2).
33                     </para>
34                 </listitem>
35             </varlistentry>
36         </variablelist>
37     </refsection>
38     <refsection>
39         <title>Description</title>
40         <para>
41             Cette fonction renvoie une matrice <literal>z(n1,n2)</literal> où <literal>z(i,j)=fun(x(i),y(j))</literal>. 
42             Si la fonction <literal>fun</literal> n'accepte pas d'arguments vectoriels utiliser
43             la primitive <literal>feval</literal>.
44         </para>
45     </refsection>
46     <refsection>
47         <title>Exemples</title>
48         <programlisting role="example"><![CDATA[ 
49 x=-5:5;y=x;
50 deff('[z]=f(x,y)',['z= x.*y']);
51 z=eval3d(f,x,y);
52 plot3d(x,y,z);
53
54 deff('[z]=f(x,y)',['z= x*y']);
55 z=feval(x,y,f);
56 plot3d(x,y,z);
57  ]]></programlisting>
58         <scilab:image>x=-5:5;y=x;
59             deff('[z]=f(x,y)',['z= x.*y']);
60             z=eval3d(f,x,y);
61             plot3d(x,y,z);
62         </scilab:image>
63         
64     </refsection>
65     <refsection role="see also">
66         <title>Voir aussi</title>
67         <simplelist type="inline">
68             <member>
69                 <link linkend="feval">feval</link>
70             </member>
71         </simplelist>
72     </refsection>
73 </refentry>