Art-ut-Kia / Log-computation

neperian logarithm computation for compilers that doesn't implement it

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Log-computation

Neperian logarithm computation for compilers that don't implement it

The microtec C compiler for 68040 doesn't implement the natural logarithm fonction.

This project is a C function that operates on a float type (single precision) and returns the natural logarithm with the float type.

The computation is based on the development in series of the ArcTanH function. Reference : wikipedia

Furthermore it computes separatly the log of exponent and mantissa to bound the error in +/- 10^-9, i.e. at a level lower than float quantification error. The justification of the algorithm is provided in the wiki.

About

neperian logarithm computation for compilers that doesn't implement it

License:MIT License


Languages

Language:Mathematica 99.1%Language:C 0.9%