Groups
Groups
Sign in
Groups
Groups
sympy
Conversations
About
Send feedback
Help
Simplify expressions involving Max(x,y)
30 views
Skip to first unread message
ry...@kinnear.ca
unread,
Mar 12, 2016, 11:05:19 PM
3/12/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sympy
Is sympy capable of performing these types of simplifications:
Max(a + b, a + c) = a + Max(b, c)
Max(ab, ac) = aMax(b, c)
If not, what is the reason? How difficult would it be to add this type of functionality?
Best Regards
Aaron Meurer
unread,
Mar 16, 2016, 5:40:28 PM
3/16/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
I don't think it does. It probably would be easy to implement. One
should just implement MinMaxBase._eval_simplify.
For the Max(ab, ac) = aMax(b, c) case, I believe a needs to be
nonnegative. For instance, Max(-1, -2) is -1 but -1*Max(1, 2) is -2.
Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
sympy+un...@googlegroups.com
.
> To post to this group, send email to
sy...@googlegroups.com
.
> Visit this group at
https://groups.google.com/group/sympy
.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/sympy/4da77b02-0c64-46ba-aaa7-30adb332cd18%40googlegroups.com
.
> For more options, visit
https://groups.google.com/d/optout
.
Reply all
Reply to author
Forward
0 new messages