mersenneforum.org  

Go Back   mersenneforum.org > Search Forums

Showing results 1 to 25 of 92
Search took 0.01 seconds.
Search: Posts Made By: ShiningArcanine
Forum: Math 2008-09-02, 20:41
Replies: 4
Views: 1,503
Posted By ShiningArcanine
Thankyou very much for the explanation. :)

Thankyou very much for the explanation. :)
Forum: Math 2008-08-28, 21:14
Replies: 4
Views: 1,503
Posted By ShiningArcanine
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,179
Posted By ShiningArcanine
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,179
Posted By ShiningArcanine
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,179
Posted By ShiningArcanine
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: 474
Posted By ShiningArcanine
Ah, okay. I see what you meant now. I was already...

Ah, okay. I see what you meant now. I was already doing that in my code. For a moment there, I thought there was a way to sequeeze additional performance out of my code.
Forum: Software 2008-05-05, 11:22
Replies: 4
Views: 474
Posted By ShiningArcanine
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: 474
Posted By ShiningArcanine
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: 1,921
Posted By ShiningArcanine
Thank you so much for the information. I did not...

Thank you so much for the information. I did not have much of a chance to go to my lab on Monday. Yesterday, I was there to get a book on Fortran. Today, I will be going there for a lab meeting, so I...
Forum: Math 2008-04-12, 12:54
Replies: 2
Views: 1,921
Posted By ShiningArcanine
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,083
Posted By ShiningArcanine
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,083
Posted By ShiningArcanine
I was looking at the specification of RSQRTPS and...

I was looking at the specification of RSQRTPS and RSQRTSS instructions in some PDF files:

http://download.intel.com/design/processor/manuals/253667.pdf...
Forum: Lounge 2008-03-22, 23:28
Replies: 19
Views: 1,083
Posted By ShiningArcanine
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,083
Posted By ShiningArcanine
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,083
Posted By ShiningArcanine
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: 1,678
Posted By ShiningArcanine
Someone at channel9 solved the mystery. What was...

Someone at channel9 solved the mystery. What was happening was that GMP on Ubuntu was using optimized assembly while GMP on Windows was using generic C code.

I recompiled my program with P4...
Forum: Software 2008-03-02, 03:34
Replies: 15
Views: 1,678
Posted By ShiningArcanine
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: 1,678
Posted By ShiningArcanine
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: 1,678
Posted By ShiningArcanine
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: 1,678
Posted By ShiningArcanine
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: 1,678
Posted By ShiningArcanine
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: 473
Posted By ShiningArcanine
I thought {} was allowed in ANSI C. Is there a C...

I thought {} was allowed in ANSI C. Is there a C specification that does not allow it?
Forum: Software 2008-03-01, 02:21
Replies: 6
Views: 473
Posted By ShiningArcanine
Why not simply use {} instead of do{}while(0);?...

Why not simply use {} instead of do{}while(0);? There is no need to have the superfluous do-while there.

As for the condition, WANT_ASSERT is not declared, so I am finding that ASSERT() simply...
Forum: Software 2008-03-01, 01:02
Replies: 6
Views: 473
Posted By ShiningArcanine
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,042
Posted By ShiningArcanine
Why not do this: bool isNonNegInt(string...

Why not do this:

bool isNonNegInt(string str) {
return (atoi(str.c_str) <= 0) ? false : true;
}
Showing results 1 to 25 of 92

 
All times are UTC. The time now is 19:06.

Mon May 10 19:06:51 UTC 2021 up 32 days, 13:47, 1 user, load averages: 4.20, 3.98, 3.76

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.