(%i6) li [2] (7), numer;
(%o6) 1.248273182099424 - 6.113257028817992 %i
(%i7) L : makelist (i / 4.0, i, 0, 8);
(%o7) [0.0, 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0]
(%i8) map (lambda ([x], li [2] (x)), L);
(%o8) [0.0, 0.26765263908273, 0.58224052646501, 0.97846939293031,
1.644934066848226, 2.190177011441645 - 0.70102614150466 %i,
2.37439527027248 - 1.2738062049196 %i,
2.448686765338203 - 1.758084848210787 %i,
2.46740110027234 - 2.177586090303602 %i]
(%i9) map (lambda ([x], li [3] (x)), L);
(%o9) [0.0, 0.25846139534426, 0.53721319267804, 0.84442580464822,
1.2020569,
1.642866878950322 - 0.07821473130035 %i,
2.060877505514697 - 0.2582419849982 %i,
2.433418896388322 - 0.4919260182323 %i,
2.762071904015935 - 0.75469382859788 %i]
Функция: log (x)
Represents-представляет the natural-натуральный (base-по_основанию e) logarithm-
логарифм of x.
Maxima does not have a built-in function for the base 10 logarithm (десятичного) or other
bases. Можно воспользоваться формулой log10(x):=log(x)/log(10) is a useful
definition.
Simplification-упрощение and evaluation-вычисление of logarithms is governed-
управляется by several-несколькими global-глобальными flags-флагами:
logexpand - causes log(a^b) to become b*log(a). If it is set to all, log(a*b) will
also simplify to log(a)+log(b). If it is set to super, then log(a/b) will also simplify to
log(a)-log(b) for rational numbers a/b, a#1. Функция (log(1/b), for b integer, always
simplifies.) If it is set to false, all of these simplifications-упрощения will be turned off-
отключены.
logsimp - if false then no simplification of %e to a power containing log's is done.
lognumer - if true then negative floating point arguments to log will always be converted
to their absolute value before the log is taken. If numer is also true, then negative integer
arguments to log will also be converted to their absolute value.
lognegint - if true implements the rule-правило log(-n)->log(n)+%i*%pi for n a
positive-положительное integer-целое.
%e_to_numlog - when-когда true, то r some rational number, and x some expression,
%e^(r*log(x)) will be simplified into x^r . It should be noted that the radcan command also
does this transformation, and more complicated transformations of this ilk as well. The
logcontract command "contracts" expressions containing log.
Option variable: logabs
Default value: false
When doing indefinite integration where logs are generated, e.g. integrate(1/x,x),
the answer is given in terms of log(abs(...)) if logabs is true, but in terms of log(...)
if logabs is false. For definite integration, the logabs:true setting is used, because here
"evaluation" of the indefinite integral at the endpoints is often needed.
133