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

Symbolic coefficients in polynomial expressions #27

Closed
vyudu opened this issue Sep 20, 2024 · 2 comments
Closed

Symbolic coefficients in polynomial expressions #27

vyudu opened this issue Sep 20, 2024 · 2 comments

Comments

@vyudu
Copy link

vyudu commented Sep 20, 2024

Hello! Is there a way to have a polynomial with some symbolic coefficients (like a*x^2 + b*x + c). as an input to the mixed_volume? I am starting with a Symbolics expression but am unsure whether it's possible to convert it to a DynamicPolynomial while keeping the coefficients as symbolic. This would be quite useful for calculations for chemical reaction network steady states.

Apologies in advance if this issue is misplaced, but thought it might be a useful case for this package since I believe the mixed volume doesn't actually depend on the coefficients?

@saschatimme
Copy link
Owner

saschatimme commented Sep 21, 2024

I think all functions that accept a polynomial also accept a matrix representing the support of the polynomial. Usually the conversion is done internally by using the support function. This also accepts the variables of the polynomial which in your a*x^2 + b*x + c example would be just [x].

@vyudu
Copy link
Author

vyudu commented Sep 23, 2024

Ah, I see, thank you!

@vyudu vyudu closed this as completed Sep 23, 2024
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

No branches or pull requests

2 participants