add math fuction

This commit is contained in:
2026-04-09 16:23:37 +03:00
parent 7e85152094
commit 8df7eb638b
2 changed files with 13 additions and 0 deletions

View File

@@ -13,6 +13,9 @@ auto main(int argc, char *argv[]) -> int
int a1 = -4, b1 = -5;
hack::log()(hack::math::max_abs(a1, b1));
// 1, 2, 3, 4, 5
hack::log()(hack::math::sum_arithmetic_progression(1, 1, 5));
return 0;
}