-
-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #17556: Move simplify_log() from simplify_full() to simplify_real()
The `simplify_log` function assumes that its argument is real; otherwise the log contraction operation is invalid. For example, {{{ sage: x,y = SR.var('x,y') sage: assume(y, 'complex') sage: f = log(x*y) - (log(x) + log(y)) sage: f(x=-1, y=i) -2*I*pi sage: f.simplify_log() 0 }}} Now that we have a `simplify_real()` method, why not move `simplify_log()` there instead? In the process, the newer `simplify_rectform()` can be added to `simplify_full()`. I'm working on a patch for this. URL: http://trac.sagemath.org/17556 Reported by: mjo Ticket author(s): Michael Orlitzky Reviewer(s): Ralf Stephan
- Loading branch information
Showing
3 changed files
with
40 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters