Hi Emmanuel,
On 2012-12-22, Emmanuel Charpentier wrote:
>> You mean: *python's* add was designed in that way.=20
>>
>
> OK. That does not change much my reasoning, as far as I know|understand.=20
IMHO, it changes a lot. See below.
>> * Comparison of symbolic expressions by <, > or cmp really d
Dear Simon,
Thank you for that prompt answer.
I have a couple of comments below :
Le samedi 22 décembre 2012 13:18:32 UTC+1, Simon King a écrit :
>
> Hi Emmanuel,
>
> On 2012-12-22, Emmanuel Charpentier >
> wrote:
> > So, if I follow you, Sage's add was designed from the start to be=20
> > o
Hi Emmanuel,
On 2012-12-22, Emmanuel Charpentier wrote:
> So, if I follow you, Sage's add was designed from the start to be=20
> overloaded by class methods,
You mean: *python's* add was designed in that way.
> As for the performance : class matching and method dispatching would occur=
> every
Le vendredi 21 décembre 2012 20:31:42 UTC+1, KnS a écrit :
>
> Emmanuel wrote: "Please let me know how to comment a ticket, and I will
> report this."
>
> I think the usual procedure is to request a TRAC account (the details of
> how to request are outlined in the SAGE TRAC homepage).
>
> HTH,
Dear list,
Le vendredi 21 décembre 2012 21:22:31 UTC+1, kcrisman a écrit :
>
>
>> That's a substantial difference, IMHO.
>>
>> If you do a+b, then Python calls a.__add__(b). So, Python being object
>> oriented, you can easily overload the a.__add__ method. Sage has the
>> class sage.structure.e
>
>
> That's a substantial difference, IMHO.
>
> If you do a+b, then Python calls a.__add__(b). So, Python being object
> oriented, you can easily overload the a.__add__ method. Sage has the
> class sage.structure.element.RingElement, which overloads the
> __add__ method, and if you sub-class
Hi!
On 2012-12-21, Emmanuel Charpentier wrote:
> But why do we have to use max_symbolic ? As far as I can tell, max, like=20
> many other functions in Sage, could be overloaded to call max_symbolic when=
> used with a symbolic argument, no ? After all, we don't have to write=20
> plus_symbolic(a,
Emmanuel wrote: "Please let me know how to comment a ticket, and I will
report this."
I think the usual procedure is to request a TRAC account (the details of
how to request are outlined in the SAGE TRAC homepage).
HTH,
Kannappan
On Fri, Dec 21, 2012 at 8:38 PM, Emmanuel Charpentier <
emanuel.ch
Dear Sir,
Thank you for your prompt advice. Some comments below :
Le vendredi 21 décembre 2012 15:03:45 UTC+1, kcrisman a écrit :
>
>
>> I am in the process of learning Sage, coming from Maxima (and
>> Mathematica, which I do not like much...).
>> Cut'n'pastes from a notebook running on sagenb.o
>
>
> I am in the process of learning Sage, coming from Maxima (and Mathematica,
> which I do not like much...).
> Cut'n'pastes from a notebook running on sagenb.org
> version()
>
> version()
>
> ==>
>
> 'Sage Version 5.4, Release Date: 2012-11-09'
>
> var('t,a,b,d')
> ## beta density
> dbeta(t,a
On Aug 27, 2007, at 6:29 PM, William Stein wrote:
> On 8/27/07, Justin Walker <[EMAIL PROTECTED]> wrote:
>>
>> Hi, all,
>>
>> I want to create a "function" within a function, and return it as
>> the value of the latter function, something along the lines of:
>>
>> def g(a,b,c):
>> var('x y'
This is what you really want to do (use a *callable* symbolic expression):
sage: def g(a,b,c):
f(x,y) = a*x^2 + b*y + c
return f
:
sage: h = g(1,2,3)
sage: h
(x, y) |--> 2*y + x^2 + 3
sage: h(2,3)
13
On 8/27/07, Justin Walker <[EMAIL PROTECTED]> wrote:
>
> Hi, all,
>
> I want to creat
12 matches
Mail list logo