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

Return rationals from linear_expansion and solve_for #1136

Closed
wants to merge 1 commit into from

Conversation

hersle
Copy link
Contributor

@hersle hersle commented May 9, 2024

This fixes #524.

Does it break anything else?
I am not able to run all tests locally, as ] test fails with a bunch of warnings, with or without my changes 😕

Copy link
Member

@YingboMa YingboMa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to post-process a and b so that +- n//1 becomes just +- n.

@hersle
Copy link
Contributor Author

hersle commented May 10, 2024

Where exactly do you mean?
Do you mean that linear_expansion should return fractions for a and b if they are not divisible, and integers if they are divisible? Or the same with the results from solve_for?

@hersle hersle deleted the branch JuliaSymbolics:master August 8, 2024 15:51
@hersle hersle closed this Aug 8, 2024
@hersle hersle deleted the master branch August 8, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

solve_for gives Float64 instead of rational solutions
2 participants