Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - Русский - 日本語
Scilab Help >> Special Functions > calerf

calerf

computes error functions.

Arguments

x

real vector or matrix

flag

integer indicator

y

real vector or matrix (of same size than x)

Description

calerf(x,0) computes the error function erf(x)

calerf(x,1) computes the complementary error function erfc(x)

calerf(x,2) computes the scaled complementary error function erfcx(x)

Examples

deff('y=f(t)','y=exp(-t^2)');
calerf(1,0)
2/sqrt(%pi)*intg(0,1,f)

Algorithms

This function is based on the Faddeeva package library.

See Also

  • erf — The error function.
  • erfc — The complementary error function.
  • erfcx — scaled complementary error function.

History

VersionDescription
5.5.0 The calerf function is based on the fadddeeva package
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:27:37 CEST 2016