Comment #29 on issue 821 by pr...@goodok.ru: multiple arguments for max and other improvements
http://code.google.com/p/sympy/issues/detail?id=821

Please note that for a complex input we have by default 'is_real == None'. So an exception could only be raised for 'is_real == False'.

If in the case of Max(cos(x), sin(x)) will not raise exception, then it is acceptably.

Max(x, 1) will assume it is real

I think that Max assume only that they are incomparable with each other (in method `is_connected`), and check comparability while checking `<` `>` or `==` to be boolean.

BTW, I think if any checking for reals is needed, then it can be encapsulated into `is_connected`. But more deeply, at least additionally, to place it in core, where `'>' '<' '==' are implemented.
(Formally, If I understand, the reasons are the same as for Max)

About `remove_duplicates` and Python 2.4. Thanks, I'm afraid that `list` doesn't work with `sets` properly there.

And I see a little later your branch.



--
You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to sympy-patches@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en.

Reply via email to