Different mathematical functions collection for cpp.