Type/to search
Built-in Functions
Global
Log
Market
Trade
Account
Futures
Exchange
IO
Network
Storage
Threads
TA
Talib
Overlap Studies
Momentum Indicators
Volume Indicators
Volatility Indicators
Cycle Indicators
Price Transform
Statistic Functions
Math Transform
talib.ACOS
talib.ASIN
talib.ATAN
talib.CEIL
talib.COS
talib.COSH
talib.EXP
talib.FLOOR
talib.LN
talib.LOG10
talib.SIN
talib.SINH
talib.SQRT
talib.TAN
talib.TANH
Math Operators
Pattern Recognition
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

Calculates the square root of each element (Vector Square Root).

talib.SQRT(inReal)

Examples

Compute the square root of a few numbers.

javascript
function main() { var data = [4, 64, 100] var ret = talib.SQRT(data) // Output: [2, 8, 10] Log(ret) }
python
import talib import numpy as np def main(): data = [4.0, 64.0, 100.0] ret = talib.SQRT(np.array(data)) # Output: [2, 8, 10] Log(ret)

Returns

TypeDescription

numeric array

Results, the same length as the input.

Arguments

NameTypeRequiredDescription

inReal

Record array / numeric array

Yes

K-line array (close prices are used) or numeric array; in Python, pass a numeric array such as records.Close.

See Also

Remarks

TA-Lib equivalent: SQRT(Records[Close]) = Array(outReal).