Forum: ARM programming with GCC/GNU tools Error function erf(x) implementation in C.

Author: Tony Montana (Company: El Padrino Inc.) (polux)
Posted on:

Rate this post
0 useful
not useful
Hi, does anyone knows where I can find a good and simple implementation 
of erf(x) for C or C++?, because I need to convert it to Verilog A....

Author: Nikolaos Kavvadias (Company: http://www.nkavvadias.com) (nikolaos_k)
Posted on:

Rate this post
0 useful
not useful

you should consider implementing an approximation of the function via 
polynomial evaluation. This involves the computation of 
fixed-/floating-point coefficients for the polynomial either the Taylor 
or the Remez (minimax) way.

One good source for approximations of transcendental functions is 


Best regards
Nikolaos Kavvadias
Research Scientist, Hardware developer, B.Sc, M.Sc, Ph.D.


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.