![]() |
|
|
#34 |
|
Sep 2005
5 Posts |
I have written a program that takes (N*log2(N)) bit operations to multiply 2 N digit numbers. My question is that what else does Prime95 use to multiply so fast. Could some one explain how to make the program a bit faster? What are the techniques called, any good resources?
|
|
|
|
|
|
#35 | |
|
Oct 2006
73 Posts |
Quote:
Does the above generation of the transform matrix need to be altered for working in a different base, or is it simply a case of converting your decimal number to the desired base and taking the length of the number in the new base as the defining factor* for the size of the transform matrix which in turn is still generated as above? *If you'll pardon the pun. |
|
|
|
|
|
|
#36 | |
|
∂2ω=0
Sep 2002
República de California
103×113 Posts |
Quote:
1) The base appears explicitly in the carry step following the IFFT, and 2) The base appears implicitly in the precision-dependent limits on the sizes of inputs to the FFT. But the actual core FFT routines are base-independent. |
|
|
|
|
|
|
#37 |
|
Oct 2006
73 Posts |
Marvellous, thank you. Now any chance of being pointed at a suitable site / book (preferably the former) which explains why powers of e^(i * 2 * pi / n) work as a Fourier Transform matrix. Yes, I appreciate I could google this and have done so, but mathematical functions and definitions tend to be very flexible on the web, which isn't surprising when you take into account the fact that any idiot can put a webpage up.
I also appreciate I'm coming at this from the wrong end - I stumbled across the Mersenne Primes when looking for a DC project to get involved in, and have tried to backtrack through the proofs and methods so that I understand what's going on. Unfortunately backtracking through proofs, as opposed to building on proofs you already have, is proving to be rather convoluted. |
|
|
|
|
|
#38 | |
|
P90 years forever!
Aug 2002
Yeehaw, FL
2×53×71 Posts |
Quote:
|
|
|
|
|
|
|
#39 |
|
Aug 2005
Brazil
2·181 Posts |
I tried to use the fft function that came with the matrix package (numpy) of python (If I can't even use a pre-made, how can I write one?). First I made a stupid error, and then I got it to work. I then realized it returned results like:
Code:
myfft(987654321, 123456789) -> 121932631112626272 987654321*123456789 -> 121932631112635269 Last fiddled with by fetofs on 2007-06-16 at 22:51 |
|
|
|
|
|
#40 | |
|
(loop (#_fork))
Feb 2006
Cambridge, England
72·131 Posts |
Quote:
I wonder whether you're transforming back from an array of digits to an integer using (double-precision) FP rather than exact integer arithmetic; could you post your code? You should be doing the FFT on an array of at least eighteen entries if you're working with nine-digit inputs, set up with contents like [0,0,0,0,0,0,0,0,0,9,8,7,6,5,4,3,2,1] |
|
|
|
|
|
|
#41 |
|
"Forget I exist"
Jul 2009
Dumbassville
100000110000002 Posts |
I said i couldn't understand but I've heard of FFT and next thing I know it's not even here. I'd love to learn it but I fear any explanation is above me. This thread shows up 7th for fft explanation on google already.
Last fiddled with by science_man_88 on 2011-02-19 at 15:13 |
|
|
|
|
|
#42 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
best thing I've found for visually seeing it is http://www.gweep.net/~shifty/portfol...eet/index.html
|
|
|
|
|
|
#43 |
|
May 2011
FR Germany - Berlin
2×7 Posts |
As Bagels usually have one - a hole - also, I might think, there's one in my own knowledge about the notation of the math.
'Cose: got me two books, first the famous one authored by Richard Crandall & Carl Pomerance: "Prime Numbers - A Computational Perspective" and 2nd a rather old book authored by Bruce, J.W, Giblin P.J., Rippon, P.J "Microcomputers and Mathematics" - with I found rather helpful and interesting. My problem comes more with the first mentioned book by Crandall et al. it uses mathm. notations which I do not understand, e.g. an "=" with three horizontal lines and sum-signs and pi-signs and brackets... Could someone please give me a hint, where I probaply could get information on this? Some "search-strings" for an extended google/amazon/wikipedia-search would also be very much helpful to me. Cheers, ciic. |
|
|
|
|
|
#44 |
|
Jun 2003
10011101110112 Posts |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Any technology you guys are excited about? | jasong | Lounge | 31 | 2015-10-09 20:55 |
| These dell guys can't possibly be serious... | Unregistered | Hardware | 12 | 2006-11-03 03:53 |
| You guys are famous | jasong | Sierpinski/Riesel Base 5 | 1 | 2006-03-22 01:06 |
| Hi guys ! | Crystallize | Lounge | 6 | 2003-09-27 13:08 |
| How do you guys do this? | ThomRuley | Lone Mersenne Hunters | 1 | 2003-05-29 18:17 |