Math library for N3T Project