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

Latex generation error for .series expansion for \rightarrow term #10836

Closed
mnmt opened this Issue Mar 15, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@mnmt
Copy link
Contributor

mnmt commented Mar 15, 2016

Best shown with notebook view of this gist, but basically when the latex is produced for a series expansion for variable x around point x0 at the end of the expansion there is a "as x --> x0" at the end for the neglected expansion terms, which displays correctly when x0 is a number, e.g:
x \rightarrow5
but when x0 is a symbol it doesn't
x \rightarrowx_{0}

It seems that a space needs to be added between \rightarrow and the following term for it to be read/rendered correctly.

Using sympy version: 0.7.6.1 as part of conda version : 3.19.0

mnmt added a commit to mnmt/sympy that referenced this issue Mar 15, 2016

update latex.py for series expansion neglection order
As explained in sympy#10836, separation needed between \rightarrow and its following symbols(s) for series expansion, for _print_Order() function
@mnmt

This comment has been minimized.

Copy link
Contributor

mnmt commented Mar 15, 2016

Added pull request #10837, I think this will fix it? Appreciate a look over to check though since I don't know how to easily test it myself. Changed it locally and this seems to fix this problem for me

@leosartaj leosartaj added the valid label Mar 15, 2016

@leosartaj

This comment has been minimized.

Copy link
Member

leosartaj commented Mar 15, 2016

This appears to be a bug. Also, @mnmt SymPy 1.0 is out. There are many bug fixes and new features. I suggest you should upgrade. 😄

skirpichev added a commit to diofant/diofant that referenced this issue Mar 15, 2016

Update latex.py for series expansion neglection order
As explained in sympy/sympy#10836, separation needed between
\rightarrow and its following symbols(s) for series expansion,
for _print_Order() function.

Closes sympy/sympy#10836

mnmt added a commit to mnmt/sympy that referenced this issue Mar 21, 2016

Fixed newly added assert
Since Order(x,(x,y)) == O(1; x->y) for latex representation (not
O(x;x->y)), test fixed.

Hopefully finally closes sympy#10836

@leosartaj leosartaj closed this in 9fab1d0 Mar 23, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment