Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: adding n-tuples

by QM (Parson)
on May 16, 2019 at 15:23 UTC ( #11100098=note: print w/replies, xml ) Need Help??


in reply to adding n-tuples

Reading all of the replies, I'm really surprised that "n-tuple" somehow means "product", when it could as easily mean concatenation or something else entirely.

I would have liked to see a simple example worked out (which might have helped the OP in the first place). :D

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^2: adding n-tuples
by LanX (Cardinal) on May 16, 2019 at 15:38 UTC
    It's most likely homework.

    The canonic solution are 4 nested loops with an $sum += $c1*$c2*$c3*$c4 as the last step.

    Feel free to demonstrate it.

    update

    like here: Re: adding n-tuples

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2021-01-27 06:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?