Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add minor clarification about logs with bases other than e #12113

@kcrisman

Description

@kcrisman

See this ask.sagemath.org question. Essentially, the poster requests (and it seems reasonable) to add a couple more examples of this. E.g.,

If you could make this change it would be great: "EXAMPLES:
sage: log(e^2)" :
To something like: 
EXAMPLES: 
To change the base of the logarithm, add a second parameter. 
sage: log(1000,10) 
3
Small change but helpful!

This is implicit in the examples, but since the first line is just

Return the logarithm of x to the given base.

and not everyone will understand


File:           /Users/.../sage-4.7.2/local/lib/python2.6/site-packages/sage/functions/log.py
Definition:     log(x, base=None)
Docstring:
       Return the logarithm of x to the given base.

Sounds like a good beginner ticket.


Apply: trac_12113_clarification_about_logs.patch

CC: @jasongrout

Component: documentation

Author: Yoora Yi Tenen

Reviewer: Travis Scrimshaw

Merged: sage-5.6.beta0

Issue created by migration from https://trac.sagemath.org/ticket/12113

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions