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....
Hi 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 fdlibm: http://www.netlib.org/fdlibm Best regards Nikolaos Kavvadias Research Scientist, Hardware developer, B.Sc, M.Sc, Ph.D. http://www.nkavvadias.com
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.