2020-04-23 10:03:59 +0200 | received badge | ● Notable Question (source) |
2019-08-28 12:48:03 +0200 | received badge | ● Good Question (source) |
2019-08-27 22:25:01 +0200 | received badge | ● Nice Question (source) |
2017-10-14 22:00:13 +0200 | received badge | ● Famous Question (source) |
2017-04-05 23:34:21 +0200 | received badge | ● Notable Question (source) |
2016-08-17 17:10:41 +0200 | received badge | ● Student (source) |
2016-08-17 17:10:05 +0200 | received badge | ● Popular Question (source) |
2015-12-18 20:55:38 +0200 | received badge | ● Popular Question (source) |
2013-11-26 11:29:09 +0200 | asked a question | Computing the volume of a polytope that is not full-dimensional Let us assume we are given a polytope in $\mathbb{R}^d$ which is $k$-dimensional. How can we compute its $k$-dimensional volume in Sage? |
2013-11-05 03:36:07 +0200 | commented answer | Sum a list of vectors Dear tmonteil, I made an error. Everything you suggested in your answers works for me now. Sorry for the confusion and thanks for your help. |
2013-11-04 05:41:58 +0200 | commented answer | Sum a list of vectors I don't use vector as a variable name. And the list is constructed as list = [vector(item.sage()) for item in list]. I have to use .sage() because the items in list are GAP elements. |
2013-11-04 05:26:16 +0200 | commented answer | Sum a list of vectors I tried that before but the error I get is "TypeError: 'sage.modules.vector_integer_dense.Vector_integer_dense' object is not callable" |
2013-11-04 05:18:21 +0200 | asked a question | Sum a list of vectors I'm given a list of rational vectors, i.e., something like [(1,2,3), (1/2, 4, 5), (-1, 0, 0)], and I need to sum all vectors of this list. Even though I searched a bit, I cannot find the right sage command for this task. For example, sum() does not seem to work here. At least I couldn't figure out how to apply it to a list of such type. Of course I could use a loop and an additional variable that saves the partial sums. But there has to be a more elegant way. |