Elektrine
Log in Register
Paige Chat Timeline Gallery Friends Email Drive DNS Private DNS Domains VPN Kairo Nerve
Remote

John D. Cook

@johndcook@mathstodon.xyz
mastodon 4.7.2
  • Open on mathstodon.xyz

Consultant in applied mathematics and data privacy

https://www.johndcook.com

1184 Followers
29 Following
25 Posts
Joined November 21, 2022
Open post
John D. Cook @johndcook@mathstodon.xyz
· 5mo ago

Equation for the shape of a guitar pick
https://www.johndcook.com/blog/2026/05/03/guitar-pick/

The shape of a guitar pick
John D. Cook | Applied Mathematics Consulting

The shape of a guitar pick

How curiosity about a plot lead to an equation for the shape of a guitar pick.

46
6
24
1
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

Enumerating rooted trees and non-overlapping circles
https://www.johndcook.com/blog/2026/08/05/enumerating-trees-and-circles/

Enumerating trees and circles
John D. Cook | Applied Mathematics Consulting

Enumerating trees and circles

There's a one-to-one correspondence between rooted trees and non-overlapping circles

6
1
2
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

How not to calculate cosine

https://www.johndcook.com/blog/2026/08/07/how-not-to-calculate-cos/

How not to calculate cosine
John D. Cook | Applied Mathematics Consulting

How not to calculate cosine

Calculus professors with no experience in numerical computing will tell students that computers calculate trig functions with power series. They don't.

5
0
2
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

New post: Hiding data in permutations

https://www.johndcook.com/blog/2026/07/27/hiding-data-in-permutations/

Hiding data in permutations
John D. Cook | Applied Mathematics Consulting

Hiding data in permutations

The latest issue of Paged Out! has an article by Stephen Hewitt "An off-line backup of your cryptographic key using playing cards." The idea is to use a deck of 52 to store a 128-bit cryptographic key. To erase the key, shuffle the deck. Hewitt gives his algorithm for embedding a key, one that can

6
0
1
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

Solving the Runge-Kutta design equations

https://www.johndcook.com/blog/2026/07/31/runge-kutta-design/

Solving the fourth order Runge-Kutta design equations
John D. Cook | Applied Mathematics Consulting

Solving the fourth order Runge-Kutta design equations

The constraints on Runge-Kutta method parameters are complicated. How well could Mathematica do at solving them?

4
0
0
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 7mo ago
A curious trig identity
John D. Cook | Applied Mathematics Consulting

A curious trig identity

A trig identity that doesn't look like it should be true.

28
5
8
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

New post: Calculating log(1000!)

https://www.johndcook.com/blog/2026/08/06/log1000/

Calculating log(1000!)
John D. Cook | Applied Mathematics Consulting

Calculating log(1000!)

How would you compute log(1000!) without software that handles enormous numbers? How would you calculate it by hand?

3
0
0
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

New post: Ratios of metallic ratios

https://www.johndcook.com/blog/2026/08/04/ratio-of-metallic-ratios/

Ratio of metallic ratios
John D. Cook | Applied Mathematics Consulting

Ratio of metallic ratios

The golden ratio is the first and best known of the metallic ratios. I've written about the silver ratio a few times, most recently here. And I've mentioned the bronze ratio a couple times. The metallic ratios after bronze don't have standard names. The nth metallic ratio M(n) is the number whose continued fraction representation

3
0
1
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

New post: Estimating a cumulative sum

https://www.johndcook.com/blog/2026/08/02/estimating-a-cumulative-sum/

Estimating a cumulative sum
John D. Cook | Applied Mathematics Consulting

Estimating a cumulative sum

Asymptotic formula for the cumulative sum of a series whose asymptotic form is known. Applied to rooted trees and Runge-Kutta constraints.

3
0
0
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

Counting rooted trees. With a surprising connection to differential equations.

https://www.johndcook.com/blog/2026/08/01/counting-rooted-trees/

Counting rooted trees
John D. Cook | Applied Mathematics Consulting

Counting rooted trees

The pure math problem of counting rooted trees is closely connected with the applied math problem of designing differential equation solvers.

3
0
0
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago
Fitting a regular expression to a list of words https://www.johndcook.com/blog/2026/07/19/fitting-a-regex/
Fitting a regular expression to a list of words
John D. Cook | Applied Mathematics Consulting

Fitting a regular expression to a list of words

Creating a regular expression that matches a given list of words. Improving on brute force. Example compressing all HCPCS codes to a regex.

4
1
2
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 5mo ago

Update to my previous post. By changing the parameter k from 1.5 to 1.6 I get the red curve, which fits the gray photographic image quite well.

11
2
3
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

DNA and Bessel functions

https://www.johndcook.com/blog/2026/08/09/dna-and-bessel-functions/

DNA and Bessel functions
John D. Cook | Applied Mathematics Consulting

DNA and Bessel functions

I was reading a book on the history of the discovery of the structure of DNA [1] and was surprised by a few passing references to Bessel functions. According to Claude, When X-rays are diffracted by a helical structure, the resulting diffraction pattern breaks into a series of horizontal "layer lines." Cochran, Crick, and Vand

2
0
1
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

Why is cos(200!) harder to compute than log(200!)?

https://www.johndcook.com/blog/2026/08/07/cos200/

Calculating the cosine of numbers outside the range of floats
John D. Cook | Applied Mathematics Consulting

Calculating the cosine of numbers outside the range of floats

Why you can calculate the log of a huge number more easily than the cosine. Demonstration that every digit is maximally important.

2
2
2
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

Metallic ratio alchemy: Can you make gold from lead?

https://www.johndcook.com/blog/2026/08/04/metallic-alchemy/

Metallic alchemy: making one metallic ratio from another
John D. Cook | Applied Mathematics Consulting

Metallic alchemy: making one metallic ratio from another

By analogy with alchemy, can you make gold from lead? i.e. can you make the golden ratio by integer operations on the lead ratio?

2
0
0
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

New post: Holonomic functions

https://www.johndcook.com/blog/2026/08/02/holonomic-functions/

John D. Cook | Applied Mathematics Consulting

Holonomic functions

Most special functions are holonomic, meaning that they can be defined by linear differential equations with polynomial coefficients.

2
0
0
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

Why is one special area of differential equations -- 2nd order linear equations with polynomial coefficients -- so important?

https://www.johndcook.com/blog/2026/08/01/why-polynomial-coefficients/

Why polynomial coefficients?
John D. Cook | Applied Mathematics Consulting

Why polynomial coefficients?

Why is one special area of differential equations -- linear second order equations with polynomial coefficients -- so mature and important in applications?

2
0
0
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

Comparing forward Euler and symplectic Euler ODE solvers on the preditor-prey equations.

https://www.johndcook.com/blog/2020/09/12/symplectic-euler/

Symplectic Euler method for solving ODEs
John D. Cook | Applied Mathematics Consulting

Symplectic Euler method for solving ODEs

The symplectic Euler method, a compromise between explicit Euler and implicit Euler, does much better than either method when it preserves equation structure.

2
2
3
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

New post: A simple range reduction algorithm

https://www.johndcook.com/blog/2026/08/09/simple-range-reduction/

Simple range reduction algorithm by Cody and Waite
John D. Cook | Applied Mathematics Consulting

Simple range reduction algorithm by Cody and Waite

A simple range reduction method. Not the state of the art, but simple and better than naive range reduction.

1
0
1
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

A better algorithm for inverting the gamma function

https://www.johndcook.com/blog/2026/07/28/inverse-factorial-improved/

Efficient code for inverting the (log) gamma function
John D. Cook | Applied Mathematics Consulting

Efficient code for inverting the (log) gamma function

Improved code for solving x! = y or more generally Γ(x) = y for x.

1
0
0
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 5mo ago

Turning a trick into a technique
https://www.johndcook.com/blog/2026/04/28/even-series-trick/

Turning a trick into a technique
John D. Cook | Applied Mathematics Consulting

Turning a trick into a technique

A technique is a trick that works twice. Finding a new use for the even function series trick.

4
4
3
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 7mo ago

I asked Grok and ChatGPT to write Lilypond code to reproduce a photo of some sheet music. The results were hilariously bad, and yet they got some things right.

https://www.johndcook.com/blog/2026/03/13/typesetting-sheet-music-with-ai/

Typesetting sheet music with AI
John D. Cook | Applied Mathematics Consulting

Typesetting sheet music with AI

I asked Grok and ChatGPT to reproduce sheet music from a photo. Hilarity ensued.

2
0
1
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 5mo ago
Replying to
@tpfto@mathstodon.xyz Looks like you can generalize Burmann's theorem by generalizing the series inversion theorem. This article includes the case of phi having a fixed number of zero derivatives at a. https://www.mathematica-journal.com/2014/11/24/on-burmanns-theorem-and-its-application-to-problems-of-linear-and-nonlinear-heat-transfer-and-diffusion/
mathematica-journal.com

On Bürmann’s Theorem and Its Application to Problems of Linear and Nonlinear Heat Transfer and Diffusion « The Mathematica Journal

Article presents a compact analytic approximation to the solution of a nonlinear partial differential equation of the diffusion type by using Bürmann

1
0
0
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 2mo ago

You can hide a cryptographic key in the order of a deck of cards. How big a deck would you need to store various sizes of keys?

https://www.johndcook.com/blog/2026/07/28/keys-and-cards/

John D. Cook | Applied Mathematics Consulting

Cryptographic Keys and Decks of Cards

You can store cryptographic keys in the order of a deck of cards. How big a deck would you need to store Bitcoin, RSA, or ML-KEM keys?

0
0
0
0
Open post
John D. Cook @johndcook@mathstodon.xyz
· 5mo ago
Replying to
@tpfto@mathstodon.xyz That's really cool. Hadn't seen that before. Maybe I'm missing something. In the notation of the Mathworld article, a = 0 and phi = cos. But phi'(a) = 0, and so it seems Bürmann's theorem doesn't apply.
0
2
0
0
Back
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

I2P eepsite

j6b6cyk6gjmepjih7jjadxgxvvf3lzzujljuu2v4biemzpg3naya.b32.i2p

Platform

  • Email
  • Chat
  • Timeline
  • VPN
  • DNS

Company

  • About
  • Pricing
  • Contact
  • FAQ
  • Lite (no JS)

Legal

  • Terms of Service
  • Privacy Policy
  • Transparency Report
  • Report Abuse
  • Warrant Canary
  • VPN Policy

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 21:34:08 UTC