1
calerf Scilab Group Scilab Function calerf
3
calerf - computes error functions.
11
flag : integer indicator
13
y : real vector (of same size)
16
calerf(x,0) computes the error function:
19
y = 2/sqrt(pi) *| exp(-t^2) dt
21
calerf(x,1) computes the complementary error function:
24
y = 2/sqrt(pi) *| exp(-t^2) dt
27
calerf(x,2) computes the scaled complementary error function:
29
y=exp(x^2)*erfc(x)~(1/sqrt{pi})*1/x for large x.
31
deff('y=f(t)','y=exp(-t^2)');
33
2/sqrt(%pi)*intg(0,1,f)