Haskell Help..... pls anyone

Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
Locked
Anonymous

Haskell Help..... pls anyone

Post by Anonymous »

ok, im just trying to be as brief as possible, a group of us are trying to build a virtual calculator using functional programming language, Haskell.

the components of this calculator will have the parts associated with the A.L.U.....
such as the half-adder, ripple carrier, encoding the number from a denary state to a binary state and vice a versa.

however, the problem we are having so far is the multiplication and division. for the multiplication, especially when trying to multiply an odd and an even number,

i have found a predefined haskell function named, SHIFT.....
it can be defined as

shift :: Bit=> a -> Int -> a

the thing is we dont know how to go about muliplying and division, the previous stages i have stated we have figured out, such as the adding, encoder and decoder. can anyone help us to multiply these numbers in there denary form?

anyone an expert here in that area? pls help...... it will be waste for us to come to a pre-mature end, a little guidance needed.

thanks in advance...
nbabyccg@hotmail.com

Archived topic from Iceteks, old topic ID:4259, old post ID:34417
User avatar
Death
Posts: 7919
Joined: Thu Sep 30, 2004 10:12 pm

Haskell Help..... pls anyone

Post by Death »

Double post, moderator please remove one :)

Archived topic from Iceteks, old topic ID:4259, old post ID:34419
Locked