Skip to content

Bug in ExpressionNice with composite variables #33399

Closed
@egourgoulhon

Description

@egourgoulhon

In Sage 9.6.beta2, we have

sage: from sage.manifolds.utilities import ExpressionNice
sage: u, v = var('u v')
sage: f = function('F')(u + v)
sage: f
F(u + v)
sage: ExpressionNice(diff(f, u))
d(F)/d(u + v)

So far, so good, but

sage: f = function('F')(u - v)
sage: ExpressionNice(diff(f, u))
d(F)/du - v

This bug has been reported in https://groups.google.com/g/sage-support/c/fbE0APqThEk

With the fix introduced in this ticket, the last output is now

d(F)/d(u - v)

CC: @tscrim

Component: manifolds

Author: Eric Gourgoulhon

Branch/Commit: 9b9b65b

Reviewer: Matthias Koeppe

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions