Пример #1
0
const LI LI :: powLI (const int & n)
{
	LI one;
	one.From_Int(1);
	LI res = one;
	for (int i = 0; i <= n; ++i)
		res = res.Karatsuba (*this);
	return res;
}
Пример #2
0
const LI LI :: powLI (LI & n)
{
	LI zero, one; 
	zero.From_Int(0);
	one.From_Int(1);
	LI res = one;
	for (LI i = zero; n > i; i = i + one)
		res = res.Karatsuba(*this);
	return res;
}