~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/elementary/integrate.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH integrate 1 "April 1993" "Scilab Group" "Scilab Function"
2
 
.so ../sci.an
3
 
.SH NAME
4
 
integrate - integration by quadrature
5
 
.SH CALLING SEQUENCE
6
 
.nf
7
 
[x]=integrate(expr,v,x0,x1 [,ea [,er]])
8
 
.fi
9
 
.SH PARAMETERS
10
 
.TP 10
11
 
expr
12
 
: external Scilab
13
 
.TP 10
14
 
v
15
 
: string (integration variable)
16
 
.TP 10
17
 
x0,x1
18
 
: real numbers (bounds of integration)
19
 
.TP 10
20
 
ea,er
21
 
: real numbers (absolute  error bound) Default value: 0
22
 
.TP 10
23
 
er
24
 
: real number, (relative error bound) Default value: 1.d-8
25
 
.SH DESCRIPTION
26
 
computes :
27
 
.IG
28
 
.nf
29
 
                      /x1
30
 
                     [
31
 
                 x = I  f(v)dv
32
 
                     ]
33
 
                    /x0
34
 
.fi
35
 
.FI
36
 
.LA $$ x = \int_{x_0}^{x_1} f(v)dv $$
37
 
 
38
 
The evaluation hopefully satisfies following claim for accuracy:
39
 
\fVabs(I-x)<= max(ea,er*abs(I))\fR where I stands for the
40
 
exact value of the integral.
41
 
 
42
 
.SH EXAMPLE
43
 
.nf
44
 
integrate('sin(x)','x',0,%pi)
45
 
integrate(['if x==0 then 1,';
46
 
           'else sin(x)/x,end'],'x',0,%pi)
47
 
.fi
48
 
.SH SEE ALSO
49
 
intg, inttrap, intsplin, ode
50