[sage-support] build problem

2010-02-10 Thread Pasha Zusmanovich
Hello, When trying to build sage 4.3.2 on my DYI, highly customized linux machine (everything seems to be within requirements, I will be happy to provide any needed technical details) the compilation stops, after many hours, with the following message: sphinx-build -b html -d /usr/local/sage-4.3.

[sage-support] Re: Sage 4.3.1 notebook server exceptions

2010-02-10 Thread VictorMiller
I was using Safari. What I mean by the "server stopped responding" was that if I would type something into the notebook, it would just hang up. When I tried to refresh the page I got an error message saying that it couldn't reach that URL (I didn't save the exact message). Victor On Feb 11, 12:

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

2010-02-10 Thread VictorMiller
I'm pretty sure that Cornacchia's algorithm is part of Pari (though I don't remember what the function is called). Victor On Feb 9, 5:54 am, Alasdair 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 > >

Re: [sage-support] Sage 4.3.1 notebook server exceptions

2010-02-10 Thread William Stein
On Wed, Feb 10, 2010 at 9:34 PM, VictorMiller wrote: > I've been running Sage 4.3.1 on my macbook pro.  Today, the following > happened twice: > > The notebook server stopped responding.  When I looked at the console > I had the following error on it: > > 2010-02-10 23:02:21-0500 [HTTPChannel,86,1

[sage-support] Sage 4.3.1 notebook server exceptions

2010-02-10 Thread VictorMiller
I've been running Sage 4.3.1 on my macbook pro. Today, the following happened twice: The notebook server stopped responding. When I looked at the console I had the following error on it: 2010-02-10 23:02:21-0500 [HTTPChannel,86,127.0.0.1] /Applications/sage/ local/lib/python2.6/site-packages/tw

[sage-support] installation problem: termcap

2010-02-10 Thread Daniel Ribeiro
Hi, While installing sage-4.3.2 from source on ubuntu 9.04, I got a problem with termcap: "checking for string.h... eval: 1: Bad substitution". Any ideas on Full output error below: Host system uname -a: Linux fnord 2.6.28-18-generic #59-Ubuntu SMP Thu Jan 28 01:23:03 UTC 2010 i686 GNU/Linux ***

Re: [sage-support] Published worksheets

2010-02-10 Thread calcpage
3. I may, depending on how organized and motivated I am, try creating new worksheets and converting some of my old notes for calculus to worksheets. Currently, I'm using Stewart's "Calculus." I'd be happy to make these available to anyone, but I'm wondering if their is an appropriate namin

[sage-support] Published worksheets

2010-02-10 Thread Dana Ernst
I have a couple questions about published worksheets on sagenb.org. 1. I'm curious how editing a published worksheet actually works. Let's take Beezer's "Group Theory and SAGE: A Primer" as an example. This worksheet is listed among the published worksheets. If I am logged into sagenb.org, c

[sage-support] associated_primes broken with term order invlex

2010-02-10 Thread Stefan Boettner
Hello, since I changed to version 4.3.2 it seems that calling associated_primes() on an ideal of a polynomial ring that has term order 'invlex' is broken. Example: sage: R.=PolynomialRing(QQ,2,order='invlex') sage: R.ideal(x).associated_primes() ? // Not implemented for this ordering, please cha

Re: [sage-support] Re: Solve recurrences using Sage ?

2010-02-10 Thread David Joyner
On Wed, Feb 10, 2010 at 8:50 AM, Walking Randomly wrote: > Regarding namespace pollution.  Mathematica has thousands of function > names in it's global namespace but it never causes programmers a > problem because they have a convention.  All mathematica functions > start with a capital: Integrate

[sage-support] Re: Solve recurrences using Sage ?

2010-02-10 Thread Harald Schilly
On Feb 10, 2:48 pm, Nathann Cohen wrote: > I mentionned having to import simpy.*... nonono, rsolve should be a new sage function, inside of it it only imports the really necessary sympy classes. how is integrate(algorithm='sympy') done? i think that's a good starting point. see calculus/calculus.

[sage-support] cookies and Sage Notebook

2010-02-10 Thread Dana Ernst
Why do I keep getting the following message when attempting to log into the Sage Notebook (sagenb.org)? Please enable cookies or delete all Sage cookies and localhost cookies in your browser and try again. I deleted all of my cookies at the end of the day yesterday and just tried to log into (

Re: [sage-support] Re: Solve recurrences using Sage ?

2010-02-10 Thread Robert Schwarz
I think you always mean from sympy import * Don't get it confused with simpy, which is another software package for simulation (versus symbolic computation). On 02/10/2010 02:48 PM, Nathann Cohen wrote: > I mentionned having to import simpy.*, which included classes like > Symbol or Function, a

[sage-support] Re: Solve recurrences using Sage ?

2010-02-10 Thread Walking Randomly
Regarding namespace pollution. Mathematica has thousands of function names in it's global namespace but it never causes programmers a problem because they have a convention. All mathematica functions start with a capital: Integrate, Plot, ListPlot etc. So, stick to lower case variables and you d

Re: [sage-support] Re: Solve recurrences using Sage ?

2010-02-10 Thread Nathann Cohen
I mentionned having to import simpy.*, which included classes like Symbol or Function, and having to use those types. I wouldn't personally mind if I had to import rsolve from some Sage class... Why should it necessarily imported by default (namespace kept clean)? Nathann -- To post to this grou

[sage-support] understanding functions

2010-02-10 Thread Thomas Scofield
I should have said a couple more things. First, when integrand evaluates to something other than the zero function (or, at least, to a non-constant function), the original code var('x,y,t') F=vector([x^2,x*y]) r=vector([cos(t), sin(t)]) tstart=0 tend=2*pi integrand = F(x=

[sage-support] understanding functions

2010-02-10 Thread Thomas Scofield
I borrowed/adapted the following code for carrying out a line integral from a published notebook var('x,y,t') F=vector([x^2,x*y]) r=vector([cos(t), sin(t)]) tstart=0 tend=2*pi integrand = F(x=r[0], y=r[1])*diff(r,t) As one may observe, integrand is identically 0. The idea

[sage-support] Re: Reduced normal form of a polynomial modulo an ideal not unique?

2010-02-10 Thread Marshall Hampton
I don't usually work over such fields but it looks like a bug to me. (y^3-y^2+1).quo_rem(x^2 + y^2 - 1) and (x^2+y^3).quo_rem(x^2 + y^2 - 1) both give the same answer for the remainder (-x^2*y + x^2 + y) which I think is what the reduce method should be returning. -Marshall Hampton On Feb 9, 4:31

[sage-support] Re: Solve recurrences using Sage ?

2010-02-10 Thread Harald Schilly
On Feb 10, 11:16 am, Simon King wrote: > sage: f = y(n+2) - y(n+1) - y(n) ahh ... ok. now i get it ^^ When I look into sympy/solvers/recurr.py right the first thing rsolve does is to compute lhs - rhs. So, f = y(n) == y(n-1) - y(n-2) *should* work. But it doesn't, because that equation doesn't ge

Re: [sage-support] Re: Solve recurrences using Sage ?

2010-02-10 Thread Minh Nguyen
Hi Nathann, On Wed, Feb 10, 2010 at 9:25 PM, Nathann Cohen wrote: > Well, for example : > > - You need to import simpy to use it One either directly import the functionalities of a third-party package, or have them imported automatically at Sage startup. But consider for a moment, the implicatio

Re: [sage-support] Re: Solve recurrences using Sage ?

2010-02-10 Thread Nathann Cohen
Well, for example : - You need to import simpy to use it - For this reason, it does not appear in Sage's documentation - It could be good to be able to define functions and variables as they usually are in Sage and not through Simpy types - Only define one function... I'd have enjoyed the ability

[sage-support] Re: Solve recurrences using Sage ?

2010-02-10 Thread Simon King
Hi Nathann! Your were faster than I ... :-) On Feb 10, 10:13 am, Nathann Cohen wrote: > Their interface is a bit clumsy though, I admit... It could be good to > be able to do it directly in Sage :-) But how would a better interface look like? I mean, you define a recurrence relation f, involvi

[sage-support] Re: Solve recurrences using Sage ?

2010-02-10 Thread Simon King
On Feb 10, 9:55 am, Harald Schilly wrote: > > For example, how could I have Sage give me the general formula of > > fibonacci's sequence ? :-) > > I wasn't able to do that one Perhaps like that: sage: from sympy import * sage: y = Function('y') sage: n = Symbol('n',integer=True) sage: f = y(n+

Re: [sage-support] Re: Solve recurrences using Sage ?

2010-02-10 Thread Nathann Cohen
sage: f = y(n+2) - y(n+1) - y(n) sage: rsolve(f, y(n), { y(0):1, y(1):1 }) (1/2 + 5**(1/2)/2)**n/2 + (1/2 - 5**(1/2)/2)**n/2 - 5**(1/2)*(1/2 - 5**(1/2)/2)**n/10 + 5**(1/2)*(1/2 + 5**(1/2)/2)**n/10 That's perfect !! Thank you very much !! :-) Their interface is a bit clumsy though, I admit... It c

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

2010-02-10 Thread Giovanni Lanzani
Jason Grout writes: > > > So which of your "if" conditions is true when the input is > the variable x? I think that's the problem---none of the > conditions is true, so angle is never set, so you are trying > to return an undefined variable. > > > The find_root function takes in just a function

[sage-support] Re: Solve recurrences using Sage ?

2010-02-10 Thread Harald Schilly
On Feb 10, 9:54 am, Nathann Cohen wrote: > I just learnt about the "rsolve" function from Maple, which seems to > give the formula of sequences defined by recurrence.. Is there a > similar function in Sage ? sympy has rsolve > > For example, how could I have Sage give me the general formula of >

Re: [sage-support] Solve recurrences using Sage ?

2010-02-10 Thread Nathann Cohen
Thank you ! :-) Nathann On 10 February 2010 09:58, Mike Hansen wrote: > On Wed, Feb 10, 2010 at 12:54 AM, Nathann Cohen > wrote: >> Hello everybody >> >> I just learnt about the "rsolve" function from Maple, which seems to >> give the formula of sequences defined by recurrence.. Is there

Re: [sage-support] Solve recurrences using Sage ?

2010-02-10 Thread Mike Hansen
On Wed, Feb 10, 2010 at 12:54 AM, Nathann Cohen wrote: > Hello everybody > > I just learnt about the "rsolve" function from Maple, which seems to > give the formula of sequences defined by recurrence.. Is there a > similar function in Sage ? I don't believe there is anything in the Sage libr

[sage-support] Solve recurrences using Sage ?

2010-02-10 Thread Nathann Cohen
Hello everybody I just learnt about the "rsolve" function from Maple, which seems to give the formula of sequences defined by recurrence.. Is there a similar function in Sage ? For example, how could I have Sage give me the general formula of fibonacci's sequence ? :-) Thank you very much !