How-Tos
I use various tools and techniques to support my explorations and to maintain this Web site; the articles below give instructions for how to use some of those tools and techniques yourself.
I use various tools and techniques to support my explorations and to maintain this Web site; the articles below give instructions for how to use some of those tools and techniques yourself.
To perform arbitrary-precision arithmetic in C and C++ programs on Windows, I use GMP. In particular, I use MPIR, a Windows port of GMP. MPIR is a simple alternative to using GMP under Cygwin or MinGW.
I will show you how to install MPIR in Microsoft Visual C++ as a static, 32-bit library. I will also show you how to install the optional C++ interface — also as a static, 32-bit library. I will provide two example C programs that call the GMP integer and floating-point functions, and two equivalent C++ programs — programs that use the same GMP functions, only indirectly through the C++ interface.
PARI/GP calculator, or gp for short, is an arbitrary-precision calculator (among other things) that I use frequently in my study of binary numbers. Here are instructions for installing and running it on Windows.