I not shure which algorithm,but I am assumeing that all Python does,is to call the underlying C pow() function. Sam