[sage-devel] Re: Name symbolic expressions

2017-04-16 Thread mforets
El lunes, 17 de abril de 2017, 7:17:38 (UTC+2), Aidan escribió: > > Marcelo, > > Could you be persuaded to turn this into the beginnings of a standalone >> document detailing the inner workings of symbolic functions? I think that >> would be a great addition to the documentation. >> > > I didn'

[sage-devel] Re: Name symbolic expressions

2017-04-16 Thread Aidan
Marcelo, Could you be persuaded to turn this into the beginnings of a standalone > document detailing the inner workings of symbolic functions? I think that > would be a great addition to the documentation. > I didn't realize Paul was talking about me, and for some reason missed Eric's quote.

[sage-devel] Re: Name symbolic expressions

2017-04-15 Thread mforets
Dear Aidan, Do you have a trac account? I didn't find you there. Your interesting question has triggered a very detailed answer by Nils, and other have suggested to turn it into proper documentation. As someone who is in the process of learning the internals of Sage too, I also think that exp

[sage-devel] Re: Name symbolic expressions

2017-03-21 Thread Eric Gourgoulhon
This is not what you are proposing but somehow related to it: provided you consider (x,y) as coordinates on a manifold, you may define g as a named function as follows: sage: M = Manifold(2, 'M') sage: X. = M.chart() # declares the chart X on M, with coordinates (x,y) sage: g = M.scalar_field

[sage-devel] Re: Name symbolic expressions

2017-03-20 Thread Paul Masson
Nils, this is a most excellent answer. Coming to Sage from Mathematica, I continue to be puzzled by the various ways functions are handled in Sage, so thanks! This is a topic that has not yet been well documented. The only thing I have found close to it is a description of problems that can occ

[sage-devel] Re: Name symbolic expressions

2017-03-19 Thread Aidan
Thank-you so much for the response. As you can imagine, everything made sense to me before posting, but I can kind of see the other side of the coin. It's nice to get feedback from someone who understands what they are talking about - unlike me. I already understood that the code was a shortcut,

[sage-devel] Re: Name symbolic expressions

2017-03-19 Thread Nils Bruin
On Sunday, March 19, 2017 at 12:54:34 AM UTC-7, Aidan wrote: > > > I wrote some code > I would > like to contribute, but I don't know the most appropriate place to put it. > > It works like this right now > > > sage: g(x,y)