ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 05 Nov 2019 18:54:26 +0100How to create 31-tuples with nonnegative entries that sum to 1https://ask.sagemath.org/question/48623/how-to-create-31-tuples-with-nonnegative-entries-that-sum-to-1/Hello. I would like to know how to create all 31-tuples (sequence of 31 numbers) whose entries are real, nonnegative, and sum up to one. One such kind of tuple would be one where exactly one of the 31 entries is 1 and all of the other remaining 30 entries are 0.
How could I ask Sage to do this?
Thank you.merluzaTue, 05 Nov 2019 18:54:26 +0100https://ask.sagemath.org/question/48623/