-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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] make Curve callable with parameter value #18250
Conversation
✅ Hi, I am the SymPy bot (v149). I'm here to help you write a release notes entry. Please read the guide on how to write release notes. Your release notes are in good order. Here is what the release notes will look like:
This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.6. Note: This comment will be updated with the latest check if you edit the pull request. You need to reload the page to see it. Click here to see the pull request description that was parsed.
Update The release notes on the wiki have been updated. |
Hi @smichr, Please review this PR! |
It looks ok to me. Let's see if others have any feedback. |
Codecov Report
@@ Coverage Diff @@
## master #18250 +/- ##
=============================================
+ Coverage 74.931% 74.966% +0.035%
=============================================
Files 642 642
Lines 166973 167296 +323
Branches 39283 39370 +87
=============================================
+ Hits 125115 125416 +301
- Misses 36329 36344 +15
- Partials 5529 5536 +7 |
Does that look okay to you? @oscarbenjamin @asmeurer |
Does it matter that you can substitute points outside of the range? In [6]: Curve((t, t**2), (t, 0, 10))
Out[6]: Curve((t, t**2), (t, 0, 10))
In [7]: c.subs(t, 20)
Out[7]: Point2D(20, 400)
In [8]: c(20)
Out[8]: Point2D(20, 400) Maybe that's an unrelated point though. Adding |
I don't think that matters. Those are the limits and we can substitute points outside that range.
@smichr It's ready now. Please merge this. |
That was part of the rational for issue #18254 - with such a change then using parameter from 0 to 1 on the arbitrary point would recreate the curve. |
References to other Issues or PRs
Closes #17997
Brief description of what is fixed or changed
Other comments
Release Notes
__call__
method inClass Curve
.