Skip to content
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

Feature request: piecewise defined functions #1997

Closed
dqnykamp opened this issue Mar 18, 2023 · 0 comments · Fixed by #1998
Closed

Feature request: piecewise defined functions #1997

dqnykamp opened this issue Mar 18, 2023 · 0 comments · Fixed by #1998
Assignees

Comments

@dqnykamp
Copy link
Member

We need the ability to create a single function that is defined in a piecewise fashion.

For graphing, one can create multiple functions with suitably restricted domains, but constraining to such a combined function doesn't work as expected. The nearest point on each piece is calculated as a function, so it attempts to find a point on the same vertical line as the original point. However, the functions whose domain does not intersect that line yield an endpoint as the nearest point, which could be closer than the point on the given vertical line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant