This does *not* handle the case where b is the inverse of an integer (e.g. nthroot(-1,1/3) ==? (-1)^3), since in general you cannot count on 1/(1/int) being an integer. If on the other hand you want the complex principal value of the nth root, you can use (a+0i)^(1/b).
1 | nroot(a, b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.