Equation for the shape of a guitar pick
https://www.johndcook.com/blog/2026/05/03/guitar-pick/
John D. Cook
Consultant in applied mathematics and data privacy
How not to calculate cosine
https://www.johndcook.com/blog/2026/08/07/how-not-to-calculate-cos/
Enumerating rooted trees and non-overlapping circles
https://www.johndcook.com/blog/2026/08/05/enumerating-trees-and-circles/
New post: Hiding data in permutations
https://www.johndcook.com/blog/2026/07/27/hiding-data-in-permutations/
Solving the Runge-Kutta design equations
https://www.johndcook.com/blog/2026/07/31/runge-kutta-design/
New post: Calculating log(1000!)
New post: Ratios of metallic ratios
https://www.johndcook.com/blog/2026/08/04/ratio-of-metallic-ratios/
New post: Estimating a cumulative sum
https://www.johndcook.com/blog/2026/08/02/estimating-a-cumulative-sum/
Counting rooted trees. With a surprising connection to differential equations.
https://www.johndcook.com/blog/2026/08/01/counting-rooted-trees/
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.
Why is cos(200!) harder to compute than log(200!)?
Metallic ratio alchemy: Can you make gold from lead?
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/
Comparing forward Euler and symplectic Euler ODE solvers on the preditor-prey equations.
New post: A simple range reduction algorithm
https://www.johndcook.com/blog/2026/08/09/simple-range-reduction/
A better algorithm for inverting the gamma function
https://www.johndcook.com/blog/2026/07/28/inverse-factorial-improved/
Turning a trick into a technique
https://www.johndcook.com/blog/2026/04/28/even-series-trick/
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/
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?