kalkylatorer/README.md

44 lines
985 B
Markdown
Raw Permalink Normal View History

2025-04-20 19:32:38 +02:00
# Kalkylatorer
2025-04-20 19:32:38 +02:00
This is 2 things:
2025-04-20 19:32:38 +02:00
- 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.
2025-04-20 19:32:38 +02:00
## How it works
2025-04-20 19:32:38 +02:00
- 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.
2025-04-20 19:32:38 +02:00
## Built-in calculators
2025-04-20 19:32:38 +02:00
### 1 repetition max calculator
2025-04-20 19:32:38 +02:00
```
1rm(weight: number, reps: number, variant: "lower" | "upper")
```
2025-04-20 19:32:38 +02:00
### KG to LBS converter
2025-04-20 19:32:38 +02:00
```
lbs(weight: number)
```
2025-04-20 19:32:38 +02:00
### Army body fat composition calculator
2025-04-20 19:32:38 +02:00
```
abf(length: number, neck: number, waist: number, hips?: number, gender: "male" | "female", metric: boolean)
```
2025-04-20 19:32:38 +02:00
### Navy body fat composition calculator
2025-04-20 19:32:38 +02:00
```
nbf(length: number, neck: number, waist: number, hips?: number, gender: "male" | "female", metric: boolean)
```