[sage-support] Re: Problem with solve and complex numbers: incorrect answer

2011-03-31 Thread ancienthart
Would it be possible to add a post-maxima check to ensure the answers are in the same domain as the inputs? Joal Heagney -- 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

[sage-support] Re: need eigenvectors of complex matrix to arbitrary precision

2011-03-31 Thread achrzesz
Since GP/PARI default precision is 38 (on my system) (and I dont know how to set \p 100 from sage) it would be probably better to replace precision_digits=30 by precision_digits=38 On 30 Mar, 23:03, achrzesz achrz...@wp.pl wrote: # NO WARRANTY precision_digits=30 nop=5 # rank of matrix

[sage-support] Re: need eigenvectors of complex matrix to arbitrary precision

2011-03-31 Thread achrzesz
#NOT CHECKED precision_digits=100 nop=5 # rank of matrix MS_nop_comp=MatrixSpace(ComplexField(precision_digits),nop,nop) tmat=MS_nop_comp(0) # zero-ize the values ttdag=MS_nop_comp(0) for a in range(nop): for b in range(nop): tmat[a,b]=random()+I*random()

[sage-support] Re: need eigenvectors of complex matrix to arbitrary precision

2011-03-31 Thread achrzesz
Compare such version precision_digits=100 nop=5 # rank of matrix MS_nop_comp=MatrixSpace(ComplexField(precision_digits),nop,nop) tmat=MS_nop_comp.random_element() ttdag=tmat*tmat.conjugate().transpose() m=gp(ttdag) gp('default(realprecision,100)') ev=gp.mateigen(m).sage() print ev[:-1] On 31

Re: [sage-support] Abridged summary of sage-support@googlegroups.com - 13 Messages in 6 Topics

2011-03-31 Thread Dr. David Kirkby
On 03/31/11 05:44 AM, Roy Joshua wrote: Hi, I tried the suggestion to use the command SAGE64=yes export SAGE64 that was suggested as response to my last message by David Kirkby. (My last message was that I could not install sage-4.6.2 to a machine running Centos 5.5. This is a 64 bit machine

[sage-support] date call

2011-03-31 Thread clodemil
Hi all, Is it possible to call up the calendar date and time, to be used in, for instance, m=list(measurement,date) ? TIA Claude. -- 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

[sage-support] Re: date call

2011-03-31 Thread kcrisman
This could be useful:sage: import datetime sage: datetime.datetime.now() datetime.datetime(2011, 3, 31, 9, 13, 0, 932345) And there are lots of methods and string formatting one can do. See http://www.saltycrane.com/blog/2008/06/how-to-get-current-date-and-time-in/ But I'm sure there are even

[sage-support] Re: need eigenvectors of complex matrix to arbitrary precision

2011-03-31 Thread Ben123
Thanks for the implementation. It would have taken me a long time to figure that out. It appears the ev (eigenvectors) are returned, with the last one being normalized to have entries of unity. On Mar 31, 5:32 am, achrzesz achrz...@wp.pl wrote: Compare such version precision_digits=100 nop=5

[sage-support] Re: date call

2011-03-31 Thread achrzesz
sage: import time sage: time.asctime(time.localtime()) 'Thu Mar 31 15:36:30 2011' On 31 Mar, 15:15, kcrisman kcris...@gmail.com wrote: This could be useful:sage: import datetime sage: datetime.datetime.now() datetime.datetime(2011, 3, 31, 9, 13, 0, 932345) And there are lots of methods and

Re: [sage-support] date call

2011-03-31 Thread Dan Drake
On Thu, 31 Mar 2011 at 05:36AM -0700, clodemil wrote: Is it possible to call up the calendar date and time, to be used in, for instance, m=list(measurement,date) ? Python (and hence Sage) has a number of modules related to times and dates. See http://docs.python.org/library/ and search for time

Re: [sage-support] Abridged summary of sage-support@googlegroups.com - 13 Messages in 6 Topics

2011-03-31 Thread Dr. David Kirkby
On 03/31/11 05:44 AM, Roy Joshua wrote: Hi, I tried the suggestion to use the command SAGE64=yes export SAGE64 that was suggested as response to my last message by David Kirkby. (My last message was that I could not install sage-4.6.2 to a machine running Centos 5.5. This is a 64 bit machine

[sage-support] sage-4.6.1 on fedora 13: undefined symbol

2011-03-31 Thread Rex Dieter
dl'd sage-4.6.1-linux-64bit-fedora_release_13_goddard_-x86_64-Linux.tar.lzma , but get an undefined symbol when running it the first time, ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /opt/sage-4.6.1/local/lib/python2.6/site-

[sage-support] in_integral_domain not implemented for SR

2011-03-31 Thread Edgar Duéñez-Guzmán
Hello, I recently upgraded sage to the binary version 4.6.2 for Ubuntu i586, and ran into the following error: sage: (r,s,t,c,d,p,q) = var( 'r,s,t,c,d,p,q' ) sage: A = matrix( [ [r, -s, r, -s], [t, 0, t-p, -p], [r, -s-c, r, -s-d], [t, -c, t-q, -q-d] ] ) sage: A [ r -s r -s]

[sage-support] what's mpz_ function ?

2011-03-31 Thread tvn
hi, I try to check the src code of some function, for example gcd -- and in the src implementation I see references to mpz_gcd . What is mpz_* ? and how can I find it src code ? thanks -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this

Re: [sage-support] what's mpz_ function ?

2011-03-31 Thread Justin C. Walker
On Mar 31, 2011, at 14:45 , tvn wrote: hi, I try to check the src code of some function, for example gcd -- and in the src implementation I see references to mpz_gcd . What is mpz_* ? and how can I find it src code ? thanks Sounds like one of the multiprecision integer

Re: Re: [sage-support] what's mpz_ function ?

2011-03-31 Thread Martin Albrecht
On Friday 01 April 2011, Justin C. Walker wrote: On Mar 31, 2011, at 14:45 , tvn wrote: hi, I try to check the src code of some function, for example gcd -- and in the src implementation I see references to mpz_gcd . What is mpz_* ? and how can I find it src code ? thanks

[sage-support] Re: sage-4.6.1 on fedora 13: undefined symbol

2011-03-31 Thread Volker Braun
It was reported before that this build is mislabeled and probably for F14. You might want to compile the current version (Sage-4.6.2) from source. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to