gymath

0.0.1 • Public • Published

gymath

Math helper for gym meatheads.

Example

import { calculatePlates } from 'gymath';

// how many plates to put on each side of the barbell
const plates = calculatePlates(275); 

console.log(plates); // { 45: 2, 25: 1 }

// custom barbell weight
const platesUsing35lbsBar = calculatePlates(135, { barWeight: 35 }); 
console.log(platesUsing35lbsBar ); // { 45: 1, 5: 1 }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    24
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    24

Package Sidebar

Install

npm i gymath

Weekly Downloads

24

Version

0.0.1

License

MIT

Unpacked Size

25.8 kB

Total Files

20

Last publish

Collaborators

  • terenced