ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 05 May 2015 14:57:33 -0500successive calls to maximahttp://ask.sagemath.org/question/26728/successive-calls-to-maxima/I have found, and have read, a bit on calling Maxima from Sage but I have only seen simple one-time calls like
maxima.eval('4*x');
What I want to do is this (which is a *.sage file I call from the terminal using ./sage file.sage).
print("In Sage input file");
d = maxima.eval('halt (r,s,zeta,rho) := (1-Q*rho^r)-zeta*rho^s*(1-rho^r)');
d2 = maxima.eval('elem([2,e12,e22],elem([2,e11,e21],halt(2,1,zeta1,rho11)+diff(halt(2,1,zeta2,rho12),rho12)+halt(2,1,zeta2,rho22),[rho11,rho21]),[rho12,rho22])');
print d2;
d3 = maxima.eval('subst(R,e11,d2');
print d3;
But `print d3' just gives me 'd2'.... I'm sure this is very very simple but I haven't found it yet.
Thanks!
natepowerTue, 05 May 2015 14:57:33 -0500http://ask.sagemath.org/question/26728/CLI System Requirementshttp://ask.sagemath.org/question/8597/cli-system-requirements/Can I run Sage using only the command line (not the notebook interface) on my extremely low end system?
My Specs
cpu: 433MHz Intel Celeron
ram: 256MB
hdd: 13GB
Debian Squeeze LXDE
I currently am running Maxima (maxima.sourceforge.net) on this computer. I generate scripts in a text editor. Then I run Maxima in a terminal and use a command to run the script. I've been trying to learn/review a couple of classes (signals & systems, analog and digital communications) and Maxima has been an excellent tool. I was getting so bogged down in integration and trig IDs.
I'm not an advanced user but I'm at the point where I would like to tinker some of the Maxima packages. And I found they are written in Lisp which I am unfamiliar with. I've been reading/doing lisp tutorials and stumbled across a discussion about Sage. It is my understanding that Sage uses Maxima and it has a CLI. It is also my understanding that Sage is built using Python (which I know a little better than lisp)...and I could write scripts using python.
I couldn't find Sage in the Debian repo. And after reading some of the Sage website it looks like they recommend 2GB of ram.
Before I go thru the process of installing Sage and all of the programs it needs (without my Synaptic security blanket), I would like to get some input. Especially from folks who use the CLI. My hope is that the command line is *much* less cpu/ram intensive than the fantastic looking GUI.
Worst comes to worst I'll just have to learn Lisp. I'm sure Lisp *is* the reason Maxima even runs on my 12 year old system.
Thanks.joeTue, 27 Dec 2011 13:08:42 -0600http://ask.sagemath.org/question/8597/