Category Archives: Math

Artisinal Digital Audio

Loss of precision due to scale in a float32 parameter makes for weird, shaky sine waves. Continue reading

Posted in Arduino, C, Digital, I2S, Math, Troubleshooting | Tagged , , , , , , | Leave a comment

Cache And Carry

The Hofstadter Q sequence, like the Fibonacci numbers, is best computed with a caching scheme. But bring a lot of memory. Continue reading

Posted in Algorithms, BASIC, Coding, Math | Leave a comment

The Old XOR Switcheroo

Swap two binary integers, without using a temporary variable. Not magic — XOR. Continue reading

Posted in Algorithms, Assembly, Coding, Digital, Math | Tagged , , , | Leave a comment

Mini Museum: Slide Rule

Slide rules — analog mechanical calculators — helped build the modern world, three sig figs or so at a time. Continue reading

Posted in Lore, Math, Mechanical, Mini Museum, Nostalgia, Tools | Tagged , , , , , , | Leave a comment