<simulation>
<header>
<title>Tangente</title>
<title lang="english">Tangent</title>
<title lang="spanish">Tangente</title>
<author>Stéphane Mottelet, Guillaume Barbaud</author>
<date>Fri Sep 23 18:32:50 CEST 2005</date>
<keywords lang="french">simulation,scilab,xml</keywords>
<keywords lang="spanish">Simulación, Scilab, XML</keywords>
</header>
<notes lang="english">
<p>A simple example using a cross-shaped cursor constrained to lie on a given curve (a parabola).</p>
<p>By default there is no 'Parameter' menu because all parameter widgets are hidden.</p>
</notes>
<notes>
<p>Un exemple simple utilisant un curseur lié à une courbe donnée (ici une parabole).</p>
<p>Par défaut il n'y a pas de menu 'Paramètres' car tous les paramètres sont cachés.</p>
</notes>
<notes lang="spanish">
<p>Un ejemplo sencillo que utiliza un cursor unido a una curva dada (Aquí una parábola).</p>
<p>Por defecto no hay ningún menú "Parámetros" porque todos los parámetros no se pueden tocar.</p>
</notes>
<parameters><section>
<title lang="french">Paramètres</title>
<title lang="spanish">Parámetros</title>
<point label="p1" state="hidden"><name>Point numéro 1</name><name lang="english">Point 1</name><name lang="spanish">Puntos 1</name><x1 label="a">
<value>-0.5</value>
</x1><x2 label="y1">
<value>(-0.5-1)^2</value>
</x2><constraints label="constr">
<curve ref="f" />
</constraints></point>
</section></parameters>
<compute>
<defdomain1d label="x">
<name>Abscisse</name>
<name lang="english">Abscissa</name>
<name lang="spanish">Abscisa</name>
<interval steps="200">
<initialvalue>-2</initialvalue>
<finalvalue>2</finalvalue>
</interval>
</defdomain1d>
</compute>
<graphs>
<nonparametriccurve2d label="f">
<name>Fonction (x-1)²</name>
<name lang="english">(x-1)² Fonction </name>
<name lang="spanish">Función (x-1)²</name>
<refdomain1d ref="x" />
<x2 label="y">
<name>Ordonnée</name>
<name lang="english">Ordinate</name>
<name lang="spanish">Ordenada</name>
<value>(x-1).*(x-1)</value>
</x2>
</nonparametriccurve2d>
<nonparametriccurve2d label="fprime">
<name>Tangente de y=(x-1)² en x=a</name>
<name lang="english">Tangent of y=(x-1)² at x=a</name>
<name lang="spanish">Tangente de y=(x-1)² en x=a</name>
<refdomain1d ref="x" />
<x2 label="yp">
<name lang="english">Ordinate</name>
<name>Ordonnée</name>
<name lang="spanish">Ordenada</name>
<value>(a-1)**2+2*(a-1).*(x-a)</value>
</x2>
</nonparametriccurve2d>
<polyline label="barre">
<vertex x1="a" x2="-2">
<name>a</name>
<name lang="english">a</name>
<name lang="spanish">a</name>
</vertex>
<vertex x1="a" x2="10" />
</polyline>
<polyline label="barre2">
<vertex x1="-2" x2="(a-1)**2" />
<vertex x1="2" x2="(a-1)**2" />
</polyline>
</graphs>
<display>
<window>
<axis2d xmin="-2" xmax="2" ymin="-1" ymax="10">
<drawcurve2d ref="f" />
<drawcurve2d color="red" ref="fprime" />
<drawcurve2d color="green" ref="barre" />
<drawcurve2d color="green" ref="barre2" />
<drawpoints ref="p1" />
</axis2d>
</window>
</display>
</simulation>