1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
|
<?xml version="1.0" encoding="utf-8"?>
<!--
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2008 - INRIA
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
*
-->
<refentry version="5.0-subset Scilab" xml:id="integrate" xml:lang="fr"
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">
<info>
<pubdate>$LastChangedDate$</pubdate>
</info>
<refnamediv>
<refname>integrate</refname>
<refpurpose>intégration numérique d'une expression</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Séquence d'appel</title>
<synopsis>x=integrate(expr,v,x0,x1 [,atol [,rtol]])</synopsis>
</refsynopsisdiv>
<refsection>
<title>Paramètres</title>
<variablelist>
<varlistentry>
<term>expr</term>
<listitem>
<para>chaîne de caractères, définit l'expression scilab</para>
</listitem>
</varlistentry>
<varlistentry>
<term>v</term>
<listitem>
<para>chaîne de caractères, le nom de la variable
d'intégration.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>x0</term>
<listitem>
<para>nombre réel, la borne inférieure de l'intégration.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>x1</term>
<listitem>
<para>vecteur de nombres réels, les bornes supérieures
d'intégration.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>atol</term>
<listitem>
<para>nombre réel positif (borne sur l'erreur absolue) par défaut :
1d-8</para>
</listitem>
</varlistentry>
<varlistentry>
<term>rtol</term>
<listitem>
<para>nombre réel positif (borne sur l'erreur relative) par défaut :
1.d-14</para>
</listitem>
</varlistentry>
<varlistentry>
<term>x</term>
<listitem>
<para>vecteur de nombres réels, la valeur de l'intégrale pour chaque
<literal>x1(i)</literal>.</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>Description</title>
<para>calcule :<subscript><inlinemediaobject>
<imageobject>
<imagedata>
<mml:math display="block"><mml:mi mathvariant="normal">x</mml:mi>
<mml:mrow> <mml:mrow> <mml:mo>(</mml:mo> <mml:mi
mathvariant="normal">i</mml:mi> <mml:mo>)</mml:mo> </mml:mrow>
<mml:mo>=</mml:mo> <mml:mrow> <mml:msubsup> <mml:mo>∫</mml:mo>
<mml:msub> <mml:mi mathvariant="normal">x</mml:mi>
<mml:mn>0</mml:mn> </mml:msub> <mml:mrow> <mml:msub> <mml:mi
mathvariant="normal">x</mml:mi> <mml:mn>1</mml:mn> </mml:msub>
<mml:mrow> <mml:mo>(</mml:mo> <mml:mi
mathvariant="normal">i</mml:mi> <mml:mo>)</mml:mo> </mml:mrow>
</mml:mrow> </mml:msubsup> <mml:mi mathvariant="normal">f</mml:mi>
</mml:mrow> </mml:mrow> <mml:mrow> <mml:mo>(</mml:mo> <mml:mi
mathvariant="normal">v</mml:mi> <mml:mo>)</mml:mo> </mml:mrow>
<mml:mi>d</mml:mi><mml:mi mathvariant="normal">v</mml:mi>
<mml:annotation
mml:encoding="StarMath 5.0">x(i)=int_{x_0}^{x_1(i)}
f(v)dv</mml:annotation></mml:math>
</imagedata>
</imageobject>
</inlinemediaobject></subscript> pour
<literal>i=1:size(x1,'*')</literal></para>
<para>où <inlinemediaobject>
<imageobject>
<imagedata>
<mml:math display="block"><mml:mi>f</mml:mi> <mml:mo>(</mml:mo>
<mml:mi>v</mml:mi> <mml:mo>)</mml:mo></mml:math>
</imagedata>
</imageobject>
</inlinemediaobject> est donnée par l'expression
<literal>expr</literal></para>
<para>L'approximation satisfait (on l'espère) l'affirmation suivante sur
l'erreur :</para>
<para><literal>abs(I-x)<= max(atol,rtol*abs(I))</literal></para>
<para>où <literal>I</literal> représente la valeur exacte de
l'intégrale.</para>
</refsection>
<refsection>
<title>Restriction</title>
<para>L'expression fournie ne doit pas référencer de variables dont le nom
commence avec un <literal>%</literal>.</para>
</refsection>
<refsection>
<title>Exemples</title>
<programlisting role="example"><![CDATA[
x0=0;x1=0:0.1:2*%pi;
X=integrate('sin(x)','x',x0,x1);
norm(cos(x1)-(1-X))
x1=-10:0.1:10;
X=integrate(['if x==0 then 1,';
'else sin(x)/x,end'],'x',0,x1)
]]></programlisting>
</refsection>
<refsection>
<title>Voir Aussi</title>
<simplelist type="inline">
<member><link linkend="intg">intg</link></member>
<member><link linkend="inttrap">inttrap</link></member>
<member><link linkend="intsplin">intsplin</link></member>
<member><link linkend="ode">ode</link></member>
</simplelist>
</refsection>
</refentry>
|