File: calerf.man

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 (56 lines) | stat: -rw-r--r-- 1,066 bytes parent folder | download | duplicates (2)
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
.TH calerf 3 "December 1994" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
calerf -  computes error functions.
.SH CALLING SEQUENCE
 y = calerf(x,flag)
.SH PARAMETERS
.TP
x
: real vector
.TP
flag
: integer indicator 
.TP
y
: real vector (of same size)
.SH DESCRIPTION
 \fVcalerf(x,0)\fR computes the error function:
.IG
.nf
                      /x
     y = 2/sqrt(pi) *|  exp(-t^2) dt
                     /0
.fi
.FI
.LA $$ y = 2/\sqrt{\pi} \int_0^x exp(-t^2)dt $$
 \fVcalerf(x,1)\fR computes the complementary error function:
.IG
.nf
                      /inf
     y = 2/sqrt(pi) *|  exp(-t^2) dt
                     /x
     y= 1 - erf(x)
.fi
.FI
.LA $$ y = 2/\sqrt{\pi} \int_x^\infty exp(-t^2)dt $$
.LA $$y=1-erf(x) $$
 \fVcalerf(x,2)\fR computes the  scaled complementary error function:
.IG
.nf
 	y=exp(x^2)*erfc(x)~(1/sqrt{pi})*1/x for large x.
.fi
.FI
.LA $$ y = exp(x^2) erfc(x) ~ {1 \over x sqrt{\pi} } \mbox{for large x}$$
.SH EXAMPLE
.nf
deff('y=f(t)','y=exp(-t^2)');
calerf(1,0)
2/sqrt(%pi)*intg(0,1,f)
.fi
.SH SEE ALSO
erf, erfc, calerf