13
13
<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" version="5.0-subset Scilab" xml:id="inttrap" xml:lang="en">
15
<refname>inttrap</refname>
16
<refpurpose>integration of experimental data by trapezoidal
21
<title>Calling Sequence</title>
22
<synopsis>v = inttrap([x,] s)</synopsis>
25
<title>Arguments</title>
30
<para>vector of increasing x coordinate data. Default value is
31
<literal>1:size(s,'*')</literal>
38
<para>vector of y coordinate data</para>
44
<para>value of the integral</para>
50
<title>Description</title>
51
<para>Computes:</para>
53
<literal>s(i)=f(x(i))</literal> and <literal>x0=x(1)</literal>,
54
<literal>x1=x(n)</literal>
57
where <literal>f</literal> is a function described by a set of experimental values.
59
<para>Between mesh points function is interpolated linearly.</para>
62
<title>Examples</title>
63
<programlisting role="example"><![CDATA[
15
<refname>inttrap</refname>
16
<refpurpose>integration of experimental data by trapezoidal
21
<title>Calling Sequence</title>
22
<synopsis>v = inttrap([x,] s)</synopsis>
25
<title>Arguments</title>
30
<para>vector of increasing x coordinate data. Default value is
31
<literal>1:size(s,'*')</literal>
38
<para>vector of y coordinate data</para>
44
<para>value of the integral</para>
50
<title>Description</title>
51
<para>Computes:</para>
53
<literal>s(i)=f(x(i))</literal> and <literal>x0=x(1)</literal>,
54
<literal>x1=x(n)</literal>
57
where <literal>f</literal> is a function described by a set of experimental values.
59
<para>Between mesh points function is interpolated linearly.</para>
62
<title>Examples</title>
63
<programlisting role="example"><![CDATA[
66
66
]]></programlisting>
68
<refsection role="see also">
69
<title>See Also</title>
70
<simplelist type="inline">
72
<link linkend="intg">intg</link>
75
<link linkend="intc">intc</link>
78
<link linkend="intl">intl</link>
81
<link linkend="integrate">integrate</link>
84
<link linkend="intsplin">intsplin</link>
87
<link linkend="splin">splin</link>
68
<refsection role="see also">
69
<title>See Also</title>
70
<simplelist type="inline">
72
<link linkend="intg">intg</link>
75
<link linkend="intc">intc</link>
78
<link linkend="intl">intl</link>
81
<link linkend="integrate">integrate</link>
84
<link linkend="intsplin">intsplin</link>
87
<link linkend="splin">splin</link>