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.
1 | pospower(x, expon)
|
1 2 3 | ## Not run:
pospower(-4,0.5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.