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

Substitution with BigFloats #302

Closed
chkat opened this issue Oct 3, 2024 · 1 comment · Fixed by #303
Closed

Substitution with BigFloats #302

chkat opened this issue Oct 3, 2024 · 1 comment · Fixed by #303
Assignees
Labels

Comments

@chkat
Copy link

chkat commented Oct 3, 2024

Hi,
I am experiencing an issue with the latest version when I evaluate a polynomial with BigFloat coefficients at another BigFloat. I isolated a simple example that shows that I get different results if I set the variable c to Float64(0) or BigFloat(0).

julia> using DynamicPolynomials

julia> @polyvar a b c
(a, b, c)

julia> F = BigFloat(5)*a*b*c + BigFloat(1)*a*b^2
5.0abc + ab²

julia> DynamicPolynomials.subs(F, c=>BigFloat(0))
0.0

julia> DynamicPolynomials.subs(F, c=>0.0)
ab²

On the contrary, for the version 0.4.6 of the package I get in both cases ab² as a result.
Are operations with BigFloats not supported ?

Thanks !

@blegat blegat added the bug label Oct 3, 2024
@blegat blegat transferred this issue from JuliaAlgebra/DynamicPolynomials.jl Oct 3, 2024
@blegat blegat self-assigned this Oct 3, 2024
@blegat blegat mentioned this issue Oct 3, 2024
@blegat
Copy link
Member

blegat commented Oct 3, 2024

Thanks for reporting this, should be fixed by #303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants