[sage-support] avatars.py (and others): which one ?

2009-03-27 Thread Thierry Dumont
I need to make changes to avatars.py I find 3 versions of this script in the sage tree: ./devel/sage-main/build/lib.linux-x86_64-2.5/sage/server/notebook/avatars.py ./devel/sage-main/build/sage/server/notebook/avatars.py ./devel/sage-main/sage/server/notebook/avatars.py (the same is true for no

[sage-support] Re: avatars.py (and others): which one ?

2009-03-27 Thread Timothy Clemans
./devel/sage-main/sage/server/notebook/avatars.py Usually one clones the main branch "sage --clone nameofclone" sage -br takes your changes live On Fri, Mar 27, 2009 at 1:25 AM, Thierry Dumont wrote: > > I need to make changes to avatars.py > > I find 3 versions of this script in the sage tree:

[sage-support] Re: avatars.py (and others): which one ?

2009-03-27 Thread Thierry Dumont
Timothy Clemans a écrit : > ./devel/sage-main/sage/server/notebook/avatars.py > Ok thank you... > Usually one clones the main branch "sage --clone nameofclone" > sage -br takes your changes live > I do not really understand this. I apologize, but is there a link to some place where it is explai

[sage-support] Re: avatars.py (and others): which one ?

2009-03-27 Thread Timothy Clemans
On Fri, Mar 27, 2009 at 3:38 AM, Thierry Dumont wrote: > Timothy Clemans a écrit : >> ./devel/sage-main/sage/server/notebook/avatars.py >> > Ok thank you... > >> Usually one clones the main branch "sage --clone nameofclone" >> sage -br takes your changes live >> > > I do not really understand thi

[sage-support] Re: When absolutely must declare vars?

2009-03-27 Thread kcrisman
> > > On Mar 26, 1:44 pm, kcrisman wrote: > >> Incidentally, that is a good argument for always declaring your > >> functions as callable; it relieves one of this tedious var business. > >> I will make a mental note of it for intro material in Sage. > > > That would be a good idea if it was natur

[sage-support] Re: How use substitute method in function definitions?

2009-03-27 Thread kcrisman
> sage: n(a) # Why doesn't this return the result of numerical_integral? > --- > TypeError                                 Traceback (most recent call last) > > /home/jason/.sage/temp/littleone/29880/_home_jason__sage_init_sag

[sage-support] Re: counting iterations of a loop by evaluating a sum

2009-03-27 Thread Patrick
That's perfect. Thanks! On Mar 26, 5:41 pm, Jason Grout wrote: > Burcin Erocal wrote: > > Hi, > > > On Thu, 26 Mar 2009 09:31:09 -0700 (PDT) > > Patrick wrote: > > >> I'd like to count the iterations of a loop nest by evaluating a sum. > >> Consider the following loop nest: > > >>    for (k =

[sage-support] Re: avatars.py (and others): which one ?

2009-03-27 Thread William Stein
On Fri, Mar 27, 2009 at 1:25 AM, Thierry Dumont wrote: > > I need to make changes to avatars.py > > I find 3 versions of this script in the sage tree: > > ./devel/sage-main/build/lib.linux-x86_64-2.5/sage/server/notebook/avatars.py > ./devel/sage-main/build/sage/server/notebook/avatars.py > ./dev

[sage-support] Re: How use substitute method in function definitions?

2009-03-27 Thread cseberino
On Mar 26, 7:16 pm, Robert Bradshaw wrote: > def Y(t): >      return 2500+numerical_integral(S(u)-R(u),0,t)[0] > > but then it won't be a symbolic object. (It will be a Python function.) Wait. What is the difference between a "symbolic object" and a "Python function" ? Not sure whey the "def

[sage-support] Apache configure

2009-03-27 Thread nerak99
I have compiled and installed sage on a server and it is working fine. To access the server from home, I have to go through a firewall and so I need to use port 80 to access the server and so far as I can tell, use mod_proxy to redirect requests to sage to port 8000. Unfortunately, in sage the ht

[sage-support] Re: How use substitute method in function definitions?

2009-03-27 Thread Robert Bradshaw
On Mar 27, 2009, at 10:36 AM, cseber...@gmail.com wrote: > On Mar 26, 7:16 pm, Robert Bradshaw > wrote: >> def Y(t): >> return 2500+numerical_integral(S(u)-R(u),0,t)[0] >> >> but then it won't be a symbolic object. (It will be a Python >> function.) > > Wait. What is the difference betwe

[sage-support] Re: Apache configure

2009-03-27 Thread Robert Bradshaw
On Mar 27, 2009, at 12:00 PM, nerak99 wrote: > I have compiled and installed sage on a server and it is working > fine. > To access the server from home, I have to go through a firewall and so > I need to use port 80 to access the server and so far as I can tell, > use mod_proxy to redirect reque

[sage-support] Re: Apache configure

2009-03-27 Thread William Stein
On Fri, Mar 27, 2009 at 12:35 PM, Robert Bradshaw wrote: > > On Mar 27, 2009, at 12:00 PM, nerak99 wrote: > >> I have compiled and installed sage on a server and it is working >> fine. >> To access the server from home, I have to go through a firewall and so >> I need to use port 80 to access the

[sage-support] Re: Strange construction in autogenerated Python

2009-03-27 Thread Greg Kuperberg
1) I am using sage 3.2.3, which was current when I installed it in January. It was convenient for me to compile it from scratch, but it then takes a long time to install. 2) Here is my sage code. The program estimates the probability of ever getting a 6-way tie if you repeatedly roll a die and

[sage-support] Re: Strange construction in autogenerated Python

2009-03-27 Thread simon . king
Hi Greg, On 27 Mrz., 21:21, Greg Kuperberg wrote: > 1) I am using sage 3.2.3, which was current when I installed it in > January.  It was convenient for me to compile it from scratch, but it > then takes a long time to install. Side note: In order to change to the latest sage version, it is not

[sage-support] Re: How use substitute method in function definitions?

2009-03-27 Thread Chris Seberino
On Mar 27, 6:04 am, kcrisman wrote: > Maybe one > (you? :) ) can implement a catch... At first I was interested in this change but now I'm wondering if it is best the way it is now. f(x) = defines a symbolic object as was previously mentioned. A symbolic object is for analytical results

[sage-support] Re: How use substitute method in function definitions?

2009-03-27 Thread Jason Grout
Chris Seberino wrote: > > > On Mar 27, 6:04 am, kcrisman wrote: >> Maybe one >> (you? :) ) can implement a catch... > > At first I was interested in this change but now I'm wondering if it > is best the way it is now. > > f(x) = defines a symbolic object as was previously mentioned. A >

[sage-support] Re: How use substitute method in function definitions?

2009-03-27 Thread Jason Grout
Jason Grout wrote: > Chris Seberino wrote: >> >> On Mar 27, 6:04 am, kcrisman wrote: >>> Maybe one >>> (you? :) ) can implement a catch... >> At first I was interested in this change but now I'm wondering if it >> is best the way it is now. >> >> f(x) = defines a symbolic object as was previ

[sage-support] Re: How use substitute method in function definitions?

2009-03-27 Thread Chris Seberino
On Mar 27, 6:20 pm, Jason Grout wrote: > We already have plenty of approximation functions attached to the > symbolic functions. > sage: sin(1).numerical_approx() Yes. I was unclear. What I meant was it wouldn't make sense to use approximation function in the *definition* of a symbolic func

[sage-support] Re: When absolutely must declare vars?

2009-03-27 Thread Chris Seberino
On Mar 27, 5:58 am, kcrisman wrote: > And I wasn't implying one should always define callable functions, I > just meant it is an argument for doing so as often as possible when it > is reasonable.  I do not personally always like callable functions, > but this is an argument for doing it fairly

[sage-support] Re: When absolutely must declare vars?

2009-03-27 Thread Jason Grout
Chris Seberino wrote: > > > On Mar 27, 5:58 am, kcrisman wrote: >> And I wasn't implying one should always define callable functions, I >> just meant it is an argument for doing so as often as possible when it >> is reasonable. I do not personally always like callable functions, >> but this is

[sage-support] Re: Strange construction in autogenerated Python

2009-03-27 Thread Greg Kuperberg
On Mar 27, 1:39 pm, simon.k...@uni-jena.de wrote: > Side note: In order to change to the latest sage version, it is not > needed to compile from scratch again. Just do >   sage -upgrade > on the command line. Provided that you are connected with internet, it > will retrieve the changes from sage 3