[sage-devel] Re: SAGE possible improvement

2009-03-29 Thread Maurizio
Hi everybody. I see this discussion is getting less focus in this moment. I am fine with this, I see people has a lot of stuff to do. At the same time, would you please consider updating the open ticket on SAGE: http://trac.sagemath.org/sage_trac/ticket/3852 I think this would make at least th

[sage-devel] Re: SAGE possible improvement

2009-03-23 Thread Jason Grout
Darren Dale wrote: > On Mon, Mar 23, 2009 at 4:03 PM, Robert Bradshaw < > rober...@math.washington.edu> wrote: > >> On Mar 22, 2009, at 6:49 AM, Darren Dale wrote: >> >> On Mar 20, 10:31 pm, Jason Grout wrote: Maurizio wrote: > Not yet... I think I was previously asking whether so

[sage-devel] Re: SAGE possible improvement

2009-03-23 Thread Maurizio
People, I'm really glad about having brought this discussion to a reasonably interesting level. >From now on, I can't give any other comment (I can't deal with code so specific issues), but I'd like to hear those coming from the mantainers of SAGE. As far as I'm concerned, I was trying to get the

[sage-devel] Re: SAGE possible improvement

2009-03-23 Thread Darren Dale
On Mon, Mar 23, 2009 at 4:03 PM, Robert Bradshaw < rober...@math.washington.edu> wrote: > On Mar 22, 2009, at 6:49 AM, Darren Dale wrote: > > On Mar 20, 10:31 pm, Jason Grout wrote: >> >>> Maurizio wrote: >>> Not yet... I think I was previously asking whether some of you guys are inter

[sage-devel] Re: SAGE possible improvement

2009-03-23 Thread Robert Bradshaw
On Mar 22, 2009, at 6:49 AM, Darren Dale wrote: > On Mar 20, 10:31 pm, Jason Grout wrote: >> Maurizio wrote: >>> Not yet... I think I was previously asking whether some of you guys >>> are interested in trying to contact them, if you do think it does >>> makes sense. >> >>> I mean, if this commu

[sage-devel] Re: SAGE possible improvement

2009-03-22 Thread Darren Dale
On Mar 20, 10:31 pm, Jason Grout wrote: > Maurizio wrote: > > Not yet... I think I was previously asking whether some of you guys > > are interested in trying to contact them, if you do think it does > > makes sense. > > > I mean, if this community is interested in having this feature, the > > Qu

[sage-devel] Re: SAGE possible improvement

2009-03-20 Thread Jason Grout
Maurizio wrote: > Not yet... I think I was previously asking whether some of you guys > are interested in trying to contact them, if you do think it does > makes sense. > > I mean, if this community is interested in having this feature, the > Quantities developers are going to find some good feed

[sage-devel] Re: SAGE possible improvement

2009-03-20 Thread Maurizio
Not yet... I think I was previously asking whether some of you guys are interested in trying to contact them, if you do think it does makes sense. I mean, if this community is interested in having this feature, the Quantities developers are going to find some good feedback, otherwise, we could ju

[sage-devel] Re: SAGE possible improvement

2009-03-19 Thread Jason Grout
Maurizio wrote: > Hi > > can anyone give an advice on how to adapt Quantities to let it be > compatible with SAGE? I don't know how SAGE modifies the way to > represent numbers, and why it does not comply with Quantities. Have you asked the Quantities developers to look at this thread? My gue

[sage-devel] Re: SAGE possible improvement

2009-03-19 Thread Jason Grout
Maurizio wrote: > Hi > > can anyone give an advice on how to adapt Quantities to let it be > compatible with SAGE? I don't know how SAGE modifies the way to > represent numbers, and why it does not comply with Quantities. > > For example, how does SAGE generate an instance of > "sage.rings.integ

[sage-devel] Re: SAGE possible improvement

2009-03-19 Thread Carl Witty
On Thu, Mar 19, 2009 at 3:45 PM, Maurizio wrote: > For example, how does SAGE generate an instance of > "sage.rings.integer.Integer"? I hope this can help me. Well, I can at least answer this question. When you type at the sage: prompt, or in the notebook, the input is run through the "preparse

[sage-devel] Re: SAGE possible improvement

2009-03-19 Thread Maurizio
Thank you for your help. I realize now how silly it has been to ask such a general question here, with you guys just guessing. Even this not being the solution, this has still been helpful for me to understand something more. Hopefully, I'll get more into it. By the way, any other comment about

[sage-devel] Re: SAGE possible improvement

2009-03-19 Thread William Stein
On Thu, Mar 19, 2009 at 3:45 PM, Maurizio wrote: > > Hi > > can anyone give an advice on how to adapt Quantities to let it be > compatible with SAGE? I don't know how SAGE modifies the way to > represent numbers, and why it does not comply with Quantities. > > For example, how does SAGE generate

[sage-devel] Re: SAGE possible improvement

2009-03-19 Thread Maurizio
Hi can anyone give an advice on how to adapt Quantities to let it be compatible with SAGE? I don't know how SAGE modifies the way to represent numbers, and why it does not comply with Quantities. For example, how does SAGE generate an instance of "sage.rings.integer.Integer"? I hope this can hel

[sage-devel] Re: SAGE possible improvement

2009-03-16 Thread Robert Bradshaw
On Mar 14, 2009, at 6:29 PM, Jason Grout wrote: > It sounds like the problems is the known issue that numpy does not > interact very well with Sage data types. Try this: > > from numpy import * > import quantities as pq > res = 10r*pq.ohm > > The 10r means to create a python integer, rather than

[sage-devel] Re: SAGE possible improvement

2009-03-16 Thread Maurizio
In fact my idea is a bit different, and I'll explain in a minute: provided that the system is SI, you should get the result as a multiplier (bigger than one) of the closest classic unit representation ex: meters -> nm - um - mm - m - km - ecc ecc ex: x1 = 10cm x2 = 1m x1 + x2 = 1.1m y1 = 1V (Vol

[sage-devel] Re: SAGE possible improvement

2009-03-16 Thread Robert Dodier
Maurizio wrote: > Regarding the output of such expression you wrote, I agree that it > should give a standard unit output for each physical quantity, so by > presetting SI (or imperial, or anything else), it should give just > meters (or feets, or anything else)... I'm pretty sure that would cau

[sage-devel] Re: SAGE possible improvement

2009-03-16 Thread Jason Grout
Maurizio wrote: > Hi Fergus, > > thank you for your comments! > So, do you consider working on a Quantity porting worthwhile? It seems > that you got some good experience by working on it, so you can > probably give some better advice about the structure of that package. > > Moreover, I'm wonder

[sage-devel] Re: SAGE possible improvement

2009-03-16 Thread Maurizio
Hi Fergus, thank you for your comments! So, do you consider working on a Quantity porting worthwhile? It seems that you got some good experience by working on it, so you can probably give some better advice about the structure of that package. Moreover, I'm wondering how much work would it requi

[sage-devel] Re: SAGE possible improvement

2009-03-15 Thread fergusno...@gmail.com
Hi, Thanks for emailing me Nicolas. I had a quick play with writing a units extension really just to learn more about SAGE. I've only just started writing this so its still a way off being ready for prime time but so far you can create quantities with units, manipulate them like any other number

[sage-devel] Re: SAGE possible improvement

2009-03-15 Thread Nicolas M. Thiery
On Sat, Mar 14, 2009 at 06:48:16PM -0700, Carl Witty wrote: > > On Sat, Mar 14, 2009 at 1:21 AM, Jason Grout > wrote: > > > > Maurizio wrote: > >> With this, I'm not proposing this package over others (for example, > >> Unum looks very mature, but outdated), I'm just asking if one of you > >> ca

[sage-devel] Re: SAGE possible improvement

2009-03-15 Thread Carl Witty
On Sun, Mar 15, 2009 at 12:57 PM, Maurizio wrote: > > Ok, let me add another long post to this conversation... hopefully you > have enough patience!! This is probably known stuff for some of you, > but I'm sure some others will learn something! I kindly ask you to try > to go through all this pos

[sage-devel] Re: SAGE possible improvement

2009-03-15 Thread Maurizio
Ok, let me add another long post to this conversation... hopefully you have enough patience!! This is probably known stuff for some of you, but I'm sure some others will learn something! I kindly ask you to try to go through all this post, I think it will be worthwile. Short and not so important

[sage-devel] Re: SAGE possible improvement

2009-03-15 Thread Maurizio
Thank you Jason, I'll try it as soon as possible. By the way, have you got any idea about where in the code should I look at to let it work with SAGE numbers? Something like constructors or stuff like that? Thanks Maurizio On 15 Mar, 02:29, Jason Grout wrote: > Maurizio wrote: > > To be hones

[sage-devel] Re: SAGE possible improvement

2009-03-15 Thread Maurizio
Does he keep track of his experiment somewhere on the net? I would like to have a look at it. By the way, this effort is certainly good, but one of the biggest merit of SAGE was (in my modest opinion) the idea to not reinvent the wheel as long as it's possible. (I hope SAGE is not changing its pa

[sage-devel] Re: SAGE possible improvement

2009-03-14 Thread Carl Witty
On Sat, Mar 14, 2009 at 1:21 AM, Jason Grout wrote: > > Maurizio wrote: >> With this, I'm not proposing this package over others (for example, >> Unum looks very mature, but outdated), I'm just asking if one of you >> can spend some minutes to review our trac ticket about units of >> measurement

[sage-devel] Re: SAGE possible improvement

2009-03-14 Thread Jason Grout
Maurizio wrote: > To be honest, I'd have thought that installing a python package and > let it work with SAGE would have been easier, but one issue could be > that I've been working on this in a Saturday night (after coming back > home) from midnight to 1.30 am!! :) > > I summarize the way I got

[sage-devel] Re: SAGE possible improvement

2009-03-14 Thread Maurizio
To be honest, I'd have thought that installing a python package and let it work with SAGE would have been easier, but one issue could be that I've been working on this in a Saturday night (after coming back home) from midnight to 1.30 am!! :) I summarize the way I got "quantities" (http://pypi.py

[sage-devel] Re: SAGE possible improvement

2009-03-14 Thread Jason Grout
Maurizio wrote: > Hello, > I'm forwarding this to sage-devel as well, maybe being the most > appropriate group to address this issue. > > I'm a happy user of SAGE, and I won't stop thanking all you guys for > this wonderful job! Although, I also try to encourage you in getting > something better