[sage-devel] Updating from 9.1 to 9.2

2021-02-01 Thread Kannappan Sampath
Hello everyone:

I am trying to update from 9.1 to 9.2 and I think I broke my sage in the
process. I have a copy of sage-9.1 built from source and tried to update as
follows.

[knsam@locmach sage-9.1]$ ./sage -upgrade
must source sage-env-config before sage-env
Error setting environment variables by sourcing
'/home/knsam/Downloads/sage-9.1/src/bin/sage-env';
possibly contact sage-devel (see http://groups.google.com/group/sage-devel).


On googling, this seems to have been reported earlier but I don't know how
to fix it now. I would appreciate it if you can point me in the right
direction!

I'd also appreciate some hand-holding as to good practices for updating my
local copy of sage... Thank you!

   Best,
   Kannappan


-
*Kannappan Sampath*
*Graduate Student*

Department of Mathematics | University of Michigan
kn...@umich.edu

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CALY4dM_kmzhvpPJkN8QrGvwW28_yv1rOitF8N3V-kj0iG6NeDw%40mail.gmail.com.


Re: [sage-devel] Re: Sage Magma interface

2020-08-27 Thread Kannappan Sampath
Thank you! That is very useful to know!
Marc helped me more and I have gotten it working again!

Thank you!

   Best,
   Kannappan


-
*Kannappan Sampath*
*Graduate Student*

Department of Mathematics | University of Michigan
kn...@umich.edu


On Thu, Aug 27, 2020 at 4:03 AM Dima Pasechnik  wrote:

> On Thu, Aug 27, 2020 at 3:01 AM Kannappan Sampath  wrote:
> >
> > Hello everyone:
> >
> > After some poking around (and hat tip from Marc Masdeu), I notice that
> the source for the error might be in part due to the following:
> >
> >
> > [knsam@gl-login1 magma]$ echo $SAGE_ROOT
> > /sw/lsa/centos7/sage/9.1
> >
> > For some reason, sage is looking in $SAGE_ROOT/lib/sage/ext_data/magma/
> and from what I can see, in my installation, there is no such thing.
> However, I do notice that the file containing the commands that would make
> this run namely basic.m is in
> >
> > $SAGE_ROOT/lib/python3.7/site-packages/sage/ext_data/magma/
> >
> > Does this mean that I should somehow recompile sage with a different
> SAGE_ROOT, or teach Sage to look here instead when it wants to fool around
> with magma? Any help fixing it would be appreciated. Thank you!
>
>
> Sage looks for Magma stuff in SAGE_EXTCODE/magma/, where SAGE_EXTCODE
> value may be inspected by
>
> sage: from sage.env import SAGE_EXTCODE
> sage: SAGE_EXTCODE
>
>
> on my installation I see the latter showing
> '/mnt/opt/Sage/sage-dev/local/lib/python3.7/site-packages/sage/ext_data'
> (where SAGE_ROOT==/mnt/opt/Sage/sage-dev/)
>
> What is the value of SAGE_EXTCODE in your case?
> It should be $SAGE_ROOT/lib/python3.7/site-packages/sage/ext_data/
>
> If it's not, it has to be set to the correct value.
>
> > On Wednesday, August 26, 2020 at 12:15:44 PM UTC-4 Kannappan Sampath
> wrote:
> >>
> >> Hello everyone:
> >>
> >> I am trying to compute with Eichler orders in a definite quaternion
> algebra and consequently would like for Sage and Magma to talk to each
> other.  I am using Sage version 9.1 and Magma version V2.25-2. I think that
> Sage is able to discover the Magma installation (eg. magma_console() works).
> >>
> >> However, in my installation, somehow many of the basic Sage<->Magma
> interface commands are broken. For example:
> >>
> >> sage: magma(1).sage()
> >>
> >>
> ---
> >>
> >> RuntimeError  Traceback (most recent call
> last)
> >>
> >>  in ()
> >>
> >> > 1 magma(Integer(1)).sage()
> >>
> >>
> >>
> /sw/lsa/centos7/sage/9.1/lib/python3.7/site-packages/sage/interfaces/interface.py
> in sage(self, *args, **kwds)
> >>
> >>1085 [0 0]
> >>
> >>1086 """
> >>
> >> -> 1087 return self._sage_(*args, **kwds)
> >>
> >>1088
> >>
> >>1089 def __repr__(self):
> >>
> >>
> >>
> /sw/lsa/centos7/sage/9.1/lib/python3.7/site-packages/sage/interfaces/magma.py
> in _sage_(self)
> >>
> >>2062 Ring of integers modulo 137
> >>
> >>2063 """
> >>
> >> -> 2064 z, preparse = self.Sage(nvals=2)
> >>
> >>2065 s = str(z)
> >>
> >>2066 preparse = str(preparse) == 'true'
> >>
> >>
> >>
> /sw/lsa/centos7/sage/9.1/lib/python3.7/site-packages/sage/interfaces/magma.py
> in __call__(self, *args, **kwds)
> >>
> >>1680[self._obj.name()] + list(args),
> >>
> >>1681params=kwds,
> >>
> >> -> 1682nvals=nvals)
> >>
> >>1683
> >>
> >>1684 def _instancedoc_(self):
> >>
> >>
> >>
> /sw/lsa/centos7/sage/9.1/lib/python3.7/site-packages/sage/interfaces/magma.py
> in function_call(self, function, args, params, nvals)
> >>
> >>1163 fun = "%s(%s%s)" % (function, ",".join([s.name() for s
> in args]), par)
> >>
> >>1164
> >>
> >> -> 1165 return self._do_call(fun, nvals)
> >>
> >>1166
> >>
> >>1167 def _do_call(self, code, nvals):
> >>
> >>
> >>
> /sw/lsa/cent

[sage-devel] Re: Sage Magma interface

2020-08-26 Thread Kannappan Sampath
Hello everyone: 

After some poking around (and hat tip from Marc Masdeu), I notice that the 
source for the error might be in part due to the following: 


[knsam@gl-login1 magma]$ echo $SAGE_ROOT
/sw/lsa/centos7/sage/9.1

For some reason, sage is looking in $SAGE_ROOT/lib/sage/ext_data/magma/ and 
from what I can see, in my installation, there is no such thing. However, I 
do notice that the file containing the commands that would make this run 
namely basic.m is in 

$SAGE_ROOT/lib/python3.7/site-packages/sage/ext_data/magma/

Does this mean that I should somehow recompile sage with a different 
SAGE_ROOT, or teach Sage to look here instead when it wants to fool around 
with magma? Any help fixing it would be appreciated. Thank you! 
On Wednesday, August 26, 2020 at 12:15:44 PM UTC-4 Kannappan Sampath wrote:

> Hello everyone: 
>
> I am trying to compute with Eichler orders in a definite quaternion 
> algebra and consequently would like for Sage and Magma to talk to each 
> other.  I am using Sage version 9.1 and Magma version V2.25-2. I think that 
> Sage is able to discover the Magma installation (eg. magma_console() 
> works). 
>
> However, in my installation, somehow many of the basic Sage<->Magma 
> interface commands are broken. For example: 
>
> sage: magma(*1*).sage()
>
> ---
>
> RuntimeError  Traceback (most recent call 
> last)
>
>  in ()
>
> > 1 magma(Integer(1)).sage()
>
>
>
> /sw/lsa/centos7/sage/9.1/lib/python3.7/site-packages/sage/interfaces/interface.py
>  
> in sage(self, *args, **kwds)
>
> *   1085* [0 0]
>
> *   1086* """
>
> -> 1087 return self._sage_(*args, **kwds)
>
> *   1088* 
>
> *   1089* def __repr__(self):
>
>
>
> /sw/lsa/centos7/sage/9.1/lib/python3.7/site-packages/sage/interfaces/magma.py 
> in _sage_(self)
>
> *   2062* Ring of integers modulo 137
>
> *   2063* """
>
> -> 2064 z, preparse = self.Sage(nvals=2)
>
> *   2065* s = str(z)
>
> *   2066* preparse = str(preparse) == 'true'
>
>
>
> /sw/lsa/centos7/sage/9.1/lib/python3.7/site-packages/sage/interfaces/magma.py 
> in __call__(self, *args, **kwds)
>
> *   1680*[self._obj.name()] + list(args),
>
> *   1681*params=kwds,
>
> -> 1682nvals=nvals)
>
> *   1683* 
>
> *   1684* def _instancedoc_(self):
>
>
>
> /sw/lsa/centos7/sage/9.1/lib/python3.7/site-packages/sage/interfaces/magma.py 
> in function_call(self, function, args, params, nvals)
>
> *   1163* fun = "%s(%s%s)" % (function, ",".join([s.name() for s 
> in args]), par)
>
> *   1164* 
>
> -> 1165 return self._do_call(fun, nvals)
>
> *   1166* 
>
> *   1167* def _do_call(self, code, nvals):
>
>
>
> /sw/lsa/centos7/sage/9.1/lib/python3.7/site-packages/sage/interfaces/magma.py 
> in _do_call(self, code, nvals)
>
> *   1218* vars = ", ".join(v)
>
> *   1219* cmd = "%s := %s;" % (vars, code)
>
> -> 1220 out = self.eval(cmd)
>
> *   1221* ans = tuple([MagmaElement(self, x, is_name=True) for 
> x in v])
>
> *   1222* 
>
>
>
> /sw/lsa/centos7/sage/9.1/lib/python3.7/site-packages/sage/interfaces/magma.py 
> in eval(self, x, strip, **kwds)
>
> *561* ans = Expect.eval(self, x, **kwds).replace('\\\n', '')
>
> *562* if 'Runtime error' in ans or 'User error' in ans:
>
> --> 563 raise RuntimeError("Error evaluating Magma 
> code.\nIN:%s\nOUT:%s" % (x, ans))
>
> *564* return ans
>
> *565* 
>
>
> RuntimeError: Error evaluating Magma code.
>
> IN:_sage_[33], _sage_[16] := Sage(_sage_[24]);
>
> OUT:
>
> >> _sage_[33], _sage_[16] := Sage(_sage_[24]);
>
>  ^
>
> User error: Identifier 'Sage' has not been declared or assigned
>
>
> sage: R. = PolynomialRing(QQ)
>
> sage: S = magma(R)
>
> ---
>
> RuntimeError  Traceback (most recent call 
> last)
>
>
> /sw/lsa/centos7/sage/9.1/lib/python3.7/site-packages/sage/interfaces/expect.py
>  
> in __init__(self, parent, value, is_name, name)
>
> *   1470* try:
>
> -> 1471 self._name = parent._create(value, name=name)
>
> *   1472*

[sage-devel] Re: Completions of NumberFields at non-archimedean primes

2019-06-20 Thread Kannappan Sampath
Further update (after poking around) ---

Our p-adics framework already anticipates this very thing (see the function
sage.rings.padics.factory.split(poly, prec) at the end of the page linked
below) 

http://doc.sagemath.org/pdf/en/reference/padics/padics.pdf#page=46

There is a cryptic remark "We need better 푝-adic factoring in Sage before
this function can be implemented." I gather this is circa 2011, but also I
am not sure what algorithm was intended?

I have not thought about the algorithmics of this before, so I apologize if
what follows is garbage.
But looking online, it seems like Ore-Maclane algorithm or modified
versions thereof can solve this problem?
In 2013, Julian R\"uth has implemented some aspects of the OM algorithm. So
presumably we are not far off?

Thank you for your indugence and help!

   Best,
   Kannappan


-----
*Kannappan Sampath*

Department of Mathematics | University of Michigan
EH Rm 3080 | kn...@umich.edu


On Thu, Jun 20, 2019 at 8:45 PM Kannappan Sampath  wrote:

> Hello everyone ---
>
> Does Sage already support computing completions of number field like magma
> does?
>
> In other words, given a number field H and a prime ideal P in H, return
> the pair (H_P, phi) where H_P is the completion and phi: H c> H_P is
> the canonical embedding.
>
> I see that there has been recent activity implementing completions of
> global function fields.
> https://trac.sagemath.org/ticket/27418
>
> I don't quite know what Sage is currently lacking in terms of actually
> implementing this. (Apologies in advance if (a) is already possible!)
>
> Thank you!
>
>
>    Best,
>    Kannappan
>
>
> -
> *Kannappan Sampath*
>
> Department of Mathematics | University of Michigan
> EH Rm 3080 | kn...@umich.edu
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CALY4dM-WjTY0XhcqQW5Nfm5QChkd7BzpHe0kmG6vv8c%3DRqxb8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Completions of NumberFields at non-archimedean primes

2019-06-20 Thread Kannappan Sampath
Hello everyone ---

Does Sage already support computing completions of number field like magma
does?

In other words, given a number field H and a prime ideal P in H, return the
pair (H_P, phi) where H_P is the completion and phi: H c> H_P is the
canonical embedding.

I see that there has been recent activity implementing completions of
global function fields.
https://trac.sagemath.org/ticket/27418

I don't quite know what Sage is currently lacking in terms of actually
implementing this. (Apologies in advance if (a) is already possible!)

Thank you!


   Best,
   Kannappan


-
*Kannappan Sampath*

Department of Mathematics | University of Michigan
EH Rm 3080 | kn...@umich.edu

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CALY4dM-AeLbGR4wHrtQxXyysqbHdoNFz%2BTY60EboDZKEiYObLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] p-adic analytic functions

2019-06-20 Thread Kannappan Sampath
On Thu, Jun 20, 2019 at 3:10 PM David Roe  wrote:

>
>
> On Thu, Jun 20, 2019 at 1:55 PM Kannappan Sampath  wrote:
>
>> Hello everyone --
>>
>> I am trying to do the following computation ---
>>
>> Suppose that h(z) is a polynomial defined over an extension of the
>> 23-adic integers with unit constant term h(0) and that the uniformizer
>> divides h(z)-h(0). "By Newton's binomial theorem", it admits a square root.
>> I want to be able to compute this square root.
>>
>
> I'm not quite sure what the setup is; what is "it" that admits a square
> root?  Perhaps you could provide a sequence of Sage commands illustrating
> what you're looking for?
>

Sorry, "it" was supposed to be h(z).

>
> Have you tried just calling sqrt() on the element?
>

Admittedly, after coercing the element into a formal power series ring, I
was able to do compute "the" formal square root of h.
For now, I think this would suffice. I have a hacky way to finish the rest
of the computation I have in mind, I think.

I will perhaps write a trac ticket with more precise description of the
functionality that would be nice to have.
Thank you for your help!

David
>
>
>> Set aside precision issues for a moment; short of coding this by hand,
>> are there methods in Sage that I should be looking at? I haven't kept in
>> touch with the developments on Sage in the past three years and so I am not
>> sure what has been done.
>>
>> Thank you for any pointers you might have!
>>
>>Best,
>>Kannappan
>>
>>
>> -
>> *Kannappan Sampath*
>>
>> Department of Mathematics | University of Michigan
>> EH Rm 3080 | kn...@umich.edu
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to sage-devel+unsubscr...@googlegroups.com.
>> To post to this group, send email to sage-devel@googlegroups.com.
>> Visit this group at https://groups.google.com/group/sage-devel.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-devel/CALY4dM-iPFKE0%3Dp55_rR_%3DujDGEm1yqdFyPo3wum6kbD8jMpPA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/sage-devel/CALY4dM-iPFKE0%3Dp55_rR_%3DujDGEm1yqdFyPo3wum6kbD8jMpPA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CAChs6_nBusoqd68sd1u9y4Up7g-fuCUJs6yeiTzqN8DKv%3D%2Bfeg%40mail.gmail.com
> <https://groups.google.com/d/msgid/sage-devel/CAChs6_nBusoqd68sd1u9y4Up7g-fuCUJs6yeiTzqN8DKv%3D%2Bfeg%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CALY4dM_RgQSPsNVaQ6bP1AYihMig-YF7v6U4mhH%2BcWavPHhf-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] p-adic analytic functions

2019-06-20 Thread Kannappan Sampath
Hello everyone --

I am trying to do the following computation ---

Suppose that h(z) is a polynomial defined over an extension of the 23-adic
integers with unit constant term h(0) and that the uniformizer divides
h(z)-h(0). "By Newton's binomial theorem", it admits a square root. I want
to be able to compute this square root.

Set aside precision issues for a moment; short of coding this by hand, are
there methods in Sage that I should be looking at? I haven't kept in touch
with the developments on Sage in the past three years and so I am not sure
what has been done.

Thank you for any pointers you might have!

   Best,
   Kannappan


-
*Kannappan Sampath*

Department of Mathematics | University of Michigan
EH Rm 3080 | kn...@umich.edu

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CALY4dM-iPFKE0%3Dp55_rR_%3DujDGEm1yqdFyPo3wum6kbD8jMpPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Some Magma help

2018-10-31 Thread Kannappan Sampath
Dear Simon:

Thank you for your email!

I think our definition of a lattice should be (!) identical over ZZ. But I
think that the techniques one needs to compute Hecke operators will involve
enumerating short vectors in lattices. (Moreover, the structure theory for
a finitely generated module over an arbitrary Dedekind domain, while
analogous, is presumably computationally involved.

In any case, I will be happy to take a look at the code once I am up to
speed with GIT and the trac server!

   Best,
   Kannappan


-
*Kannappan Sampath*
*Graduate Student*

Department of Mathematics | University of Michigan
EH Rm 3080 | kn...@umich.edu


On Wed, Oct 31, 2018 at 11:03 AM Simon Brandhorst 
wrote:

> Dear Kannappan,
>
> what is your definition of a lattice? I am working on some functionality
> for quadratic forms/lattices just search for QuadraticForm or
> IntegralLattice. However these work only over ZZ.
> I have some code queued up to compute spinor genera, genus
> representatives, maximal overlattices. Your help in reviewing these tickets
> would be very much welcome.
>
> Best
> Simon
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Fwd: [sage-trac-account] BUG Report

2016-05-09 Thread Kannappan Sampath
Dear Debajyoti:

Thank you for your report. We appreciate it. sage-devel is one place to
report bugs!

=

Dear all:

This is a bug report sent to sage-trac-account.

Regards,
KnS.

-- Forwarded message --
From: Debajyoti Nandi 
Date: Mon, May 9, 2016 at 1:17 AM
Subject: [sage-trac-account] BUG Report
To: sage-trac-acco...@googlegroups.com


Name: Debajyoti Nandi
Preferred Username: deehzee
Contact email: deeh...@gmail.com
Reason: BUG Report

I'm not sure if I'm at right place for reporting this. But here is the
issue:

All links in the "modules" page on docs.sagemath.org are broken.  Below is
the URL which lists the modules (but the links within this page doesn't
work):
http://doc.sagemath.org/html/en/developer/py-modindex.html

Thank you very much and best regards,
Debajyoti.

-- 
-- 
You received this message because you are subscribed to the Google Groups
"sage-trac-account" group.
To post to this group, send email to sage-trac-acco...@googlegroups.com
To unsubscribe from this group, send email to
sage-trac-account+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-trac-account

---
You received this message because you are subscribed to the Google Groups
"sage-trac-account" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to sage-trac-account+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Maple versus Mathematica

2014-12-04 Thread Kannappan Sampath
Hello everybody:

On Mon, Dec 1, 2014 at 2:53 AM, Nathann Cohen nathann.co...@gmail.com
wrote:

 Hello !

  That's right. Do you (or any of the authors of this book...) know whether
  an English/German/Spanish/... translation or a similar project in another
  language is planned? That could be a good way to show teachers that Sage
 is
  well-suited for classes.

 Kanappan wanted to work on an english translation at some point, but
 there was no news since and he work in Canada nowadays. Not sure that
 he has a lot of time for that.


I sure would like to contribute something towards that. I am at the moment
having a couple of exams and papers to finish writing! I will get around to
this surely before my winter term begins...

It reminds me of how I should figure out how to share the translation I
already have...

I have so far been working only on the chapter 9 about polynomials...

--Kannappan.

  I guess the number of available books on Maple and
  Mathematica is a reason for some teachers to choose these languages. To
 my
  mind, it would be much more efficient (though maybe more work too) than a
  marketing document!

 The good thing is that we do not even have to chose between the two.

 And +1 to Jori's comments about exceptions and visualizations features.

 Nathann

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Sage Stack Exchange Site

2014-09-21 Thread Kannappan Sampath
Hi Pablo, 

Thanks for this post. I am hoping that the proposal will garner more 
enthusiasm; the point you mention is one of my original motives for the 
proposal... 

Regards, 
Kannappan. 

On 21-Sep-2014, at 8:40 am, Pablo Sánchez Ocal pablosanchezo...@gmail.com 
wrote:

 I think an important point to be raised is that having askSage on SE, the 
 community could benefit enormously form other users coming from StackOverflow 
 and MathOverflow. Yes, there have been local questions and answers on those 
 forums about Sage, but having a permanent QA page would certainly be an 
 advantage to both the number of users and the quality of their posts.
 
 Now there is only a need for a few more questions to attain the 10 votes 
 necessary to go to the commitment phase. I believe the quality is there, and 
 it's only a matter of upvoting the better ones.
 
 Pablo
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Can not add comments in trac

2014-09-07 Thread Kannappan Sampath
I have seen these errors while at Chennai for Sage Days 60, but we all thought 
it might have to do with the network... 

On 07-Sep-2014, at 6:56 pm, P Purkayastha ppu...@gmail.com wrote:

 I am unable to add comments in trac. If I login, then often the page 
 refreshes to a state that indicates I am not logged in. Refreshing the page 
 sometimes shows logged in as.., but adding a comment results in no 
 permission errors (and then I am showed as logged out). Is anyone else 
 seeing this kind of errors?
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Student looking to contirbute to Sage

2014-08-24 Thread Kannappan Sampath
Hi Rohit:

Welcome to Sage Development. Please try and skim through the Developers'
manual: http://www.sagemath.org/doc/developer/index.html and get back with
more specific queries you might have!

Out of curiosity, which aspect of Sage would you like to contribute to?

--Kannappan.


On Sun, Aug 24, 2014 at 8:51 AM, Rohit Shinde rohit.shinde12...@gmail.com
wrote:

 I came across this group while browsing GSoC 2014 accepted organisations.
 I would like to contribute to Sage.

 I would gladly appreciate it if I could be given some pointers on how to
 start contributing.

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: How to write packages of sage

2014-06-24 Thread Kannappan Sampath
On Tue, Jun 24, 2014 at 8:28 PM, gofortu...@gmail.com gofortu...@gmail.com
wrote:

 In fact,I like the pure math part of sage.But it would be better if I can
 do some modelling on sage.
 Recently I was reading the reference manual of probability, but I found
 that RealDistribution does not support normal distribution.
 RealDistribution supports uniform, gaussian,rayleigh,lognormal, pareto ,t
 ,F,chisquared,exppow, beta, weibull.


gaussian is another well-known name for the normal distribution, isn't it?


 kcrisman kcris...@gmail.com提到:




 Thank you,Kcrisman.
 I am so sorry that I did not ask my question clearly, but luckly you
 understand most of my question.
 The link to publication that use sage is great.
 I do hope sage can have a lot of packages like R.
 It seems that sage focus on pure mathematics more than application.I do
 not find some module such as neural network.


 This is true in Sage proper, but luckily there are many Python packages as
 well that do many applications.For example, pybrain and conx seem
 to be good things to check out.  And then you can use them within Sage as
 well as standalone.   The idea is that Sage does the mathematics and
 related packages can join modeling to it - though we would not object to
 modeling!  For instance, brian is an optional Sage package.

 - kcrisman

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Sage and php

2014-06-11 Thread Kannappan Sampath
There is something called a SageCell server which does this quite
effectively. There must be instructions online about how to embed a sage
cell server on a given webpage. For example, see this:
https://github.com/sagemath/sagecell/blob/master/doc/embedding.rst.

HTH,
Kannappan.


On Wed, Jun 11, 2014 at 11:12 AM, Андрей Ширшов sh.andr@gmail.com
wrote:

 Hi!
 I'd like user input some data in my form on my site and php script give
 user data to sage; then sage return calculation result and user see the
 answer in my site.
 Is there any way to realize connection between sage and php script?
 Thanks,
 Andrei.

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Help defining the Sage StackExchange Proposal

2014-06-03 Thread Kannappan Sampath
Hi Sage-devel,

While the proposal on SE has been stagnant for sometime now, I think we
could atleast try and define this proposal so as to have many more people
following it and increasing the chances of this site becoming a reality.

 A proposal for all open source math softwares has been deleted for
inactivity. So, it is unlikely that such a proposal will gather momentum.
However, a restricted proposal where on-topic questions are about Sage and
its subcomponents is meatier enough.

Now, the expression Sage and its subcomponents is clunky; is there an
official term for the subcomponents? On the Sagemath page, we
write open-source packages to describe these subcomponents. So, is Sage
and its packages an appropriate expression?

Finally, Alexander Konovalov (on
http://discuss.area51.stackexchange.com/questions/14717/role-compared-to-asksage)
suggests some site names too:

1. asksage,stackexchange.com
2.sage.stackexchange.com (I don't quite like this as it confuses with that
accounting software...)

I would like to throw in:

3. sagemath.stackexchange.com

I would be glad to hear your replies...

PS. This proposal is just an experiment; for me, I am only interested in
the fact that this experiment will run atleast once (we should try to have
a centralised QA resource in view of long-term user support but the point
seems to be, do we want it on this platform) and not really on its outcome,
as I already said on the fb group for cloud.sagemath.

With Sincere Regards,
Kannappan.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Sage Stack Exchange Site

2014-06-02 Thread Kannappan Sampath
I don't agree that we may not make a successful proposal.

* Firstly, this site, if it ever becomes a reality, will subsume
ask.sagemath.com alright, but not just that. This will help the entire
community of GAP, PARI, Maxima, Singular, Sympy (probably also R, but
cross-validated already handles quite a bit...) users... I have not written
to their sites just yet but certainly this proposal is meant as a QA for
computing in the Python ecosystem rather than just Sage. In light of this,
I am willing to believe that conservative estimates of KCrisman would
probably go up; probably more than the threshold too...

So, in my opinion, instead of being too conservative about the possible
failure, we could try and support the proposal and see if we could make
headway into getting this site created.

-- Kannappan.


On Mon, Jun 2, 2014 at 6:37 PM, kcrisman kcris...@gmail.com wrote:

  Hello Sage Users:
 
  I proposed a Sage Stack Exchange site for Sage. Please go and follow
 it;
  add example questions and vote up (down) questions that you think
 should be
  on-topic (resp. off-topic) for the upcoming site.
 
  http://area51.stackexchange.com/proposals/70511/sage?referrer=
 8adE6ec0VyqQCyB1kFgF7g2
 
  Looking forward to your support and cooperation for the success of this
  adventure on Stack Exchange.
 
  /p/s/ I would be soon adding my quota of 5 questions...

 Does one really need an SE site for Sage? What's wrong with
 http://ask.sagemath.org/ in your opinion then?




 The only real problem with ask.sagemath, as Kannappan says, is the
 spammers.

 Advantages:
 * Many people already have SE (e.g., mathoverflow) accounts, and these
 would be connected
 * They handle spam etc. for you
 * Could migrate questions on other SE products to this, or vice versa
 Disadvantage (for some):
 * platform itself not open-source
 Disadvantages:
 * Not connected to previous rep mechanism for ask.sagemath
 * Not connected to previous answers/questions (harder to work on dups, etc)
 * Admin privileges etc are not up to Sage
 * If the site does not get used, it will be deleted.
 * Do we own the data?  There is a CC license but is it exportable?
 * Unclear and hard (for us) to reach standards of business.

 To me, the last one is the real problem.  For instance, at one time 15
 questions per day on average is a healthy beta but we definitely did not
 always hit that even in the most halcyon days of ask.sagemath.  I'll note
 that http://area51.stackexchange.com/faq seems to have gotten rid of any
 formal requirements, but there are definitely still standards to make it TO
 beta, much less out.  Compare the graduated versus not proposals, e.g.
 http://area51.stackexchange.com/?tab=launched

 Let's see what it says.  Remember, SE is a *business* that wants to drive
 traffic.  Not first and foremost to simply have quality QA sites.  Sage
 doesn't (yet), in my view, have enough traffic to drive this.  It could!
  But it doesn't yet.

 * 15 questions per day on average is a healthy beta, 5 questions or fewer
 per day needs some work. A healthy site generates lots of good content to
 make sure users keep coming back.

 Probably we would need to increase our regular traffic (I mean compared to
 when we didn't have the anti-spam measures in place) by at least 50%.

 * 2.5 answers per question is good, only 1 answer per question needs some
 work. On a healthy site, questions receive multiple answers and the best
 answer is voted to the top.

 I would argue that with most ask.sagemath questions, we really don't need
 more than one answer per question.  But SE doesn't probably care about
 that.  And I will also point out that MANY of our questions are quite
 technical or don't ever get answers - see
 http://ask.sagemath.org/questions/?sort=answers-ascpage=6 (though to be
 fair, many of the answers to these are in comments, which SE would strongly
 discourage).

 * We recommend:
 150 users with 200+ rep
 10 users with 2,000+ rep
 5 users with 3,000+ rep

 Even on the CURRENT ask.sagemath we have about 50 with 200+ rep.  We do
 have the requisite number of very-high-rep users, and are likely to
 continue to have.  This is mainly because we don't have the critical mass
 yet - in order to really rack up reputation, you either need to answer a
 LOT of questions, or be one of the few people who answers questions
 interesting to a lot of people in the (as yet, smallish) Sage community.
  Most people who answer a question get only one or two up votes, even if
 the answer is correct.

 * 90% answered is a healthy beta, 80% answered needs some work. In the
 beta it's especially important that when new visitors ask questions they
 usually get a good answer.

 I believe I've already touched on this.  We are not currently going to be
 there.

 * 1,500 visits per day is good, 500 visits per day needs some work. A
 great site benefits people outside the community. Eventually, 90% of a
 site's traffic should come from search engines.

 I don't know anything 

Re: [sage-devel] Re: Sage Stack Exchange Site

2014-06-02 Thread Kannappan Sampath
On Mon, Jun 2, 2014 at 8:42 PM, William Stein wst...@gmail.com wrote:

 On Mon, Jun 2, 2014 at 8:02 AM, Kannappan Sampath kntri...@gmail.com
 wrote:
  I don't agree that we may not make a successful proposal.
 
  * Firstly, this site, if it ever becomes a reality, will subsume
  ask.sagemath.com alright, but not just that. This will help the entire
  community of GAP, PARI, Maxima, Singular, Sympy (probably also R, but
  cross-validated already handles quite a bit...) users... I have not
 written
  to their sites just yet but certainly this proposal is meant as a QA for
  computing in the Python ecosystem rather than just Sage. In light of
 this, I

 In fact, as you suggest above, go one further:   Python --
 mathematical software

 Having such a site, which is like mathoverflow, but for open source
 math software, sounds attractive (if such a thing does not already
 exist).


At the moment, from my  understanding, the way any open source math
software seems to work is that, if you're stuck on a point, you write to
their mailing list...

So having a central QA is certainly helpful and I am more or less certain,
it does not exist...

PS. I have seen a few questions about sage on math.se, stackoverflow and
mathoverflow; so already, there are too many sites one has to follow or
look into before being sure that a post to the mailing list is warranted.

 am willing to believe that conservative estimates of KCrisman would
 probably
  go up; probably more than the threshold too...
 
  So, in my opinion, instead of being too conservative about the possible
  failure, we could try and support the proposal and see if we could make
  headway into getting this site created.
 
  -- Kannappan.
 
 
  On Mon, Jun 2, 2014 at 6:37 PM, kcrisman kcris...@gmail.com wrote:
 
   Hello Sage Users:
  
   I proposed a Sage Stack Exchange site for Sage. Please go and follow
   it;
   add example questions and vote up (down) questions that you think
   should be
   on-topic (resp. off-topic) for the upcoming site.
  
  
  
 http://area51.stackexchange.com/proposals/70511/sage?referrer=8adE6ec0VyqQCyB1kFgF7g2
  
   Looking forward to your support and cooperation for the success of
   this
   adventure on Stack Exchange.
  
   /p/s/ I would be soon adding my quota of 5 questions...
 
  Does one really need an SE site for Sage? What's wrong with
  http://ask.sagemath.org/ in your opinion then?
 
 
 
 
  The only real problem with ask.sagemath, as Kannappan says, is the
  spammers.
 
  Advantages:
  * Many people already have SE (e.g., mathoverflow) accounts, and these
  would be connected
  * They handle spam etc. for you
  * Could migrate questions on other SE products to this, or vice versa
  Disadvantage (for some):
  * platform itself not open-source
  Disadvantages:
  * Not connected to previous rep mechanism for ask.sagemath
  * Not connected to previous answers/questions (harder to work on dups,
  etc)
  * Admin privileges etc are not up to Sage
  * If the site does not get used, it will be deleted.
  * Do we own the data?  There is a CC license but is it exportable?
  * Unclear and hard (for us) to reach standards of business.
 
  To me, the last one is the real problem.  For instance, at one time 15
  questions per day on average is a healthy beta but we definitely did
 not
  always hit that even in the most halcyon days of ask.sagemath.  I'll
 note
  that http://area51.stackexchange.com/faq seems to have gotten rid of
 any
  formal requirements, but there are definitely still standards to make
 it TO
  beta, much less out.  Compare the graduated versus not proposals, e.g.
  http://area51.stackexchange.com/?tab=launched
 
  Let's see what it says.  Remember, SE is a *business* that wants to
 drive
  traffic.  Not first and foremost to simply have quality QA sites.  Sage
  doesn't (yet), in my view, have enough traffic to drive this.  It could!
  But it doesn't yet.
 
  * 15 questions per day on average is a healthy beta, 5 questions or
 fewer
  per day needs some work. A healthy site generates lots of good content
 to
  make sure users keep coming back.
 
  Probably we would need to increase our regular traffic (I mean compared
 to
  when we didn't have the anti-spam measures in place) by at least 50%.
 
  * 2.5 answers per question is good, only 1 answer per question needs
 some
  work. On a healthy site, questions receive multiple answers and the best
  answer is voted to the top.
 
  I would argue that with most ask.sagemath questions, we really don't
 need
  more than one answer per question.  But SE doesn't probably care about
 that.
  And I will also point out that MANY of our questions are quite
 technical or
  don't ever get answers - see
  http://ask.sagemath.org/questions/?sort=answers-ascpage=6 (though to
 be
  fair, many of the answers to these are in comments, which SE would
 strongly
  discourage).
 
  * We recommend:
  150 users with 200+ rep
  10 users with 2,000+ rep
  5 users with 3,000+ rep
 
  Even

Re: [sage-devel] Re: Sage Stack Exchange Site

2014-06-02 Thread Kannappan Sampath
On Mon, Jun 2, 2014 at 9:18 PM, kcrisman kcris...@gmail.com wrote:

  * Firstly, this site, if it ever becomes a reality, will subsume
  ask.sagemath.com alright, but not just that. This will help the entire
  community of GAP, PARI, Maxima, Singular, Sympy (probably also R, but
  cross-validated already handles quite a bit...) users... I have not
 written
  to their sites just yet but certainly this proposal is meant as a QA
 for
  computing in the Python ecosystem rather than just Sage. In light of
 this, I



 In fact, as you suggest above, go one further:   Python --
 mathematical software

 Having such a site, which is like mathoverflow, but for open source
 math software, sounds attractive (if such a thing does not already
 exist).


 This does sound interesting.  Is it targeted enough?  SE seems to want
 fairly well-scoped things - I don't know whether they would want something
 as broad as open source math or Python math.


Probably, this is not too broad given that computational science
stackexchange site exists. I still think we might succeed if enough of us
commit and actively request users to use the Stack Exchange site for well
focussed questions (when it becomes available). Do you think I could edit
the proposal to make it somewhat more broad in this sense. What would your
suggestion be towards that, in terms of wording it?

--Kannappan.


 PS. I have seen a few questions about sage on math.se, stackoverflow and
 mathoverflow; so already, there are too many sites one has to follow or
 look into before being sure that a post to the mailing list is warranted.


 Yes, that is certainly true.  One annoying thing is that on SO the sage
 tag supposedly refers to us, but I've given up trying to remove the tag
 from questions about Sagepay accounting software...  I suppose in principle
 we could ask about migration.   That would be the ideal way to approach it,
 so as to keep things in one place.

 Also, as a counter to my point about staying OSS, both Ubuntu and Drupal
 host their question/answer on SE, one even with its own domain
 http://askubuntu.com/ - so this isn't a killer to other such communities.
  But it should be raised, anyway.



 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Sage Stack Exchange Site

2014-06-01 Thread Kannappan Sampath
Hello Sage Users:

I proposed a Sage Stack Exchange site for Sage. Please go and follow it;
add example questions and vote up (down) questions that you think should be
on-topic (resp. off-topic) for the upcoming site.

http://area51.stackexchange.com/proposals/70511/sage?referrer=8adE6ec0VyqQCyB1kFgF7g2

Looking forward to your support and cooperation for the success of this
adventure on Stack Exchange.

/p/s/ I would be soon adding my quota of 5 questions...

With Sincere Regards,
Kannappan.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Sage Stack Exchange Site

2014-06-01 Thread Kannappan Sampath
Hi Dima,

The major issue has been one of maintenance IMHO. For example, the
ask.sagemath site had an outage owing to the massive spamming! These issues
are neatly handled in the Stack Exchange network.

-- Kannappan,


On Sun, Jun 1, 2014 at 3:50 PM, Dima Pasechnik dimp...@gmail.com wrote:

 On 2014-06-01, Kannappan Sampath kntri...@gmail.com wrote:
  Hello Sage Users:
 
  I proposed a Sage Stack Exchange site for Sage. Please go and follow it;
  add example questions and vote up (down) questions that you think should
 be
  on-topic (resp. off-topic) for the upcoming site.
 
 
 http://area51.stackexchange.com/proposals/70511/sage?referrer=8adE6ec0VyqQCyB1kFgF7g2
 
  Looking forward to your support and cooperation for the success of this
  adventure on Stack Exchange.
 
  /p/s/ I would be soon adding my quota of 5 questions...

 Does one really need an SE site for Sage? What's wrong with
 http://ask.sagemath.org/ in your opinion then?


 
  With Sincere Regards,
  Kannappan.
 

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] docbuild getting stuck

2014-05-27 Thread Kannappan Sampath
On Wed, May 28, 2014 at 3:51 AM, Dima Pasechnik dimp...@gmail.com wrote:

 Is there anything short of make distclean  make to fix the stuck
 docbuild:


I have tried doing make doc-clean  make and confirm that it does not help
in these cases! I know this is unhelpful but I still have this problem on
my sage install. IIRC, Travis had this problem but he could have fixed this
problem somehow...

--Kannappan.



By stuck I mean that I run make and

 the output (and logs/dochtml.log) getting stuck at
 
 [history_a] no targets are out of date.
 [structure] loading cross citations... looking for now-outdated
 files... none found
 [structure] no targets are out of date.

 while there are python processes like this:
  python $SAGE_ROOT/src/doc/common/builder.py --no-pdf-links all html
 sitting in the memory doing (almost) nothing for hours and hours.

 make doc-clean does not help.

 This must be a bug in sphinx, IMHO...
 I have seen this many times already.

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Create a branch without a ticket

2014-05-20 Thread Kannappan Sampath
Hi,

I have been under the impression that sage dev scripts are being dropped in
favour of git-trac subcommand for git available from
https://github.com/sagemath/git-trac-command.

HTH,
Kannappan.


On Wed, May 21, 2014 at 12:26 AM, Štěpán Starosta stepan.staro...@gmail.com
 wrote:

 Hi,

 I follow the guide (
 http://www.sagemath.org/doc/developer/walk_through.html#starting-without-a-ticket)
 to create a new branch without a ticket. The command

 sage -dev checkout --branch my_branch

 outputs
 *Branch my_branch does not exist locally.*

 Any ideas what I might be doing wrong? I am running this on Sage 6.2.

 Thanks,
 Stepan


  --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Docs not building on 6.2

2014-05-09 Thread Kannappan Sampath
Hi group:

I have been trying to build the doc for SAGE 6.2 on a Mac OSX 10.9.2. The
doc build always stops at:

[tensor   ] writing output... [ 75%] sage/tensor/differential_form_element

[tensor   ] writing output... [100%] sage/tensor/differential_forms

[tensor   ] dumping object inventory... done

[tensor   ] build succeeded.


^Cmake: *** [doc-html] Error 130


(emphasis above is mine; that is the response to my C-c)


And, I press C-c and terminate the thing after a couple of minutes... I do
make doc-clean and make doc again and the same thing repeats!

Any help would be appreciated.

p/s/ I saw that there was another thread about this problem but did not
have any solution that applied to my case (or so it appeared that way to
me!).

With Sincere Regards,
Kannappan.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] singular help system broken.

2014-05-08 Thread Kannappan Sampath
Hello group:

At the moment, the help system for singular is broken:

 help ring;

// ** Could not get IdxFile.

// ** Either set environment variable SINGULAR_IDX_FILE to IdxFile,

// ** or make sure that IdxFile is at
/Users/apple/sage/local/doc/singular.idx

   ? cannot open `help.cnf`

// ** Displaying help in browser 'dummy'.

// ** Use 'system(--browser, browser);' to change browser,

// ** where browser can be: dummy, emacs.

   ? No functioning help browser available.

   ? error occurred in or before STDIN line 1: `help ring;


IMHO, we should arrange for this to work!


With Sincere Regards,

Kannappan.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Tracking a git branch

2014-05-01 Thread Kannappan Sampath
Hello sage-devel:

Nathann has kindly helped me a lot making me feel at home with git+sage
stuff. I have one problem facing me. I have a local develop branch. I
would like that to track the remote trac's develop branch...

How do I do this?

With Sincere regards,
Kannappan.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Tracking a git branch

2014-05-01 Thread Kannappan Sampath
But everytime I need to update, I will have to do

$ git pull trac develop

while if I set the default remote branch to trac/develop or something
like that, I could just say:

$ git pull

while in the branch, right?

Am I missing something, in that, there is something called tracking a
remote branch as described in Tracking Branches section here:
http://git-scm.com/book/en/Git-Branching-Remote-Branches?

With Sincere Regards,
Kannappan.


On Thu, May 1, 2014 at 4:01 PM, Vincent Delecroix 20100.delecr...@gmail.com
 wrote:

 Of course, I assumed that you have trac declared as a remote git
 server. You can check that with

   $ git remote -v
   trac  g...@trac.sagemath.org:sage.git (fetch)
   trac  g...@trac.sagemath.org:sage.git (push)

 2014-05-01 12:29 UTC+02:00, Vincent Delecroix 20100.delecr...@gmail.com:
  Hi,
 
  Be sure that you are in your develop branch on your machine. Then do
 
   $ git pull trac develop
 
  Or alternatively
 
   $ git fetch trac develop
   $ git merge FETCH_HEAD
 
  That way your local branch get updated with the one on trac.
 
  Vincent
 
  2014-05-01 12:26 UTC+02:00, Kannappan Sampath kntri...@gmail.com:
  Hello sage-devel:
 
  Nathann has kindly helped me a lot making me feel at home with git+sage
  stuff. I have one problem facing me. I have a local develop branch. I
  would like that to track the remote trac's develop branch...
 
  How do I do this?
 
  With Sincere regards,
  Kannappan.
 
  --
  You received this message because you are subscribed to the Google
 Groups
  sage-devel group.
  To unsubscribe from this group and stop receiving emails from it, send
 an
  email to sage-devel+unsubscr...@googlegroups.com.
  To post to this group, send email to sage-devel@googlegroups.com.
  Visit this group at http://groups.google.com/group/sage-devel.
  For more options, visit https://groups.google.com/d/optout.
 
 

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Difficulty with Galois group

2014-04-25 Thread Kannappan Sampath
Thanks, Dima! That is a nice suggestion! Probably, there should be a
default wrapper for this... but until then, I shall use this trickery...

With Sincere Regards,
Kannappan.


On Thu, Apr 24, 2014 at 9:08 PM, Dima Pasechnik dimp...@gmail.com wrote:



 On Saturday, 19 April 2014 11:46:21 UTC+1, KnS wrote:

 Hello sage-devel:

 I am trying to prepare a notebook for a SAGE demo at my institute. In
 rying to compute the Galois group, I am stuck here. SAGE complains that I
 have to install KASH while I already have KASH installed.


 sage: K.a = NumberField(x^13 + 3*x + 5)

 sage: K.galois_group()

 
 ---

 NotImplementedError   Traceback (most recent call
 last)

 I think it should be easy to fix, as GAP can do it almost instantly (GAP
 4.7.4, from the current Sage,
 can go up to degree 15, they say).
 (No kash or cash needed :-))

 sage: gap_console()
 ...

 gap x:=Indeterminate(Rationals);;
 gap p:=x^13+3*x+5;
 x_1^13+3*x_1+5
 gap TransitiveGroup(Degree(p),GaloisType(p));
 S13

 This would need optional database_gap package installed.
 (i.e. do sage -i database_gap on the terminal).

 HTH,
 Dima

  --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Hadamard Designs

2014-04-23 Thread Kannappan Sampath

On Apr 23, 2014, at 1:41 PM, Nathann Cohen nathann.co...@gmail.com wrote:

 Hello !!
 
 And, we still have not thought about the nomenclature... :-) May be change 
 the
 Hadamard design to HadamardTwoDesign and implement these as
 HadamardThreeDesign?
 
 Hmmm... Well, I would vote for HadamardDesign and
 Hadamard3Design/HadamardThreeDesign. Everybody seems to agree on what
 a Hadamard Design is, and on the other hand everybody seems to agree
 on what a Hadamard 3-design is, so why change the first ? :-)

Agreed!
 
 
 Also, probably, we should have a generic implementation of block design,
 where one gives us the point set, the blocks but is interested in computing
 parametric things with it; or computing the derived design and so on... (This
 is done in Designs package in GAP, so may be we should just borrow it!)
 
 Well, once more I never needed any of those but I would be glad to
 review it. What I like is to implement new constructions :-P
 I lve constructions.
 
The thing is, it may be very useful for someone who has figured out how to 
construct new t-designs for example. 

 GIT again is the barrier! :-(
 
 Well, it becomes rather easy very quickly... And there is a wealth of
 tutorials on internet :-)
 
I shall try to get this done... For now, I will try and get around to reviewing 
your first trivial BIBD ticket and write the patch for the HadamardThreeDesign. 

-Kannappan. 

 Nathann
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: sage -dev diff

2014-04-23 Thread Kannappan Sampath
Thank you all for suggesting that I take a look at GIT. I think I feel
better now. But, still I have gotten some questions. I am trying to review
16091.

I have checked out the ncohen's 16091 branch and have it as a local branch.
I would like to now let sage now that there has been a change in its code
due to this branch. I assume this means I run sage -b. Is this correct?

Will this let sage know that there has been a update of code?

With sincere Regards,
Kannappan.


On Wed, Apr 23, 2014 at 11:23 AM, Ralf Stephan gtrw...@gmail.com wrote:

 After reading a bit about SCM and git I would advise against use of sage
 -dev.
 I had used sage -dev the last weeks but now I exclusively do 'git trac'
 which
 does all I need but much better than sage -dev.

 Documentation is in

 http://trac.sagemath.org/ticket/16030

 Regards,

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] An Embarrassing Bug?

2014-04-23 Thread Kannappan Sampath
Hello group, 

I think this is probably an embarrassing bug:

def IncidenceStructureFromMatrix(M, name=None):

Builds and incidence structure from a matrix.

INPUT:

- ``M`` -- a binary matrix. Creates a set of points from the rows and a
  set of blocks from the columns.

EXAMPLES::

sage: from sage.combinat.designs.block_design import BlockDesign
sage: BD1 = 
BlockDesign(7,[[0,1,2],[0,3,4],[0,5,6],[1,3,5],[1,4,6],[2,3,6],[2,4,5]])
sage: M = BD1.incidence_matrix()
sage: BD2 = IncidenceStructureFromMatrix(M)
sage: BD1 == BD2
True

nm = name
v = len(M.rows())
b = len(M.columns())
#points = range(v)
blocks = []
for i in range(b):
B = []
for j in range(v):
if M[i, j] != 0:
B.append(j)
blocks.append(B)
return IncidenceStructure(range(v), blocks, name=nm)


The problem is with the indexing if M[i, j] != 0. Of course, this will not be 
a problem for square 2-designs like the Hadamard design or 
ProjectivePlaneDesign (thanks to Fisher Type counting), but this should cause 
problem for designs that are not square. I was bitten by this bug when I tried 
to implement Hadamard 3-design from a Hadamard matrix. 

I will open a ticket if somebody does a sanity check for me. 

With Sincere Regards, 
Kannappan. 
 

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] An Embarrassing Bug?

2014-04-23 Thread Kannappan Sampath
:-)


On Wed, Apr 23, 2014 at 11:07 PM, Vincent Delecroix 
20100.delecr...@gmail.com wrote:

 What is the problem? You just copy/paste the definition of a function.

 2014-04-23 19:31 UTC+02:00, Kannappan Sampath kntri...@gmail.com:
  Hello group,
 
  I think this is probably an embarrassing bug:
 
  def IncidenceStructureFromMatrix(M, name=None):
  
  Builds and incidence structure from a matrix.
 
  INPUT:
 
  - ``M`` -- a binary matrix. Creates a set of points from the rows
 and
  a
set of blocks from the columns.
 
  EXAMPLES::
 
  sage: from sage.combinat.designs.block_design import BlockDesign
  sage: BD1 =
  BlockDesign(7,[[0,1,2],[0,3,4],[0,5,6],[1,3,5],[1,4,6],[2,3,6],[2,4,5]])
  sage: M = BD1.incidence_matrix()
  sage: BD2 = IncidenceStructureFromMatrix(M)
  sage: BD1 == BD2
  True
  
  nm = name
  v = len(M.rows())
  b = len(M.columns())
  #points = range(v)
  blocks = []
  for i in range(b):
  B = []
  for j in range(v):
  if M[i, j] != 0:


As I tried to explain, the indexing is ballsed up: v is the number of rows,
b is the number of columns. Since i is in range(b), i is a column index and
similarly, j is a row index. So, the code should have looked at M[j, i] as
opposed M[i, j] in the if condition.

Kannappan.

  B.append(j)
  blocks.append(B)
  return IncidenceStructure(range(v), blocks, name=nm)
 
 
  The problem is with the indexing if M[i, j] != 0. Of course, this will
 not
  be a problem for square 2-designs like the Hadamard design or
  ProjectivePlaneDesign (thanks to Fisher Type counting), but this should
  cause problem for designs that are not square. I was bitten by this bug
 when
  I tried to implement Hadamard 3-design from a Hadamard matrix.
 
  I will open a ticket if somebody does a sanity check for me.
 
  With Sincere Regards,
  Kannappan.
 
 
  --
  You received this message because you are subscribed to the Google Groups
  sage-devel group.
  To unsubscribe from this group and stop receiving emails from it, send an
  email to sage-devel+unsubscr...@googlegroups.com.
  To post to this group, send email to sage-devel@googlegroups.com.
  Visit this group at http://groups.google.com/group/sage-devel.
  For more options, visit https://groups.google.com/d/optout.
 

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] An Embarrassing Bug?

2014-04-23 Thread Kannappan Sampath
On Wed, Apr 23, 2014 at 11:19 PM, Vincent Delecroix 
20100.delecr...@gmail.com wrote:

 Me again...

 If you correct the code, please provide a piece of code that does not
 work with the current implementation (otherwise, it can not be
 considered as a bug).

 Well, OK. My fault. Pass any non-square 0, 1 matrix to it and you would
see: for example,

IncidenceStructureFromMatrix(Matrix(ZZ, 2, 3, [1]*2*3))


 If you do correct it please change
 {{{
 v = len(M.rows())
 b = len(M.columns())
 }}}
 by
 {{{
v = M.nrows()
b = M.ncols()
 }}}


Will do!


 Best
 Vincent



2014-04-23 19:42 UTC+02:00, Kannappan Sampath kntri...@gmail.com:
  :-)
 
 
  On Wed, Apr 23, 2014 at 11:07 PM, Vincent Delecroix 
  20100.delecr...@gmail.com wrote:
 
  What is the problem? You just copy/paste the definition of a function.
 
  2014-04-23 19:31 UTC+02:00, Kannappan Sampath kntri...@gmail.com:
   Hello group,
  
   I think this is probably an embarrassing bug:
  
   def IncidenceStructureFromMatrix(M, name=None):
   
   Builds and incidence structure from a matrix.
  
   INPUT:
  
   - ``M`` -- a binary matrix. Creates a set of points from the
 rows
  and
   a
 set of blocks from the columns.
  
   EXAMPLES::
  
   sage: from sage.combinat.designs.block_design import
   BlockDesign
   sage: BD1 =
  
 BlockDesign(7,[[0,1,2],[0,3,4],[0,5,6],[1,3,5],[1,4,6],[2,3,6],[2,4,5]])
   sage: M = BD1.incidence_matrix()
   sage: BD2 = IncidenceStructureFromMatrix(M)
   sage: BD1 == BD2
   True
   
   nm = name
   v = len(M.rows())
   b = len(M.columns())
   #points = range(v)
   blocks = []
   for i in range(b):
   B = []
   for j in range(v):
   if M[i, j] != 0:
 
 
  As I tried to explain, the indexing is ballsed up: v is the number of
 rows,
  b is the number of columns. Since i is in range(b), i is a column index
 and
  similarly, j is a row index. So, the code should have looked at M[j, i]
 as
  opposed M[i, j] in the if condition.
 
  Kannappan.
 
   B.append(j)
   blocks.append(B)
   return IncidenceStructure(range(v), blocks, name=nm)
  
  
   The problem is with the indexing if M[i, j] != 0. Of course, this
   will
  not
   be a problem for square 2-designs like the Hadamard design or
   ProjectivePlaneDesign (thanks to Fisher Type counting), but this
 should
   cause problem for designs that are not square. I was bitten by this
 bug
  when
   I tried to implement Hadamard 3-design from a Hadamard matrix.
  
   I will open a ticket if somebody does a sanity check for me.
  
   With Sincere Regards,
   Kannappan.
  
  
   --
   You received this message because you are subscribed to the Google
   Groups
   sage-devel group.
   To unsubscribe from this group and stop receiving emails from it, send
   an
   email to sage-devel+unsubscr...@googlegroups.com.
   To post to this group, send email to sage-devel@googlegroups.com.
   Visit this group at http://groups.google.com/group/sage-devel.
   For more options, visit https://groups.google.com/d/optout.
  
 
  --
  You received this message because you are subscribed to the Google
 Groups
  sage-devel group.
  To unsubscribe from this group and stop receiving emails from it, send
 an
  email to sage-devel+unsubscr...@googlegroups.com.
  To post to this group, send email to sage-devel@googlegroups.com.
  Visit this group at http://groups.google.com/group/sage-devel.
  For more options, visit https://groups.google.com/d/optout.
 
 
  --
  You received this message because you are subscribed to the Google Groups
  sage-devel group.
  To unsubscribe from this group and stop receiving emails from it, send an
  email to sage-devel+unsubscr...@googlegroups.com.
  To post to this group, send email to sage-devel@googlegroups.com.
  Visit this group at http://groups.google.com/group/sage-devel.
  For more options, visit https://groups.google.com/d/optout.
 

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] An Embarrassing Bug?

2014-04-23 Thread Kannappan Sampath
On Wed, Apr 23, 2014 at 11:31 PM, Kannappan Sampath kntri...@gmail.comwrote:




 On Wed, Apr 23, 2014 at 11:19 PM, Vincent Delecroix 
 20100.delecr...@gmail.com wrote:

 Me again...

 If you correct the code, please provide a piece of code that does not
 work with the current implementation (otherwise, it can not be
 considered as a bug).

 Well, OK. My fault. Pass any non-square 0, 1 matrix to it and you would
 see: for example,

 IncidenceStructureFromMatrix(Matrix(ZZ, 2, 3, [1]*2*3))


Sorry, actually:  IncidenceStructureFromMatrix(Matrix(ZZ, 3, 2, [1]*2*3))

  If you do correct it please change
 {{{
 v = len(M.rows())
 b = len(M.columns())
 }}}
 by
 {{{
v = M.nrows()
b = M.ncols()
 }}}


 Will do!


 Best
 Vincent



 2014-04-23 19:42 UTC+02:00, Kannappan Sampath kntri...@gmail.com:
  :-)
 
 
  On Wed, Apr 23, 2014 at 11:07 PM, Vincent Delecroix 
  20100.delecr...@gmail.com wrote:
 
  What is the problem? You just copy/paste the definition of a function.
 
  2014-04-23 19:31 UTC+02:00, Kannappan Sampath kntri...@gmail.com:
   Hello group,
  
   I think this is probably an embarrassing bug:
  
   def IncidenceStructureFromMatrix(M, name=None):
   
   Builds and incidence structure from a matrix.
  
   INPUT:
  
   - ``M`` -- a binary matrix. Creates a set of points from the
 rows
  and
   a
 set of blocks from the columns.
  
   EXAMPLES::
  
   sage: from sage.combinat.designs.block_design import
   BlockDesign
   sage: BD1 =
  
 BlockDesign(7,[[0,1,2],[0,3,4],[0,5,6],[1,3,5],[1,4,6],[2,3,6],[2,4,5]])
   sage: M = BD1.incidence_matrix()
   sage: BD2 = IncidenceStructureFromMatrix(M)
   sage: BD1 == BD2
   True
   
   nm = name
   v = len(M.rows())
   b = len(M.columns())
   #points = range(v)
   blocks = []
   for i in range(b):
   B = []
   for j in range(v):
   if M[i, j] != 0:
 
 
  As I tried to explain, the indexing is ballsed up: v is the number of
 rows,
  b is the number of columns. Since i is in range(b), i is a column index
 and
  similarly, j is a row index. So, the code should have looked at M[j, i]
 as
  opposed M[i, j] in the if condition.
 
  Kannappan.
 
   B.append(j)
   blocks.append(B)
   return IncidenceStructure(range(v), blocks, name=nm)
  
  
   The problem is with the indexing if M[i, j] != 0. Of course, this
   will
  not
   be a problem for square 2-designs like the Hadamard design or
   ProjectivePlaneDesign (thanks to Fisher Type counting), but this
 should
   cause problem for designs that are not square. I was bitten by this
 bug
  when
   I tried to implement Hadamard 3-design from a Hadamard matrix.
  
   I will open a ticket if somebody does a sanity check for me.
  
   With Sincere Regards,
   Kannappan.
  
  
   --
   You received this message because you are subscribed to the Google
   Groups
   sage-devel group.
   To unsubscribe from this group and stop receiving emails from it,
 send
   an
   email to sage-devel+unsubscr...@googlegroups.com.
   To post to this group, send email to sage-devel@googlegroups.com.
   Visit this group at http://groups.google.com/group/sage-devel.
   For more options, visit https://groups.google.com/d/optout.
  
 
  --
  You received this message because you are subscribed to the Google
 Groups
  sage-devel group.
  To unsubscribe from this group and stop receiving emails from it, send
 an
  email to sage-devel+unsubscr...@googlegroups.com.
  To post to this group, send email to sage-devel@googlegroups.com.
  Visit this group at http://groups.google.com/group/sage-devel.
  For more options, visit https://groups.google.com/d/optout.
 
 
  --
  You received this message because you are subscribed to the Google
 Groups
  sage-devel group.
  To unsubscribe from this group and stop receiving emails from it, send
 an
  email to sage-devel+unsubscr...@googlegroups.com.
  To post to this group, send email to sage-devel@googlegroups.com.
  Visit this group at http://groups.google.com/group/sage-devel.
  For more options, visit https://groups.google.com/d/optout.
 

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d

Re: [sage-devel] Hadamard Designs

2014-04-22 Thread Kannappan Sampath
Hi Nathann, 

On Apr 22, 2014, at 6:44 PM, Nathann Cohen nathann.co...@gmail.com wrote:

 Y !!
 
 But, of course, this design extends uniquely to a (necessarily) 2-(4n, 2n, 
 n-1) design: the blocks of this design are blocks of the old design union a 
 new point infinity and complements (in the old point set) of the blocks of 
 old design. And, any contraction is isomorphic to a Hadamard 2-design we 
 started off with. So, unsurprisingly, this family is called Hadamard 
 3-designs. 
 
 As you see, implementing the 3-design is trivial but we should settle down on 
 the nomenclature! 
 
 I did not know about this construction, but the Handbook agrees with you, so 
 why not ? :-D
 
 By the way your proof of it is very cool.
 
 So, what do you guys think? 
 
 Do you feel like creating a ticket and writing this patch ? I will be glad to 
 review it quickly. 
 

Sure, I can do this if someone would help me with GIT. I have been keeping away 
from SAGE mainly for this reason!  Anyway, I created the ticket: 
http://trac.sagemath.org/ticket/16211. 

And, we still have not thought about the nomenclature... :-) May be change the 
Hadamard design to HadamardTwoDesign and implement these as 
HadamardThreeDesign? 

Also, probably, we should have a generic implementation of block design, where 
one gives us the point set, the blocks but is interested in computing 
parametric things with it; or computing the derived design and so on... (This 
is done in Designs package in GAP, so may be we should just borrow it!)  

 p/s/ Thanks Nathann for implementing the combinat.designs! I am a big fan of 
 designs and it is nice to have them in SAGE. 
 
 Well, I am pretty glad that you noticed the changes and that you like them. 
 If you have time to review some code, there are a couple of things that are 
 still waiting on the trac server :
 
 A straightforward one : http://trac.sagemath.org/ticket/16091
 A more interesting one : http://trac.sagemath.org/ticket/15310
 
GIT again is the barrier! :-( 

-Kannappan. 

 (Vincent just reviewed http://trac.sagemath.org/ticket/15431 )
 
 The second one is a very interesting recursive construction that I need to 
 add the general construction of BIBD with k=5 (which already works on my 
 computer). There will also be a need for a patch that just cleans the code in 
 between before that.
 
 Well, this just to say that if you feel like getting your hands dirty for 
 Sage's designs... ;-)
 
 Have fn !
 
 Nathann 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.
 a.jpg

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Difficulty with Galois group

2014-04-22 Thread Kannappan Sampath
Also, I am not sure whether there is  a practical algorithm to compute the 
Galois group when the extension is not normal (for splitting fields, there is 
one due to Susan Landau; however there are mod p techniques too)! 
 
On Apr 23, 2014, at 2:41 AM, Dima Pasechnik dimp...@gmail.com wrote:

 On 2014-04-22, Jeroen Demeyer jdeme...@cage.ugent.be wrote:
 On 2014-04-21 10:10, Dima Pasechnik wrote:
 this is not a normal extension, and apparently neither Pari nor GAP
 can deal with it.
 Pathetic...
 Is it really so hard to implement, having the library of permutation
 groups at hand (from GAP)?
 The hard part is the number theory, not the group theory. If the 
 splitting field is very large (that seems to be the case here), then how 
 would you represent elements of the Galois group?
 I am pretty ignorant about the way(s) these elements become available 
 in this setting. 
 The most economic way I know offhand involves generators and relations
 (either in the classical combinatorial group theory sense, or in the
 sense of vector enumeration - when the action is defined locally
 on a module).
 Matrices or permutations aren't often too bad either - depends upon
 the sparsity. 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] sage -dev diff

2014-04-22 Thread Kannappan Sampath
Hello group, 

I am trying to review the ticket 16091. I did 

sage -dev checkout --ticket 16091 

and I now have a new branch ticket/16091. When I do sage -dev diff, however, I 
see nothing. I was hoping to see the changes made by the branch attached to the 
ticket. Could you kindly help me with this? 

With Sincere Regards, 
Kannappan. 

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: sage -dev diff

2014-04-22 Thread Kannappan Sampath
I get a whole bunch of edits, nothing relevant to the changes made by this 
ticket... :-( 
Probably master is not the right thing? I tried develop too... 

-Kannappan. 
On Apr 23, 2014, at 7:33 AM, kcrisman kcris...@gmail.com wrote:

 See https://groups.google.com/forum/#!topic/sage-support/gIet3_kQNzo for what 
 to do - e.g. sage -dev diff --base master might work.
 
 On Tuesday, April 22, 2014 7:02:25 PM UTC-4, KnS wrote:
 Hello group, 
 
 I am trying to review the ticket 16091. I did 
 
 sage -dev checkout --ticket 16091 
 
 and I now have a new branch ticket/16091. When I do sage -dev diff, however, 
 I see nothing. I was hoping to see the changes made by the branch attached to 
 the ticket. Could you kindly help me with this? 
 
 With Sincere Regards, 
 Kannappan. 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: sage -dev diff

2014-04-22 Thread Kannappan Sampath
I also need more git hand holding: I am trying to attach some code from my 
local branch to a ticket. I did the following: 

Apples-MacBook-Pro:combinat apple$ sage -dev checkout --ticket 16211
On ticket #16211 with associated local branch ticket/16211.

#  Use sage --dev merge to include another ticket/branch.
#  Use sage --dev commit to save changes into a new commit.

Now, I tried to push by sage -dev push and the whole thing fails miserably! :-( 

I would be very grateful for any help about how I would go about this... Also, 
in the older days, when I made changes to the source code, to get SAGE to know 
about it, I used to commit and build. Now, that is not sufficient? How do I get 
SAGE to know the changes I have made. 

With Sincere Regards. 
Kannappan 

On Apr 23, 2014, at 7:33 AM, kcrisman kcris...@gmail.com wrote:

 See https://groups.google.com/forum/#!topic/sage-support/gIet3_kQNzo for what 
 to do - e.g. sage -dev diff --base master might work.
 
 On Tuesday, April 22, 2014 7:02:25 PM UTC-4, KnS wrote:
 Hello group, 
 
 I am trying to review the ticket 16091. I did 
 
 sage -dev checkout --ticket 16091 
 
 and I now have a new branch ticket/16091. When I do sage -dev diff, however, 
 I see nothing. I was hoping to see the changes made by the branch attached to 
 the ticket. Could you kindly help me with this? 
 
 With Sincere Regards, 
 Kannappan. 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Difficulty with Galois group

2014-04-19 Thread Kannappan Sampath
Hello sage-devel:

I am trying to prepare a notebook for a SAGE demo at my institute. In rying
to compute the Galois group, I am stuck here. SAGE complains that I have to
install KASH while I already have KASH installed.


sage: K.a = NumberField(x^13 + 3*x + 5)

sage: K.galois_group()

---

NotImplementedError   Traceback (most recent call last)

ipython-input-6-53b0dca27e76 in module()

 1 K.galois_group()


/Users/apple/sage/local/lib/python2.7/site-packages/sage/misc/cachefunc.soin
sage.misc.cachefunc.CachedMethodCaller.__call__
(sage/misc/cachefunc.c:8679)()


/Users/apple/sage/local/lib/python2.7/site-packages/sage/misc/cachefunc.soin
sage.misc.cachefunc.CachedMethod._instance_call
(sage/misc/cachefunc.c:11344)()


/Users/apple/sage/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.pyin
galois_group(self, type, algorithm, names)

*   4404*

*   4405* if type is None:

- 4406 return GaloisGroup_v2(self, names)

*   4407*

*   4408* elif type==pari:


/Users/apple/sage/local/lib/python2.7/site-packages/sage/rings/number_field/galois_group.pyin
__init__(self, number_field, names)

*181* self._number_field = number_field

*182*

-- 183 if not number_field.is_galois():

*184* self._galois_closure, self._gc_map = number_field.
galois_closure(names=names, map=True)

*185* else:


/Users/apple/sage/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.pyin
is_galois(self)

*   4304* False

*   4305* 

- 4306 return self.galois_group(type=pari).order() == self.degree
()

*   4307*

*   4308* @cached_method


/Users/apple/sage/local/lib/python2.7/site-packages/sage/misc/cachefunc.soin
sage.misc.cachefunc.CachedMethodCaller.__call__
(sage/misc/cachefunc.c:8679)()


/Users/apple/sage/local/lib/python2.7/site-packages/sage/misc/cachefunc.soin
sage.misc.cachefunc.CachedMethod._instance_call
(sage/misc/cachefunc.c:11344)()


/Users/apple/sage/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.pyin
galois_group(self, type, algorithm, names)

*   4407*

*   4408* elif type==pari:

- 4409 return GaloisGroup_v1(self.absolute_polynomial().
galois_group(pari_group=True, algorithm=algorithm), self)

*   4410* elif type==gap:

*   4411* return GaloisGroup_v1(self.absolute_polynomial().
galois_group(pari_group=False, algorithm=algorithm), self)


/Users/apple/sage/local/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_rational_flint.soin
sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.galois_group
(sage/rings/polynomial/polynomial_rational_flint.cpp:13140)()


NotImplementedError: You must install the optional Kash package to use Kash
from Sage.

Sorry, computation of Galois groups of fields of degree bigger than 11 is
not yet implemented.  Try installing the optional free (closed source) KASH
package, which supports degrees up to 23, or use algorithm='magma' if you
have magma.

sage: optional_packages()[0]

['database_gap-4.6.4', 'gap_packages-4.6.4.p1', 'kash3-2008-07-31.p0']


Hope you can show me a way out!


With Sincere Regards,

Kannappan.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Difficulty with Galois group

2014-04-19 Thread Kannappan Sampath
On Sat, Apr 19, 2014 at 5:17 PM, Amit Jamadagni bitsjamada...@gmail.comwrote:

 Hello Sampath,
   I have tried to install kash and here are the results I get by
 passing in the commands you have passed

 sage: K.a = NumberField(x^13 + 3*x + 5)
 sage: K.galois_group()
 ---
 TypeError Traceback (most recent call last)
 ipython-input-15-53b0dca27e76 in module()
  1 K.galois_group()

 /home/amit/Documents/sage-6.1.1-x86_64-Linux/local/lib/python2.7/site-packages/sage/misc/cachefunc.so
 in sage.misc.cachefunc.CachedMethodCaller.__call__
 (sage/misc/cachefunc.c:8248)()

 /home/amit/Documents/sage-6.1.1-x86_64-Linux/local/lib/python2.7/site-packages/sage/misc/cachefunc.so
 in sage.misc.cachefunc.CachedMethod._instance_call
 (sage/misc/cachefunc.c:10738)()

 /home/amit/Documents/sage-6.1.1-x86_64-Linux/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.py
 in galois_group(self, type, algorithm, names)
4403
4404 if type is None:
 - 4405 return GaloisGroup_v2(self, names)
4406
4407 elif type==pari:

 /home/amit/Documents/sage-6.1.1-x86_64-Linux/local/lib/python2.7/site-packages/sage/rings/number_field/galois_group.py
 in __init__(self, number_field, names)
 182
 183 if not number_field.is_galois():
 -- 184 self._galois_closure, self._gc_map =
 number_field.galois_closure(names=names, map=True)
 185 else:
 186 self._galois_closure, self._gc_map = (number_field,
 number_field.hom(number_field.gen(), number_field))

 /home/amit/Documents/sage-6.1.1-x86_64-Linux/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.py
 in galois_closure(self, names, map)
6836   Defn: a |-- 1/240*cc^5 - 41/120*cc
6837 
 - 6838 L, self_into_L = self._galois_closure_and_embedding(names)
6839 if map:
6840 return (L, self_into_L)

 /home/amit/Documents/sage-6.1.1-x86_64-Linux/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.py
 in _galois_closure_and_embedding(self, names)
6753 
6754 if names is None:
 - 6755 raise TypeError(You must specify the name of the
 generator.)
6756
6757 try:

 TypeError: You must specify the name of the generator.


Can you try G.b = K.galois_group() instead? I do not see why my
installation does not see that Kash is installed,


 sage: K.galois_group('pari')
 Galois group Transitive group number 9 of degree 13 of the Number Field in
 a with defining polynomial x^13 + 3*x + 5
 sage: K.galois_group('gap')
 Galois group Transitive group number 9 of degree 13 of the Number Field in
 a with defining polynomial x^13 + 3*x + 5

 I guess passing the type might give the answer.




 On Sat, Apr 19, 2014 at 4:16 PM, Kannappan Sampath kntri...@gmail.comwrote:

 Hello sage-devel:

 I am trying to prepare a notebook for a SAGE demo at my institute. In
 rying to compute the Galois group, I am stuck here. SAGE complains that I
 have to install KASH while I already have KASH installed.


 sage: K.a = NumberField(x^13 + 3*x + 5)

 sage: K.galois_group()


 ---

 NotImplementedError   Traceback (most recent call
 last)

 ipython-input-6-53b0dca27e76 in module()

  1 K.galois_group()


 /Users/apple/sage/local/lib/python2.7/site-packages/sage/misc/cachefunc.soin 
 sage.misc.cachefunc.CachedMethodCaller.__call__
 (sage/misc/cachefunc.c:8679)()


 /Users/apple/sage/local/lib/python2.7/site-packages/sage/misc/cachefunc.soin 
 sage.misc.cachefunc.CachedMethod._instance_call
 (sage/misc/cachefunc.c:11344)()



 /Users/apple/sage/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.pyin
 galois_group(self, type, algorithm, names)

 *   4404*

 *   4405* if type is None:

 - 4406 return GaloisGroup_v2(self, names)

 *   4407*

 *   4408* elif type==pari:



 /Users/apple/sage/local/lib/python2.7/site-packages/sage/rings/number_field/galois_group.pyin
 __init__(self, number_field, names)

 *181* self._number_field = number_field

 *182*

 -- 183 if not number_field.is_galois():

 *184* self._galois_closure, self._gc_map = number_field.
 galois_closure(names=names, map=True)

 *185* else:



 /Users/apple/sage/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.pyin
 is_galois(self)

 *   4304* False

 *   4305* 

 - 4306 return self.galois_group(type=pari).order() == self.
 degree()

 *   4307*

 *   4308* @cached_method


 /Users/apple/sage/local/lib/python2.7/site-packages/sage/misc/cachefunc.soin 
 sage.misc.cachefunc.CachedMethodCaller.__call__
 (sage/misc/cachefunc.c:8679)()


 /Users/apple/sage/local/lib/python2.7

Re: [sage-devel] Difficulty with Galois group

2014-04-19 Thread Kannappan Sampath
Hah, nice catch! I did not try either of them and that helps find out more: 

Apples-MacBook-Pro:~ apple$ sage --kash
/Users/apple/sage/local/bin/kash: line 4: ./kash3: Bad CPU type in executable

I get the above. I am using Sage Version 6.2.beta7, Release Date: 2014-04-08. 

So, how do I proceed with this one. 


On Apr 19, 2014, at 7:45 PM, leif not.rea...@online.de wrote:

 Kannappan Sampath wrote:
 I am trying to prepare a notebook for a SAGE demo at my institute. In
 rying to compute the Galois group, I am stuck here. SAGE complains that
 I have to install KASH while I already have KASH installed.
 
 
 sage: K.a = NumberField(x^13 + 3*x + 5)
 
 sage: K.galois_group()
 
 ---
 
 NotImplementedError   Traceback (most recent call last)
 
 [...]
 
 NotImplementedError: You must install the optional Kash package to use
 Kash from Sage.
 
 Sorry, computation of Galois groups of fields of degree bigger than 11
 is not yet implemented.  Try installing the optional free (closed
 source) KASH package, which supports degrees up to 23, or use
 algorithm='magma' if you have magma.
 
 sage: optional_packages()[0]
 
 ['database_gap-4.6.4', 'gap_packages-4.6.4.p1', 'kash3-2008-07-31.p0']
 
 Did you check whether
 
$ ./sage --kash
 
 and
 
sage: from sage.interfaces.all import kash
 
 work?
 
 (And btw., which version of Sage are you using?)
 
 
 -leif
 
 
 P.S.:
 
 sage: K.galois_group('gap')
 Galois group Transitive group number 9 of degree 13 of the Number Field in a 
 with defining polynomial x^13 + 3*x + 5
 sage: K.galois_group('pari')
 Galois group Transitive group number 9 of degree 13 of the Number Field in a 
 with defining polynomial x^13 + 3*x + 5
 sage: G.b = K.galois_group()
 ---
 PariError Traceback (most recent call last)
 
 [...]
 
 $SAGE_ROOT/local/lib/python2.7/site-packages/sage/rings/number_field/splitting_field.py
  in splitting_field(poly, name, map, degree_multiple, abort_degree, simplify, 
 simplify_all)
384 if m == 1:
385 continue
 -- 386 factors = Kpol.nffactor(splitting.pol)[0]
387 for q in factors:
388 d = q.poldegree()
 
 $SAGE_ROOT/local/lib/python2.7/site-packages/sage/libs/pari/gen.so in 
 sage.libs.pari.gen.gen.nffactor (sage/libs/pari/gen.c:36272)()
 
 $SAGE_ROOT/local/lib/python2.7/site-packages/sage/libs/pari/handle_error.so 
 in sage.libs.pari.handle_error._pari_handle_exception 
 (sage/libs/pari/handle_error.c:1178)()
 
 PariError: precision too low in floorr (precision loss in truncation)
 

This last behaviour seems very strange to me. 
 -- 
 () The ASCII Ribbon Campaign
 /\   Help Cure HTML E-Mail
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Difficulty with Galois group

2014-04-19 Thread Kannappan Sampath

On Apr 19, 2014, at 11:17 PM, leif not.rea...@online.de wrote:

 Kannappan Sampath wrote:
 Hah, nice catch! I did not try either of them and that helps find out more:
 
 Apples-MacBook-Pro:~ apple$ sage --kash
 /Users/apple/sage/local/bin/kash: line 4: ./kash3: Bad CPU type in
 executable
 
 I get the above. I am using Sage Version 6.2.beta7, Release Date:
 2014-04-08.
 
 So, how do I proceed with this one.
 
 Replace the CPU?

Hehe! :-)

 (No idea.  Probably upload the build log of the kash spkg somewhere, such 
 that the Darwinists can take a look at.)
 

Here is Kash Log: 
https://www.dropbox.com/s/1g379cfhykmrl47/kash3-2008-07-31.p0.log. I would 
appreciate any help. 

 I also don't know how to solve (or avoid) the precision error PARI throws 
 (once kash works).
 
 
 -leif
 
 On Apr 19, 2014, at 7:45 PM, leif not.rea...@online.de
 mailto:not.rea...@online.de wrote:
 
 Kannappan Sampath wrote:
 I am trying to prepare a notebook for a SAGE demo at my institute. In
 rying to compute the Galois group, I am stuck here. SAGE complains that
 I have to install KASH while I already have KASH installed.
 
 
 sage: K.a = NumberField(x^13 + 3*x + 5)
 
 sage: K.galois_group()
 
 ---
 
 NotImplementedError   Traceback (most recent call
 last)
 
 [...]
 
 NotImplementedError: You must install the optional Kash package to use
 Kash from Sage.
 
 Sorry, computation of Galois groups of fields of degree bigger than 11
 is not yet implemented.  Try installing the optional free (closed
 source) KASH package, which supports degrees up to 23, or use
 algorithm='magma' if you have magma.
 
 sage: optional_packages()[0]
 
 ['database_gap-4.6.4', 'gap_packages-4.6.4.p1', 'kash3-2008-07-31.p0']
 
 Did you check whether
 
   $ ./sage --kash
 
 and
 
   sage: from sage.interfaces.all import kash
 
 work?
 
 (And btw., which version of Sage are you using?)
 
 
 -leif
 
 
 P.S.:
 
 sage: K.galois_group('gap')
 Galois group Transitive group number 9 of degree 13 of the Number
 Field in a with defining polynomial x^13 + 3*x + 5
 sage: K.galois_group('pari')
 Galois group Transitive group number 9 of degree 13 of the Number
 Field in a with defining polynomial x^13 + 3*x + 5
 sage: G.b = K.galois_group()
 ---
 PariError Traceback (most recent call
 last)
 
 [...]
 
 $SAGE_ROOT/local/lib/python2.7/site-packages/sage/rings/number_field/splitting_field.py
 in splitting_field(poly, name, map, degree_multiple, abort_degree,
 simplify, simplify_all)
   384 if m == 1:
   385 continue
 -- 386 factors = Kpol.nffactor(splitting.pol)[0]
   387 for q in factors:
   388 d = q.poldegree()
 
 $SAGE_ROOT/local/lib/python2.7/site-packages/sage/libs/pari/gen.so in
 sage.libs.pari.gen.gen.nffactor (sage/libs/pari/gen.c:36272)()
 
 $SAGE_ROOT/local/lib/python2.7/site-packages/sage/libs/pari/handle_error.so
 in sage.libs.pari.handle_error._pari_handle_exception
 (sage/libs/pari/handle_error.c:1178)()
 
 PariError: precision too low in floorr (precision loss in truncation)
 
 
 This last behaviour seems very strange to me.
 
 -- 
 () The ASCII Ribbon Campaign
 /\   Help Cure HTML E-Mail
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Difficulty with Galois group

2014-04-19 Thread Kannappan Sampath
So, does this mean that I cannot get Kash to work on this Mac? 

On Apr 20, 2014, at 12:22 AM, Justin C. Walker jus...@mac.com wrote:

 
 On Apr 19, 2014, at 11:11 , leif wrote:
 
 Kannappan Sampath wrote:
 
 On Apr 19, 2014, at 11:17 PM, leif not.rea...@online.de wrote:
 
 Kannappan Sampath wrote:
 Hah, nice catch! I did not try either of them and that helps find out 
 more:
 
 Apples-MacBook-Pro:~ apple$ sage --kash
 /Users/apple/sage/local/bin/kash: line 4: ./kash3: Bad CPU type in
 executable
 
 I get the above. I am using Sage Version 6.2.beta7, Release Date:
 2014-04-08.
 
 So, how do I proceed with this one.
 
 Replace the CPU?
 
 Hehe! :-)
 
 Seems you don't have an option (other than that or changing the OS):
 
 In README, they say:
 
 /*** INSTALLATION ** INSTALLATION ** INSTALLATION /
 
 To make your life easier we provide binaries of the shell. At the
 moment we are supporting the following architectures:
 
 o  Linux on x86
 o  Mac OS X on PPC
 o  MS Windows 2000/XP on x86
 
 For the above architectures you have to download the corresponding file:
 
 KASH3-Linux--MM-DD.tar.bz2
 KASH3-Darwin--MM-DD.tar.bz2
 KASH3-Windows--MM-DD.zip
 
 
 And indeed:
 
 $ lipo -detailed_info kash3
 input file kash3 is not a fat file
 Non-fat file: kash3 is architecture: ppc
 
 
 Doesn't seem they've meanwhile disclosed the source code, but I don't really 
 know.
 
 I think Kash has code in common with Magma, and for that reason, I assume it 
 won't appear in public anytime soon.
 
 Also, I believe that, while Kash will run on earlier versions of x86 Macs, it 
 won't run after 10.6(?).  Isn't that the last release to support Rosetta? 
 Kash is PPC only for Macs, and there doesn't seem to have been much activity 
 there for a while (years).
 
 Justin
 
 --
 Justin C. Walker, Curmudgeon at Large
 Institute for the Absorption of Federal Funds
 ---
 Like the ski resort full of girls hunting for husbands
 and husbands hunting for girls, the situation is not
 as symmetrical as it might seem.
  - Alan MacKay
 --
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Hadamard Designs

2014-04-15 Thread Kannappan Sampath
Hello group!

At the moment in sage-6.2.beta7, in designs.HadamardDesign, we have
implemented the Hadamard 2-design with paramters 2-(4n-1, 2n-1, n-1) one
gets from a Hadamard matrix of order 4n.

But, of course, this design extends uniquely to a (necessarily) 2-(4n, 2n,
n-1) design: the blocks of this design are blocks of the old design union a
new point infinity and complements (in the old point set) of the blocks of
old design. And, any contraction is isomorphic to a Hadamard 2-design we
started off with. So, unsurprisingly, this family is called Hadamard
3-designs.

As you see, implementing the 3-design is trivial but we should settle down
on the nomenclature!

So, what do you guys think?

p/s/ Thanks Nathann for implementing the combinat.designs! I am a big fan
of designs and it is nice to have them in SAGE.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] An xgcd2 algorithm

2014-04-11 Thread Kannappan Sampath
On Fri, Apr 11, 2014 at 11:03 PM, David Roe roed.m...@gmail.com wrote:

 Sounds like a good suggestion.  Do you want to create a trac account so
 that you can create the ticket?
 David


I recall having created trac account for François.

-KnS


 On Fri, Apr 11, 2014 at 9:24 AM, François Colas fco...@gmail.com wrote:

 Hello group,

 I realised that extended GCD for several integers is not implemented in
 Sage (i.e. xgcd2([a1, ..., an]))

 Actually this feature already exists in Magma :

  ExtendedGreatestCommonDivisor([385, 231, 165, 105]);
 1 [ -2, 1, 2, 2 ]

 It could be interesting to have something like :

 g, u = xgcd2([a1, ..., an])

 with u such that :

 a1*u1 + ... + an*un = g

 Do you think a new ticket could be posted?

 Thanks,

 François

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


  --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] ATLAS on Mac

2014-04-10 Thread Kannappan Sampath
I may be very ignorant here, but if my reading is right, this is weird. Can
someone please clarify why is it that we download the ATLAS but later
decide that we won't build it on Mac and actually not use it at all? Should
we just not download ATLAS at all by default?


Here's the relevant log:


/Users/apple/sage/build/pipestatus sage-spkg ${SAGE_SPKG_OPTS}
atlas-3.10.1.20140210 21 tee -a
/Users/apple/sage/logs/pkgs/atlas-3.10.1.20140210.log

Found local metadata for atlas-3.10.1.20140210

Attempting to download package atlas-3.10.1.20140210

 Trying to download
http://www.sagemath.org/packages/upstream/atlas/atlas-3.10.1.20140210.tar.bz2

[]

Checksum: ecacb1132efac76c7a018ec7212508d4a7e7ebcc vs
ecacb1132efac76c7a018ec7212508d4a7e7ebcc

atlas-3.10.1.20140210



Setting up build directory for atlas-3.10.1.20140210

Finished set up



Host system:

Darwin Apples-MacBook-Pro.local 13.1.0 Darwin Kernel Version 13.1.0: Thu
Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64



C compiler: gcc

C compiler version:

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/Users/apple/sage/local/libexec/gcc/x86_64-apple-darwin13.1.0/4.7.3/lto-wrapper

Target: x86_64-apple-darwin13.1.0

Configured with: ../src/configure --prefix=/Users/apple/sage/local
--with-local-prefix=/Users/apple/sage/local
--with-gmp=/Users/apple/sage/local --with-mpfr=/Users/apple/sage/local
--with-mpc=/Users/apple/sage/local --with-system-zlib --disable-multilib
--disable-nls

Thread model: posix

gcc version 4.7.3 (GCC)



Unknown linker: @(#)PROGRAM:ld  PROJECT:ld64-236.3

configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 armv6m
armv7m armv7em

LTO support using: LLVM version 3.4svn

Configuration:

SAGE_LOCAL: /Users/apple/sage/local

ARM?: False

OS_X_Lion?: False

PPC?: False

linker_Darwin?: False

Linux?: False

SPKG_DIR:
/Users/apple/sage/local/var/tmp/sage/build/atlas-3.10.1.20140210

linker_GNU?: False

ld: None

linker_Solaris?: False

system: Darwin

Darwin?: True

machine: x86_64

fortran: gfortran

Solaris?: False

fortran_g95?: False

bits: 64bit

CYGWIN?: False

SPARC?: False

fortran_GNU?: True

FreeBSD?: False

32bit?: False

IA64?: False

generic_binary?: False

64bit?: True

release: 13.1.0

Intel?: True

processor: i386

Skipping build of ATLAS on OS X, using system library instead.

You can try building your own ATLAS by setting SAGE_ATLAS_ARCH

to something sensible although that is not officially supported.


real 0m0.218s

user 0m0.046s

sys 0m0.105s

Successfully installed atlas-3.10.1.20140210

You can safely delete the temporary build directory

/Users/apple/sage/local/var/tmp/sage/build/atlas-3.10.1.20140210

Finished installing atlas-3.10.1.20140210.spkg


With Sincere Regards,

Kannappan.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] SAGE and GL(n) Pack

2014-04-10 Thread Kannappan Sampath
Hello group,

I am writing to ask you about the possibility of implementing GL(n)Pack [1]
in SAGE. Since Kevin chose to implement in Mathematica, I thought I might
ask about what features of Mathematica that are/were absent in SAGE that
made writing GL(n)Pack on Mathematica easier.

[1] http://www.math.waikato.ac.nz/~kab/glnpack.html

With Sincere Regards,
Kannappan.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: ATLAS on Mac

2014-04-10 Thread Kannappan Sampath
Hi Volker,

Isn't it possible for the Make file to do something that depends on what
the platform is?

-KnS


On Fri, Apr 11, 2014 at 5:05 AM, Volker Braun vbraun.n...@gmail.com wrote:

 Other platforms use atlas.



 On Thursday, April 10, 2014 11:51:12 PM UTC+2, KnS wrote:

 I may be very ignorant here, but if my reading is right, this is weird.
 Can someone please clarify why is it that we download the ATLAS but later
 decide that we won't build it on Mac and actually not use it at all? Should
 we just not download ATLAS at all by default?


 Here's the relevant log:


 /Users/apple/sage/build/pipestatus sage-spkg ${SAGE_SPKG_OPTS}
 atlas-3.10.1.20140210 21 tee -a /Users/apple/sage/logs/pkgs/
 atlas-3.10.1.20140210.log

 Found local metadata for atlas-3.10.1.20140210

 Attempting to download package atlas-3.10.1.20140210

  Trying to download http://www.sagemath.org/
 packages/upstream/atlas/atlas-3.10.1.20140210.tar.bz2

 []

 Checksum: ecacb1132efac76c7a018ec7212508d4a7e7ebcc vs
 ecacb1132efac76c7a018ec7212508d4a7e7ebcc

 atlas-3.10.1.20140210

 

 Setting up build directory for atlas-3.10.1.20140210

 Finished set up

 

 Host system:

 Darwin Apples-MacBook-Pro.local 13.1.0 Darwin Kernel Version 13.1.0: Thu
 Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64

 

 C compiler: gcc

 C compiler version:

 Using built-in specs.

 COLLECT_GCC=gcc

 COLLECT_LTO_WRAPPER=/Users/apple/sage/local/libexec/gcc/
 x86_64-apple-darwin13.1.0/4.7.3/lto-wrapper

 Target: x86_64-apple-darwin13.1.0

 Configured with: ../src/configure --prefix=/Users/apple/sage/local
 --with-local-prefix=/Users/apple/sage/local 
 --with-gmp=/Users/apple/sage/local
 --with-mpfr=/Users/apple/sage/local --with-mpc=/Users/apple/sage/local
 --with-system-zlib --disable-multilib --disable-nls

 Thread model: posix

 gcc version 4.7.3 (GCC)

 

 Unknown linker: @(#)PROGRAM:ld  PROJECT:ld64-236.3

 configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 armv6m
 armv7m armv7em

 LTO support using: LLVM version 3.4svn

 Configuration:

 SAGE_LOCAL: /Users/apple/sage/local

 ARM?: False

 OS_X_Lion?: False

 PPC?: False

 linker_Darwin?: False

 Linux?: False

 SPKG_DIR: /Users/apple/sage/local/var/tmp/sage/build/atlas-3.10.1.
 20140210

 linker_GNU?: False

 ld: None

 linker_Solaris?: False

 system: Darwin

 Darwin?: True

 machine: x86_64

 fortran: gfortran

 Solaris?: False

 fortran_g95?: False

 bits: 64bit

 CYGWIN?: False

 SPARC?: False

 fortran_GNU?: True

 FreeBSD?: False

 32bit?: False

 IA64?: False

 generic_binary?: False

 64bit?: True

 release: 13.1.0

 Intel?: True

 processor: i386

 Skipping build of ATLAS on OS X, using system library instead.

 You can try building your own ATLAS by setting SAGE_ATLAS_ARCH

 to something sensible although that is not officially supported.


 real 0m0.218s

 user 0m0.046s

 sys 0m0.105s

 Successfully installed atlas-3.10.1.20140210

 You can safely delete the temporary build directory

 /Users/apple/sage/local/var/tmp/sage/build/atlas-3.10.1.20140210

 Finished installing atlas-3.10.1.20140210.spkg


 With Sincere Regards,

 Kannappan.

  --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] SAGE 6.2.beta 7 build

2014-04-10 Thread Kannappan Sampath
My SAGE build stops with this error. I am not sure how to resolve this:


ImportError:
dlopen(/Users/apple/sage/local/lib/python2.7/site-packages/sage/libs/linbox/linbox.so,
2): Library not loaded: /Users/apple/sage/local/lib/libntl.0.dylib

  Referenced from: /Users/apple/sage/local/lib/liblinboxsage.0.dylib

  Reason: image not found

make: *** [doc-html] Error 1


Any help would be appreciated.


Kannappan.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: SAGE 6.2.beta 7 build

2014-04-10 Thread Kannappan Sampath
Fixed this one as well! Sorry for the noise!


On Fri, Apr 11, 2014 at 6:13 AM, Kannappan Sampath kntri...@gmail.comwrote:

 My SAGE build stops with this error. I am not sure how to resolve this:


 ImportError:
 dlopen(/Users/apple/sage/local/lib/python2.7/site-packages/sage/libs/linbox/linbox.so,
 2): Library not loaded: /Users/apple/sage/local/lib/libntl.0.dylib

   Referenced from: /Users/apple/sage/local/lib/liblinboxsage.0.dylib

   Reason: image not found

 make: *** [doc-html] Error 1


 Any help would be appreciated.


 Kannappan.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] problems trying to login to the trac web interfase

2014-02-04 Thread Kannappan Sampath
I have now contacted Pablo off the list with an updated password for his
account.

Hope it works for him,

Kannappan.


On Mon, Feb 3, 2014 at 6:05 AM, Pablo De Napoli pden...@gmail.com wrote:

 Hi

 I cannot login to the trac web interfase.
 I have tried to reset my password, and I have received an e-mail
 with a new password, but it didn't work!
 (I have tried both using Chromium and Iceweasel (Firefox) on
 Debian GNU Linux)
 My username is pdenapo

 best regards
 Pablo

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sage-combinat-devel] Fast Implementation for Character Values of Symmetric Groups

2013-12-20 Thread Kannappan Sampath
n Fri, Dec 20, 2013 at 5:18 PM, Amritanshu Prasad amripra...@gmail.comwrote:

 Dear Darij,

 Thanks for the explanation. This is very elegant. I think it would be
 worth adding also the recursive Murnaghan-Nakayama formula to
 sage/combinat/partition.py (it shouldn't be hard for someone who knows
 their way around partitions - one needs to find enumerate hooks of a
 certain size and remove them). Let me start by puttin up a ticket. If no
 one does it right away, I will get around to it one of these days.


This does not look hard. I'll try to put up a patch!

Regards,
Kannappan.



 Amri.


 On Fri, Dec 20, 2013 at 5:07 PM, Darij Grinberg 
 darijgrinb...@gmail.comwrote:

 Hi Amri,

 Oops, I made a mistake: it should be s(p[la]), not p(s[la]). Sorry!

 Generally, any basis of Sym is implemented as a *ring in its own*. So
 when you write p(s[la]), it understands compute the Schur function
 corresponding to partition la, and then convert it to the power-sum ring.
 And once it's in the power-sum ring, coefficient means coefficient of
 the corresponding power-sum symmetric function, not coefficient of a
 monomial (actually, the computation I suggested never goes through
 considering monomials).

 But you are right in saying that this is not an optimal solution, and it
 might be better to implement the Murnaghan-Nakayama rule directly as a
 hook-removal algorithm rather than by building the whole s and p bases of
 Sym. If you want to change this, I'd say the best place to do it would be
 sage/combinat/partition.py.

   Best regards,
   Darij


  --
 You received this message because you are subscribed to the Google Groups
 sage-combinat-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-combinat-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-combinat-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-combinat-devel.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
sage-combinat-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-combinat-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sage-devel] Help in creating trac accounts.

2013-12-10 Thread Kannappan Sampath
I'd be willing to help with this task although I must confess I have not
been actively involved in Sage development lately, but then, I am now
beginning to undertake some development work.

With Sincere Regards,
Kannappan.


On Tue, Dec 10, 2013 at 7:41 PM, Maarten Derickx 
m.derickx.stud...@gmail.com wrote:

 Dear All,

 As most of you probably know, there is a mailinglist 
 sage-trac-accounthttps://groups.google.com/forum/#!forum/sage-trac-account.
 The purpose for this mailinglist is to distribute the task of creating trac
 accounts among several sage devs, so that people needing a trac account wil
 receive one in a timely fashion. However the number of people actively
 creating accounts has dropped, causing potential new sage devs to get their
 trac accounts later then desired. So I'm now asking if there are people
 that would like to help by creating an account say once a week (takes about
 5 min).

 The reason the creation process is manual is because the captcha of trac
 is not strong enough so our trac server will get spammed with useless
 messages about certain medicines if we made the process automatic as used
 to happen in the past.

 If you are interested in helping out please send a message either to me or
 to the sage-trac-account mailinglist.

 Thanks,
 Maarten

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


[sage-devel] Mathematical Software - A Scientific Program at ICM

2013-09-08 Thread Kannappan Sampath
Have people seen this?

http://www.icm2014.org/en/program/scientific/mathematical

Quoting from the link: Systems that are available free of charge (e.g.,
public domain) are particularly welcome and clearly preferred.

Shouldn't we present Sage?

Regards,
Kannappan.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sage-devel] Fwd: Sage Man Page

2013-07-12 Thread Kannappan Sampath
Hello YMADEC,

You might be glad to note that, there is a ticket relevant to this. You
might want to apply for a trac account and get involved with the sage
development.

The Trac Homepage http://trac.sagemath.org/sage_trac/  has instructions for
requesting a trac account and the ticket you might want to look at is:

http://trac.sagemath.org/sage_trac/ticket/7416

Cheers,
KnS


On Sat, Jul 13, 2013 at 12:40 AM, William Stein wst...@gmail.com wrote:

 -- Forwarded message --
 From: YMADEC yma...@myopera.com
 Date: Jul 12, 2013 11:46 AM
 Subject: Fwd: Sage Man Page
 To: wst...@gmail.com
 Cc:

  Sorry, I forgot attaching the file...



  Message original   Sujet: Sage Man Page  Date : Fri, 12
 Jul 2013 20:42:07 +0200  De : YMADEC yma...@myopera.comyma...@myopera.com 
  Pour :
 wst...@gmail.com

 Hello,

 I'm a new user of Sage and I had some difficulties to find the Sage
 command-line options.
 I tried sage -h, that worked, and then I could find the sage -advanced
 command that printed what I was looking for.
 But it would be better if Sage had a man page, that could be found with
 man sage.
 Thats's why I adapted the advanced help message to a man page, which is
 joined to this message. I hope that it would be useful.

 Regards,

 YMADEC


 P.S. Sorry for my bad english, I'm just a young french student...
 I also could help translating Sage, if needed.



   --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] No handler matched request to /register

2013-06-27 Thread Kannappan Sampath
To quote the trac webpage:

*To get an account*, read the trac
guidelineshttp://www.sagemath.org/doc/developer/trac.html,
then send an email to sage-trac-account AT googlegroups DOT com that
contains *all* of the following:

   - your full name
   - preferred username
   - contact email
   - and reason for needing a trac account.



Did you write an email requesting account to the specified email adddress?

~KnS


On Fri, Jun 28, 2013 at 2:44 AM, juaninf juan...@gmail.com wrote:

 Dears members,
 I want contribute with SAGE project. Then I have read the doc
 http://www.sagemath.org/doc/developer/walk_through.html#submitting-a-change 
 but
 when I want create my Trac account at the URL
 http://trac.sagemath.org/sage_trac/register I get

 No handler matched request to /register

 How I will be able to create my account?

  best regards.

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] Re: Finite Enumerated sets -- Example

2013-06-14 Thread Kannappan Sampath
Thank you so much for the answer.

~KnS

On Fri, Jun 14, 2013 at 12:21 PM, Simon King simon.k...@uni-jena.de wrote:
 Hi Kannapan,

 On 13 Jun., 20:04, Kannappan Sampath kntri...@gmail.com wrote:
 Can someone please point to me a full fledged example of a finite
 enumerated sets? I found the code for Primes using infinite enumerated
 sets helpful. But, I'd like to look at some more examples.

 At least in theory, each category is supposed to provide an example.
 And the category of finite enumerated sets is no exception:

   sage: E = FiniteEnumeratedSets().example()
   sage: E
   An example of a finite enumerated set: {1,2,3}
   sage: E.__module__
   'sage.categories.examples.finite_enumerated_sets'

 So, you can find the code in SAGE_ROOT/devel/sage/sage/categories/
 examples/finite_enumerated_sets.py

 And of course, you can also see the code by E??.

 Best regards,
 Simon

 --
 You received this message because you are subscribed to the Google Groups 
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] Re: Upgrading to recent beta from the 5.8 ones

2013-06-13 Thread Kannappan Sampath
Thanks for the reply!

~KnS


On Wed, Jun 12, 2013 at 9:22 PM, leif not.rea...@online.de wrote:
 Kannappan Sampath wrote:

 Is there a quick way to upgrade to the most recent sage beta from the
 sage 5.8 betas without having to download the entire the repository?


 Upgrading *from* betas / rcs is only (again) supported since Sage 5.9.beta4,
 i.e., you'd need some stable 5.8 (or probably stable 5.7, or 5.9.beta4+)
 version to upgrade from.

 But the final 5.10 will (hopefully) get out soon anyway (although you could
 upgrade from 5.10.rc1, say, later, too).


 I'd recommend building 5.10.rc1 from scratch (and upgrading /that/ later)
 though... ;-)


 -leif

 --
 () The ASCII Ribbon Campaign
 /\   Help Cure HTML E-Mail

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Finite Enumerated sets -- Example

2013-06-13 Thread Kannappan Sampath
Can someone please point to me a full fledged example of a finite
enumerated sets? I found the code for Primes using infinite enumerated
sets helpful. But, I'd like to look at some more examples.

~KnS

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Upgrading to recent beta from the 5.8 ones

2013-06-12 Thread Kannappan Sampath
Hello!

I have been unable to get around to developoing sage in the past few
weeks (months?).

Is there a quick way to upgrade to the most recent sage beta from the
sage 5.8 betas without having to download the entire the repository?

Regards,
Kannappan.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Documentation Building

2013-03-16 Thread Kannappan Sampath
Hello!

While working on a ticket, I did the following:

I made two changes: added a new file to an index.rst and edited the file I
added. Then, without committing, I built the documentation. The
documentation was built but no changes I made was incorporated. I then
committed the changes. But, now, when I try to build, it says no targets
are out of date.

I am now confused about how to build the file with changes I have made to
it.

This is on sage-5.8.beta3 on Ubuntu 12.04.

Any help would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] Re: Documentation Building

2013-03-16 Thread Kannappan Sampath
Oh, yes! I did!


On Sun, Mar 17, 2013 at 5:28 AM, John H Palmieri jhpalmier...@gmail.comwrote:



 On Saturday, March 16, 2013 3:19:46 PM UTC-7, KnS wrote:

 Hello!

 While working on a ticket, I did the following:

 I made two changes: added a new file to an index.rst and edited the file
 I added. Then, without committing, I built the documentation. The
 documentation was built but no changes I made was incorporated. I then
 committed the changes. But, now, when I try to build, it says no targets
 are out of date.


 Did you run sage -b?

 --
 John


 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] Re: Documentation Building

2013-03-16 Thread Kannappan Sampath
Oops... May be I should be a little more precise:

1. I added to the index.rst in reference/logic -- the logicparser file by
adding the line sage/logic/logicparser at the appropriate place.
2. I edited the file sage.logic/logicparser.py
3. On the terminal, sage -docbuild reference/logic html
4. HTML documentation created but none of the edits I made are there.
5. I commit and rebuild sage by using ./sage -b
6. On the terminal, sage -docbuild reference/logic html. Now, I see that no
targets are out of date...

I am absolutely lost still...


On Sun, Mar 17, 2013 at 6:11 AM, Volker Braun vbraun.n...@gmail.com wrote:

 Can you tell us the precise commands you used? Did you run sage -docbuild
 all html


 On Saturday, March 16, 2013 6:19:46 PM UTC-4, KnS wrote:

 Hello!

 While working on a ticket, I did the following:

 I made two changes: added a new file to an index.rst and edited the file
 I added. Then, without committing, I built the documentation. The
 documentation was built but no changes I made was incorporated. I then
 committed the changes. But, now, when I try to build, it says no targets
 are out of date.

 I am now confused about how to build the file with changes I have made to
 it.

 This is on sage-5.8.beta3 on Ubuntu 12.04.

 Any help would be appreciated.

  --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-combinat-devel] Re: Longest element in a Coxeter Group - name decision

2013-03-08 Thread Kannappan Sampath
Hello!

That was very enlightening. I haven't been able to come back to this
because of the exams. So, let me summarise the changes we have agreed to
make:

(1) Move the method in question, long_element to the Coxeter Groups
category.
(2) Deprecate this method and redirect the user to longest_element method,
which should be decorated with a warning: that this method might not
terminate for infinite groups.

Did I get this right?

I have an exam on monday. I'll write some code that evening. Sorry for the
delay.

With Sincere Regards,
Kannappan.


On Thu, Mar 7, 2013 at 10:26 PM, Nicolas M. Thiery nicolas.thi...@u-psud.fr
 wrote:

 On Wed, Mar 06, 2013 at 04:27:57AM -0800, Travis Scrimshaw wrote:
I'd throw a type error if the group W was infinite since this does
 not
 exist. Also I would think it would be (relatively) easy to check if
 subgroup the group is finite since there are only 3 infinitely
 families
 and would be easy to detect when it does not fall into these types
 (basically if the Coxeter matrix has something off the sub/super
 diagonals
 or is type D), the rest are exceptional and could just be a big case
 check
 by equality. Of course this would only be after it has been broken up
 into
 connected components. Perhaps I'm over simplifying things...

 Yes, we will definitely want some automatic type recognition at some
 point (like GAP does); as a side effect this will give finite type
 detection.

 Now, for the problem at hand, I guess that's overkill. Let's write in
 the specs, as a big fat warning, that the function will only terminate
 if the (parabolic sub) group is finite. And add some simple and fast
 sanity checks in the easy to handle cases. Something like:

 def longest_element(index_set=None):
 if index_set is None:
 if self in CoxeterGroups().Infinite():
  raise ...
 ...

 Cheers,
 Nicolas
 --
 Nicolas M. Thiéry Isil nthi...@users.sf.net
 http://Nicolas.Thiery.name/

 --
 You received this message because you are subscribed to the Google Groups
 sage-combinat-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-combinat-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-combinat-devel@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/sage-combinat-devel?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
sage-combinat-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-combinat-devel] Longest element in a Coxeter Group - name decision

2013-03-05 Thread Kannappan Sampath
Hello friends,

I am writing this mail to ask for your help in a naming decision.
In the file sage/categories/finite_coxeter_groups.py, there is a function
called long_element. The docstring asks if this should be renamed and if
so, to what?

There are two suggestions from the authors: longest_element,
maximal_element.

Now, I think longest_element is pretty common. But, LiE, Marc's Lie Group
computation software seems to call this `long_word()`.

1) what should we pick?

2) I started a ticket to clean up this file on trac:
http://trac.sagemath.org/sage_trac/ticket/14050

I understand that name changes are to be handled with care. How do we go
about this one? Deprecate?

With Sincere Regards,
Kannappan.

-- 
You received this message because you are subscribed to the Google Groups 
sage-combinat-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-combinat-devel] Re: Longest element in a Coxeter Group - name decision

2013-03-05 Thread Kannappan Sampath
Hah! Fantastic!! I'll go ahead and implement this later tonight if I
receive no more information regarding this issue. Thanks for the
enlightenment, Tom.

With Sincere Regards,
Kannappan.


On Tue, Mar 5, 2013 at 4:41 PM, tom d sdent...@gmail.com wrote:

 I think longest_element is fine; long_word indicates that there will be a
 word returned instead of an element, which is maybe not what we're after
 here.

 Wiser minds than mine will have more knowledge of how to handle
 deprecation, but here's an example from skew_partition.py:

 sage: x.r_quotient??
 Type:   instancemethod
 String Form:bound method SkewPartition_class.r_quotient of [[12, 6, 5, 3,
 1], [6, 5, 3, 1]]
 File:
 /home/kaibutsu/sage-5.7/local/lib/python2.7/site-packages/sage/combinat/skew_partition.py
 Definition: x.r_quotient(self, length)
 Source:
 def r_quotient(self, length):
   
   This method is deprecated.

   EXAMPLES::

   sage: SkewPartition([[3, 3, 2, 1], [2, 1]]).r_quotient(2)
   doctest:1: DeprecationWarning: r_quotient is deprecated. Use
 quotient instead.
   See http://trac.sagemath.org/5790 for details.
   [[[3], []], [[], []]]
   
   from sage.misc.superseded import deprecation
   deprecation(5790, 'r_quotient is deprecated. Use quotient instead.')
   return self.quotient(length)

 On Tuesday, March 5, 2013 12:37:17 PM UTC+3, Kannappan Sampath wrote:

 Hello friends,

 I am writing this mail to ask for your help in a naming decision.
 In the file sage/categories/finite_**coxeter_groups.py, there is a
 function called long_element. The docstring asks if this should be renamed
 and if so, to what?

 There are two suggestions from the authors: longest_element,
 maximal_element.

 Now, I think longest_element is pretty common. But, LiE, Marc's Lie
 Group computation software seems to call this `long_word()`.

 1) what should we pick?

 2) I started a ticket to clean up this file on trac:
 http://trac.sagemath.**org/sage_trac/ticket/14050http://trac.sagemath.org/sage_trac/ticket/14050


 I understand that name changes are to be handled with care. How do we go
 about this one? Deprecate?

 With Sincere Regards,
 Kannappan.

  --
 You received this message because you are subscribed to the Google Groups
 sage-combinat-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-combinat-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-combinat-devel@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/sage-combinat-devel?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
sage-combinat-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Longest element in a Coxeter Group - name decision

2013-03-05 Thread Kannappan Sampath
Hello friends,

I am writing this mail to ask for your help in a naming decision.
In the file sage/categories/finite_coxeter_groups.py, there is a function
called long_element. The docstring asks if this should be renamed and if
so, to what?

There are two suggestions from the authors: longest_element,
maximal_element.

Now, I think longest_element is pretty common. But, LiE, Marc's Lie Group
computation software seems to call this `long_word()`.

1) what should we pick?

2) I started a ticket to clean up this file on trac:
http://trac.sagemath.org/sage_trac/ticket/14050

I understand that name changes are to be handled with care. How do we go
about this one? Deprecate?

With Sincere Regards,
Kannappan.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Sage FAQ

2013-02-22 Thread Kannappan Sampath
In the Sage FAQ, Release 5.7, we have this:

2.9 I used Debian/Ubuntu to install Sage 3.0.5 and that version is giving
lots of errors. What can I do?


But, if I am not mistaken, Sage 5.6 is available from the Ubuntu Repos and
Sage 5.7 should be available as usual too...


Am I missing something?

~KnS

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Good Manners?

2013-02-20 Thread Kannappan Sampath
Hello!!

Is it considered good manners to change the status of a (needs_review)
ticket to sth else (of course, other than giving (positive_review)) when
you are not the reviewer, but the reviewer has left some comments
indicating some work to be done or asking for some more information about
the patch?

I am asking this because, there are a couple of tickets, which are
obviously not those that need_review (they either needs_work or
needs_info).

Thank you.

~KnS

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] Good Manners?

2013-02-20 Thread Kannappan Sampath
Thank you all for the replies. Just going through the ticket list I had
compiled that I'd go through now.

~KnS


On Wed, Feb 20, 2013 at 9:38 PM, Jeroen Demeyer jdeme...@cage.ugent.bewrote:

 On 2013-02-20 17:04, Kannappan Sampath wrote:
  Hello!!
 
  Is it considered good manners to change the status of a (needs_review)
  ticket to sth else (of course, other than giving (positive_review)) when
  you are not the reviewer, but the reviewer has left some comments
  indicating some work to be done or asking for some more information
  about the patch?
 
  I am asking this because, there are a couple of tickets, which are
  obviously not those that need_review (they either needs_work or
  needs_info).

 I'd say yes. If some comment can be interpreted as needs_work, then it's
 okay to set the status to needs_work.

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] sage -t Help

2013-02-16 Thread Kannappan Sampath
Dear Jeroen and John,

Thank you for the replies. OK, thanks for the questions. One of them nails
it

On Sat, Feb 16, 2013 at 4:53 PM, Jeroen Demeyer jdeme...@cage.ugent.bewrote:

 On 2013-02-16 05:30, Kannappan Sampath wrote:
  Hello everyone,
 
  I would be very glad if someone can please help me with this problem. I
  had wanted to review some doctest-adding patches. So, as a preliminary,
  if I did sage -t filename, I get mysterious errors.

 I think we need more information about exactly what you're trying to do.
 1) was this a build from source or a binary build?

2) do you get the same errors with a plain vanilla Sage (without the
 extra patches)?
 3) does the sage executable refer to the version of Sage you're testing?

I think no: the sage --version echoes Sage 5.6 that I got from Ubuntu
Repos!! And, I had applied the patches for testing on sage.5.7.beta4.

4) did you remember to run sage -b after applying the patch?

Yes.

So, could you please tell me how would I run this version of sage? And, I
think the reason the tests are failing on the Sage 5.6 is there are some
changes that I have not committed. Is this right?

Thanks for the hint that the sage test works from any other directory. But,
if I did sudo, the sage says, some other users could put files and is not
the best place to run sage code from, which makes sense.

Hopefully, I have given enough information to help me.

Thank you.

Kannappan

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Doctesting quadratic_form__automorphisms.py

2013-02-10 Thread Kannappan Sampath
Hello!!

On Sage 5.7.beta2, all doctests in the file in question pass. But, for some
reason, on 5.7.beta3 and beta4, the process gets killed because of time
out!

Could someone please tell me how to handle this one? Are there flags that
can override time outs in doctests?

Regards,
Kannappan

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] Doctesting quadratic_form__automorphisms.py

2013-02-10 Thread Kannappan Sampath

 There are environment variables SAGE_TIMEOUT and SAGE_TIMEOUT_LONG. You
 might also run with --verbose to see precisely where it timeouts.


Thanks for the pointers. I tried the verbose command. Here's something
strange happening: there is a  failing example but, when I try on Sage, I
do get what the docstring says. Let me paste the relevant part of the
input:

Trying:
Q.short_vector_list_up_to_length(Integer(3))###line 164:_sage_
Q.short_vector_list_up_to_length(3)
Expecting:
[[(0, 0, 0, 0)], [(1, 0, 0, 0), (-1, 0, 0, 0)], []]
**
File
/home/knsam/Downloads/sage-5.7.beta4/devel/sage-main/sage/quadratic_forms/quadratic_form__automorphisms.py,
line 168, in __main__.example_2
Failed example:
Q.short_vector_list_up_to_length(Integer(3))###line 164:_sage_
Q.short_vector_list_up_to_length(3)
Expected:
[[(0, 0, 0, 0)], [(1, 0, 0, 0), (-1, 0, 0, 0)], []]
Got:
[[(0, 0, 0, 0)], [(1, 0, 0, 0), [-1, 0, 0, 0]], []]
Trying:
Q.short_vector_list_up_to_length(Integer(4))###line 166:_sage_
Q.short_vector_list_up_to_length(4)
Expecting:
[[(0, 0, 0, 0)],
 [(1, 0, 0, 0), (-1, 0, 0, 0)],
 [],
 [(0, 1, 0, 0), (0, -1, 0, 0)]]
**
File
/home/knsam/Downloads/sage-5.7.beta4/devel/sage-main/sage/quadratic_forms/quadratic_form__automorphisms.py,
line 170, in __main__.example_2
Failed example:
Q.short_vector_list_up_to_length(Integer(4))###line 166:_sage_
Q.short_vector_list_up_to_length(4)
Expected:
[[(0, 0, 0, 0)],
 [(1, 0, 0, 0), (-1, 0, 0, 0)],
 [],
 [(0, 1, 0, 0), (0, -1, 0, 0)]]
Got:
[[(0, 0, 0, 0)], [(1, 0, 0, 0), [-1, 0, 0, 0]], [], [(0, 1, 0, 0), [0,
-1, 0, 0]]]
Trying:
Q.short_vector_list_up_to_length(Integer(5))###line 171:_sage_
Q.short_vector_list_up_to_length(5)
Expecting:
[[(0, 0, 0, 0)],
 [(1, 0, 0, 0), (-1, 0, 0, 0)],
 [],
 [(0, 1, 0, 0), (0, -1, 0, 0)],
 [(1, 1, 0, 0),
 (-1, -1, 0, 0),
 (-1, 1, 0, 0),
 (1, -1, 0, 0),
 (2, 0, 0, 0),
 (-2, 0, 0, 0)]]
**
File
/home/knsam/Downloads/sage-5.7.beta4/devel/sage-main/sage/quadratic_forms/quadratic_form__automorphisms.py,
line 175, in __main__.example_2
Failed example:
Q.short_vector_list_up_to_length(Integer(5))###line 171:_sage_
Q.short_vector_list_up_to_length(5)
Expected:
[[(0, 0, 0, 0)],
 [(1, 0, 0, 0), (-1, 0, 0, 0)],
 [],
 [(0, 1, 0, 0), (0, -1, 0, 0)],
 [(1, 1, 0, 0),
 (-1, -1, 0, 0),
 (-1, 1, 0, 0),
 (1, -1, 0, 0),
 (2, 0, 0, 0),
 (-2, 0, 0, 0)]]
Got:
[[(0, 0, 0, 0)], [(1, 0, 0, 0), [-1, 0, 0, 0]], [], [(0, 1, 0, 0), [0,
-1, 0, 0]], [(1, 1, 0, 0), [-1, -1, 0, 0], (-1, 1, 0, 0), [1, -1, 0, 0],
(2, 0, 0, 0), [-2, 0, 0, 0]]]

List and tuple seem to alternate... And, here is where I get time out:

Trying:
Q.short_vector_list_up_to_length(Integer(0))###line 195:_sage_
Q.short_vector_list_up_to_length(0)
Expecting:
[]
*** *** Error: TIMED OUT! PROCESS KILLED! *** ***

This timeout I think is because Sage is unable to figure out where this
function list() is coming from, just as I am...

Any pointers would be very helpful.

Thank you.
~KnS

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] Doctesting quadratic_form__automorphisms.py

2013-02-10 Thread Kannappan Sampath
On Sun, Feb 10, 2013 at 7:04 PM, Kannappan Sampath kntri...@gmail.comwrote:

  There are environment variables SAGE_TIMEOUT and SAGE_TIMEOUT_LONG. You
 might also run with --verbose to see precisely where it timeouts.


 Thanks for the pointers. I tried the verbose command. Here's something
 strange happening: there is a  failing example but, when I try on Sage, I
 do get what the docstring says. Let me paste the relevant part of the
 input:

 Trying:
 Q.short_vector_list_up_to_length(Integer(3))###line 164:_sage_
 Q.short_vector_list_up_to_length(3)
 Expecting:
 [[(0, 0, 0, 0)], [(1, 0, 0, 0), (-1, 0, 0, 0)], []]
 **
 File
 /home/knsam/Downloads/sage-5.7.beta4/devel/sage-main/sage/quadratic_forms/quadratic_form__automorphisms.py,
 line 168, in __main__.example_2
 Failed example:
 Q.short_vector_list_up_to_length(Integer(3))###line 164:_sage_
 Q.short_vector_list_up_to_length(3)
 Expected:
 [[(0, 0, 0, 0)], [(1, 0, 0, 0), (-1, 0, 0, 0)], []]
 Got:
 [[(0, 0, 0, 0)], [(1, 0, 0, 0), [-1, 0, 0, 0]], []]
 Trying:
 Q.short_vector_list_up_to_length(Integer(4))###line 166:_sage_
 Q.short_vector_list_up_to_length(4)
 Expecting:
 [[(0, 0, 0, 0)],
  [(1, 0, 0, 0), (-1, 0, 0, 0)],
  [],
  [(0, 1, 0, 0), (0, -1, 0, 0)]]
 **
 File
 /home/knsam/Downloads/sage-5.7.beta4/devel/sage-main/sage/quadratic_forms/quadratic_form__automorphisms.py,
 line 170, in __main__.example_2
 Failed example:
 Q.short_vector_list_up_to_length(Integer(4))###line 166:_sage_
 Q.short_vector_list_up_to_length(4)
 Expected:
 [[(0, 0, 0, 0)],
  [(1, 0, 0, 0), (-1, 0, 0, 0)],
  [],
  [(0, 1, 0, 0), (0, -1, 0, 0)]]
 Got:
 [[(0, 0, 0, 0)], [(1, 0, 0, 0), [-1, 0, 0, 0]], [], [(0, 1, 0, 0), [0,
 -1, 0, 0]]]
 Trying:
 Q.short_vector_list_up_to_length(Integer(5))###line 171:_sage_
 Q.short_vector_list_up_to_length(5)
 Expecting:
 [[(0, 0, 0, 0)],
  [(1, 0, 0, 0), (-1, 0, 0, 0)],
  [],
  [(0, 1, 0, 0), (0, -1, 0, 0)],
  [(1, 1, 0, 0),
  (-1, -1, 0, 0),
  (-1, 1, 0, 0),
  (1, -1, 0, 0),
  (2, 0, 0, 0),
  (-2, 0, 0, 0)]]
 **
 File
 /home/knsam/Downloads/sage-5.7.beta4/devel/sage-main/sage/quadratic_forms/quadratic_form__automorphisms.py,
 line 175, in __main__.example_2
 Failed example:
 Q.short_vector_list_up_to_length(Integer(5))###line 171:_sage_
 Q.short_vector_list_up_to_length(5)
 Expected:
 [[(0, 0, 0, 0)],
  [(1, 0, 0, 0), (-1, 0, 0, 0)],
  [],
  [(0, 1, 0, 0), (0, -1, 0, 0)],
  [(1, 1, 0, 0),
  (-1, -1, 0, 0),
  (-1, 1, 0, 0),
  (1, -1, 0, 0),
  (2, 0, 0, 0),
  (-2, 0, 0, 0)]]
 Got:
 [[(0, 0, 0, 0)], [(1, 0, 0, 0), [-1, 0, 0, 0]], [], [(0, 1, 0, 0), [0,
 -1, 0, 0]], [(1, 1, 0, 0), [-1, -1, 0, 0], (-1, 1, 0, 0), [1, -1, 0, 0],
 (2, 0, 0, 0), [-2, 0, 0, 0]]]

 List and tuple seem to alternate... And, here is where I get time out:

 Trying:
 Q.short_vector_list_up_to_length(Integer(0))###line 195:_sage_
 Q.short_vector_list_up_to_length(0)
 Expecting:
 []
 *** *** Error: TIMED OUT! PROCESS KILLED! *** ***

 This timeout I think is because Sage is unable to figure out where this
 function list() is coming from, just as I am...


Oops!! I got this bit! list() is just an empty list. Sorry for being silly!

Any pointers would be very helpful.

 Thank you.
 ~KnS


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] 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 jhpalmier...@gmail.comwrote:



 On Friday, February 8, 2013 7:40:52 PM UTC-8, KnS wrote:

  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 it from Sage (the Ctrl + L). And, unfortunately,
 clear does not clear the screen -- it just returns the prompt on the next
 line. Ctrl+L works like a Tab in the Sage Console...


 Sorry, in the beta releases of sage 5.7, clear clears the screen. As P
 Purkayastha says, try !clear in earlier versions of Sage.

 --
 John

  --
 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-supp...@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-support?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] Tour-Benchmark.

2013-02-08 Thread Kannappan Sampath
On Sun, Dec 30, 2012 at 2:18 PM, Thierry Dumont
tdum...@math.univ-lyon1.frwrote:

 Dear Colleagues,

 I just want to point out that at least one of the results of the
 Tour-Benchmark should be modified/updated: the 
 Matrix Multiplication in Sage vs. MATLAB and Mathematica.

 On my personal, quite old, with a Celeron 3Ghz, 2 core machine, 64 bits, I
 get:

 752 ms
 which is very far from the result on the web site:
 3.28 s per loop.

 The very impressive performances of Atlas is: 1.06100795755968e10 flops.
 As the matrix is large, Atlas use 2 threads, and this gives
 5.30503978779841e9 flops by core, which is what can be expected with such a
 processor.

 Ok, this will be certainly much better with a more modern processor, but I
 think nowadays, no processor will take 3.28 second...

 Yours,
 t.d.


Hello,

Should I make this a ticket on trac? :)

Regards,

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] 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 understand what clear does on Sage. Could someone elaborate?
In my attempts to understand this, clear? brings an help which I don't
understand. After defining a = 5, both clear(a) and clear('a') complain:
NameError clear is not defined...

Not sure, what is happening!!

I am ccing the sage-devel in case they may have anything to say.

[1] clear does not do what it is intended to do: in Octave, it simply
clears the namespace, so all the variables go undefined.

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] 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 it from Sage (the Ctrl + L). And, unfortunately,
clear does not clear the screen -- it just returns the prompt on the next
line. Ctrl+L works like a Tab in the Sage Console...

Regards,
Kannappan

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] Re: Some Old Tickets

2013-02-04 Thread Kannappan Sampath
On Mon, Feb 4, 2013 at 11:08 PM, kcrisman kcris...@gmail.com wrote:

 I think it really depends on the specific ticket.



Thank you first for the reply...

True! I'll reply in this thread with a couple of tickets that my eye
catches. I am particular about having a very clean Trac and hence I am
going through various tickets to see if I can do sth about. This jsMath
stuff is a bit too technical for me to handle and hence posted here...


 I would like to bring to people's notice the following: we have a couple
 of jsMath related tickets. That we have shifted over to MathJaX for the
 notebook interface, are these at all relevant? Some of the meta things --
 yes, but specifics about jsMath, may not be. Should we clear these tickets?



 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-devel+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-devel@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Some Old Tickets

2013-02-03 Thread Kannappan Sampath
Hello friends,

I would like to bring to people's notice the following: we have a couple of
jsMath related tickets. That we have shifted over to MathJaX for the
notebook interface, are these at all relevant? Some of the meta things --
yes, but specifics about jsMath, may not be. Should we clear these tickets?

And, I found an amusing ticket here... but IMHO, time has now come to set
the milestone to sage-invalid... since the claim of the ticket is really
invalid. :)

http://trac.sagemath.org/sage_trac/ticket/2048


Have a nice week ahead!

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] Re: How to make Sage worksheets publically available

2013-01-21 Thread Kannappan Sampath
On Tue, Jan 22, 2013 at 1:05 AM, Jason Grout jason-s...@creativetrax.comwrote:

 On 1/6/13 7:21 AM, William Stein wrote:

 Thanks, Jason.  I remember wanting this for a long, long time, just
 because.


 Just the other day I had someone ask how to properly preserve Sage code
 used in a thesis.  I suggested attaching the file in the tex so that it
 would be embedded in the pdf on arxiv.org.


Here's a recent one that I know of that does this:
http://arxiv.org/abs/1212.6157 (paper, not a thesis, though). I'd be glad
to know if there are better ways of doing this, than what is done here.

Thank you.


 Having a feature like this will make embedding worksheets way more
 natural, so kudos to whoever polishes this and puts it into production.

 Thanks,

 Jason



 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To post to this group, send email to sage-devel@googlegroups.com.
 To unsubscribe from this group, send email to sage-devel+unsubscribe@**
 googlegroups.com sage-devel%2bunsubscr...@googlegroups.com.
 Visit this group at 
 http://groups.google.com/**group/sage-devel?hl=enhttp://groups.google.com/group/sage-devel?hl=en
 .




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




Re: [sage-devel] Re: MathJax and Documentation

2013-01-20 Thread Kannappan Sampath
On Sun, Jan 20, 2013 at 11:44 AM, Dima Pasechnik dimp...@gmail.com wrote:

 On 2013-01-19, Kannappan Sampath kntri...@gmail.com wrote:
  --047d7b621ac8db287f04d3ac62d9
  Content-Type: multipart/alternative;
 boundary=047d7b621ac8db287b04d3ac62d7
 
  --047d7b621ac8db287b04d3ac62d7
  Content-Type: text/plain; charset=ISO-8859-1
 
  The documentation for IntegerMatrices class looks broken in Sage 5.5 (and
  the recent 5.6.rc1 too). I am attaching  a picture of the same.
 
  I have tried hard to figure out what the fault is. I am convinced now
 that
  this is a general problem, in that, it has got nothing to do with the
 way,
  this documentation code is written.

 this is a serious notebook bug (the html documentation displays just fine
 if you
 look at it not via sagenb interface, but directly), and must be a
 blocker, I think.


Can someone please point me to where the source code that does this is?

Looking at ext/javascripts/ suggests that we are actually not packaging the
mathjax javascript with the sage distribution, but are accessing it
globally from elsewhere (on the internet, perhaps?). Am I right?

By the way, why do we still need the jsmath script?

Thank you.

 Steps to reproduce: open a fresh worksheet, a new cell, and evaluate
 fibonacci?
 there.
 You'll see extra red '\(' '\)' surrounding otherwise good-looking
 mathjax-processed formulae.
 Should not be hard to fix, IMHO.
 Seen on Linux and on MacOSX 10.6.8 with Google Chrome and Safari,
 so this looks platform-independent to me.

 I cc to sage-notebook.

 Dima

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To post to this group, send email to sage-devel@googlegroups.com.
 To unsubscribe from this group, send email to
 sage-devel+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




Re: [sage-devel] Re: MathJax and Documentation

2013-01-20 Thread Kannappan Sampath
Oooh and BTW, this is http://trac.sagemath.org/sage_trac/ticket/13974 on
trac.


On Sun, Jan 20, 2013 at 2:17 PM, Kannappan Sampath kntri...@gmail.comwrote:

 On Sun, Jan 20, 2013 at 11:44 AM, Dima Pasechnik dimp...@gmail.comwrote:

 On 2013-01-19, Kannappan Sampath kntri...@gmail.com wrote:
  --047d7b621ac8db287f04d3ac62d9
  Content-Type: multipart/alternative;
 boundary=047d7b621ac8db287b04d3ac62d7
 
  --047d7b621ac8db287b04d3ac62d7
  Content-Type: text/plain; charset=ISO-8859-1
 
  The documentation for IntegerMatrices class looks broken in Sage 5.5
 (and
  the recent 5.6.rc1 too). I am attaching  a picture of the same.
 
  I have tried hard to figure out what the fault is. I am convinced now
 that
  this is a general problem, in that, it has got nothing to do with the
 way,
  this documentation code is written.

 this is a serious notebook bug (the html documentation displays just fine
 if you
 look at it not via sagenb interface, but directly), and must be a
 blocker, I think.


 Can someone please point me to where the source code that does this is?

 Looking at ext/javascripts/ suggests that we are actually not packaging
 the mathjax javascript with the sage distribution, but are accessing it
 globally from elsewhere (on the internet, perhaps?). Am I right?

 By the way, why do we still need the jsmath script?

 Thank you.

 Steps to reproduce: open a fresh worksheet, a new cell, and evaluate
 fibonacci?
 there.
 You'll see extra red '\(' '\)' surrounding otherwise good-looking
 mathjax-processed formulae.
 Should not be hard to fix, IMHO.
 Seen on Linux and on MacOSX 10.6.8 with Google Chrome and Safari,
 so this looks platform-independent to me.

 I cc to sage-notebook.

 Dima

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To post to this group, send email to sage-devel@googlegroups.com.
 To unsubscribe from this group, send email to
 sage-devel+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel?hl=en.





-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




Re: [sage-devel] Re: Latex in sage

2013-01-15 Thread Kannappan Sampath
On Tue, Jan 15, 2013 at 6:37 PM, P Purkayastha ppu...@gmail.com wrote:

 On 01/15/2013 02:12 PM, Andrew Mathas wrote:

 Almost every object in sage can return latex output. I think that the
 answer is no, but is there anyway to tell whether the latex output
 should be typeset in math-mode or as plain text?

 For example,

 sage: latex(CyclicPermutationGroup(**5).character_table())
 \left(\begin{array}{r}
 1  1  1  1  1 \\
 1  \zeta_{5}  \zeta_{5}^{2}  \zeta_{5}^{3}  -\zeta_{5}^{3} -
 \zeta_{5}^{2} - \zeta_{5} - 1 \\
 1  \zeta_{5}^{2}  -\zeta_{5}^{3} - \zeta_{5}^{2} - \zeta_{5} - 1 
 \zeta_{5}  \zeta_{5}^{3} \\
 1  \zeta_{5}^{3}  \zeta_{5}  -\zeta_{5}^{3} - \zeta_{5}^{2} -
 \zeta_{5} - 1  \zeta_{5}^{2} \\
 1  -\zeta_{5}^{3} - \zeta_{5}^{2} - \zeta_{5} - 1  \zeta_{5}^{3} 
 \zeta_{5}^{2}  \zeta_{5}
 \end{array}\right)

 Here the output should clearly be typset in math-mode but as far as I
 can see python doesn't know this.


 It is typeset here alright. http://i.imgur.com/UEvj3.jpg
 Do you have typeset checked? Otherwise you need to do either
 view(latex(...)), or pretty_print(latex(...)), or even just view(...) and
 pretty_print(...).


While we are at this, let me mention that the way latex() handles operation
tables of algebraic objects needs to be fixed. There are a couple of
tickets on this theme:

1.  http://trac.sagemath.org/sage_trac/ticket/11362
2. http://trac.sagemath.org/sage_trac/ticket/10787

I am willing to work on this ticket if someone will give me some pointers.

Regards,
~KnS




 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To post to this group, send email to sage-devel@googlegroups.com.
 To unsubscribe from this group, send email to sage-devel+unsubscribe@**
 googlegroups.com sage-devel%2bunsubscr...@googlegroups.com.
 Visit this group at 
 http://groups.google.com/**group/sage-devel?hl=enhttp://groups.google.com/group/sage-devel?hl=en
 .




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




Re: [sage-devel] Re: Latex in sage

2013-01-15 Thread Kannappan Sampath
On Wed, Jan 16, 2013 at 5:18 AM, Andrew Mathas andrew.mat...@gmail.comwrote:


 In the Sage notebook, all LaTeX output is typeset in math mode, via
 MathJax. If you want to use LaTeX code which relies on plain text, it may
 not be typeset correctly.

 Thanks for confirming this John. I had trolled through the code this
 morning and thought that this was the case, so it is good to know.

 In almost all cases, I think that the output of latex is intended to be
 typeset in maths mode so I'll make this the default but will allow an
 override.

 @kannappan The main idea behind the code I am writing is to provide a
 better way for viewing, and
 accessing the entries of, large (labelled) tables.

 Andrew


Andrew, does this mean, that your patch when ready will actually take care
of the tickets mentioned?

Thank you.



  --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To post to this group, send email to sage-devel@googlegroups.com.
 To unsubscribe from this group, send email to
 sage-devel+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




[sage-devel] Patch made from a previous version of sage

2013-01-15 Thread Kannappan Sampath
Hello friends,

I have the following question: The patch here:

http://trac.sagemath.org/sage_trac/ticket/10080

seems to come from a previous version of the file for which it proposes
some change. Now, apparently, I feel that some of the issues have been
resolved, by  a new revision to that file. (I looked at the way
documentation looks for this particular case...)

How is this situation usually handled?

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




Re: [sage-devel] Sage Notebook broken in my fresh installation

2012-12-17 Thread Kannappan Sampath
Oh, yeah! I don't have permission to that file (as knsam!):

-rwx-- 1 root root 18931 Dec 13 18:09
/home/knsam/.sage/sage_notebook.sagenb/home/admin/history.pickle

But, how do I fix this, chmod?

On Tue, Dec 18, 2012 at 1:58 AM, David Roe roed.m...@gmail.com wrote:

 ls -l /home/knsam/.sage/sage_notebook.sagenb/home/admin/history.pickle


-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




Re: [sage-devel] Sage Notebook broken in my fresh installation

2012-12-17 Thread Kannappan Sampath
Done! But, I think the installation procedure must take care of this but I
cannot be sure whether every one feels that way.


On Tue, Dec 18, 2012 at 8:59 AM, David Roe roed.m...@gmail.com wrote:

 Yeah.  You should chmod or chown the whole .sage directory.
 David


 On Mon, Dec 17, 2012 at 10:27 PM, Kannappan Sampath kntri...@gmail.comwrote:

 Oh, yeah! I don't have permission to that file (as knsam!):

 -rwx-- 1 root root 18931 Dec 13 18:09
 /home/knsam/.sage/sage_notebook.sagenb/home/admin/history.pickle

 But, how do I fix this, chmod?

 On Tue, Dec 18, 2012 at 1:58 AM, David Roe roed.m...@gmail.com wrote:

 ls -l /home/knsam/.sage/sage_notebook.sagenb/home/admin/history.pickle


  --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To post to this group, send email to sage-devel@googlegroups.com.
 To unsubscribe from this group, send email to
 sage-devel+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel?hl=en.




  --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To post to this group, send email to sage-devel@googlegroups.com.
 To unsubscribe from this group, send email to
 sage-devel+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




[sage-devel] Who renders TeX?

2012-12-15 Thread Kannappan Sampath
Hello everybody!
This manpage
http://www.sagemath.org/doc/prep/Intro-Tutorial.html#annotating-with-sagementions
that jsMath is rendering TeX but now we have replaced it with
MathJaX. Haven't we?

Regards,
~KnS

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




[sage-devel] 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 k.phil...@gmail.comwrote:

 Hi,

 I just wanted to make you aware of a typo in the documentation of free
 modules [1]. The description of the function echelon_coordinate_vector of
 sage.modules.free_module.FreeModule_submodule_with_basis_pid says: Write v
 in terms of the user basis for self. while it should correctly read:
 Write v in terms of the echelonized basis for self.

 [1] http://sagemath.org/doc/reference/sage/modules/free_module.html

 Regards,
 Philipp

 --
 You received this message because you are subscribed to the Google Groups
 sage-support group.
 To post to this group, send email to sage-supp...@googlegroups.com.
 To unsubscribe from this group, send email to
 sage-support+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-support?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




Re: [sage-devel] Re: Normalization of a vector

2012-11-30 Thread Kannappan Sampath
Here's a natural place where I can see this is helpful:

To carry out, Gauss-Jordan like row reductions, where you'd like the first
non-zero entry in a row (the so-called pivot) to be 1, I think this is very
helpful.

So, I'd be **for** keeping this, perhaps in a different name, that would
reflect this. Like `reduce(v)` or perhaps, `echelonize(v)` for instance.

Regards,
~KnS


On Sat, Dec 1, 2012 at 3:06 AM, Eviatar eviatarb...@gmail.com wrote:

 Hello,

 I was planning to work on the patch for this; however, is normal form
 known terminology for dividing a vector by the leading entry? A Google
 search returns no such use. Wouldn't it be better for it to be named
 something like divided_by_leading, to remove ambiguity and potential
 confusion?

 On Wednesday, 19 September 2012 11:55:24 UTC-7, Chris wrote:

 It was pointed out to me that vector normalization in Sage is not doing
 what most people would think it should do. Rather than divide by the norm
 of the vector, right now the implementation is to divide the vector by the
 first non-zero part. This was pointed out to me by someone who teaches
 undergrads and found it frustrating that Sage was not doing the standard
 normalization. I think it needs to be changed.

 Anyways, I have opened a trac ticket, take a look:

 http://trac.sagemath.org/sage_**trac/ticket/13393http://trac.sagemath.org/sage_trac/ticket/13393.


 It was suggested that this come to a vote. I vote that it be changed.
 Opinions anyone?

  --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To post to this group, send email to sage-devel@googlegroups.com.
 To unsubscribe from this group, send email to
 sage-devel+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




Re: [sage-devel] Re: Normalization of a vector

2012-11-30 Thread Kannappan Sampath
Perhaps, I should explain my rationale for the terms I chose, my first
preference is `echelonize(v)`  (although I wrote it second) because, what
the function returns amounts to its reduced row echelon form, if you think
of it as 1 x n matrix.

~KnS.


On Sat, Dec 1, 2012 at 3:47 AM, Keshav Kini keshav.k...@gmail.com wrote:

 Kannappan Sampath kntri...@gmail.com writes:
  Here's a natural place where I can see this is helpful:
 
  To carry out, Gauss-Jordan like row reductions, where you'd like the
  first non-zero entry in a row (the so-called pivot) to be 1, I think
  this is very helpful.
 
  So, I'd be **for** keeping this, perhaps in a different name, that
  would reflect this. Like `reduce(v)` or perhaps, `echelonize(v)` for
  instance.

 I vote for monicize() ;)

 -Keshav

 --
 You received this message because you are subscribed to the Google Groups
 sage-devel group.
 To post to this group, send email to sage-devel@googlegroups.com.
 To unsubscribe from this group, send email to
 sage-devel+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-devel?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




[sage-devel] How do you remove attachments that become irrelevant at some point from a trac ticket?

2012-11-29 Thread Kannappan Sampath
Hello,
I wanted to ask the mailing list if there is a way to remove attachments
that become irrelevant, either due to a completely new patch or a patch
that coalesces all the patches into one, from  a trac ticket?

Thank you,

~KnS

-- 
You received this message because you are subscribed to the Google Groups 
sage-devel group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.