log is non-monotonous in PHP and Lua
Summary
The article investigates why log with different bases behaves non-monotonically in PHP and Lua, despite mathematical expectations. It explains that the inconsistency stems from how languages implement logarithms and base changes, often mixing direct base-specific functions with general log calculations, leading to edge-case discrepancies. It also discusses potential remedies and calls for more consistent handling of log bases across languages.