27 Float r = sqrt(sqr(x[0])+sqr(x[1])+sqr(x[2]));
28 return (
n == 2) ? 4 :
n*
n*
pow(
r,
n-2);
35 Float r = sqrt(sqr(x[0])+sqr(x[1])+sqr(x[2]));
see the Float page for the full documentation
see the point page for the full documentation
space_mult_list< T, M > pow(const space_basic< T, M > &X, size_t n)
point operator()(const point &x) const
point operator()(const point &x) const