摘要:
/************************
* 用迭代法求方程
* f(x)=e^(-x)-x+1=0
* 的根
*************************/
#include
#include
#include float fa(float);
float dd(float);
int main() { float x0; printf("input data x0 = "); scanf("%f", &x0); printf("The root of f(x) = 0 is x = \t%f\n", dd( 阅读全文
阅读排行榜
cygwin完全安装步骤方法(组图)
2011-12-04 00:02 by java20130722, 600 阅读, 收藏,
摘要:
安装 GCC安装 GCC 最快捷的方式是在您的机器上安装完整的 Cygwin 环境。Cygwin 是 Windows 上类似于 Linux 的环境。它包括一个提供 UNIX 功能性基本子集的 DLL 以及在这之上的一组工具。安装好 Cygwin 之后,通常可以忽略它,即使您是命令行的爱好者,您仍能发现您活得更舒坦了。确保您具有相当快速的 Internet 连接。GCC 编译器及相关实用程序大约有 50 兆字节。另外确认您的连接是否需要一个代理服务器。这可通过您的 Internet 浏览器选项:工具 -> Internet 选项 ->连接 ->局域网(LAN)设置来确定。确保在 阅读全文
hive bucket
2013-07-12 15:13 by java20130722, 596 阅读, 收藏,
摘要:
BucketBuckets对指定列计算hash,根据hash值切分数据,目的是为了并行,每一个Bucket对应一个文件。将user列分散至32个bucket,首先对user列的值计算hash,对应hash值为0的HDFS目录为:/wh/pvs/ds=20090801/ctry=US/part-00000;hash值为20的HDFS目录为:/wh/pvs/ds=20090801/ctry=US/part-00020。hive中table可以拆分成partition,table和partition可以通过‘CLUSTERED BY’进一步分bucket,bucket中的数据可以通过‘SORT BY 阅读全文
CloseHandle()函数的使用
2012-12-21 16:48 by java20130722, 594 阅读, 收藏,
摘要:
CloseHandle()函数的使用很多程序在创建线程都这样写的:............ThreadHandle = CreateThread(NULL,0,.....);CloseHandel(ThreadHandle );。。。。。这不是刚好创建又关闭了吗?线程怎么运行呢?答:Closing a thread handle does not terminatethe associated thread. To remove a thread object, you must terminate thethread, then close all handles to the thread 阅读全文
Hive 中的Mapper个数
2013-03-21 03:22 by java20130722, 577 阅读, 收藏,
摘要:
Hive 中的Mapper个数的是由以下几个参数确定的:mapred.min.split.size,mapred.max.split.size ,dfs.block.sizesplitSize =Math.max(minSize, Math.min(maxSize, blockSize));map个数还与inputfilles的个数有关,如果有2个输入文件,即使总大小小于blocksize,也会产生2个map 阅读全文
浙公网安备 33010602011771号