.ModelicaTest.Math.Random.Internal.erfSimple

Information

Computes the error function erf(u) with a maximum error of 1.5e-7. Implementation is according to Abramowitz and Stegun (see Handbook of Mathematical Functions, page 299, equation 7.1.26).

Interface

function erfSimple
  extends Modelica.Icons.Function;
  input Real u;
  output Real y "y = 2/sqrt(pi)*Integral_0_u exp(-t^2)*dt";
end erfSimple;

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

Generated at 2024-11-26T19:26:15Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos