https://github.com/texadactyl/taylor.mixed
https://github.com/texadactyl/taylor.mixed
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/texadactyl/taylor.mixed
- Owner: texadactyl
- License: gpl-3.0
- Created: 2024-10-14T18:47:11.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T20:05:20.000Z (7 months ago)
- Last Synced: 2025-04-04T00:03:08.932Z (about 2 months ago)
- Language: C++
- Size: 59.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Taylor Series expansion performance comparison:
* O/S: Ubuntu, Windows, MacOS
* No library functions employed.
* Golang, Java, Rust, ZigConfiguration:
* X = 0.5
* N = Number of terms = 4,000,000,000
* Compute: exp(X) = 1 + X + (X^2 / 2!) + (X^3 / 3!) + ... + (X^N / N!)
* = 1.648721271 on my calculator app
Rough execution elapsed times on Github Actions Ubuntu (does not include compile time):
* Golang and Rust 5.5s
* Java 12.4s
* Zig 16.4sMeasuring execution elapsed times with off-line systems is more reliable than Github Actions (varying system-wide loads).
All times below are expressed in elapsed seconds.==================
Xubuntu 24.04.up-to-date (Acer A515-44-R2SA, AMD Ryzen 7 4700U @ 4.1 GHz, 16GB DDR4 SDRAM)
* Golang 4.84
* Rust 4.86
* C++ 4.85
* Java 10.64
* Zig 12.27==================
Windows 11 x64 (IntelUltra 7 155H @3.80 GHz, 32GB RAM)
* Rust 3.77
* Golang 4.32
* Zig 9.94
* Java 22.18 (best result of several runs)