Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why is there a problem in expressing field element?

When field size is of the form $p^m$, 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 $p^1$, 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 $p^m$, 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 $p^1$, 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 $p^m$, 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 $p^1$, 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 $p^m$, 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 $p^1$, 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 $p^m$, 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 $p^1$, 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

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 $p^m$, 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 $p^1$, 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?