Re: [sage-devel] Quotient ring over cyclotomic polynomial very slow

2014-04-28 Thread François Colas
Hi Martin, Here is two examples using multivariate quotients and extension fields which should be faster than computing CyclotomicField(m) or NumberField(cyclotomic(m), 'r') : m = 3*5*7 pi = prime_factors(m) Qi = PolynomialRing(QQ, len(pi), 'q') Idl = [cyclotomic_polynomial(p, 'q'+str(i)) for (

Re: [sage-devel] Re: ipython notebook in sage?

2014-04-28 Thread R. Andrew Ohana
On Mon, Apr 28, 2014 at 2:03 PM, Jean-Baptiste Priez wrote: > Hello, > > I would like to know what is the new line which is equivalent to > > %load_ext sage.misc.sage_extension >> > > with sage 6.2? > %load_ext sage should now work. > > The ticket #16050 (I think...) moved some code so... > >

[sage-devel] Re: ipython notebook in sage?

2014-04-28 Thread Jean-Baptiste Priez
Hello, I would like to know what is the new line which is equivalent to %load_ext sage.misc.sage_extension > with sage 6.2? The ticket #16050 (I think...) moved some code so... Cheers, Jean-Baptiste Priez -- You received this message because you are subscribed to the Google Groups "sag

Re: [sage-devel] Quotient ring over cyclotomic polynomial very slow

2014-04-28 Thread Martin Albrecht
I just tried to run: sage: m = random_prime(10^5) sage: K. = CyclotomicField(m) and I ran out of RAM! Doing a smaller example: sage: m = random_prime(10^4) sage: %prun K. = CyclotomicField(m) puts sage.rings.number_field.number_field_morphisms.create_embedding_from_approx as the most expensi

Re: [sage-devel] Re: doctest failure in sage-6.2.rc0

2014-04-28 Thread William Stein
On Mon, Apr 28, 2014 at 9:41 AM, Volker Braun wrote: > On Monday, April 28, 2014 5:38:39 PM UTC+1, William wrote: >> >> But then you have to convert to a different type first, e.g., >> list(sorted(x.items())), right? > > > Output is a json string. Oh, I see. Thanks for the clarification. > > >

Re: [sage-devel] Re: doctest failure in sage-6.2.rc0

2014-04-28 Thread Volker Braun
On Monday, April 28, 2014 5:38:39 PM UTC+1, William wrote: > > But then you have to convert to a different type first, e.g., > list(sorted(x.items())), right? > Output is a json string. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsub

Re: [sage-devel] Re: doctest failure in sage-6.2.rc0

2014-04-28 Thread William Stein
On Mon, Apr 28, 2014 at 9:36 AM, Volker Braun wrote: > On Monday, April 28, 2014 5:26:43 PM UTC+1, William wrote: >> >> is clearly broken -- you can't test dictionaries for equality textual. > > > you can if you sort the keys. But then you have to convert to a different type first, e.g., list(sor

[sage-devel] Re: doctest failure in sage-6.2.rc0

2014-04-28 Thread Volker Braun
On Monday, April 28, 2014 5:26:43 PM UTC+1, William wrote: > > is clearly broken -- you can't test dictionaries for equality textual. > you can if you sort the keys. You have simplejson installed which is not default, and it apparently uses a different sort order than json. -- You received th

[sage-devel] doctest failure in sage-6.2.rc0

2014-04-28 Thread William Stein
I was a bit surprised to see this doctest failure -- first pleasantly (?) surprised to see local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/notebook/misc.py getting mixed in with all the other tests, and second, the test itself is clearly broken -- you can't test dictionaries for

Re: [sage-devel] Re: Problem compiling sage 6.2.rc0-develop with macosx/mavericks

2014-04-28 Thread Volker Braun
Does your compile always fail in different places with different errors? Maybe its more relevant to look at the output of "diskutil info /" and/or install smartmontools... On Monday, April 28, 2014 4:02:39 PM UTC+1, Volker Braun wrote: > > ld: symbol dyld_stub_binding_helper not found, normall

Re: [sage-devel] Re: Problem compiling sage 6.2.rc0-develop with macosx/mavericks

2014-04-28 Thread Volker Braun
ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture x86_64 fatal error: libtool: internal link edit command failed sounds like your gcc install is hosed. Post the full log, not just the singular log. -- You received this message because you are

Re: [sage-devel] sagenb.org

2014-04-28 Thread kcrisman
>>> Hi > >>> > >>> Who takes care of sagenb.org nowadays? > >>> e.g. maintenance and security? > >> > >> Jason Grout took care of it for the last few years. He posted that he > >> will not be able to take care of it (and also > >> http://sagecell.sagemath.org/) recently, and asked for vol

Re: [sage-devel] Re: Problem compiling sage 6.2.rc0-develop with macosx/mavericks

2014-04-28 Thread Volker Braun
So it works. Your real error is elsewhere. Run "make distclean && make -j1" On Monday, April 28, 2014 2:55:53 PM UTC+1, Andrew wrote: > > On Monday, 28 April 2014 23:49:47 UTC+10, Volker Braun wrote: >> >> whats the output of "xcrun -v strip" >> > > xcrun: note: PATH = > '/Users/andrew/bin:/Libr

Re: [sage-devel] Re: a bug in NumberField().galois_group?

2014-04-28 Thread Dima Pasechnik
On Monday, 28 April 2014 10:41:20 UTC+1, John Cremona wrote: > > Let's think about what users actually want when they call for the Galois > Group of a (possibly non-Galois) number field K. First of all, they might > want to know whether or not K is Galois itself; > this is basically comparin

Re: [sage-devel] Re: Problem compiling sage 6.2.rc0-develop with macosx/mavericks

2014-04-28 Thread Andrew
On Monday, 28 April 2014 23:49:47 UTC+10, Volker Braun wrote: > > whats the output of "xcrun -v strip" > xcrun: note: PATH = '/Users/andrew/bin:/Library/Developer/CommandLineTools/usr/bin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/texbin:/usr/local/bin' xcrun: note: SDKROOT

Re: [sage-devel] Re: Problem compiling sage 6.2.rc0-develop with macosx/mavericks

2014-04-28 Thread Volker Braun
whats the output of "xcrun -v strip" On Monday, April 28, 2014 2:40:54 PM UTC+1, Andrew wrote: > > > > On Monday, 28 April 2014 22:20:28 UTC+10, Volker Braun wrote: >> >> On Monday, April 28, 2014 10:53:53 AM UTC+1, Andrew wrote: >>> >>> Here's another bizarre feature: >>> >>> 538-6.1.1-master-s

Re: [sage-devel] Re: Problem compiling sage 6.2.rc0-develop with macosx/mavericks

2014-04-28 Thread Andrew
On Monday, 28 April 2014 22:20:28 UTC+10, Volker Braun wrote: > > On Monday, April 28, 2014 10:53:53 AM UTC+1, Andrew wrote: >> >> Here's another bizarre feature: >> >> 538-6.1.1-master-sage: /Applications/Xcode.app/Contents/Developer/usr/bin >> /xcodebuild -sdk / -find strip 2> /dev/null >> /Ap

Re: [sage-devel] Re: patchbot runs failing apply

2014-04-28 Thread Ralf Stephan
Well if every release was tagged one could simply point sage -I to the URL of the tarball that is automagically created by github. On 28 Apr 2014 12:11, "Volker Braun" wrote: > Whats the recommended way for running the git version of the patchbot? > Just installing it manually? Maybe there is a b

Re: [sage-devel] Re: Problem compiling sage 6.2.rc0-develop with macosx/mavericks

2014-04-28 Thread Volker Braun
On Monday, April 28, 2014 10:53:53 AM UTC+1, Andrew wrote: > > Here's another bizarre feature: > > 538-6.1.1-master-sage: > /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild > -sdk / -find strip 2> /dev/null > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault. > xcto

Re: [sage-devel] Re: Problem compiling sage 6.2.rc0-develop with macosx/mavericks

2014-04-28 Thread Andrew
On Monday, 28 April 2014 20:09:53 UTC+10, Volker Braun wrote: > > Whats xcodebuild -version > > It's: Xcode 5.1.1 Build version 5B1008 Andrew -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emai

[sage-devel] Re: patchbot runs failing apply

2014-04-28 Thread Volker Braun
Whats the recommended way for running the git version of the patchbot? Just installing it manually? Maybe there is a better way? On Monday, April 28, 2014 7:17:08 AM UTC+1, Ralf Stephan wrote: > > Several branches needing review and merging fine get an "ApplyFailed" > ticket by > patchbot run

[sage-devel] Re: Spurious(?) ValueErrors when plotting on a loglog scale

2014-04-28 Thread P Purkayastha
http://trac.sagemath.org/ticket/13422 On Saturday, April 26, 2014 3:17:00 PM UTC-7, Michael Orlitzky wrote: > > If we try to plot some values in sage on a loglog scale where there will > be fewer than 2 ticks on the (say) x-axis, it throws a ValueError: > > ValueError: Either expand the range

Re: [sage-devel] Re: Problem compiling sage 6.2.rc0-develop with macosx/mavericks

2014-04-28 Thread Volker Braun
Whats xcodebuild -version On Monday, April 28, 2014 10:53:53 AM UTC+1, Andrew wrote: > > Here's another bizarre feature: > > 538-6.1.1-master-sage: > /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild > -sdk / -find strip 2> /dev/null > /Applications/Xcode.app/Contents/Developer/Tool

[sage-devel] Re: Spurious(?) ValueErrors when plotting on a loglog scale

2014-04-28 Thread P Purkayastha
http://trac.sagemath.org/ticket/13422 On Saturday, April 26, 2014 3:17:00 PM UTC-7, Michael Orlitzky wrote: > > If we try to plot some values in sage on a loglog scale where there will > be fewer than 2 ticks on the (say) x-axis, it throws a ValueError: > > ValueError: Either expand the ran

Re: [sage-devel] Re: optional_packages, install_package, etc. are completely broken in sage-6.2.rc0

2014-04-28 Thread Volker Braun
On Monday, April 28, 2014 1:44:01 AM UTC+1, William wrote: > > Taken in the extreme, you seem to be suggesting that, e.g., "pip > install foo" can't be taken seriously Pip doesn't import foo before modifying it, so it is safe. -- You received this message because you are subscribed to the Goog

Re: [sage-devel] Re: Problem compiling sage 6.2.rc0-develop with macosx/mavericks

2014-04-28 Thread Andrew
Here's another bizarre feature: 538-6.1.1-master-sage: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find strip 2> /dev/null /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault. xctoolchain/usr/bin/strip\539-6.1.1-master-sage: ls -l /Applications/Xcode. ap

Re: [sage-devel] Re: Problem compiling sage 6.2.rc0-develop with macosx/mavericks

2014-04-28 Thread Andrew
Yes I have strip and the command line tools: 533-6.1.1-master-sage: which strip strip is /Library/Developer/CommandLineTools/usr/bin/strip strip is /usr/bin/strip On Monday, 28 April 2014 16:28:16 UTC+10, yomcat wrote: > > On 28/04/2014, at 1809, Andrew > wrote: > > > > sh: line 1: 45940 Tra

Re: [sage-devel] Re: a bug in NumberField().galois_group?

2014-04-28 Thread John Cremona
Let's think about what users actually want when they call for the Galois Group of a (possibly non-Galois) number field K. First of all, they might want to know whether or not K is Galois itself; then they may want the Galois group of the closure and the closure itself; about the group, they may o

[sage-devel] Re: a bug in NumberField().galois_group?

2014-04-28 Thread Dima Pasechnik
On 2014-04-28, Rob Beezer wrote: > The groups are isomorphic: > > sage: K. = NumberField(x^4 - 2) > sage: G1 = K.galois_group(names='bbb') > sage: G2 = K.galois_group(type="gap",names='bbb').group() > sage: G1.is_isomorphic(G2) > True > > but > > sage: K.galois_closure(names="ccc") > Number Field

Re: [sage-devel] Re: patchbot runs failing apply

2014-04-28 Thread Nathann Cohen
Okay, I just installed a more recent version of the patchbot as it seems that "sage -i patchbot" installs an old one, and here is the new result : patchbot@silence:~/sage$ ./sage -patchbot Getting trusted author list... WARNING: Assuming sage-main is pristine. WARNING: Do not use this copy o

[sage-devel] Re: patchbot runs failing apply

2014-04-28 Thread Nathann Cohen
Yo !!! > Several branches needing review and merging fine get an "ApplyFailed" > ticket by > patchbot runners (many thanks for the service BTW). This is due to > > https://github.com/robertwb/sage-patchbot/issues/10 > > where there are workarounds. So please if you run a patchb