Skip to content

Instantly share code, notes, and snippets.

@CloserWU
CloserWU / chudnovsky.cpp
Created December 29, 2018 03:43 — forked from komasaru/chudnovsky.cpp
C++ source code to compute pi with Chudnovsky formula and Binary Splitting Algorithm using GMP libarary.
/***************************************************************
* Computing pi by Binary Splitting Algorithm with GMP libarary.
**************************************************************/
#include <cmath>
#include <iostream>
#include <fstream>
#include <gmpxx.h>
using namespace std;