GMP version of chastdin

I made a fork of my calculator program that can handle arbitrarily large integers using the GNU Multiple Precision Arithmetic Library.

This makes it possible to generate numbers of millions of digits using C and Assembly code written by the developers of GMP. Their routines far exceed my own, because decades of work have been put into the fastest arithmetic possible.

Because larger numbers are possible, I have created a pow command which can raise a number to any exponent using the “mpz_pow_ui” function.

https://github.com/chastitywhiterose/chastdin/tree/main/chastdin_gmp

Despite the arithmetic improvement, this program still uses the chastdin library I wrote to get keyboard input from the user and process it as numbers.

One of the side effects of this is that the user cannot enter negative numbers. Still, if they subtract larger numbers from smaller numbers, negative numbers are handled normally by GMP’s arithmetic functions.

Comments

Leave a comment