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
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
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
>
>
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.
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
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
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
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
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
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
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
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
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) =
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
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
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
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
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
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].
--~--~-~--~
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
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
21 matches
Mail list logo