Hi Yujia,

On Fri, Mar 5, 2010 at 11:58 PM, yujia chiu <woodc...@gmail.com> wrote:
> Thanks for your advice, but my sage says that 'discrete_log' is not defined

[mv...@sage ~]$ sage
----------------------------------------------------------------------
| Sage Version 4.3.3, Release Date: 2010-02-21                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: b = Mod(2, 37); a = b^20
sage: discrete_log(a, b)
20
sage: K = GF(3^6, "b")
sage: b = K.gen()
sage: a = b^210
sage: discrete_log(a, b, K.order() - 1)
210

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to