Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. double ka_func_ponto_fixo(double ka)
  2. {
  3. return (ka_func(ka)+ka);
  4. }
  5.  
  6. void met_ponto_fixo_ka()
  7. {
  8. double x = 0, xn = 1;
  9. int it = 0;
  10.  
  11. cout << "x\t\t\t|\tit" << endl;
  12.  
  13. while (x != xn)
  14. {
  15. cout << x << "\t\t\t|\t" << it << endl;
  16. x = xn;
  17. it++;
  18. xn = ka_func_ponto_fixo(x);
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement