Possible bug in ExpressionNice

64 views
Skip to first unread message

Alex Dikelsky

unread,
Feb 19, 2022, 11:17:55 PM2/19/22
to sage-support
Hello,

I think there are parenthesis missing in the output of this:

sage: from sage.manifolds.utilities import ExpressionNice
sage: x,y,u,v = var('x y u v')
sage: f = function('f')(x, y)
sage: ExpressionNice(f.subs(x=u+v,y=u-v).diff(v).diff(u))
d^2(f)/d(u + v)^2 - d^2(f)/du - v^2

I expected the output to be
d^2(f)/d(u + v)^2 - d^2(f)/d(u - v)^2
with parenthesis around  (u - v).

Alex

Eric Gourgoulhon

unread,
Feb 22, 2022, 8:09:08 AM2/22/22
to sage-support
Hi,

Thanks for the report!
This is indeed a bug. It is fixed in

Eric

Eric Gourgoulhon

unread,
Mar 8, 2022, 8:43:32 AM3/8/22
to sage-support
Le mardi 22 février 2022 à 14:09:08 UTC+1, Eric Gourgoulhon a écrit :
Hi,

Thanks for the report!
This is indeed a bug. It is fixed in

The fix has been merged in SageMath 9.6.beta4. So the next stable version of SageMath will be free of this bug.
Thanks again for the report!

Eric.

Alex Dikelsky

unread,
Mar 11, 2022, 3:51:54 PM3/11/22
to sage-s...@googlegroups.com
Great, thanks!

--
You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/fbE0APqThEk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/31d62bf5-0cb2-48b9-9984-2006430d4f1fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages