Description Usage Arguments Details Value See Also
Internal function used by the powers library. Takes vector to an arbitrary power, and may plot the function if indicated.
1 | pow(x, a, plot_it, returnVal, returnPlot)
|
x |
The vector to be exponentiated. |
a |
The exponent. |
plot_it |
A logical. If |
returnVal |
A logical. If |
returnPlot |
A logical. If |
This function is for internal use only. Other functions in the powers
library depend on this.
In the case of a numerical input, a vector that is the a
-th exponent of x
is returned.
For strings, the input string is repeated code|a| times. If a
is negative, the order of the input string x
is also reversed.
pwr
, square
, cube
, reciprocal
, tenvec
, negtenvec
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.