v.1.28.2 save exercise async

This commit is contained in:
Tibor Bossanyi (Freelancer)
2023-01-20 07:53:04 +01:00
parent a8af8f7c7e
commit 45cebbbdd2
4 changed files with 89 additions and 6 deletions
+17
View File
@@ -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 {}