Commit dd613cc3 authored by Taddeus Kroes's avatar Taddeus Kroes

Added shortcut functions for logarithmic operator nodes.

parent 051eaff5
from ..node import ExpressionNode as N, ExpressionLeaf as L, OP_LOG, OP_LN
from ..possibilities import Possibility as P, MESSAGES
from ..translate import _
def log(exponent, base=10):
if not isinstance(base, L):
base = L(base)
return N('log', exponent, base)
def ln(exponent):
return N('ln', exponent)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment