Giter VIP home page Giter VIP logo

powerlifting-formulas's Introduction

Powerlifting Formulas

Check this article to learn more about formulas.

Formulas were heavily inspired on OpenPowerlifting Coefficients Crate

Getting started

Install this package with you favorite package manager

npm install powerlifting-formulas
yarn add powerlifting-formulas
pnpm install powerlifting-formulas

Then use it like so:

import { wilks } from 'powerlifting-formulas'

// calculate wilks for 82.5kg male lifer with 680kg lifted
wilks(82.5, 680, 'male') // default is kg
// calculate wilks for 120lbs female lifer with 425lbs lifted
wilks(120, 425, 'female', 'lb')

Formulas

All formulas have the same signature:

export type Formula = (weight: number, total: number, gender: 'male' | 'female', mass?: 'kg' | 'lb') => number

Wilks before 2020

import { wilks } from 'powerlifting-formulas'

wilks(82.5, 680, 'male')
wilks(120, 425, 'female', 'lb')

Wilks After 2020

import { wilks2020 } from 'powerlifting-formulas'

wilks2020(82.5, 680, 'male')
wilks2020(120, 425, 'female', 'lb')

DOTS

import { dots } from 'powerlifting-formulas'

dots(82.5, 680, 'male')
dots(120, 425, 'female', 'lb')

Reshel

⚠️ WARNING ⚠️ Reshel might be a bit off. At worst, it is off by about six Reshel points (0.01), affecting middleweights.

import { reshel } from 'powerlifting-formulas'

reshel(82.5, 680, 'male')
reshel(120, 425, 'female', 'lb')

Glossbrenner

import { glossbrenner } from 'powerlifting-formulas'

glossbrenner(82.5, 680, 'male')
glossbrenner(120, 425, 'female', 'lb')

Schwartz-Malone

import { schwartzMalone } from 'powerlifting-formulas'

schwartzMalone(82.5, 680, 'male')
schwartzMalone(120, 425, 'female', 'lb')

powerlifting-formulas's People

Contributors

marantesss avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.