2019-08-02 12:55:09 -0500 | received badge | ● Popular Question (source) |

2015-09-09 18:33:34 -0500 | received badge | ● Good Answer (source) |

2015-09-09 18:33:34 -0500 | received badge | ● Nice Answer (source) |

2015-03-02 12:36:21 -0500 | received badge | ● Guru (source) |

2015-03-02 12:36:21 -0500 | received badge | ● Great Answer (source) |

2014-06-28 20:14:31 -0500 | marked best answer | Finding the problem in a doctest timeout After changing a file and running the doctests, I'm getting: Is there an easy way to find out which test it was running when the timeout occurred? Or, equivalently, which tests did pass successfully? |

2012-04-10 19:47:52 -0500 | received badge | ● Taxonomist |

2012-03-08 19:27:00 -0500 | received badge | ● Famous Question (source) |

2011-11-15 04:54:16 -0500 | received badge | ● Good Answer (source) |

2011-08-25 03:25:10 -0500 | received badge | ● Nice Answer (source) |

2011-08-12 06:24:17 -0500 | received badge | ● Nice Answer (source) |

2011-08-11 06:53:12 -0500 | answered a question | numerical_approx() weirdness? When you write |

2011-07-21 14:52:33 -0500 | received badge | ● Notable Question (source) |

2011-05-23 03:46:47 -0500 | commented question | How to magically define variables and use functional notation instead of methods I'm not sure I understand your question. Are you talking about pre-defining things you might want to use; for example, in your init.sage file? If you're not, I don't know what you mean, since Python will complain about any symbol it doesn't recognize, and I don't believe there is a way to change that. (I could be wrong, though.) |

2011-05-20 10:12:26 -0500 | received badge | ● Nice Answer (source) |

2011-05-20 03:36:30 -0500 | answered a question | Solve system of equations with additional conditions in sage Since $n$ and $k$ are both bounded, you can try something like this: I think this will take some time to run, but it should get you all the solutions you want. |

2011-05-18 17:13:02 -0500 | commented question | Solve system of equations with additional conditions in sage For eqn1, there is an obvious upper and lower bound for n, and for each choice of n in this range, you will have 1 equation in four unknowns to determine a,b,c,d (in addition to the constraints). Once you decide on b, you can choose k freely, and this will determine e. What sort of answer are you hoping to get? |

2011-05-18 17:13:02 -0500 | received badge | ● Commentator |

2011-05-18 10:23:11 -0500 | answered a question | How-to: sum To add to the diversity of answers here, another valid approach is to add a single line to what you already have: This will return 100. The point is that you can use this syntax to sum the values of a proper function, but not arbitrary Python expressions. |

2011-05-11 13:49:54 -0500 | answered a question | substitute expression instead of formal function symbol I'm not sure I understand why your example doesn't work, but here is a workaround: |

2011-03-31 23:31:06 -0500 | received badge | ● Popular Question (source) |

2011-02-26 11:02:09 -0500 | received badge | ● Nice Answer (source) |

2011-02-26 07:32:28 -0500 | answered a question | How do I create subsets of sets? Here is one solution: For more documentation on this, look for list comprehensions in your favorite Python documentation. |

2011-01-07 19:01:10 -0500 | received badge | ● Nice Answer (source) |

2011-01-07 19:01:10 -0500 | received badge | ● Good Answer (source) |

2011-01-07 19:01:10 -0500 | received badge | ● Enlightened (source) |

2011-01-04 01:58:33 -0500 | received badge | ● Nice Answer (source) |

2011-01-04 01:58:33 -0500 | received badge | ● Good Answer (source) |

2010-12-28 13:48:45 -0500 | received badge | ● Self-Learner (source) |

2010-12-28 13:48:45 -0500 | received badge | ● Nice Answer (source) |

2010-12-24 05:13:09 -0500 | received badge | ● Good Question (source) |

2010-12-24 05:13:09 -0500 | received badge | ● Nice Question (source) |

2010-12-15 11:12:18 -0500 | received badge | ● Good Answer (source) |

2010-12-15 07:51:32 -0500 | received badge | ● Nice Answer (source) |

2010-12-15 06:43:38 -0500 | commented answer | multidictionaries You're welcome! In fact, lists won't work as keys. Look up 'mutable' vs. 'immutable' in connection with Python to understand why. |

2010-12-15 03:16:19 -0500 | answered a question | multidictionaries If I correctly understand your question, dictionaries can do this. You just need to use tuples as keys. Example: |

2010-12-14 03:31:30 -0500 | received badge | ● Editor (source) |

2010-12-14 03:29:42 -0500 | answered a question | How to add term order to free module? To slightly elaborate on John's comment, "CombinatorialFreeModule" allows you to specify an arbitrary comparison function on the elements. Here is a sample doctest from sage.categories.modules_with_basis : |

2010-12-12 08:24:09 -0500 | answered a question | Idempotent help Here is some code for this: For a fixed n, len(n.prime_factors()) gives the number of prime factors of n and sum(a.is_idempotent() for a in Zmod(n)) gives the number of idempotents. |

2010-12-08 03:43:41 -0500 | commented answer | A Combinatorics Problem - Product Rule Indices See also OrderedSetPartitions, which may be helpful. |

2010-12-02 14:30:33 -0500 | answered a question | why won't simplify multiply out square roots? Probably not what you're looking for, but the best I could do: |

2010-11-12 04:44:37 -0500 | answered a question | multi-symmetric functions and multi-partitions I don't think that what you want is available directly in sage, although there may be some tricks available depending on exactly what you want to do. I don't have time to go into more depth right now, but please post this question to the Google Group: sage-combinat-devel. There are a lot of people (including me!) who read that, who would be interested in getting this kind of functionality into sage. |

2010-11-09 04:00:33 -0500 | commented answer | Compiling R with PNG support This was the key. I did not have libpng installed. I installed it, re-compiled r with sage -f, and everything works. Thanks for your help, everyone! |

2010-11-09 02:57:14 -0500 | commented answer | Compiling R with PNG support Thanks, I'll try this. |

2010-11-09 02:51:50 -0500 | answered a question | Compiling R with PNG support (This should maybe be a comment, but I'm posting as an answer for better formatting.) I just discovered the following: So apparently, I have X11 support, but not PNG support. Does that suggest anything that I might be able to do? |

2010-11-09 02:01:42 -0500 | commented answer | Compiling R with PNG support I don't think we've discussed this before (maybe that was Jason Grout?). The file /usr/include/X11/Xwindows.h is present on my system; I'll try at some point to take a look at the spkg-install in more detail and see if I can't figure out what is failing. Thanks for pointing out the Trac ticket! |

2010-11-08 13:18:40 -0500 | received badge | ● Student (source) |

2010-11-07 11:24:19 -0500 | asked a question | Compiling R with PNG support I just compiled sage 4.6 from source on an Ubuntu 10.04 machine. I have the xorg-dev packages installed. However, I still cannot get r to save the plot of a histogram. Specifically, I am getting: What But I can't save the resulting graphic. (Of course, I can print-screen and get it that way, but I was hoping there would be a better way.) Can I compile R with PNG support somehow? Or is there another workaround which will give me what I want (namely, saving a picture of a histogram)? Thanks. |

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.