Skip to content

Doctest fix for: wrong symbolic comparison of log #23224

@fchapoton

Description

@fchapoton

Namely

sage: bool(log(8)- 3*log(2))
True
sage: bool(log(8)==3*log(2))
False

compared to

sage: cmp(log(8),3*log(2))
0

And cmp should be going away in python3.

In principle Maxima should simplify log(8)-3*log(2) so it's a missing enhancement there. See pynac/pynac#258 for an enhancement that can provide another solution.

Depends on #23950
Depends on #18970

CC: @rwst @mforets

Component: symbolics

Author: Ralf Stephan

Branch/Commit: 022656f

Reviewer: Marcelo Forets

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions