Square of a number

sqr(x)

Arguments

x

a numeric vector or array

Examples

sqr(2)
#> [1] 4
sqr(1:10)
#> [1] 1 4 9 16 25 36 49 64 81 100