Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:高斯消元居然蛋疼过了! 要用long double并且用G++交In Reply To:高斯消元居然蛋疼过了! 要用long double并且用G++交 Posted by:orzabc at 2013-05-04 00:51:08 > 测了一下 G++ long double 和double sizeof()值不等,C++相等,最后输出强行转化成double 算方程A*x^2+B*y^2+C*x*y+D*x+E*y+F==0中,A,B,C,D,E,F比例关系的时候 把F的值尽量设大点来提高精度。 总之用高斯消元搞这道题 精度要求很高,貌似也有直接套坐标公式的做法,那个公式没推出来 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator