码迷,mamicode.com
首页 >  
搜索关键字:余弦定理    ( 73个结果
UVA11817 - Tunnelling the Earth
给出经纬度,算球面距和圆弧的弦长 我的做法: 设好三维坐标系,利用投影算出两点坐标 利用余弦定理算出圆弧对应圆心角,再算出球面距 我的代码: #include #include #include #include #include #include #include #include #include #include using namespac...
分类:其他好文   时间:2014-09-09 13:30:28    阅读次数:229
acdream 1203 解三角形
已知角a,b,c,d求角aed.(0= 思路:其实和边没关系,都相似的。不妨设ab=10.0; 由正弦定理容易求出 ad,ae,余弦定理求出de。 答案就呼出来了。最后求反三角。 算法没问题。但是比赛时候一直跪。。。后来躺床上一想,哎!acrsin返回的是 (-pai/2,pai/2)!若是钝角他返回锐角啊!sb了!所以判断一下脚aed是否大于90,再做正弦定理。或者直接用arccos求,...
分类:其他好文   时间:2014-09-09 12:42:48    阅读次数:182
HDU4033:Regular Polygon(二分+余弦定理)
Problem Description In a 2_D plane, there is a point strictly in a regular polygon with N sides. If you are given the distances between it and N vertexes of the regular polygon, can you calculate t...
分类:其他好文   时间:2014-05-26 03:50:40    阅读次数:252
73条   上一页 1 ... 6 7 8
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!