[sage-support] Re: plotting and float

2009-09-01 Thread Robert Bradshaw
On Sep 1, 2009, at 8:58 PM, William Cauchois wrote: > It seems to me that the error comes from feeding a function which uses > i into fast_float (called by the plotting functions to compile the > function to be plotted into an optimized form). I tried a simpler > function using i and got the same

[sage-support] Re: integrate(x^n, x) not printing correctly in notebook

2009-09-01 Thread Dan Drake
Ack! I checked with 4.1.1 and everything seems to work (except that it won't print a pi symbol when typesetting is on, but that's not a big deal). So move along, nothing to see here... Dan -- --- Dan Drake - KAIST Department of Mathematical Sciences --- http://mathsci.kaist.ac.kr/~dr

[sage-support] integrate(x^n, x) not printing correctly in notebook

2009-09-01 Thread Dan Drake
The following sequence of commands in the notebook... x = var('x') n = var('n') assume(n>0) integrate(x^n, x) ...results in "n+1" if I don't have the "Typeset" box checked, and if I do have it checked, I sometimes get "\newcommand{\Bold}[1]{\mathbf{#1}}n + 1" and I sometimes get "

[sage-support] Re: Trouble with Greek characters

2009-09-01 Thread linuxgus
Thank you, Jason! Your guess was absolutely correct! I am running 64- bit Firefox 3.5.2 on Suse 11.1, with an upgraded kernel 2.6.28. Yes, John, you are right! I forgot to mention my OS and browser. Thanks to both of you for the help. Replacing the jsmath fonts, per Jason's recommendation abo

[sage-support] Re: sage -t

2009-09-01 Thread Minh Nguyen
Hi Jan, On Wed, Sep 2, 2009 at 2:31 PM, Jan Groenewald wrote: > Is there a ticket to fix this? .sage sounds good. This issue is now ticket #6861 http://trac.sagemath.org/sage_trac/ticket/6861 -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ To post to this

[sage-support] Re: sage -t

2009-09-01 Thread Jan Groenewald
Hi On Tue, Sep 01, 2009 at 06:33:59PM -0700, William A. Stein wrote: > Note that this should be considered a workaround. It should be > considered a bug that users without write permissions to the Sage > install directory can't test their scripts. > It would be much better for Sage to use te

[sage-support] Re: sage -t

2009-09-01 Thread Jan Groenewald
Hi On Wed, Sep 02, 2009 at 11:24:25AM +1000, Minh Nguyen wrote: > > Is there then any control on the space used? If they did have write (unadvisable) they could fill the disk space with logs. Jan -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ --~--~-~--~~

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Robert Bradshaw
On Sep 1, 2009, at 12:16 PM, Mikie wrote: > I took out the eval and for some reason it is working. > Robert, this is function in my API (AlgCalc) > http://pirsqrt.com:1843/ > If I would give it to you would you show me how to get JSmath to > work? I have talked to you before. You said you were

[sage-support] Re: plotting and float

2009-09-01 Thread William Cauchois
It seems to me that the error comes from feeding a function which uses i into fast_float (called by the plotting functions to compile the function to be plotted into an optimized form). I tried a simpler function using i and got the same error: sage: plot3d(x + y + i, (x, 0, 1), (y, 0, 1)) Traceb

[sage-support] Re: Problem with simplify

2009-09-01 Thread Mani chandra
Mani chandra wrote: > Hi, > > There seems to be some issue with "simplify" when used in the > following manner: > > sage: var('x, a, b') > (x, a, b) > sage: x = a + I*b > sage: x.conjugate() > conjugate(a) - I*conjugate(b) > sage: x.conjugate().simplify() > a - I*b > > Aren't (a, b) complex b

[sage-support] Problem with simplify

2009-09-01 Thread Mani chandra
Hi, There seems to be some issue with "simplify" when used in the following manner: sage: var('x, a, b') (x, a, b) sage: x = a + I*b sage: x.conjugate() conjugate(a) - I*conjugate(b) sage: x.conjugate().simplify() a - I*b Aren't (a, b) complex by default?, then why is SAGE giving out a - I

[sage-support] Re: sage -t

2009-09-01 Thread William A. Stein
On Sep 1, 2009, at 6:24 PM, Minh Nguyen wrote: > > Hi Jan, > > On Tue, Sep 1, 2009 at 11:37 PM, Jan Groenewald wrote: > > > >> Is "sage -t" used for testing one's own code? > > Yes. > > >> Should /usr/local/src/sage-4.1.1/tmp/tmp be world-writeable? > > No since from a security point of view yo

[sage-support] Re: Trouble with Greek characters

2009-09-01 Thread Jason Grout
linuxgus wrote: > Hello all. > > Here is a simple three-liner in notebook: > > r=var('rho') > A=matrix(2,[sqrt(3), 1, -1, sqrt(3)])/2 > R=matrix(2,[1,r,r,1]) > show( simplify(expand(A*R*A.transpose())) ) > > It does the math correctly, but instead of displaying actual rhos > ( ρ ) in the fina

[sage-support] Re: sage -t

2009-09-01 Thread Minh Nguyen
Hi Jan, On Tue, Sep 1, 2009 at 11:37 PM, Jan Groenewald wrote: > Is "sage -t" used for testing one's own code? Yes. > Should /usr/local/src/sage-4.1.1/tmp/tmp be world-writeable? No since from a security point of view you don't want regular users to write anything there. Think of that tmp

[sage-support] Re: please, help on installation

2009-09-01 Thread Afonso Henriques Silva Leite
Ok mr. Nguyen. I will try it. Thank you. On Wed, 2009-09-02 at 10:21 +1000, Minh Nguyen wrote: > Hi Afonso, > > On Wed, Sep 2, 2009 at 5:18 AM, Afonso Henriques Silva > Leite wrote: > > > > I downloaded sage-4.1.1-linux-Ubuntu_9.04-i686-Linux.tar.gz to my > > desktop and untar it there. My exper

[sage-support] Re: please, help on installation

2009-09-01 Thread Afonso Henriques Silva Leite
Thanks in advance! I will try this tomorrow. On Tue, 2009-09-01 at 17:23 -0400, David Joyner wrote: > On Tue, Sep 1, 2009 at 3:18 PM, Afonso Henriques Silva > Leite wrote: > > > > I downloaded sage-4.1.1-linux-Ubuntu_9.04-i686-Linux.tar.gz to my > > desktop and untar it there. My experience with

[sage-support] Re: Trouble with Greek characters

2009-09-01 Thread John H Palmieri
On Sep 1, 5:19 pm, linuxgus wrote: > Hello all. > > Here is a simple three-liner in notebook: > > r=var('rho') > A=matrix(2,[sqrt(3), 1, -1, sqrt(3)])/2 > R=matrix(2,[1,r,r,1]) > show(  simplify(expand(A*R*A.transpose()))  ) > > It does the math correctly, but instead of displaying actual rhos >

[sage-support] Re: please, help on installation

2009-09-01 Thread Minh Nguyen
Hi Afonso, On Wed, Sep 2, 2009 at 5:18 AM, Afonso Henriques Silva Leite wrote: > > I downloaded sage-4.1.1-linux-Ubuntu_9.04-i686-Linux.tar.gz to my > desktop and untar it there. My experience with linux is a little > limited. > The readme file says that if a binary file was downloaded, it was on

[sage-support] Trouble with Greek characters

2009-09-01 Thread linuxgus
Hello all. Here is a simple three-liner in notebook: r=var('rho') A=matrix(2,[sqrt(3), 1, -1, sqrt(3)])/2 R=matrix(2,[1,r,r,1]) show( simplify(expand(A*R*A.transpose())) ) It does the math correctly, but instead of displaying actual rhos ( ρ ) in the final matrix, it displays accented capital

[sage-support] Re: please, help on installation

2009-09-01 Thread David Joyner
On Tue, Sep 1, 2009 at 3:18 PM, Afonso Henriques Silva Leite wrote: > > I downloaded sage-4.1.1-linux-Ubuntu_9.04-i686-Linux.tar.gz to my > desktop and untar it there. My experience with linux is a little > limited. ... > I need a lot more information than these read me files... > Can you compi

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Mikie
I took out the eval and for some reason it is working. Robert, this is function in my API (AlgCalc) http://pirsqrt.com:1843/ If I would give it to you would you show me how to get JSmath to work? I have talked to you before. You said you were too busy. I have loaded load.js, but when it goes fo

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Mikie
Yes, Robert eval is doing the rounding. How do I fix it? On Sep 1, 12:31 pm, Mikie wrote: > I have tried SR.  I get a malformed value.  Yes, I understand the > problem with eval.  Do you have any suggestions on how to get the > right value into maxima.solve? > > On Sep 1, 11:32 am, Robert Brads

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Mikie
I have tried SR. I get a malformed value. Yes, I understand the problem with eval. Do you have any suggestions on how to get the right value into maxima.solve? On Sep 1, 11:32 am, Robert Bradshaw wrote: > On Tue, 1 Sep 2009, Mikie wrote: > > > When I run the server with the function above and

[sage-support] please, help on installation

2009-09-01 Thread Afonso Henriques Silva Leite
I downloaded sage-4.1.1-linux-Ubuntu_9.04-i686-Linux.tar.gz to my desktop and untar it there. My experience with linux is a little limited. The readme file says that if a binary file was downloaded, it was only necessary to print ./sage command to get things ok, but it wasn't that easy. When I use

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Robert Bradshaw
On Tue, 1 Sep 2009, Mikie wrote: > > When I run the server with the function above and the following string > from a text box I get > [y=-1,x=0]. The string is "[3*x-y-1,x+(1/3)*y]" > > It is changing the input value to [3*x-y-1,x] 1/3 = 0 in Python. Also, I hope you realize how dangerous eval(

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Mikie
When I run the server with the function above and the following string from a text box I get [y=-1,x=0]. The string is "[3*x-y-1,x+(1/3)*y]" It is changing the input value to [3*x-y-1,x] On Sep 1, 10:38 am, Mikie wrote: > Sorry, wrong function > > def MSolveSys(syss): >    eqns=eval(syss) >  

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Mikie
Sorry, wrong function def MSolveSys(syss): eqns=eval(syss) solns=maxima.solve(eqns) return solns On Sep 1, 10:31 am, Jason Grout wrote: > Robert Bradshaw wrote: > > On Sep 1, 2009, at 9:17 AM, Mikie wrote: > > >> Here is function I am using to solve systems of linear equations. > > >>

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Jason Grout
Robert Bradshaw wrote: > On Sep 1, 2009, at 9:17 AM, Mikie wrote: > >> Here is function I am using to solve systems of linear equations. >> >> def MSolveSys(syss): >>eqns=eval(syss) >>solns=maxima.solve(syss) >>return solns >> >> Works great in the notebook, but when I put it in a Pyt

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Jason Grout
Mikie wrote: > Here is function I am using to solve systems of linear equations. > > def MSolveSys(syss): >eqns=eval(syss) >solns=maxima.solve(syss) >return solns > > Works great in the notebook, but when I put it in a Python script it > rounds the coeficients of the variables and th

[sage-support] Re: A weird exception?

2009-09-01 Thread William Stein
On Tue, Sep 1, 2009 at 9:23 AM, Rolandb wrote: > > > > On 1 sep, 11:08, Robert Bradshaw wrote: > > On Aug 29, 2009, at 11:05 PM, Rolandb wrote: > > > > > Hi, > > > > > Using math.log has a disadvantage; it is less accurate. > > > > > sage: print n(math.log(2),100) > > > sage: print n(log(2),100)

[sage-support] Re: A weird exception?

2009-09-01 Thread Robert Bradshaw
On Sep 1, 2009, at 9:23 AM, Rolandb wrote: > On 1 sep, 11:08, Robert Bradshaw wrote: >> On Aug 29, 2009, at 11:05 PM, Rolandb wrote: >> >>> Hi, >> >>> Using math.log has a disadvantage; it is less accurate. >> >>> sage: print n(math.log(2),100) >>> sage: print n(log(2),100) >>> 0.693147180559945

[sage-support] Re: A weird exception?

2009-09-01 Thread Rolandb
On 1 sep, 11:08, Robert Bradshaw wrote: > On Aug 29, 2009, at 11:05 PM, Rolandb wrote: > > > Hi, > > > Using math.log has a disadvantage; it is less accurate. > > > sage: print n(math.log(2),100) > > sage: print n(log(2),100) > > 0.69314718055994528622676398300 > > 0.693147180559945309417232121

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Robert Bradshaw
On Sep 1, 2009, at 9:17 AM, Mikie wrote: > > Here is function I am using to solve systems of linear equations. > > def MSolveSys(syss): >eqns=eval(syss) >solns=maxima.solve(syss) >return solns > > Works great in the notebook, but when I put it in a Python script it > rounds the coefic

[sage-support] Maxima Solve sys

2009-09-01 Thread Mikie
Here is function I am using to solve systems of linear equations. def MSolveSys(syss): eqns=eval(syss) solns=maxima.solve(syss) return solns Works great in the notebook, but when I put it in a Python script it rounds the coeficients of the variables and thus produces bad solutions. Is

[sage-support] Re: Problem with Notebook

2009-09-01 Thread William Stein
On Tue, Sep 1, 2009 at 7:29 AM, Koch Peer-Joachim < koch.peerjoac...@googlemail.com> wrote: > Hi, > > we are running a sage notebook on a pc in our network. Sage is running > under a dedicated uid. > We had to restart the server and I've restarted sage and the notebook. > However all worksheets a

[sage-support] Problem with Notebook

2009-09-01 Thread Koch Peer-Joachim
Hi, we are running a sage notebook on a pc in our network. Sage is running under a dedicated uid. We had to restart the server and I've restarted sage and the notebook. However all worksheets are now gone. All the files seem's to be there, but nothing is shown after a restart. What must be done

[sage-support] Re: sage -t

2009-09-01 Thread Jan Groenewald
Hi All, I have a system-wide sage install for all users. The source lives in /usr/local/src and all of it is owned by root.root. I chown it after install so that it does not have another user's permissions. A user had this problem: On Tue, Sep 01, 2009 at 02:41:54PM +0200, Dirk Laurie wrote: >

[sage-support] Re: A weird exception?

2009-09-01 Thread Robert Bradshaw
On Aug 29, 2009, at 11:05 PM, Rolandb wrote: > Hi, > > Using math.log has a disadvantage; it is less accurate. > > sage: print n(math.log(2),100) > sage: print n(log(2),100) > 0.69314718055994528622676398300 > 0.69314718055994530941723212146 Yes, it is. Accuracy vs. speed is a common tradeoff on

[sage-support] Re: Evaluation of time spent on each instruction...

2009-09-01 Thread Robert Bradshaw
On Sep 1, 2009, at 1:34 AM, Nathann Cohen wrote: > Hello everybody !!! > > I would like to test the functions I write to learn which > instructions take most of the time, and if possible find a way > around.. There may not be some tool for this in Sage, but perhaps > it already exists for P

[sage-support] Evaluation of time spent on each instruction...

2009-09-01 Thread Nathann Cohen
Hello everybody !!! I would like to test the functions I write to learn which instructions take most of the time, and if possible find a way around.. There may not be some tool for this in Sage, but perhaps it already exists for Python Do you know about such a thing ? :-) Nathann --~--~-