Re: [fricas-devel] Re: [sage-devel] Ubuntu/Debian packages

2013-11-23 Thread Ralf Hemmecke
> https://cloud.sagemath.com/projects/87b42925-de3b-482c-99b2-edf1e1ba8bfb/files/fricas/rhx-instructions Updated. That compiles Aldor and FriCAS and seems to work. Unfortunately, FriCAS will show Version: FriCAS 2013-09-27 which isn't quite correct. Ralf -- You received this message becaus

Re: [sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Nathann Cohen
Hello !!! > Right. In your steps 3), probably your TD-specific constructions only depend > on structures with strictly smaller parameters (never mind that for MOLS the > meaning of n is apparently shifted by 2), so at least those constructions > would only inquire about structures with

Re: [sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Nils Bruin
On Saturday, November 23, 2013 10:56:10 AM UTC-8, Nathann Cohen wrote: > Well, splitting sounds nice indeed but what exactly do you point at ? You > can't swear that a TD will be built without ever requiring a MOLS to be > built at some recursion step. > Right. In your steps 3), probably your

Re: [fricas-devel] Re: [sage-devel] Ubuntu/Debian packages

2013-11-23 Thread William Stein
On Sat, Nov 23, 2013 at 10:32 AM, Ralf Hemmecke wrote: >> Could you re-send me the link to the instructions? Thanks! > > I would have done that before but I didn't know whether a link like this > > https://cloud.sagemath.com/projects/87b42925-de3b-482c-99b2-edf1e1ba8bfb/files/fricas.term > > does

Re: [sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Nathann Cohen
Yoo !! > Well, whether that's sufficient is between you and the reviewer of the code. Oh. I see. > Perhaps the docstring wouldn't have to contain it, but don't you think it should be at least in principle straightforward to document the implementation as well as what your routine tri

Re: [fricas-devel] Re: [sage-devel] Ubuntu/Debian packages

2013-11-23 Thread Ralf Hemmecke
> Could you re-send me the link to the instructions? Thanks! I would have done that before but I didn't know whether a link like this https://cloud.sagemath.com/projects/87b42925-de3b-482c-99b2-edf1e1ba8bfb/files/fricas.term does help you. Anyway, under https://cloud.sagemath.com/projects I s

Re: [sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Nils Bruin
On Saturday, November 23, 2013 9:28:26 AM UTC-8, Nathann Cohen wrote: > > Hell !! > > > It's not the easiest to document, though. > > Really ? I was thinking of : > > - ``tried`` -- Internal use. Keep your fingers off. > Well, whether that's sufficient is between you and the reviewer

Re: [sage-devel] Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Julien Puydt
Le 23/11/2013 11:22, Nathann Cohen a écrit : > The question is : how is it possible to break those cycles elegantly ? > The only theoretically correct answer I have so far is to add a > "parameter already_tried=[...]" containing the list of constructors that > have been called already (*). So that

[sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Jason Grout
On 11/23/13 11:28 AM, Nathann Cohen wrote: - ``tried`` -- Internal use. Keep your fingers off. Perhaps calling it _tried (or _) might better convey the privateness of the variable. Jason -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To un

Re: [sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Nathann Cohen
Hell !! > It's not the easiest to document, though. Really ? I was thinking of : - ``tried`` -- Internal use. Keep your fingers off. > It seems that the answer you get > back depends on which construction you use, given your parameters. Yes, but it does not matter much. The functio

Re: [fricas-devel] Re: [sage-devel] Ubuntu/Debian packages

2013-11-23 Thread William Stein
On Sat, Nov 23, 2013 at 8:07 AM, Ralf Hemmecke wrote: > Hi William, > > I've updated rhx-instructions for the installation of FriCAS that should > work in connection with Aldor. You'd need the latest github versions of > both. Could you re-send me the link to the instructions? Thanks! -- Willi

Re: [aldor-devel] Re: [fricas-devel] Re: [sage-devel] Ubuntu/Debian packages

2013-11-23 Thread Pippijn van Steenhoven
On Sat, Nov 23, 2013 at 04:53:39PM +0100, Ralf Hemmecke wrote: > I.e. using the latest FriCAS from > > https://github.com/hemmecke/fricas-svn/commits/master > would require a corresponding version of Aldor. (The most rrecent from > Pippijn's github repo should work.) The most recent version does

Re: [sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Nils Bruin
On Saturday, November 23, 2013 6:07:58 AM UTC-8, Nathann Cohen wrote: > > Hmm... A 'tried' list. It seems the easiest to implement indeed. I > think that this is what I will end up implementing, but I still wish > there was an easier way .. :-/ > It's not the easiest to document, though. I

Re: [fricas-devel] Re: [sage-devel] Ubuntu/Debian packages

2013-11-23 Thread Ralf Hemmecke
Hi William, I've updated rhx-instructions for the installation of FriCAS that should work in connection with Aldor. You'd need the latest github versions of both. Ralf -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this grou

Re: [fricas-devel] Re: [sage-devel] Ubuntu/Debian packages

2013-11-23 Thread Ralf Hemmecke
Hi William, hi Pippijn, As of today, we can also provide packages for Debian and Ubuntu at https://launchpad.net/~pippijn/+archive/ppa I haven't checked exactly what sha1 from his aldor git repo actually corresponds to this ppa. But that would be important. Since only recently FriCAS

Re: [sage-devel] About groups., designs., and the brand-new codes.

2013-11-23 Thread David Joyner
On Sat, Nov 23, 2013 at 10:33 AM, William Stein wrote: > On Sat, Nov 23, 2013 at 7:30 AM, Harald Schilly > wrote: >> On Sat, Nov 23, 2013 at 4:11 PM, William Stein wrote: > Now, how about plot. ? :-) >>> >>> (1) plot is already a specific command that means something, and is >>> not obscure

Re: [sage-devel] About groups., designs., and the brand-new codes.

2013-11-23 Thread William Stein
On Sat, Nov 23, 2013 at 7:30 AM, Harald Schilly wrote: > On Sat, Nov 23, 2013 at 4:11 PM, William Stein wrote: Now, how about plot. ? :-) >> >> (1) plot is already a specific command that means something, and is >> not obscure by any definition. > > > I proposed "plots." (for me quite logica

Re: [sage-devel] About groups., designs., and the brand-new codes.

2013-11-23 Thread Harald Schilly
On Sat, Nov 23, 2013 at 4:11 PM, William Stein wrote: >>> Now, how about plot. ? :-) > > (1) plot is already a specific command that means something, and is > not obscure by any definition. I proposed "plots." (for me quite logical, since there is also "groups."), sage.plot.* is also very good b

Re: [fricas-devel] Re: [sage-devel] Ubuntu/Debian packages

2013-11-23 Thread William Stein
On Sat, Nov 23, 2013 at 2:18 AM, Pippijn van Steenhoven wrote: > On Fri, Nov 22, 2013 at 09:38:10PM -0800, William Stein wrote: >> On Sat, Jul 20, 2013 at 6:00 AM, Pippijn van Steenhoven >> wrote: >> > Hello Aldor, FriCAS, and Sage users, >> > >> > as some of you might have noticed, Aldor has bee

Re: [sage-devel] About groups., designs., and the brand-new codes.

2013-11-23 Thread William Stein
On Sat, Nov 23, 2013 at 5:09 AM, Nathann Cohen wrote: >> Very cool, thanks Nathann! >> >> Now, how about plot. ? :-) (1) plot is already a specific command that means something, and is not obscure by any definition. (2) one already has sage.plot.[tab], which does this: sage: sage.plot. sage.plo

Re: [sage-devel] Re: About groups., designs., and the brand-new codes.

2013-11-23 Thread Volker Braun
You can already review git branches *hint* *hint* Sage-5.13 should be the last "old-style" release... On Saturday, November 23, 2013 7:39:11 AM UTC-5, Nathann Cohen wrote: > > I hope that the git releases will begin soon, because a lot of git > patches are already waiting to be merged, and a lo

Re: [sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Nathann Cohen
Hmm... A 'tried' list. It seems the easiest to implement indeed. I think that this is what I will end up implementing, but I still wish there was an easier way .. :-/ Thanks for your help ! Nathann On 23 November 2013 14:42, Jason Grout wrote: > On 11/23/13 7:39 AM, Jason Grout wrote: >> >>

[sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Jason Grout
On 11/23/13 7:39 AM, Jason Grout wrote: def TD(k,n,tried=None): tried = set() if tried is None else tried 1) Try to see if some TD-specific construction is available for this set of parameters. tried.add('TD') 2) elif if 'OA' not in tried: call OA with the current tried set, and r

[sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Jason Grout
On 11/23/13 7:26 AM, Nathann Cohen wrote: Because perhaps there is a OA construction to build an OA with those given parameters, and perhaps there is none. And if there is none, perhaps there is a way to create a TD with the same parameters, in which case we should built it and convert the output

[sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Nathann Cohen
Y !! It seems to me that you want to use some kind of caching, probably by > UniqueRepresentation or some @cached_method. > > What exactly do you mean when you say > def OA(k,n): > 1) does there exist a TD(k,n)? > Well, you know that mathematically TD(k,n) exists. I suppose

[sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Nathann Cohen
Hello !! Why do you need (say) OA to call TD and not only the third step of TD? Because perhaps there is a OA construction to build an OA with those given parameters, and perhaps there is none. And if there is none, perhaps there is a way to create a TD with the same parameters, in wh

Re: [sage-devel] About groups., designs., and the brand-new codes.

2013-11-23 Thread Nathann Cohen
> Very cool, thanks Nathann! > > Now, how about plot. ? :-) I feel home in somes places of Sage's code, and at others I feel like I'm treading on somebody else's property. Aaand I definitely don't feel home with plots :-P Nathann -- You received this message because you are subscribed to th

Re: [sage-devel] About groups., designs., and the brand-new codes.

2013-11-23 Thread David Joyner
On Fri, Nov 22, 2013 at 8:09 AM, Nathann Cohen wrote: > Hellooo everybody ! > > I just created ticket that adds a new codes. object to Sage gathering > all codes that Sage can build, the same way that we already have such > objects for groups/graphs/designs/matroids and perhaps others. > > Bas

Re: [sage-devel] Re: About groups., designs., and the brand-new codes.

2013-11-23 Thread Nathann Cohen
Okay... I just updated #15445 and the constructors exported into the global namespace are now deprecated. I hope that the git releases will begin soon, because a lot of git patches are already waiting to be merged, and a lot of git patches are waiting for a review too :-P Nathann On 22 N

[sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Simon King
On 2013-11-23, Simon King wrote: > try: > # Manually call the cache for MOLS > return UniqueRepresentation.__classcall__.cache[(MOLS,k,n-2),()] > except: > pass "except KeyError:", of course. -- You received this message because you are subscribed to th

[sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Simon King
Hi Nathann, On 2013-11-23, Nathann Cohen wrote: > The problem is that being all equivalent, here is how I would like to > implement them > > def TD(k,n) >1) does there exist a OA(k,n,2) ? If so, return it >2) does there exist a MOLS(n, k-2) ? If so, return it >3) Otherwise, try to see

[sage-devel] Re: Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Marc Mezzarobba
Hi Nathann, Nathann Cohen wrote: > def TD(k,n) > 1) does there exist a OA(k,n,2) ? If so, return it > 2) does there exist a MOLS(n, k-2) ? If so, return it > 3) Otherwise, try to see if some TD-specific construction is available > for this set of parameters. > > def OA(k,n): > 1) does there exis

Re: [sage-devel] Re: OS X Mavericks

2013-11-23 Thread Jeroen Demeyer
On 2013-11-23 06:52, R. Andrew Ohana wrote: They don't supply a Fortran compiler, which we need. Also as of Xcode 5 they no longer supply gcc (the gcc in PATH is actually clang) and some packages we include depend explicitly on having gcc as our c compiler. If anything we need our own compiler n

[sage-devel] Funny problem : implementing a "if and only if" result in Sage

2013-11-23 Thread Nathann Cohen
Hell everybody ! I have a funny problem that I wasn't able to solve elegantly so far. There are several mathematical objects (combinatorial designs, but it doesn't matter) that I am implementing in Sage these days, each with several parameters, and a theorem saying that the following are e

Re: [fricas-devel] Re: [sage-devel] Ubuntu/Debian packages

2013-11-23 Thread Pippijn van Steenhoven
On Fri, Nov 22, 2013 at 09:38:10PM -0800, William Stein wrote: > On Sat, Jul 20, 2013 at 6:00 AM, Pippijn van Steenhoven > wrote: > > Hello Aldor, FriCAS, and Sage users, > > > > as some of you might have noticed, Aldor has been made Free Software by > > Aldor.org. This has had several implication

Re: [sage-devel] OS X Mavericks

2013-11-23 Thread Taekyung Kim
Hi. I have the same problem with r while building sage 5.12 on my mavericks macbook air. You proposed to "switch to using the system sqlite on osx", but how can I do this? Thanks. Taekyung 2013년 11월 17일 일요일 오후 3시 18분 0초 UTC+9, R. Andrew Ohana 님의 말: > > Ok, I've successfully built a fully