newtonian

relating to or arising from the work of Sir Isaac Newton

Usage no npm install needed!

<script type="module">
  import newtonian from 'https://cdn.skypack.dev/newtonian';
</script>

README

newtonian

A Universal JavaScript library of newtonian functions.

Build Status codecov

NPM

Features

  • Tested with Jest

  • Bundled for node, jsnext, and umd

Usage

import { gravitationalForce } from 'newtonian'

const force = gravitationalForce( { G: 1
                                  , m_i: 100
                                  , m_j: 100
                                  , q_i: { x: 10, y: 75, z: 0 }
                                  , q_j: { x: 60, y: 5, z: 0 }
                                  }
                                )

// typeof force === 'number'

Note: newtonian is in active development and is accepting PRs for any Newton related science or documentation.