simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

log10.md (1020B)


      1 <!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
      2 
      3 # Function log10
      4 
      5 Calculate the 10-base logarithm of a value. This is the same as calculating `log(x, 10)`.
      6 
      7 For matrices, the function is evaluated element wise.
      8 
      9 
     10 ## Syntax
     11 
     12 ```js
     13 math.log10(x)
     14 ```
     15 
     16 ### Parameters
     17 
     18 Parameter | Type | Description
     19 --------- | ---- | -----------
     20 `x` | number &#124; BigNumber &#124; Complex &#124; Array &#124; Matrix |  Value for which to calculate the logarithm.
     21 
     22 ### Returns
     23 
     24 Type | Description
     25 ---- | -----------
     26 number &#124; BigNumber &#124; Complex &#124; Array &#124; Matrix |  Returns the 10-base logarithm of `x`
     27 
     28 
     29 ### Throws
     30 
     31 Type | Description
     32 ---- | -----------
     33 
     34 
     35 ## Examples
     36 
     37 ```js
     38 math.log10(0.00001)            // returns -5
     39 math.log10(10000)              // returns 4
     40 math.log(10000) / math.log(10) // returns 4
     41 math.pow(10, 4)                // returns 10000
     42 ```
     43 
     44 
     45 ## See also
     46 
     47 [exp](exp.md),
     48 [log](log.md),
     49 [log1p](log1p.md),
     50 [log2](log2.md)