[sage-support] Re: the set containing the empty set

2009-01-09 Thread John H Palmieri
On Jan 9, 7:03 pm, "William Stein" wrote: > On Fri, Jan 9, 2009 at 6:42 PM, John H Palmieri > wrote: > > > Here's another question: what is the most efficient way of testing > > whether one Set is a subset of another?  I can do > > >    S in list(T.subsets()) > > > -- and it's a bit frustrating

[sage-support] Re: the set containing the empty set

2009-01-09 Thread William Stein
On Fri, Jan 9, 2009 at 6:42 PM, John H Palmieri wrote: > > > > On Jan 9, 3:40 pm, "William Stein" wrote: >> On Fri, Jan 9, 2009 at 3:38 PM, Mike Hansen wrote: >> >> > On Fri, Jan 9, 2009 at 3:36 PM, John H Palmieri >> > wrote: >> >> >> Is this a bug? >> >> >> sage: Set([]) >> >> {} >> >> sage

[sage-support] Re: the set containing the empty set

2009-01-09 Thread John H Palmieri
On Jan 9, 3:40 pm, "William Stein" wrote: > On Fri, Jan 9, 2009 at 3:38 PM, Mike Hansen wrote: > > > On Fri, Jan 9, 2009 at 3:36 PM, John H Palmieri > > wrote: > > >> Is this a bug? > > >> sage: Set([]) > >> {} > >> sage: Set(Set([])) > >> {} > >> sage: Set([]) == Set(Set([])) > >> True > >

[sage-support] Re: Problem Running with nohup on OSX.5

2009-01-09 Thread Justin C. Walker
On Jan 9, 2009, at 16:53 , Tom wrote: > > import sys > sys.stdout.flush() > > was the solution! > > Thanks William! If this solves the problem, it sounds like a bug to me. Unless Sage is getting killed because of some error condition, the output should "drain" before the process terminates.

[sage-support] Re: Problem Running with nohup on OSX.5

2009-01-09 Thread Tom
import sys sys.stdout.flush() was the solution! Thanks William! -Tom --~--~-~--~~~---~--~~ 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

[sage-support] Re: Problem Running with nohup on OSX.5

2009-01-09 Thread William Stein
On Fri, Jan 9, 2009 at 4:27 PM, Tom wrote: > > > I think I may have found the source of the error, but not a > solution. Does Sage (or Python or unix) only save the output to disk > in chunks of 32Kb? By putting some simple print statements in my > program, I do see the output being recorded i

[sage-support] Re: Problem Running with nohup on OSX.5

2009-01-09 Thread Tom
I think I may have found the source of the error, but not a solution. Does Sage (or Python or unix) only save the output to disk in chunks of 32Kb? By putting some simple print statements in my program, I do see the output being recorded in the file. I find that the size of the results file

[sage-support] Re: the set containing the empty set

2009-01-09 Thread William Stein
On Fri, Jan 9, 2009 at 3:38 PM, Mike Hansen wrote: > > On Fri, Jan 9, 2009 at 3:36 PM, John H Palmieri > wrote: >> >> Is this a bug? >> >> sage: Set([]) >> {} >> sage: Set(Set([])) >> {} >> sage: Set([]) == Set(Set([])) >> True > > This is because Set takes a list (iterable) for all the of the

[sage-support] Re: the set containing the empty set

2009-01-09 Thread Mike Hansen
On Fri, Jan 9, 2009 at 3:36 PM, John H Palmieri wrote: > > Is this a bug? > > sage: Set([]) > {} > sage: Set(Set([])) > {} > sage: Set([]) == Set(Set([])) > True This is because Set takes a list (iterable) for all the of the elements of the set. So, if you want to construct the set containing t

[sage-support] the set containing the empty set

2009-01-09 Thread John H Palmieri
Is this a bug? sage: Set([]) {} sage: Set(Set([])) {} sage: Set([]) == Set(Set([])) True In general, are Sage Sets supposed to behave like mathematical sets? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe f

[sage-support] Re: Problem Running with nohup on OSX.5

2009-01-09 Thread Carl Witty
On Jan 9, 1:53 pm, Tom wrote: > I'm having difficulty running Sage in the background on a Mac with OSX. > 5 and getting the output saved in a file.  I tried a few permutations > with different results so I expect I'm making a silly error.   Here's > what I've seen. > Since the program runs fine i

[sage-support] Problem Running with nohup on OSX.5

2009-01-09 Thread Tom
I'm having difficulty running Sage in the background on a Mac with OSX. 5 and getting the output saved in a file. I tried a few permutations with different results so I expect I'm making a silly error. Here's what I've seen. Since the program runs fine in some of the scenarios, I don't think t

[sage-support] Re: why doesn`t solve() give a proper answer

2009-01-09 Thread William Stein
On Fri, Jan 9, 2009 at 9:05 AM, William Stein wrote: > On Fri, Jan 9, 2009 at 9:01 AM, Robert Dodier wrote: >> >> On Jan 9, 6:51 am, Slava wrote: >> >>> I`m trying to solve such simple system of equations: [sqrt(x) == 1, x >>> == y], >>> so I type: >>> >>> x,y = var('x,y'); >>> solve([sqrt(x) =

[sage-support] Re: why doesn`t solve() give a proper answer

2009-01-09 Thread William Stein
On Fri, Jan 9, 2009 at 9:01 AM, Robert Dodier wrote: > > On Jan 9, 6:51 am, Slava wrote: > >> I`m trying to solve such simple system of equations: [sqrt(x) == 1, x >> == y], >> so I type: >> >> x,y = var('x,y'); >> solve([sqrt(x) == 1, x == y], x, y); >> >> the answer is: [] > > If I understand

[sage-support] Re: why doesn`t solve() give a proper answer

2009-01-09 Thread Robert Dodier
On Jan 9, 6:51 am, Slava wrote: > I`m trying to solve such simple system of equations: [sqrt(x) == 1, x > == y], > so I type: > > x,y = var('x,y'); > solve([sqrt(x) == 1, x == y], x, y); > > the answer is: [] If I understand correctly, Sage punts to Maxima to solve equations. Maxima's built-in

[sage-support] Re: Installing optional R package on sagenb.org

2009-01-09 Thread William Stein
On Fri, Jan 9, 2009 at 1:19 AM, ztnews wrote: > > I had a similar failure today, trying to: > > r.install_packages("adapt") > > after some fussing, runing ./sage as root, and using the notebook > interface I could get through the download phase, but same sorts of > failures in just as the gcc kic

[sage-support] Re: question about solve() function

2009-01-09 Thread William Stein
On Fri, Jan 9, 2009 at 3:49 AM, Sand Wraith wrote: > > Hi! > > Is it possible to get order of root of equation? For example equation: > > f(x)=(x+1)^2 > and it's solution "solve(f,x)" will be "[x == -1]", but this is not > perfect clear, because x==-1 have second order. This equation actually > m

[sage-support] why doesn`t solve() give a proper answer

2009-01-09 Thread Slava
Hello. I`m trying to solve such simple system of equations: [sqrt(x) == 1, x == y], so I type: x,y = var('x,y'); solve([sqrt(x) == 1, x == y], x, y); the answer is: [] (just two brackets) How to make it work? --~--~-~--~~~---~--~~ To post to this group, send ema

[sage-support] question about solve() function

2009-01-09 Thread Sand Wraith
Hi! Is it possible to get order of root of equation? For example equation: f(x)=(x+1)^2 and it's solution "solve(f,x)" will be "[x == -1]", but this is not perfect clear, because x==-1 have second order. This equation actually must have two same roots: [x == -1,x == -1]. --~--~-~--~

[sage-support] Re: "Drop-in" Python scripts?

2009-01-09 Thread ztnews
Thanks, guys, for the tips. Yes, that harrison.py script I grabbed is dated 1999(!), so no wonder it had some deprecated dependencies (Numeric & LinearAlgebra). Curious, tho, that two Python installs of mine (one in Debian and another in Vista) handled the originals just fine. I also figured ou

[sage-support] Re: Installing optional R package on sagenb.org

2009-01-09 Thread ztnews
I had a similar failure today, trying to: r.install_packages("adapt") after some fussing, runing ./sage as root, and using the notebook interface I could get through the download phase, but same sorts of failures in just as the gcc kicks in. Seems several of the key R scripts have "/home/wstein