Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including science with all npm packages installed. Try it out:

var science = require("science")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

science v1.9.3

Scientific and statistical computing in JavaScript.


Science.js is a JavaScript library for scientific and statistical computing.

Currently, there are two modules:

  • science.stats, containing various implementations of statistical methods similar to those provided by R;
  • science.lin, for linear algebra.


To help develop Science.js, you need to have Node.js and NPM installed. Once you have done that, run the following from the root directory of this repository to install the development dependencies:

make install


I originally started this in order to add a reusable statistics module to D3.js, but now it's grown into a whole new project of its own!

The project structure and Makefile is based on that of D3, so a big thank you goes to Mike Bostock for this.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free