[sage-support] Re: Installing latest sage
Sage now works on my tablet. It took about 23 hours to compile, and I had no problems with connecting to the backend of sage on cantor. On Nov 29, 8:13 am, Dima Pasechnik dimp...@gmail.com wrote: Pentium M does MMX, SSE, SSE2. Which is kind of 10 years old. Things have moved on a lot, and keeps moving, see e.g.http://en.wikipedia.org/wiki/Advanced_Vector_Extensions -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Installing latest sage
Well for some reason when I am in the sage directory using the terminal I try calling up sage, and sage - testall this is what I get: No command 'sage' found, did you mean: Command 'osage' from package 'graphviz' (main) Command 'save' from package 'atfs' (universe) Command 'page' from package 'tcllib' (universe) However I am able to run Sage in Cantor without any problems. I take it sage is still building itself as I type this message up, or do you mean when I run sage -testall? On Nov 29, 10:23 am, kcrisman kcris...@gmail.com wrote: On Nov 29, 12:08 pm, Eric Kangas eric.c.kan...@gmail.com wrote: Sage now works on my tablet. It took about 23 hours to compile, and I had no problems with connecting to the backend of sage on cantor. That's awesome! Do you think you could run sage -testall if you have a few free days to let your tablet just sit? That could be useful. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Installing latest sage
The testall function finished earlier then expected. I did have only one time out error. The error listed: - The following tests failed: sage -t -force_lib devel/sage/sage/sandpiles/sandpile.py # Time out Total time for all tests: 19977.9 seconds Please see /home/nooniensoong97/.sage//tmp/test.log for the complete log from this test. - Is there a way to fix these time out errors? On Nov 29, 7:12 pm, kcrisman kcris...@gmail.com wrote: On Nov 29, 4:56 pm, Renan Birck Pinheiro renan.ee.u...@gmail.com wrote: 2011/11/29 Eric Kangas eric.c.kan...@gmail.com Well for some reason when I am in the sage directory using the terminal I try calling up sage, and sage - testall this is what I get: Try ./sage -testall (dot, slash, sage, space, -testall) within the sage directory Sorry, since you got Sage to run, I figured this was obvious - my apologies. Renan and Ivan are both right, of course. - kcrisman -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Installing latest sage
it is interesting I had to compile from source on my tablet, but on my desktop I didn't have to compile from source just had to install the package. On Nov 21, 11:39 pm, William Stein wst...@gmail.com wrote: On Mon, Nov 21, 2011 at 3:51 PM, Eric Kangas eric.c.kan...@gmail.com wrote: I tried installing sage on my Toshiba Portege M200 tablet. I am using ubuntu 10.10. Here is the error message I am receiving: ** WARNING! This Sage install was built on a machine that supports instructions that are not available on this computer. Sage will likely fail with ILLEGAL INSTRUCTION errors! The following processor flags were on the build machine but are not on this computer: pni Emailhttp://groups.google.com/group/sage-supportfor help. To remove this warning and make Sage start, just delete /home/nooniensoong97/programs/sage-4.7.2-linux-32bit- ubuntu_10.04_lts-i686-Linux/local/lib/sage-flags.txt ** Even after deleting the flag the installation fails. That's because of exactly what the error message says. Your options: (1) Build Sage from source, which you get here [1], and install via the instructions near the bottom of that page. (2) Try forcing a rebuild from source of the atlas and mpir package. Sometimes that is enough. ./sage -f atlas mpir [1]http://sagemath.org/download-source.html Here is that error message: The Sage installation tree may have moved (from /home/wstein/build/sage-4.7.2 to /home/nooniensoong97/programs/ sage-4.7.2-linux-32bit-ubuntu_10.04_lts-i686-Linux). Changing various hardcoded paths... (Please wait at most a few minutes.) DO NOT INTERRUPT THIS. Done resetting paths. /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libcsage.so(print_backtrace+0x3b)[0x4f230e] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libcsage.so(sigdie+0x17)[0x4f234e] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libcsage.so(sage_signal_handler+0x1ad)[0x4f1e70] [0x751400] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/python2.6/site-packages/sage/rings/ integer.so(initinteger+0x29aa)[0x813c9a] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(_PyImport_LoadDynamicModule +0xb6)[0xa093a6] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(+0xe2f78)[0xa06f78] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(+0xe391f)[0xa0791f] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(+0xe3c1c)[0xa07c1c] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(+0xe4296)[0xa08296] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(PyImport_ImportModuleLevel +0x3b)[0xa087cb] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(+0xc7916)[0x9eb916] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(PyCFunction_Call+0x128) [0x991c48] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(PyObject_Call+0x5c)[0x94e73c] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(PyObject_CallFunction+0x65) [0x951115] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(PyImport_Import+0xb7) [0xa088e7] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/python2.6/site-packages/sage/rings/ complex_double.so(+0xc3e4)[0x57b3e4] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/python2.6/site-packages/sage/rings/ complex_double.so(initcomplex_double+0x18dc)[0x5878fc] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(_PyImport_LoadDynamicModule +0xb6)[0xa093a6] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(+0xe2f78)[0xa06f78] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(+0xe391f)[0xa0791f] /home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/libpython2.6.so.1.0(+0xe3c1c)[0xa07c1c] /home/nooniensoong97
[sage-support] Re: Coupled 2sd ODE
I have been trying to find examples on how to deal with a coupled 2sd ode in sage. On Nov 17, 2:31 am, Jason Grout jason-s...@creativetrax.com wrote: On 11/17/11 12:08 AM, Eric Kangas wrote: I am new with Sage, and I am working on creating a library. I have this coupled 2sd ODE that I have worked with on Mathematica. I have looked around for examples for a layout but can't seem to find any. What are you asking for? An example of a library? What sorts of things are you planning on putting in the library? Or are you asking how to deal with coupled ODEs? Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Coupled 2sd ODE
I am new with Sage, and I am working on creating a library. I have this coupled 2sd ODE that I have worked with on Mathematica. I have looked around for examples for a layout but can't seem to find any. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Issues with assigning color values to multiple plots.
The only issue I have with these lines of code is the inability to change the plot names on the legend. right now it shows up as Plot 1, Plot 2, Plot 3, Plot 4. I would like the legend list to show Jerk, Acceleration, Velocity, and Distance. I have messed with the coding, but it looks like the %d has to be in the for the program to work. On Oct 27, 4:09 pm, Jason Grout jason-s...@creativetrax.com wrote: On 10/27/11 6:51 PM, Eric Kangas wrote: Hi, I am working on a standard plot function for multiple plots. I would like to have each plot in a different color to distinguish each function, and also able to show a legend with the color, and function. Here is what I have right now: plot([derivative((f(x), a) for a in [0,1,..3]], (x,0,2*pi), color = ()) Try something like: colors=rainbow(len([0,1,..3])) sum(plot(derivative((f(x), a) , (x,0,2*pi), color = colors[i],label=Plot %d%i) for i,a in enumerate([0,1,..3])) Make each curve an individual plot, and then sum them together. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Issues with assigning color values to multiple plots.
Hi, I am working on a standard plot function for multiple plots. I would like to have each plot in a different color to distinguish each function, and also able to show a legend with the color, and function. Here is what I have right now: plot([derivative((f(x), a) for a in [0,1,..3]], (x,0,2*pi), color = ()) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Issues with assigning color values to multiple plots.
Well I should be more correct in what I am saying each function is the derivative of the one function. I tried your program but I get this error. Code: x = var('x') f = (sin(x))**3+(sin(x))**2+sin(x)+1 colors = rainbow(len([0,1,..3])) sum(plot(derivative((f, a) , (x,0,2*pi), color = colors[i],label=Plot %d%i) for i,a in enumerate([0,1,..3])) Error: Traceback (most recent call last): File stdin, line 1, in module File _sage_input_11.py, line 10, in module exec compile(u'open(___code___.py,w).write(# -*- coding: utf-8 -*-\\n + _support_.preparse_worksheet_cell(base64.b64decode(eCA9IHZhcigneCcpCmYgPSAoc2luKHgpKSoqMysoc2luKHgpKSoqMitzaW4oeCkrMQpjb2xvcnMgPSByYWluYm93KGxlbihbMCwxLC4uM10pKQpzdW0ocGxvdChkZXJpdmF0aXZlKChmLCBhKSAsICh4LDAsMipwaSksIGNvbG9yID0gY29sb3JzW2ldLGxhYmVsPSJQbG90ICVkIiVpKSBmb3IgaSxhIGluIGVudW1lcmF0ZShbMCwxLC4uM10pKQ==),globals()) +\\n); execfile(os.path.abspath(___code___.py)) File , line 1, in module File /tmp/tmpchwgnX/___code___.py, line 7 ^ SyntaxError: invalid syntax Since it is a syntax error I think it is something simple that I am over looking. On Oct 27, 5:09 pm, Jason Grout jason-s...@creativetrax.com wrote: On 10/27/11 6:51 PM, Eric Kangas wrote: Hi, I am working on a standard plot function for multiple plots. I would like to have each plot in a different color to distinguish each function, and also able to show a legend with the color, and function. Here is what I have right now: plot([derivative((f(x), a) for a in [0,1,..3]], (x,0,2*pi), color = ()) Try something like: colors=rainbow(len([0,1,..3])) sum(plot(derivative((f(x), a) , (x,0,2*pi), color = colors[i],label=Plot %d%i) for i,a in enumerate([0,1,..3])) Make each curve an individual plot, and then sum them together. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Issues with assigning color values to multiple plots.
thanks it works On Oct 27, 6:29 pm, Jason Grout jason-s...@creativetrax.com wrote: On 10/27/11 8:25 PM, Eric Kangas wrote: Well I should be more correct in what I am saying each function is the derivative of the one function. I tried your program but I get this error. Code: x = var('x') f = (sin(x))**3+(sin(x))**2+sin(x)+1 colors = rainbow(len([0,1,..3])) sum(plot(derivative((f, a) , (x,0,2*pi), color = colors[i],label=Plot %d%i) for i,a in enumerate([0,1,..3])) Error: Traceback (most recent call last): File stdin, line 1, inmodule File _sage_input_11.py, line 10, inmodule exec compile(u'open(___code___.py,w).write(# -*- coding: utf-8 -*-\\n + _support_.preparse_worksheet_cell(base64.b64decode(eCA9IHZhcigneCcpCmYgPSAoc2luKHgpKSoqMysoc2luKHgpKSoqMitzaW4oeCkrMQpjb2xvcnMgPSByYWluYm93KGxlbihbMCwxLC4uM10pKQpzdW0ocGxvdChkZXJpdmF0aXZlKChmLCBhKSAsICh4LDAsMipwaSksIGNvbG9yID0gY29sb3JzW2ldLGxhYmVsPSJQbG90ICVkIiVpKSBmb3IgaSxhIGluIGVudW1lcmF0ZShbMCwxLC4uM10pKQ==),globals()) +\\n); execfile(os.path.abspath(___code___.py)) File , line 1, inmodule File /tmp/tmpchwgnX/___code___.py, line 7 ^ SyntaxError: invalid syntax Since it is a syntax error I think it is something simple that I am over looking. If you click just to the left of the syntax error in the notebook, you'll see a more descriptive error message that tells where the error is. It looks like the problem is just that there was an extra parentheses: sum(plot(derivative(f, a) , (x,0,2*pi), color = colors[i],legend_label=Plot %d%i) for i,a in enumerate([0,1,..3])) Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Issues with assigning color values to multiple plots.
still new to sage noticed that most plots had that listed to show the intervals between the range. Thanks for the info. On Oct 27, 6:39 pm, leif not.rea...@online.de wrote: On 28 Okt., 01:51, Eric Kangas eric.c.kan...@gmail.com wrote: plot([derivative((f(x), a) for a in [0,1,..3]], (x,0,2*pi), color = ()) Just curious: Any reason to use [0,1,..3] instead of just [0..3] or even the pure Python syntax: range(4) ? -leif -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Graphics Array and one function with different constants.
Hi, I have one function that I need to plot in an array with different values for two constants. I would like to only have to repeat the function once, and go off of a string of different variables to produce this array. Is that even possible in Sage? Or am I stuck with repeating the function over and over again for the graphics array? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Bessel Contour Plot problem
Well I did use your method but I still get an error. Code: r,z = var('r,z') gro = 1.0 kro = 3.0 def f(r,z): term1 = (1+(bessel_J(0, gro)/bessel_J(2,gro)))*(r/ kro)*(bessel_J(1, r)/bessel_J(1,gro))*cos(z) term2 = -(bessel_J(0,r)/ bessel_J(2, gro))*(r**2/kro**2) return term1 + term2 if t != 0 else infinity p = contour_plot(f , (r, 0, 2.5), (z, 0, 4), axes_labels=['$r$','$z $'], contours = [0.0, 0.2, 0.4, 0.6, 0.8], labels = True, label_inline = True, label_colors = 'black', label_inline_spacing = 0.01, fill=False, aspect_ratio=1, legend_label='Polodial') show(p) Error: File , line 1, in module File /tmp/tmpra5Mm9/___code___.py, line 8 def f(r,z): term1 = (_sage_const_1 +(bessel_J(_sage_const_0 , gro)/ bessel_J(_sage_const_2 ,gro)))*(r/kro)*(bessel_J(_sage_const_1 , r)/ bessel_J(_sage_const_1 ,gro))*cos(z) term2 = - (bessel_J(_sage_const_0 ,r)/bessel_J(_sage_const_2 , gro))*(r**_sage_const_2 /kro**_sage_const_2 ) return term1 + term2 if t != _sage_const_0 else infinity ^ SyntaxError: invalid syntax Some sort of syntax error. Also if I have the terms, and return on separate lines in the definition then I get this error. Where the system still believes there is a t term floating around. Error: term1 = (1+(bessel_J(0, gro)/bessel_J(2,gro)))*(r/kro)*(bessel_J(1, r)/ bessel_J(1,gro))*cos(z) File , line 1, in module File /tmp/tmp31dCf5/___code___.py, line 13, in module p = contour_plot(f , (r, _sage_const_0 , _sage_const_2p5 ), (z, _sage_const_0 , _sage_const_4 ), axes_labels=['$r$','$z$'], contours = [_sage_const_0p0 , _sage_const_0p2 , _sage_const_0p4 , _sage_const_0p6 , _sage_const_0p8 ], labels = True, label_inline = True, label_colors = 'black', label_inline_spacing = _sage_const_0p01 , fill=False, aspect_ratio=_sage_const_1 , legend_label='Polodial') File /sagenb/sage_install/sage-4.7/local/lib/python2.6/site- packages/sage/misc/decorators.py, line 381, in wrapper return func(*args, **kwds) File /sagenb/sage_install/sage-4.7/local/lib/python2.6/site- packages/sage/misc/decorators.py, line 381, in wrapper return func(*args, **kwds) File /sagenb/sage_install/sage-4.7/local/lib/python2.6/site- packages/sage/misc/decorators.py, line 432, in wrapper return func(*args, **options) File /sagenb/sage_install/sage-4.7/local/lib/python2.6/site- packages/sage/plot/contour_plot.py, line 475, in contour_plot for y in xsrange(*ranges[1], include_endpoint=True)] File /tmp/tmp31dCf5/___code___.py, line 11, in f return term1 + term2 if t != _sage_const_0 else infinity NameError: global name 't' is not defined On Oct 20, 8:38 pm, D. S. McNeil dsm...@gmail.com wrote: def f(y,t): return (1+(bessel_J(0, gro)/bessel_J(2, gro)))*(r/ kro)*(bessel_J(1, r)/bessel_J(1,gro))*z.cos()-(bessel_J(0,r)/ bessel_J(2, gro))*(r**2/kro**2) if t != 0 else infinity A few things: (1) Your arguments to this function are y and t, but inside you use r and z. r and z are still the symbolic values. That's why the error message says Cannot evaluate symbolic expression to a numeric value, and that's usually the problem: some variable isn't being assigned a number. (2) Since z is going to be a float, not a Sage real, z.cos() isn't going to work as .cos() isn't a float method. (Sorry about this; in a sense it's an implementation detail there's no way to guess. Python floats are low-level dumb numbers which only have a few methods living inside them.) (3) The if condition else infinity trick was a workaround for a singularity that wasn't being handled too well. If there isn't one, there's no need to worry about it. So I'd simply replace your f function with something like def f(r,z): term1 = (1+(bessel_J(0, gro)/bessel_J(2, gro)))*(r/kro)*(bessel_J(1, r)/bessel_J(1,gro))*cos(z) term2 = -(bessel_J(0,r)/bessel_J(2, gro))*(r**2/kro**2) return term1 + term2 [possible typos, I didn't check too carefully, but you get the idea] Doug -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Bessel Contour Plot problem
Everything worked once I placed semicolons after each line in the definition of the function. On Oct 21, 5:22 pm, D. S. McNeil dsm...@gmail.com wrote: Hi! I'm not sure what you mean by Also if I have the terms, and return on separate lines in the definition then I get this error. You _have_ to have the different statements on separate lines, like I did. (Unless you use a semicolon to separate the statements, I suppose.) Did you combine them? It looks like you did but it's hard to be sure because sometimes carriage returns are lost during the cut-and-paste process. Paying attention to the syntax is even more important Python than in many other languages because Python is whitespace-sensitive-- if you don't use the right indentation, the code might not work. I think it might be useful to read through a Python tutorial if you're more familiar with the syntax from other languages. It won't take too long but may clear up some of the confusion. As for the NameError: Well I did use your method but I still get an error. Actually, it doesn't look like you did use my code. You modified the last line to read return term1 + term2 if t != 0 else infinity, thereby introducing a variable t which you hadn't defined, which leads to the NameError explaining -- reasonably enough -- that you're referring to a name 't' which you didn't define. Does that make sense? Doug -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Bessel Contour Plot problem
A new issue came up. program: r,z = var('r,z') gro = 1.0 kro = 3.0 def f(y,t): return (1+(bessel_J(0, gro)/bessel_J(2, gro)))*(r/ kro)*(bessel_J(1, r)/bessel_J(1,gro))*z.cos()-(bessel_J(0,r)/ bessel_J(2, gro))*(r**2/kro**2) if t != 0 else infinity p = contour_plot(f , (r, 0, 2.5), (z, 0, 4), axes_labels=['$gro$','$kro $'], contours = [0.0, 0.2, 0.4, 0.6, 0.8], labels = True, label_inline = True, label_colors = 'black', label_inline_spacing = 0.01, fill=False, aspect_ratio=1, legend_label='polodial') show(p) error: File , line 1, in module File /tmp/tmpYWys8j/___code___.py, line 10, in module p = contour_plot(f , (r, _sage_const_0 , _sage_const_2p5 ), (z, _sage_const_0 , _sage_const_4 ), axes_labels=['$gro$','$kro$'], contours = [_sage_const_0p0 , _sage_const_0p2 , _sage_const_0p4 , _sage_const_0p6 , _sage_const_0p8 ], labels = True, label_inline = True, label_colors = 'black', label_inline_spacing = _sage_const_0p01 , fill=False, aspect_ratio=_sage_const_1 , legend_label='polodial') File /sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site- packages/sage/misc/decorators.py, line 426, in wrapper return func(*args, **kwds) File /sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site- packages/sage/misc/decorators.py, line 426, in wrapper return func(*args, **kwds) File /sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site- packages/sage/misc/decorators.py, line 504, in wrapper return func(*args, **options) File /sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site- packages/sage/plot/contour_plot.py, line 475, in contour_plot for y in xsrange(*ranges[1], include_endpoint=True)] File /tmp/tmpYWys8j/___code___.py, line 8, in f def f(y,t): return (_sage_const_1 +(bessel_J(_sage_const_0 , gro)/ bessel_J(_sage_const_2 , gro)))*(r/kro)*(bessel_J(_sage_const_1 , r)/ bessel_J(_sage_const_1 ,gro))*z.cos()-(bessel_J(_sage_const_0 ,r)/ bessel_J(_sage_const_2 , gro))*(r**_sage_const_2 /kro**_sage_const_2 ) if t != _sage_const_0 else infinity File /sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site- packages/sage/functions/special.py, line 829, in bessel_J z = C(z) File /sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site- packages/sage/rings/complex_field.py, line 279, in __call__ return Parent.__call__(self, x) File parent.pyx, line 941, in sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7102) File coerce_maps.pyx, line 82, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/ structure/coerce_maps.c:3254) File coerce_maps.pyx, line 77, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/ structure/coerce_maps.c:3157) File /sagenb/sage_install/sage-4.7.1/local/lib/python2.6/site- packages/sage/rings/complex_field.py, line 307, in _element_constructor_ return x._complex_mpfr_field_( self ) File expression.pyx, line 933, in sage.symbolic.expression.Expression._complex_mpfr_field_ (sage/ symbolic/expression.cpp:5437) File expression.pyx, line 796, in sage.symbolic.expression.Expression._eval_self (sage/symbolic/ expression.cpp:4898) TypeError: Cannot evaluate symbolic expression to a numeric value. On Oct 18, 3:55 pm, Eric Kangas eric.c.kan...@gmail.com wrote: thanks that worked. On Oct 17, 7:34 pm, kcrisman kcris...@gmail.com wrote: SyntaxError: invalid syntax You'll need to type the whole part after def f(y,t): in just one line, and similarly for the whole plot command. Google groups tends to cut off things at a fairly short line length. - kcrisman -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Increasing memory limit?
Does anyone know how to enlarge the memory limits set by sage? I get the following message when running a certain computation that involves computing large determinants. Memory limit reached. Please jump to an outer pointer, quit program and enlarge the memory limits before executing the program again. Available restarts: 1. (CONTINUE) Extend heap size Top level. By googling and searching the archives of this group I found that I was supposed to add a line that reads maxima._eval_line(:lisp (ext:set-limit 'ext:heap-size 1000), wait_for_prompt=False) I have tried this and it has absolutely no effect. I am using the precompiled sage-4.7.1-linux-32bit-ubuntu_10.04_lts-i686-Linux . As a workaround it is possible to press :r1 every time this error message appears and indeed I had to do that twice to get this computation to finish. The machine it is running on has ample memory and sage was only using about 6 percent of the available system memory when this error happened the first time. Any help appreciated, Eric -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Bessel Contour Plot problem
Hi, I am having issues with plotting contour plots for bessel functions. Here is one of the lines of codes for a plot: Sage: y,t = var('y,t') Sage: contour_plot(lambda y,t: (sqrt(t^2+y^2)/(2*pi*y))*(bessel_J(0, t ).arccos()), (t, 0, 3), (y, 0, 4), fill = false, axes_labels=['$gro $','$kro$'], contours = [0.1, 0.2, 0.3, 0.5, 0.7, 1.0, 2.0, 4.0], fill=False, legend_label='qwall'); This is the error message that I get when processing the code: The error I get is: File ipython console, line 1 SyntaxError: keyword argument repeated (ipython console, line 1). Does it have something to do with assigning the variables? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Bessel Contour Plot problem
I still get an error: p = contour_plot(f, (y, 0, 6), (t, 0, 3), fill = false, axes_labels=['$gro$','$kro$'], contours = [0.1, 0.2, 0.3, 0.5, 0.7, 1.0, 2.0, 4.0], legend_label='qwall'); File , line 1, in module File /tmp/tmpZLCoKg/___code___.py, line 6 return (sqrt(t**_sage_const_2 +y**_sage_const_2 )/(_sage_const_2 *pi*y))*(bessel_J(_sage_const_0 ,t).arccos()) if y != _sage_const_0 ^ SyntaxError: invalid syntax On Oct 17, 5:25 pm, D. S. McNeil dsm...@gmail.com wrote: Sage: y,t = var('y,t') Sage: contour_plot(lambda y,t: (sqrt(t^2+y^2)/(2*pi*y))*(bessel_J(0, t ).arccos()), (t, 0, 3), (y, 0, 4), fill = false, axes_labels=['$gro $','$kro$'], contours = [0.1, 0.2, 0.3, 0.5, 0.7, 1.0, 2.0, 4.0], fill=False, legend_label='qwall'); This is the error message that I get when processing the code: The error I get is: File ipython console, line 1 SyntaxError: keyword argument repeated (ipython console, line 1). Does it have something to do with assigning the variables? It has to do with the fact you're repeating a keyword argument. :^) Note that you write fill=false and then later fill=False. Also, be careful: when you use a Python function (lambda or def), you can't use the (variable, lower, upper) syntax, you have to give them in order. Proof: sage: aa = [] sage: bb = [] sage: def f(a,b): : aa.append(a) : bb.append(b) : return a+b : sage: a,b = var(a b) sage: contour_plot(f,(b,2,3),(a,4,5)) sage: sage: min(aa),max(aa) (2.0, 3.0) sage: min(bb),max(bb) (4.0, 5.0) And you see that f gets two variables ranging from 2 to 3 and 4 to 5, but it doesn't put the a values in a. (Aside for devs: we could fix this using introspection.) Finally, I found that I had to manually handle the zero case to avoid getting a Symbolic division by zero error: y,t = var('y,t') def f(y,t): return (sqrt(t^2+y^2)/(2*pi*y))*(bessel_J(0,t).arccos()) if y != 0 else infinity p = contour_plot(f, (y, 0, 6), (t, 0, 3), fill = false, axes_labels=['$gro$','$kro$'], contours = [0.1, 0.2, 0.3, 0.5, 0.7, 1.0, 2.0, 4.0], legend_label='qwall'); show(p) Hope some of that helps! Doug -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] sagetex: granular builds for large documents
Hi Dan, others using sagetex I'm experimenting with a homework workflow using sagetex. I'd like to make efficient use of resources, which seems to be a (the?) major deficiency with sagetex, especially with large documents. My initial thought was that by placing each problem in an included file, I could have my build tool generate individual problem_x.sage and problem_x.sout files only for problems with changes, and keep the master tex file as a simple list of includes. I see now that that can't work, however, at least with my limited knowledge of TeX tricks. So I'm asking the group for ideas. Starters: 1. Is it possible to have a master document that includes a bunch of complete subdocuments? If so, one could simply keep the master document clean of sagetex references, and build each subdocument separately. 2. Could sagetex be modified to work on a per-file level? Thanks, Eric -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sagetex: granular builds for large documents
On Dec 1, 3:30 pm, Dan Drake dr...@kaist.edu wrote: Hi Eric, On Tue, 01 Dec 2009 at 11:44AM -0800, Eric Drechsel wrote: I'm experimenting with a homework workflow using sagetex. I'd like to make efficient use of resources, which seems to be a (the?) major deficiency with sagetex, especially with large documents. My initial thought was that by placing each problem in an included file, I could have my build tool generate individual problem_x.sage and problem_x.sout files only for problems with changes, and keep the master tex file as a simple list of includes. I see now that that can't work, however, at least with my limited knowledge of TeX tricks. So I'm asking the group for ideas. Starters: 1. Is it possible to have a master document that includes a bunch of complete subdocuments? If so, one could simply keep the master document clean of sagetex references, and build each subdocument separately. My first thought is, if you're talking about using a master document and compile times for your homework...you have way too much homework. :) I don't know about keeping the master document clean of SageTeX references, but by using \include, you can keep things separated, and you can even compile only part of the document using \includeonly. Yes, I found out about \includeonly from [1] shortly after posting, and I think that's what I'll do in the short term (homework being due Thursday and all :). [1] http://web.science.mq.edu.au/~rdale/resources/writingnotes/latexstruct.html One thing you can do with SageTeX to make things go faster is to use the pause and unpause commands -- \sagetexpause and \sagetexunpause. Commands between those two don't get run when you run Sage on the .sage file. (SageTeX literally just comments those sections out in the .sage file.) The issue I have with both \sagetexpause and \includeonly is that they're not automate-able. Subdocuments seem like a good way to integrate with build tools (since they can have timestamps etc) Actually, with the stuff I've done, the most time-consuming part of running Sage on the .sage file is simply startup time. Once it starts executing the commands, it generally goes really fast, but starting Sage takes a while. Good point! Most documents are probably not so computationally expensive as the examples file (which has lots of plots). Does sagetex- remote help with this much, or is there still alot of overhead in creating a new session on the server? I'll think about your per-file ideas, and about some kind of \includeonly stuff. Right now, though, it works document-wide. What would you like to see? Can you describe some commands or functionality that you would find helpful? Unless you can think of a simple way to add support for generating separate sage files per tex file (which would also require changing the way .sout files are included I guess?), it doesn't seem worth the trouble. I can't begin to read sagetex.sty, so I can't really evaluate what's a reasonable feature request. Thanks for your thoughtful response! Regarding the build tool, I'm using SCons, with which this is my first experience, and so far I'm liking the flexibility and extensibility alot. My example project with SConstruct file is here [2] [2] http://wiki.shared.dre.am/electricity_and_magnetism/probset7/ Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc 1KViewDownload -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sagetex: granular builds for large documents
Hi Harald, thanks for the suggestion, I had thought of that too. It seems like a viable route. Each subdocument ends up on its own set of pages, but I guess that's the case when using \include too. -- Eric On Dec 1, 3:11 pm, Harald Schilly harald.schi...@gmail.com wrote: On Dec 1, 8:44 pm, Eric Drechsel ericd...@gmail.com wrote: 1. Is it possible to have a master document that includes a bunch of complete subdocuments? The main problem is, that you may happen to define a variable in the beginning and modify it later and in the end it is used. Therefore there is no mechanism to break this chain apart and everything you define lives along a full sage session. I don't know how far Dan's ideas are, but there is one immediate hack i can suggest you: Just create PDF files for each chapter and then stick them together using a PDF-merge tool. I haven't done it yet, but i guess it's simple to create one big pdf file merging several pdf documents. H -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Line Plots
To address my dilemma regarding line plots, I read about matplotlib at http://matplotlib.sourceforge.net/users/transforms_tutorial.html. This is a library that a user can import into their Sage worksheet to allow then more flexibility with plots. When using matplotlib, the user may have to apply certain backends to achieve visibility of plots. The backend the user applies depends solely on where he/she is using matplotlib interactively from. A few minutes ago I published a sage worksheet called Line Plot with Matplotlib. Cell 1 of this sheet shows a simple plot using a hardcopy backend to create a PNG file. This is an item that Jason Grout helped me with. Thanks Jason! Cell 2 (#Their version from matplotlib documentation) uses pylab instead of pyplot. The code in cell 2 was obtained from the matplotlib website. I could not get this to work, instead I inserted my own version in cell 3 (#My version), which produces the same plot that cell 2 would produce had it worked. If anybody can get cell 2 working, then that would be really cool. *However, the code in cell 4, is where I really need the help. The code in cell 4 is suppose to display the xy data at a certain location on the line plot. I have looked at this for a while, but I am confused as to why it doesn't work. This code was also taken from the mathplotlib website. Any help on this in particular would be neat. In my spare time, I will continue to work on this. Thanks, Eric On Sep 15, 3:18 pm, Jason Grout jason-s...@creativetrax.com wrote: Jason Grout wrote: Eric Jackson wrote: I'm not thinking of matplotlib html5. However, I am fairly new to working with Sage. I will do some research to see what matplotlib html5 is about. It's not finished. Here is a demo of what gnuplot can do with an html5 canvas backend: http://gnuplot.sourceforge.net/demo_canvas/ (notice the coordinates at the bottom of the plot). Jason Here's an example of the matplotlib canvas backend: http://dl.getdropbox.com/u/178748/mpl/test.html (it doesn't have the coordinate tracking feature implemented, I think). Jason -- Jason Grout --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Line Plots
Thanks, I just figured this out right after I posted. This should have been obvious, I guess I got brain tired. Thanks again, Eric On Sep 23, 2009, at 2:13 PM, Jason Grout wrote: Eric Jackson wrote: To address my dilemma regarding line plots, I read about matplotlib at http://matplotlib.sourceforge.net/users/transforms_tutorial.html. This is a library that a user can import into their Sage worksheet to allow then more flexibility with plots. When using matplotlib, the user may have to apply certain backends to achieve visibility of plots. The backend the user applies depends solely on where he/she is using matplotlib interactively from. A few minutes ago I published a sage worksheet called Line Plot with Matplotlib. Cell 1 of this sheet shows a simple plot using a hardcopy backend to create a PNG file. This is an item that Jason Grout helped me with. Thanks Jason! Cell 2 (#Their version from matplotlib documentation) uses pylab instead of pyplot. The code in cell 2 was obtained from the matplotlib website. I could not get this to work, instead I inserted my own version in cell 3 (#My version), which produces the same plot that cell 2 would produce had it worked. If anybody can get cell 2 working, then that would be really cool. You can't use show. Use savefig, as in: savefig('test.png') The sage notebook automatically displays any graphic file you generate in a cell. That's why we need to save the figure to a graphics file, like test.png. Then the notebook comes along, sees that the cell generated a graphic file, and displays it. *However, the code in cell 4, is where I really need the help. The code in cell 4 is suppose to display the xy data at a certain location on the line plot. I have looked at this for a while, but I am confused as to why it doesn't work. This code was also taken from the mathplotlib website. Any help on this in particular would be neat. In my spare time, I will continue to work on this. Just change the last line to plt.savefig... just like the first cell. It's not savefile, it's savefig :). Thanks, Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] sagenb.org
Earlier today I signed up through sagenb.org so that I can publish my worksheet. The signing up process was simple, but whenever I try to login, I receive errors. I've checked my login information and it is accurate. Is there anyone else having problems? Eric --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sagenb.org
Thanks William, I input demo.sagenb.org into my google search box and came to a website called Symmetric Group (Demo) Sage. However, how can I upload my worksheet, so that others can view it? Also, for a while, I thought the problem of logging in was me, so I created other accounts that you can delete. All of the accounts were created today within minutes of one another. The user names for the accounts that you can delete are 19eric, eric19., and eric19. Thanks, Eric On Sep 22, 2009, at 2:10 PM, William Stein wrote: On Tue, Sep 22, 2009 at 2:04 PM, Eric Jackson eric...@comcast.net wrote: Earlier today I signed up through sagenb.org so that I can publish my worksheet. The signing up process was simple, but whenever I try to login, I receive errors. I've checked my login information and it is accurate. Is there anyone else having problems? I just logged in and computed 2+3. However, I did get two indicators that it was slow today (I have a monitor script). Also, sage is getting some discussion on slashdot right now. I also just logged in and found that the number of sagenb.org accounts went up from about 4000 (last time I checked 1-2 weeks go) to 7381 right now. It looks like 249 accounts were created today, maybe. So it's getting hammered. It's just a dual core virtual machine. Here's a hint -- I made some extra secret notebook servers you can use: demo.sagenb.org, demo2.sagenb.org. That might be helpful. Also, I'm actively working on a major rewrite to improve robustness and scalability a *lot*. William Eric -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] GNUPLOT
Recently, I downloaded the latest testing binary (Version 4.3) of GNUPLOT on my computer. I read through the GNUPLOT tutorial on subjects related to plotting, and I wanted to find information on how to use GNUPLOT in my Sage Worksheet. In my Sage Worksheet I input statements such as, import gnuplot.lib and import gnuplot_lib. In my mind, these statements would allow me access to the gnuplot commands in my Sage Worksheet. However, this did not work. Does anybody have an idea on how I can get this working? Thanks, Eric --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Line Plots
I'm not thinking of matplotlib html5. However, I am fairly new to working with Sage. I will do some research to see what matplotlib html5 is about. As far as what I'm doing, I've created a plot of a function, say sin (t) that is evaluated from t, -2*pi,2*pi. As I am viewing the plot, I would like to move my cursor along the sin(t) curve and in real time see what the xy coordinates are at various locations on the curve. Eric On Sep 14, 9:10 am, Jason Grout jason-s...@creativetrax.com wrote: William Stein wrote: It will in the near future. Are you thinking of the matplotlib html5 canvas backend that is being developed? Or is there something else that you are doing? Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] expression evaluation with dynamically generated variables
Hello, I need to be able to evaluate an expression, where the expression is composed of dynamically generated variables. For example, I might have a list var_list, a list data_list, and an expression exprssn. Here 1) var_list is a list of variables, where every element in var_list was created using sage.calculus.calculus.var 2) data_list is a list of real numbers 3) exprssn is an expression, where every variable comes from var_list How would I evaluate exprssn when the variable var_list[i] takes the value data_list[i]? If I try something like exprssn(var_list[i] = data_list[i]) I get an error. My current solution involves string generation coupled with eval statements and is horribly clunky. What is the right way to do this? Thanks, Eric --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: expression evaluation with dynamically generated variables
Thanks, I think that answered my question! On Apr 25, 12:35 am, Robert Bradshaw rober...@math.washington.edu wrote: On Apr 24, 2009, at 11:55 PM, Eric wrote: Hello, I need to be able to evaluate an expression, where the expression is composed of dynamically generated variables. For example, I might have a list var_list, a list data_list, and an expression exprssn. Here 1) var_list is a list of variables, where every element in var_list was created using sage.calculus.calculus.var 2) data_list is a list of real numbers 3) exprssn is an expression, where every variable comes from var_list How would I evaluate exprssn when the variable var_list[i] takes the value data_list[i]? If I try something like exprssn(var_list[i] = data_list[i]) I get an error. My current solution involves string generation coupled with eval statements and is horribly clunky. What is the right way to do this? How about this: sage: var_list = var('x,y,z') sage: data_list = [2,3,5] sage: f = x^3 - y*z sage: f.subs(dict(zip(var_list, data_list))) -7 The zip command takes two lists, and zips them together. The dict can take a list of 2-tuples as a constructor. sage: zip(var_list, data_list) [(x, 2), (y, 3), (z, 5)] sage: dict(zip(var_list, data_list)) {y: 3, x: 2, z: 5} - Robert --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage 3.4 Installation on OS X 10.5 Errors
I didn't set the sage root variable. I looked through the documentation. Didn't seem to find how to do this. So, how do you do you set the root variable? I haven't set up any other variables for Sage. As, far as the details I copied the sage folder to the clients OSx 10.5. This is a computer lab, but it is a stock install of the os, Thanks, Eric On Mon, Apr 13, 2009 at 12:01 PM, mabshoff michael.absh...@mathematik.uni-dortmund.de wrote: On Apr 13, 9:57 am, kaufma kaufmanne...@gmail.com wrote: Hi, I am updating sage on OSX 10.5 lab machines. I downloaded .dmg file then I copied the sage folder over to all of the workstations. I get the following message when I try to open Sage. You must compile sage first using the 'make' , in the sage root directory. (If you have already compiled Sage, you must set the Sage_Root variable in the file './sage). Ok, this message is triggered for the wrong reasons it seems since the DMGs are binaries. Did you set SAGE_ROOT or any other env variable related to Sage anywhere? I did try to run the make command in the root of the sage folder and got allot of dependency dropped errors and a error 127. That is a bug due to -bdist, but it is independent of your problem. I had known about it for a while, but I made it #5774 yesterday since I finally tracked down the problem. Any ideas would be appreciated. Describing some more details of your setup would help. Thanks, Eric Kaufmann Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage 3.4 Installation on OS X 10.5 Errors
Binary did work before I copied it. A version of sage was already installed on the systems. When I copied it over the older version of sage was deleted first. This worked w/o any issues on the first test machine I did this on. Is there any documentation on how to set the variables. Regards, Eric On Mon, Apr 13, 2009 at 12:09 PM, mabshoff michael.absh...@mathematik.uni-dortmund.de wrote: On Apr 13, 10:06 am, Eric Kaufmann kaufmanne...@gmail.com wrote: I didn't set the sage root variable. Ok. I looked through the documentation. Didn't seem to find how to do this. So, how do you do you set the root variable? I haven't set up any other variables for Sage. As, far as the details I copied the sage folder to the clients OSx 10.5. This is a computer lab, but it is a stock install of the os, How did you copy it? Does the binary work before you copy it? Thanks, Eric Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage 3.4 Installation on OS X 10.5 Errors
I did the install the same as on the test machine. I copied this with Apple Remote desktop. Eric On Mon, Apr 13, 2009 at 12:15 PM, mabshoff michael.absh...@mathematik.uni-dortmund.de wrote: On Apr 13, 10:13 am, Eric Kaufmann kaufmanne...@gmail.com wrote: Binary did work before I copied it. A version of sage was already installed on the systems. When I copied it over the older version of sage was deleted first. This worked w/o any issues on the first test machine I did this on. Well, what did you do different? And *how* did you copy it? Is there any documentation on how to set the variables. Look at the sage script, but you don't need to set it. Regards, Eric Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Vector fields and Quivers
Thanks for the matplotlib recipe! I just had the same problem with plot_vector_field not accepting coordinate functions of two arguments. I went ahead and created an issue: http://trac.sagemath.org/sage_trac/ticket/2381 - Eric On Feb 17, 10:19 am, Hector Villafuerte [EMAIL PROTECTED] wrote: Hi, I would like to plot the gradient (i.e. vector field) of functions such as f(x,y) = exp(-(x^2 + y^2)); in this case: grad(f(x,y)) = vector([ -2*x*exp(-(x^2 + y^2)), -2*y*exp(-(x^2 + y^2)) ]) Initially I tried with plot_vector_field, but as of now it just takes two functions of one variable. For my second attempt I used matplotlib, as indicated below (also, see attached plots). So my question: is there a SAGEly way to plot this type of vector fields? Thanks in advance! -- Hector sage: %python sage: from pylab import * sage: X,Y = meshgrid( arange(-2,2,.2),arange(-2,2,.2) ) sage: U = -2*X*exp(-(X*X + Y*Y)) sage: V = -2*Y*exp(-(X*X + Y*Y)) sage: figure() sage: Q = quiver( U, V) sage: l,r,b,t = axis() sage: dx, dy = r-l, t-b sage: axis([l-0.05*dx, r+0.05*dx, b-0.05*dy, t+0.05*dy]) sage: savefig(DATA+'quiver.png') quiver.png 96KViewDownload 3d.png 1020KViewDownload --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Vector fields and Quivers
Jason: wow, that was quick. I'll try out the plot_vector_field patch as soon as I figure out how to test patches etc I ended up using Hector's example and some things from the matplotlib documentation for my assignment. A notable improvement is using axis('tight'), which solves the window mis-alignment problem. Uploaded to https://www.sagenb.org/home/pub/1721 On Mar 3, 8:34 pm, Eric Drechsel [EMAIL PROTECTED] wrote: Thanks for the matplotlib recipe! I just had the same problem with plot_vector_field not accepting coordinate functions of two arguments. I went ahead and created an issue:http://trac.sagemath.org/sage_trac/ticket/2381 - Eric On Feb 17, 10:19 am, Hector Villafuerte [EMAIL PROTECTED] wrote: Hi, I would like to plot the gradient (i.e. vector field) of functions such as f(x,y) = exp(-(x^2 + y^2)); in this case: grad(f(x,y)) = vector([ -2*x*exp(-(x^2 + y^2)), -2*y*exp(-(x^2 + y^2)) ]) Initially I tried with plot_vector_field, but as of now it just takes two functions of one variable. For my second attempt I used matplotlib, as indicated below (also, see attached plots). So my question: is there a SAGEly way to plot this type of vector fields? Thanks in advance! -- Hector sage: %python sage: from pylab import * sage: X,Y = meshgrid( arange(-2,2,.2),arange(-2,2,.2) ) sage: U = -2*X*exp(-(X*X + Y*Y)) sage: V = -2*Y*exp(-(X*X + Y*Y)) sage: figure() sage: Q = quiver( U, V) sage: l,r,b,t = axis() sage: dx, dy = r-l, t-b sage: axis([l-0.05*dx, r+0.05*dx, b-0.05*dy, t+0.05*dy]) sage: savefig(DATA+'quiver.png') quiver.png 96KViewDownload 3d.png 1020KViewDownload --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---