.Modelica_Noise.ToModelicaTest.Math.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
  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
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-05-14T18:15:56Z by OpenModelicaOpenModelica 1.22.4 using GenerateDoc.mos