码迷,mamicode.com
首页 >  
搜索关键字:respberry pi 3 ;树梅派;外接网卡;ip    ( 3473个结果
POJ 1905 Expanding Rods (二分+计算几何+精度处理)
题目地址:POJ 1905 用二分枚举h,然后判断弧长是否符合条件。重点还是在精度问题上,具体看代码吧。。 #include #include #include #include #include #include #include #include #include using namespace std; #define LL __int64 #define pi aco...
分类:其他好文   时间:2015-01-23 23:03:54    阅读次数:180
POJ 3273 Monthly Expense (二分)
题目地址:POJ 3273 水题。居然错了两次,sad、、 代码如下: #include #include #include #include #include #include #include #include #include using namespace std; #define LL __int64 #define pi acos(-1.0) const int...
分类:其他好文   时间:2015-01-23 20:09:32    阅读次数:154
忘记树莓派密码怎么办?
原文连接:http://www.raspberrypi-spy.co.uk/2014/08/how-to-reset-a-forgotten-raspberry-pi-password/大致过程是这样的:1、首先将sd卡从树莓派取出,2、在另一台电脑上,修改初始化进程为bin目录下的sh;3、然后插...
分类:其他好文   时间:2015-01-23 13:08:52    阅读次数:1276
poj 2546 Circular Area 两圆面积交
题意: 给两个圆,求它们的面积交。 分析: 海伦公式,余弦定理等可解。 代码: //poj 2546 //sep9 #include #include using namespace std; const double pi=acos(-1.0); int main() { double x1,y1,r1,x2,y2,r2; scanf("%lf%lf%lf%lf%lf%lf"...
分类:其他好文   时间:2015-01-23 11:21:38    阅读次数:107
最小二乘法多项式曲线拟合原理与实现
概念最小二乘法多项式曲线拟合,依据给定的m个点,并不要求这条曲线精确地经过这些点,而是曲线y=f(x)的近似曲线y= φ(x)。原理[原理部分由个人依据互联网上的资料进行总结,希望对大家能实用] 给定数据点pi(xi,yi),当中i=1,2,…,m。求近似曲线y= φ(x)。而且使得近似曲线与y=....
分类:其他好文   时间:2015-01-22 23:03:09    阅读次数:555
Java 根据两个经纬度坐标计算距离
publicclassDistance{privatestaticfinaldoubleEARTH_RADIUS=6378137;privatestaticdoublerad(doubled){returnd*Math.PI/180.0;}/***根据两点间经纬度坐标(double值),计算两点间距...
分类:编程语言   时间:2015-01-22 13:01:28    阅读次数:192
mysql 下 计算 两点 经纬度 之间的距离 【转】
公式如下,单位米:第一点经纬度:lng1 lat1第二点经纬度:lng2lat2round(6378.138*2*asin(sqrt(pow(sin( (lat1*pi()/180-lat2*pi()/180)/2),2)+cos(lat1*pi()/180)*cos(lat2*pi()/180)*...
分类:数据库   时间:2015-01-22 10:43:38    阅读次数:196
[Everyday Mathematics]20150225
设 $f:\bbR\to\bbR$ 二次可微, 适合 $f(0)=0$. 试证: $$\bex \exists\ \xi\in\sex{-\frac{\pi}{2},\frac{\pi}{2}},\st f''(\xi)=f(\xi)(1+2\tan^2\xi). \eex$$
分类:其他好文   时间:2015-01-21 22:14:11    阅读次数:181
几篇很好的SPI相关文档
1,http://www.gammon.com.au/spi这篇很详细地讲解了Arduino的SPI通信。2,http://www.brianhensley.net/2012/07/getting-spi-working-on-raspberry-pi.html这篇是讲Raspberry Pi的SP...
分类:其他好文   时间:2015-01-21 19:51:47    阅读次数:125
php根据经纬度计算距离和方向--摘录自http://haotushu.sinaapp.com/post-520.html
define('EARTH_RADIUS', 6367000);//需定义的静态变量 function getRadian($d) { return $d * M_PI / 180; } function getDistance ($lat1, $lng1, $lat2, $lng2) { $lat...
分类:移动开发   时间:2015-01-20 23:36:31    阅读次数:229
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!