yes I am just trying to reasign totol prob again so that a new value of total prob comes out .
On Nov 1, 12:24 am, Dan Drake <[email protected]> wrote: > On Mon, 31 Oct 2011 at 03:09PM -0700, Chappman wrote: > > Hi folks, I am relatively new to programming in Sagemath, and I am > > trying > > to find a method in of creating a n x n array, with probabilities as > > the entries of this array . > > Use a matrix, or even simpler, a list of lists. > > sage: m = matrix(3, [[1, 2, 3], [4,5,6], [7,8,9]]) > > > Here's the tricky part, then I have to create a coding program which > > uses the values in this array. > > > For i=1 to 5; > > For j=1 to i-1; > > total_prob= (some type of simple formula which refers back > > to entries in the array) > > end; > > end; > > It looks like you're just reassigning total_prob again and again. Is > that what you want? > > Dan > > -- > --- Dan Drake > ----- http://mathsci.kaist.ac.kr/~drake > ------- > > signature.asc > < 1KViewDownload -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
