Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - Русский - 日本語
Scilab Help >> Elementary Functions > Log - exp - power > sqrt

sqrt

square root

Syntax

y=sqrt(x)

Arguments

x

real or complex scalar or vector/matrix

Description

sqrt(x) is the vector/matrix of the square root of the x elements. Result is complex if element of x is negative.

Examples

A = matrix(4:4:16,2,2)
sqrt(A)
sqrt(-1)

See Also

  • hat — (^) exponentiation
  • sqrtm — matrix square root
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:27:33 CEST 2016