sqrti: Generalized square root

Description Usage Arguments Author(s) Examples

Description

Square root wrapper that keeps answer real if possible, coerces to complex if not.

Usage

1
sqrti(x)

Arguments

x

Vector to return square root of

Author(s)

Robin K. S. Hankin

Examples

1
2
3
sqrti(1:10)  #real
sqrti(-10:10) #coerced to complex (compare sqrt(-10:10))
sqrti(1i+1:10) #complex anyway


Search within the elliptic package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.