This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Finding primitive polynomials Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Finding primitive polynomials" Watch "Finding primitive polynomials" New topic
Author

Finding primitive polynomials

Nitish Bangera
Ranch Hand

Joined: Jul 15, 2009
Posts: 536
This code should find primitive polynomials[cannot be factored in a field where their coefficients are 0 and 1]. The problem is the first and the last degree are shown but the middle coefficients are coming to 0. I am not able figure out the problem properly. The same logic worked in C using unsigned longs.


[ SCJP 6.0 - 90% ] , JSP, Servlets and Learning EJB.
Try out the programs using a TextEditor. Textpad - Java 6 api
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32833
    
    4
Please provide more details. What is the algorithm you are using? What sort of errors are you suffering?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Finding primitive polynomials
 
Similar Threads
June Newsletter Puzzle
Loops
Dsplaying the alphabet with a loop?
extracting image binary data from file
'Moving' a circle along a line