MultivariatePolynomials.jl icon indicating copy to clipboard operation
MultivariatePolynomials.jl copied to clipboard

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

Open yusufferdogan opened this issue 4 years ago • 1 comments

@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

yusufferdogan avatar Dec 03 '21 11:12 yusufferdogan

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

blegat avatar Dec 03 '21 15:12 blegat