[sage-support] Re: Sage 4.7.2 make failure on Thinkpad T-40 with Oneiric Ubuntu

2011-11-29 Thread Keshav Kini
The error message you see at the end of a failed build directs you to post 
to sage-devel, actually, so I guess it's supposed to go there.

-Keshav


Join us in #sagemath on irc.freenode.net !

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Installing latest sage

2011-11-29 Thread Eric Kangas
The testall function finished earlier then expected. I did have only
one time out error. The error listed:
-
The following tests failed:


sage -t  -force_lib "devel/sage/sage/sandpiles/sandpile.py" # Time
out
Total time for all tests: 19977.9 seconds
Please see /home/nooniensoong97/.sage//tmp/test.log for the complete
log from this test.
-

Is there a way to fix these time out errors?

On Nov 29, 7:12 pm, kcrisman  wrote:
> On Nov 29, 4:56 pm, Renan Birck Pinheiro 
> wrote:
>
> > 2011/11/29 Eric Kangas 
>
> > > Well for some reason when I am in the sage directory using the
> > > terminal I try calling up sage, and sage - testall this is what I get:
>
> > Try ./sage -testall (dot, slash, sage, space, -testall) within the sage
> > directory
>
> Sorry, since you got Sage to run, I figured this was obvious - my
> apologies.  Renan and Ivan are both right, of course.
>
> - kcrisman

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] bug in ZM_lll

2011-11-29 Thread Rolandb
Hi, I was kindly asked to report the following:

***   bug in ZM_lll, please report
Traceback (most recent call last):
  File "", line 1, in 
  File "_sage_input_65.py", line 10, in 
exec compile(u'open("___code___.py","w").write("# -*- coding:
utf-8 -*-\\n" +
_support_.preparse_worksheet_cell(base64.b64decode("ZGVlcHNlYXJjaDIoNSwzMCw1LDMwLCJvdWQiKQ=="),globals())
+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in 

  File "/tmp/tmpHdJkgh/___code___.py", line 3, in 
exec
compile(u'deepsearch2(_sage_const_5 ,_sage_const_30 ,_sage_const_5 
,_sage_const_30 ,"oud")
  File "", line 1, in 

  File "/tmp/tmpcN9xNe/___code___.py", line 33, in deepsearch2
nulkern=matrix(xplusy_macht+_sage_const_2 ,xplusy_macht,[[pq**i
for i in xrange(xplusy_macht)] for pq in
breuken]).integer_kernel().basis_matrix()
  File "matrix2.pyx", line 3598, in
sage.matrix.matrix2.Matrix.integer_kernel (sage/matrix/matrix2.c:
16843)
  File "matrix2.pyx", line 3449, in
sage.matrix.matrix2.Matrix.left_kernel (sage/matrix/matrix2.c:16326)
  File "matrix2.pyx", line 3292, in
sage.matrix.matrix2.Matrix.right_kernel (sage/matrix/matrix2.c:15924)
  File "matrix2.pyx", line 2911, in
sage.matrix.matrix2.Matrix.right_kernel_matrix (sage/matrix/matrix2.c:
14982)
  File "matrix_integer_dense.pyx", line 2330, in
sage.matrix.matrix_integer_dense.Matrix_integer_dense._right_kernel_matrix
(sage/matrix/matrix_integer_dense.c:18184)
  File "gen.pyx", line 7987, in sage.libs.pari.gen.gen.matkerint (sage/
libs/pari/gen.c:36310)
RuntimeError: Aborted

---
Explanation. I have a row of 7 rationals pq (in QQ), and I construct
aan VanDerMonde matrix (en.wikipedia.org/wiki/Vandermonde_matrix). The
row always contains [0,-1].

nulkern=matrix(xplusy_macht+_sage_const_2 ,xplusy_macht,[[pq**i for i
in xrange(xplusy_macht)] for pq in
breuken]).integer_kernel().basis_matrix()

I try to find the integer_kernel of the 7 by 5 matrix. Related is the
question on ASKSAGE ask.sagemath.org/question/941/is-there-a-routine-
to-find-a-integer-base

This is sufficient? I can rerun the calculations to find the hot spot,
but that will take a few days.

Roland

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: [sage-devel] Re: Sage 4.7.2 make failure on Thinkpad T-40 with Oneiric Ubuntu - maxima fails to build

2011-11-29 Thread Dima Pasechnik
Well, welcome to the bleeding edge development. :)
Oneiric is not currently supported by Sage, as you probably know. 
No, it's not something to do with debian packages, it's most certainly 
Sage's internal issue.
It could be an unusual combination of rather dated hardware and  very new 
OS release that 
causes this --- i.e. noone tests on such systems, hence the problem.

Please post a complete install.log somewhere (not here in the group, 
preferably to a webpage)

There was a report in this group of a success in installing Sage on Oneiric 
by using gcc-4.4 instead of gcc-4.6:
https://groups.google.com/d/msg/sage-devel/aL8b9phz3Xc/FKnKiihV3SMJ
Perhaps it's a way to go for you.



-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Installing latest sage

2011-11-29 Thread kcrisman


On Nov 29, 4:56 pm, Renan Birck Pinheiro 
wrote:
> 2011/11/29 Eric Kangas 
>
> > Well for some reason when I am in the sage directory using the
> > terminal I try calling up sage, and sage - testall this is what I get:
>
> Try ./sage -testall (dot, slash, sage, space, -testall) within the sage
> directory
>

Sorry, since you got Sage to run, I figured this was obvious - my
apologies.  Renan and Ivan are both right, of course.

- kcrisman

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Tests for convergence

2011-11-29 Thread Ignas Anikevicius
On 30/11/11 00:22, Dan Drake wrote:
> x, n = var('x n')
> a(n) = x^n # formula for the nth term
> assume(0 limit(a(n+1)/a(n), n=infinity)

Thanks very much, it works perfectly! I did not think of searching for
a limit function, however, I should have.

Thanks a lot!
I.

-- 
Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Tests for convergence

2011-11-29 Thread Dan Drake
On Tue, 29 Nov 2011 at 10:58PM +, Ignas Anikevicius wrote:
> I like sage a lot and I want to use it a lot as well, but sometimes my
> ignorance of the abilities of SAGE does not let me do that. I was
> wondering if there is any way of running convergence tests for
> infinite series in SAGE?

Well, if you have a formula for the nth coefficient of your series, you
can try using the ratio or root tests: 

x, n = var('x n')
a(n) = x^n   # formula for the nth term
assume(0http://mathsci.kaist.ac.kr/~drake
---


signature.asc
Description: Digital signature


[sage-support] Tests for convergence

2011-11-29 Thread Ignas Anikevicius
Dear list,

I like sage a lot and I want to use it a lot as well, but sometimes my
ignorance of the abilities of SAGE does not let me do that. I was
wondering if there is any way of running convergence tests for
infinite series in SAGE?

Cheers,
Ignas A.

-- 
Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Installing latest sage

2011-11-29 Thread Renan Birck Pinheiro
2011/11/29 Eric Kangas 

> Well for some reason when I am in the sage directory using the
> terminal I try calling up sage, and sage - testall this is what I get:
>
>
Try ./sage -testall (dot, slash, sage, space, -testall) within the sage
directory

-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
- Engenharia
Elétrica /UFSM 

http://renanbirck.blogspot.com / skype: renan.ee.ufsm / (55) 91433210

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Installing latest sage

2011-11-29 Thread Ivan Andrus
On Nov 29, 2011, at 10:52 PM, Eric Kangas wrote:

> Well for some reason when I am in the sage directory using the
> terminal I try calling up sage, and sage - testall this is what I get:
> 
> No command 'sage' found, did you mean:
> Command 'osage' from package 'graphviz' (main)
> Command 'save' from package 'atfs' (universe)
> Command 'page' from package 'tcllib' (universe)
> 
> However I am able to run Sage in Cantor without any problems. I take
> it sage is still building itself as I type this message up, or do you
> mean when I run sage -testall?

It sounds like you don't have the current directory in your PATH.  You could 
try specifying the directory explicitly like (assuming you are in the sage root 
directory):

./sage -testall

-Ivan

> On Nov 29, 10:23 am, kcrisman  wrote:
>> On Nov 29, 12:08 pm, Eric Kangas  wrote:
>> 
>>> Sage now works on my tablet. It took about 23 hours to compile, and I
>>> had no problems with connecting to the backend of sage on cantor.
>> 
>> That's awesome!
>> 
>> Do you think you could run
>> 
>> sage -testall
>> 
>> if you have a few free days to let your tablet just sit?  That could
>> be useful.
> 
> -- 
> 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://groups.google.com/group/sage-support
> URL: http://www.sagemath.org

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Installing latest sage

2011-11-29 Thread Eric Kangas
Well for some reason when I am in the sage directory using the
terminal I try calling up sage, and sage - testall this is what I get:

No command 'sage' found, did you mean:
 Command 'osage' from package 'graphviz' (main)
 Command 'save' from package 'atfs' (universe)
 Command 'page' from package 'tcllib' (universe)

However I am able to run Sage in Cantor without any problems. I take
it sage is still building itself as I type this message up, or do you
mean when I run sage -testall?


On Nov 29, 10:23 am, kcrisman  wrote:
> On Nov 29, 12:08 pm, Eric Kangas  wrote:
>
> > Sage now works on my tablet. It took about 23 hours to compile, and I
> > had no problems with connecting to the backend of sage on cantor.
>
> That's awesome!
>
> Do you think you could run
>
> sage -testall
>
> if you have a few free days to let your tablet just sit?  That could
> be useful.

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Evaluate real variable subtraction with same variable conjugate to zero

2011-11-29 Thread kcrisman


On Nov 29, 3:36 pm, Burcin Erocal  wrote:
> On Tue, 29 Nov 2011 13:14:36 -0700
>
>
>
>
>
>
>
>
>
> jrodri1...@gmail.com wrote:
> > Hi! I'm working with an expression involving imaginary exponentials
> > and their conjugates:
>
> > exp(i•k•x)
>
> > exp(i•k•x)*=exp(-i•k•x)
>
> >  However, when multiplying them together, I do not get the arguments
> > to evaluate to zero. My variables x and k are real, and I've told
> > sage to assume that they are real. But it will not evaluate:
>
> > exp(i•k•x)•(exp(i•k•x))*
>
> > as:
>
> > exp(i•k•x+(i•k•x)*)=exp(i•k•x+(i*•k*•x*))=exp(i•k•x+(-i•k•x))=exp(i•k•x-i•k 
> > •x)=exp(0)=1.
>
> > Any ideas?
>
> Try this:
>
> sage: var('x',domain=RR)
> x
> sage: var('k',domain=RR)
> k
> sage: exp(i*x*k)
> e^(I*k*x)
> sage: exp(i*x*k)*exp(-i*x*k)
> 1
>
> The assume() system is from maxima. Unfortunately, basic arithmetic with
> symbolic expressions doesn't know about these. It uses a different
> system as you can see.
>
> There must be a ticket to make these two assumption systems play nice,
> but I can't find it ATM.

I'm not sure about this.  I'm not even sure how compatible they would
be ...

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Evaluate real variable subtraction with same variable conjugate to zero

2011-11-29 Thread Burcin Erocal
On Tue, 29 Nov 2011 13:14:36 -0700
jrodri1...@gmail.com wrote:

> Hi! I'm working with an expression involving imaginary exponentials
> and their conjugates:
> 
> exp(i•k•x)
> 
> exp(i•k•x)*=exp(-i•k•x)
> 
>  However, when multiplying them together, I do not get the arguments
> to evaluate to zero. My variables x and k are real, and I've told
> sage to assume that they are real. But it will not evaluate:
> 
> exp(i•k•x)•(exp(i•k•x))*
> 
> as:
> 
> exp(i•k•x+(i•k•x)*)=exp(i•k•x+(i*•k*•x*))=exp(i•k•x+(-i•k•x))=exp(i•k•x-i•k•x)=exp(0)=1.
>  
> 
> Any ideas?

Try this:

sage: var('x',domain=RR)
x
sage: var('k',domain=RR)
k
sage: exp(i*x*k)
e^(I*k*x)
sage: exp(i*x*k)*exp(-i*x*k)
1


The assume() system is from maxima. Unfortunately, basic arithmetic with
symbolic expressions doesn't know about these. It uses a different
system as you can see.

There must be a ticket to make these two assumption systems play nice,
but I can't find it ATM.

Cheers,
Burcin

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Evaluate real variable subtraction with same variable conjugate to zero

2011-11-29 Thread Laurent

Il 29/11/2011 21:14, jrodri1...@gmail.com ha scritto:

Hi! I'm working with an expression involving imaginary exponentials and their 
conjugates:


Does it helps ?

sage: x=var('x')
sage: assume(x,'real')
sage: a=exp(I*x)
sage: a.trig_simplify()
e^(I*x)
sage: a.real_part()
e^(-imag_part(x))*cos(real_part(x))
sage: a.real_part().simplify_full()
cos(x)

Often making
a=a.real_part().simplify_full()+a.imaginary_part().simplify_full()
helps.
(maybe simplify_trig can replace simplify_full)

At my place I have
sage: b=a*a.conjugate()
sage: b
e^(I*x - I*conjugate(x))
sage: b.simplify_full()
1

Have a good night
Laurent

--
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Evaluate real variable subtraction with same variable conjugate to zero

2011-11-29 Thread jrodri14ii
Hi! I'm working with an expression involving imaginary exponentials and their 
conjugates:

exp(i•k•x)

exp(i•k•x)*=exp(-i•k•x)

 However, when multiplying them together, I do not get the arguments to 
evaluate to zero. My variables x and k are real, and I've told sage to assume 
that they are real. But it will not evaluate:

exp(i•k•x)•(exp(i•k•x))*

as:

exp(i•k•x+(i•k•x)*)=exp(i•k•x+(i*•k*•x*))=exp(i•k•x+(-i•k•x))=exp(i•k•x-i•k•x)=exp(0)=1.
 

Any ideas?

Thanks!

-Jaasiel

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Installing latest sage

2011-11-29 Thread kcrisman


On Nov 29, 12:08 pm, Eric Kangas  wrote:
> Sage now works on my tablet. It took about 23 hours to compile, and I
> had no problems with connecting to the backend of sage on cantor.
>

That's awesome!

Do you think you could run

sage -testall

if you have a few free days to let your tablet just sit?  That could
be useful.

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Installing latest sage

2011-11-29 Thread Eric Kangas
Sage now works on my tablet. It took about 23 hours to compile, and I
had no problems with connecting to the backend of sage on cantor.

On Nov 29, 8:13 am, Dima Pasechnik  wrote:
> Pentium M does MMX, SSE, SSE2. Which is kind of 10 years old. Things have
> moved on a lot, and
> keeps moving, see e.g.http://en.wikipedia.org/wiki/Advanced_Vector_Extensions

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Installing latest sage

2011-11-29 Thread Dima Pasechnik
Pentium M does MMX, SSE, SSE2. Which is kind of 10 years old. Things have 
moved on a lot, and
keeps moving, see e.g.
http://en.wikipedia.org/wiki/Advanced_Vector_Extensions

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: [sage-devel] Re: Sage 4.7.2 make failure on Thinkpad T-40 with Oneiric Ubuntu

2011-11-29 Thread Dima Pasechnik
Sorry, I was totally ignorant about the particular problem you had.
Basically, you will need to get an updated spkg for readline.

John already posted the link regading this on this thread:
https://groups.google.com/forum/#!searchin/sage-devel/readline$20configuring$20r/sage-devel/B7y-ntx13Os/m2kJoygRxMYJ

once again, sorry for wasting your time...
Dmitrii

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Hole in algorhitm

2011-11-29 Thread Artur

Dear Doug, Could You infrom me how I can increase precission in my SAGE?
Best wishes
Artur

W dniu 2011-11-29 05:20, D. S. McNeil pisze:

:-/ That's definitely a bug.  The precision used in
integral_points_with_bounded_mw_coeffs (100 bits) is too small to find
that solution.  Even bumping the precision to 120 bits suffices,
although that's probably the wrong approach:

[(436 : 559 : 1), (450 : 2925 : 1), (666 : 14589 : 1), (900 : 25425 :
1), (1150 : 37925 : 1), (1800 : 75825 : 1), (2619 : 133722 : 1),
(26154 : 4229667 : 1), (27675 : 4603950 : 1), (748476100 :
20477027135825 : 1)]

This is now http://trac.sagemath.org/sage_trac/ticket/12095


Doug



--
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org