2018-02-03 18:06:06 +0100 | received badge | ● Student (source) |

2016-09-25 17:35:39 +0100 | received badge | ● Famous Question (source) |

2015-01-23 21:50:55 +0100 | received badge | ● Famous Question (source) |

2015-01-06 07:50:39 +0100 | received badge | ● Nice Answer (source) |

2014-11-28 20:27:23 +0100 | received badge | ● Notable Question (source) |

2013-12-23 12:13:51 +0100 | received badge | ● Notable Question (source) |

2013-09-13 15:25:08 +0100 | received badge | ● Famous Question (source) |

2013-06-26 09:28:16 +0100 | received badge | ● Popular Question (source) |

2013-06-05 10:13:22 +0100 | received badge | ● Popular Question (source) |

2013-02-12 15:36:50 +0100 | received badge | ● Notable Question (source) |

2012-11-15 03:04:27 +0100 | received badge | ● Popular Question (source) |

2012-09-06 14:47:58 +0100 | commented answer | import sage packages in python Thanks. This does help! |

2012-09-06 14:47:42 +0100 | marked best answer | import sage packages in python Matrix -> type 'sage.matrix.matrix_integer_dense.Matrix_integer_dense' `from sage.matrix.all import Matrix` or `from sage.matrix.constructor import Matrix` vector -> type 'sage.modules.vector_integer_dense.Vector_integer_dense' `from sage.modules.free_module_element import vector` ZZ -> type 'sage.rings.integer_ring.IntegerRing_class' `from sage.rings.integer_ring import ZZ` MixedIntegerLinearProgram -> type 'sage.numerical.mip.MixedIntegerLinearProgram' `from sage.numerical.mip import MixedIntegerLinearProgram`
Once you know roughly where the class is defined, for example So that tells you that you can import |

2012-09-06 13:35:55 +0100 | answered a question | Can I use amsmath in notebook? Try the following in a notebook: |

2012-09-06 13:32:39 +0100 | commented answer | Graphs from inside a function you can use show(), save('/my/favorite/folder/for/graphs/graph1.png'), return graph object from the function and have another function show it. |

2012-09-06 13:29:57 +0100 | asked a question | import sage packages in python An easy way to use sage in python files is demonstrated in the Sage Tutorial. Well, what if I don't want to import Instead of this command above, I just want to import the following: - Matrix -> type 'sage.matrix.matrix_integer_dense.Matrix_integer_dense'
- vector -> type 'sage.modules.vector_integer_dense.Vector_integer_dense'
- ZZ -> type 'sage.rings.integer_ring.IntegerRing_class'
- MixedIntegerLinearProgram -> type 'sage.numerical.mip.MixedIntegerLinearProgram'
So I should be able to write something like this in python I just don't know what they are. Any help is appreciated. Thanks. |

2012-07-03 18:19:51 +0100 | commented answer | TypeError: 'int' object is not iterable Oh boy... I feel silly how that stumped me all day long. Thank you! |

2012-07-03 18:19:08 +0100 | marked best answer | TypeError: 'int' object is not iterable The problem is in the line The that problem should go away. |

2012-07-03 13:03:11 +0100 | asked a question | TypeError: 'int' object is not iterable Hello, For a given matrix M (m by n) and vector V of size n, my goal is to do the following: - Take the $\text{i}^{\text{th}}$ column of M and convert them as keywords for a dictionary and associate the keywords to the $\text{i}^{\text{th}}$ value of the vector V.
- I do (1) in MatVec(M,V) in the code below by creating a dictionary for each keyword and value. Finally I try to merge all the dictionaries.
Here is my code: The error I get is: I am not so sure why I am getting this error. |

2012-07-03 12:11:51 +0100 | answered a question | Emacs IPython Notebook perhaps someone can forward this to the sage trac or provide it a tracking number (if the idea has not been considered already). |

2012-06-25 13:26:23 +0100 | received badge | ● Nice Answer (source) |

2012-06-22 15:35:03 +0100 | received badge | ● Teacher (source) |

2012-06-22 15:35:03 +0100 | received badge | ● Necromancer (source) |

2012-06-20 14:46:13 +0100 | answered a question | "code for hash md5 was not found" after fresh Sage 5.0 install on fresh Ubuntu 12.04 install Try installing libssl0.9.8. e.g.: I got a similar error before installing the library above: (more) |

2012-05-29 10:57:24 +0100 | commented answer | How to find the path of the maximal distance between two vertices on a complete digraph? That was a wonderful explanation of the solution. Thank you!!! |

2012-05-29 10:56:52 +0100 | marked best answer | How to find the path of the maximal distance between two vertices on a complete digraph? One way to do the general case uses the There is also a At the theoretical level, the problem is really easy for this specific graph since there are edges between all the vertices. Thus, you can just pick the endpoints and take any permutation of the remaining vertices (or subset of them) to get a path of a fixed length. |

2012-05-29 10:56:52 +0100 | received badge | ● Scholar (source) |

2012-05-29 10:56:51 +0100 | received badge | ● Supporter (source) |

2012-05-25 16:27:40 +0100 | commented question | How to find the path of the maximal distance between two vertices on a complete digraph? In general, I would also like to find if the complete digraph has n vertices, how can I find the path(s) from any two vertices of distance (n-1), (n-2), ..., 2? |

2012-05-25 15:35:07 +0100 | received badge | ● Editor (source) |

2012-05-25 15:29:27 +0100 | answered a question | How to install sage5 in OpenSuSE 11.4 Have you tried building from source? If you need help installing the necessary packages to make sage, review the packages you'll need in SUSE from the debian repositories for build-essential, m4, and gfortran |

2012-05-25 14:06:58 +0100 | asked a question | How to find the path of the maximal distance between two vertices on a complete digraph? I was wondering how can I find the path of the maximal distance between two vertices on a complete digraph. Suppose the digraph has 5 vertices:
I have seen a maximal flow example which is nice but it is not the same type of problem. How can I use sage to find the longest path? |

2011-08-16 10:45:55 +0100 | answered a question | Why does Sage not install with Vista? did you mean this link: "http://localhost:8000 "? At which step are you stuck on in the "http://www.sagemath.org/mirror/win/README.txt"? |

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.