Today is easiest way and *secure* to use multiplicative_generator function:
sage: K=GF(2^4,'a')
sage: K
Finite Field in a of size 2^4
sage: b=K.random_element()
sage: b.log(K.multiplicative_generator())
14
sage: K.multiplib.log(K.multiplicative_generator())
K.multiplication_table
I'm preparing a talk I'm giving at a local conference next week where I
will be demonstrating Sage.
I'm wondering about a deprecation warning I've been getting a lot lately.
If I define function, say f(x), and I want to evaluate f(x) at x=2, if I
enter f(2) I get the warning.
I've
I did some experiments for you
f=3*x
assigns a symbolic expression in x to the variable f. In this case,
you should use named argument like
f(x=2)
On the other hand,
f(x)=3*x
assigns to f a symbolic function in x. Then you may just type
f(2)
Cheers
Kwankyu