This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// uses only elementary methods | |
// guarantees none of speed, precision or accuracy | |
// I didn't read the specs | |
// does not handle any errors | |
// might be educational; definitely not practical | |
#include "math.h" | |
// double has 53 bits mantissa | |
// precision is log_10(2^53) = 15.9546 |