Added BC math function definitions