Re: [sage-devel] Faster way to load python code

2017-09-16 Thread Thierry
Hi Simon, could you please give us access to the file (or a sample of it), so that we understand how it looke like ? Ciao, Thierry On Sat, Sep 16, 2017 at 09:13:38AM +, Simon King wrote: > Hi! > > I have a large file (2.7*10^6 lines, 204.5*10^6 bytes) of code > that defines a python dict,

Re: [sage-devel] bug in cos ?!

2017-09-16 Thread David Joyner
On Sat, Sep 16, 2017 at 7:27 AM, Mickael Pechaud wrote: > Hello, > > I'm running SageMath 7.2, on a 64bits laptop with a Ubuntu 16.04.2 LTS > (xenial). I got a wrong answer from cos : > > sage: float(cos(14*pi/9)) > -0.17364817766693041 > FYI, cocalc.com returns

[sage-devel] Re: Faster way to load python code

2017-09-16 Thread Simon King
Hi John, On 2017-09-16, John Cremona wrote: > When I read in files containing a lot of data I don't format the files > to be python code but just data, then write a python function to parse > the input. I tried that, and it is of course no problem to iterate over the

[sage-devel] error building sage

2017-09-16 Thread shivam gor
The following package(s) may have failed to build (not necessarily during this run of 'make all'): * package: openblas-0.2.19.p0 log file: /home/shivam/sage/logs/pkgs/openblas-0.2.19.p0.log build directory: /home/shivam/sage/local/var/tmp/sage/build/openblas-0.2.19.p0 what should be done??

[sage-devel] Re: Faster way to load python code

2017-09-16 Thread Simon King
Hi Thierry, On 2017-09-16, Thierry wrote: > could you please give us access to the file (or a sample of it), so that > we understand how it looke like ? Here is my smallest example (in gap-readable format): basicalg:=rec( group := "A5", generators := [

Re: [sage-devel] bug in cos ?!

2017-09-16 Thread Mickael Pechaud
Hello, you might have missed the minus sign and the "it should be positive" in my post. Best regards, Mickaël On Saturday, September 16, 2017 at 1:33:47 PM UTC+2, David Joyner wrote: > > On Sat, Sep 16, 2017 at 7:27 AM, Mickael Pechaud > wrote: > > Hello, > >

[sage-devel] Re: Huma

2017-09-16 Thread Simon King
On 2017-09-16, Thierry wrote: > Do you have it in the Python/Sage format ? K = GF(8,'x') x = K.gen() D = { "group": "A5", "generators": [ "1a", "1b", "1a1b1", "1b1a1" ], "npims": 2, "pimnames": [ "1a", "1b" ], "cartan": [ [ 2, 1 ], [ 1, 2 ] ], "dim":

[sage-devel] error building sage

2017-09-16 Thread Maarten Derickx
Could you give a detailed explanation of the machine you tried to build it on. Including at least your operating system and version and type of prosecor? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop

[sage-devel] Huma

2017-09-16 Thread Thierry
Do you have it in the Python/Sage format ? On Sat, Sep 16, 2017 at 10:37:36AM +, Simon King wrote: > Hi Thierry, > > On 2017-09-16, Thierry wrote: > > could you please give us access to the file (or a sample of it), so that > > we understand how it looke

Re: [sage-devel] bug in cos ?!

2017-09-16 Thread John Cremona
You should upgrade to a more recent version: ┌┐ │ SageMath version 8.0, Release Date: 2017-07-21 │ │ Type "notebook()" for the browser-based notebook interface.│ │ Type "help()" for help.

Re: [sage-devel] bug in cos ?!

2017-09-16 Thread Mickael Pechaud
Thanks, I'll try that, and come back if I have still this issue with the 8.0. Still, big problem in the 7.2 ?! Or could it be related to other libraries ? Mickaël -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group

[sage-devel] Re: yet another sage-python performance puzzle

2017-09-16 Thread Simon King
Hi! On 2017-09-16, Nils Bruin wrote: > On Friday, September 15, 2017 at 2:28:06 PM UTC-7, Travis Scrimshaw wrote: >>> Why are you proposing local imports? If python puts a performance penalty >>> on them (in fact a significant performance penalty), they should be >>> avoided,

[sage-devel] error building sage

2017-09-16 Thread Maarten Derickx
Also did you install all the prerequisites for building sage in your system? The webpage http://doc.sagemath.org/html/en/installation/source.html Shows more detailed instructions how to build sage -- You received this message because you are subscribed to the Google Groups "sage-devel"

Re: [sage-devel] Faster way to load python code

2017-09-16 Thread John Cremona
When I read in files containing a lot of data I don't format the files to be python code but just data, then write a python function to parse the input. Mostly my data files are not so large as yours, but I have processed larger ones such as the ones at

[sage-devel] Re: Updating supported platform webpage to mach the current buildbots

2017-09-16 Thread Volker Braun
On Friday, September 15, 2017 at 7:45:48 PM UTC+2, Maarten Derickx wrote: > > > > On Friday, 15 September 2017 18:55:57 UTC+2, Volker Braun wrote: >> >> >> I haven't used it in a while as buildbot, it possibly still has the old >> domain name configured. But it basically never succeded in

[sage-devel] bug in cos ?!

2017-09-16 Thread Mickael Pechaud
Hello, I'm running SageMath 7.2, on a 64bits laptop with a Ubuntu 16.04.2 LTS (xenial). I got a wrong answer from cos : sage: float(cos(14*pi/9)) -0.17364817766693041 It should be positive - and it's inconsistent with the following lines : sage: float(cos(14*pi/9-2*pi))

[sage-devel] Faster way to load python code

2017-09-16 Thread Simon King
Hi! I have a large file (2.7*10^6 lines, 204.5*10^6 bytes) of code that defines a python dict, some dict values are matrices of dimension roughly 800x1200 over GF(8), some dict values are other dicts. Problem: When I try to load the file with sage.repl.load.load, my laptop very soon starts

Re: [sage-devel] Re: Huma

2017-09-16 Thread Thierry
How does raw "exec" behaves with your large file ? sage: with open('your_file.txt') as f: : exec(preparse(f.read())) Ciao, Thierry On Sat, Sep 16, 2017 at 12:01:57PM +, Simon King wrote: > On 2017-09-16, Thierry wrote: > > Do you have it in the

[sage-devel] Re: Huma

2017-09-16 Thread Nils Bruin
On Saturday, September 16, 2017 at 6:18:17 AM UTC-7, Simon King wrote: > > Hi Thierry, > > On 2017-09-16, Thierry wrote: > > How does raw "exec" behaves with your large file ? > > > > sage: with open('your_file.txt') as f: > > : exec(preparse(f.read()))

Re: [sage-devel] bug in cos ?!

2017-09-16 Thread Mickael Pechaud
Problem solved by upgrading, thanks. Mickaël -- 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

[sage-devel] Re: Huma

2017-09-16 Thread Simon King
Hi Thierry, On 2017-09-16, Thierry wrote: > How does raw "exec" behaves with your large file ? > > sage: with open('your_file.txt') as f: > : exec(preparse(f.read())) Time for my preparser that translates the gap readable into Python readable data is

Re: [sage-devel] bug in cos ?!

2017-09-16 Thread Bruno Le Floch
Hello, In fact, it seems that in Sage 7.2, cos((p/q)*pi) gets reduced mod pi instead of 2pi, at least in cases where it does not simplify to square roots: sage: [cos(pi*(i+13)/13) - cos(pi*i/13) for i in range(0,50) if i%13!=0] == [0]*46 True It would be good to know what fixed that bug.

[sage-devel] Re: error building sage

2017-09-16 Thread shivam gor
yes i have installed all prerequisites On Saturday, September 16, 2017 at 6:20:42 PM UTC+5:30, shivam gor wrote: > > description: Computer > width: 64 bits > capabilities: smp vsyscall32 > *-core >description: Motherboard >physical id: 0 > *-memory >

[sage-devel] Re: error building sage

2017-09-16 Thread shivam gor
description: Computer width: 64 bits capabilities: smp vsyscall32 *-core description: Motherboard physical id: 0 *-memory description: System memory physical id: 0 size: 7880MiB *-cpu product: Intel(R) Core(TM) i5-7200U CPU

[sage-devel] Re: error building sage

2017-09-16 Thread Samuel Lelievre
Sat 2017-09-16 12:51:27 UTC, shivam gor: > yes i have installed all prerequisites What operating system are you using? Probably a Linux distribution? Which one? What version? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from

Re: [sage-devel] Trouble while compiling sage---- compiling ends during plot3d

2017-09-16 Thread John H Palmieri
By the way, if the problem can be reduced to building the documentation (that is, if "make build" succeeds but "make" does not), another option would be to try "make doc-html-no-plot", or essentially equivalently do export SAGE_DOCBUILD_OPTS+=' --no-plot' make It is possible that the

[sage-devel] Re: error building sage

2017-09-16 Thread shivam gor
AttributeError: 'module' object has no attribute '__file__' Error building Sage. The following package(s) may have failed to build (not necessarily during this run of 'make all'): * documentation: dochtml log file: /home/shivam/sage/logs/pkgs/../dochtml.log what should be done now?? On

[sage-devel] Re: error building sage

2017-09-16 Thread shivam gor
previous problem got solved ,I searched it on github and found one command "make TARGET=HASWELL"and it worked,but now there is another problem above,so please give me solution for this. On Saturday, September 16, 2017 at 12:29:28 PM UTC+5:30, shivam gor wrote: > > > The following package(s) may

Re: [sage-devel] Re: error building sage

2017-09-16 Thread shivam gor
Ubuntu 17.04 On Sep 17, 2017 6:15 AM, "Samuel Lelievre" wrote: > Sat 2017-09-16 12:51:27 UTC, shivam gor: > > yes i have installed all prerequisites > > What operating system are you using? Probably a Linux distribution? > Which one? What version? > > -- > You received

Re: [sage-devel] Trouble while compiling sage---- compiling ends during plot3d

2017-09-16 Thread Samuel Lelievre
Miguel Angel, Let me try and summarize the discussion so far and some options. The failure: - error while running 'make' on a CentOS machine with 2 GB of RAM - occurred while building Sage's documentation, which is heavy on RAM - likely an out of memory error; not surprising with only 2 GB of

Re: [sage-devel] bug in cos ?!

2017-09-16 Thread Thierry
Hi, this might be related to: https://trac.sagemath.org/ticket/20752 https://trac.sagemath.org/ticket/20742 (and it is doctested). Ciao, Thierry On Sat, Sep 16, 2017 at 03:17:27PM -0400, Bruno Le Floch wrote: > Hello, > > In fact, it seems that in Sage 7.2, cos((p/q)*pi) gets reduced mod