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.Wed, 25 Aug 2010 03:31:48 +0200Calling Unix shell command as an expressionhttps://ask.sagemath.org/question/7633/calling-unix-shell-command-as-an-expression/Can I call a Unix shell command from within Sage as an expression? For example, I might want to do something like
process_local_directory_for_something(!pwd)
Unfortunately, the !-operator does _very_ weird things when used as an expression (bug?), so the above doesn't work. The os.system() does not work either (it returns the return code instead of the output). Of course, Python has options, like handling pipes or subprocesses, but for many applications this is a bit tedious.jsrnWed, 25 Aug 2010 03:31:48 +0200https://ask.sagemath.org/question/7633/How do I find if/where a specific algorithm has been implementedhttps://ask.sagemath.org/question/7580/how-do-i-find-ifwhere-a-specific-algorithm-has-been-implemented/Hi
Since beginning using Sage, I have often been in the position that I need to find a specific algorithm for solving some problem. I might or might not already know that Sage has _some_ algorithm for doing it, but I want this one (for some reason). Is there an index or an easy way to search for this? The times I have tried using the search bar of sagemath.org, it has mostly been irrelevant posts, while a search on google like "<algorithm-name> site:sagemath.org" can give a bit as it also searches through the comments of the source code; but this is not very user-friendly, and it can take some time from finding some comment in a file, to know how to actually invoke specifically that code.
An example of this is the Berlekamp-Zassenhaus algorithm for factorising polynomials over integers.jsrnThu, 19 Aug 2010 03:49:49 +0200https://ask.sagemath.org/question/7580/