Description Usage Arguments Details Value Author(s) References Examples
Raises any base (real or complex) to any power (even complex).
1 | explus(a, numer, denom = 1, n.cycles = 10, tol = 1e-12)
|
a |
any base (real or complex). It can be a vector. |
numer |
numerator of exponent. Can be a decimal or complex number. |
denom |
denominator of exponent (1 by default). Can be a decimal or complex number. |
n.cycles |
The maximum number of steps to be used in the continued fraction approximation process done internally. Default is 10. Increasing this default may increase precision, but it may also produce unexpected results (even a runtime error). |
tol |
a tolerance, 10^-12 by default. Prevents possible numerical problems. Can be set to 0 if desired. |
Method based on numerical treatment of complex exponents using Euler Formula and angles measured in radians, which is the default method built-in in R.
The solution to the exponentiation operation supplied. Returns a real-valued root whenever possible. Otherwise, the principal complex root.
Albert Dorador
For more on Euler Formula, visit http://mathworld.wolfram.com/EulerFormula.html
For more on complex exponents, visit http://mathworld.wolfram.com/ComplexExponentiation.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.