<commit_before><!--
Title: simple pi
Description: Calculating pi the simple way.
-->

This little demo uses two random numbers r1 and r2 and
then does a comparison `r1^2 + r2^2 < 1.0` to figure out whether
the generated point is inside the first quadrant of the unit circle.

<i class="fa fa-fw fa-github"></i>
This [analysis is on GitHub](https://github.com/svenkreiss/databench_examples/tree/master/analyses/simplepi).<br />
<i class="fa fa-fw fa-external-link"></i>
[Live demos](http://databench-examples.trivial.io).<commit_msg>use unicode pi char<commit_after><!--
Title: Simple π
Description: Calculating π the simple way.
-->

This little demo uses two random numbers r1 and r2 and
then does a comparison `r1^2 + r2^2 < 1.0` to figure out whether
the generated point is inside the first quadrant of the unit circle.

<i class="fa fa-fw fa-github"></i>
This [analysis is on GitHub](https://github.com/svenkreiss/databench_examples/tree/master/analyses/simplepi).<br />
<i class="fa fa-fw fa-external-link"></i>
[Live demos](http://databench-examples.trivial.io).
{'fraction_non_alphanumeric': 0.13295880149812733, 'fraction_numerical': 0.0149812734082397, 'mean_word_length': 4.510309278350515, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3714562', 'n_tokens_mistral': 359, 'n_tokens_neox': 335, 'n_words': 120}