on bfaa358 help sign in
44 lines 509 B history raw
1### `++xeb`
3Binary logarithm
5Computes the base-2 logarithm of `a`, producing an atom.
7Accepts
8-------
10`a` is an atom.
12Produces
13--------
15An atom.
17Source
18------
20 ++ xeb :: binary logarithm
21 ~/ %xeb
22 |= a/@
23 ^- @
24 (met 0 a)
26Examples
27--------
29 ~zod/try=> (xeb 31)
30 5
31 ~zod/try=> (xeb 32)
32 6
33 ~zod/try=> (xeb 49)
34 6
35 ~zod/try=> (xeb 0)
36 0
37 ~zod/try=> (xeb 1)
38 1
39 ~zod/try=> (xeb 2)
40 2
44***