Log2Link

From OpenCog

The Log2Link is a numeric Link type that computes the logarithm base-2 of it's argument. When given a vector argument, it computes the log component by component.

Example:

(cog-execute!
   (Log2Link (Number 1 2 4 8 16 32)))

returns

 (NumberNode "0 1 2 3 4 5")

See also