So like,I should include <cmath> at the beginning of the file ? or after including "api_weight.h" .