Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.47 KB | None | 0 0
  1. let tracage f df a b racine =
  2.   let (x1, fx1, l1) = R.bissection ~max_iter:30. f a b in
  3.   let (x2, fx2, l2) = R.fausse_position ~max_iter:30. f a b in
  4.   let (x3, fx3, l3) = R.secante ~max_iter: 30. f a b in
  5.   let (x4, fx4, l4) = R.newton ~max_iter: 30. f df b in
  6.   let tab = [|l1; l2; l3; l4|] in
  7.   Q.graphe tab colors racine;;
  8.  
  9.  
  10. (*tracage f1 df1 0. 2. (sqrt 2.);;
  11. tracage f2 df2 (-. 1.) 2. 0.;;
  12. tracage f3 df3 (-. 1.) 2. 0.;;*)
  13. tracage f4 df4 0. 8. (pi /. 2.);;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement