Marshall Hampton wrote:
> sage: z = var('z')
> sage: f5 = (z^5-1)^2
> sage: f5.roots()
>
> [(e^(2/5*I*pi), 2),
> (e^(4/5*I*pi), 2),
> (e^(-4/5*I*pi), 1),
> (e^(-2/5*I*pi), 1),
> (1, 2)]
>
> Odd, very odd. I guess one of us should write about this on the
> maxima list.
CVS log claims this bu
Yes, I got it to work! Thanks!
On Jun 5, 7:27 pm, Mike Hansen wrote:
> Hello,
>
> On Fri, Jun 5, 2009 at 7:24 PM, wkehowski wrote:
>
> > Changing data.sage to
>
> > T[0]=([1, 2, 3, 4], [5, 6, 7], [8, 9, 10, 11], [13, 14])
> > T[1]=([1, 2, 3, 4], [5, 6, 7], [12], [13, 14])
>
> You should put
>
>
Here is the error message:
11 T[1]=([1, 2, 3, 4], [5, 6, 7], [12], [13, 14])
12
---> 13 for x in T(_sage_const_0 ): print x
14
15
TypeError: 'dict' object is not callable
On Jun 5, 7:27 pm, Mike Hansen wrote:
> Hello,
>
> On Fri, Jun 5, 2009 at 7:24 PM, wkehowski wrote:
>
Hello,
On Fri, Jun 5, 2009 at 7:24 PM, wkehowski wrote:
>
> Changing data.sage to
>
> T[0]=([1, 2, 3, 4], [5, 6, 7], [8, 9, 10, 11], [13, 14])
> T[1]=([1, 2, 3, 4], [5, 6, 7], [12], [13, 14])
You should put
T = {}
at the beginning to define T as a dictionary.
--Mike
--~--~-~--~~-
Changing data.sage to
T[0]=([1, 2, 3, 4], [5, 6, 7], [8, 9, 10, 11], [13, 14])
T[1]=([1, 2, 3, 4], [5, 6, 7], [12], [13, 14])
gives the error
NameError: name 'T' is not defined
On Jun 5, 6:18 pm, wkehowski wrote:
> File data.sage (without #):
>
> ##
> T(0)=([1, 2, 3, 4], [5, 6, 7], [8, 9, 10,
File data.sage (without #):
##
T(0)=([1, 2, 3, 4], [5, 6, 7], [8, 9, 10, 11], [13, 14])
T(1)=([1, 2, 3, 4], [5, 6, 7], [12], [13, 14])
##
File test.sage:
##
load "data.sage"
for x in T(0): print x
##
gives the error message:
##
TypeError:
WARNING: Failure executing file:
##
What is the pro
Its a puzzling pattern as to which multiplicities are incorrect:
sage: z = var('z')
sage: f5 = (z^5-1)^2
sage: f5.roots()
[(e^(2/5*I*pi), 2),
(e^(4/5*I*pi), 2),
(e^(-4/5*I*pi), 1),
(e^(-2/5*I*pi), 1),
(1, 2)]
Odd, very odd. I guess one of us should write about this on the
maxima list.
-Ma
Hello,
I would like to create a file T.sage or T.txt, say, with lines like
T(0)=(1,2,3,4)
T(1)=(5,6,7,8)
or possibly
T(0)=((1,2),(3,4),(5))
T(1)=((6,7),(8,9),(10))
(or each line just a tuple or tuple of tuples, etc.)
and be able consider this as defining T as function from range(0..q)
to tup
Oops.
On 5 Jun., 21:32, simon.k...@uni-jena.de wrote:
> sage: E=(z^3-1)^3
> sage: e = E==0
> sage: m=e._maxima_()
> sage: m.solve(z).str()
> '[z=(sqrt(3)*%i-1)/2,z=-(sqrt(3)*%i+1)/2,z=1]'
Here I forgot to copy-and-paste the line
sage: P = m.parent()
> sage: P.get('multiplicities')
Hi!
I should add that the bug occurs for sage 4.0.
Is it still there in 4.0.1?
It seems that the problem is in maxima. Looking at the code, solve
does the following:
sage: E=(z^3-1)^3
sage: e = E==0
sage: m=e._maxima_()
sage: m.solve(z).str()
'[z=(sqrt(3)*%i-1)/2,z=-(sqrt(3)*%i+1)/2,z=
Dear Marshall
On 5 Jun., 21:07, Marshall Hampton wrote:
> That's pretty disturbing because those complex roots should have
> multiplicity 3.
So, I was right that the multiplicities where a bit odd... :)
> Is this a known bug?
I searched in trac. There used to be two open tickets mentioning
mu
That's pretty disturbing because those complex roots should have
multiplicity 3.
Is this a known bug?
-Marshall Hampton
On Jun 5, 1:05 pm, simon.k...@uni-jena.de wrote:
> Hi Michael,
>
> On 5 Jun., 18:26, Michael Friedman wrote:
>
> > I'm pretty new to Sage, so I'm sorry in advance for the tri
2009/6/5 Jason Grout :
>
> William Stein wrote:
>> 2009/6/5 Paul Sargent :
>>> On Friday, June 5, 2009, ccandide wrote:
>>>
!! I installed Ubuntu with no swap space
>>> You always want some swap with linux, whatever you're doing. My rule
>>> of thumb is to allocate a swap partition twice the
William Stein wrote:
> 2009/6/5 Paul Sargent :
>> On Friday, June 5, 2009, ccandide wrote:
>>
>>> !! I installed Ubuntu with no swap space
>> You always want some swap with linux, whatever you're doing. My rule
>> of thumb is to allocate a swap partition twice the size of your ram.
>> Granted I s
Hi Michael,
I am sorry for my previous reply. I think I missed one word in your
question:
On 5 Jun., 18:26, Michael Friedman wrote:
> I'm pretty new to Sage, so I'm sorry in advance for the trivial
> question.
> I have a set of (non-linear) equations, and I need to find the multiplicity
Hi Michael,
On 5 Jun., 18:26, Michael Friedman wrote:
> I'm pretty new to Sage, so I'm sorry in advance for the trivial
> question.
> I have a set of (non-linear) equations, and I need to find the
> multiplicity of each solution. How do I do it?
First of all, solving a nonlinear eqution is not
2009/6/5 Paul Sargent :
>
> On Friday, June 5, 2009, ccandide wrote:
>
>> !! I installed Ubuntu with no swap space
>
> You always want some swap with linux, whatever you're doing. My rule
> of thumb is to allocate a swap partition twice the size of your ram.
> Granted I started with that rule bac
Hi all
I'm pretty new to Sage, so I'm sorry in advance for the trivial
question.
I have a set of (non-linear) equations, and I need to find the
multiplicity
of each solution. How do I do it?
thanks alot,
Michael
--~--~-~--~~~---~--~~
To post to this group, send e
Hi Burcin
I agree with you. It seems that the problem is caused by the back end
change. If I do
show(maxima(integrate(f, x))
everything seems to typeset correctly
About the sqrt, here is an example that does not work:
f=function("f",x)
show(integrate(exp(sqrt(f)),x))
Regards
Ricardo Amézquit
On Friday, June 5, 2009, ccandide wrote:
> !! I installed Ubuntu with no swap space
You always want some swap with linux, whatever you're doing. My rule
of thumb is to allocate a swap partition twice the size of your ram.
Granted I started with that rule back when my machine had 8MB of ram,
but
Dear Robert,
Thanks a lot for the quick answer. This should work. However, I think it
would be nice to have a pre-parser that converts all sorts of number
formats into python ones so that mixing different packages for
different tasks would be easier. But I suppose this should be discussed
in
On Jun 5, 2009, at 3:09 AM, Stan Schymanski wrote:
> Dear all,
>
> In Fortran, numbers can be written in the form of e.g. 1.2d-6 instead
> of 1.2e-6, but if I import a text file with such numbers into sage
> using numpy, the 'd' notation does not get recognised and I get an
> error. Is there a wa
Dear all,
In Fortran, numbers can be written in the form of e.g. 1.2d-6 instead
of 1.2e-6, but if I import a text file with such numbers into sage
using numpy, the 'd' notation does not get recognised and I get an
error. Is there a way to import such numbers without too much hassle?
Thanks for y
On 5 juin, 11:01, William Stein wrote:
> you are using " version gcc 4.2.3 (Ubuntu 4.2.3-2ubuntu7)". You might
> also increase available swap space.
!! I installed Ubuntu with no swap space :
$ top
top - 11:23:02 up 9:51, 6 users, load average: 1.68, 0.97, 0.57
Tasks: 119 total, 3 ru
ccandide wrote:
>
>
> On 5 juin, 09:42, William Stein wrote:
>> So, build from source. It's easy.
>
>
> I'm very unlucky with Sage :
>
> - compiling it from sources doesn't work on my computer (I am going to
> post a new thread about this).
Interesting. I regularly compiled Sage on my ol
2009/6/5 ccandide :
>
>
>
> On 5 juin, 10:53, William Stein wrote:
>> Maybe you should install Python + sympy + numpy + matplotlib? That
>> would give you programming, linear algebra, symbolic calculus, and
>> programming.
>
> OK but what about the interface ? The Sage Firefox interface is very
It is no question of format... simply the line length which can be
megabytes..
But Burcin pointed out the solution :
http://stackoverflow.com/questions/417703/python-c-like-stream-input
One suggestion, though, wouldn't you feel this should be readily
available from sage ?
Or at list some functio
On 5 juin, 10:53, William Stein wrote:
> Maybe you should install Python + sympy + numpy + matplotlib? That
> would give you programming, linear algebra, symbolic calculus, and
> programming.
OK but what about the interface ? The Sage Firefox interface is very
handy. And students accustomed t
On Fri, Jun 5, 2009 at 1:55 AM, ccandide wrote:
> Compiling Sage 4.0 from sources, I got the following error message :
> sage: An error occurred while installing linbox-1.1.6 My machine :
> "old and slow" Pentium 4 + 512 MB RAM under Ubuntu Hardy Heron
Building Sage from source is not possible w
On Jun 5, 2009, at 1:39 AM, ccandide wrote:
> On 5 juin, 05:47, Robert Bradshaw
> wrote:
>
>> I'd recommend compiling from source, especially given a processor of
>> that age (though it might take quite a while given your clockspeed).
>
> "a processor of that age" ??? "your clockspeed" Pe
On Fri, Jun 5, 2009 at 1:39 AM, ccandide wrote:
>
>
>
> On 5 juin, 05:47, Robert Bradshaw
> wrote:
>
>> I'd recommend compiling from source, especially given a processor of
>> that age (though it might take quite a while given your clockspeed).
>
>
> "a processor of that age" ??? "your clocksp
On 5 juin, 09:42, William Stein wrote:
> So, build from source. It's easy.
I'm very unlucky with Sage :
- compiling it from sources doesn't work on my computer (I am going to
post a new thread about this).
- Windows binaries don't run on my computer as I explained here :
http://groups.goog
On 5 juin, 05:47, Robert Bradshaw
wrote:
> I'd recommend compiling from source, especially given a processor of
> that age (though it might take quite a while given your clockspeed).
"a processor of that age" ??? "your clockspeed" Pentium 4
(1.60GHz) + 512 MB ram is not
hardware for
On Thu, Jun 4, 2009 at 8:47 PM, Robert Bradshaw
wrote:
>
> On Jun 4, 2009, at 5:27 PM, ccandide wrote:
>
>> I failed to install Sage 3.4.2 and I was hoping the last Sage 4.0
>> version would fix the problem.
>> Unfortunately, the install fails again with the same error message :
>>
>> cand...@can
34 matches
Mail list logo