log#

swordfish.function.log()#

If Y is not specified: return the natural logarithm of X.

If Y is specified: return the logarithm of X to base Y.

参数:
  • X (Constant) -- A scalar/vector/pair/matrix/table.

  • Y (Constant, optional) -- A positive number indicating the base.