Fix sqrt type inference and add regression coverage

This commit is contained in:
sergeych committed 2026-03-31 22:26:58 +03:00
1 parent c097464750
commit 3e338f3d53
6 files changed
+107 -32

No files matched your search

+2 -1
View File
@@ -84,6 +84,7 @@ fun calculateDepth(
h = hNew
iter++
println("iter: $iter: $h")
}
// Не сошлось за maxIter
@@ -97,7 +98,7 @@ val d = 0.1 // м (10 см)
val depth = calculateDepth(T, m, d)
if (depth != null) {
println("Глубина: %.2f м".format(depth))
println("Глубина: %.2f м"(depth))
} else {
println("Расчёт не сошёлся")
}