News
Entertainment
Science & Technology
Sport
Business & Money
Life
Culture & Art
Hobbies
9 | Follower
John D. Cook Consulting Blog
02.06.2025
Fitting a parabola to an ellipse, and fitting ellipses to a parabola
Gardener's method for drawing an ellipse and how it could be useful in computer graphics
01.06.2025
A plot of the log of a row in Pascal's triangle makes a circular arc.
31.05.2025
Suppose you have n cannonballs and want to stack them in tetrahedral stacks. How many stacks will you need?
29.05.2025
How Mathematica produces curves, such as a dragonfly or a triceratops.
How often do the hour and and minute hand of an analog clock point in the same direction?
28.05.2025
How bad is the naive version of the Lucas-Lehmer test, the test used to find Mersenne primes? One little idea makes all the difference.
26.05.2025
Octionion multiplication is not associative in general. But it is associative for a useful special case.
You can represent octonions as 2 by 2 matrices with quaternion entries. But you have to change the definition of matrix multiplication slightly to make it work.
What drunks and technical consultants have in common.
25.05.2025
The best paper tile, in my opinion, was H = W. This post unpacks what the title means.
Sometimes an LLM makes creative connections. Maybe not entirely sensical, but interesting nevertheless.
Riffing on a joke by Dan Piponi giving examples of numbers in the D&D alignment matrix.
23.05.2025
Wilkinson's polynomial demonstrates that a tiny change to a coefficient in a polynomial might result in a huge change to the roots.
22.05.2025
Computing effective graph resistance is an application of the Moore-Penrose pseudoinverse.
When interpolating a function at evenly spaced points, adding more interpolation points can make the accuracy worse, in practice even when not in theory.
The Drazin pseudoinverse is not as well known as the Moore-Penrose pseudoinverse. The Drazin pseudoinverse behaves nicely with exponents.
21.05.2025
Partitioning a matrix to make multiplication by its transpose more efficient. Link to a new algorithm.
A very clever, very cryptic hack.
20.05.2025
Probability of rolling a Yahtzee in no more than n rolls.
You can partition a matrix and think of it as a matrix whose entries are matrices. You can manipulate these matrices almost as if the blocks were numbers.
16.05.2025
There are two meanings of the term trinomial coefficients. One of these is related to the movement of a king on a chessboard.
Using an integral from a competition quiz as a springboard to discuss related ideas.
15.05.2025
Matrix representations for multiplying by a quaternion on the left and on the right.
Another chess puzzle by Martin Gardner. Place two rooks, two bishops, and two knights on a 4 by 4 board so that no piece attacks any other.
Embeddings and projections are not inverses of each other, but they're like inverses. Three generalizations of inverse: left and right, adjoint, & pseudoinverse
14.05.2025
Alternative notation for exponents and logs using up and down arrows has several advantages. Mathematical symmetries come out as visual symmetries.
Avoiding problems related to different conventions for representing decimals and separating thousands.
13.05.2025
A chess puzzle by Martin Garnder and links to similar articles.
12.05.2025
There are 12 equivalence classes of solutions to the 8 queens problem. One class is highly symmetric. One is a solution to the no-three-in-line problem.
How to turn the eight queens problem into a Boolean satisfiability (SAT) problem.
10.05.2025
How many bishops can you place on a chessboard so that no bishop is attacking any other bishop?
Alphabetical order and numerical order match surprisingly well for moderately small numbers.
Frequency of names of English monarchs, from the most common (Edward) to the least (John).
09.05.2025
Large language models show unexpected "emergent" behaviors as they are scaled up. This should not at all be surprising. Here we give a possible explanation.
Why might it be a problem if a numerical algorithm takes the square root of a small number? Why the most obvious fix is insufficient.
Frequency of names for popes. The most popular has been John, used 21 times, even though there was a John XXIII.
08.05.2025
Rotations can be represented by matrices or by quaternions. An advantage of quaternions is that the composition of rotations is very simple.
Equations and Python code for going back and forth between quaternion and matrix representations of rotations.
07.05.2025
A way of generating points on a sphere that is intuitively clear and efficient. Comparison to the more common algorithm.