-
-
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
correcting series reversion doc #24245
base: master
Are you sure you want to change the base?
Conversation
✅ Hi, I am the SymPy bot (v167). 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.12. Click here to see the pull request description that was parsed.
|
Note: it would be good to add a reference too. |
This docstring is generally not very well written. The point about "depending polynomially on other variables" is confusing. We can have arbitrary expressions as the coefficients: In [4]: R, xr, yr = ring('x, y', EX)
In [5]: rs = EX(S.One)*xr + EX(tan(t)+sqrt(pi))*xr**2 + EX(1/sqrt(f(t)))*xr**3
In [6]: rs.as_expr()
Out[6]:
3
x 2
──────── + x ⋅(tan(t) + √π) + x
______
╲╱ f(t)
In [8]: from sympy.polys.ring_series import rs_series_reversion
In [9]: result = rs_series_reversion(rs, xr, 3, yr)
In [10]: result.as_expr()
Out[10]:
2
y ⋅(-tan(t) - √π) + y
In [11]: result = rs_series_reversion(rs, xr, 4, yr)
In [12]: result.as_expr()
Out[12]:
3 ⎛ 2 1 ⎞ 2
y ⋅⎜2⋅tan (t) + 4⋅√π⋅tan(t) + 2⋅π - ────────⎟ + y ⋅(-tan(t) - √π) + y
⎜ ______⎟
⎝ ╲╱ f(t) ⎠ |
Thanks, could you share a minimal working example - with valid imports etc? |
Those examples come from These commands were executed:
>>> from sympy import *
>>> x, y, z, t = symbols('x y z t')
>>> k, m, n = symbols('k m n', integer=True)
>>> f, g, h = symbols('f g h', cls=Function)
>>> init_printing() The easiest way to run those imports is just to run |
Fixing some mistakes in the documentation.
References to other Issues or PRs
Fixes #24244.
Brief description of what is fixed or changed
Correcting typos and the algorithm logic.
Other comments
Draft a connection to Newton iterations? Would fix the missing reference.
Release Notes