+1

Caching 10 ln in a class var as Float does is probably not worth the effort?

Best,
Christoph

---
Sent from Squeak Inbox Talk

On 2020-02-06T21:00:30+00:00, commits@source.squeak.org wrote:

> Nicolas Cellier uploaded a new version of Kernel to project The Inbox:
> http://source.squeak.org/inbox/Kernel-nice.1294.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-nice.1294
> Author: nice
> Time: 6 February 2020, 10:00:19.603883 pm
> UUID: c78e67da-95e5-42ad-af82-089c149f165d
> Ancestors: Kernel-tonyg.1293
>
> Complex log function was missing (base 10 logarithm)
>
> Complex already provides ln and log:, so why not log?
>
> =============== Diff against Kernel-tonyg.1293 ===============
>
> Item was added:
> + ----- Method: Complex>>log (in category 'mathematical functions') -----
> + log
> +     "Answer the base 10 logarithm of the receiver."
> +
> +     ^self ln / 10 ln!