~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/elementary/calerf.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
calerf            Scilab Group            Scilab Function            calerf
 
2
NAME
 
3
   calerf -  computes error functions.
 
4
  
 
5
CALLING SEQUENCE
 
6
    y = calerf(x,flag)
 
7
  
 
8
PARAMETERS
 
9
 x    : real vector
 
10
      
 
11
 flag : integer indicator 
 
12
      
 
13
 y    : real vector (of same size)
 
14
      
 
15
DESCRIPTION
 
16
    calerf(x,0) computes the error function:
 
17
  
 
18
                       /x
 
19
      y = 2/sqrt(pi) *|  exp(-t^2) dt
 
20
                      /0
 
21
    calerf(x,1) computes the complementary error function:
 
22
  
 
23
                       /inf
 
24
      y = 2/sqrt(pi) *|  exp(-t^2) dt
 
25
                      /x
 
26
      y= 1 - erf(x)
 
27
    calerf(x,2) computes the  scaled complementary error function:
 
28
  
 
29
   y=exp(x^2)*erfc(x)~(1/sqrt{pi})*1/x for large x.
 
30
EXAMPLE
 
31
 deff('y=f(t)','y=exp(-t^2)');
 
32
 calerf(1,0)
 
33
 2/sqrt(%pi)*intg(0,1,f)
 
34
SEE ALSO
 
35
   erf, erfc, calerf    
 
36