Skip to content

invalid simplification of complex logarithm #12322

Closed
@orlitzky

Description

@orlitzky

As pointed out by J.H. Davenport in this sage-support thread,

http://groups.google.com/group/sage-support/browse_thread/thread/f9d2209041775c3e

the following (invalid) log simplification is made:

sage: t = var('t')                        
sage: assume(t, 'complex')               
sage: assumptions()                      
[t is complex]
sage: f = (1/2)*log(2*t) + (1/2)*log(1/t)
sage: f.full_simplify()                  
1/2*log(2)

When, for example, t=-1,

sage: f(t = -1)
I*pi + 1/2*log(2)

The assumption that t is complex is not necessary here, but simplify should definitely not ignore the imaginary part when dealing with complex functions.

Depends on #12737

Upstream: Reported upstream. No feedback yet.

Component: symbolics

Author: Michael Orlitzky

Branch/Commit: u/mjo/ticket/12322 @ 55eb0aa

Reviewer: Marc Mezzarobba

Issue created by migration from https://trac.sagemath.org/ticket/12322

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions