Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //metoda falsi
- //bire dwa konce przedlu iwiem ze jest tam jeden pierwsiatek i ze gdzies fukcna przechoi z + w - lub odwrsodnie pod x pdostdawiam wzor na flasyzowa prosta i za kazdym razem ta prsota jest coraz blziej zera
- //double x1 = 1;
- //double x2 = 2;
- //double x;
- //while (true) {
- //
- // while (true) {
- // x = (x0 - (metodaDzielenem(x0) / (metodaDzielenem(x1) - metodaDzielenem(x0)))*(x1 - x0));
- // if (metodaDzielenem(x0)*metodaDzielenem(x) < 0) {
- // x0 = x;
- // }
- // else {
- // x1 = x;
- // }
- // std::cout << "x=" << x << " " << metodaDzielenem(x);
- // system("pause");
- // }
- //}
- //koniec falsi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement