~ubuntu-branches/ubuntu/saucy/ruby-facets/saucy

« back to all changes in this revision

Viewing changes to src/standard/facets/math/beta.rb

  • Committer: Package Import Robot
  • Author(s): Marc Dequènes (Duck)
  • Date: 2013-06-21 14:41:38 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130621144138-nb3t82yl5gl8p7a6
Tags: 2.9.3-1
* New upstream release:
  - rakefile is gone, switched back to setuprb method
  - recreated documention build rules and adapted to new paths
* Updated copyright file.
* Increased Standards-Version to 3.9.4 (no changes).
* Removed transitional libfacets-* package and obsolete relations.
* Use system JQuery library instead of embedded one for documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
module Math
2
 
 
3
 
  # Beta function of +x+ and +y+ - <code>beta(+x+, +y+) =
4
 
  # tgamma(+x+) * tgamma(+y+) / tgamma(+x+ + +y+)</code>
5
 
  def self.beta(x, y)
6
 
    exp(lgamma(x) + lgamma(y) - lgamma(x+y))
7
 
  end
8
 
 
9
 
end