Re: [sage-support] Re: Re: Multivariate division with remainder of polynomials

2016-03-31 Thread Jeroen Demeyer
On 2016-03-31 11:06, Marc Mezzarobba wrote: Jeroen Demeyer wrote: Is there any reason that quo_rem is not consistent with .mod()? That is no longer arbitrary and would also extend the Euclidean division of univariate polynomials. Not quite: you'd have to return a tuple of quotients. I don't

[sage-support] Re: Re: Multivariate division with remainder of polynomials

2016-03-31 Thread Marc Mezzarobba
Jeroen Demeyer wrote: > Is there any reason that quo_rem is not consistent with .mod()? That > is no longer arbitrary and would also extend the Euclidean division of > univariate polynomials. Not quite: you'd have to return a tuple of quotients. -- Marc Mezzarobba -- You received this message

[sage-support] Re: re (regular expressions) Python module

2014-10-31 Thread Nils Bruin
On Friday, October 31, 2014 6:17:44 PM UTC-7, João Alberto Ferreira wrote: joao@Hades:~$ sage ┌┐ │ Sage Version 6.3, Release Date: 2014-08-10 │ │ Type notebook() for the browser-based notebook

[sage-support] Re: re (regular expressions) Python module

2014-10-31 Thread João Alberto Ferreira
Ok, thank you! On Saturday, November 1, 2014 12:03:33 AM UTC-2, Nils Bruin wrote: On Friday, October 31, 2014 6:17:44 PM UTC-7, João Alberto Ferreira wrote: joao@Hades:~$ sage ┌┐ │ Sage Version 6.3, Release Date:

Re: [sage-support] Re: Re: Re: Re: Re: Re: Re: error: setupterm: could not find terminal

2013-08-24 Thread Jeroen Demeyer
On 2013-08-23 16:02, Volker Braun wrote: I see. The path is indeed hard-coded in libtinfo.so. Does setting the TERMINFO environment variable fix it? It should be set to $SAGE_LOCAL/share/terminfo -- You received this message because you are subscribed to the Google Groups sage-support group.

Re: Re: [sage-support] Re: Re: Re: Re: Re: Re: Re: error: setupterm: could not find terminal

2013-08-24 Thread Martin Albrecht
Hi all, see http://trac.sagemath.org/ticket/15091 Cheers, Martin On Saturday 24 August 2013 10:14:42 Jeroen Demeyer wrote: On 2013-08-23 16:02, Volker Braun wrote: I see. The path is indeed hard-coded in libtinfo.so. Does setting the TERMINFO environment variable fix it? It should be

[sage-support] Re: Re: Re: Re: Re: Re: error: setupterm: could not find terminal

2013-08-23 Thread Volker Braun
Your build log contains 1600 entries written to /opt/sage-5.12.beta3/local/share/terminfo but the strace has stat(/opt/sage-5.12.beta3/local/share/terminfo, 0x7fffd6692220) = -1 ENOENT (No such file or directory) There is something really fishy here. Does the directory exist or not? Maybe

[sage-support] Re: Re: Re: Re: Re: Re: Re: error: setupterm: could not find terminal

2013-08-23 Thread Martin Albrecht
Hi Volker, ah, I got it: I moved $SAGE_ROOT from /opt/sage-5.12.beta3 and to /opt/sage-5.12 and somehow the relocation didn't work, i.e., the path is hardcoded somewhere. Cheers, Martin On Friday 23 August 2013 05:49:46 you wrote: Your build log contains 1600 entries written to

[sage-support] Re: Re: Re: Re: Re: Re: Re: error: setupterm: could not find terminal

2013-08-23 Thread Volker Braun
I see. The path is indeed hard-coded in libtinfo.so. Does setting the TERMINFO environment variable fix it? On Friday, August 23, 2013 2:35:15 PM UTC+1, Martin Albrecht wrote: Hi Volker, ah, I got it: I moved $SAGE_ROOT from /opt/sage-5.12.beta3 and to /opt/sage-5.12 and somehow the

[sage-support] Re: Re: error: setupterm: could not find terminal

2013-08-22 Thread Martin Albrecht
Hi all, I am running Linux here. I found that link as well and played with my TERM settings, but nothing is working so far: sage: osos.environ[TERM] 'xterm-new' sage: ZZ? WARNING: terminal is not fully functional - (press RETURN) ... and then I am back in the 90s with more. Cheers, Martin

[sage-support] Re: Re: error: setupterm: could not find terminal

2013-08-22 Thread Volker Braun
Your Python managed to build the _curses extension? Mine didn't, which is presumably why it Python can't get itself confused: building '_curses' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -I/home/vbraun/opt/ sage-5.12.beta3/local/include -I. -IInclude

[sage-support] Re: Re: Re: error: setupterm: could not find terminal

2013-08-22 Thread Martin Albrecht
Hi all, yep, looks like it succeeded ... funny that this would present a problem. building '_curses' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall - I/opt/sage-5.12.beta3/local/include -I. -IInclude -I./Include - I/usr/include/x86_64-linux-gnu

[sage-support] Re: Re: Re: error: setupterm: could not find terminal

2013-08-22 Thread Volker Braun
Whats the output of sage -sh strace python -c 'import curses; curses.initscr()' | grep xterm with TERM=xterm and xterm-256color? And ldd $SAGE_ROOT/local/lib/python2.7/lib-dynload/_curses.so -- You received this message because you are subscribed to the Google Groups sage-support

[sage-support] Re: Re: Re: Re: error: setupterm: could not find terminal

2013-08-22 Thread Martin Albrecht
Hi Volker, On Thursday 22 August 2013 08:31:26 you wrote: sage -sh strace python -c 'import curses; curses.initscr()' | grep xterm with TERM=xterm it's empty. and xterm-256color? it's also empty. ldd $SAGE_ROOT/local/lib/python2.7/lib-dynload/_curses.so $ ldd

[sage-support] Re: Re: Re: Re: error: setupterm: could not find terminal

2013-08-22 Thread Volker Braun
Can you post the whole trace? sage -sh strace python -c 'import curses; curses.initscr()' output.log On Thursday, August 22, 2013 6:23:48 PM UTC+1, Martin Albrecht wrote: Hi Volker, On Thursday 22 August 2013 08:31:26 you wrote: sage -sh strace python -c 'import curses;

[sage-support] Re: Re: Re: Re: Re: error: setupterm: could not find terminal

2013-08-22 Thread Volker Braun
ncurses didn't install the terminfo database on your system... there is apparently no /opt/sage-5.12.beta3/local/share/terminfo Can you post your ncurses build log? On Thursday, August 22, 2013 7:07:17 PM UTC+1, Martin Albrecht wrote: Hi Volker, here it is. Thanks! Cheers, Martin

[sage-support] Re: Re Superimpose various region_plot's

2011-10-11 Thread Jason Grout
On 10/11/11 9:44 AM, Zheng Han wrote: The points in the area of region_plot are covered by the region_plot. I'm not sure whether I failed to patch it or the patch indeed fails to work for points. Thx. Most of the patch failed to apply, as the messages said. You could do this instead:

[sage-support] Re: Re Superimpose various region_plot's

2011-10-11 Thread Zheng
Wow it works perfect! Thank you so much! I should take more careful look of the manual and help functions. Thank you. On Oct 11, 11:10 am, Jason Grout jason-s...@creativetrax.com wrote: On 10/11/11 9:44 AM, Zheng Han wrote: The points in the area of region_plot are covered by the region_plot.

[sage-support] Re: Re : slow code, what can I do?

2011-05-17 Thread Vahid
thanks a lot for help. On May 16, 12:32 pm, Nathann Cohen nathann.co...@gmail.com wrote: I have written a function which takes a long time to be run. How can I make it faster? That's an easy one :-) First, you create very *BIG* objects, and you create them twice each, because you convert

[sage-support] Re : Re: Graphs in Sage: vertex labels?

2011-04-17 Thread Nathann Cohen
Sage is not very happy to draw graphs. :-/ Though... right :-/ Nathann -- 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

Re : [sage-support] Re: Re : Re: Sagetex issue

2010-03-04 Thread Colombel Bruno
jason-s...@creativetrax.com a écrit : De: Jason Grout jason-s...@creativetrax.com Objet: [sage-support] Re: Re : Re: Sagetex issue À: sage-support@googlegroups.com Date: Jeudi 4 mars 2010, 1h16 On 03/03/2010 07:34 AM, Colombel Bruno wrote: I'm trying to use sagetex to put 3d-surfaces in latex

[sage-support] Re: Re : Re: Re : Re: Sagetex issue

2010-03-04 Thread Jason Grout
On 03/04/2010 04:55 AM, Colombel Bruno wrote: Sage version : 4.3.1 Séquence : latex test.tex sage test.sage latex test.tex messages : when running sage test.sage : sage test.sage Processing Sage code for test.tex... Initializing plots directory Plot 0 Code block begin...end Plot 1 Code

Re: [sage-support] Re: Re : Re: Re : Re: Sagetex issue

2010-03-04 Thread Dan Drake
On Thu, 04 Mar 2010 at 06:01AM -0600, Jason Grout wrote: On 03/04/2010 04:55 AM, Colombel Bruno wrote: Sage version : 4.3.1 Séquence : latex test.tex sage test.sage latex test.tex Your sequence seems fine. It should work with no problems, with one exception: because Sage cannot create .eps

Re: [sage-support] Re: Re : Re: Re : Re: Sagetex issue

2010-03-04 Thread Colombel Bruno
a écrit : De: Dan Drake dr...@kaist.edu Objet: Re: [sage-support] Re: Re : Re: Re : Re: Sagetex issue À: sage-support@googlegroups.com Date: Jeudi 4 mars 2010, 13h54 On Thu, 04 Mar 2010 at 06:01AM -0600, Jason Grout wrote: On 03/04/2010 04:55 AM, Colombel Bruno wrote: Sage version : 4.3.1 Séquence

[sage-support] Re: Re : Re: Sagetex issue

2010-03-03 Thread Jason Grout
On 03/03/2010 07:34 AM, Colombel Bruno wrote: I'm trying to use sagetex to put 3d-surfaces in latex document : \begin{sageblock} var('u,v') h= lambda u,v: u^2 + 2*v^2 f=plot3d(h, (u,-1,1), (v,-1,1)) f.show() \end{sageblock} \sageplot[][png]{f} The \sageplot function doesn't work here

[sage-support] Re: Re : Re: Sagetex issue

2010-03-03 Thread Jason Grout
On 03/03/2010 08:14 PM, Dan Drake wrote: On Wed, 03 Mar 2010 at 01:34PM +, Colombel Bruno wrote: I'm trying to use sagetex to put 3d-surfaces in latex document : \begin{sageblock} var('u,v') h= lambda u,v: u^2 + 2*v^2 f=plot3d(h, (u,-1,1), (v,-1,1)) f.show()

Re: [sage-support] Re: Re : Re: Sagetex issue

2010-03-03 Thread Dan Drake
On Wed, 03 Mar 2010 at 08:21PM -0600, Jason Grout wrote: On 03/03/2010 08:14 PM, Dan Drake wrote: On Wed, 03 Mar 2010 at 01:34PM +, Colombel Bruno wrote: I'm trying to use sagetex to put 3d-surfaces in latex document : \begin{sageblock} var('u,v') h= lambda u,v: u^2 + 2*v^2

[sage-support] Re: Re : Re: Sagetex issue

2010-03-03 Thread Jason Grout
On 03/03/2010 10:03 PM, Dan Drake wrote: The [png] is because of the way SageTeX works; it defaults to saving to eps and pdf formats. Maybe I should do things in a try/except; something like try: foo.save('filename.eps') foo.save('filename.pdf') except ValueError:

Re: [sage-support] Re: Re : Re: Sagetex issue

2010-03-03 Thread Dan Drake
On Wed, 03 Mar 2010 at 11:13PM -0600, Jason Grout wrote: +1. Try for vector formats, but fall back to just getting an image out there by default. I keep forgetting to put the [png] in for 3d graphics because it's not consistent and simple to remember (I have to keep looking it up in the

[sage-support] Re: re Stepen Lucas's Integral approximations to Pi with nonnegative integrands

2009-02-21 Thread Alexander R.Povolotsky
May be the search should be based around finding i(n), k(n), l(n) and m(n) as some integer functions of n, where i(n) appears to represent the various powers of 2 ) in the following (using Maple's notations) guessed (by me ) identity Pi = A002485(n)/A002486(n) -

[sage-support] Re: re Stepen Lucas's Integral approximations to Pi with nonnegative integrands

2009-02-20 Thread Marshall Hampton
I tried to give this a shot but got hung up by requests by maxima for additional assumptions; it wants to know the sign of the variable a, but from skimming that paper it looks like we don't want to assume a particular sign for a,b, or c. I guess it might be possible to exhaustively do all sign

[sage-support] Re: re Stepen Lucas's Integral approximations to Pi with nonnegative integrands

2009-02-20 Thread mabshoff
On Feb 20, 10:40 pm, Marshall Hampton hampto...@gmail.com wrote: Hi, I tried to give this a shot but got hung up by requests by maxima for additional assumptions; it wants to know the sign of the variable a, but from skimming that paper it looks like we don't want to assume a particular

[sage-support] Re: [Re: forwarded message from William Stein about R]

2008-01-25 Thread Jacob Hicks
I am kind of newbie on both sage and R, but since I have been playing with both of these all week, here is my take. In particular I haven't a clue how R interfaces with SAGE. For example, setting plot parameters via par(ann=0) would be persistent in an R session, ie you wouldn't have to

[sage-support] Re: Re:

2007-07-17 Thread William Stein
On 7/17/07, David Stahl (PAVCO) [EMAIL PROTECTED] wrote: Hi William, Thank you for getting back to me so quickly. I tried this method but I get error opening input file. As I have done for sage scripts before, I put the gp script in C:\ and used cd .. to make C:\ my current directory. I

[sage-support] Re: Re:

2007-07-17 Thread William Stein
On 7/17/07, David Stahl (PAVCO) [EMAIL PROTECTED] wrote: Windows 2000 with coLinux I'm no longer supporting SAGE running via colinux. The recommended way to run SAGE under Windows is via VMware. There's a premade machine here: http://www.sagemath.org/SAGEbin/vmware/ That said, your problem