erf -- Compute the Error Function

SYNOPSIS

 #include <lcmath.h>

 double erf(double x);
 

DESCRIPTION

erf computes the error function of its argument x. The value returned by erf is defined by this equation:

RETURN VALUE

erf returns the error function of its argument.

EXAMPLE

This example computes the error function using erf:
  #include <stdio.h>
  #include <lcmath.h>

  #define SVECTOR .7854

  main()
  {
     double erfv;
     erfv = erf(SVECTOR);
     printf("erf(%f) = %fn", SVECTOR, erfv);
  }

 

RELATED FUNCTIONS

erfc, _matherr

SEE ALSO

Mathematical Functions

Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.