[sage-support] Re: maximum induced cycle length

2015-10-14 Thread Dima Pasechnik
On Wednesday, 14 October 2015 09:48:58 UTC-7, Dima Pasechnik wrote: > > girth? > > sage: p=graphs.PetersenGraph() > sage: p.girth() > 5 > > oops, this is just a lower bound on what you ask. > > On Tuesday, 13 October 2015 22:52:13 UTC-7, Selva Raja S wrote: >> >> Is there any coding/command, t

[sage-support] Re: maximum induced cycle length

2015-10-14 Thread Dima Pasechnik
girth? sage: p=graphs.PetersenGraph() sage: p.girth() 5 On Tuesday, 13 October 2015 22:52:13 UTC-7, Selva Raja S wrote: > > Is there any coding/command, to find maximum induced cycle length? > -- You received this message because you are subscribed to the Google Groups "sage-support" group. T

Re: [sage-support] Re: `maximum recursion depth exceeded` when starting notebook in sage-5.0

2012-05-18 Thread Benjamin Jones
On Fri, May 18, 2012 at 2:08 PM, Jason Grout wrote: > On 5/18/12 1:19 PM, Benjamin Jones wrote: >> >> When starting up the sage-5.0 notebook (with the new notebook from trac >> #11080 and the sagecell-0.9.0 spkg installed) with >> directory='/home/sageserver/sage_notebook.sagenb' pointing to a not

[sage-support] Re: `maximum recursion depth exceeded` when starting notebook in sage-5.0

2012-05-18 Thread Jason Grout
On 5/18/12 1:19 PM, Benjamin Jones wrote: When starting up the sage-5.0 notebook (with the new notebook from trac #11080 and the sagecell-0.9.0 spkg installed) with directory='/home/sageserver/sage_notebook.sagenb' pointing to a notebook directory containing many existing user accounts and worksh

[sage-support] Re: maximum doesn't launch

2010-04-24 Thread Mathieu Roux
now it's ok i had to recompile but maxima works maybe the first time, i used export SAGE64=yes and that's what didn't work... don't know! thank you Mathieu -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...

Re: [sage-support] Re: maximum doesn't launch

2010-04-24 Thread Tim Joseph Dumol
It means that the ecl wasn't installed properly. Which probably means that you'll need to recompile Sage from scratch. On Sat, Apr 24, 2010 at 4:00 PM, Mathieu Roux wrote: > well... > with sage -f maxima, it made an error > The end of the compilling messages was: > > configure: error: No lisp im

[sage-support] Re: maximum doesn't launch

2010-04-24 Thread Mathieu Roux
well... with sage -f maxima, it made an error The end of the compilling messages was: configure: error: No lisp implementation specified and none of the default executables clisp(clisp),gcl(GCL),lisp(CMUCL),scl(SCL),sbcl(SBCL),lisp(ACL),openmcl(OpenMCL) were found in PATH *

Re: [sage-support] Re: maximum doesn't launch

2010-04-23 Thread Tim Joseph Dumol
Odd. Try force reinstalling maxima (sage -f maxima) to see if it helps. Otherwise, it seems a recompile would be necessary. Someone more familiar with the build system should look into why there was no error. On Sat, Apr 24, 2010 at 4:49 AM, Mathieu Roux wrote: > hum no, maxima-readline does no

[sage-support] Re: maximum doesn't launch

2010-04-23 Thread Mathieu Roux
hum no, maxima-readline does not exist in /Applications/sage-4.3.5/local/bin The only file with maxima in its name is sage-maxima.lisp Nevertheless there was no problem during the installation. As for the command indicated, here is what happened: sage: os.system('maxima-readline') sh: maxima-rea

[sage-support] Re: maximum

2009-10-21 Thread kcrisman
> I don't think that's bad.  Suppose I want an enhanced "max" that works > for Sage symbolic functions too (like the Sage-enhanced floor and ceil > functions). > > If you ever want the real system max, just do: > > sage: import __builtin__ > sage: __builtin__.max([1,2,3]) On a related note, whuss

[sage-support] Re: maximum

2009-10-21 Thread William Stein
On Wed, Oct 21, 2009 at 4:15 PM, Nasser Abbasi wrote: > > >> >> Suppose I write a program in Mathematica 7.0 that happens to use a >> variable Foo.  Then Mathematica 8.0 comes out and Foo is a function >> name that Mathematica decided to use.  Does that mean my program is >> now broken? >> >> Wil

[sage-support] Re: maximum

2009-10-21 Thread Nasser Abbasi
> > Suppose I write a program in Mathematica 7.0 that happens to use a > variable Foo.  Then Mathematica 8.0 comes out and Foo is a function > name that Mathematica decided to use.  Does that mean my program is > now broken? > > William Hi; In theory, Yes. But one could, if they want to, Unprot

[sage-support] Re: maximum

2009-10-21 Thread Jason Grout
Nasser Abbasi wrote: > > > On Oct 20, 8:44 am, finotti wrote: >> Sorry... My fault. I had a "max=20", which made "max?" give me: >> > > This is really bad that one can redefine a system function just like > this. > I don't think that's bad. Suppose I want an enhanced "max" that works fo

[sage-support] Re: maximum

2009-10-21 Thread William Stein
On Wed, Oct 21, 2009 at 3:12 PM, Nasser Abbasi wrote: > > > > On Oct 20, 8:44 am, finotti wrote: >> >> Sorry...  My fault.  I had a "max=20", which made "max?" give me: >> > > This is really bad that one can redefine a system function just like > this. > > This is also a problem in other systems

[sage-support] Re: maximum

2009-10-21 Thread Nasser Abbasi
On Oct 20, 8:44 am, finotti wrote: > > Sorry...  My fault.  I had a "max=20", which made "max?" give me: > This is really bad that one can redefine a system function just like this. This is also a problem in other systems such as Matlab, which causes confusion specially for new users who do n

[sage-support] Re: maximum

2009-10-20 Thread finotti
Dear William and all, On Oct 19, 5:08 pm, William Stein wrote: > On Mon, Oct 19, 2009 at 12:22 PM, finotti wrote: > > That's weird, since I get: > > wst...@sage:~$ sage > -- > | Sage Version 4.1.2, Release Date: 2009-10-14    

[sage-support] Re: maximum

2009-10-19 Thread William Stein
On Mon, Oct 19, 2009 at 12:22 PM, finotti wrote: > > Dear all, > > I see that "max" in Sage is not the "max" of Python: > > = > Python 2.5.2 (r252:60911, Jan  4 2009, 21:59:32) > [GCC 4.3.2] on linux2 > Type "help", "copyright", "credits" or "license" for more informat

[sage-support] Re: maximum recursion depth exceeded in cmp

2009-03-31 Thread agi
Thanks, sys.setrecursionlimit(limit) works. On 26 Mrz., 16:39, William Stein wrote: > On Thu, Mar 26, 2009 at 5:24 AM, agi wrote: > > > Hi, > > I have a recursive algorithm that works well if it doesn't need more > > than 5637 iterations. > > In the case of more than 5637 iterations the error

[sage-support] Re: maximum recursion depth exceeded in cmp

2009-03-26 Thread William Stein
On Thu, Mar 26, 2009 at 5:24 AM, agi wrote: > > Hi, > I have a recursive algorithm that works well if it doesn't need more > than 5637 iterations. > In the case of more than 5637 iterations the error message is: > RuntimeError: maximum recursion depth exceeded in cmp > > Is there a way to make SA

[sage-support] Re: maximum recursion depth exceeded in cmp

2009-03-26 Thread adrian
This is a dirty solution, but it might be interesting: It is possible to implement "tail recursion"; this would solve the problem for certain kinds of recursion; but will fail if the call is not a tail call, and I think this code won't work, but some variations would... I toss it as an idea: Th

[sage-support] Re: "maximum recursion depht exceded"

2009-03-24 Thread christophe van der putten
Thank you for your help, i will test that. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http:

[sage-support] Re: "maximum recursion depht exceded"

2009-03-22 Thread John Cremona
Also if you type prime_powers? you will see this: Definition: prime_powers(start, stop=None) Docstring: List of all positive primes powers between start and stop-1, inclusive. If the second argument is omitted, returns the primes up to the first argument. EXA

[sage-support] Re: "maximum recursion depht exceded"

2009-03-22 Thread Mike Hansen
Hello, On Mar 22, 7:16 am, christophe van der putten wrote: > Hi, > I am a newbie with sage, a want to save in a text file all prime and > prime power that are lower than a big number Max=(10^18). > > i use two loop:  as below and i have the error message "maximum > recursion depht exceded". > t