Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Special Functions > erf

erf

The error function.

Syntax

y = erf(x)

Arguments

x

vector or matrix

y

vector or matrix (of same size than x)

Description

erf computes the error function:

Examples

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

x = [1+2*%i, -1+2*%i, 1e-6+2e-6*%i,0+2*%i];
a=erf(x)

// Equivalent to
1-erfc(x)

Algorithms

This function is based on the Faddeeva package library.

See also

  • calerf — computes error functions.
  • cdfnor — cumulative distribution function normal distribution
  • erfc — The complementary error function.
  • erfcx — scaled complementary error function.
  • erfinv — inverse error function

History

VersionDescription
5.5.0 Function erf supports complex arguments
Report an issue
<< dlgamma Special Functions erfc >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 19:26:49 CET 2018