Calculates Natural Log
Toolkit:SDCC 8051 Development System
Location:/bipom/devtools/SDCC/examples/lcd/math/log
#include <stdio.h> #include <8052.h> #include <bipomlib.h> #include <math.h> int main() { float x; /* Set the serial port to 19200 Baud */ serinit(CBR_19200); x = 1000.0; printf( "\n\rNatural Log of %6.2f is %6.2f", x, logf(x) ); return 0; }