37 scalar xx =
e > 0 ?
x : 1/
x;
41 for (
label i =
e; i != 0; i /= 2)
60 case -3:
return 1/
cbrt(
x);
61 case -2:
return 1/
sqrt(
x);
65 case 2:
return sqrt(
x);
66 case 3:
return cbrt(
x);
70 return pow(
x, scalar(1)/
e);
const dimensionedScalar e
Elementary charge.
scalar integerRoot(const scalar x, const label e)
Compute the power of the number x to the reciprocal integer 1/e.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
scalar integerPow(const scalar x, const label e)
Compute the power of the number x to the integer e.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar cbrt(const dimensionedScalar &ds)
dimensionedScalar pow025(const dimensionedScalar &ds)