Forum: Math
2008-09-02, 20:41
|
Replies: 4
Views: 2,131
|
Forum: Math
2008-08-28, 21:14
|
Replies: 4
Views: 2,131
Inconsistencies on Wikipedia?
http://en.wikipedia.org/wiki/Maxwell-Boltzmann_distribution#Distribution_of_speeds
http://en.wikipedia.org/wiki/Boltzmann_constant
Wikipedia says that the Boltzman constant k, is k = R/N(a),...
|
Forum: Math
2008-05-16, 02:01
|
Replies: 12
Views: 1,567
I am working on a replacement for an existing...
I am working on a replacement for an existing random number generator, which is why I am interested in how to generate constants and do statistical tests. A third party random number generation...
|
Forum: Math
2008-05-13, 10:53
|
Replies: 12
Views: 1,567
I looked at that website and I cannot find any...
I looked at that website and I cannot find any information or links on anything other than its own random number generator. I need pseudo-random numbers so that the numbers can be reproduced for...
|
Forum: Math
2008-05-12, 01:11
|
Replies: 12
Views: 1,567
Randomness
I have a copy of the third edition of Numerical Recipes and I would like to find all full period triples for the 64bit Xorshift method that pass the diehard tests. I would also like details of what...
|
Forum: Software
2008-05-05, 13:11
|
Replies: 4
Views: 627
|
Forum: Software
2008-05-05, 11:22
|
Replies: 4
Views: 627
I found the problem. It seemed that I was using...
I found the problem. It seemed that I was using the iterator as the exponent rather than the actual exponent. I fixed that and my code now flies.
I do not quite understand by what you mean by "you...
|
Forum: Software
2008-05-05, 03:12
|
Replies: 4
Views: 627
What is wrong with my code?
I am implementing the Lucas Lehmer test in C++ using the GMP C++ wrapper class. For some reason, I am having trouble getting the modulus right:
// Get bottom bits
temp = num;
temp &= s;
//...
|
Forum: Math
2008-04-16, 13:47
|
Replies: 2
Views: 2,805
|
Forum: Math
2008-04-12, 12:54
|
Replies: 2
Views: 2,805
Energy Minimization
I am doing undergraduate research in a lab that does molecular dynamics simulations and it struck me yesterday that the minimization of energy functions could be done with the methods I learned in...
|
Forum: Lounge
2008-03-23, 01:41
|
Replies: 19
Views: 1,516
I just tried the RSQRTSS instruction in Visual...
I just tried the RSQRTSS instruction in Visual Studio. The error Intel gave is < 1.5 * 2^-12. The error I read was < 1.5 * 10^-12. Unfortuantely, there is a fairly large difference between the two....
|
Forum: Lounge
2008-03-23, 00:27
|
Replies: 19
Views: 1,516
|
Forum: Lounge
2008-03-22, 23:28
|
Replies: 19
Views: 1,516
Due to certain peculiarities of the IEEE 754...
Due to certain peculiarities of the IEEE 754 floating point specification, it is possible to do a single Taylor Series approximation (by taking the quadratic equation if I recall correctly) followed...
|
Forum: Lounge
2008-03-22, 21:58
|
Replies: 19
Views: 1,516
Thanks for the advice.
I am an undergraduate...
Thanks for the advice.
I am an undergraduate student in the lab and I am fairly certain that the only person who knows Fortran in the lab is my advisor, although I am not sure if advisor is the...
|
Forum: Lounge
2008-03-21, 03:33
|
Replies: 19
Views: 1,516
Does anyone here know Fortran?
I am interested in learning Fortran, specifically Fortran 90, so that I will be able to try to make the molecular dynamics simulations my lab uses.
If anyone here knows Fortran, how did you learn...
|
Forum: Software
2008-03-02, 13:51
|
Replies: 15
Views: 2,131
|
Forum: Software
2008-03-02, 03:34
|
Replies: 15
Views: 2,131
I have compiled my program on my school's...
I have compiled my program on my school's computers and the differences in execution times were not out of line with what I would expect from them given their processors (Pentium D 3.4GHz and Core 2...
|
Forum: Software
2008-03-02, 01:48
|
Replies: 15
Views: 2,131
Visual Studio 2008 Professional has an option...
Visual Studio 2008 Professional has an option called "Start without debugging" that opens a program in a CMD window.
In the past, I have navigated to my program through a CMD prompt I opened and...
|
Forum: Software
2008-03-02, 01:17
|
Replies: 15
Views: 2,131
Okay. I shut down Virtual PC and Firefox and...
Okay. I shut down Virtual PC and Firefox and reran the test results. The numbers were 6 seconds for 0 - 2281, 20 seconds for 0 - 3217 and 13 seconds for 2281 - 3217 with M21701 taking 20 seconds. I...
|
Forum: Software
2008-03-02, 00:36
|
Replies: 15
Views: 2,131
I am doing my timing with time.h.
I am doing...
I am doing my timing with time.h.
I am doing my timing runs with Virtual PC running in the background (with Ubuntu paused), but the results are no different than what they were before I installed...
|
Forum: Software
2008-03-01, 23:56
|
Replies: 15
Views: 2,131
Linux is faster than Windows?
I originally posted this on channel9.msdn.com, but I am reposting it here because I want answers as to why my mersenne prime number finder runs faster on Linux than it runs on Windows.
Does...
|
Forum: Software
2008-03-01, 02:38
|
Replies: 6
Views: 655
|
Forum: Software
2008-03-01, 02:21
|
Replies: 6
Views: 655
|
Forum: Software
2008-03-01, 01:02
|
Replies: 6
Views: 655
Why does GMP do this?
I found the following code in the gmp-impl.h file while analyzing GMP's source code:
#define MPN_NORMALIZE(DST, NLIMBS) \
do { \
while ((NLIMBS) > 0) ...
|
Forum: Programming
2008-02-29, 18:29
|
Replies: 11
Views: 3,539
|