-
-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symbolic min/max #21945
Comments
comment:2
The functions |
comment:3
Replying to @mathzeta:
Thanks for the info. The names are not intuitive, but perhaps we can live with it. Here's a short list of what these creatures should be able to do:
|
comment:4
Replying to @pelegm:
It currently does. Regarding your other points, unfortunately, it seems those are not available. See also #17700 and #19162.
prints |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:8
Replying to @pelegm:
Actually this is quite achievable. Pynac already has such logic for several functions. However, it would help if |
comment:9
Not necessary, after some thought. I'll put this in pynac-0.7.19. The various queries depend on existence of their interface, e.g. |
Dependencies: #24838 |
The Python builtins
max
andmin
are not user-friendly because they give totally wrong results on symbolic input:There exist functions
max_symbolic
andmin_symbolic
but people generally don't know those functions. They expectmax
andmin
to "just work".One way this puzzles users is when plotting eg the following:
... for which a workaround is to plot using a lambda function:
Depends on #24838
CC: @mathzeta @slel
Component: symbolics
Keywords: min, max, days79
Issue created by migration from https://trac.sagemath.org/ticket/21945
The text was updated successfully, but these errors were encountered: