Re: [sage-support] Question on sage -upgrade

2010-02-09 Thread Stan Schymanski
I had a similar problem, in a directory where I had not applied any patches previously, so it seems like a problem with 4.3.2. I actually randomly answered no and yes, whichever allowed me to finish the upgrade. No problems so far, but I'd like to know what the possible consequences are, too.

Re: [sage-support] Question on sage -upgrade

2010-02-09 Thread Minh Nguyen
Hi Simon, On Tue, Feb 9, 2010 at 1:20 AM, Simon King simon.k...@nuigalway.ie wrote: Hi! I just upgraded sage 4.3.1 to sage 4.3.2. In sage 4.3.1, there were a couple of patches (from various tickets), but I went back to the unpatched state, by hg_sage.update(originalversionnumber). The

Re: [sage-support] Sage on localhost:8000 does not calculate

2010-02-09 Thread Dr. David Kirkby
Andreas Tille wrote: 2010/2/8 Dr. David Kirkby david.kir...@onetel.net: The ssh keys are important and has nothing to do with http, or even https. Sure. I'm so far familiar with Linux and different protokolls. The basic idea is that the server process should run as one user, and the data

Re: [sage-support] Re: [sage-edu] Installing SAGE 4.3.1 on Fedora 12 with x86_64

2010-02-09 Thread Jaap Spies
calcp...@aol.com wrote: OK, I did yum search gfortran* which returned gcc-gfortran so I did yum install gcc-fortran which installed a number of things including libgfortran However, when I use a shell to enter the sage directory (that I renamed sage431) created from extracting the lzma file

Re: [sage-support] Sage on localhost:8000 does not calculate

2010-02-09 Thread Andreas Tille
2010/2/9 Dr. David Kirkby david.kir...@onetel.net: I can sort of understand that, though I would have expected the restriction to only apply to the $HOME/.ssh directory, which should not even be readable by your group. I stumbled into this trap at a previous time and it took me several hours

[sage-support] Re: Solving a^2+n*b^2

2010-02-09 Thread Alasdair
Do a google search on Cornacchia's algorithm. Shouldn't be too hard to program in Sage (if it isn't there already). Alasdair On Feb 8, 4:07 pm, Rolandb rola...@planet.nl wrote: Thanks William, Actually I try to solve it for different x and n. A typical example of (x,n) is: %time

[sage-support] find_root: why is this root not found?

2010-02-09 Thread Giovanni Lanzani
Dear all I have the following sage code sage: gamma,r,gangle,dz2,Nstep,Nrib,b=var('gamma,r,gangle,dz2,Nstep,Nrib,b') sage: a=11.5; b=6;#this is fixed sage: Nstep=2;Nrib=5;Diam=33;gangle=30*2*3.1415/360;gamma=40*0.33+20*0.33; sage: #these have all to be changed when using different structure

[sage-support] Re: find_root: why is this root not found?

2010-02-09 Thread Giovanni Lanzani
ma...@mendelu.cz ma...@mendelu.cz writes: On 9 ún, 11:22, Giovanni Lanzani ulisses...@gmail.com wrote: Dear all I have the following sage code sage: gamma,r,gangle,dz2,Nstep,Nrib,b=var('gamma,r,gangle,dz2,Nstep,Nrib,b') sage: a=11.5; b=6;#this is fixed sage:

[sage-support] matrices with group algebra entries ?

2010-02-09 Thread Pierre
Hi all, this creates an error : sage: G= SymmetricGroup(5) sage: A= GroupAlgebra(G) sage: x, y= G.gens() sage: A ( A(x) ) ... TypeError: Don't know how to create an element of Group algebra of group SymmetricGroup(5) over base ring Integer Ring from (1,2,3,4,5) although A(x) works. I have tried

[sage-support] Viewing graphics files

2010-02-09 Thread kcrisman
Dear support, Is there a command (perhaps I'm just blanking) for viewing a graphics *file*, as opposed to a graphics *object*, in Sage? View and show don't seem to support this, but maybe I'm missing something obvious. Thanks! - kcrisman -- To post to this group, send email to

[sage-support] Re: Viewing graphics files

2010-02-09 Thread Harald Schilly
obvious way: html('img src=%s/' % 'http://sagemath.org/pix/sage_logo_new.png') ;) -- 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

[sage-support] Re: Viewing graphics files

2010-02-09 Thread kcrisman
True, and I appreciate the emoticon, but how about 'natively'? An example for why I want this is to 'show' a graphics file created by some package in Sage which is not matplotlib or one of its friends... On Feb 9, 1:02 pm, Harald Schilly harald.schi...@gmail.com wrote: obvious way: html('img

[sage-support] Get notebook cell path from inside the cell

2010-02-09 Thread kcrisman
Dear support, Suppose I want to refer to a file in a notebook cell directory from inside that cell. How do I access that path 'easily'? os.path.abspath('.') seems to not do what I expect, but just referring directly to the file also raises an error. I would use Cell.directory() or Cell.id() but

[sage-support] Re: find_root: why is this root not found?

2010-02-09 Thread ma...@mendelu.cz
findroot expects function, not equation try sage: find_root(erseno(x),2,10,xtol=0.01) does this work? Robert On 9 ún, 15:54, Giovanni Lanzani ulisses...@gmail.com wrote: ma...@mendelu.cz ma...@mendelu.cz writes: On 9 ún, 11:22, Giovanni Lanzani ulisses...@gmail.com wrote: Dear all I

[sage-support] indicator functions

2010-02-09 Thread zsharon
Hello, I'm looking at convolution products of Lebesgue integrable functions, and to get a better visualization, I want to compute some convolutions of indicator functions. So, want to have a function f:R-R defined by f(x)=1 when x \in [0,1], f(x)=0 when x \notin [0,1], and, I need the function

Re: [sage-support] Get notebook cell path from inside the cell

2010-02-09 Thread William Stein
On Tue, Feb 9, 2010 at 10:17 AM, kcrisman kcris...@gmail.com wrote: Dear support, Suppose I want to refer to a file in a notebook cell directory from inside that cell.  How do I access that path 'easily'? os.path.abspath('.') seems to not do what I expect, but just referring directly to the

[sage-support] Re: find_root: why is this root not found?

2010-02-09 Thread ma...@mendelu.cz
sage: def theta(dz): ...       angle=0; ...       if 0=dz2*r*cot(gangle) : angle= 2*arcsin(dz*tan(gangle)/2/r); ...       if 2*r*cot(gangle)= dz 2*2*r*cot(gangle) : angle= 2*arcsin((dz-2*r*cot(gangle))/(cot(gangle)*2*r)) - pi; ...       if 2*2*r*cot(gangle)= dz 4*2*r*cot(gangle) : angle=

[sage-support] Re: Get notebook cell path from inside the cell

2010-02-09 Thread kcrisman
On Feb 9, 3:02 pm, William Stein wst...@gmail.com wrote: On Tue, Feb 9, 2010 at 10:17 AM, kcrisman kcris...@gmail.com wrote: Dear support, Suppose I want to refer to a file in a notebook cell directory from inside that cell.  How do I access that path 'easily'? os.path.abspath('.')

Re: [sage-support] indicator functions

2010-02-09 Thread David Joyner
On Tue, Feb 9, 2010 at 2:06 PM, zsharon zacherysha...@gmail.com wrote: Hello, I'm looking at convolution products of Lebesgue integrable functions, and to get a better visualization, I want to compute some convolutions of indicator functions. So, want to have a function f:R-R defined by

[sage-support] %time

2010-02-09 Thread finotti
Dear all, Cells starting with %time stopped working with 4.3.2. (It works with 4.3.1.) Is it no long supported or is it a bug? (time still works with the command line.) Running on Linux 32-bit, ubuntu binary. Thanks, Luis -- To post to this group, send email to

[sage-support] Re: indicator functions

2010-02-09 Thread zsharon
What is wrong with this? Thanks for replying. Well, the indicator function I want should have f(1)=1, not f(1)=1/2. It would be nice to be able to define the indicator function correctly, but since I'm integrating that's not really a problem. I can integrate the indicator functions just

[sage-support] Re: indicator functions

2010-02-09 Thread zsharon
But convolutions are already implemented for functions in the Piecewise class. Is there a problem you were having with that? The only convolution I found in the reference manual is for lists only. Can you link me to a reference that includes convolutions for the Piecewise class? For what

[sage-support] Re: find_root: why is this root not found?

2010-02-09 Thread Giovanni Lanzani
ma...@mendelu.cz ma...@mendelu.cz writes: sage: def theta(dz): ...       angle=0; ...       if 0=dz2*r*cot(gangle) : angle= 2*arcsin(dz*tan(gangle)/2/r); ...       if 2*r*cot(gangle)= dz 2*2*r*cot(gangle) : angle= 2*arcsin((dz-2*r*cot(gangle))/(cot(gangle)*2*r)) - pi; ...       if

Re: [sage-support] Re: indicator functions

2010-02-09 Thread David Joyner
On Tue, Feb 9, 2010 at 6:08 PM, zsharon zacherysha...@gmail.com wrote: But convolutions are already implemented for functions in the Piecewise class. Is there a problem you were having with that? The only convolution I found in the reference manual is for lists only.  Can you link me to a

[sage-support] symbolic not printing NaN

2010-02-09 Thread Jason Grout
Here is a very confusing printing result, where symbolics seems to ignore the NaN until trying to numerically approximating something: This is published in http://sagenb.org/home/pub/1555/, and comes from a current thread on sage-support. The NaN in a below goes away if I comment out the

[sage-support] Re: find_root: why is this root not found?

2010-02-09 Thread Jason Grout
On 02/09/2010 04:10 PM, Giovanni Lanzani wrote: ma...@mendelu.czma...@mendelu.cz writes: sage: def theta(dz): ... angle=0; ... if 0=dz2*r*cot(gangle) : angle= 2*arcsin(dz*tan(gangle)/2/r); ... if 2*r*cot(gangle)= dz 2*2*r*cot(gangle) : angle=

[sage-support] Re: Solving a^2+n*b^2

2010-02-09 Thread Rolandb
Alasdair, Thanks! On 9 feb, 11:54, Alasdair amc...@gmail.com wrote: Do a google search on Cornacchia's algorithm.  Shouldn't be too hard to program in Sage (if it isn't there already). Alasdair On Feb 8, 4:07 pm, Rolandb rola...@planet.nl wrote: Thanks William, Actually I try to solve

Re: [sage-support] Re: Get notebook cell path from inside the cell

2010-02-09 Thread Robert Bradshaw
On Feb 9, 2010, at 12:29 PM, kcrisman wrote: On Feb 9, 3:02 pm, William Stein wst...@gmail.com wrote: On Tue, Feb 9, 2010 at 10:17 AM, kcrisman kcris...@gmail.com wrote: Dear support, Suppose I want to refer to a file in a notebook cell directory from inside that cell. How do I access

Re: [sage-support] Re: Get notebook cell path from inside the cell

2010-02-09 Thread William Stein
On Tue, Feb 9, 2010 at 10:03 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Feb 9, 2010, at 12:29 PM, kcrisman wrote: On Feb 9, 3:02 pm, William Stein wst...@gmail.com wrote: On Tue, Feb 9, 2010 at 10:17 AM, kcrisman kcris...@gmail.com wrote: Dear support, Suppose I want to