On Oct 28, 7:48 pm, Eviatar <eviatarb...@gmail.com> wrote:
> Thank you for the information.
>
> However, I do think Sage acts inconsistently with logarithms.
>
> Why should this work:
>
> sage: log(0)
> -Infinity
>
> but not this:
>
> sage: log(2, 0)
> ValueError: m must be positive

The base is the *second* argument.

sage: log(32,2)
5

so

sage: log(0,2)
-Infinity

is ok.

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

Reply via email to