Ask Your Question

Zatrapadoo's profile - activity

2024-01-29 19:20:23 +0100 received badge  Famous Question (source)
2024-01-29 19:20:23 +0100 received badge  Notable Question (source)
2017-04-14 10:20:38 +0100 received badge  Popular Question (source)
2014-07-05 23:24:13 +0100 answered a question Does sage have facilities to help prove theorems?

It seems that you are asking whether Sage can think. It cannot. We are fortunately still not there. That would be very dangerous for human kind, as has been recently remarked by Stephen Hawking, among other people. There are many people trying to make it happen, though, but it still seems quite far.

2012-01-29 00:57:32 +0100 received badge  Nice Answer (source)
2011-12-21 12:54:58 +0100 received badge  Teacher (source)
2011-12-20 12:43:07 +0100 received badge  Editor (source)
2011-12-20 12:41:12 +0100 answered a question Defining a function of the form $f(x_1,x_2,...,x_n)=\sum_{i=0}^n x_i$

What about this? Assume $x$ is a list. Then:

def f(x):
    return sum(x)

(I just think it's easier to remember than the answer by DSM.)

2011-12-09 15:38:51 +0100 received badge  Supporter (source)
2011-12-09 15:29:22 +0100 commented question Sage crashes when inverting a large matrix - alternatives?

Thanks for the comments. I am sorry I did not come back before. (The reason was basically that I did not get notified of your comments by the system.) I do not know how the binary was compiled because I am using the version installed in the university's server. I will try to provide a concrete example, the way Simon King has suggested below.

2011-11-22 13:32:49 +0100 received badge  Student (source)
2011-11-21 13:46:14 +0100 asked a question Sage crashes when inverting a large matrix - alternatives?

I'm trying to find the inverse of a 50x50 dense matrix of rational numbers. The matrix is created using the method matrix_from_rows from another matrix that was created using matrix(QQ,B) from a list of lists of rational numbers B. The error I get is the following:

/usr/.../sage-4.7.1/local/bin/sage-sage: line 301: 27416 Killed                  sage-cleaner &>/dev/null
/usr/.../sage-4.7.1/local/bin/sage-sage: line 301: 27417 Killed                  sage-ipython "$@" -i

I'm doing this at the university, so the number of processors and RAM both seem to be infinite.

I wonder if there is an alternative. For example, I could try to invert the matrix in Mathematica or Maple. Is there an easy way to interface with them? Thank you!