DFIELDSOLUTIONS

Free software

LabMyria: Numbers without a ceiling

Sign-magnitude big integers over base-10⁷ limbs: schoolbook add/multiply, long division, fast exponentiation, factorial, and fast-doubling Fibonacci. 14 tests using native BigInt as the oracle across hundreds of random operations.

Free software1 sections · 2 min readBy Dezső Mező.mdFree softwareMyria

Myria is an arbitrary-precision integer library that handles numbers far too large for native machine types. The signature design is sign-magnitude big integers stored over base-10^7 limbs, implementing schoolbook add and multiply, long division, fast exponentiation, factorial, and fast-doubling Fibonacci, with native BigInt used as the oracle across hundreds of random operations. It is a from-scratch, dependency-light build you can download and run locally.

01About the app

Arbitrary-precision arithmetic

What to take away

  • Sign-magnitude big integers over base-10⁷ limbs: schoolbook add/multiply, long division, fast exponentiation, factorial, and fast-doubling Fibonacci. 14 tests using native BigInt as the oracle across hundreds of random operations.
  • Download: Myria (ZIP)

Terms used in this piece

We build this for clientsFull-stack

Read the full write-up

More from the lab

Browse all entries

Want this looked at on your own system?Start a conversation

5.0
“New shop, more orders in the first week.”Müller Márk · GeekCornerManaging Director · Hungary