[sage-support] Limiting the function value range in 3dplots

2009-06-01 Thread littlemathteacher
Dear supporters, again thanks for the great support. One thing I am missing (or simply not understanding) is 3dplotting without automatically scaled up range of the function value. (This is just my first example at hand and surely not a good one: y, x = var ('x,y') plot3d(lambda x,y : (bessel_Y

[sage-support] Re: 3dplotting complex functions

2009-06-01 Thread littlemathteacher
Dear kcrisman, I think it would be enough to give an example in the tutorial or in the output of "plot3d?". Even more, an example gives kind of a smooth lesson in how really to use the 3dplotting and the ".imag()" or the ".real()" command at the same time. Starting from Jason's examples I did all

[sage-support] Re: fast slicing of matrix

2009-06-01 Thread William Stein
On Mon, Jun 1, 2009 at 5:16 PM, davidp wrote: > > Is there a fast way to create a submatrix? > > - > > > sage: version() > 'Sage Version 4.0.alpha0, Release Date: 2009-05-15' > sage: G = graphs.GridGraph([100,100]) > sage: L = G.laplacian_matrix() >

[sage-support] fast slicing of matrix

2009-06-01 Thread davidp
Is there a fast way to create a submatrix? - sage: version() 'Sage Version 4.0.alpha0, Release Date: 2009-05-15' sage: G = graphs.GridGraph([100,100]) sage: L = G.laplacian_matrix() sage: L 1 x 1 sparse matrix over Integer Ring sage: time

[sage-support] Re: sage-0.3.7.RC2.msi was installed on windows but unable to run

2009-06-01 Thread William Stein
On Mon, Jun 1, 2009 at 8:10 AM, William Stein wrote: > On Mon, Jun 1, 2009 at 7:58 AM, Narasimha wrote: >> >> Hello all, >> I am new to this group. I began using sage from a month ago on my >> linux system but I am eagerly waiting for a windows release. Today >> morning I have seen "sage-0.3.7.R

[sage-support] Re: Saving sage output?

2009-06-01 Thread Dan Drake
On Wed, 27 May 2009 at 07:01PM -0700, Baruch wrote: > Please note that I am a complete noob here. I've tried to find the > answer myself, but don't know quite where to turn. > > I wanted to save the output of a brief script. I used the logstart > instruction, 'logstart -o filename'. This seemed

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
Thanks. I finally got the tcl/tk issues worked out, so I now have tcl/ tk 8.5 with x86_64 support installed. eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ file / Library/Frameworks/Tk.framework/Versions/8.5/Tk /Library/Frameworks/Tk.framework/Versions/8.5/Tk: Mach-O universal binary

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Adam wrote: > So the default tcl has x86-64 but the default tk does not. So my best > guess is that I do not have to compile tcl from scratch, but I do have > to compile tk and in case you're wondering I haven't been able to > do that: > http://www.nabble.com/Error-compiling-tk-8.5.7-on-Mac-

[sage-support] Re: Packages and Full installation

2009-06-01 Thread Robert Bradshaw
On May 30, 2009, at 5:33 PM, Josh wrote: > I'm just wondering about ordering the DVD. Does that come with all > the additional packages (minus experimental)? This is a fairly > trivial question, but I just want to install everything just to be > able to show it off to my heavily pro-mathematica

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
Yeah, but I tried that... now I know why it didn't work: eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ sage setup_8.4.py install running install running build running build_py running build_ext building '_tkinter' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -m

[sage-support] Re: Can I write a sage program and run it from command line?

2009-06-01 Thread Robert Bradshaw
On May 30, 2009, at 11:40 AM, simon.k...@uni-jena.de wrote: > Dear Laurent, > > I think the idea is that Sage is "with batteries included" and should > not interfere with anything that you have on your system. Namely, > since Sage is rather big, it is very probable that Sage ships > something tha

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Adam wrote: > So I can try re-compiling tcl and hoping I get a 64bit compatible > version out of it (need to set some -archs keywords, I guess...) and Tcl has an "-enable-64-bit" switch in its configure script, so that might do the trick. > see if that gets me anywhere. But I'm a little bothere

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
Looks like you nailed that one eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ file / Applications/sage/local/bin/python /Applications/sage/local/bin/python: Mach-O 64-bit executable x86_64 eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ file /usr/ lib/libtcl8.4.dylib /u

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Adam wrote: > /Applications/sage/local/include/python2.5/pyport.h:761:2: error: > #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc > config?)." Ok, so the "-m64" was probably right... What does the "file" command say about the architecture of your files? I'm getting this: >

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
So perhaps there's something fundamentally wrong with my system setup? That wouldn't surprise me eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ echo $CC gcc eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ echo $CFLAGS eta /Applications/sage/spkg/optional/yacop1.0/Tkyn

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Very strange... I wonder why you have an "-m64" in your gcc's? My compilation statements look like this: > building '_tkinter' extension > gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd > -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DWITH_APPINIT=1 > -I/System/L

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
Same problem, but with a different dylib file selected: eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ sage setup.py install running install running build running build_py creating build creating build/lib.macosx-10.3-i386-2.5 creating build/lib.macosx-10.3-i386-2.5/lib-tk copying lib-

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Adam wrote: > gcc -m64 -L/Applications/sage/local/lib -bundle -undefined > dynamic_lookup build/temp.macosx-10.3-i386-2.5/_tkinter.o build/ > temp.macosx-10.3-i386-2.5/tkappinit.o -L/usr/lib/ -ltcl8.5 -ltk8.5 -o > build/lib.macosx-10.3-i386-2.5/_tkinter.so > ld warning: in /Applications/sage/local

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
I was able to follow your install instructions, and got a new error in sage this time: eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ sage setup.py install running install running build running build_py running build_ext building '_tkinter' extension gcc -fno-strict-aliasing -Wno-long

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Hi Adam, I've just uploaded a new tar file which also includes the lib-tk folder. http://nullhomotopie.de/tkinter.tar.gz This now has the following setup.py: > from distutils.core import setup, Extension > import os > import glob > setup(name='Tkinter', > version='1.0', > ext_mod

[sage-support] Re: sage-0.3.7.RC2.msi was installed on windows but unable to run

2009-06-01 Thread William Stein
On Mon, Jun 1, 2009 at 7:58 AM, Narasimha wrote: > > Hello all, > I am new to this group. I began using sage from a month ago on my > linux system but I am eagerly waiting for a windows release. Today > morning I have seen "sage-0.3.7.RC2.msi" on the sage website and > downloaded it. You're mayb

[sage-support] sage-0.3.7.RC2.msi was installed on windows but unable to run

2009-06-01 Thread Narasimha
Hello all, I am new to this group. I began using sage from a month ago on my linux system but I am eagerly waiting for a windows release. Today morning I have seen "sage-0.3.7.RC2.msi" on the sage website and downloaded it. The installation went well but when I clicked on the "Sage Maths" icon in

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
That is quite a process, but it's good to know that I'm not just being obtuse. That said, I'll now be obtuse: I found the path to the headers as you suggested... /Library/Frameworks/Tcl.framework/Headers or /Library/Frameworks/Tcl.framework/Versions/8.5/Headers/ But I don't understand what I nee

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Getting python to pick up the right Tcl on the Mac has been (still is) a real PITA. With the Yacop project we've now switched to using a private fork "Tkynter" of Tkinter with a much simplified build script. It just *might* be the case that something similar could work for you. I would recommend

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
I'm on a mac. There is no 'tk8.5-dev' package to install with fink. I've tried installing the activstate tcl/tk and their devtools. I've also tried installing tcl/tk from source. Is there anything else I can try? Certainly, following the FAQ, the instructions on the trac ticket above, or other