Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Fonctions Elémentaires > nthroot

nthroot

Real nth root of real numbers

Calling Sequence

y=nthroot(x,n)

Arguments

x

real scalar or vector/matrix

n

real scalar or vector/matrix

Description

nthroot(x,n) is the real vector/matrix of the nth root of the x elements. If x has negative elements, n must be odd.

If n is not a scalar, then the function proceeds elementwise.

Examples

nthroot(2, 3)
nthroot(-2, 3)
nthroot(-2, -3)
nthroot(2, -3)
nthroot([27 27], 3)
nthroot([27 256], [3 4])
nthroot([27 256; 3125 46656], [3 4; 5 6])

See Also

  • hat — élévation à la puissance
  • sqrt — racine carrée
  • sqrtm — racine carrée matricielle
Report an issue
<< ndims Fonctions Elémentaires num2cell >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:54:30 CEST 2014