Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: adding n-tuples

by QM (Parson)
on May 16, 2019 at 15:23 UTC ( [id://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 (Saint) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11100098]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-05-29 04:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found