class Object

Public Instance Methods

factorial(n) click to toggle source

Ruby has no factorial function, but fact(n) == Math.gamma(n + 1)

# File lib/topiary/directed_graph.rb, line 3
def factorial(n)
  Math.gamma(n + 1)
end