This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main(args: Array<String>) { | |
val firstSection:Double = 1.0; | |
val lastSection:Double = 2.0; | |
val epsilon:Double = 0.00000001; | |
val b = Bisekcja(firstSection,lastSection,epsilon).also { } | |
println("Miejsce zerowe funkcji: " + b.zero() + ". Liczba iteracji: " + b.zero()) | |
} |