elemapprox -- The Rosetta stone of elementary functions approximation and plotting

Oct 08, 2014 0 Replies

elemapprox is an ANSI C code, Verilog HDL and VHDL collection of modules (V erilog HDL) and packages (VHDL) that provide the capability of evaluating a nd plotting transcendental functions by evaluating them in single precision . The original work supports ASCII plotting of a subset of the functions; t his version provides a more complete list of functions in addition to bitma p plotting for the transcendental functions as PBM (monochrome) image files .



elemapprox has been conceived as an extension to Prof. Mark G. Arnold's wor k as puhlished in HDLCON 2001. Most functions have been prefixed with the l etter k in order to avoid function name clashes in both ANSI C and Verilog HDL implementations. Currently, the VHDL version uses unprefixed names (e.g . acos instead of kacos).



All code is licensed under the Modified BSD license and can be found here:



formatting link


Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required