Sha256: 278344a28c82a0dc2de9a1ccdd51c178e86a34e16592a15af46e7b11c89e491d

Contents?: true

Size: 94 Bytes

Versions: 6

Compression:

Stored size: 94 Bytes

Contents

# coding: utf-8
class Integer
  def nexus(d)
    (self + 1)**d.succ - self**d.succ
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
numb-0.186.0 lib/numb/nexus.rb
numb-0.185.0 lib/numb/nexus.rb
numb-0.184.0 lib/numb/nexus.rb
numb-0.181.0 lib/numb/nexus.rb
numb-0.170.0 lib/numb/nexus.rb
numb-0.152.0 lib/numb/nexus.rb