mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Programming

Reply
 
Thread Tools
Old 2008-09-13, 18:55   #23
sylvester
 
sylvester's Avatar
 
Dec 2007
RSM, CA, USA

2·3·7 Posts
Default

Quote:
Originally Posted by nuggetprime View Post
What's wrong?
Your compiler. Please get a compiler that really supports long double, like icc/icpc.
sylvester is offline   Reply With Quote
Old 2008-09-14, 08:07   #24
nuggetprime
 
nuggetprime's Avatar
 
Mar 2007
Austria

2×151 Posts
Default

Quote:
Originally Posted by sylvester View Post
Your compiler. Please get a compiler that really supports long double, like icc/icpc.
Doesn't the gcc support long double if it has a m128-bit-long-double (it doesn't change anything). I'm quite sure the gcc can do that.

--nuggetprime
nuggetprime is offline   Reply With Quote
Old 2008-09-14, 09:50   #25
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

22·1,549 Posts
Default

Quote:
Originally Posted by nuggetprime View Post
Doesn't the gcc support long double if it has a m128-bit-long-double (it doesn't change anything). I'm quite sure the gcc can do that.
retina is online now   Reply With Quote
Old 2008-09-14, 11:37   #26
nuggetprime
 
nuggetprime's Avatar
 
Mar 2007
Austria

2×151 Posts
Default

Quote:
Originally Posted by retina View Post
Sorry, I've somewhat looked through the gcc manual and found nothing helping.
Can you please tell me what it is?

thanks,
nuggetprime
nuggetprime is offline   Reply With Quote
Old 2008-09-14, 12:02   #27
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

22×1,549 Posts
Default

Quote:
Originally Posted by nuggetprime View Post
Sorry, I've somewhat looked through the gcc manual and found nothing helping.
Can you please tell me what it is?
The reason I didn't directly answer is because I don't know. I'm just a simple ASM programmer that occasionally dabbles in C when I have to.

Perhaps you can try gnu.gcc.help, perhaps you can try google/yahoo/MSN. You will probably find your answer faster that way anyway. I just used google now and I think I have an idea about your question, but since I am not expert I will let you read about it yourself to fully understand the reason.
retina is online now   Reply With Quote
Old 2008-09-14, 13:18   #28
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11·577 Posts
Default

Quote:
Originally Posted by nuggetprime View Post
Doesn't the gcc support long double if it has a m128-bit-long-double (it doesn't change anything). I'm quite sure the gcc can do that.

--nuggetprime
I think it depend upon the OS and the version of gcc. I know for a fact that some switches in gcc work on some systems, but not others. This could be the case of support added for a specific system.
rogue is online now   Reply With Quote
Old 2008-09-14, 16:48   #29
nuggetprime
 
nuggetprime's Avatar
 
Mar 2007
Austria

30210 Posts
Default

I'm understanding my error.

It should have been 1.0L/7.0 instead of 1.0/7.0.

--nuggetprime
nuggetprime is offline   Reply With Quote
Old 2008-09-14, 17:17   #30
nuggetprime
 
nuggetprime's Avatar
 
Mar 2007
Austria

12E16 Posts
Default IBDWT help

I'm currently not really understanding IBDWT. The formula attatched would always give a complex number number,or? Can you, if possible,provide a small example?

Thanks,
nuggetprime
Attached Thumbnails
Click image for larger version

Name:	ibdwt.png
Views:	103
Size:	180.6 KB
ID:	2697  
nuggetprime is offline   Reply With Quote
Old 2008-09-15, 15:02   #31
nuggetprime
 
nuggetprime's Avatar
 
Mar 2007
Austria

2·151 Posts
Default

..up
can anyone you please provide a small IBDWT example,like in "FFT explanation for non-math guys" would probably let me grasp it,for example Mod(1739^2,2^11-1=2047).

Also(if possibe) how can this be generalized to k*b^n+/-c as gwnum can do?

Many thanks,
nuggetprime
nuggetprime is offline   Reply With Quote
Old 2008-09-15, 20:24   #32
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

103×113 Posts
Default

The best place to find a nice explanation of [including a worked example] the IBDWT is the original Crandall/Fagin paper.

Teaching yourself the rudiments of FFTs and working through the above paper are pretty much the price of admission to the IBDWT/FFT club.
ewmayer is offline   Reply With Quote
Old 2008-09-16, 14:31   #33
nuggetprime
 
nuggetprime's Avatar
 
Mar 2007
Austria

2·151 Posts
Default

Today I grasped that. But in the paper they're only talking about Fermat and mersenne numbers. I can generalize from 2^n-1 to b^n-1, but I can't generalize b^n-1 to k*b^n-1.
LLR uses IBDWT for LLR tests, so for k*2^n-1 IBDWT must be somewhat possible.
Are proth tests IBDWT capable?

I know I could study gwnum, but I think it's rather complex,so I'll probably get the answer here faster.

Thanks,
nuggetprime
nuggetprime is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone know enough about coding to do this? jrafanelli Software 2 2018-01-11 15:16
Python Coding Help? kelzo Programming 3 2016-11-27 05:16
Zhang's OPQBT coding help? flouran Programming 0 2009-07-25 02:43
coding midlet for TF starrynte Programming 1 2008-12-30 22:31
Coding Challenges R.D. Silverman Programming 18 2005-08-09 13:14

All times are UTC. The time now is 20:32.


Fri Jul 16 20:32:03 UTC 2021 up 49 days, 18:19, 1 user, load averages: 1.65, 1.93, 2.05

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.