apcn
High-Performance Arbitrary Precision Constant Numbers Calculation in Rust
An extremely fast, multi-threaded arbitrary-precision mathematical constant calculator written in Rust.
Pi (π) Speed
189 ms
1M Digits computation time
Euler's Number (e) Speed
68 ms
1M Digits computation time
curl -sS https://raw.githubusercontent.com/BreezeWhite/apcn-rs/main/install.sh | sh
WASM Integration Example
Integrate APCN calculations directly into your web applications in a single line.
// Import and initialize the WASM module
import init, { compute_pi } from "https://esm.sh/@breezewhite_yo/apcn";
await init();
const pi = compute_pi(1000); // 1,000 digits!
console.log(pi);