Skip to content

Option to combine symbolic fractions recursively #20858

Closed
@rwst

Description

@rwst

Maxima combines fractions only on the top level, not recursively:

sage: 1/x + 1/x^2 + (x+1)/x
(x + 1)/x + 1/x + 1/x^2
sage: (1/x + 1/x^2 + (x+1)/x).combine()
(x + 2)/x + 1/x^2
sage: (1/x + (1/x+1/x^2+(x+1)/x)/x^2 + (x+1)/x).combine()
(x + 2)/x + ((x + 1)/x + 1/x + 1/x^2)/x^2

Upstream: Fixed upstream, but not in a stable release.

Component: symbolics

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions