From ganeshyellapu at bel.co.in  Tue Jan  3 08:34:50 2012
From: ganeshyellapu at bel.co.in (ganeshyellapu at bel.co.in)
Date: Tue, 3 Jan 2012 20:04:50 +0530
Subject: [ntl] Irreducible poly over GF(2)
Message-ID: <0cba85578d8b318167c5df7d2b847e17.squirrel@mail.bel.co.in>



Hi,

i am generating different irreducible polynomials of same degree over GF(2)

The code is below

//Initializing the seed
time_t? t = time(NULL);
SetSeed(to_ZZ( (float) t );

GF2X f;
long d=10;

for(i=0;i<5;i++)
?BuildIrred_GF2X(f,d);

It is generating the same polynomial for 5 times

what might be the reason for this?

Lookig forward to the assistance...

with regards
Ganesh Y
Bharat Electronics,
Bangalore
India


Please send mail to @bel.co.in only 
Confidentiality Notice 
The information contained in this electronic message and any attachments to this 
message are intended for the exclusive use of the addressee(s) and may contain 
confidential or privileged information. If  you are not the intended recipient, 
 please notify the sender at Bharat Electronics  or support at bel.co.in 
immediately and destroy all copies of this message and any attachments. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shoup.net/pipermail/ntl_shoup.net/attachments/20120103/e03a3c32/attachment.html>

From Tim.Odenthal at biw.kuleuven.be  Tue Jan 10 10:37:21 2012
From: Tim.Odenthal at biw.kuleuven.be (Tim Odenthal)
Date: Tue, 10 Jan 2012 17:37:21 +0100
Subject: [ntl] hyperbolic functions needed for std::complex...
Message-ID: <4F0C6941.4060207@biw.kuleuven.be>

Hi!

I wanted to use ntl's arbitrary precision class RR for complex number 
calculations, but hit a small roadblock, when trying to calculate a 
complex cosine. std::complex needs cosh( RR &)  for that.

Since exp( RR&) is obviously already implemented, I could easily make a 
patch (see below) which now includes both sinh and cosh for the RR 
class. These could probably be improved on, efficiency-wise, and I'd 
like to ask you to check whether I lose precision inadvertently (which I 
doubt).

I send a small test program as well to see that I indeed calculate the 
complex cosine... ;-)

Maybe that patch is useful for someone,

have a nice day

Tim Odenthal

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_complex.cpp
Type: text/x-c++src
Size: 688 bytes
Desc: not available
URL: <http://shoup.net/pipermail/ntl_shoup.net/attachments/20120110/af214928/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ntl_hyperbolic.patch
Type: text/x-patch
Size: 1111 bytes
Desc: not available
URL: <http://shoup.net/pipermail/ntl_shoup.net/attachments/20120110/af214928/attachment-0001.bin>

