Ask Your Question

# Revision history [back]

### How to dynamically pass multivariables while constructing a IntegerModRing?

R.<f1c1,f1c2,f2c1> = IntegerModRing(3^3)[]

R.<f1c1,f1c2,f1c3,f2c1,f3c1> = IntegerModRing(3^4)[]

R.<f1c1,f1c2,f1c3,f1c4,f2c1,f2c2,f3c1,f4c1>
= IntegerModRing(3^5)[]

so on....


### How to dynamically pass multivariables while constructing a IntegerModRing?

R.<f1c1,f1c2,f2c1> = IntegerModRing(3^3)[]

R.<f1c1,f1c2,f2c1> = IntegerModRing(3^3)[]

R.<f1c1,f1c2,f1c3,f2c1,f3c1> = IntegerModRing(3^4)[]

R.<f1c1,f1c2,f1c3,f1c4,f2c1,f2c2,f3c1,f4c1>
= IntegerModRing(3^5)[]

so on....


This is not working for me

xs = ['f1c1','f1c2','f1c3','f1c4','f1c5','f1c6','f2c1','f2c2','f2c3','f3c1','f3c2','f4c1','f5c1','f6c1']

R = IntegerModRing(3^7,names=xs)[]

### How to dynamically pass multivariables while constructing a IntegerModRing?

R.<f1c1,f1c2,f2c1> = IntegerModRing(3^3)[]

R.<f1c1,f1c2,f1c3,f2c1,f3c1> = IntegerModRing(3^4)[]

R.<f1c1,f1c2,f1c3,f1c4,f2c1,f2c2,f3c1,f4c1>
= IntegerModRing(3^5)[]

so on....


This is I tried like below , but not working for me

xs = ['f1c1','f1c2','f1c3','f1c4','f1c5','f1c6','f2c1','f2c2','f2c3','f3c1','f3c2','f4c1','f5c1','f6c1']['f1c1','f1c2','f1c3','f1c4','f1c5','f1c6','f2c1','f2c2','f2c3','f3c1','f3c2','f4c1','f5c1','f6c1']
R = IntegerModRing(3^7,names=xs)[]IntegerModRing(3^7,names=xs)[]


### How to dynamically pass multivariables while constructing a IntegerModRing?

R.<f1c1,f1c2,f2c1> = IntegerModRing(3^3)[]

R.<f1c1,f1c2,f1c3,f2c1,f3c1> = IntegerModRing(3^4)[]

R.<f1c1,f1c2,f1c3,f1c4,f2c1,f2c2,f3c1,f4c1>
= IntegerModRing(3^5)[]

so on....


I tried like below , but not working for me

xs = ['f1c1','f1c2','f1c3','f1c4','f1c5','f1c6','f2c1','f2c2','f2c3','f3c1','f3c2','f4c1','f5c1','f6c1']

R = IntegerModRing(3^7,names=xs)[]


### How to dynamically pass multivariables while constructing a IntegerModRing?

R.<f1c1,f1c2,f2c1> = IntegerModRing(3^3)[]

R.<f1c1,f1c2,f1c3,f2c1,f3c1> = IntegerModRing(3^4)[]

R.<f1c1,f1c2,f1c3,f1c4,f2c1,f2c2,f3c1,f4c1>
= IntegerModRing(3^5)[]

so on....


I tried like below , but not working for me

xs = ['f1c1','f1c2','f1c3','f1c4','f1c5','f1c6','f2c1','f2c2','f2c3','f3c1','f3c2','f4c1','f5c1','f6c1']

R = IntegerModRing(3^7,names=xs)[]


### How to dynamically pass multivariables while constructing a IntegerModRing?

Currently I am hardcoding the variables like below

R.<f1c1,f1c2,f2c1> = IntegerModRing(3^3)[]

R.<f1c1,f1c2,f1c3,f2c1,f3c1> = IntegerModRing(3^4)[]

R.<f1c1,f1c2,f1c3,f1c4,f2c1,f2c2,f3c1,f4c1>
= IntegerModRing(3^5)[]

so on....


I tried like below , but not working for me

xs = ['f1c1','f1c2','f1c3','f1c4','f1c5','f1c6','f2c1','f2c2','f2c3','f3c1','f3c2','f4c1','f5c1','f6c1']

R = IntegerModRing(3^7,names=xs)[]


### How to dynamically pass multivariables while constructing a IntegerModRing?

Currently I am hardcoding the variables like below

R.<f1c1,f1c2,f2c1> = IntegerModRing(3^3)[]

R.<f1c1,f1c2,f1c3,f2c1,f3c1> = IntegerModRing(3^4)[]

R.<f1c1,f1c2,f1c3,f1c4,f2c1,f2c2,f3c1,f4c1>
= IntegerModRing(3^5)[]

so on....


I tried like below , but not working for me

xs = ['f1c1','f1c2','f1c3','f1c4','f1c5','f1c6','f2c1','f2c2','f2c3','f3c1','f3c2','f4c1','f5c1','f6c1']

R = IntegerModRing(3^7,names=xs)[]


I want to construct variables from an array of strings and then pass to IntegerModRing

### How to dynamically pass multivariables while constructing a IntegerModRing?

Currently I am hardcoding the variables like below

R.<f1c1,f1c2,f2c1> = IntegerModRing(3^3)[]

R.<f1c1,f1c2,f1c3,f2c1,f3c1> = IntegerModRing(3^4)[]

R.<f1c1,f1c2,f1c3,f1c4,f2c1,f2c2,f3c1,f4c1>
= IntegerModRing(3^5)[]

so on....
on.... 3^6 , 3^7...


I tried like below , but not working for me

xs = ['f1c1','f1c2','f1c3','f1c4','f1c5','f1c6','f2c1','f2c2','f2c3','f3c1','f3c2','f4c1','f5c1','f6c1']

R = IntegerModRing(3^7,names=xs)[]


I want to construct variables from an array of strings and then pass to IntegerModRing

### How to dynamically pass multivariables while constructing a IntegerModRing?

I want to construct variables from an array of strings and then pass to IntegerModRing

Currently I am hardcoding the variables like below

R.<f1c1,f1c2,f2c1> = IntegerModRing(3^3)[]

R.<f1c1,f1c2,f1c3,f2c1,f3c1> = IntegerModRing(3^4)[]

R.<f1c1,f1c2,f1c3,f1c4,f2c1,f2c2,f3c1,f4c1>
= IntegerModRing(3^5)[]

so on.... 3^6 , 3^7...


I tried like below , but not working for me

xs = ['f1c1','f1c2','f1c3','f1c4','f1c5','f1c6','f2c1','f2c2','f2c3','f3c1','f3c2','f4c1','f5c1','f6c1']

R = IntegerModRing(3^7,names=xs)[]


I want to construct variables from an array of strings and then pass to IntegerModRing