<simulation>
<header>
<title lang="french">Mélange de cosinus</title>
<title lang="spanish">Mezcla de cosenos</title>
<author>Stéphane Mottelet; Guillaume Barbaud</author>
<keywords lang="french">simulation,scilab,xml</keywords>
<keywords lang="spanish">Simulación, Scilab, XML</keywords>
</header>
<parameters><section>
<title lang="french">Centres des cosinus(r)</title>
<title lang="spanish">Centros de los cosenos (r)</title>
<point label="p1" state="disabled"><name lang="french">Point numéro 1</name><name lang="spanish">Punto número 1</name><x1 label="x1">
<value>1</value>
</x1><x2 label="y1">
<value>2</value>
</x2>
<constraints label="constr1">
<inequality>x1-5</inequality>
<inequality>-x1-5</inequality>
<inequality>y1-5</inequality>
<inequality>-y1-5</inequality>
</constraints>
</point>
<point label="p2" state="disabled"><name lang="french">Point numéro 2</name><name lang="spanish">Punto número 2</name>
<x1 label="x2">
<value>2</value>
</x1><x2 label="y2">
<value>3</value>
</x2>
<constraints label="constr2">
<inequality>x2-5</inequality>
<inequality>-x2-5</inequality>
<inequality>y2-5</inequality>
<inequality>-y2-5</inequality>
</constraints>
</point>
<point label="p3" state="disabled"><name lang="french">Point numéro 3</name><name lang="spanish">Punto número 3</name><x1 label="x3">
<value>3</value>
</x1><x2 label="y3">
<value>3</value>
</x2>
<constraints label="constr3">
<inequality>x3-5</inequality>
<inequality>-x3-5</inequality>
<inequality>y3-5</inequality>
<inequality>-y3-5</inequality>
</constraints>
</point>
<scalar increment="1" label="az" max="360" min="0" period="100"><name lang="french">Azimuth</name><name lang="spanish">Acimut</name><value>45</value></scalar>
<scalar increment="1" label="el" max="90" min="-90"><name lang="french">Elévation</name><name lang="spanish">Elevación</name><value>45</value></scalar>
</section></parameters>
<compute>
<defdomain2d label="carre">
<name lang="french">Carré unité</name>
<name lang="spanish">Cuadrado unidad</name>
<rectangle>
<defdomain1d label="x">
<name lang="french">x</name>
<name lang="spanish">x</name>
<interval steps="30">
<initialvalue>-5</initialvalue>
<finalvalue>5</finalvalue>
</interval>
</defdomain1d>
<defdomain1d label="y">
<name lang="french">y</name>
<name lang="spanish">y</name>
<interval steps="30">
<initialvalue>-5</initialvalue>
<finalvalue>5</finalvalue>
</interval>
</defdomain1d>
</rectangle>
</defdomain2d>
</compute>
<graphs>
<nonparametricsurface label="mysurf" dependencies="x1 y1 x2 y2 x3 y3">
<refdomain2d ref="carre" />
<x3 label="z">
<name lang="french">z</name>
<name lang="spanish">z</name>
<value>cos(sqrt((x-x1).^2+(y-y1).^2))+
cos(sqrt((x-x2).^2+(y-y2).^2))+
cos(sqrt((x-x3).^2+(y-y3).^2))</value>
</x3>
</nonparametricsurface>
</graphs>
<display>
<window colormap="jet" splitx="2">
<title lang="french">Allure de la surface</title>
<title lang="spanish">Pinta de la superficie</title>
<axis2d position="origin" iso="yes" cmin="-4" cmax="4" colorbar="on">
<drawsurface ref="mysurf" shading="interp" />
<drawpoints ref="p1 p2 p3" />
</axis2d>
<axis3d azimuth="az" elevation="el" iso="yes">
<drawsurface ref="mysurf" mode="wireframe" />
</axis3d>
</window>
</display>
</simulation>