最小二乘法的直线拟合 #coding:utf-8
import?numpy?as?np
import?matplotlib.pyplot?as?plt
dots?=?np.array([[1,6],?[2,5],?[3,7],?[4,10]])
plt.plot([i[0]?for?i?in?dots],?
????[i[1]...
分类:
其他好文 时间:
2014-07-26 03:37:57
阅读次数:
255
Mini version:set enc=utf-8 ffs=unix,dos,mac lm=zh_CN.utf-8set nu nowb nocp nowrap ru nobk sm is noswf acd hls autoread set hi=700 mouse=a sel=exclusiv...
分类:
其他好文 时间:
2014-07-25 14:07:21
阅读次数:
265
Farey SequenceTime Limit:1000MSMemory Limit:65536KDescriptionThe Farey Sequence Fn for any integer n with n >= 2 is the set of irreducible rational nu...
分类:
其他好文 时间:
2014-07-24 22:53:03
阅读次数:
211
题目描述,例如13195的质因子有5,7,13,29,其中29是最大质因子,现在给你一个数600,851,475,143,,让你求它的最大质因子。这个数记为number,在2-sqrt(number)内先找出质因子然后让number除这些比较小的质因子不断的变小最后剩下的number%i==0的nu...
分类:
其他好文 时间:
2014-07-23 22:10:47
阅读次数:
153
# include int main(void){ int x, y,temp; int r; printf("请输入两个正整数:\n"); scanf("%d %d", &num1, &num2); r = num1 % num2; temp = num2; while(r!=0) { nu...
分类:
系统相关 时间:
2014-07-23 15:16:56
阅读次数:
267
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-07-23 12:03:26
阅读次数:
287
~/.vimrc //vim环境脚本~/.viminfo //vim登录信息:set nu :set nonu //设置是否取消行号:set hlsearch:set nohlsearch // hight light search(高亮度搜寻) //是否反白:set backup //是否自动存....
分类:
其他好文 时间:
2014-07-22 22:47:33
阅读次数:
388
Wormholes
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 30169
Accepted: 10914
Description
While exploring his many farms, Farmer John has discovered a nu...
分类:
其他好文 时间:
2014-07-20 23:03:06
阅读次数:
301
http://www.wowebook.com/提供很多计算机类的电子书下载http://library.nu/提供电子书搜索功能的电子书下载网站http://www.ppurl.com 国内的IT书籍下载网站,笔者推荐http://4ebooks.org/ 免费的编程类电子书
分类:
Web程序 时间:
2014-07-19 16:34:54
阅读次数:
247
今天在机子上安装matplotlib遇到一些问题,特将此记录下来,供大家分享以少走弯路。
1:下载matplotlib
去官网上下载你所需要的版本http://matplotlib.org/download.html, 注意这里的32位和64位指的是python版本。由于是exe文件,直接安装即可。
2:import matplotlib
当我在python shell ...
分类:
编程语言 时间:
2014-07-18 14:11:18
阅读次数:
264