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

how can i create polynomial ring with numbered variables not named variables #188

Open
yusufferdogan opened this issue Dec 3, 2021 · 1 comment

Comments

@yusufferdogan
Copy link

@PolyVar u[1:29]
@PolyVar v[1:29]

#R, (y,z,u[1],u[2],u[3],v[1],v[2],v[3]) = PolynomialRing(QQ,["y","z","u[1]","u[2]","u[3]","v[1]","v[2]","v[3]"])

I want to create something like that because i am reading polynomials from CSV file .So I dont know how many u variables or V variables exist.

Rings are like this:

R, (y,z,u1,u2,u3,v1,v2,v3) = PolynomialRing(QQ,["y","z","u1","u2","u3","v1","v2","v3"])

PR ,x = PolynomialRing(R,"x")

but i want to automate ,I mean if there exist T,Y,U,I in the dataset as variable they must be exist in the ring also

@blegat
Copy link
Member

blegat commented Dec 3, 2021

You can create a new variables of name u[1] by doing DynamicPolynomials.PolyVar{true}("u[1]").

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