Skip to content

Sage cannot simplify sums of logarithms #7334

@sagetrac-whuss

Description

@sagetrac-whuss

Currently there is no direct way in Sage to apply the transformation:

log(x) + log(y) -> log(x*y)

The attached patch fixes this by inserting a call to logcontract()
in the definition of simplify_radical.

Now the following works:

sage: f = log(sqrt(2) - 1) + log(sqrt(2) + 1)
sage: f.simplify_full()
0

But I'm not sure if this is the right place for this.

CC: @sagetrac-fmaltey

Component: calculus

Keywords: logarithm

Author: Robert Mařík

Reviewer: Karl-Dieter Crisman

Merged: sage-4.3.3.alpha0

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions