dual_log#

rateslib.dual.dual_log(x, base=None)#

Calculate the logarithm of a regular int or float or a dual number.

Parameters:
  • x (int, float, Dual, Dual2) – Value to calculate exponent of.

  • base (int, float, optional) – Base of the logarithm. Defaults to e to compute natural logarithm

Return type:

float, Dual, Dual2