Re: [sage-support] My local sage now asks for a user name and password, what to do?
Same problem, and the solution of William does'nt work; when I open a console window, one ask me login and password, 'sage' and 'sage' are not accepted. I have had no problem with ancient version of Virtual Machine and Sage... (excuse my poor English), jean 2013/7/14 William Stein wst...@gmail.com On Sat, Jul 13, 2013 at 2:18 PM, Kjetil brinchmann Halvorsen kjetil1...@gmail.com wrote: I have now installed sage for ubuntu (really Lubuntu ...) from the available repository deb http://ppa.launchpad.net/aims/sagemath/ubuntu raring main and my installation is uptodate. Now when starting sage, then saying notebook() it opens a window in the browser which asks for username and password!!! but no way to making such a user. What to do? Try typing sage: notebook(reset=True) William Kjetil -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Sage Cell Server and Modules
Dear Sage Cell users and authors, We are planning to embed http://sagecell.sagemath.org/ at our local page P. What is the best way to incorporate a *simple* sage/python module for all calculations using our local sage page P ? Thank you, Pedro -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] libc6 issue Ubuntu on installation
Dear friends, I am facing the following issue when installing sage on ubuntu 12.04LTS 32 bits. Warning: Could not import sage.calculus.interpolators /lib/i386-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by /opt/sagemath/sage-5.10-linux-32bit-ubuntu_13.04-i686-Linux/local/lib/libgfortran.so.3) Traceback (most recent call last): File /opt/sagemath/sage-5.10-linux-32bit-ubuntu_13.04-i686-Linux/devel/sage/doc/common/builder.py, line 1452, in module getattr(get_builder(name), type)() File /opt/sagemath/sage-5.10-linux-32bit-ubuntu_13.04-i686-Linux/devel/sage/doc/common/builder.py, line 269, in _wrapper getattr(get_builder(document), 'inventory')(*args, **kwds) File /opt/sagemath/sage-5.10-linux-32bit-ubuntu_13.04-i686-Linux/devel/sage/doc/common/builder.py, line 472, in _wrapper pool.map_async(build_ref_doc, L, 1).get(9) File /opt/sagemath/sage-5.10-linux-32bit-ubuntu_13.04-i686-Linux/local/lib/python/multiprocessing/pool.py, line 554, in get raise self._value AttributeError: 'module' object has no attribute 'core' make: ** [doc-html] Erro 1 libc6 version is 2.15. Tried to download 2.17 and replace but had some problems to startup ubunto, so had to retrieve the last version. Any idea? Thanks in advance. Diego. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Roots af a polynomial
What algorithm is used in Sage to calculate the roots of a polynomial f(x)? Corresponding Sage function is f.roots() -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Roots af a polynomial
On Thu, Jul 18, 2013 at 11:54 AM, Santanu Sarkar sarkar.santanu@gmail.com wrote: What algorithm is used in Sage to calculate the roots of a polynomial f(x)? Corresponding Sage function is f.roots() What is the base ring? There are a dozen answers, depending on the ring in which the coefficients of f live... -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Roots af a polynomial
Over integer. On 18 July 2013 15:50, William Stein wst...@gmail.com wrote: On Thu, Jul 18, 2013 at 11:54 AM, Santanu Sarkar sarkar.santanu@gmail.com wrote: What algorithm is used in Sage to calculate the roots of a polynomial f(x)? Corresponding Sage function is f.roots() What is the base ring? There are a dozen answers, depending on the ring in which the coefficients of f live... -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Error summing inverses of binomial coefficients
I guess this is a bug. But, in case, you want a quick fix, you might want to write a program by working this sum. This is not hard, once one realises that, one could rearrange the definition of the Beta function and observe ($n geq k$): $$\binom{n}{k}^{-1} = \int_0^1 t^k (1-t)^{n-k} dt$$ This should prove that the sum you're after is: n+1/2^{n+1} sum(2^k/k, k, 1, n+1). Hope this helps. PS. If somebody can confirm that it is really a bug (not really familiar with symbolic...), then, I'd open a ticket on trac. On Thu, Jul 18, 2013 at 7:17 AM, Ed Scheinerman edward.scheiner...@gmail.com wrote: I am looking to evaluate $\sum_{k=0}^n 1/\binom{n}{k}$ so I type: sage: n = var('n') sage: k = var('k') sage: sum(1/binomial(n,k),k,0,n) (n + 1)*2^(-n) and that answer is wrong. For example, with n=10 we get sage: sum(1/binomial(10,k) for k in range(11)) 1433/630 but the alleged answer of (n+1)*2^(-n) is 11/1024. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Roots af a polynomial
On Thu, Jul 18, 2013 at 12:53 PM, Santanu Sarkar sarkar.santanu@gmail.com wrote: Over integer. I did R.x = QQ[x] f = x*(x^3+1)*(x-17) then looked at f.roots?? which says it uses f.factor. So I looked at f.factor?? and it uses Pari. (It probably helped that I wrote a lot of this code.) So the answer appears to be the Sage completely factors the polynomial using Pari, then pulls off the degree 1 factors to give the roots. I make no claim that this is in any way the best approach -- it really can't be in general. For example, if you can factor the constant term of the polynomial, then simply checking through divisors might be dramatically faster (depending on how many divisors there are). William On 18 July 2013 15:50, William Stein wst...@gmail.com wrote: On Thu, Jul 18, 2013 at 11:54 AM, Santanu Sarkar sarkar.santanu@gmail.com wrote: What algorithm is used in Sage to calculate the roots of a polynomial f(x)? Corresponding Sage function is f.roots() What is the base ring? There are a dozen answers, depending on the ring in which the coefficients of f live... -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Roots af a polynomial
Thank you. On 18 July 2013 16:09, William Stein wst...@gmail.com wrote: On Thu, Jul 18, 2013 at 12:53 PM, Santanu Sarkar sarkar.santanu@gmail.com wrote: Over integer. I did R.x = QQ[x] f = x*(x^3+1)*(x-17) then looked at f.roots?? which says it uses f.factor. So I looked at f.factor?? and it uses Pari. (It probably helped that I wrote a lot of this code.) So the answer appears to be the Sage completely factors the polynomial using Pari, then pulls off the degree 1 factors to give the roots. I make no claim that this is in any way the best approach -- it really can't be in general. For example, if you can factor the constant term of the polynomial, then simply checking through divisors might be dramatically faster (depending on how many divisors there are). William On 18 July 2013 15:50, William Stein wst...@gmail.com wrote: On Thu, Jul 18, 2013 at 11:54 AM, Santanu Sarkar sarkar.santanu@gmail.com wrote: What algorithm is used in Sage to calculate the roots of a polynomial f(x)? Corresponding Sage function is f.roots() What is the base ring? There are a dozen answers, depending on the ring in which the coefficients of f live... -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] My local sage now asks for a user name and password, what to do?
What about trying Username: admin Password: sage ? It works for me on Windows. Good luck, Kwa On Thursday, July 18, 2013 8:02:21 PM UTC+8, jdelcourt wrote: Same problem, and the solution of William does'nt work; when I open a console window, one ask me login and password, 'sage' and 'sage' are not accepted. I have had no problem with ancient version of Virtual Machine and Sage... (excuse my poor English), jean 2013/7/14 William Stein wst...@gmail.com javascript: On Sat, Jul 13, 2013 at 2:18 PM, Kjetil brinchmann Halvorsen kjeti...@gmail.com javascript: wrote: I have now installed sage for ubuntu (really Lubuntu ...) from the available repository deb http://ppa.launchpad.net/aims/sagemath/ubuntu raring main and my installation is uptodate. Now when starting sage, then saying notebook() it opens a window in the browser which asks for username and password!!! but no way to making such a user. What to do? Try typing sage: notebook(reset=True) William Kjetil -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com javascript:. To post to this group, send email to sage-s...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com javascript:. To post to this group, send email to sage-s...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.