-
-
Notifications
You must be signed in to change notification settings - Fork 564
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
Add is_series() method and others to symbolic expressions #10859
Comments
comment:1
Apply trac_10859_add_is_series_to_symbolic_expression.patch, trac_10859_remove_underscores_from_some_symbolic_expression_methods.patch |
comment:2
A few comments/questions:
I apologize for not having time to give this a proper review, though on a cursory examination it looks fine in terms of the actual code and tests. |
Reviewer: Karl-Dieter Crisman |
comment:3
so converting maxima series to the symbolic ring necessarily creates ordinary polynomials.
I'll fix some english language typos and upload a revised version. |
comment:4
Replying to @vbraun:
I agree that these functions should be exposed to the user. I was the one to add them with an underscore in the first place, with the thought that they are only useful if you want to get into the internals of symbolic expressions. But anybody who wants to do any serious programming with symbolics needs them. They should be more visible. I also appreciate any effort to clean up the public API of symbolic expressions. This has been a mess for a long time. AFAIK, it was written to expose some basic maxima functionality initially, then somehow it was decided to keep this old interface and not use the (much better designed) ginac one. |
Updated patch |
comment:5
Attachment: trac_10859_add_is_series_to_symbolic_expression.patch.gz |
Changed reviewer from Karl-Dieter Crisman to Karl-Dieter Crisman, Burcin Erocal |
comment:6
Thank you for taking the time to improve symbolics. :) |
comment:7
Thanks for having a look. The offending calls to underscored methods were not there in Sage-4.6.2 when I wrote the patch. So I'd argue they demonstrate once more the need for exposing this functionality. I don't think we should formally deprecate the methods since they are private, and nobody outside of the Sage library is supposed to use them. I'll fix the other issues and will test it against the pynac-0.2.2 update. |
comment:8
I am not a fan of the deprecation policy either, but I have been advertising those functions for a while ![1] and in this case it is not so much trouble to deprecate them. ![1] http://wiki.sagemath.org/symbolics/rewrite?action=AttachFile (which should be attached to a trac ticket) You just need to do |
This comment has been minimized.
This comment has been minimized.
Dependencies: #11320 |
comment:9
All tests pass! |
comment:10
The patchbot doesn't read the dependencies field. Depends on #11320. We can switch this to a positive review once the bot agrees. The failing maxima tests reported are not relevant. |
comment:11
I think the patch buildbot also won't rebuild it just because you uttered "Depends on ...". Though you can take my word that it builds and doctests fine on Sage-4.7.rc1 ;-) |
comment:12
2 weeks! I totally forgot about this. Sorry for the delay. |
comment:14
There are lots of doctest failures because of the |
comment:15
The maxima interface uses the private |
Changed keywords from none to sd31 |
Attachment: trac_10859_remove_underscores_from_some_symbolic_expression_methods.patch.gz Updated patch |
Merged: sage-4.7.1.alpha4 |
In order to get more information out of symbolic expressions, I added
is_series()
andis_terminating_series()
methods. This is really necessary if you want to write functions that accept symbolic series as input.I also noticed that there are various methods
_is_something()
, which would likewise be useful but are not "public" because of the leading underscore. The second patch removes the leading underscore from them to make them part of the public API.Apply
Depends on #11320
Component: symbolics
Keywords: sd31
Author: Volker Braun
Reviewer: Karl-Dieter Crisman, Burcin Erocal
Merged: sage-4.7.1.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/10859
The text was updated successfully, but these errors were encountered: