Files
Schwarf ac810a105c mathext: optimize Li2 and add benchmarks
This optimizes the complex dilogarithm Li2 using targeted mappings
(reflection/inversion), a real-axis fast path, and a Bernoulli-in-x
expansion (x = -log(1 - z)), inspired by this Rust implementation[1]
(and references therein). The exported API remains unchanged, and
runtime improvements are measured by an added BenchmarkLi2.

Performance improvements range from a few percent to large factors,
depending on the region of the complex plane.

[1]https://github.com/Expander/polylog.rs
2025-11-17 05:11:26 +10:30
..
2020-03-16 16:10:59 +02:00
2025-01-01 08:26:48 +10:30
2020-03-16 16:10:59 +02:00
2020-03-16 16:10:59 +02:00
2020-03-16 16:10:59 +02:00

mathext

go.dev reference GoDoc

Package mathext implements basic elementary functions not included in the Go standard library.