Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- println("x^2")
- println("Bisection method: ",mbisekcji(x -> x^2, -0.5, 0.5, δ, ϵ))
- println("Newton's method: ",mstycznych(x -> x^2, x -> 2*x, eps(Float64), δ, ϵ, 50))
- println("Secant method: ",msiecznych(x -> x^2, -0.5, 0.5, δ, ϵ, 50))
- println("x^2 - 9")
- println("Bisection method: ",mbisekcji(x -> x^2 - 9, 1.5, 6.5, δ, ϵ))
- println("Newton's method: ",mstycznych(x -> x^2 - 9, x -> 2*x, 1.5, δ, ϵ, 50))
- println("Secant method: ",msiecznych(x -> x^2 - 9, 1.0, 2.0, δ, ϵ, 50))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement