-
-
Notifications
You must be signed in to change notification settings - Fork 679
Description
Symbolic expressions in sage are by default assumed complex. There is a maxima variable, called the "simplification domain," which affects whether or not it simplifies sqrt(x^2) to abs(x). Since our expressions are complex, we set the simplification domain to complex, but provide no easy way to change it.
By adding a simplify_real() method to Expression, we give the user a way to perform the aforementioned simplification by declaring his expression real.
This might provide a quick fix for #14305. See also:
https://groups.google.com/forum/?fromgroups=#!topic/sage-support/jhCJujRtNA4/discussion
Depends on #11912
CC: @egourgoulhon
Component: symbolics
Author: Michael Orlitzky
Branch/Commit: 649e3b3
Reviewer: Karl-Dieter Crisman, Ralf Stephan
Issue created by migration from https://trac.sagemath.org/ticket/14630