Re: [sage-support] Re: reg SAGE

2012-02-03 Thread William Stein
On Thu, Feb 2, 2012 at 5:47 PM, Dan Christensen wrote: > You can set the prompt using the LESS environment variable. > See the PROMPTS section of the less man page.  Lots of sophisticated > behaviour is supported. Great idea! More precisely, if on startup of Sage we set the LESS environment vari

Re: [sage-support] Re: Evaluating Summations

2012-02-03 Thread Ivan Andrus
Defining it as sage: BB=lambda(c): factorial(c-1)*(mu/(B*mu+1))^2*sum(((c-1/(B*mu+1))^i)/factorial(i),i,0,c-1) sage: BB(1) mu^2/(B*mu + 1)^2 gives the evaluated sum. In other words it's a function which returns a symbolic expression instead of a symbolic expression which can be evaluated. I d

Re: [sage-support] Re: Evaluating Summations

2012-02-03 Thread Vincent Knight
Thanks kcrisman, I was holding out for someone to suggest something a bit more straightforward but I'll try and implement this. Very much appreciated (as always). Best wishes, Vince On 2 February 2012 19:32, kcrisman wrote: > > > On Feb 2, 1:53 pm, Vince wrote: > > Hi all, > > > > I'm working

[sage-support] Obtaining a function from a definite integral

2012-02-03 Thread olive
Here is the result of my experiment. f=integrate(1/(sin(x)**2+log(x)),(x,1,t)) ; f f=f.function(t) ; f Now I expect f to be a function. I am right to do so? If I do f.derivative() , I obtain an error. Because f is definied to be the primitive of a given function, the derivative of f is well defi

[sage-support] Re: Evaluate quickly a complex expression

2012-02-03 Thread Jason Grout
On 2/3/12 8:02 AM, Jason Grout wrote: The end result was that the straight Cython version was about 13.6 us, the expanded version (where e**(k*I) were precomputed) was about 9 us. The straight fortran version was 10.2 us, and the expanded fortran version (with the powers of e precomputed) was an

[sage-support] Re: Evaluate quickly a complex expression

2012-02-03 Thread Jason Grout
On 2/3/12 1:37 AM, Oscar Lazo wrote: Thank you all for your suggestions, which seem very good :). I was away from the internet for most of today, so I couldn't read your replies until now. I made a function called fast_complex which takes a symbolic expression, generates the corresponding fortran

Re: [sage-support] Re: Sage-4.8: ATLAS-build - Illegal instruction

2012-02-03 Thread v_2e
Hello! On Thu, 2 Feb 2012 11:55:08 -0800 (PST) Volker Braun wrote: > On Thursday, February 2, 2012 11:36:48 AM UTC-8, v_2e wrote: > > > > What setting should I use for the Intel Core i3 processor? "Corei7" > > > > I'd try that first. > Thanks again! It helped. I just did: export SAG