摘要:
计算几何中坐标一般是实数,编程时使用double,不要使用精度较低的float。 在进行浮点数运算时会产生精度误差,可以设置一个偏差值eps(epsilon)来控制精度。 判断浮点数是否等于零或两个浮点数是否相等要用eps辅助判断。 #include<bits/stdc++.h> using nam 阅读全文
摘要:
\setbeamertemplate{bibliography item}[text] %.... %.... \begin{thebibliography}{10} % Beamer does not support BibTeX so references must be inserted ma 阅读全文