x=0:0.1:6*pi; for step=1:2:100 s=0; for i=1:2:step s = s+1/i*sin(i*x); end plot(s);set(figure(1),'visible','off'); filename=[num2str(step, '%04d'),'.p...
                            
                            
                                分类:
其他好文   时间:
2014-07-10 13:49:02   
                                阅读次数:
922
                             
                    
                        
                            
                            
                                1. Only version not older than R2013 supports Raspberry Pi. First, download support package in Matlab: http://www.mathworks.cn/matlabcentral/fx_files/...
                            
                            
                                分类:
其他好文   时间:
2014-07-10 13:42:50   
                                阅读次数:
338
                             
                    
                        
                            
                            
                                1 /* 字段 */ 2 Math.E; //2.71828182845905 3 Math.PI; //3.14159265358979 4 5 /* 静态方法 */ 6 Math.Abs; //绝对值 7 Mat...
                            
                            
                                分类:
Web程序   时间:
2014-07-07 19:45:31   
                                阅读次数:
196
                             
                    
                        
                            
                            
                                作者:tobecrazy 出处:http://www.cnblogs.com/tobecrazy 欢迎转载,转载请注明出处。thank you!基本概念 : 常量: 常量名全部大写,如PI 变量: python没有变量类型,也不必声明,直接赋值即可.变量可以是数字,字符串,布尔值(T...
                            
                            
                                分类:
编程语言   时间:
2014-07-07 18:25:55   
                                阅读次数:
314
                             
                    
                        
                            
                            
                                标准数字格式字符串:C or c 货币 "{0:C}" -f 1.23 结果:¥1.23 或 $1.23D or d 十进制 "{0:D}" -f 2 结果:0002E or e 科学计数法 "{0:E3}" -f [Math]::Pi 结果:3.142E+000F or f 固定的点。...
                            
                            
                                分类:
其他好文   时间:
2014-07-01 21:55:51   
                                阅读次数:
268
                             
                    
                        
                            
                            
                                参考:RPi Serial Connection本文来自:http://www.raspberry-projects.com/pi/programming-in-c/uart-serial-port/using-the-uartUsing the UARTIf you are running Ras...
                            
                            
                                分类:
Web程序   时间:
2014-07-01 10:21:01   
                                阅读次数:
982
                             
                    
                        
                            
                            
                                参考: http://www.siongboon.com/projects/2013-07-08_raspberry_pi/index.htmlRaspberry Pi Get started with Raspberry Pi (RPi), a step by step approach to ....
                            
                            
                                分类:
Web程序   时间:
2014-07-01 09:18:14   
                                阅读次数:
1482
                             
                    
                        
                            
                            
                                题目链接:Codeforces 442B Andrey and Problem
题目大意:Andrey有一个问题,想要朋友们为自己出一道题,现在他有n个朋友,每个朋友想出题目的概率为pi,但是他可以同时向多个人寻求帮助,不过他只能要一道题,也就是如果他向两个人寻求帮助,如果两个人都成功出题,也是不可以的。
解题思路:贪心,从概率最大的人开始考虑,如果询问他使得概率变大,则要询问。
#...
                            
                            
                                分类:
其他好文   时间:
2014-06-30 16:36:58   
                                阅读次数:
252
                             
                    
                        
                            
                            
                                对每个圆二分半径寻找可行的最小半径,然后取最小的一个半径。
对于两圆相交就只要求到两个扇形,然后减去两个全等三角形就行了。
#include
#include
#include
#include
using namespace std;
#define pi acos(-1.0)
#define eps 1e-8
#define maxn 50
int n;
struct point{...
                            
                            
                                分类:
其他好文   时间:
2014-06-29 22:36:16   
                                阅读次数:
247