This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{standalone} | |
\usepackage{amsmath} | |
\usepackage{calc} | |
\usepackage{scalerel} | |
\usepackage{tikz} | |
\usetikzlibrary{backgrounds} | |
\newcommand{\antilog}[1]{% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstddef> | |
#include <type_traits> | |
#include <utility> | |
template <typename... T> | |
struct dummy_type; | |
template <std::size_t N> | |
struct u; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
*MIT License | |
* | |
*Copyright (c) 2017 Ben Steffan | |
* | |
*Permission is hereby granted, free of charge, to any person obtaining a copy | |
*of this software and associated documentation files (the "Software"), to deal | |
*in the Software without restriction, including without limitation the rights | |
*to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
*copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
*This program approximates pi using the monte carlo method of counting how | |
*many points in a square fall into a circle inscribed in it. | |
* | |
*The program outputs the deviation from pi for a circle radius from 1 to 10^9 | |
*and a number of points from 1 to 10^7, where consecutive rows represent an | |
*increase in radius by one power of 10 each and consecutive columns represent | |
*an increase in number of points by one power of 10, respectively. | |
* | |
*Author: Ben Steffan |