Original (English)Computes x raised to the power y. An error occurs if x is zero and y is less than or equal to 0, or if x is negative and y has a fractional part. Note that x*x is the same, but is computed faster than pow(x,2). Parameters:x - any var. y - any var. Returns:xy Example:x = pow(100,1); // x is now 100 x = pow(2,8); // x is now 256 x = pow(1.414,2); // x is now 1.999 See also:exp, log, sqrt |
Übersetzung (Deutsch)Berechnet x hoch y. Ein Fehler tritt auf, wenn x null ist und y kleiner oder gleich 0 ist, oder wenn x negativ ist und y einen Bruchteil hat. Beachten Sie, dass x*x dasselbe ist, aber schneller berechnet wird als pow(x,2). Parameter:x - ein beliebiger var. y - ein beliebiger var. Rückgabe:xy Beispiel:x = pow(100,1); // x ist jetzt 100 x = pow(2,8); // x ist jetzt 256 x = pow(1.414,2); // x ist jetzt 1.999 Siehe auch:exp, log, sqrt |