MultivariatePolynomials.jl
MultivariatePolynomials.jl copied to clipboard
how can i create polynomial ring with numbered variables not named variables
@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
You can create a new variables of name u[1] by doing DynamicPolynomials.PolyVar{true}("u[1]").