#10136: `log(x).operator() == log` should return `True`
---------------------------------+------------------------------------------
       Reporter:  burcin         |         Owner:  burcin      
           Type:  defect         |        Status:  needs_review
       Priority:  major          |     Milestone:  sage-5.11   
      Component:  symbolics      |    Resolution:              
       Keywords:                 |   Work issues:              
Report Upstream:  N/A            |     Reviewers:              
        Authors:  Burcin Erocal  |     Merged in:              
   Dependencies:                 |      Stopgaps:              
---------------------------------+------------------------------------------
Changes (by {'newvalue': u'Burcin Erocal', 'oldvalue': ''}):

  * status:  new => needs_review
  * author:  => Burcin Erocal


Old description:

> Reported by Francois Maltey on sage-devel:
>
> {{{
> > log(x).operator() == ln # is True, yes the alias ln is better than
> > the log name
> > log(x).operator() == log # is False (this feature looks like the
> > binomial one)
> > log(x).operator() == sage.function.log.function_log # is True
> }}}
>
> We should define a `__call__()` method in the `Function_log` class from
> `sage/functions/log.py`, to handle the base argument. Then `ln()` and
> `log()` can be the same function and `log(x).operator() == log` will
> return `True`.

New description:

 Reported by Francois Maltey on sage-devel:

 {{{
 > log(x).operator() == ln # is True, yes the alias ln is better than
 > the log name
 > log(x).operator() == log # is False (this feature looks like the
 > binomial one)
 > log(x).operator() == sage.function.log.function_log # is True
 }}}

 We should define a `__call__()` method in the `Function_log` class from
 `sage/functions/log.py`, to handle the base argument. Then `ln()` and
 `log()` can be the same function and `log(x).operator() == log` will
 return `True`.

 Apply [attachment:trac_10136-log_operator.patch]

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10136#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to