18995, "lydia-duncan", "Math module - log function and log/ln param names are inconsistent", "2022-01-13T22:59:15Z"
The param values declared at the beginning of the Math module use
ln for natural logarithm and
log for other bases, while the functions use
log for natural logarithm and
log10 for other specific bases. My understanding was that
log implied base 10, though it seems that is not consistent everywhere.
This issue proposes that we make the names of the functions and params consistent. To do this, we would:
lnwhenever the natural logarithm is used
log10for base 10 and
log2for base 2
- not provide a default base for
This has the benefit of being explicit and clear about what is being used. There should be no confusion about what each name means following this strategy