The gamma() functions are accurate to 13 digits over the full range. Returns INFINITY / NAN identical to other compiler's math libs. #include <stdio.h> #include <math.h> int main() { double x; for (x = -7.0; x <= 520.0; x += 1.0) { printf("tgamma/lgamma %6.3f: %20.13g %20.13g\n", x/3, tgamma(x/3.0), lgamma(x/3.0)); } printf("tgamma/lgamma %g: %20.13g %20.13g\n", 0.00000234, tgamma(0.00000234), lgamma(0.00000234)); printf("log2, exp2, cbrt, cbrt: %.15g %.15g %.15g %.15g\n", log2(1024), exp2(10), cbrt(-10), cbrt(10)); } |
||
---|---|---|
.. | ||
examples | ||
include | ||
lib | ||
build-tcc.bat | ||
tcc-win32.txt |