Re: [sage-devel] ReST References in Sphinx and uniqueness

2016-09-06 Thread Nicolas M. Thiery
On Mon, Sep 05, 2016 at 05:39:35PM +0200, Jeroen Demeyer wrote:
> General comment to all people complaining about Sphinx: reviewing existing
> Sphinx-related tickets such as #20577 will show that you actually care and
> will encourage other Sage developers to continue working on Sphinx.

See also the notes about the work that was done at Sage Days 77 with a
Sphinx dev, in particular about analyzing performance issues, and how
to tackle them, in particular using Sphinx's native parallel build
features:

https://www.lri.fr/etherpad/p/sage-days77-documentation

Well, right now the above link is down, but I assume it will be back
soon). We really need to move this material back to the wiki!

Cheers,
Nicolas
--
Nicolas M. Thiéry "Isil" 
http://Nicolas.Thiery.name/

-- 
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] Re: Project: LatticeWithIsometry

2016-09-06 Thread Sébastien Labbé

On Tuesday, September 6, 2016 at 11:20:55 AM UTC+2, Simon Brandhorst wrote:
>
> Dear all,
>

Dear Simon,
 

>
> I have written some code (toy implementation) in sage. It could be useful 
> for other people as well.
>

That is nice! I am sure it could be useful to other.
 

> So now I am wondering whether I should make an effort to implement it 
> meeting the sage-devel standards.
>

Of course you should. The main reason being that your research will benefit 
from having doctested and documented code: you will trust your code.
 

> How good are the chances for such a project to be included in the sage 
> source code?
>
 
I have seen so many times modules trying to get into Sage with difficulty 
for bad and also for good reasons. Good reasons being that for a module to 
get into Sage, it needs to be mature (changing its interface requires 
deprecation warnings after it gets into sage...)

What I would strongly suggest you to do is to create your own pip 
installable package and share its existence to sage-devel. This will make 
it easy for people to try your code, easy for you to change its interface 
if you want, including backward incompatible changes...

The question of merging the code into sage will come by itself later once 
your code and its interface becomes stable, once your code meets the 
sage-devel standards (if it happens that you have time to do so: the best 
thing being to write code directly meeting the sage standards that being 
said) and more importantly once the community has decided that your code 
must live longer than yourself working on this project.

Cheers!

Sébastien Labbé

-- 
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] Plotting cot() fails in Sage 7.2 and 7.3

2016-09-06 Thread Paul Masson
A simple plot of the cotangent function has been failing since version 7.2. 
I opened a Trac ticket for this a week ago:

https://trac.sagemath.org/ticket/21365

The plotting method reports that it is unable to convert a complex to float 
for this function, even though the functional values look real in both Sage 
and Pynac. Any help in uncovering the source of this error would be greatly 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Suggestion for main configure script to give package names for Latex.

2016-09-06 Thread Thierry
On Tue, Sep 06, 2016 at 09:22:55AM -0700, Samuel Lelievre wrote:
[...]
> Dave's other suggestions would deserve a ticket...
> I guess they could be summed up as follows:
> 
> - Warn about the need to install or update g++
>   (so its version matches the installed version of c++).
>   I think this is a frequent cause for install problem requests
>   on sage-support and Ask Sage.
> 
> - Be more helpful about how to install LaTeX when it is not present,
>   e.g. by suggesting installing "TeX Live" and pointing the user to
>   https://www.tug.org/texlive/
> 
>   Maybe add specific hints for the most popular Linux distributions, e.g.
>   - on Debian: # apt-get install texlive-full

Note that this is already written in the beforementioned page, see
http://doc.sagemath.org/html/en/installation/source.html#linux-prerequisite-installation
for the first point and
http://doc.sagemath.org/html/en/installation/source.html#additional-software
for the second

Perhaps the page is not well organized enough, but the information is
there.

texlive-full is definitely overkill (and very huge), you will get all kind
of stuff (music, biology,...), while texlive seems enough to the few
show() formula renderings.

Ciao,
Thierry


> I'll let a Linux user open the ticket.
> 
> -- 
> 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] Re: ReST References in Sphinx and uniqueness

2016-09-06 Thread Sébastien Labbé


On Monday, September 5, 2016 at 11:46:22 AM UTC+2, Johan S. R. Nielsen 
wrote:
>
> I just ran into a doc issue that has been bothering me for years: global 
> uniqueness of reference labels in Sphinx. 
>

Use two underscore instead of just one.

...at least, it works for links, I don't know for ref and citations. For 
example__ example__

__ http://firsturl.com
__ http://secondurl.com

should not give a warning because "example" is used twice.


-- 
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] Re: Suggestion for main configure script to give package names for Latex.

2016-09-06 Thread Simon King
Hi Dima,

On 2016-09-06, Dima Pasechnik  wrote:
> the whole world has basically gone to git nowadays, not only Sage.
> Besides it's not so different from hg.

IMHO, git and hg are "not so different" in the same way as PyObject*
and object are "not so different": They feel totally different (at
least to me), even though from a technical point of view they are
the same.

And the change from hg to git initially had a clear negative effect on
my productivity. Hence, I can understand David's reluctance, even though
I wouldn't like to return to hg (most of the time, at least).

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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Suggestion for main configure script to give package names for Latex.

2016-09-06 Thread William Stein
On Tue, Sep 6, 2016 at 10:25 AM, Dr. David Kirkby (Kirkby Microwave Ltd) <
drkir...@kirkbymicrowave.co.uk> wrote:

>
>
> On Tuesday, 6 September 2016, Dima Pasechnik  wrote:
>
>> Hi David,
>>
>> On Tuesday, September 6, 2016 at 9:08:25 AM UTC, Dr. David Kirkby (Kirkby
>> Microwave Ltd) wrote:
>>>
>>> I'm trying to migrate away from Solaris to Linux, given the takeover by
>>> Oracle. I decided to install the latest Debian (8.5 == Jessie) , and Sage.
>>> I have not succeeded yet, but some of the issues seem to be ones where the
>>> installation could be made easier for popular linux distributions.
>>>
>>>
>> with your Unix knowledge you'd feel Debian is a jail of sorts; I'd
>> recommend Arch.
>>
>
> You are possibly right about Debian. What I like about Solaris was it was
> very stable (My dated hardware is not so stable, with puzzling hardware
> errors.)
>
> I get the impression that Arch is very regularly updated, which doesn't
> fit with my philosophy. (I regularly used to argue for Sage releases with
> only bug fixes, but my views on that were a tiny minority.)
>
> But I must admit I not exactly over impressed with Debian as a desktop
> operating system. I might try another distribution or two.
>

You might like Ubuntu LTS releases.  The "LTS" implies some stability, and
a benefit of Ubuntu is that it is (relatively) popular, so easier to find
answers about when you search on Google.


>
>  
>>
>>> First configure would not run, with some  crpytic message about some
>>> library not being sane. A Google found i needed to install g++.
>>>
>>> Next I got a warnings that Latex is not present. I know this is not so
>>> important, but I thought I'd install a Debian package for latex.
>>> Unfortunately a search on Latex brings up many tens (perhaps >100)
>>> packages. It is far from clear what package(s) is necessary.
>>>
>>
>> texlive-full with install most everything in one go. It's an overkill,
>> but unless you're really short on disk space it's OK.
>>
>>
>>
>>>
>>> It might be worth the configure script reporting how to install Latex
>>> and perhaps other missing bits. Something like
>>>
>>> ===
>>> You can get the Latex source from http://www.where-latex-is.org
>>>
>>>
>>> On Debian execute: # apt-get install  $whatever_package
>>> On Suse # $whatever_command_installs_latex
>>> On Mint  # $whatever_command_installs_latex
>>> 
>>>
>>> do this for the 5-10 most popular distributions, based on distrowatch
>>> https://distrowatch.com/ or similar.
>>>
>>> I worked out how to use Mercurial when Sage used that, now I note it has
>>> gone to git, I really don't have enough time to learn something else.
>>>
>>
>> the whole world has basically gone to git nowadays, not only Sage.
>> Besides it's not so different from hg.
>>
>> Cheers,
>> Dima
>>
>>
>>
>>>
>>> PS, I found this page
>>> https://wiki.sagemath.org/devel/DebianSage
>>> last updated in 2009. Unless someone is willing to update it, I suggest
>>> it might be better removed.
>>>
>>> Dave
>>>
>>
>
> --
> Dr. David Kirkby Ph.D CEng MIET
> Kirkby Microwave Ltd
> Registered office: Stokes Hall Lodge, Burnham Rd, Althorne, Essex, CM3
> 6DT, UK.
> Registered in England and Wales, company number 08914892.
> http://www.kirkbymicrowave.co.uk/
> Tel: 07910 441670 / +44 7910 441670 (0900 to 2100 GMT only please)
>
> --
> 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.
>



-- 
William (http://wstein.org)

-- 
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] Re: Suggestion for main configure script to give package names for Latex.

2016-09-06 Thread Dr. David Kirkby (Kirkby Microwave Ltd)
On Tuesday, 6 September 2016, Dima Pasechnik  wrote:

> Hi David,
>
> On Tuesday, September 6, 2016 at 9:08:25 AM UTC, Dr. David Kirkby (Kirkby
> Microwave Ltd) wrote:
>>
>> I'm trying to migrate away from Solaris to Linux, given the takeover by
>> Oracle. I decided to install the latest Debian (8.5 == Jessie) , and Sage.
>> I have not succeeded yet, but some of the issues seem to be ones where the
>> installation could be made easier for popular linux distributions.
>>
>>
> with your Unix knowledge you'd feel Debian is a jail of sorts; I'd
> recommend Arch.
>

You are possibly right about Debian. What I like about Solaris was it was
very stable (My dated hardware is not so stable, with puzzling hardware
errors.)

I get the impression that Arch is very regularly updated, which doesn't fit
with my philosophy. (I regularly used to argue for Sage releases with only
bug fixes, but my views on that were a tiny minority.)

But I must admit I not exactly over impressed with Debian as a desktop
operating system. I might try another distribution or two.

 
>
>> First configure would not run, with some  crpytic message about some
>> library not being sane. A Google found i needed to install g++.
>>
>> Next I got a warnings that Latex is not present. I know this is not so
>> important, but I thought I'd install a Debian package for latex.
>> Unfortunately a search on Latex brings up many tens (perhaps >100)
>> packages. It is far from clear what package(s) is necessary.
>>
>
> texlive-full with install most everything in one go. It's an overkill, but
> unless you're really short on disk space it's OK.
>
>
>
>>
>> It might be worth the configure script reporting how to install Latex and
>> perhaps other missing bits. Something like
>>
>> ===
>> You can get the Latex source from http://www.where-latex-is.org
>>
>>
>> On Debian execute: # apt-get install  $whatever_package
>> On Suse # $whatever_command_installs_latex
>> On Mint  # $whatever_command_installs_latex
>> 
>>
>> do this for the 5-10 most popular distributions, based on distrowatch
>> https://distrowatch.com/ or similar.
>>
>> I worked out how to use Mercurial when Sage used that, now I note it has
>> gone to git, I really don't have enough time to learn something else.
>>
>
> the whole world has basically gone to git nowadays, not only Sage.
> Besides it's not so different from hg.
>
> Cheers,
> Dima
>
>
>
>>
>> PS, I found this page
>> https://wiki.sagemath.org/devel/DebianSage
>> last updated in 2009. Unless someone is willing to update it, I suggest
>> it might be better removed.
>>
>> Dave
>>
>

-- 
Dr. David Kirkby Ph.D CEng MIET
Kirkby Microwave Ltd
Registered office: Stokes Hall Lodge, Burnham Rd, Althorne, Essex, CM3 6DT,
UK.
Registered in England and Wales, company number 08914892.
http://www.kirkbymicrowave.co.uk/
Tel: 07910 441670 / +44 7910 441670 (0900 to 2100 GMT only please)

-- 
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] ReST References in Sphinx and uniqueness

2016-09-06 Thread Samuel Lelievre


2016-09-06 17:39:38 UTC+2, Jeroen Demeyer:
>
> General comment to all people complaining about Sphinx: reviewing 
> existing Sphinx-related tickets such as #20577 will show that you 
> actually care and will encourage other Sage developers to continue 
> working on Sphinx. 
>

For instance
https://trac.sagemath.org/query?order=status=1=~sphinx=~sphinx

or for a more exhaustive list
https://trac.sagemath.org/query?order=status=1=~sphinx=~sphinx=~sphinx

-- 
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] Re: Suggestion for main configure script to give package names for Latex.

2016-09-06 Thread Samuel Lelievre


2016-09-06 18:02:33 UTC+2, leif:
>
> Samuel Lelievre wrote: 
>
> > 2016-09-06 11:08:25 UTC+2, Dr. David Kirkby (Kirkby Microwave Ltd): 
> >   
> > 
> > PS, I found this page 
> > https://wiki.sagemath.org/devel/DebianSage 
> >  
> > last updated in 2009. Unless someone is willing to update it, I 
> > suggest it might be better removed. 
> > 
> > 
> > Thanks for this suggestion. I updated the page. 
>
> Positive review. ;-) 
>
> -leif 
>

Thanks!

Dave's other suggestions would deserve a ticket...
I guess they could be summed up as follows:

- Warn about the need to install or update g++
  (so its version matches the installed version of c++).
  I think this is a frequent cause for install problem requests
  on sage-support and Ask Sage.

- Be more helpful about how to install LaTeX when it is not present,
  e.g. by suggesting installing "TeX Live" and pointing the user to
  https://www.tug.org/texlive/

  Maybe add specific hints for the most popular Linux distributions, e.g.
  - on Debian: # apt-get install texlive-full

I'll let a Linux user open the ticket.

-- 
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] Re: bernoulli(250408) incorrect

2016-09-06 Thread Samuel Lelievre


2016-09-06 17:37:20 UTC+2, Alexander Weisse:
>
>
> Dear Sage developers, 
>
> the current version 2.5.2 of the flint library doesn't use enough 
> floating point precision in _arith_bernoulli_number_zeta(). This causes 
> bernoulli(250408) to be incorrect. 
>
> Since Sage uses flint as the default algorithm for n<=30 the error 
> affects Sage and can be observed, e.g., by comparing 
> bernoulli(250408,'flint') and bernoulli(250408,'bernmm'). 
>
> The bug is fixed in a development branch of flint, see this issue: 
> https://github.com/wbhart/flint2/issues/288 
>
> Best, 
>
> Alex 
>

Note: this is tracked on the Sage side at #21439:
https://trac.sagemath.org/ticket/21439 

-- 
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] Re: Suggestion for main configure script to give package names for Latex.

2016-09-06 Thread leif
Samuel Lelievre wrote:
> 
> 
> 2016-09-06 11:08:25 UTC+2, Dr. David Kirkby (Kirkby Microwave Ltd):
>  
> 
> PS, I found this page
> https://wiki.sagemath.org/devel/DebianSage
> 
> last updated in 2009. Unless someone is willing to update it, I
> suggest it might be better removed.
> 
> 
> Thanks for this suggestion. I updated the page.

Positive review. ;-)


-leif


-- 
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] bernoulli(250408) incorrect

2016-09-06 Thread Alexander Weisse

Dear Sage developers,

the current version 2.5.2 of the flint library doesn't use enough
floating point precision in _arith_bernoulli_number_zeta(). This causes
bernoulli(250408) to be incorrect. 

Since Sage uses flint as the default algorithm for n<=30 the error
affects Sage and can be observed, e.g., by comparing
bernoulli(250408,'flint') and bernoulli(250408,'bernmm').

The bug is fixed in a development branch of flint, see this issue:
https://github.com/wbhart/flint2/issues/288

Best,

Alex

-- 
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] Re: Suggestion for main configure script to give package names for Latex.

2016-09-06 Thread Samuel Lelievre


2016-09-06 11:08:25 UTC+2, Dr. David Kirkby (Kirkby Microwave Ltd):
 

> PS, I found this page
> https://wiki.sagemath.org/devel/DebianSage
> last updated in 2009. Unless someone is willing to update it, I suggest it 
> might be better removed. 
>

Thanks for this suggestion. I updated the page.

-- 
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] Re: Suggestion for main configure script to give package names for Latex.

2016-09-06 Thread leif
Dima Pasechnik wrote:
> Hi David,
> 
> On Tuesday, September 6, 2016 at 9:08:25 AM UTC, Dr. David Kirkby
> (Kirkby Microwave Ltd) wrote:
> 
> I'm trying to migrate away from Solaris to Linux, given the takeover
> by Oracle. I decided to install the latest Debian (8.5 == Jessie) ,
> and Sage. I have not succeeded yet, but some of the issues seem to
> be ones where the installation could be made easier for popular
> linux distributions.
> 
> 
> with your Unix knowledge you'd feel Debian is a jail of sorts; I'd
> recommend Arch.

https://www.archlinux.org/

And as a proper desktop environment, MATE (continuation of GNOME 2;
GNOME 3.x is broken and totally unusable for people like us... ;-) ):

http://mate-desktop.org/

(FWIW, there's e.g. also Ubuntu MATE:  https://ubuntu-mate.org/ )


-leif


> First configure would not run, with some  crpytic message about some
> library not being sane. A Google found i needed to install g++.
> 
> Next I got a warnings that Latex is not present. I know this is not
> so important, but I thought I'd install a Debian package for latex.
> Unfortunately a search on Latex brings up many tens (perhaps >100)
> packages. It is far from clear what package(s) is necessary.
> 
> 
> texlive-full with install most everything in one go. It's an overkill,
> but unless you're really short on disk space it's OK.
> 
>  
> 
> 
> It might be worth the configure script reporting how to install
> Latex and perhaps other missing bits. Something like
> 
> ===
> You can get the Latex source from http://www.where-latex-is.org
> 
> 
> On Debian execute: # apt-get install  $whatever_package
> On Suse # $whatever_command_installs_latex
> On Mint  # $whatever_command_installs_latex
> 
> 
> do this for the 5-10 most popular distributions, based on
> distrowatch https://distrowatch.com/ or similar. 
> 
> I worked out how to use Mercurial when Sage used that, now I note it
> has gone to git, I really don't have enough time to learn something
> else.
> 
> 
> the whole world has basically gone to git nowadays, not only Sage.
> Besides it's not so different from hg.
> 
> Cheers,
> Dima
> 
>  
> 
> 
> PS, I found this page
> https://wiki.sagemath.org/devel/DebianSage
> 
> last updated in 2009. Unless someone is willing to update it, I
> suggest it might be better removed.
> 
> Dave


-- 
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] Re: Error building package: sagelib-7.4.beta2

2016-09-06 Thread Simon Brandhorst


>
> 'pip' is a Sage standard package, hence ${SAGE_LOCAL}/bin/pip should be 
> there. 
>
> Presumably a (newly introduced) race condition / missing dependency in 
> the Makefile. 
>
> 'make pip && make' /may/ work; './sage -i pip && make' is more likely to 
> succeed I guess. 
>
> Thanks for reporting. 
>
> (Will indirectly get fixed by #21291 [1] as well, I think.) 
>
>
> -leif 
>
> [1] https://trac.sagemath.org/ticket/21291 
>
>
> Thank you. The fix worked. 

-- 
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] Re: Project: LatticeWithIsometry

2016-09-06 Thread Simon Brandhorst
O.K. It seems there is some functionality for positive definite lattices in 
https://trac.sagemath.org/ticket/15976 and it hides in the sage source :). 
However I could not find anything for Indefinite "lattices". 

On Tuesday, September 6, 2016 at 11:20:55 AM UTC+2, Simon Brandhorst wrote:
>
> Dear all,
>
> I have written some code (toy implementation) in sage. It could be useful 
> for other people as well.
> So now I am wondering whether I should make an effort to implement it 
> meeting the sage-devel standards.
> How good are the chances for such a project to be included in the sage 
> source code?
>
>
> So here is the project: LatticeWithIsometry
> where a lattice L is a free abelian group equipped with a non-degenerate 
> symmetric bilinear form (ZZ or QQ valued). An isometry f is a ZZ-Module 
> automorphism preserving the bilinear form. 
> So we want to model (L,f)
>
> Functionality:
> - constructor for ideal lattices - that is lattices (+isometries) cooked 
> up from irreducible reciprocal polynomials (think of the cyclotomic 
> polynomials) and their trace forms
> - gluing of lattices. That is taking a direct sum
> (L,f) + (N,g) and getting integral overlattices compatible with (f,g).
> - describing the action of the isometry on sub/super lattices such as the 
> dual lattice L' or quotients such as the discriminant group L'/L
> - a method to decide whether a given isometry of a hyperbolic lattice 
> preserves a chamber of the positive cone cut out by the root hyperplanes 
> (this relates to Weyl groups)
>
> A possible reference for this is:
> http://www.math.harvard.edu/~ctm/papers/home/text/papers/pos/pos.pdf
>
> My personal aim in this is to model integral hodge isometries of K3 
> surfaces or IHSMs.
>
>
> I also wonder how this would fit into the sage world. Should this inherit 
> from quadratic forms ? (feels wrong) or is there some lattice class out 
> there?
> Since I am new in sage, writing a whole lattice class seems to be too much 
> work for me (and well above my level of experience). 
>
> There seem to have been previous discussions about lattices e.g.
>
> Discussion in Sage devel:
>
>
> https://groups.google.com/forum/#!searchin/sage-devel/lattice|sort:relevance/sage-devel/OO0ADcuraqE/mUG5_UrYFD4J
> and
>
> https://groups.google.com/forum/#!searchin/sage-devel/lattice$20-poset|sort:relevance/sage-devel/KTmqIcav9e4/wWdiQ71PWVYJ
>
> There also seem to have been previous attempts for implementing lattices
> such as 
> https://trac.sagemath.org/ticket/11940
> https://trac.sagemath.org/ticket/15976
>
>
> What has happened to them?
>
> Or the rather incomplete FreeQuadraticModule
>
> http://doc.sagemath.org/html/en/reference/modules/sage/modules/free_quadratic_module.html
> which claims to have non trivial functionality over ZZ - I couldn't find 
> any. 
>
>
>
> 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.


[sage-devel] Re: Project: LatticeWithIsometry

2016-09-06 Thread Dima Pasechnik


On Tuesday, September 6, 2016 at 9:20:55 AM UTC, Simon Brandhorst wrote:
>
> Dear all,
>
> I have written some code (toy implementation) in sage. It could be useful 
> for other people as well.
> So now I am wondering whether I should make an effort to implement it 
> meeting the sage-devel standards.
> How good are the chances for such a project to be included in the sage 
> source code?
>
>
> So here is the project: LatticeWithIsometry
> where a lattice L is a free abelian group equipped with a non-degenerate 
> symmetric bilinear form (ZZ or QQ valued). An isometry f is a ZZ-Module 
> automorphism preserving the bilinear form. 
> So we want to model (L,f)
>
> Functionality:
> - constructor for ideal lattices - that is lattices (+isometries) cooked 
> up from irreducible reciprocal polynomials (think of the cyclotomic 
> polynomials) and their trace forms
> - gluing of lattices. That is taking a direct sum
> (L,f) + (N,g) and getting integral overlattices compatible with (f,g).
> - describing the action of the isometry on sub/super lattices such as the 
> dual lattice L' or quotients such as the discriminant group L'/L
> - a method to decide whether a given isometry of a hyperbolic lattice 
> preserves a chamber of the positive cone cut out by the root hyperplanes 
> (this relates to Weyl groups)
>
> A possible reference for this is:
> http://www.math.harvard.edu/~ctm/papers/home/text/papers/pos/pos.pdf
>
> My personal aim in this is to model integral hodge isometries of K3 
> surfaces or IHSMs.
>

Sounds like a lot of fun; my latest personal foray into this was doing some 
computations in 
http://arxiv.org/abs/1604.05836
(with Lemma 2.11 attributed to me :-))
and I'm still trying to understand whether I can publish anything 
meaningful out of it.

It would be interesting to what extent your package can do computations in 
that paper.

Just in case,
Dima
  

>
>
> I also wonder how this would fit into the sage world. Should this inherit 
> from quadratic forms ? (feels wrong) or is there some lattice class out 
> there?
> Since I am new in sage, writing a whole lattice class seems to be too much 
> work for me (and well above my level of experience). 
>
> There seem to have been previous discussions about lattices e.g.
>
> Discussion in Sage devel:
>
>
> https://groups.google.com/forum/#!searchin/sage-devel/lattice|sort:relevance/sage-devel/OO0ADcuraqE/mUG5_UrYFD4J
> and
>
> https://groups.google.com/forum/#!searchin/sage-devel/lattice$20-poset|sort:relevance/sage-devel/KTmqIcav9e4/wWdiQ71PWVYJ
>
> There also seem to have been previous attempts for implementing lattices
> such as 
> https://trac.sagemath.org/ticket/11940
> https://trac.sagemath.org/ticket/15976
>
>
> What has happened to them?
>
> Or the rather incomplete FreeQuadraticModule
>
> http://doc.sagemath.org/html/en/reference/modules/sage/modules/free_quadratic_module.html
> which claims to have non trivial functionality over ZZ - I couldn't find 
> any. 
>
>
>
> 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.


Re: [sage-devel] Re: ReST References in Sphinx and uniqueness

2016-09-06 Thread Dima Pasechnik


On Tuesday, September 6, 2016 at 5:59:19 AM UTC, Johan S. R. Nielsen wrote:
>
> > Regarding speed, there are two issues: 
> > 
> > 1. Building the documentation from scratch. I don't  know if we can 
> expect 
> > this to go any faster. The PDF version of the documentation is 3,474 
> pages 
> > long. No, wait, that's just the contribution from references/combinat: 
> the 
> > whole reference manual is 18,442 pages long. I can build this on my 
> machine 
> > in about 8 minutes, and this does not seem unreasonable. Am I wrong 
> about 
> > this? (It could be sped up a bit for parallel builds if the largest 
> pieces, 
> > e.g., reference/combinat, were broken into smaller pieces, but I don't 
> know 
> > how much speed increase we can hope for.) 
>
> OK, this is good to know. It takes considerably longer on my machine, so 
> there is something I'm really not doing right (possibly not having 
> parallel build enabled). I'll experiment with this. 
>

do you mean you don't do 

export MAKE="make -j4"
$MAKE
 
(here 4 is the number of cores; replace with the correct value for your 
setup; most modern desktops now have 8, I think)



> 8 minutes from a clean build is not impressive IMHO, but perhaps it's 
> then not the most important piece of the compilation process to improve. 
>

for 20,000 pages? Circa 40 pages per second  isn't too bad (for TeX, say).
 

>
> Best, 
> Johan 
>

-- 
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] Re: Suggestion for main configure script to give package names for Latex.

2016-09-06 Thread Dima Pasechnik
Hi David,

On Tuesday, September 6, 2016 at 9:08:25 AM UTC, Dr. David Kirkby (Kirkby 
Microwave Ltd) wrote:
>
> I'm trying to migrate away from Solaris to Linux, given the takeover by 
> Oracle. I decided to install the latest Debian (8.5 == Jessie) , and Sage. 
> I have not succeeded yet, but some of the issues seem to be ones where the 
> installation could be made easier for popular linux distributions. 
>
>
with your Unix knowledge you'd feel Debian is a jail of sorts; I'd 
recommend Arch.
 

> First configure would not run, with some  crpytic message about some 
> library not being sane. A Google found i needed to install g++. 
>
> Next I got a warnings that Latex is not present. I know this is not so 
> important, but I thought I'd install a Debian package for latex. 
> Unfortunately a search on Latex brings up many tens (perhaps >100) 
> packages. It is far from clear what package(s) is necessary. 
>

texlive-full with install most everything in one go. It's an overkill, but 
unless you're really short on disk space it's OK.

 

>
> It might be worth the configure script reporting how to install Latex and 
> perhaps other missing bits. Something like 
>
> ===
> You can get the Latex source from http://www.where-latex-is.org
>
>
> On Debian execute: # apt-get install  $whatever_package
> On Suse # $whatever_command_installs_latex
> On Mint  # $whatever_command_installs_latex
> 
>
> do this for the 5-10 most popular distributions, based on distrowatch 
> https://distrowatch.com/ or similar.  
>
> I worked out how to use Mercurial when Sage used that, now I note it has 
> gone to git, I really don't have enough time to learn something else. 
>

the whole world has basically gone to git nowadays, not only Sage.
Besides it's not so different from hg.

Cheers,
Dima

 

>
> PS, I found this page
> https://wiki.sagemath.org/devel/DebianSage
> last updated in 2009. Unless someone is willing to update it, I suggest it 
> might be better removed. 
>
> Dave 
>

-- 
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] Suggestion for main configure script to give package names for Latex.

2016-09-06 Thread Thierry
Hi,

did you have a look at this page ?

http://doc.sagemath.org/html/en/installation/source.html

There are indications for debian derivatives (e.g. Mint, Ubuntu) and
redhat derivatives, which should cover a large part of the 10 most popular
distros.

Ciao,
Thierry



On Tue, Sep 06, 2016 at 10:08:21AM +0100, Dr. David Kirkby (Kirkby Microwave 
Ltd) wrote:
> I'm trying to migrate away from Solaris to Linux, given the takeover by
> Oracle. I decided to install the latest Debian (8.5 == Jessie) , and Sage.
> I have not succeeded yet, but some of the issues seem to be ones where the
> installation could be made easier for popular linux distributions.
> 
> First configure would not run, with some  crpytic message about some
> library not being sane. A Google found i needed to install g++.
> 
> Next I got a warnings that Latex is not present. I know this is not so
> important, but I thought I'd install a Debian package for latex.
> Unfortunately a search on Latex brings up many tens (perhaps >100)
> packages. It is far from clear what package(s) is necessary.
> 
> It might be worth the configure script reporting how to install Latex and
> perhaps other missing bits. Something like
> 
> ===
> You can get the Latex source from http://www.where-latex-is.org
> 
> 
> On Debian execute: # apt-get install  $whatever_package
> On Suse # $whatever_command_installs_latex
> On Mint  # $whatever_command_installs_latex
> 
> 
> do this for the 5-10 most popular distributions, based on distrowatch
> https://distrowatch.com/ or similar.
> 
> I worked out how to use Mercurial when Sage used that, now I note it has
> gone to git, I really don't have enough time to learn something else.
> 
> PS, I found this page
> https://wiki.sagemath.org/devel/DebianSage
> last updated in 2009. Unless someone is willing to update it, I suggest it
> might be better removed.
> 
> Dave
> 
> -- 
> 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] Project: LatticeWithIsometry

2016-09-06 Thread Simon Brandhorst
Dear all,

I have written some code (toy implementation) in sage. It could be useful 
for other people as well.
So now I am wondering whether I should make an effort to implement it 
meeting the sage-devel standards.
How good are the chances for such a project to be included in the sage 
source code?


So here is the project: LatticeWithIsometry
where a lattice L is a free abelian group equipped with a non-degenerate 
symmetric bilinear form (ZZ or QQ valued). An isometry f is a ZZ-Module 
automorphism preserving the bilinear form. 
So we want to model (L,f)

Functionality:
- constructor for ideal lattices - that is lattices (+isometries) cooked up 
from irreducible reciprocal polynomials (think of the cyclotomic 
polynomials) and their trace forms
- gluing of lattices. That is taking a direct sum
(L,f) + (N,g) and getting integral overlattices compatible with (f,g).
- describing the action of the isometry on sub/super lattices such as the 
dual lattice L' or quotients such as the discriminant group L'/L
- a method to decide whether a given isometry of a hyperbolic lattice 
preserves a chamber of the positive cone cut out by the root hyperplanes 
(this relates to Weyl groups)

A possible reference for this is:
http://www.math.harvard.edu/~ctm/papers/home/text/papers/pos/pos.pdf

My personal aim in this is to model integral hodge isometries of K3 
surfaces or IHSMs.


I also wonder how this would fit into the sage world. Should this inherit 
from quadratic forms ? (feels wrong) or is there some lattice class out 
there?
Since I am new in sage, writing a whole lattice class seems to be too much 
work for me (and well above my level of experience). 

There seem to have been previous discussions about lattices e.g.

Discussion in Sage devel:

https://groups.google.com/forum/#!searchin/sage-devel/lattice|sort:relevance/sage-devel/OO0ADcuraqE/mUG5_UrYFD4J
and
https://groups.google.com/forum/#!searchin/sage-devel/lattice$20-poset|sort:relevance/sage-devel/KTmqIcav9e4/wWdiQ71PWVYJ

There also seem to have been previous attempts for implementing lattices
such as 
https://trac.sagemath.org/ticket/11940
https://trac.sagemath.org/ticket/15976


What has happened to them?

Or the rather incomplete FreeQuadraticModule
http://doc.sagemath.org/html/en/reference/modules/sage/modules/free_quadratic_module.html
which claims to have non trivial functionality over ZZ - I couldn't find 
any. 



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.


[sage-devel] Suggestion for main configure script to give package names for Latex.

2016-09-06 Thread Dr. David Kirkby (Kirkby Microwave Ltd)
I'm trying to migrate away from Solaris to Linux, given the takeover by
Oracle. I decided to install the latest Debian (8.5 == Jessie) , and Sage.
I have not succeeded yet, but some of the issues seem to be ones where the
installation could be made easier for popular linux distributions.

First configure would not run, with some  crpytic message about some
library not being sane. A Google found i needed to install g++.

Next I got a warnings that Latex is not present. I know this is not so
important, but I thought I'd install a Debian package for latex.
Unfortunately a search on Latex brings up many tens (perhaps >100)
packages. It is far from clear what package(s) is necessary.

It might be worth the configure script reporting how to install Latex and
perhaps other missing bits. Something like

===
You can get the Latex source from http://www.where-latex-is.org


On Debian execute: # apt-get install  $whatever_package
On Suse # $whatever_command_installs_latex
On Mint  # $whatever_command_installs_latex


do this for the 5-10 most popular distributions, based on distrowatch
https://distrowatch.com/ or similar.

I worked out how to use Mercurial when Sage used that, now I note it has
gone to git, I really don't have enough time to learn something else.

PS, I found this page
https://wiki.sagemath.org/devel/DebianSage
last updated in 2009. Unless someone is willing to update it, I suggest it
might be better removed.

Dave

-- 
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.