Every day
3 shown
Entries
Does Typst format your journal's references the way Zotero would?
Problem
Typst, a writing program used for papers, formats references with its own library, hayagriva. It reads CSL style files, the format Zotero and many journals use, but does not always print the same text. Without comparing entries by hand, a writer cannot tell whether their style is affected.Solution
A page where you look up a journal or style and see, side by side, where Typst differed from Zotero and Pandoc when those two agreed. It lists 25 traced causes and which have public reports. A script lists the entries of your own .bib file that Typst and Pandoc print differently.I tried to break the error limits in a maths library's erf and erfc, and could not
Problem
CORE-MATH's erf promises the correctly rounded answer: the one exact arithmetic would give, rounded once. Its quick calculation keeps that promise only if a stated error limit is true. If the limit is too small, a rare input comes out wrong in the last digit, with no warning. Its authors have found limits too small in other functions.Solution
I measured the quick calculation's error on about a billion inputs for each function against a high-precision reference. I also wrote a program that follows it one operation at a time and computes an upper limit on its error over every input it handles.A one-line fix for 3D plots that draw the wrong thing in front
Problem
Matplotlib, a widely used Python chart library, paints each 3D object whole, one after another. When two surfaces cross, one can appear entirely on top. Its own documentation calls this intractable and suggests a different program. Maintainers closed a 2024 report of it as something their drawing method can't fix.Solution
rightorder is one Python file. It cuts faces, lines and dots where they pass through each other, then paints the pieces from back to front using ordinary Matplotlib drawing. Matplotlib itself is not changed.