[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
help on calculating sum of combinations
From: |
sanjiv kapur |
Subject: |
help on calculating sum of combinations |
Date: |
Wed, 08 Oct 2003 08:05:18 +0530 |
hello
i am a newbie for using octave (on rh9.0) ,though used a little matlab
before.may i request help in solving the problem as under,in case a function
has been developed by somebody.
from a matrix or an array,i want to calculate the sum of various
combinations, i.e
if A=[2, 3, 4,5]
how do i get
a1=2+3+4+5
a2=2*3+2*4+2*5
a3=2*3*4+2*3*5+2*4*5+3*4*5
a4=2*3*4*5
please guide me.
thanks and regards
sanjiv
_________________________________________________________________
Make fun prints Click here to order. http://www.kodakexpress.co.in Delivery
anywhere in India.
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- help on calculating sum of combinations,
sanjiv kapur <=