Skip to content

Instantly share code, notes, and snippets.

@ecounysis
Created June 12, 2016 15:19
Show Gist options
  • Save ecounysis/0a668a8c683d5f75b0284960635237ca to your computer and use it in GitHub Desktop.
Save ecounysis/0a668a8c683d5f75b0284960635237ca to your computer and use it in GitHub Desktop.
One-Rep Max calculation functions
function Epley(wt, reps) {
return wt * ( 1 + reps / 30);
}
function Brzycki(wt, reps) {
return wt * 36 / (37 -reps);
}
function Lander(wt, reps) {
return 100 * wt / (101.3 - reps * 2.67123);
}
function Lombardi(wt, reps) {
return wt * Math.pow(reps, 0.1);
}
function Mayhew(wt, reps) {
return 100 * wt / (52.2 + 41.9 * Math.exp(reps * -0.055));
}
function Oconner(wt, reps) {
return wt * (1 + 0.025 * reps);
}
function Wathen(wt, reps) {
return 100 * wt /(48.8 + 53.8 * Math.exp(-0.075*reps));
}
function Blah(wt, reps, zwr) {
return wt*20000 *zwr;
}
function Five31(wt, reps) {
return wt + wt * reps * 0.0333;
}
// fnAverage is in fnAverage.js
function ORM(wt, reps) {
var fn = fnAverage(Epley, Brzycki, Lander, Lombardi, Mayhew, Oconner, Wathen, Five31);
return fn(wt, reps);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment