43 lines
985 B
Markdown
43 lines
985 B
Markdown
# Kalkylatorer
|
|
|
|
This is 2 things:
|
|
|
|
- A set of formulaes for speedy calculation for
|
|
those times when a spreadsheet is to overwhelming. Basically related to strength training and body fat.
|
|
- An personal exercise to learn CSS subgrids, as well
|
|
as grinding code with Svelte.
|
|
|
|
## How it works
|
|
|
|
- Choose a formula (top row), and set the values
|
|
with the keypad.
|
|
- Separate the values using semicolons.
|
|
- Add decimals by using a comma (sorry not sorry).
|
|
- Get result by pressing "=" button.
|
|
|
|
|
|
## Built-in calculators
|
|
|
|
### 1 repetition max calculator
|
|
|
|
```
|
|
1rm(weight: number, reps: number, variant: "lower" | "upper")
|
|
```
|
|
|
|
### KG to LBS converter
|
|
|
|
```
|
|
lbs(weight: number)
|
|
```
|
|
|
|
### Army body fat composition calculator
|
|
|
|
```
|
|
abf(length: number, neck: number, waist: number, hips?: number, gender: "male" | "female", metric: boolean)
|
|
```
|
|
|
|
### Navy body fat composition calculator
|
|
|
|
```
|
|
nbf(length: number, neck: number, waist: number, hips?: number, gender: "male" | "female", metric: boolean)
|
|
```
|