math.h: extra assert: period > 0