We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What would be a good syntax for piecewise-defined function? Currently, it's
Piecewise(a provided b, c provided d)
Piecewise(a provided b, c provided d, e)
By this time, multiple ideas have been considered:
a if b else c
(a if b, c if d, ..., e)
(a if b else c if d else ..., e)
piecewise((a, b), (c, d), ..., e)
if a then b elif c then d ... else e
Your ideas are welcomed
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What would be a good syntax for piecewise-defined function? Currently, it's
Piecewise(a provided b, c provided d)
without the otherwise casePiecewise(a provided b, c provided d, e)
with the otherwise case.By this time, multiple ideas have been considered:
a if b else c
(but how to expand for more than two cases?)(a if b, c if d, ..., e)
(but will there be no conflicts in the future?)(a if b else c if d else ..., e)
(is it readable enough?)piecewise((a, b), (c, d), ..., e)
(sympy's way)if a then b elif c then d ... else e
(is it convenient?)Your ideas are welcomed
The text was updated successfully, but these errors were encountered: