aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/math.erl
diff options
context:
space:
mode:
authorOlivier Girondel <[email protected]>2015-01-04 04:40:55 +0100
committerMarcus Arendt <[email protected]>2015-01-14 15:58:51 +0100
commitfdf09e81de5e7f1ecfe71f98b56c411073badae8 (patch)
treed6a46aeb887b2b829a01889ed364d943b7ed7536 /lib/stdlib/src/math.erl
parent821d84c5860a9a26185efa19be407796422e3090 (diff)
downloadotp-fdf09e81de5e7f1ecfe71f98b56c411073badae8.tar.gz
otp-fdf09e81de5e7f1ecfe71f98b56c411073badae8.tar.bz2
otp-fdf09e81de5e7f1ecfe71f98b56c411073badae8.zip
Add math:log2/1
Diffstat (limited to 'lib/stdlib/src/math.erl')
-rw-r--r--lib/stdlib/src/math.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/stdlib/src/math.erl b/lib/stdlib/src/math.erl
index 98a70b1644..43f736e54c 100644
--- a/lib/stdlib/src/math.erl
+++ b/lib/stdlib/src/math.erl
@@ -24,7 +24,7 @@
-export([sin/1, cos/1, tan/1, asin/1, acos/1, atan/1, atan2/2, sinh/1,
cosh/1, tanh/1, asinh/1, acosh/1, atanh/1, exp/1, log/1,
- log10/1, pow/2, sqrt/1, erf/1, erfc/1]).
+ log2/1, log10/1, pow/2, sqrt/1, erf/1, erfc/1]).
-spec acos(X) -> float() when
X :: number().
@@ -92,6 +92,11 @@ exp(_) ->
log(_) ->
erlang:nif_error(undef).
+-spec log2(X) -> float() when
+ X :: number().
+log2(_) ->
+ erlang:nif_error(undef).
+
-spec log10(X) -> float() when
X :: number().
log10(_) ->