Extended basicmath lib