Advertisement
Guest User

Untitled

a guest
Nov 25th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Julia 0.49 KB | None | 0 0
  1. println("x^2")
  2. println("Bisection method:  ",mbisekcji(x -> x^2, -0.5, 0.5, δ, ϵ))
  3. println("Newton's method: ",mstycznych(x -> x^2, x -> 2*x, eps(Float64), δ, ϵ, 50))
  4. println("Secant method: ",msiecznych(x -> x^2, -0.5, 0.5, δ, ϵ, 50))
  5.  
  6. println("x^2 - 9")
  7. println("Bisection method:  ",mbisekcji(x -> x^2 - 9, 1.5, 6.5, δ, ϵ))
  8. println("Newton's method: ",mstycznych(x -> x^2 - 9, x -> 2*x, 1.5, δ, ϵ, 50))
  9. println("Secant method: ",msiecznych(x -> x^2 - 9, 1.0, 2.0, δ, ϵ, 50))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement