Processing math: 100%
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 4 years ago

MKS gravatar image

Why is there a problem in expressing field element?

When field size is of the form pm, where p is a prime and m>1 is a positive integer there is no problem. For example

F.<x> = GF(5^2)
print F.fetch_int(4)

It outputs : 4.

But if we take field size is in the form p1, then the above code does not working. For example

F.<x> = GF(5^1)
print F.fetch_int(4)

It gives errors. How can I fix this ?

Why is there a problem in expressing field element?

When field size is of the form pm, where p is a prime and m>1 is a positive integer there is no problem. For example

F.<x> = GF(5^2)
print F.fetch_int(4)

It outputs : 4.

But if we take field size is in the form p1, then the above code does not working. For example

F.<x> = GF(5^1)
print F.fetch_int(4)

It gives errors. How can I fix this ?using the same function in the cases?

Why is there a problem in expressing field element?

When field size is of the form pm, where p is a prime and m>1 is a positive integer integer, there is no problem. For example

F.<x> = GF(5^2)
print F.fetch_int(4)

It outputs : 4.

But if we take field size is in the form p1, then the above code does not working. For example

F.<x> = GF(5^1)
print F.fetch_int(4)

It gives errors. How can I fix this using the same function in the cases?

Why is there a problem in expressing field element?

When field size is of the form pm, where p is a prime and m>1 is a positive integer, there is no problem. For example

F.<x> = GF(5^2)
print F.fetch_int(4)

It outputs : 4.

But if we take field size is in the form p1, then the above code does not working. For example

F.<x> = GF(5^1)
print F.fetch_int(4)

It gives errors. How can I fix this using the same function in the cases?

Why is there How to express elements in a problem in expressing field element?of prime order and power of a prime order using the same function?

When field size is of the form pm, where p is a prime and m>1 is a positive integer, there is no problem. For example

F.<x> = GF(5^2)
print F.fetch_int(4)

It outputs : 4.

But if we take field size is in the form p1, then the above code does not working. For example

F.<x> = GF(5^1)
print F.fetch_int(4)

It gives errors. How can I fix this using the same function in both the cases?

click to hide/show revision 6
retagged

updated 2 years ago

FrédéricC gravatar image

How to express elements in a field of prime order and power of a prime order using the same function?

When field size is of the form pm, where p is a prime and m>1 is a positive integer, there is no problem. For example

F.<x> = GF(5^2)
print F.fetch_int(4)

It outputs : 4.

But if we take field size is in the form p1, then the above code does not working. For example

F.<x> = GF(5^1)
print F.fetch_int(4)

It gives errors. How can I fix this using the same function in both the cases?