[sage-devel] element in quotient module

2017-04-24 Thread Peng

I encountered the following problem:
s is the trivial submodule of quo, where quo is a quotient module of 
modular symbol subspace.  
The zero element b of quo should be an element of s, but sage says no when 
I do the following process:

# create modular symbol subspace
sage: S = ModularSymbols(Gamma1(13),2).cuspidal_subspace()

# create the quotient module
sage: ker = S.module().subspace([0])
sage: quo=S.module()/ker

# now we have the submodule of quo
sage: s = quo.submodule([])

# we get zero of quo in the following way
sage: a = (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
sage: aa=S.module()(a)
sage: b=quo(aa)

sage: b in s
it gives FALSE


Anybody has any idea where I am wrong? Thank you!

-- 
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: ulimit issues and IPython 5.0

2017-04-24 Thread Enrique Artal
Not sure either, but I changed the file. Anyway, probably the issue had to 
do with the number of open files. I added the following lines in 
limits.conf:
root soft nofile 655360 
sage soft nofile 655360 
root hard nofile 655360 
sage hard nofile 655360

(sage is the user owning sage notebooks). After a reboot the 7.6 notebooks 
work OK.


El jueves, 20 de abril de 2017, 17:33:36 (UTC+2), Samuel Lelievre escribió:
>
> Not sure if this is related, but one thing that goes wrong with
> the upgrade to IPython 5.0 is that multiline output gets an
> extraneous blank line, for example instead of
>
> sage: identity_matrix(2)
> [1 0]
> [0 1]
>
> we get
>
> sage: identity_matrix(2)
>
> [1 0]
> [0 1]
>
> This is solved in IPython 5.3 but Sage has not upgraded to
> that version yet. You can fix this on your installation by editing
> the "prompts.py" file located at (from your SAGE_ROOT):
>
> local/lib/python/site-packages/IPython/terminal/prompts.py
>
> and replacing the definition of the RichPromptDisplayHook class
> by the version at
>
>
> https://github.com/takluyver/ipython/blob/83d273e24b28b9c06f0fa4f5bf90581db7c29be8/IPython/terminal/prompts.py
>
> ie
>
> #
> class RichPromptDisplayHook(DisplayHook):
> """Subclass of base display hook using coloured prompt"""
> def write_output_prompt(self):
> sys.stdout.write(self.shell.separate_out)
> # If we're not displaying a prompt, it effectively ends with a 
> newline,
> # because the output will be left-aligned.
> self.prompt_end_newline = True
>
> if self.do_full_cache:
> tokens = self.shell.prompts.out_prompt_tokens()
> prompt_txt = ''.join(s for t, s in tokens)
> if prompt_txt and not prompt_txt.endswith('\n'):
> # Ask for a newline before multiline output
> self.prompt_end_newline = False
>
> if self.shell.pt_cli:
> self.shell.pt_cli.print_tokens(tokens)
> else:
> sys.stdout.write(prompt_txt)
> #
>
> In case this extra blank line is interpreted somehow
> as something returning None, this might explain why
> you get the error message you quote:
>
> TypeError: 'NoneType' object is not iterable
>
> Just a wild guess, maybe worth a try...
>

-- 
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] document Paley construction & special matrices

2017-04-24 Thread mforets
There's an (old) ticket with code for special matrices that could be merged 
soon, if someone who knows about *Paley matrices* can continue with the doc 
+ some example ! 

See:

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

for further info.

I've added the special matrices file (special.py) to the html reference 
manual.

It could be an opportunity if you need to add other famous or commonly used 
matrix templates. Wikipedia has this list:

https://en.wikipedia.org/wiki/List_of_matrices

-- 
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: Sage 7.5 for Windows?

2017-04-24 Thread aishen
Thanks for your installer, I rarely works on w10 but recently I wanted to 
show sage to a friend who has only windows.
I am installing it on my wife's pc, I wonder if jupyter can be used at the 
moment ?
Trying it 
Regards
Henri

Le vendredi 17 mars 2017 10:49:14 UTC+1, Eric Gourgoulhon a écrit :
>
> Hi,
>
> On ask.sagemath.org, users keep asking for Sage 7.5 for Windows:
> https://ask.sagemath.org/question/36964/version-751-for-windows/
>
> https://ask.sagemath.org/question/36601/where-can-i-find-a-windows-binary-for-sage-75-or-751/
> Indeed, the latest ova file on the servers is 7.4. 
> I understand that a Windows installer is under preparation. Is this the 
> reason why no ova file is available for 7.5?
> What could be answered to these users?
> Thanks for your help. 
>
> Eric. 
>

-- 
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: Improvements to the 'Structures in Coding Theory' thematic tutorial

2017-04-24 Thread markioppolo


> I do agree with Simon and you, this should be fixed. You can of course 
> open a ticket for this!
> Cc me on your trac ticket (my ID is dlucas) and I will review your changes.
>

Great! I've made the necessary changes. Once I get my trac account set up 
properly I'll submit them.

Thank you both for your advice.

Mark. 

-- 
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: Improvements to the 'Structures in Coding Theory' thematic tutorial

2017-04-24 Thread David Lucas
Hello,

I completely overlooked that when I wrote this tutorial...

They problems are small but since the tutorial is aimed at people who may 
> be learning to dig around in the source code for the first time, I think 
> they are worth looking at. Please let me know if I should open a ticket and 
> fix the following problems.
>

I do agree with Simon and you, this should be fixed. You can of course open 
a ticket for this!
Cc me on your trac ticket (my ID is dlucas) and I will review your changes.

Glad to hear that some people are using this tutorial.
If you find any other issues, please let me know :)

Best,

David

 

>

-- 
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: Failed transition from 8.0.beta2 to 8.0.beta3

2017-04-24 Thread Travis Scrimshaw
See https://groups.google.com/forum/#!topic/sage-release/-r5nNIcmVgQ.

Best,
Travis

-- 
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] Failed transition from 8.0.beta2 to 8.0.beta3

2017-04-24 Thread Thierry Dumont
Hi,

Compilation fails on lcalc-1.23.p14.
(Ubuntu 17-04, x86-64).

This is during linking (got a lot of undefined references):



lib -Wl,-rpath,/usr/local/sage-develop/sage/local/lib
-L/usr/local/sage-develop/sage/local/lib -lpari -lgmp
-L/usr/local/sage-develop/sage/local/lib -lpari -lgmp Lglobals.o
Lgamma.o Lriemannsiegel.o Lriemannsiegel_blfi.o Ldokchitser.o
Lcommandline_globals.o Lcommandline_misc.o Lcommandline_numbertheory.o
Lcommandline_values_zeros.o Lcommandline_elliptic.o Lcommandline_twist.o
Lcommandline.o cmdline.o -o lcalc
Lcommandline_elliptic.o: In function `cxcompotor.constprop.61':
Lcommandline_elliptic.cc:(.text+0x47): undefined reference to `pari_err'
Lcommandline_elliptic.cc:(.text+0x63): undefined reference to `avma'
Lcommandline_elliptic.cc:(.text+0x6a): undefined reference to
`pari_mainstack'
Lcommandline_elliptic.cc:(.text+0xa6): undefined reference to `affir'
Lcommandline_elliptic.cc:(.text+0xb3): undefined reference to `avma'
Lcommandline_elliptic.cc:(.text+0xba): undefined reference to
`pari_mainstack'
Lcommandline_elliptic.cc:(.text+0x102): undefined reference to `affir'
Lcommandline_elliptic.cc:(.text+0x121): undefined reference to
`pari_mainstack'
Lcommandline_elliptic.cc:(.text+0x148): undefined reference to
`new_chunk_resize'

Lcommandline_elliptic.cc:(.text+0x11b3): undefined reference to
`pari_mainstack'
Lcommandline_elliptic.cc:(.text+0x11ca): undefined reference to
`new_chunk_resize'
Lcommandline_elliptic.cc:(.text+0x1204): undefined reference to `pari_err'
Lcommandline_elliptic.cc:(.text+0x124c): undefined reference to
`new_chunk_resize'
Lcommandline.o: In function `main':
Lcommandline.cc:(.text.startup+0x13ea): undefined reference to
`paristack_setsize'
Lcommandline.cc:(.text.startup+0x14b6): undefined reference to `pari_init'
collect2: error: ld returned 1 exit status
Makefile:162: recipe for target 'lcalc' failed


t.d.

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