Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gamma

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gamma

the gamma function (Γ)

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gamma

gamma function in javascript using the lanczos approximation for small values and the spouge approximation for larger values

browser support

build status

example

> var gamma = require('gamma')
> gamma(5)
23.999999999999996
> gamma(1.6)
0.8935153492876909

methods

var gamma = require('gamma')

gamma(z)

Return the gamma function over z. Complex numbers aren't supported, only reals.

gamma.log(z)

Return the natural log of the gamma function for z.

This function is used internally by the spouge approximation to compute large values.

install

With npm do:

npm install gamma

kudos

Implementation transliterated from the python script on the wikipedia entry for the lanczos approximation.

Spouge approximation from Niggler.

license

MIT

Keywords

FAQs

Package last updated on 25 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc