WOLFRAM SYSTEM MODELER

erfc

Complementary error function erfc(u) = 1 - erf(u)

Wolfram Language

In[1]:=
SystemModel["Modelica.Math.Special.erfc"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Syntax

Special.erfc(u);

Description

This function computes the complementary error function erfc(u) = 1 - erf(u) with a relative precision of about 1e-15. The implementation utilizes the formulation of the Boost library (53-bit implementation of erf.hpp developed by John Maddock). Plot of the function:

If u is large and erf(u) is subtracted from 1.0, the result is not accurate. It is then better to use erfc(u). For more details, see Wikipedia.

Example

erfc(0)    // = 1
erfc(10)   // = 0
erfc(0.5)  // = 0.4795001221869534

See also

erf, erfInv, erfcInv.

Syntax

y = erfc(u)

Inputs (1)

u

Type: Real

Description: Input argument

Outputs (1)

y

Type: Real

Description: = 1 - erf(u)

Revisions

Date Description
June 22, 2015
DLR logo Initial version implemented by A. Klöckner, F. v.d. Linden, D. Zimmer, M. Otter.
DLR Institute of System Dynamics and Control