Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Parallel Computation

by zentara (Archbishop)
on Nov 16, 2010 at 16:38 UTC ( #871774=note: print w/ replies, xml ) Need Help??


in reply to Parallel Computation

I like to split both numbers into digits and then have different programs/threads/processes add them and provide the carry etc.. and get the final answer.

So you mean you want to write a computer program to add 5 digit numbers, the way we did it manually before calculators and computers?

Why? The whole purpose of computers is to avoid having to do that! :-)

P.S. If you are serious, learn to split numbers into digits, then learn to add them via modulus. See grep integer and fractional part from a division (modulus ?)


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh


Comment on Re: Parallel Computation
Re^2: Parallel Computation
by Anonymous Monk on Nov 16, 2010 at 16:47 UTC
    Why? The whole purpose of computers is to avoid having to do that! :-)

    Yeah, but the whole point of computer science class is to learn how the computers do it. The point of asking for help with your homework being learning how to cheat your way through life. Can't seem to learn that early enough these days.

      The point of asking for help with your homework being learning how to cheat your way through life.

      The best lesson you'll learn is that you can't cheat your way through life.

      You might make it through college that way, but then reality will bite.

      And if you haven't learnt the lesson by then, you soon will, but it'll be too late.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
      Hi, I am the original poster. This is not the homework, and only for learning purpose. I am not in school either from many years.
        Pardon our suspicions. We get a lot of posters who show up and anonymously as us to solve problems that turn out to be homework. Why not sign in and become a member of the Monastery? (It's easier to trust someone if you know who they are as well.)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://871774]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (16)
As of 2014-12-18 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (59 votes), past polls