mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
20 lines
364 B
JavaScript
20 lines
364 B
JavaScript
module.exports = {
|
|
'name': 'log2',
|
|
'category': 'Arithmetic',
|
|
'syntax': [
|
|
'log2(x)'
|
|
],
|
|
'description': 'Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.',
|
|
'examples': [
|
|
'log2(0.03125)',
|
|
'log2(16)',
|
|
'log2(16) / log2(2)',
|
|
'pow(2, 4)'
|
|
],
|
|
'seealso': [
|
|
'exp',
|
|
'log1p',
|
|
'log',
|
|
'log10'
|
|
]
|
|
}; |