Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
talib.LOG10
Calculates the base-10 logarithm of each element (Vector Log10).
talib.LOG10(inReal)Examples
Compute the base-10 logarithm of a few numbers.
javascript
function main() {
var data = [10, 100, 1000]
var ret = talib.LOG10(data)
// Output: [1, 2, 3]
Log(ret)
}
python
import talib
import numpy as np
def main():
data = [10.0, 100.0, 1000.0]
ret = talib.LOG10(np.array(data))
# Output: [1, 2, 3]
Log(ret)Returns
| Type | Description |
numeric array | Results, the same length as the input. |
Arguments
| Name | Type | Required | Description |
inReal |
| Yes | K-line array (close prices are used) or numeric array; in Python, pass a numeric array such as |
See Also
Remarks
TA-Lib equivalent: LOG10(Records[Close]) = Array(outReal).