Guest User

Untitled

a guest
Dec 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. export class OneRepMaxCalculator {
  2. private readonly weight: number
  3. private readonly repetitions: number
  4.  
  5. constructor(weight: number, repetitions: number) {
  6. this.weight = weight
  7. this.repetitions = repetitions
  8. }
  9.  
  10. epley(): number {
  11. return Math.round(this.weight * (1 + this.repetitions / 30))
  12. }
  13.  
  14. brzycki(): number {
  15. return Math.round(this.weight * (36 / (37 - this.repetitions)))
  16. }
  17.  
  18. mcGlothin(): number {
  19. return Math.round((100 * this.weight) / (101.3 - 2.67123 * this.repetitions))
  20. }
  21.  
  22. lombardi(): number {
  23. return Math.round(this.weight * Math.pow(this.repetitions, 0.1))
  24. }
  25.  
  26. oConner(): number {
  27. return Math.round(this.weight * (1 + this.repetitions / 40))
  28. }
  29. }
Add Comment
Please, Sign In to add comment