log() is a function you would apply to numbers, say real or complex: sage: a = RealField(100)(2) sage: a.log() 0.69314718055994530941723212146
while discrete_log() is something to do in a finite cyclic group. For example: sage: F = FiniteField(101) sage: a = F(2) sage: b = a^67 sage: discrete_log(b,a) 67 John On 4 May 2014 02:17, Jan Medina <janmedin...@gmail.com> wrote: > Hi everybody. > > I want to know what algorithm are implemented for calculate log() and > discrete log(). and what are the differences? > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.