Re: [sage-support] typesetting issue

2013-01-02 Thread Kannappan Sampath
Let me also add that there are other places where similar things happen too: for instance: the Operation Tables typesetting, the docstrings of IntegralMatrices Class. I have been unable to figure out what to fix though. Kan On Thu, Jan 3, 2013 at 6:19 AM, robin hankin wrote: > hello > > I have

Re: [sage-support] bug in discriminant of polynomial over polynomial ring

2013-01-20 Thread Kannappan Sampath
Hello, sage: version() 'Sage Version 5.5, Release Date: 2012-12-22' On Sun, Jan 20, 2013 at 7:36 PM, Peter Mueller wrote: > I believe the following Sage code (version 4.5.1) exhibits a bug: > > sage: K.=GF(5)[] > sage: R.=K[] > sage: S.=GF(5)[] > sage: f=x^10+2*x^6+2*x^5+x+2 > sage: > sage: S(f)

[sage-support] Clearing the Terminal when running Sage

2013-02-08 Thread Kannappan Sampath
Hello! Sage versions: 5.6, 5.7beta3... I'd be glad if someone can help me here: I'd like to clear the terminal sometimes when I run Sage. -- For instance on Octave, Ctrl + L works [1]. Here is what surprises me: in the Octave interface that Sage provides, this simply does not work!! I don't und

Re: [sage-support] Re: Clearing the Terminal when running Sage

2013-02-08 Thread Kannappan Sampath
> > I think that "clear" (with no parentheses) clears the screen. "reset('a')" >> is probably the command you're looking for. >> > No, I wanted to clear the screen. I brought in Octave for want of an anology and to say the fact that what works when I start Octave myself does not work when I start i

Re: [sage-support] Re: Clearing the Terminal when running Sage

2013-02-09 Thread Kannappan Sampath
Thank you everyone for the help! But, in the octave_console provided by Sage, ctrl+L does not work! Isn't this bug (given that it works when I run Octave from outside Sage)? (clear should not and does not work!) ~KnS On Sat, Feb 9, 2013 at 12:59 PM, John H Palmieri wrote: > > > On Friday, Febr

[sage-support] Key-binding for clearing terminal Sage

2013-02-24 Thread Kannappan Sampath
Hello everybody, 1. What is the keybinding for clearing screen in the sage terminal? 2. In an octave process started outside sage, ctrl+L clears screen. But, it does not do so when an octave process is started from within Sage. This is a bug, IMHO. -- You received this message because you are s

Re: [sage-support] Re: Key-binding for clearing terminal Sage

2013-02-26 Thread Kannappan Sampath
On Wed, Feb 27, 2013 at 9:18 AM, Jason Grout wrote: > On 2/26/13 5:38 PM, Chad Williamson wrote: > >> I for one agree that would be nice. Anybody have a reason this isn't done? >> >> I use ctrl+L quite a bit when presenting things in bash, and I certainly >> miss it in sage -- enough to have throw

Re: [sage-support] Re: Key-binding for clearing terminal Sage

2013-02-26 Thread Kannappan Sampath
1. OS = Ubuntu 12.04 2. Terminal Client - The default one: GNOME Terminal No, I don't have any customizations to IPython. No, it does not work even with sage -ipython. On Wed, Feb 27, 2013 at 9:44 AM, Jason Grout wrote: > On 2/26/13 6:10 PM, Kannappan Sampath wrote: > >> On

Re: [sage-support] Re: Converting an integer to a given base

2013-03-16 Thread Kannappan Sampath
Hello! There is a ticket on trac: http://trac.sagemath.org/sage_trac/ticket/10253 which is meant to write this up in the documentation. I thought it would be worth mentioning just in case anybody wants to write this up. (I will get to this eventually, if nobody takes this up now. ;-) ) Regards, ~

[sage-support] Manipulating symbolic expressions

2013-06-14 Thread Kannappan Sampath
Hello! var('x, n') assume(n > 3); assume(x**4 == x**3); print bool(x**n == x**3); print bool(x**5 == x**3); prints False and True. It appears to me that, the assumption assume(n > 3) is not being considered while checking for the truth of the statements. Can someone help me understand what the

Re: [sage-support] Re: Manipulating symbolic expressions

2013-06-27 Thread Kannappan Sampath
Dear Ryan, Thank you for the reply. That clears up a bit! ~KnS On Thu, Jun 27, 2013 at 12:19 PM, Ryan Davis wrote: > When I execute your commands, it looks like Sage does hold your > assumptions true. The first issue I saw/tried to test is the handling of > n. If n is an integer, then x^n ==

Re: [sage-support] Error summing inverses of binomial coefficients

2013-07-18 Thread Kannappan Sampath
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 sh

[sage-support] cpu time

2013-12-21 Thread Kannappan Sampath
Hi, I'd like to know how to get some idea on the runtime of a certain program. In particular, I'd like to know the following: how to run the program for various values of input, say parametrised by the set of positive integers and extract the cpu time required for the computation. Thank you, Re

Re: [sage-support] Re: cpu time

2013-12-21 Thread Kannappan Sampath
at 3:17 PM, Simon King wrote: > Hi Kannappan, > > On 2013-12-21, Kannappan Sampath wrote: > > I'd like to know how to get some idea on the runtime of a certain > program. > > In particular, I'd like to know the following: > > > > how to run the progra

Re: [sage-support] Re: cpu time

2013-12-21 Thread Kannappan Sampath
e of this process. I'd appreciate any help in this regards. >> >> With Sincere Regards, >> Kannappan. >> >> >> >> >> On Sat, Dec 21, 2013 at 3:17 PM, Simon King wrote: >> >>> Hi Kannappan, >>> >>> >>> On 2013-1

Re: [sage-support] Re: cpu time

2013-12-21 Thread Kannappan Sampath
cursion, so >>>>> this must be true!), we have the following very irregular data: >>>>> >>>>> e = 2 : 0.104 >>>>> e = 3: 0.024 >>>>> e = 4: 0.004 >>>>> e = 5: 0.004 >>>>> e = 6: 0.016 >>>

[sage-support] RuntimeError: ECL says: Module error: Don't know how to REQUIRE MAXIMA.

2014-04-05 Thread Kannappan Sampath
Hi Sage-Support: I recently updated my sage to the recent version available from sage -update. And, I am faced with this problem: sage: var('x') x sage: simplify(x+1-x) --- RuntimeError Traceb

Re: [sage-support] Re: RuntimeError: ECL says: Module error: Don't know how to REQUIRE MAXIMA.

2014-04-06 Thread Kannappan Sampath
Thank you, Volker! Yes that fixed the problem! On Sun, Apr 6, 2014 at 12:15 PM, Volker Braun wrote: > It works for me, can you try to "make distclean && make" to recompile from > scratch? There might be some cruft left-over. > >> >> -- > You received this message because you are subscribed to

[sage-support] Some GIT help

2014-04-10 Thread Kannappan Sampath
I am now trying to update SAGE to its newest development version via GIT: Apples-MacBook-Pro:sage apple$ git pull git://trac.sagemath.org/sage.gitdevelop remote: Counting objects: 14241, done. remote: Compressing objects: 100% (5832/5832), done. remote: Total 12263 (delta 10270), reused 8154 (d

Re: [sage-support] Re: Some GIT help

2014-04-15 Thread Kannappan Sampath
Thank you Peter and Volker for all the help! I actually forgot about this one until I had to look this up again! -KnS On Thu, Apr 10, 2014 at 6:51 PM, Peter Bruin wrote: > Hello, > > I'm also a git beginner, so the experts should correct me if there is a > better way, but what I normally do in

[sage-support] GAP on all cells in SMC

2014-05-04 Thread Kannappan Sampath
Hi Sage-Support, I would like to arrange so that all the computations on a certain worksheet Sage Math Cloud evaluate in GAP. One way is to have %gap in the beginning of all cells. Is there a simpler way? -Kannappan. -- You received this message because you are subscribed to the Google Gro

Re: [sage-support] GAP on all cells in SMC

2014-05-04 Thread Kannappan Sampath
Thank you! Kannappan. On Sun, May 4, 2014 at 10:42 PM, William Stein wrote: > On Sun, May 4, 2014 at 8:10 AM, Kannappan Sampath > wrote: > > Hi Sage-Support, > > > > I would like to arrange so that all the computations on a certain > worksheet Sage Math Cloud eva

Re: [sage-support] Error installing package singular-3.1.5.p9

2014-05-04 Thread Kannappan Sampath
What version of SAGE are you trying to compile? Kannappan. On Sun, May 4, 2014 at 7:00 PM, Edidiong Attang wrote: > Good day, > I have tried installing the sage software the last 48 hours. It appears > the latest error is this > > > *Error installing package singular-3.1.5.p9* > > I am using a

Re: [sage-support] Getting started with SMC

2014-05-05 Thread Kannappan Sampath
Hi Richard, - To access SAGE, you ought to create a new Sage worksheet or create a new terminal session by clicking on the new menu. - To execute a cell, you ought to press shift + enter. (This behaviour can be changed: that is, you can bind the enter key to execute a cell, and shift+enter to cre

Re: [sage-support] question about hg (newbie)

2014-05-12 Thread Kannappan Sampath
Hi Ketch, What version of Sage have you installed? I ask because Sage has since v6.0 moved to using GIT for version control... --Kannappan. On Mon, May 12, 2014 at 1:12 AM, J.A. Ketch wrote: > I install sage in ubuntu using the following commands: > > $apt-add-repository -y ppa:aims/sagemath

Re: [sage-support] Re: How do you convert a string reprsentation of a polynomial back to a polynomial in a polynomial ring

2014-05-29 Thread Kannappan Sampath
On Fri, May 30, 2014 at 12:17 AM, William Stein wrote: > On Thu, May 29, 2014 at 11:37 AM, Simon King > wrote: > > Hi Stephen > > > > On 2014-05-29, Stephen Kauffman wrote: > >> Specifically I have a polynomial such as mypoly = X*Y + 1 in > >> BooleanPoynomialRing() and str(mypoly) converts it

Re: [sage-support] rationalizing fractions

2014-06-10 Thread Kannappan Sampath
Hi John, Could you please take a look at this askSage question: http://ask.sagemath.org/question/792/how-to-rationalize-the-denominator-of-a-fraction ? HTH, Kannappan. On Wed, Jun 11, 2014 at 3:40 AM, john_perry_usm wrote: > Suppose I have 2/sqrt(5). Is there a straightforward way of rational

Re: [sage-support] Is there a plan to make ask.sagemath.org available?

2014-06-13 Thread Kannappan Sampath
Hi Bruno, My answer won't help the case in point but ... Here is some plug: there is a proposal for Sage StackExchange site which can get off the ground with more support (at the moment, we are short of the threshold number of upvoted questions). So, please follow the proposal, add new example qu

Re: [sage-support] Is there a plan to make ask.sagemath.org available?

2014-06-13 Thread Kannappan Sampath
Oh, and I forgot to link to it: http://area51.stackexchange.com/proposals/70511/sage -- Kannappan. On Fri, Jun 13, 2014 at 2:27 PM, Kannappan Sampath wrote: > Hi Bruno, > > My answer won't help the case in point but ... > > Here is some plug: there is a proposal for Sag

Re: [sage-support] Is there a plan to make ask.sagemath.org available?

2014-06-13 Thread Kannappan Sampath
antastic! > Best, > Bruno > > Le vendredi 13 juin 2014 10:58:45 UTC+2, KnS a écrit : >> >> Oh, and I forgot to link to it: >> >> http://area51.stackexchange.com/proposals/70511/sage >> >> -- Kannappan. >> >> >> On Fri, Jun 13, 201

Re: [sage-support] BooleanPolynomialRing and degrevlex term order

2014-06-17 Thread Kannappan Sampath
You can reverse a python list L by doing L[::-1]. So, in this case, you just create the ring with 'degneglex' and reverse the gens list X to get Y say. Then, input the polynomials as if your variables Y[0] to Y[n] instead of the variables X[0] upto X[n]. --Kannappan. On Wed, Jun 18, 2014 at 3:3

Re: [sage-support] Graph Cration with distances

2014-06-19 Thread Kannappan Sampath
Hi, I shall only answer your first question of how to create Graphs in Sage (although I am not any expert on Graphs and such stuff...) Did you look through the documentation? For example, have a look though these: http://www.sagemath.org/doc/reference/graphs/index.html Also note that most of the

Re: [sage-support] Re: Generating functions slow in Sage?

2014-08-30 Thread Kannappan Sampath
On Fri, Aug 29, 2014 at 2:06 PM, Dima Pasechnik wrote: > On 2014-08-29, kcrisman wrote: > > > > > > Some of you may want to know about this question: > > > > > http://stackoverflow.com/questions/25570037/best-language-to-do-some-annoying-generating-function-computations > > > > excerpt: > > > >

[sage-support] Re: Ubuntu 12.04 LTS Installation with Update Manager Fails for Sage 5.4.

2012-11-14 Thread kannappan sampath
I am also facing the same problem while updating Sage from the Ubuntu PPA. Running sudo dpkg-reconfigure sagemath-upstream-binary produced the following output for me. Removing previous path, rm -rf /usr/lib/sage (new path /usr/lib/sagemath) Running Sage once as root to set paths --

Re: [sage-support] Re: Ubuntu 12.04 LTS Installation with Update Manager Fails for Sage 5.4.

2012-11-14 Thread Kannappan Sampath
ackup and see whether you still get that error? > > Regards, > Jan > > > > > > On 14 November 2012 05:43, kannappan sampath wrote: > >> I am also facing the same problem while updating Sage from the Ubuntu >> PPA. Running sudo dpkg-reconfigure sagemath-upst

Re: [sage-support] Re: Ubuntu 12.04 LTS Installation with Update Manager Fails for Sage 5.4.

2012-11-14 Thread Kannappan Sampath
n. > > Regards, > Jan > > > > > > > On 14 November 2012 13:15, Kannappan Sampath wrote: > >> Dear Jan, >> I get the following message: >> >> ii sagemath-upstream-binary 5.4 >> >> Sage is a free open-source

Re: [sage-support] Installation from Update Manager and Compiling from Source Fails for Sage 5.4 on Ubuntu 12.04 LTS

2012-11-14 Thread Kannappan Sampath
Dear grshutt, Could you run the Sage with sudo permissions? Also, I had more or less the same problem, if your answer to the previous question is yes. I was suggested that I move .sage to .sage.backup and it worked like a charm. I think the following is a cleaner solution (quoting Jan's tip in t

[sage-support] gap_console() in Sage 5.4.1

2012-11-24 Thread Kannappan Sampath
Hello, For some reason, the function gap_console() is broken on my recently updates Sage System. Sage version: 'Sage Version 5.4.1, Release Date: 2012-11-15' Here is the error message I get: Couldn't open saved workspace /home/knsam/.sage/gap/workspace-616219925029436111/usr/lib/sagemath/local/

Re: [sage-support] Re: gap_console() in Sage 5.4.1

2012-11-24 Thread Kannappan Sampath
On Sat, Nov 24, 2012 at 4:31 PM, Dima Pasechnik wrote: > On 2012-11-24, Kannappan Sampath wrote: > > --089e0115e9d467855804cf3a6021 > > Content-Type: text/plain; charset=ISO-8859-1 > > > > Hello, > > For some reason, the function gap_console() is broken on my

Re: [sage-support] Re: gap_console() in Sage 5.4.1

2012-11-24 Thread Kannappan Sampath
eError could be linked; or, I am willing to write up too.) With Sincere Regards, ~KnS > > > On Saturday, November 24, 2012 9:32:22 AM UTC, kannappan sampath wrote: >> >> Hello, >> For some reason, the function gap_console() is broken on my recently >> updates Sage Sys

Re: [sage-support] Notebook hangs on 'pi.n?'

2012-11-25 Thread Kannappan Sampath
FWIW, let me add that on my Sage 5.4.1, the problem could not be reproduced; the output took a little less than 10 seconds to appear. However, trying this on the Sagenb server did seem to take a long time... in fact, there was no output even after a reasonable (3 - 4 mins) of time. I think it is a

Re: [sage-support] Re: sage v5.4.1 linux 32bit, twistd error when starting notebook(dir=..)

2012-11-27 Thread Kannappan Sampath
On Wed, Nov 28, 2012 at 12:27 AM, Jason Grout wrote: > On 11/23/12 3:19 PM, Andre, der Besonnene wrote: > >> When I start a notebook without giving a directory parameter >> everything works fine. But when I try to add a directory parameter sage >> refuses to start a webinterface server: >> >> sa

Re: [sage-support] Re: sage v5.4.1 linux 32bit, twistd error when starting notebook(dir=..)

2012-11-27 Thread Kannappan Sampath
ail. ~KnS On Wed, Nov 28, 2012 at 1:14 AM, Kannappan Sampath wrote: > > On Wed, Nov 28, 2012 at 12:27 AM, Jason Grout > wrote: > >> On 11/23/12 3:19 PM, Andre, der Besonnene wrote: >> >>> When I start a notebook without giving a directory parameter >>

Re: [sage-support] Typo in documentation of free modules

2012-11-30 Thread Kannappan Sampath
This is trac #13780 now. Thanks Philipp for reporting here. (I'll submit a patch now; but, I am ccing to the sage-devel to ask if issues that are so trivial to fix but still can be considered major, deserve a separate ticket). Thank you, ~KnS On Wed, Nov 28, 2012 at 11:54 PM, Philipp Kerling wr

Re: [sage-support] Re: Symbolic functions (?) problems

2012-12-21 Thread Kannappan Sampath
Emmanuel wrote: "Please let me know how to comment a ticket, and I will report this." I think the usual procedure is to request a TRAC account (the details of how to request are outlined in the SAGE TRAC homepage). HTH, Kannappan On Fri, Dec 21, 2012 at 8:38 PM, Emmanuel Charpentier < emanuel.ch