1.1.4 • Published 6 years ago

nodephysics v1.1.4

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Node Physics

npm version downloads per month downloads all time

Physics is the natural science that studies matter and its motion and behavior through space and time and that studies the related entities of energy and force.

Installation

This is a Node.js module available through the npm registry.

Before installing nodephysics, download and install Node.js

Installation is accomplished using the npm install command:

$ npm i nodephysics

Usage

Node Physics is a very simple package to use:

var nodephysics = require("nodephysics");

var velocity = nodephysics.velocity(20, 5, true);

console.log(velocity);

// 4 m/s

Functions

Every function has a boolean input that allows you to choose whether or not to include units. You do not have to include the boolean, if you do not want the units listed.

Below is the list of possible functions, as well as their different inputs.

  1. .velocity(∆ position, ∆ time, boolean)
  2. .acceleration(∆ velocity, ∆ time, boolean)
  3. .weight(mass, gravity, boolean)
  4. .momentum(mass, velocity, boolean)
  5. .power(∆ work, ∆ time, boolean)
1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.0

6 years ago

1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago