Lines Matching refs:base
184 "log(x, [base=math.e])\n"
185 "Return the logarithm of x to the given base.\n"
187 "If the base not specified, returns the natural logarithm (base e) of x.");
194 PyObject *base);
202 PyObject *base = NULL;
211 if (!PyArg_ParseTuple(args, "OO:log", &x, &base)) {
220 return_value = math_log_impl(module, x, group_right_1, base);
230 "Return the base 2 logarithm of x.");
239 "Return the base 10 logarithm of x.");