Programming-Idioms

Implementation
Perl

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Implementation edit is for fixing errors and enhancing with metadata.

Instead of changing the code of the snippet, consider creating another Perl implementation.

Other implementations
import "math/big"
nb := big.NewInt(int64(n))
var z big.Int
z.Exp(x, nb, nil)
import java.math.BigInteger;
BigInteger z = x.pow(n);
import std.bigint;
BigInt z = x ^^ n;
z = x**n
extern crate num;
let z = num::pow(x, n);
import "dart:math";
var z = pow(x, n);
z = x ** n
z = :math.pow(x, n)
z = x ^ n
let z = x**n
using System.Numerics;
var z = BigInteger.Pow(x, n);