<commit_before>---
layout: post
title: J hooks make exotic expressions easy
---

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    tex2jax: {
      inlineMath: [ ['$','$'], ["\\(","\\)"] ],
      processEscapes: true
    }
  });
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

You might see the approximation:

$$ \pi \approx 768{\sqrt {2-{\sqrt {2+{\sqrt {2+{\sqrt {2+{\sqrt {2+{\sqrt {2+{\sqrt {2+{\sqrt {2+{\sqrt {2+1}}}}}}}}}}}}}}}}}}$$ 

and think:

__Hmmm! How accurate is that?__

You might then proceed to check using a scientific calculator, your phone, or your favourite programming language. But if you're like me, your next thought will be:

__...this is tedious and surely more effort than necessary for a simple pattern.__
<commit_msg>Update title for J hooks post<commit_after>---
layout: post
title: J hooks make evaluating exotic expressions easy
---

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    tex2jax: {
      inlineMath: [ ['$','$'], ["\\(","\\)"] ],
      processEscapes: true
    }
  });
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

You might see the approximation:

$$ \pi \approx 768{\sqrt {2-{\sqrt {2+{\sqrt {2+{\sqrt {2+{\sqrt {2+{\sqrt {2+{\sqrt {2+{\sqrt {2+{\sqrt {2+1}}}}}}}}}}}}}}}}}}$$ 

and think:

__Hmmm! How accurate is that?__

You might then proceed to check using a scientific calculator, your phone, or your favourite programming language. But if you're like me, your next thought will be:

__...this is tedious and surely more effort than necessary for a simple pattern.__

{'fraction_non_alphanumeric': 0.185122089721749, 'fraction_numerical': 0.019307211811470756, 'mean_word_length': 3.9355742296918765, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1360350', 'n_tokens_mistral': 620, 'n_tokens_neox': 562, 'n_words': 176}