Sha256: 9552fcc98af74da0df1088c4b33ac08380ce8d79030f5ecc8c2d32ff29dd4141
Contents?: true
Size: 283 Bytes
Versions: 3
Compression:
Stored size: 283 Bytes
Contents
require 'facets/math/tgamma' module Math # Beta function of `x` and `y`. # # beta(x, y) = tgamma(x) * tgamma(y) / tgamma(x + y) # def self.beta(x, y) #exp(lgamma(x).first + lgamma(y).first - lgamma(x+y).first) tgamma(x) * tgamma(y) / tgamma(x + y) end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
facets-glimmer-3.2.0 | lib/standard/facets/math/beta.rb |
facets-3.1.0 | lib/standard/facets/math/beta.rb |
facets-3.0.0 | lib/standard/facets/math/beta.rb |