Subject: CGAL users discussion list
List archive
- From: Aomandeyi <>
- To:
- Subject: [cgal-discuss] how to understand CGAL's computational accuracy
- Date: Fri, 12 Mar 2021 06:45:02 -0600 (CST)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-hdrordr: A9a23:mjnzZ62YDXTiY9+dYaZSogqjBHskLtp033Aq2lEZdDV+dMuEm8ey2MkB3RjvhzoLHF0mk9aMOK6PKEmslqJdy48XILukQU3aqHKlRbsD0aLOyyDtcheVysdzzqFlGpISNPTVLXxXyfn3+xO5FdFI+ri62YSln/3XwXsobSwCUc5dxjx0AAqaDUF6LTMubfEEPaCB7clKrSfIQxoqR/m8b0NoY9T+
- Ironport-phdr: A9a23:BUPqIxUzPLHMw7kh/7sZqnzlygfV8KwHVTF92vIco4ILSbyq+tHYBGea288FpGHAUYiT0f9Yke2e6/mmBTVRp8/b6TteKdRlbFwssY0uhQsuAcqIWwXQDcXBSGgEJvlET0Jv5HqhMEJYS47UblzWpWCuv3ZJQk2sfQV6Kf7oFYHMks+5y/69+4HJYwVPmTGxfa5+IA+5oAnMssQam5ZuJrgsxhfGrXZEZvldyH91K16Ugxvy/Nq78oR58yRXtfIh9spAXrv/cq8lU7FWDykoPn4s6sHzuhbNUQWA5n0HUmULiRVIGBTK7Av7XpjqrCT3sPd21TSAMs33SbA0Ximi77tuRRT1hioLKyI1/WfKgcF2kalVog+upwZnzoDaYI+bKvlwcL7SctwGSmRMRdpRWi5dDo+gc4cDE/QNMOBFpIf9vVsOqh6+CBGwCePozz9HnHn20rAk3OUhEAHNwQstEMgJsHTRttr1MrodXv61zanJ1jjDYPZW1i386IjMaBwuvfaMXbdpfMfX1EIgGB/LgE+Kpoz5IzOayP4Ns26D4uZ+VeyihHMrpgVtrjWvxskhi4nEi4IJxl3Z+ih0wIg7KcG3RUN7fNKqEIdduiCEOoV4Q84vQ29mtTs7x7MGp5O2ejUBxpogxx7acfOHco6I7wrlVOmLOjh3n3Zld6ylixmu9kigz+vxXdS33lZStidJj93Bu3QX2xHd6cWLUPhw80a71TuO1g3e7PxPL1oumqrBMZEhx6Y9lpoNvkTHGS/7gEP2gaCMekUi4Oen8P/oYrH4qZOGK4B0jQT+Prwvmsy5H+s4LhADU3Wf9Om4zrHu8070TK9Jg/A3iKXUsZHXKdwepqGjAg9V1ogj6wy4DzejyNkXh34HLFdfdxKBkofmJVHPIPHjAPewhlSjijZrx/TcMrL9BZXNK2DPkK39crZl905c1A0zwMhD6JJbEL4BJOv/VVLwtNzDEhA5Lhe0w/38BdVm1oIeXHqPDbWDPKPTt1+I/OMvLPOWaI8bojauY8QisvXhhHt8lV4GdrSyxrMWbmq5F7JoORa3e33p1/4GFG4MsgcvTaS+gVqHWDhfamezd6057zA/TomhCNGQFciWnLWd0XLjTdVtbWdcBwXUeV/YMr6cUvJJUxq8Z9d7m1QsWr2oSotn3har5leS44oiFfLd/2gjjbym1NVx4IX7k0108zV+BcCQlWqKSjMt9ks4AgQu1aU6mnRTj1KK0Kx2mftdffRc4vpIVkExMpuOlIRH
I still couldn't understand the official explanations,the two sets of data is
exactly the same ,
why the results is different? can someone talk about his own understanding?
the codes as follow
-------------------------------------------------------
--------------------------------------------------------------------------------
#include <iostream>
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <sstream>
typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;
typedef Kernel::Point_2 Point_2;
int main()
{
Point_2 p(0, 0.3), q(1, 0.6), r(2, 0.9);
{
std::cout << (CGAL::collinear(p, q, r) ? "collinear\n" : "not
collinear\n");
}
{
std::istringstream input("0 0.3 1 0.6 2 0.9");
input >> p >> q >> r;
std::cout << (CGAL::collinear(p, q, r) ? "collinear\n" : "not
collinear\n");
}
return 0;
}
-------------------------------------------------------------------
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] how to understand CGAL's computational accuracy, Aomandeyi, 03/12/2021
- Re: [cgal-discuss] how to understand CGAL's computational accuracy, Sebastien Loriot, 03/12/2021
- Re: [cgal-discuss] how to understand CGAL's computational accuracy, Aomandeyi, 03/12/2021
- Re: [cgal-discuss] how to understand CGAL's computational accuracy, Marc Glisse, 03/12/2021
- Re: [cgal-discuss] how to understand CGAL's computational accuracy, Aomandeyi, 03/13/2021
- Re: [cgal-discuss] how to understand CGAL's computational accuracy, Sebastien Loriot, 03/12/2021
- Re: [cgal-discuss] how to understand CGAL's computational accuracy, Aomandeyi, 03/13/2021
- Re: [cgal-discuss] how to understand CGAL's computational accuracy, Marc Glisse, 03/12/2021
- Re: [cgal-discuss] how to understand CGAL's computational accuracy, Aomandeyi, 03/12/2021
- Re: [cgal-discuss] how to understand CGAL's computational accuracy, Sebastien Loriot, 03/12/2021
Archive powered by MHonArc 2.6.19+.