Advertisement
vitas13

Untitled

Nov 19th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. double *ab = expansion(x0, d, alfaTab[j], Nmax);
  2.  
  3. exp << x0 << ";" << solution::f_calls << ";" << ab[0] << ";" << ab[1] << endl;
  4. cout << "x0: " << x0 << "\t ab[0]: " << ab[0] << "\t" << "ab[1]: " << ab[1] << " N: " << solution::f_calls << endl;
  5. solution::clear_calls();
  6.  
  7. solution f = fib(ab[0], ab[1], epsilon);
  8. fibb << x0 << ";" << f.x << ";" << f.y << ";" << solution::f_calls << endl;
  9. cout << x0 << "," << alfaTab[j] << "," << f.x << f.y << solution::f_calls << endl;
  10. solution::clear_calls();
  11.  
  12. solution l = lag(ab[0], ab[1], epsilon, Nmax);
  13. lagg << x0 << ";" << l.x << ";" << l.y << ";" << solution::f_calls << endl;
  14. cout << x0 << "," << alfaTab[j] << "," << l.x << l.y << solution::f_calls << endl;
  15. solution::clear_calls();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement