mathspp blog

446 482,128 39,494
articles words lines of code

This article covers a useful LLM pattern where you ask the LLM to write code to solve a problem instead of asking it to solve the problem directly.

See an animation of a trapezoid innscribed in a circle, built with some maths and the help of an LLM.

Today I learned that cyclic quadrilaterals have supplementary opposite angles.

Today I learned how to inspect a lazy import object in Python 3.15.

Today I learned how to install jupyter properly while using uv to manage tools.

Today I learned how to do multiline input in the REPL using an uncommon combination of arguments for the built-in open.

Learn how to remove extra spaces from a string using regex, string splitting, a fixed point, and itertools.groupby.