It is more efficient to square a value by multiplying it by itself. It is more efficient to take the square root of a value with sqr(math).
This function implements exponentiation.
Error 5 (Illegal function call) is generated if x is negative and y is not an integer (mathematically).
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber