v.1.28.2 save exercise async
This commit is contained in:
@@ -145,6 +145,21 @@ mixin Common {
|
||||
return average;
|
||||
}
|
||||
|
||||
double getRepeatByOneRepMax(double oneRepMax, double weight) {
|
||||
double repeats = ( 80 * oneRepMax - 80 * weight ) / ( weight * ( 40 * 0.0333 + 1) );
|
||||
//print("getRepeatsByOneRepMax: $repeats");
|
||||
return repeats;
|
||||
}
|
||||
|
||||
int calculateRepeatBy1RMPercent(double oneRepMax, double weight, double percent) {
|
||||
return getRepeatByOneRepMax(oneRepMax , weight * percent).round();
|
||||
}
|
||||
|
||||
double calculate1RMPercentByRepeat(double oneRepMax, double weight, double repeat) {
|
||||
double percent = 80 * oneRepMax / (weight * ( repeat * ( 40 * 0.0333 + 1 ) + 80));
|
||||
return percent;
|
||||
}
|
||||
|
||||
static double get1RMPercent(int repeats) {
|
||||
double percent = 1;
|
||||
|
||||
@@ -231,3 +246,5 @@ mixin Common {
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
class CommonHoldingClass with Common {}
|
||||
Reference in New Issue
Block a user