File: calerf.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (36 lines) | stat: -rw-r--r-- 838 bytes parent folder | download
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
calerf            Scilab Group            Scilab Function            calerf
NAME
   calerf -  computes error functions.
  
CALLING SEQUENCE
    y = calerf(x,flag)
  
PARAMETERS
 x    : real vector
      
 flag : integer indicator 
      
 y    : real vector (of same size)
      
DESCRIPTION
    calerf(x,0) computes the error function:
  
                       /x
      y = 2/sqrt(pi) *|  exp(-t^2) dt
                      /0
    calerf(x,1) computes the complementary error function:
  
                       /inf
      y = 2/sqrt(pi) *|  exp(-t^2) dt
                      /x
      y= 1 - erf(x)
    calerf(x,2) computes the  scaled complementary error function:
  
   y=exp(x^2)*erfc(x)~(1/sqrt{pi})*1/x for large x.
EXAMPLE
 deff('y=f(t)','y=exp(-t^2)');
 calerf(1,0)
 2/sqrt(%pi)*intg(0,1,f)
SEE ALSO
   erf, erfc, calerf