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
I have an expression of the form
fun = Sum(x**(k + 4)/(k*x), (k, 0, oo))
and, when I try to substitute x for 0 I get
Sum(0**(k + 4)*zoo/k, (k, 0, oo))
I try using simplify before
simplify(fun).subs(x, 0)
I obtain the same
But If I use expand
expand(fun).subs(x, 0)
I get
Sum(0, (k, 0, oo))
I just checked with the ratio of two polynomials
(x**2/x).subs(x, 0)
and it returns 0. Is this a bug or is the expected behavior for summations?
The text was updated successfully, but these errors were encountered:
Some examples are working now
In [118]: simplify(fun).subs(x, 0) ...: Out[118]: 0 In [119]: expand(fun).subs(x, 0) Out[119]: ∞ ___ ╲ ╲ 0 ╱ ╱ ‾‾‾ k = 0 In [120]: _.doit() Out[120]: 0
This one still doesn't work:
In [117]: fun.subs(x, 0) Out[117]: ∞ ____ ╲ ╲ k + 4 ╲ 0 ⋅zoo ╱ ────────── ╱ k ╱ ‾‾‾‾ k = 0
Sorry, something went wrong.
No branches or pull requests
I have an expression of the form
and, when I try to substitute x for 0 I get
I try using simplify before
I obtain the same
But If I use expand
I get
I just checked with the ratio of two polynomials
and it returns 0. Is this a bug or is the expected behavior for summations?
The text was updated successfully, but these errors were encountered: