sqrti | R Documentation |
Square root wrapper that keeps answer real if possible, coerces to complex if not.
sqrti(x)
x |
Vector to return square root of |
Robin K. S. Hankin
sqrti(1:10) #real
sqrti(-10:10) #coerced to complex (compare sqrt(-10:10))
sqrti(1i+1:10) #complex anyway
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.