.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-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos