pospower: Raise to any power, but with negative numbers converted to...

Description Usage Examples

Description

Raise to any power, but with negative numbers converted to positive first, then reverted afterward. It thus follows what is normal behavior when the exponent were a negative integer, but works also for even integers or any real exponent. For example, pospower(-4,0.5)=-2.

Usage

1
pospower(x, expon)

Examples

1
2
3
## Not run: 
pospower(-4,0.5)
## End(Not run)

forestgeo/ctfs documentation built on May 3, 2019, 6:44 p.m.