Skip to content
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 rendering of nice numbers isn't always correct #1865

Open
DmitryVasilevsky opened this issue Aug 20, 2024 · 2 comments
Open

LaTeX rendering of nice numbers isn't always correct #1865

DmitryVasilevsky opened this issue Aug 20, 2024 · 2 comments
Labels
bug Something isn't working low-priority backlog items with low priority

Comments

@DmitryVasilevsky
Copy link
Contributor

DmitryVasilevsky commented Aug 20, 2024

Useful functions to render some rational, algebraic numbers and exponential form of complex number aren't always producing the expected result when used outside state rendering (standalone number rendering rather than coefficients). Now that we want to add a few other use cases we should fix that.
Example:
image

@DmitryVasilevsky DmitryVasilevsky added bug Something isn't working needs triage labels Aug 20, 2024
@DmitryVasilevsky DmitryVasilevsky changed the title LaTeX rendering of nice numbers aren't always correct LaTeX rendering of nice numbers isn't always correct Aug 21, 2024
@sezna sezna added low-priority backlog items with low priority and removed needs triage labels Sep 5, 2024
@sezna
Copy link
Contributor

sezna commented Sep 5, 2024

After #1885, these numbers will rarely (never?) show up in output, so we are marking this as low priority.

@DmitryVasilevsky
Copy link
Contributor Author

DmitryVasilevsky commented Sep 19, 2024

Code changes in #1885 provide correct handling of standalone numbers (rather than coefficients). The following can still be improved in general case:
* i could be used directly in a fraction. Example: $\frac{1}{2}i$ could be rendered as $\frac{i}{2}$.
* In a simple fraction sign can be moved to numerator: Example: $-\frac{i}{2}$ could be rendered as $\frac{-i}{2}$.
* Brackets are not needed for standalone rendering. Example: $-\left(1+i\right)$ could be rendered as $-1-i$
* No need to rationalize the denominator. Example: $\frac{\sqrt{2}}{2}$ could be rendered as $\frac{1}{\sqrt{2}}$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low-priority backlog items with low priority
Projects
None yet
Development

No branches or pull requests

2 participants