由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] 有人用过gasdev()产生随即数吗?求救!
相关主题
[合集] 问个图的问题谁有numerical recipe in Fortran啊
猜数据范围numerical recipe里的快速傅立叶变换
[合集] 请问programming pearls这本书如何教授的问题(C language)
如何编程实现以下简单的组合问题[合集] Python下面如何进行numeric analysis and statistical analysis
编译 64/32 位的library (Linux)c++ class design issue
急用:谁有C Recipe原文及代码呀?如果给随即函数rand[1,5] 如何产生rand[1,7] (转载)
numerical recipes in C++有人用过吗?difference between: char** p and char*p[] ??
[合集] C里面有没有现成的matrix computation as matlab?一个数据结构中的数学求和问题求教 (转载)
相关话题的讨论汇总
话题: dec话题: thu话题: gasdev话题: 随即话题: show
进入Programming版参与讨论
1 (共1页)
c***d
发帖数: 996
1
☆─────────────────────────────────────☆
SaturdayNite (Show) 于 (Thu Dec 7 23:13:18 2006) 提到:
用的Numerical Recipes 里c语言的codes
用gasdev()产生高斯分布的随即数,调用的是ran1()。
为什么我把所有随即数加起来的和不是零?
分布到是看上去象高斯分布。
☆─────────────────────────────────────☆
kukutf (五脚蟹★酷酷豆腐) 于 (Thu Dec 7 23:20:07 2006) 提到:
接近于0,

☆─────────────────────────────────────☆
SaturdayNite (Show) 于 (Thu Dec 7 23:24:02 2006) 提到:
不太接近啊,譬如,种子idum = -13;不变,
取10000个,总和是-45.4703;
100000个, -103.702;
1000000, -405.668;
☆─────────────
1 (共1页)
进入Programming版参与讨论
相关主题
一个数据结构中的数学求和问题求教 (转载)编译 64/32 位的library (Linux)
n*(n-1)*(n+1)/3 re:一个数据结构中的数学求和问题求教 (转载)急用:谁有C Recipe原文及代码呀?
[合集] 请问大家都用什么C++编译器?numerical recipes in C++有人用过吗?
[合集] matlab 函数求救[合集] C里面有没有现成的matrix computation as matlab?
[合集] 问个图的问题谁有numerical recipe in Fortran啊
猜数据范围numerical recipe里的快速傅立叶变换
[合集] 请问programming pearls这本书如何教授的问题(C language)
如何编程实现以下简单的组合问题[合集] Python下面如何进行numeric analysis and statistical analysis
相关话题的讨论汇总
话题: dec话题: thu话题: gasdev话题: 随即话题: show