#17393: Add warning to Expression.simplify_log()
-------------------------+----------------------------
Reporter: mjo | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.5
Component: symbolics | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-------------------------+----------------------------
The `simplify_log()` function should only be called when the expression is
real, and I just noticed this isn't documented. For an example, take:
{{{
sage: x,y = SR.var('x,y')
sage: f = log(x*y) - (log(x) + log(y))
sage: f(x=-1, y=i)
-2*I*pi
sage: f.simplify_log()
0
}}}
The documentation does say what it will do, so if you know that the real
log identities don't hold over the complex numbers, then it's documented.
But I think it's better to warn explicitly.
--
Ticket URL: <http://trac.sagemath.org/ticket/17393>
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/d/optout.